New module '_Exit'.
[gnulib.git] / ChangeLog
1 2010-07-12  Bruno Haible  <bruno@clisp.org>
2
3         New module '_Exit'.
4         * lib/stdlib.in.h (__attribute__): New macro.
5         (_Exit): New declaration.
6         * lib/_Exit.c: New file.
7         * m4/_Exit.m4: New file.
8         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
9         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11         * modules/_Exit: New file.
12         * tests/test-stdlib-c++.cc (_Exit): Check signature.
13         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14
15 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
16
17         strtod: make it more-accurate typically, and don't require libm
18         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19         Include limits.h.  Don't include string.h.
20         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21         (locale_isspace): New function, so that no casts are needed to
22         check whether *s is a space.
23         (ldexp): Provide an unused dummy if not available.
24         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25         (strtod): Use them.  This implementation prefers to use the
26         underlying strtod if available, falling back on our own code
27         only to fix known bugs.  This is more likely to produce an
28         accurate result.  Also, it avoids the use of libm functions.
29         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31         was absent, but it caused a test failure with coreutils.
32         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
33         with libm.
34         * modules/strtod (Makefile.am, Link): libm is no longer needed.
35         * modules/strtod-tests (Makefile.am): Likewise.
36
37 2010-07-11  Pádraig Brady  <P@draigBrady.com>
38             Bruno Haible  <bruno@clisp.org>
39
40         unistr/u8-strchr: Optimize ASCII argument case.
41         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
42
43 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44
45         (x)memcoll: minor tweaks
46         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
47         is after the type that it qualifies.
48         (memcoll0): Likewise.
49         * lib/memcoll.h (memcoll0): Likewise.
50         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
51         * lib/xmemcoll.h (xmemcoll0): Likewise.
52         * lib/memcoll.c (memcoll0): Correct the comment.  This function
53         differs from memcoll in that the NUL byte is part of the argument.
54         Omit the abort-checks, as performance is a real issue here.  Plus,
55         the checks were wrong anyway (an off-by-one error).  Omit local
56         variable 'diff', as it's a bit clearer that way.
57         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
58         no longer needed.
59
60 2010-07-08  Chen Guo <chenguo4@yahoo.com>
61
62         (x)memcoll: speedup when input is known to be NUL delimited
63         * lib/memcoll.c: Include stdlib.
64         (memcoll0) New function.
65         (strcoll_loop) New function, refactored for use in both memcoll
66         and memcoll0.
67         * lib/memcoll.h: Add prototype for memcoll0.
68         * lib/xmemcoll.c: (xmemcoll0) New function.
69         (collate_error) New function, refactored for use in both xmemcoll
70         and xmemcoll0.
71         * lib/xmemcoll.h: Add prototype for xmemcoll0.
72         * m4/memcoll.m4: add inline invocation.
73
74 2010-07-06  Pádraig Brady  <P@draigBrady.com>
75
76         * build-aux/bootstrap: Remove any local translations
77         from the translation project synchronization directory,
78         so that local only translations are not distributed.
79
80 2010-07-04  Bruno Haible  <bruno@clisp.org>
81
82         fsusage: Clarify which code applies to which platforms.
83         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
84         platform.
85         * lib/fsusage.c (get_fs_usage): Likewise.
86
87 2010-07-04  Bruno Haible  <bruno@clisp.org>
88
89         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
90         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
91         Reported by Martin Lambers <marlam@marlam.de>.
92
93 2010-07-04  Jim Meyering  <meyering@redhat.com>
94
95         hash: once again explicitly disallow insertion of NULL
96         * lib/hash.c (hash_insert0): Reinstate just-removed test:
97         inserting a NULL pointer cannot work with these functions.
98         Add a comment with details.
99         This reverts part of the 2010-07-01 commit, 5bef1a35
100         "hash: extend module to deal with non-pointer keys".
101
102 2010-07-01  Bruno Haible  <bruno@clisp.org>
103
104         stdbool: Update doc.
105         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
106         Info from Christian Weisgerber <naddy@mips.inka.de>.
107
108 2010-07-01  Jim Meyering  <meyering@redhat.com>
109
110         hash: extend module to deal with non-pointer keys
111         * lib/hash.c (hash_insert0): New interface, much like hash_insert
112         but that allows insertion of non-pointer entries.
113         Do not disallow an ENTRY value of NULL.
114         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
115         * lib/hash.h (hash_insert0): Declare.
116
117 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
118
119         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
120         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
121         not present (i.e. with autoconf 2.59 and when using gettextize, not
122         gnulib), require AC_GNU_SOURCE instead.
123
124 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
125
126         idpriv-drop: Fix tests.
127         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
128         not to the test-idpriv-droptemp program.
129
130 2010-06-29  Bruno Haible  <bruno@clisp.org>
131
132         string: Fix syntax error with g++ 2.96.
133         * lib/string.in.h (__pure__): Remove definition.
134         (_GL_ATTRIBUTE_PURE): New macro.
135         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
136         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
137         Reported by Christian Weisgerber <naddy@mips.inka.de>.
138
139 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
140
141         unitypes: Fix bug introduced on 2010-05-18.
142         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
143
144 2010-06-22  Eric Blake  <eblake@redhat.com>
145
146         memmem: slight optimization
147         * lib/str-two-way.h (critical_factorization): Update comments.
148         Reduce work during factorization phase.
149         Reported by Carlos Bueno <carlos@bueno.org>.
150
151 2010-06-21  Bruno Haible  <bruno@clisp.org>
152
153         Fix HAVE_CALLOC_POSIX misnomer.
154         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
155         !HAVE_CALLOC_POSIX.
156         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
157         HAVE_CALLOC_POSIX.
158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
159         instead of HAVE_CALLOC_POSIX.
160         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
161         HAVE_CALLOC_POSIX.
162
163         Use modern idiom for calloc() replacement.
164         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
165         AC_FUNC_CALLOC.
166         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
167         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
168         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
169         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
170         (gl_REPLACE_CALLOC): New macro.
171
172 2010-06-21  Bruno Haible  <bruno@clisp.org>
173
174         Fix HAVE_REALLOC_POSIX misnomer.
175         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
176         !HAVE_REALLOC_POSIX.
177         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
178         HAVE_REALLOC_POSIX.
179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
180         instead of HAVE_REALLOC_POSIX.
181         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
182         HAVE_REALLOC_POSIX.
183
184         Use modern idiom for realloc() replacement.
185         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
186         AC_FUNC_REALLOC.
187         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
188         Autoconf's AC_FUNC_REALLOC.
189         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
190         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
191         (gl_REPLACE_REALLOC): New macro.
192         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
193
194 2010-06-21  Bruno Haible  <bruno@clisp.org>
195
196         Fix HAVE_MALLOC_POSIX misnomer.
197         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
198         !HAVE_MALLOC_POSIX.
199         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
200         HAVE_MALLOC_POSIX.
201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
202         instead of HAVE_MALLOC_POSIX.
203         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
204         HAVE_MALLOC_POSIX.
205
206         Use modern idiom for malloc() replacement.
207         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
208         AC_FUNC_MALLOC.
209         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
210         Autoconf's AC_FUNC_MALLOC.
211         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
212         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
213         (gl_REPLACE_MALLOC): New macro.
214         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
215
216 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
217
218         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
219         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
220         This macro takes 3 arguments, not 4.
221
222 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
223
224         ipv6: fix detection under mingw
225         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
226         in6_addr.
227
228 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
229
230         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
231         that strtod() works when cross-compiling to a glibc version known
232         to work.
233
234 2010-06-15  Bruno Haible  <bruno@clisp.org>
235
236         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
237
238 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
239
240         select: Correct timeout.
241         * lib/select.c (rpl_select): Compute wait_timeout correctly.
242
243 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
244
245         git-version-gen: init shell var to avoid env var influence
246         * build-aux/git-version-gen (v): Init shell var to empty.
247
248 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
249
250         priv-set: Don't assume that priv.h exists merely because getppriv does.
251         See Jan Andersen's bug report about AIX 5L in
252         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
253         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
254         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
255         * lib/priv-set.h: Likewise.
256         * tests/test-priv-set.c: Likewise.
257
258 2010-06-13  Bruno Haible  <bruno@clisp.org>
259
260         relocatable: Make it easier to test whether to install wrappers.
261         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
262         RELOCATABLE_VIA_WRAPPER.
263
264 2010-06-13  Bruno Haible  <bruno@clisp.org>
265
266         gnulib-tool: Display specified modules and dependencies differently.
267         * gnulib-tool (func_show_module_list): New function.
268         (func_import, func_create_testdir): Invoke it.
269         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
270
271 2010-06-13  Bruno Haible  <bruno@clisp.org>
272
273         gnulib-tool: Align code of func_import and func_create_testdir.
274         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
275         specified_modules.
276
277 2010-06-12  Jim Meyering  <meyering@redhat.com>
278
279         test-inttostr: avoid spurious failure on Solaris 9
280         * tests/test-inttostr.c (main): Skip the test when snprintf fails
281         to accept "%ju".  Reported by Bruno Haible.
282
283 2010-06-11  Jim Meyering  <meyering@redhat.com>
284
285         test-sys_socket: mark variables as used more readably
286         * tests/test-sys_socket.c (main): Mark otherwise unused variables
287         as "used" explicitly via (void) statement casts.  This is more
288         readable than using them in an artificial return expression.
289         Suggestion from Bruno Haible.
290
291 2010-06-11  Bruno Haible  <bruno@clisp.org>
292
293         Avoid some more warnings from "gcc -Wwrite-strings".
294         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
295         to 'const char *'.
296         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
297         * tests/test-c-strcasestr.c (main): Likewise.
298         * tests/test-mbscasestr1.c (main): Likewise.
299         * tests/test-mbscasestr2.c (main): Likewise.
300         * tests/test-memmem.c (main): Likewise.
301         * tests/test-strstr.c (main): Likewise.
302         * tests/test-strcasestr.c (main): Likewise.
303
304 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
305
306         init.sh: change framework_failure_ to fail with status 99, not 1
307         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
308         automake's parallel-tests rule that this is an unexpected failure,
309         even if the test is listed in XFAIL_TESTS.
310
311 2010-06-11  Jim Meyering  <meyering@redhat.com>
312
313         test-inttostr: avoid warnings about 4-6KB literal strings
314         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
315         Include "macros.h", for its definition of ASSERT.
316         (CK): s/assert/ASSERT/
317         * modules/inttostr-tests (Files): Add macros.h.
318
319         init.sh: don't use $ME_ or skip_ before they are defined
320         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
321         their first uses.  Also hoist their companions: warn_, fail_,
322         framework_failure_, $stderr_fileno.  Prompted by a patch from
323         Stefano Lattarini.
324
325         test-sys_socket: avoid set-but-not-used warnings from gcc
326         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
327         avoid warning about set-but-not-used variables.
328
329         test-xvasprintf: avoid 'const' discard warnings
330         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
331         "const" when assigning from literal strings.
332         (test_xasprintf): Add "void" in function argument list to placate
333         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
334
335         tests: avoid compilation warnings in argmatch and exclude tests...
336         in packages that define ARGMATCH_DIE_DECL, like coreutils.
337         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
338         Since it always exits, declare with the "noreturn" attribute.
339         * tests/test-argmatch.c: Likewise.
340
341         tests: avoid 'const' discard warnings in mbsstr tests
342         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
343         * tests/test-mbsstr2.c (main): Likewise.
344
345         test-verify: avoid warning from gcc's -Wmissing-declarations
346         * tests/test-verify.c (function): Declare to be static.
347
348         test-inttostr.c: include <string.h> for use of strcmp
349         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
350
351         test-linkat: avoid failed assertion on "other" architectures
352         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
353         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
354         sparc: https://bugs.launchpad.net/bugs/591968
355
356 2010-06-11  Jim Meyering  <meyering@redhat.com>
357
358         printf.m4: avoid autoconf's "Expanded Before Required" warning
359         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
360         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
361         autoconf warning.
362
363 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
364
365         Replacement header templates are now named with ".in", not "_".
366         * doc/gnulib-intro.texi: Correct.
367
368 2010-06-10  Jim Meyering  <meyering@redhat.com>
369
370         inttostr-tests: depend on snprintf, not snprintf-posix
371         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
372         snprintf-posix, to avoid this aclocal failure:
373           missing file gnulib-tests/vasnprintf.c
374           configure.ac:45: error: expected source file, required through \
375           AC_LIBSOURCES, not found
376
377 2010-06-10  Jim Meyering  <meyering@redhat.com>
378
379         inttostr: add a new function, inttostr, and tests
380         The namesake function was not available.  The existence of the
381         template file, inttostr.c makes its addition nontrivial.
382         * lib/anytostr.c: Rename from inttostr.c.
383         (anytostr): Rename from inttostr.
384         * lib/inttostr.c: New file.
385         * modules/inttostr (Files): Add anytostr.c.
386         (Makefile.am): Set lib_SOURCES instead of ...
387         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
388         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
389         * lib/offtostr.c: Likewise.
390         * lib/uinttostr.c: Likewise.
391         * lib/umaxtostr.c: Likewise.
392         * modules/inttostr-tests: New file.
393         * tests/test-inttostr.c: New file.  Test these functions.
394
395 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
396             Bruno Haible  <bruno@clisp.org>
397
398         Add "Extending Gnulib" chapter to manual.
399         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
400         chapter.
401         (Extending Gnulib): New chapter.
402         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
403         chapter.
404
405 2010-06-09  Bruno Haible  <bruno@clisp.org>
406
407         Avoid relocwrapper link errors due to gnulib replacement functions.
408         * lib/areadlink.c: Use the system's malloc, realloc functions.
409         (areadlink): Set errno to ENOMEM explicitly.
410         * modules/areadlink (Depends-on): Remove malloc-posix.
411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
412
413 2010-06-09  Bruno Haible  <bruno@clisp.org>
414
415         Avoid relocwrapper link errors due to gnulib replacement functions.
416         * lib/canonicalize-lgpl.c: Use the system's malloc function.
417         * lib/malloca.c: Likewise.
418         * lib/relocatable.c: Likewise.
419         * lib/progreloc.c: Use the system's malloc, sprintf functions.
420         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
421         * lib/setenv.c: Use the system's malloc, realloc functions.
422         * lib/strerror.c: Use the system's sprintf function.
423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
424
425 2010-06-04  Bruno Haible  <bruno@clisp.org>
426
427         Prefer documented low-level autoconf macro names.
428         * m4/lib-link.m4: Use m4_translit instead of translit.
429         * m4/environ.m4: Likewise.
430         * m4/mathfunc.m4: Likewise.
431         * m4/onceonly.m4: Likewise.
432         * m4/stdint.m4: Likewise.
433         Suggested by Eric Blake.
434
435 2010-06-04  Martin Lambers  <marlam@marlam.de>
436             Bruno Haible  <bruno@clisp.org>
437
438         havelib: Allow library names with '+' characters.
439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
440         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
441
442 2010-06-09  Bruno Haible  <bruno@clisp.org>
443
444         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
445         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
446         realloc failed.
447
448 2010-06-08  Peter Simons  <simons@cryp.to>
449
450         maint.mk: make the news-check rule more configurable
451         * top/maint.mk (news-check-lines-spec) New variable.
452         (news-check): Use "sed -n 1,10p" in place of "head".
453
454 2010-06-07  Jim Meyering  <meyering@redhat.com>
455
456         do-release-commit-and-tag: fix typo in --help
457         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
458
459         regex: avoid new dead-code warning with gcc-4.6.0
460         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
461         if-block containing a while-loop.  It's been unused for at least
462         5 years.
463
464 2010-06-05  Bruno Haible  <bruno@clisp.org>
465
466         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
467         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
468
469 2010-06-04  Bruno Haible  <bruno@clisp.org>
470
471         Update to GNU gettext 0.18.1.
472         * modules/gettext (configure.ac): Require gettext infrastructure from
473         version 0.18.1.
474
475 2010-06-03  Bruno Haible  <bruno@clisp.org>
476
477         Don't use AC_LIBOBJ with file names in subdirectories.
478         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
479         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
480         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
481         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
482         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
483         gl_LIBUNISTRING_LIBSOURCE.
484         (Makefile.am): Augment lib_SOURCES here, conditionally.
485         * NEWS: Drop requirement for Automake option 'subdir-objects'.
486
487 2010-06-03  Bruno Haible  <bruno@clisp.org>
488
489         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
490         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
491         expansion does not end with a newline.
492         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
493         unnecessary newline.
494
495 2010-06-03  Bruno Haible  <bruno@clisp.org>
496
497         Reduce dependencies.
498         * tests/test-quotearg.h: New file, extracted from
499         tests/test-quotearg.c.
500         * tests/test-quotearg-simple.c: New file, extracted from
501         tests/test-quotearg.c.
502         * tests/test-quotearg.c: Don't include <ctype.h>.
503         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
504         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
505         use_quote_double_quotes, use_quotearg_colon): Moved to
506         tests/test-quotearg.h.
507         (results_g, flag_results, custom_quotes, custom_results): Moved
508         to tests/test-quotearg-simple.c.
509         (main): Moved the part that does not depend on gettext to
510         tests/test-quotearg-simple.c. Return 77 if the test cannot be
511         performed.
512         * modules/quotearg-simple: New file.
513         * modules/quotearg-simple-tests: New file.
514         * modules/quotearg (Depends-on): Add quotearg-simple.
515         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
516         (Files): Add tests/test-quotearg.h.
517         Reported by Paolo Bonzini.
518
519 2010-06-03  Bruno Haible  <bruno@clisp.org>
520
521         Reduce dependencies.
522         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
523
524 2010-06-03  Bruno Haible  <bruno@clisp.org>
525
526         time: Undefine more broken macros.
527         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
528         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
529         Reported by Eric Blake.
530
531 2010-06-03  Bruno Haible  <bruno@clisp.org>
532
533         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
534         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
535         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
536         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
537         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
538         Reported by Ludovic Courtès <ludo@gnu.org>.
539
540 2010-06-02  Eric Blake  <eblake@redhat.com>
541
542         time: work with mingw + pthreads-win32 library
543         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
544         if timespec is defined only in pthread.h.
545         * modules/time (Makefile.am): Substitute it.
546         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
547         <pthread.h>, when needed.
548         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
549         from the library.
550
551 2010-05-31  Bruno Haible  <bruno@clisp.org>
552
553         Avoid expanding two macros in the wrong order.
554         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
555         gl_LIBUNISTRING if it is defined.
556         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
557         autoconf >= 2.64.
558         Reported by Ludovic Courtès <ludo@gnu.org>.
559
560 2010-05-27  Jim Meyering  <meyering@redhat.com>
561
562         maint.mk: also prohibit "#undef" of always-defined symbols
563         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
564         Allow more than one space before the symbol name.
565         (sc_prohibit_always-defined_macros): Use grep's -E, now that
566         the regexp uses alternation.
567
568 2010-05-26  Eric Blake  <eblake@redhat.com>
569
570         maint.mk: avoid echo -e
571         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
572         Convert all uses of echo -* to printf.
573         Reported by Matthias Bolte.
574
575 2010-05-25  Bruno Haible  <bruno@clisp.org>
576
577         Update to GNU gettext 0.18, part 2.
578         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
579         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
580
581 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
582
583         Add missing include in test-pwrite.c.
584         * tests/test-pwrite.c: Include string.h, for strcmp.
585
586 2010-05-24  Bruno Haible  <bruno@clisp.org>
587
588         * NEWS: Mention requirement for Automake option 'subdir-objects'.
589
590 2010-05-24  Bruno Haible  <bruno@clisp.org>
591
592         Don't use conversion with transliteration in u{8,16,32}_strcoll.
593         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
594         iconveh_error argument.
595         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
596         U_STRCONV_TO_LOCALE.
597         * lib/unistr/u16-strcoll.c: Likewise.
598         * lib/unistr/u32-strcoll.c: Likewise.
599         * modules/unistr/u8-strcoll (Depends-on): Add
600         uniconv/u8-strconv-to-enc, localcharset. Remove
601         uniconv/u8-strconv-to-locale.
602         (configure.ac): Bump version number.
603         * modules/unistr/u16-strcoll (Depends-on): Add
604         uniconv/u16-strconv-to-enc, localcharset. Remove
605         uniconv/u16-strconv-to-locale.
606         (configure.ac): Bump version number.
607         * modules/unistr/u32-strcoll (Depends-on): Add
608         uniconv/u32-strconv-to-enc, localcharset. Remove
609         uniconv/u32-strconv-to-locale.
610         (configure.ac): Bump version number.
611
612 2010-05-24  Bruno Haible  <bruno@clisp.org>
613
614         Avoid a test failure on NetBSD 5.0.
615         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
616         an iconv() bug.
617
618 2010-05-24  Bruno Haible  <bruno@clisp.org>
619
620         Adjust #include directive style.
621         * modules/regex (Includes): Recommend to write <regex.h>.
622
623 2010-05-24  Bruno Haible  <bruno@clisp.org>
624
625         regex: Don't require alloca.
626         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
627         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
628         only inside if (0).
629
630 2010-05-23  Jim Meyering  <meyering@redhat.com>
631
632         test-renameat.c: include <sys/stat.h>
633         * tests/test-renameat.c: Include <sys/stat.h>; required for
634         definition of S_IS* macros.
635
636 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
637
638         Update maintainer documentation for 'relocatable-prog' module.
639         * doc/relocatable-maint.texi: Update.
640         Comments by Bruno Haible.
641
642 2010-05-23  Bruno Haible  <bruno@clisp.org>
643
644         git-merge-changelog: Enable --split-merged-entry by default.
645         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
646         (usage): Don't mention this option any more.
647         Reported by Ralf Wildenhues.
648
649 2010-05-23  Jim Meyering  <meyering@redhat.com>
650
651         test-pwrite: do not leave behind a test file named "out"
652         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
653         The trivial-looking use of init.sh is really necessary.
654         It ensures that the temporary file, "out", is created in
655         a temporary directory, and removed upon termination.
656         * tests/test-pwrite.sh: Re-add file.
657         * modules/pwrite-tests: Reference it.
658
659 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
660
661         Fix output redirection buglet in init.sh.
662         * tests/init.sh: Fix redirection of stderr.
663
664 2010-05-20  Simon Josefsson  <simon@josefsson.org>
665
666         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
667
668 2010-05-17  Simon Josefsson  <simon@josefsson.org>
669
670         * modules/valgrind-tests: New file.
671         * m4/valgrind-tests.m4: New file.
672         * doc/valgrind-tests.texi: New file.
673         * doc/gnulib.texi (Running self-tests under valgrind): New
674         section.
675
676 2010-05-19  Bruno Haible  <bruno@clisp.org>
677
678         Clean up dead code in recent commit.
679         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
680         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
681         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
682         Suggested by Paolo Bonzini.
683
684 2010-05-19  Bruno Haible  <bruno@clisp.org>
685
686         Avoid valgrind error reports from libunistring.
687         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
688         * modules/libunistring (Files): Add it.
689         * modules/libunistring-optional (Files): Likewise.
690
691 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
692             Bruno Haible  <bruno@clisp.org>
693
694         New module 'libunistring-optional'.
695         * modules/libunistring-optional: New file.
696         * m4/libunistring-base.m4: New file.
697         * m4/libunistring-optional.m4: New file.
698         * lib/unicase.in.h: Renamed from lib/unicase.h.
699         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
700         * lib/unictype.in.h: Renamed from lib/unictype.h.
701         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
702         * lib/uniname.in.h: Renamed from lib/uniname.h.
703         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
704         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
705         * lib/unistr.in.h: Renamed from lib/unistr.h.
706         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
707         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
708         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
709         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
710         gl_LIBUNISTRING. If the library was found, determine the installed
711         version and set LIBUNISTRING_VERSION.
712         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
713         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
714         handle a configuration option --with-included-libunistring.
715         * modules/libunistring (Files): Add m4/absolute-header.m4.
716         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
717         Add m4/libunistring-base.m4.
718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
719         (Makefile.am): Build unicase.h from unicase.in.h.
720         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
721         Add m4/libunistring-base.m4.
722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
723         (Makefile.am): Build uniconv.h from uniconv.in.h.
724         * modules/unictype/base (Files): Use unictype.in.h instead of
725         unictype.h. Add m4/libunistring-base.m4.
726         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
727         (Makefile.am): Build unictype.h from unictype.in.h.
728         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
729         Add m4/libunistring-base.m4.
730         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
731         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
732         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
733         Add m4/libunistring-base.m4.
734         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
735         (Makefile.am): Build uniname.h from uniname.in.h.
736         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
737         Add m4/libunistring-base.m4.
738         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
739         (Makefile.am): Build uninorm.h from uninorm.in.h.
740         * modules/unistdio/base (Files): Use unistdio.in.h instead of
741         unistdio.h. Add m4/libunistring-base.m4.
742         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
743         (Makefile.am): Build unistdio.h from unistdio.in.h.
744         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
745         Add m4/libunistring-base.m4.
746         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
747         (Makefile.am): Build unistr.h from unistr.in.h.
748         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
749         Add m4/libunistring-base.m4.
750         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
751         (Makefile.am): Build unitypes.h from unitypes.in.h.
752         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
753         Add m4/libunistring-base.m4.
754         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
755         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
756         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
757         uniwidth.h. Add m4/libunistring-base.m4.
758         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
759         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
760         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
761         instead of augmenting lib_SOURCES.
762         * modules/unicase/empty-suffix-context: Likewise.
763         * modules/unicase/locale-language: Likewise.
764         * modules/unicase/tolower: Likewise.
765         * modules/unicase/totitle: Likewise.
766         * modules/unicase/toupper: Likewise.
767         * modules/unicase/u8-casecmp: Likewise.
768         * modules/unicase/u8-casecoll: Likewise.
769         * modules/unicase/u8-casefold: Likewise.
770         * modules/unicase/u8-casexfrm: Likewise.
771         * modules/unicase/u8-ct-casefold: Likewise.
772         * modules/unicase/u8-ct-tolower: Likewise.
773         * modules/unicase/u8-ct-totitle: Likewise.
774         * modules/unicase/u8-ct-toupper: Likewise.
775         * modules/unicase/u8-is-cased: Likewise.
776         * modules/unicase/u8-is-casefolded: Likewise.
777         * modules/unicase/u8-is-lowercase: Likewise.
778         * modules/unicase/u8-is-titlecase: Likewise.
779         * modules/unicase/u8-is-uppercase: Likewise.
780         * modules/unicase/u8-prefix-context: Likewise.
781         * modules/unicase/u8-suffix-context: Likewise.
782         * modules/unicase/u8-tolower: Likewise.
783         * modules/unicase/u8-totitle: Likewise.
784         * modules/unicase/u8-toupper: Likewise.
785         * modules/unicase/u16-casecmp: Likewise.
786         * modules/unicase/u16-casecoll: Likewise.
787         * modules/unicase/u16-casefold: Likewise.
788         * modules/unicase/u16-casexfrm: Likewise.
789         * modules/unicase/u16-ct-casefold: Likewise.
790         * modules/unicase/u16-ct-tolower: Likewise.
791         * modules/unicase/u16-ct-totitle: Likewise.
792         * modules/unicase/u16-ct-toupper: Likewise.
793         * modules/unicase/u16-is-cased: Likewise.
794         * modules/unicase/u16-is-casefolded: Likewise.
795         * modules/unicase/u16-is-lowercase: Likewise.
796         * modules/unicase/u16-is-titlecase: Likewise.
797         * modules/unicase/u16-is-uppercase: Likewise.
798         * modules/unicase/u16-prefix-context: Likewise.
799         * modules/unicase/u16-suffix-context: Likewise.
800         * modules/unicase/u16-tolower: Likewise.
801         * modules/unicase/u16-totitle: Likewise.
802         * modules/unicase/u16-toupper: Likewise.
803         * modules/unicase/u32-casecmp: Likewise.
804         * modules/unicase/u32-casecoll: Likewise.
805         * modules/unicase/u32-casefold: Likewise.
806         * modules/unicase/u32-casexfrm: Likewise.
807         * modules/unicase/u32-ct-casefold: Likewise.
808         * modules/unicase/u32-ct-tolower: Likewise.
809         * modules/unicase/u32-ct-totitle: Likewise.
810         * modules/unicase/u32-ct-toupper: Likewise.
811         * modules/unicase/u32-is-cased: Likewise.
812         * modules/unicase/u32-is-casefolded: Likewise.
813         * modules/unicase/u32-is-lowercase: Likewise.
814         * modules/unicase/u32-is-titlecase: Likewise.
815         * modules/unicase/u32-is-uppercase: Likewise.
816         * modules/unicase/u32-prefix-context: Likewise.
817         * modules/unicase/u32-suffix-context: Likewise.
818         * modules/unicase/u32-tolower: Likewise.
819         * modules/unicase/u32-totitle: Likewise.
820         * modules/unicase/u32-toupper: Likewise.
821         * modules/unicase/ulc-casecmp: Likewise.
822         * modules/unicase/ulc-casecoll: Likewise.
823         * modules/unicase/ulc-casexfrm: Likewise.
824         * modules/uniconv/u8-conv-from-enc: Likewise.
825         * modules/uniconv/u8-conv-to-enc: Likewise.
826         * modules/uniconv/u8-strconv-from-enc: Likewise.
827         * modules/uniconv/u8-strconv-from-locale: Likewise.
828         * modules/uniconv/u8-strconv-to-enc: Likewise.
829         * modules/uniconv/u8-strconv-to-locale: Likewise.
830         * modules/uniconv/u16-conv-from-enc: Likewise.
831         * modules/uniconv/u16-conv-to-enc: Likewise.
832         * modules/uniconv/u16-strconv-from-enc: Likewise.
833         * modules/uniconv/u16-strconv-from-locale: Likewise.
834         * modules/uniconv/u16-strconv-to-enc: Likewise.
835         * modules/uniconv/u16-strconv-to-locale: Likewise.
836         * modules/uniconv/u32-conv-from-enc: Likewise.
837         * modules/uniconv/u32-conv-to-enc: Likewise.
838         * modules/uniconv/u32-strconv-from-enc: Likewise.
839         * modules/uniconv/u32-strconv-from-locale: Likewise.
840         * modules/uniconv/u32-strconv-to-enc: Likewise.
841         * modules/uniconv/u32-strconv-to-locale: Likewise.
842         * modules/unictype/bidicategory-byname: Likewise.
843         * modules/unictype/bidicategory-name: Likewise.
844         * modules/unictype/bidicategory-of: Likewise.
845         * modules/unictype/bidicategory-test: Likewise.
846         * modules/unictype/block-list: Likewise.
847         * modules/unictype/block-test: Likewise.
848         * modules/unictype/category-C: Likewise.
849         * modules/unictype/category-Cc: Likewise.
850         * modules/unictype/category-Cf: Likewise.
851         * modules/unictype/category-Cn: Likewise.
852         * modules/unictype/category-Co: Likewise.
853         * modules/unictype/category-Cs: Likewise.
854         * modules/unictype/category-L: Likewise.
855         * modules/unictype/category-Ll: Likewise.
856         * modules/unictype/category-Lm: Likewise.
857         * modules/unictype/category-Lo: Likewise.
858         * modules/unictype/category-Lt: Likewise.
859         * modules/unictype/category-Lu: Likewise.
860         * modules/unictype/category-M: Likewise.
861         * modules/unictype/category-Mc: Likewise.
862         * modules/unictype/category-Me: Likewise.
863         * modules/unictype/category-Mn: Likewise.
864         * modules/unictype/category-N: Likewise.
865         * modules/unictype/category-Nd: Likewise.
866         * modules/unictype/category-Nl: Likewise.
867         * modules/unictype/category-No: Likewise.
868         * modules/unictype/category-P: Likewise.
869         * modules/unictype/category-Pc: Likewise.
870         * modules/unictype/category-Pd: Likewise.
871         * modules/unictype/category-Pe: Likewise.
872         * modules/unictype/category-Pf: Likewise.
873         * modules/unictype/category-Pi: Likewise.
874         * modules/unictype/category-Po: Likewise.
875         * modules/unictype/category-Ps: Likewise.
876         * modules/unictype/category-S: Likewise.
877         * modules/unictype/category-Sc: Likewise.
878         * modules/unictype/category-Sk: Likewise.
879         * modules/unictype/category-Sm: Likewise.
880         * modules/unictype/category-So: Likewise.
881         * modules/unictype/category-Z: Likewise.
882         * modules/unictype/category-Zl: Likewise.
883         * modules/unictype/category-Zp: Likewise.
884         * modules/unictype/category-Zs: Likewise.
885         * modules/unictype/category-and: Likewise.
886         * modules/unictype/category-and-not: Likewise.
887         * modules/unictype/category-byname: Likewise.
888         * modules/unictype/category-name: Likewise.
889         * modules/unictype/category-none: Likewise.
890         * modules/unictype/category-of: Likewise.
891         * modules/unictype/category-or: Likewise.
892         * modules/unictype/category-test: Likewise.
893         * modules/unictype/combining-class: Likewise.
894         * modules/unictype/ctype-alnum: Likewise.
895         * modules/unictype/ctype-alpha: Likewise.
896         * modules/unictype/ctype-blank: Likewise.
897         * modules/unictype/ctype-cntrl: Likewise.
898         * modules/unictype/ctype-digit: Likewise.
899         * modules/unictype/ctype-graph: Likewise.
900         * modules/unictype/ctype-lower: Likewise.
901         * modules/unictype/ctype-print: Likewise.
902         * modules/unictype/ctype-punct: Likewise.
903         * modules/unictype/ctype-space: Likewise.
904         * modules/unictype/ctype-upper: Likewise.
905         * modules/unictype/ctype-xdigit: Likewise.
906         * modules/unictype/decimal-digit: Likewise.
907         * modules/unictype/digit: Likewise.
908         * modules/unictype/mirror: Likewise.
909         * modules/unictype/numeric: Likewise.
910         * modules/unictype/property-alphabetic: Likewise.
911         * modules/unictype/property-ascii-hex-digit: Likewise.
912         * modules/unictype/property-bidi-arabic-digit: Likewise.
913         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
914         * modules/unictype/property-bidi-block-separator: Likewise.
915         * modules/unictype/property-bidi-boundary-neutral: Likewise.
916         * modules/unictype/property-bidi-common-separator: Likewise.
917         * modules/unictype/property-bidi-control: Likewise.
918         * modules/unictype/property-bidi-embedding-or-override: Likewise.
919         * modules/unictype/property-bidi-eur-num-separator: Likewise.
920         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
921         * modules/unictype/property-bidi-european-digit: Likewise.
922         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
923         * modules/unictype/property-bidi-left-to-right: Likewise.
924         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
925         * modules/unictype/property-bidi-other-neutral: Likewise.
926         * modules/unictype/property-bidi-pdf: Likewise.
927         * modules/unictype/property-bidi-segment-separator: Likewise.
928         * modules/unictype/property-bidi-whitespace: Likewise.
929         * modules/unictype/property-byname: Likewise.
930         * modules/unictype/property-combining: Likewise.
931         * modules/unictype/property-composite: Likewise.
932         * modules/unictype/property-currency-symbol: Likewise.
933         * modules/unictype/property-dash: Likewise.
934         * modules/unictype/property-decimal-digit: Likewise.
935         * modules/unictype/property-default-ignorable-code-point: Likewise.
936         * modules/unictype/property-deprecated: Likewise.
937         * modules/unictype/property-diacritic: Likewise.
938         * modules/unictype/property-extender: Likewise.
939         * modules/unictype/property-format-control: Likewise.
940         * modules/unictype/property-grapheme-base: Likewise.
941         * modules/unictype/property-grapheme-extend: Likewise.
942         * modules/unictype/property-grapheme-link: Likewise.
943         * modules/unictype/property-hex-digit: Likewise.
944         * modules/unictype/property-hyphen: Likewise.
945         * modules/unictype/property-id-continue: Likewise.
946         * modules/unictype/property-id-start: Likewise.
947         * modules/unictype/property-ideographic: Likewise.
948         * modules/unictype/property-ids-binary-operator: Likewise.
949         * modules/unictype/property-ids-trinary-operator: Likewise.
950         * modules/unictype/property-ignorable-control: Likewise.
951         * modules/unictype/property-iso-control: Likewise.
952         * modules/unictype/property-join-control: Likewise.
953         * modules/unictype/property-left-of-pair: Likewise.
954         * modules/unictype/property-line-separator: Likewise.
955         * modules/unictype/property-logical-order-exception: Likewise.
956         * modules/unictype/property-lowercase: Likewise.
957         * modules/unictype/property-math: Likewise.
958         * modules/unictype/property-non-break: Likewise.
959         * modules/unictype/property-not-a-character: Likewise.
960         * modules/unictype/property-numeric: Likewise.
961         * modules/unictype/property-other-alphabetic: Likewise.
962         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
963         * modules/unictype/property-other-grapheme-extend: Likewise.
964         * modules/unictype/property-other-id-continue: Likewise.
965         * modules/unictype/property-other-id-start: Likewise.
966         * modules/unictype/property-other-lowercase: Likewise.
967         * modules/unictype/property-other-math: Likewise.
968         * modules/unictype/property-other-uppercase: Likewise.
969         * modules/unictype/property-paired-punctuation: Likewise.
970         * modules/unictype/property-paragraph-separator: Likewise.
971         * modules/unictype/property-pattern-syntax: Likewise.
972         * modules/unictype/property-pattern-white-space: Likewise.
973         * modules/unictype/property-private-use: Likewise.
974         * modules/unictype/property-punctuation: Likewise.
975         * modules/unictype/property-quotation-mark: Likewise.
976         * modules/unictype/property-radical: Likewise.
977         * modules/unictype/property-sentence-terminal: Likewise.
978         * modules/unictype/property-soft-dotted: Likewise.
979         * modules/unictype/property-space: Likewise.
980         * modules/unictype/property-terminal-punctuation: Likewise.
981         * modules/unictype/property-test: Likewise.
982         * modules/unictype/property-titlecase: Likewise.
983         * modules/unictype/property-unassigned-code-value: Likewise.
984         * modules/unictype/property-unified-ideograph: Likewise.
985         * modules/unictype/property-uppercase: Likewise.
986         * modules/unictype/property-variation-selector: Likewise.
987         * modules/unictype/property-white-space: Likewise.
988         * modules/unictype/property-xid-continue: Likewise.
989         * modules/unictype/property-xid-start: Likewise.
990         * modules/unictype/property-zero-width: Likewise.
991         * modules/unictype/scripts: Likewise.
992         * modules/unictype/syntax-c-ident: Likewise.
993         * modules/unictype/syntax-c-whitespace: Likewise.
994         * modules/unictype/syntax-java-ident: Likewise.
995         * modules/unictype/syntax-java-whitespace: Likewise.
996         * modules/unilbrk/u8-possible-linebreaks: Likewise.
997         * modules/unilbrk/u8-width-linebreaks: Likewise.
998         * modules/unilbrk/u16-possible-linebreaks: Likewise.
999         * modules/unilbrk/u16-width-linebreaks: Likewise.
1000         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1001         * modules/unilbrk/u32-width-linebreaks: Likewise.
1002         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1003         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1004         * modules/uniname/uniname: Likewise.
1005         * modules/uninorm/canonical-decomposition: Likewise.
1006         * modules/uninorm/composition: Likewise.
1007         * modules/uninorm/decomposing-form: Likewise.
1008         * modules/uninorm/decomposition: Likewise.
1009         * modules/uninorm/filter: Likewise.
1010         * modules/uninorm/nfc: Likewise.
1011         * modules/uninorm/nfd: Likewise.
1012         * modules/uninorm/nfkc: Likewise.
1013         * modules/uninorm/nfkd: Likewise.
1014         * modules/uninorm/u8-normalize: Likewise.
1015         * modules/uninorm/u8-normcmp: Likewise.
1016         * modules/uninorm/u8-normcoll: Likewise.
1017         * modules/uninorm/u8-normxfrm: Likewise.
1018         * modules/uninorm/u16-normalize: Likewise.
1019         * modules/uninorm/u16-normcmp: Likewise.
1020         * modules/uninorm/u16-normcoll: Likewise.
1021         * modules/uninorm/u16-normxfrm: Likewise.
1022         * modules/uninorm/u32-normalize: Likewise.
1023         * modules/uninorm/u32-normcmp: Likewise.
1024         * modules/uninorm/u32-normcoll: Likewise.
1025         * modules/uninorm/u32-normxfrm: Likewise.
1026         * modules/unistdio/u8-asnprintf: Likewise.
1027         * modules/unistdio/u8-asprintf: Likewise.
1028         * modules/unistdio/u8-snprintf: Likewise.
1029         * modules/unistdio/u8-sprintf: Likewise.
1030         * modules/unistdio/u8-u8-asnprintf: Likewise.
1031         * modules/unistdio/u8-u8-asprintf: Likewise.
1032         * modules/unistdio/u8-u8-snprintf: Likewise.
1033         * modules/unistdio/u8-u8-sprintf: Likewise.
1034         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1035         * modules/unistdio/u8-u8-vasprintf: Likewise.
1036         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1037         * modules/unistdio/u8-u8-vsprintf: Likewise.
1038         * modules/unistdio/u8-vasnprintf: Likewise.
1039         * modules/unistdio/u8-vasprintf: Likewise.
1040         * modules/unistdio/u8-vsnprintf: Likewise.
1041         * modules/unistdio/u8-vsprintf: Likewise.
1042         * modules/unistdio/u16-asnprintf: Likewise.
1043         * modules/unistdio/u16-asprintf: Likewise.
1044         * modules/unistdio/u16-snprintf: Likewise.
1045         * modules/unistdio/u16-sprintf: Likewise.
1046         * modules/unistdio/u16-u16-asnprintf: Likewise.
1047         * modules/unistdio/u16-u16-asprintf: Likewise.
1048         * modules/unistdio/u16-u16-snprintf: Likewise.
1049         * modules/unistdio/u16-u16-sprintf: Likewise.
1050         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1051         * modules/unistdio/u16-u16-vasprintf: Likewise.
1052         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1053         * modules/unistdio/u16-u16-vsprintf: Likewise.
1054         * modules/unistdio/u16-vasnprintf: Likewise.
1055         * modules/unistdio/u16-vasprintf: Likewise.
1056         * modules/unistdio/u16-vsnprintf: Likewise.
1057         * modules/unistdio/u16-vsprintf: Likewise.
1058         * modules/unistdio/u32-asnprintf: Likewise.
1059         * modules/unistdio/u32-asprintf: Likewise.
1060         * modules/unistdio/u32-snprintf: Likewise.
1061         * modules/unistdio/u32-sprintf: Likewise.
1062         * modules/unistdio/u32-u32-asnprintf: Likewise.
1063         * modules/unistdio/u32-u32-asprintf: Likewise.
1064         * modules/unistdio/u32-u32-snprintf: Likewise.
1065         * modules/unistdio/u32-u32-sprintf: Likewise.
1066         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1067         * modules/unistdio/u32-u32-vasprintf: Likewise.
1068         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1069         * modules/unistdio/u32-u32-vsprintf: Likewise.
1070         * modules/unistdio/u32-vasnprintf: Likewise.
1071         * modules/unistdio/u32-vasprintf: Likewise.
1072         * modules/unistdio/u32-vsnprintf: Likewise.
1073         * modules/unistdio/u32-vsprintf: Likewise.
1074         * modules/unistdio/ulc-asnprintf: Likewise.
1075         * modules/unistdio/ulc-asprintf: Likewise.
1076         * modules/unistdio/ulc-fprintf: Likewise.
1077         * modules/unistdio/ulc-snprintf: Likewise.
1078         * modules/unistdio/ulc-sprintf: Likewise.
1079         * modules/unistdio/ulc-vasnprintf: Likewise.
1080         * modules/unistdio/ulc-vasprintf: Likewise.
1081         * modules/unistdio/ulc-vfprintf: Likewise.
1082         * modules/unistdio/ulc-vsnprintf: Likewise.
1083         * modules/unistdio/ulc-vsprintf: Likewise.
1084         * modules/unistr/u8-check: Likewise.
1085         * modules/unistr/u8-chr: Likewise.
1086         * modules/unistr/u8-cmp: Likewise.
1087         * modules/unistr/u8-cmp2: Likewise.
1088         * modules/unistr/u8-cpy: Likewise.
1089         * modules/unistr/u8-cpy-alloc: Likewise.
1090         * modules/unistr/u8-endswith: Likewise.
1091         * modules/unistr/u8-mblen: Likewise.
1092         * modules/unistr/u8-mbsnlen: Likewise.
1093         * modules/unistr/u8-mbtouc: Likewise.
1094         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1095         * modules/unistr/u8-mbtoucr: Likewise.
1096         * modules/unistr/u8-move: Likewise.
1097         * modules/unistr/u8-next: Likewise.
1098         * modules/unistr/u8-prev: Likewise.
1099         * modules/unistr/u8-set: Likewise.
1100         * modules/unistr/u8-startswith: Likewise.
1101         * modules/unistr/u8-stpcpy: Likewise.
1102         * modules/unistr/u8-stpncpy: Likewise.
1103         * modules/unistr/u8-strcat: Likewise.
1104         * modules/unistr/u8-strchr: Likewise.
1105         * modules/unistr/u8-strcmp: Likewise.
1106         * modules/unistr/u8-strcoll: Likewise.
1107         * modules/unistr/u8-strcpy: Likewise.
1108         * modules/unistr/u8-strcspn: Likewise.
1109         * modules/unistr/u8-strdup: Likewise.
1110         * modules/unistr/u8-strlen: Likewise.
1111         * modules/unistr/u8-strmblen: Likewise.
1112         * modules/unistr/u8-strmbtouc: Likewise.
1113         * modules/unistr/u8-strncat: Likewise.
1114         * modules/unistr/u8-strncmp: Likewise.
1115         * modules/unistr/u8-strncpy: Likewise.
1116         * modules/unistr/u8-strnlen: Likewise.
1117         * modules/unistr/u8-strpbrk: Likewise.
1118         * modules/unistr/u8-strrchr: Likewise.
1119         * modules/unistr/u8-strspn: Likewise.
1120         * modules/unistr/u8-strstr: Likewise.
1121         * modules/unistr/u8-strtok: Likewise.
1122         * modules/unistr/u8-to-u16: Likewise.
1123         * modules/unistr/u8-to-u32: Likewise.
1124         * modules/unistr/u8-uctomb: Likewise.
1125         * modules/unistr/u16-check: Likewise.
1126         * modules/unistr/u16-chr: Likewise.
1127         * modules/unistr/u16-cmp: Likewise.
1128         * modules/unistr/u16-cmp2: Likewise.
1129         * modules/unistr/u16-cpy: Likewise.
1130         * modules/unistr/u16-cpy-alloc: Likewise.
1131         * modules/unistr/u16-endswith: Likewise.
1132         * modules/unistr/u16-mblen: Likewise.
1133         * modules/unistr/u16-mbsnlen: Likewise.
1134         * modules/unistr/u16-mbtouc: Likewise.
1135         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1136         * modules/unistr/u16-mbtoucr: Likewise.
1137         * modules/unistr/u16-move: Likewise.
1138         * modules/unistr/u16-next: Likewise.
1139         * modules/unistr/u16-prev: Likewise.
1140         * modules/unistr/u16-set: Likewise.
1141         * modules/unistr/u16-startswith: Likewise.
1142         * modules/unistr/u16-stpcpy: Likewise.
1143         * modules/unistr/u16-stpncpy: Likewise.
1144         * modules/unistr/u16-strcat: Likewise.
1145         * modules/unistr/u16-strchr: Likewise.
1146         * modules/unistr/u16-strcmp: Likewise.
1147         * modules/unistr/u16-strcoll: Likewise.
1148         * modules/unistr/u16-strcpy: Likewise.
1149         * modules/unistr/u16-strcspn: Likewise.
1150         * modules/unistr/u16-strdup: Likewise.
1151         * modules/unistr/u16-strlen: Likewise.
1152         * modules/unistr/u16-strmblen: Likewise.
1153         * modules/unistr/u16-strmbtouc: Likewise.
1154         * modules/unistr/u16-strncat: Likewise.
1155         * modules/unistr/u16-strncmp: Likewise.
1156         * modules/unistr/u16-strncpy: Likewise.
1157         * modules/unistr/u16-strnlen: Likewise.
1158         * modules/unistr/u16-strpbrk: Likewise.
1159         * modules/unistr/u16-strrchr: Likewise.
1160         * modules/unistr/u16-strspn: Likewise.
1161         * modules/unistr/u16-strstr: Likewise.
1162         * modules/unistr/u16-strtok: Likewise.
1163         * modules/unistr/u16-to-u32: Likewise.
1164         * modules/unistr/u16-to-u8: Likewise.
1165         * modules/unistr/u16-uctomb: Likewise.
1166         * modules/unistr/u32-check: Likewise.
1167         * modules/unistr/u32-chr: Likewise.
1168         * modules/unistr/u32-cmp: Likewise.
1169         * modules/unistr/u32-cmp2: Likewise.
1170         * modules/unistr/u32-cpy: Likewise.
1171         * modules/unistr/u32-cpy-alloc: Likewise.
1172         * modules/unistr/u32-endswith: Likewise.
1173         * modules/unistr/u32-mblen: Likewise.
1174         * modules/unistr/u32-mbsnlen: Likewise.
1175         * modules/unistr/u32-mbtouc: Likewise.
1176         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1177         * modules/unistr/u32-mbtoucr: Likewise.
1178         * modules/unistr/u32-move: Likewise.
1179         * modules/unistr/u32-next: Likewise.
1180         * modules/unistr/u32-prev: Likewise.
1181         * modules/unistr/u32-set: Likewise.
1182         * modules/unistr/u32-startswith: Likewise.
1183         * modules/unistr/u32-stpcpy: Likewise.
1184         * modules/unistr/u32-stpncpy: Likewise.
1185         * modules/unistr/u32-strcat: Likewise.
1186         * modules/unistr/u32-strchr: Likewise.
1187         * modules/unistr/u32-strcmp: Likewise.
1188         * modules/unistr/u32-strcoll: Likewise.
1189         * modules/unistr/u32-strcpy: Likewise.
1190         * modules/unistr/u32-strcspn: Likewise.
1191         * modules/unistr/u32-strdup: Likewise.
1192         * modules/unistr/u32-strlen: Likewise.
1193         * modules/unistr/u32-strmblen: Likewise.
1194         * modules/unistr/u32-strmbtouc: Likewise.
1195         * modules/unistr/u32-strncat: Likewise.
1196         * modules/unistr/u32-strncmp: Likewise.
1197         * modules/unistr/u32-strncpy: Likewise.
1198         * modules/unistr/u32-strnlen: Likewise.
1199         * modules/unistr/u32-strpbrk: Likewise.
1200         * modules/unistr/u32-strrchr: Likewise.
1201         * modules/unistr/u32-strspn: Likewise.
1202         * modules/unistr/u32-strstr: Likewise.
1203         * modules/unistr/u32-strtok: Likewise.
1204         * modules/unistr/u32-to-u16: Likewise.
1205         * modules/unistr/u32-to-u8: Likewise.
1206         * modules/unistr/u32-uctomb: Likewise.
1207         * modules/uniwbrk/u8-wordbreaks: Likewise.
1208         * modules/uniwbrk/u16-wordbreaks: Likewise.
1209         * modules/uniwbrk/u32-wordbreaks: Likewise.
1210         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1211         * modules/uniwbrk/wordbreak-property: Likewise.
1212         * modules/uniwidth/u8-strwidth: Likewise.
1213         * modules/uniwidth/u8-width: Likewise.
1214         * modules/uniwidth/u16-strwidth: Likewise.
1215         * modules/uniwidth/u16-width: Likewise.
1216         * modules/uniwidth/u32-strwidth: Likewise.
1217         * modules/uniwidth/u32-width: Likewise.
1218         * modules/uniwidth/width: Likewise.
1219         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1220         with $(LIBUNISTRING).
1221         * modules/unicase/ignorable-tests: Likewise.
1222         * modules/unicase/locale-language-tests: Likewise.
1223         * modules/unicase/tolower-tests: Likewise.
1224         * modules/unicase/totitle-tests: Likewise.
1225         * modules/unicase/toupper-tests: Likewise.
1226         * modules/unicase/u8-casecmp-tests: Likewise.
1227         * modules/unicase/u8-casecoll-tests: Likewise.
1228         * modules/unicase/u8-casefold-tests: Likewise.
1229         * modules/unicase/u8-is-cased-tests: Likewise.
1230         * modules/unicase/u8-is-casefolded-tests: Likewise.
1231         * modules/unicase/u8-is-lowercase-tests: Likewise.
1232         * modules/unicase/u8-is-titlecase-tests: Likewise.
1233         * modules/unicase/u8-is-uppercase-tests: Likewise.
1234         * modules/unicase/u8-tolower-tests: Likewise.
1235         * modules/unicase/u8-totitle-tests: Likewise.
1236         * modules/unicase/u8-toupper-tests: Likewise.
1237         * modules/unicase/u16-casecmp-tests: Likewise.
1238         * modules/unicase/u16-casecoll-tests: Likewise.
1239         * modules/unicase/u16-casefold-tests: Likewise.
1240         * modules/unicase/u16-is-cased-tests: Likewise.
1241         * modules/unicase/u16-is-casefolded-tests: Likewise.
1242         * modules/unicase/u16-is-lowercase-tests: Likewise.
1243         * modules/unicase/u16-is-titlecase-tests: Likewise.
1244         * modules/unicase/u16-is-uppercase-tests: Likewise.
1245         * modules/unicase/u16-tolower-tests: Likewise.
1246         * modules/unicase/u16-totitle-tests: Likewise.
1247         * modules/unicase/u16-toupper-tests: Likewise.
1248         * modules/unicase/u32-casecmp-tests: Likewise.
1249         * modules/unicase/u32-casecoll-tests: Likewise.
1250         * modules/unicase/u32-casefold-tests: Likewise.
1251         * modules/unicase/u32-is-cased-tests: Likewise.
1252         * modules/unicase/u32-is-casefolded-tests: Likewise.
1253         * modules/unicase/u32-is-lowercase-tests: Likewise.
1254         * modules/unicase/u32-is-titlecase-tests: Likewise.
1255         * modules/unicase/u32-is-uppercase-tests: Likewise.
1256         * modules/unicase/u32-tolower-tests: Likewise.
1257         * modules/unicase/u32-totitle-tests: Likewise.
1258         * modules/unicase/u32-toupper-tests: Likewise.
1259         * modules/unicase/ulc-casecmp-tests: Likewise.
1260         * modules/unicase/ulc-casecoll-tests: Likewise.
1261         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1262         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1263         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1264         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1265         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1266         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1267         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1268         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1269         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1270         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1271         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1272         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1273         * modules/unictype/bidicategory-byname-tests: Likewise.
1274         * modules/unictype/bidicategory-name-tests: Likewise.
1275         * modules/unictype/bidicategory-of-tests: Likewise.
1276         * modules/unictype/bidicategory-test-tests: Likewise.
1277         * modules/unictype/block-list-tests: Likewise.
1278         * modules/unictype/block-of-tests: Likewise.
1279         * modules/unictype/block-test-tests: Likewise.
1280         * modules/unictype/category-C-tests: Likewise.
1281         * modules/unictype/category-Cc-tests: Likewise.
1282         * modules/unictype/category-Cf-tests: Likewise.
1283         * modules/unictype/category-Cn-tests: Likewise.
1284         * modules/unictype/category-Co-tests: Likewise.
1285         * modules/unictype/category-Cs-tests: Likewise.
1286         * modules/unictype/category-L-tests: Likewise.
1287         * modules/unictype/category-Ll-tests: Likewise.
1288         * modules/unictype/category-Lm-tests: Likewise.
1289         * modules/unictype/category-Lo-tests: Likewise.
1290         * modules/unictype/category-Lt-tests: Likewise.
1291         * modules/unictype/category-Lu-tests: Likewise.
1292         * modules/unictype/category-M-tests: Likewise.
1293         * modules/unictype/category-Mc-tests: Likewise.
1294         * modules/unictype/category-Me-tests: Likewise.
1295         * modules/unictype/category-Mn-tests: Likewise.
1296         * modules/unictype/category-N-tests: Likewise.
1297         * modules/unictype/category-Nd-tests: Likewise.
1298         * modules/unictype/category-Nl-tests: Likewise.
1299         * modules/unictype/category-No-tests: Likewise.
1300         * modules/unictype/category-P-tests: Likewise.
1301         * modules/unictype/category-Pc-tests: Likewise.
1302         * modules/unictype/category-Pd-tests: Likewise.
1303         * modules/unictype/category-Pe-tests: Likewise.
1304         * modules/unictype/category-Pf-tests: Likewise.
1305         * modules/unictype/category-Pi-tests: Likewise.
1306         * modules/unictype/category-Po-tests: Likewise.
1307         * modules/unictype/category-Ps-tests: Likewise.
1308         * modules/unictype/category-S-tests: Likewise.
1309         * modules/unictype/category-Sc-tests: Likewise.
1310         * modules/unictype/category-Sk-tests: Likewise.
1311         * modules/unictype/category-Sm-tests: Likewise.
1312         * modules/unictype/category-So-tests: Likewise.
1313         * modules/unictype/category-Z-tests: Likewise.
1314         * modules/unictype/category-Zl-tests: Likewise.
1315         * modules/unictype/category-Zp-tests: Likewise.
1316         * modules/unictype/category-Zs-tests: Likewise.
1317         * modules/unictype/category-and-not-tests: Likewise.
1318         * modules/unictype/category-and-tests: Likewise.
1319         * modules/unictype/category-byname-tests: Likewise.
1320         * modules/unictype/category-name-tests: Likewise.
1321         * modules/unictype/category-none-tests: Likewise.
1322         * modules/unictype/category-of-tests: Likewise.
1323         * modules/unictype/category-or-tests: Likewise.
1324         * modules/unictype/category-test-withtable-tests: Likewise.
1325         * modules/unictype/combining-class-tests: Likewise.
1326         * modules/unictype/ctype-alnum-tests: Likewise.
1327         * modules/unictype/ctype-alpha-tests: Likewise.
1328         * modules/unictype/ctype-blank-tests: Likewise.
1329         * modules/unictype/ctype-cntrl-tests: Likewise.
1330         * modules/unictype/ctype-digit-tests: Likewise.
1331         * modules/unictype/ctype-graph-tests: Likewise.
1332         * modules/unictype/ctype-lower-tests: Likewise.
1333         * modules/unictype/ctype-print-tests: Likewise.
1334         * modules/unictype/ctype-punct-tests: Likewise.
1335         * modules/unictype/ctype-space-tests: Likewise.
1336         * modules/unictype/ctype-upper-tests: Likewise.
1337         * modules/unictype/ctype-xdigit-tests: Likewise.
1338         * modules/unictype/decimal-digit-tests: Likewise.
1339         * modules/unictype/digit-tests: Likewise.
1340         * modules/unictype/mirror-tests: Likewise.
1341         * modules/unictype/numeric-tests: Likewise.
1342         * modules/unictype/property-alphabetic-tests: Likewise.
1343         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1344         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1345         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1346         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1347         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1348         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1349         * modules/unictype/property-bidi-control-tests: Likewise.
1350         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1351         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1352         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1353         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1354         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1355         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1356         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1357         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1358         * modules/unictype/property-bidi-pdf-tests: Likewise.
1359         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1360         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1361         * modules/unictype/property-byname-tests: Likewise.
1362         * modules/unictype/property-combining-tests: Likewise.
1363         * modules/unictype/property-composite-tests: Likewise.
1364         * modules/unictype/property-currency-symbol-tests: Likewise.
1365         * modules/unictype/property-dash-tests: Likewise.
1366         * modules/unictype/property-decimal-digit-tests: Likewise.
1367         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1368         * modules/unictype/property-deprecated-tests: Likewise.
1369         * modules/unictype/property-diacritic-tests: Likewise.
1370         * modules/unictype/property-extender-tests: Likewise.
1371         * modules/unictype/property-format-control-tests: Likewise.
1372         * modules/unictype/property-grapheme-base-tests: Likewise.
1373         * modules/unictype/property-grapheme-extend-tests: Likewise.
1374         * modules/unictype/property-grapheme-link-tests: Likewise.
1375         * modules/unictype/property-hex-digit-tests: Likewise.
1376         * modules/unictype/property-hyphen-tests: Likewise.
1377         * modules/unictype/property-id-continue-tests: Likewise.
1378         * modules/unictype/property-id-start-tests: Likewise.
1379         * modules/unictype/property-ideographic-tests: Likewise.
1380         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1381         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1382         * modules/unictype/property-ignorable-control-tests: Likewise.
1383         * modules/unictype/property-iso-control-tests: Likewise.
1384         * modules/unictype/property-join-control-tests: Likewise.
1385         * modules/unictype/property-left-of-pair-tests: Likewise.
1386         * modules/unictype/property-line-separator-tests: Likewise.
1387         * modules/unictype/property-logical-order-exception-tests: Likewise.
1388         * modules/unictype/property-lowercase-tests: Likewise.
1389         * modules/unictype/property-math-tests: Likewise.
1390         * modules/unictype/property-non-break-tests: Likewise.
1391         * modules/unictype/property-not-a-character-tests: Likewise.
1392         * modules/unictype/property-numeric-tests: Likewise.
1393         * modules/unictype/property-other-alphabetic-tests: Likewise.
1394         * modules/unictype/property-other-default-ignorable-code-point-tests:
1395         Likewise.
1396         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1397         * modules/unictype/property-other-id-continue-tests: Likewise.
1398         * modules/unictype/property-other-id-start-tests: Likewise.
1399         * modules/unictype/property-other-lowercase-tests: Likewise.
1400         * modules/unictype/property-other-math-tests: Likewise.
1401         * modules/unictype/property-other-uppercase-tests: Likewise.
1402         * modules/unictype/property-paired-punctuation-tests: Likewise.
1403         * modules/unictype/property-paragraph-separator-tests: Likewise.
1404         * modules/unictype/property-pattern-syntax-tests: Likewise.
1405         * modules/unictype/property-pattern-white-space-tests: Likewise.
1406         * modules/unictype/property-private-use-tests: Likewise.
1407         * modules/unictype/property-punctuation-tests: Likewise.
1408         * modules/unictype/property-quotation-mark-tests: Likewise.
1409         * modules/unictype/property-radical-tests: Likewise.
1410         * modules/unictype/property-sentence-terminal-tests: Likewise.
1411         * modules/unictype/property-soft-dotted-tests: Likewise.
1412         * modules/unictype/property-space-tests: Likewise.
1413         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1414         * modules/unictype/property-test-tests: Likewise.
1415         * modules/unictype/property-titlecase-tests: Likewise.
1416         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1417         * modules/unictype/property-unified-ideograph-tests: Likewise.
1418         * modules/unictype/property-uppercase-tests: Likewise.
1419         * modules/unictype/property-variation-selector-tests: Likewise.
1420         * modules/unictype/property-white-space-tests: Likewise.
1421         * modules/unictype/property-xid-continue-tests: Likewise.
1422         * modules/unictype/property-xid-start-tests: Likewise.
1423         * modules/unictype/property-zero-width-tests: Likewise.
1424         * modules/unictype/scripts-tests: Likewise.
1425         * modules/unictype/syntax-c-ident-tests: Likewise.
1426         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1427         * modules/unictype/syntax-java-ident-tests: Likewise.
1428         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1429         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1430         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1431         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1432         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1433         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1434         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1435         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1436         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1437         * modules/uniname/uniname-tests: Likewise.
1438         * modules/uninorm/canonical-decomposition-tests: Likewise.
1439         * modules/uninorm/compat-decomposition-tests: Likewise.
1440         * modules/uninorm/composition-tests: Likewise.
1441         * modules/uninorm/decomposing-form-tests: Likewise.
1442         * modules/uninorm/decomposition-tests: Likewise.
1443         * modules/uninorm/filter-tests: Likewise.
1444         * modules/uninorm/nfc-tests: Likewise.
1445         * modules/uninorm/nfd-tests: Likewise.
1446         * modules/uninorm/nfkc-tests: Likewise.
1447         * modules/uninorm/nfkd-tests: Likewise.
1448         * modules/uninorm/u8-normcmp-tests: Likewise.
1449         * modules/uninorm/u8-normcoll-tests: Likewise.
1450         * modules/uninorm/u16-normcmp-tests: Likewise.
1451         * modules/uninorm/u16-normcoll-tests: Likewise.
1452         * modules/uninorm/u32-normcmp-tests: Likewise.
1453         * modules/uninorm/u32-normcoll-tests: Likewise.
1454         * modules/unistdio/u8-asnprintf-tests: Likewise.
1455         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1456         * modules/unistdio/u8-vasprintf-tests: Likewise.
1457         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1458         * modules/unistdio/u8-vsprintf-tests: Likewise.
1459         * modules/unistdio/u16-asnprintf-tests: Likewise.
1460         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1461         * modules/unistdio/u16-vasprintf-tests: Likewise.
1462         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1463         * modules/unistdio/u16-vsprintf-tests: Likewise.
1464         * modules/unistdio/u32-asnprintf-tests: Likewise.
1465         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1466         * modules/unistdio/u32-vasprintf-tests: Likewise.
1467         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1468         * modules/unistdio/u32-vsprintf-tests: Likewise.
1469         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1470         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1471         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1472         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1473         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1474         * modules/unistr/u8-check-tests: Likewise.
1475         * modules/unistr/u8-chr-tests: Likewise.
1476         * modules/unistr/u8-cmp-tests: Likewise.
1477         * modules/unistr/u8-cmp2-tests: Likewise.
1478         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1479         * modules/unistr/u8-cpy-tests: Likewise.
1480         * modules/unistr/u8-mblen-tests: Likewise.
1481         * modules/unistr/u8-mbsnlen-tests: Likewise.
1482         * modules/unistr/u8-mbtouc-tests: Likewise.
1483         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1484         * modules/unistr/u8-mbtoucr-tests: Likewise.
1485         * modules/unistr/u8-move-tests: Likewise.
1486         * modules/unistr/u8-next-tests: Likewise.
1487         * modules/unistr/u8-prev-tests: Likewise.
1488         * modules/unistr/u8-set-tests: Likewise.
1489         * modules/unistr/u8-stpcpy-tests: Likewise.
1490         * modules/unistr/u8-stpncpy-tests: Likewise.
1491         * modules/unistr/u8-strcat-tests: Likewise.
1492         * modules/unistr/u8-strcmp-tests: Likewise.
1493         * modules/unistr/u8-strcoll-tests: Likewise.
1494         * modules/unistr/u8-strcpy-tests: Likewise.
1495         * modules/unistr/u8-strdup-tests: Likewise.
1496         * modules/unistr/u8-strlen-tests: Likewise.
1497         * modules/unistr/u8-strmblen-tests: Likewise.
1498         * modules/unistr/u8-strmbtouc-tests: Likewise.
1499         * modules/unistr/u8-strncat-tests: Likewise.
1500         * modules/unistr/u8-strncmp-tests: Likewise.
1501         * modules/unistr/u8-strncpy-tests: Likewise.
1502         * modules/unistr/u8-strnlen-tests: Likewise.
1503         * modules/unistr/u8-to-u16-tests: Likewise.
1504         * modules/unistr/u8-to-u32-tests: Likewise.
1505         * modules/unistr/u8-uctomb-tests: Likewise.
1506         * modules/unistr/u16-check-tests: Likewise.
1507         * modules/unistr/u16-chr-tests: Likewise.
1508         * modules/unistr/u16-cmp-tests: Likewise.
1509         * modules/unistr/u16-cmp2-tests: Likewise.
1510         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1511         * modules/unistr/u16-cpy-tests: Likewise.
1512         * modules/unistr/u16-mblen-tests: Likewise.
1513         * modules/unistr/u16-mbsnlen-tests: Likewise.
1514         * modules/unistr/u16-mbtouc-tests: Likewise.
1515         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1516         * modules/unistr/u16-mbtoucr-tests: Likewise.
1517         * modules/unistr/u16-move-tests: Likewise.
1518         * modules/unistr/u16-next-tests: Likewise.
1519         * modules/unistr/u16-prev-tests: Likewise.
1520         * modules/unistr/u16-set-tests: Likewise.
1521         * modules/unistr/u16-stpcpy-tests: Likewise.
1522         * modules/unistr/u16-stpncpy-tests: Likewise.
1523         * modules/unistr/u16-strcat-tests: Likewise.
1524         * modules/unistr/u16-strcmp-tests: Likewise.
1525         * modules/unistr/u16-strcoll-tests: Likewise.
1526         * modules/unistr/u16-strcpy-tests: Likewise.
1527         * modules/unistr/u16-strdup-tests: Likewise.
1528         * modules/unistr/u16-strlen-tests: Likewise.
1529         * modules/unistr/u16-strmblen-tests: Likewise.
1530         * modules/unistr/u16-strmbtouc-tests: Likewise.
1531         * modules/unistr/u16-strncat-tests: Likewise.
1532         * modules/unistr/u16-strncmp-tests: Likewise.
1533         * modules/unistr/u16-strncpy-tests: Likewise.
1534         * modules/unistr/u16-strnlen-tests: Likewise.
1535         * modules/unistr/u16-to-u32-tests: Likewise.
1536         * modules/unistr/u16-to-u8-tests: Likewise.
1537         * modules/unistr/u16-uctomb-tests: Likewise.
1538         * modules/unistr/u32-check-tests: Likewise.
1539         * modules/unistr/u32-chr-tests: Likewise.
1540         * modules/unistr/u32-cmp-tests: Likewise.
1541         * modules/unistr/u32-cmp2-tests: Likewise.
1542         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1543         * modules/unistr/u32-cpy-tests: Likewise.
1544         * modules/unistr/u32-mblen-tests: Likewise.
1545         * modules/unistr/u32-mbsnlen-tests: Likewise.
1546         * modules/unistr/u32-mbtouc-tests: Likewise.
1547         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1548         * modules/unistr/u32-mbtoucr-tests: Likewise.
1549         * modules/unistr/u32-move-tests: Likewise.
1550         * modules/unistr/u32-next-tests: Likewise.
1551         * modules/unistr/u32-prev-tests: Likewise.
1552         * modules/unistr/u32-set-tests: Likewise.
1553         * modules/unistr/u32-stpcpy-tests: Likewise.
1554         * modules/unistr/u32-stpncpy-tests: Likewise.
1555         * modules/unistr/u32-strcat-tests: Likewise.
1556         * modules/unistr/u32-strcmp-tests: Likewise.
1557         * modules/unistr/u32-strcoll-tests: Likewise.
1558         * modules/unistr/u32-strcpy-tests: Likewise.
1559         * modules/unistr/u32-strdup-tests: Likewise.
1560         * modules/unistr/u32-strlen-tests: Likewise.
1561         * modules/unistr/u32-strmblen-tests: Likewise.
1562         * modules/unistr/u32-strmbtouc-tests: Likewise.
1563         * modules/unistr/u32-strncat-tests: Likewise.
1564         * modules/unistr/u32-strncmp-tests: Likewise.
1565         * modules/unistr/u32-strncpy-tests: Likewise.
1566         * modules/unistr/u32-strnlen-tests: Likewise.
1567         * modules/unistr/u32-to-u16-tests: Likewise.
1568         * modules/unistr/u32-to-u8-tests: Likewise.
1569         * modules/unistr/u32-uctomb-tests: Likewise.
1570         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1571         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1572         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1573         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1574         * modules/uniwidth/u8-strwidth-tests: Likewise.
1575         * modules/uniwidth/u8-width-tests: Likewise.
1576         * modules/uniwidth/u16-strwidth-tests: Likewise.
1577         * modules/uniwidth/u16-width-tests: Likewise.
1578         * modules/uniwidth/u32-strwidth-tests: Likewise.
1579         * modules/uniwidth/u32-width-tests: Likewise.
1580         * modules/uniwidth/width-tests: Likewise.
1581
1582 2010-05-18  Richard Jones  <rjones@redhat.com>
1583
1584         doc: users.txt: list hivex
1585         * users.txt: Add hivex.
1586
1587 2010-05-18  Richard Jones  <rjones@redhat.com>
1588
1589         doc: users.txt: list febootstrap
1590         * users.txt: Add febootstrap.
1591
1592 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1593
1594         bootstrap: fix an error when gnulib is not used as a git submodule
1595         * build-aux/bootstrap (gnulib_path): If its length is zero then
1596         assign "gnulib" to it.
1597         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1598
1599 2010-05-16  Bruno Haible  <bruno@clisp.org>
1600
1601         Avoid autoconf warnings about AM_ICONV.
1602         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1603         2.64.
1604
1605 2010-05-16  Bruno Haible  <bruno@clisp.org>
1606
1607         absolute-header: Make the macro usable in more situations.
1608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1609         from gl_ABSOLUTE_HEADER.
1610         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1611
1612 2010-05-16  James Youngman  <jay@gnu.org>
1613
1614         doc: update users.txt
1615         * users.txt: Add CSSC.
1616
1617 2010-05-16  Jim Meyering  <meyering@redhat.com>
1618
1619         init.sh: fix an error in the previous change; add more comments
1620         * tests/init.sh: Compare exit code in loop against 9, not 2.
1621         Patch by Bruno Haible.
1622         Make the two tests more similar by adding an empty "then" clause.
1623         Add comments.
1624
1625         init.sh: avoid unnecessary shell re-exec
1626         * tests/init.sh: Improve the re-exec-required check to first test the
1627         current shell.  If it passes the test, do not search for a shell that
1628         does pass, and do not re-exec.  This test is particularly contorted to
1629         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
1630         of $(...) evokes a syntax error and causes immediate shell exit with
1631         status 2.  Bruno Haible reported that the re-exec made it impossible
1632         to single-step through any init.sh-using script.
1633
1634 2010-05-16  Bruno Haible  <bruno@clisp.org>
1635
1636         Fix collision between gnulib's and libintl's printf replacements.
1637         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
1638         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
1639         (printf): When using GNU C, map the __printf__ function to rpl_printf
1640         via __asm__. When not using GNU C, define rpl_printf instead of
1641         __printf__.
1642         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1643         commit.
1644         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1645         commit.
1646         * m4/asm-underscore.m4: New file.
1647         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1648         * modules/stdio (Files): Add m4/asm-underscore.m4.
1649         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1650         Reported by Ben Pfaff.
1651
1652 2010-05-16  Bruno Haible  <bruno@clisp.org>
1653
1654         verify: Avoid skipping the test on openSUSE 11.0.
1655         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1656
1657 2010-05-13  Bruno Haible  <bruno@clisp.org>
1658
1659         Avoid useless warnings from G++.
1660         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1661         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1663
1664 2010-05-11  Jim Meyering  <meyering@redhat.com>
1665
1666         maint.mk: tweak preceding change
1667         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1668         regexps tighter by anchoring at EOL, and make the new group "shy"
1669         for slightly decreased overhead.
1670
1671 2010-05-11  Eric Blake  <eblake@redhat.com>
1672
1673         maint.mk: gnulib doesn't guarantee NSIG
1674         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1675
1676 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1677
1678         test-pwrite.c: Remove unused variable declaration.
1679         * tests/test-pwrite.c (main): Remove read_buf declaration.
1680
1681         Remove useless test-pwrite.sh file.
1682         * tests/test-pwrite.sh: Delete file.
1683         * modules/pwrite-tests: Remove references.
1684         Reported by Bruno Haible.
1685
1686 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1687
1688         init.sh: fix a typo
1689         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1690
1691 2010-05-10  Jim Meyering  <meyering@redhat.com>
1692
1693         maint.mk: avoid using a temporary file in the always-defined-macros check
1694         * top/maint.mk (.re-defmac): Remove rule.
1695         (gl_trap_): Remove definition.
1696         (sc_prohibit_always-defined_macros): Rewrite not to create and
1697         depend on a temporary file.  Instead, depend on GNU grep's ability
1698         to read a list of regular expressions from stdin when given "-f -".
1699
1700 2010-05-09  Bruno Haible  <bruno@clisp.org>
1701
1702         Update to GNU gettext 0.18, part 1.
1703         * m4/gettext.m4: Update to GNU gettext 0.18.
1704         * m4/intl.m4: Likewise.
1705         * m4/po.m4: Likewise.
1706         * modules/gettext (Files): Add m4/fcntl-o.m4.
1707         (configure.ac): Require gettext infrastructure from version 0.18.
1708
1709 2010-05-09  Jim Meyering  <meyering@redhat.com>
1710
1711         init.sh: enable MALLOC_PERTURB_
1712         * tests/init.sh: Enable glibc's malloc-perturbing option.
1713
1714         maint.mk: improve sc_cross_check_PATH_usage_in_tests
1715         With my recent change in init.sh from the two-line form:
1716             -#   : ${srcdir=.}
1717             -#   . "$srcdir/init.sh"; path_prepend_ .
1718             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
1719         I noticed that using the one-line form would cause this test
1720         to fail with a false-positive, or to stop working altogether,
1721         depending on whether help-version changed or all the tests did.
1722         * top/maint.mk (_hv_regex): Remove this definition.
1723         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
1724         (_hv_regex_strong): Use a stronger regex to check for conformance.
1725         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
1726         Give a separate diagnostic for lack of conforming use.
1727
1728         maint.mk: prohibit definition of symbols defined by gnulib
1729         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
1730         definition of symbols defined by gnulib.
1731
1732 2010-05-09  Bruno Haible  <bruno@clisp.org>
1733
1734         acl: Avoid test failure on Cygwin-hosted mingw.
1735         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
1736
1737 2010-05-09  Bruno Haible  <bruno@clisp.org>
1738
1739         error: Use system's fcntl function.
1740         * lib/error.c (fcntl): Undefine.
1741
1742 2010-05-09  Jim Meyering  <meyering@redhat.com>
1743
1744         verify: adjust formatting to be more consistent
1745         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
1746         argument-list '('s, and after one comma.
1747
1748 2010-05-09  Bruno Haible  <bruno@clisp.org>
1749
1750         error: More reliable output on mingw.
1751         * lib/error.c: Include <windows.h>.
1752         (is_open): New function.
1753         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
1754         defined.
1755
1756 2010-05-09  Bruno Haible  <bruno@clisp.org>
1757
1758         vasnprintf: Fix syntax errors in libintl build on mingw.
1759         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
1760         pad_ourselves and prec_ourselves after use.
1761
1762 2010-05-08  Bruno Haible  <bruno@clisp.org>
1763
1764         * lib/config.charset: Update comments for Cygwin 1.7.
1765         * lib/localcharset.c: Likewise.
1766
1767 2010-05-07  Jim Meyering  <meyering@redhat.com>
1768
1769         init.sh: improve comments
1770         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
1771         . "${srcdir=.}/init.sh"; path_prepend_ .
1772         Add a note about path_prepend_ and the alternative of using
1773         TESTS_ENVIRONMENT.
1774
1775 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
1776
1777         exclude: Unescape hashed patterns in wildcard mode.
1778         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
1779         to the hash list.
1780         * tests/test-exclude8.sh: New test case.
1781         * modules/exclude-tests: Add new test.
1782
1783 2010-05-05  Eric Blake  <eblake@redhat.com>
1784
1785         verify: automate tests
1786         * modules/verify-tests: New module.
1787         * tests/test-verify.sh: New file.
1788         * tests/test-verify.c: Guard each negative test with a unique id.
1789         Also avoid warning about unused left hand of comma expressions.
1790
1791 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1792
1793         Further improvements to verify.h, suggested by Eric Blake.
1794         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
1795         the GL_* versions, to avoid collision with OpenGL.
1796         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
1797         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
1798         than testing merely whether it's defined.
1799
1800         Modify verify.h to pacify gcc -Wredundant_decls.
1801         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
1802         These use the prefix "GL_" since they're likely to be useful elsewhere.
1803         We may need to break them out into a different .h file.
1804         (__COUNTER__): Define to 0 if the compiler doesn't support it.
1805         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
1806         of verify_function__.
1807
1808 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1809
1810         Tests for module pwrite.
1811         * modules/pwrite-tests: New file.
1812         * tests/test-pwrite.sh: New file.
1813         * tests/test-pwrite.c: New file.
1814
1815         New module pwrite.
1816         * lib/unistd.in.h (pwrite): New declaration.
1817         * lib/pwrite.c: New file, from glibc with modifications.
1818         * m4/pwrite.m4: New file.
1819         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
1820         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
1821         REPLACE_PWRITE.
1822         * modules/pwrite: New file.
1823         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
1824         REPLACE_PWRITE.
1825         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
1826         * doc/posix-functions/pwrite.texi: Mention the new module.
1827
1828 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1829
1830         pread: Update documentation.
1831         * doc/posix-functions/pread.texi: Mention the 'pread' module.
1832
1833 2010-05-04  Eric Blake  <eblake@redhat.com>
1834
1835         docs: update cygwin progress
1836         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
1837         this bug.
1838         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
1839         Added in cygwin 1.7.2.
1840         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
1841         Likewise.
1842         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
1843         Likewise.
1844         * doc/glibc-functions/dup3.texi (dup3): Likewise.
1845         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1846         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1847         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
1848         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
1849         Mention nproc module.
1850         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
1851         bug in cygwin 1.7.5 addition.
1852         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
1853         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
1854         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
1855         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
1856         1.7.5.
1857         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
1858         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
1859         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
1860         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
1861         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
1862         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
1863         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
1864         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
1865         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
1866         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
1867         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
1868         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
1869         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
1870         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
1871         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
1872         Likewise.
1873         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
1874         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
1875         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
1876         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
1877         Likewise.
1878         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
1879         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
1880         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
1881         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
1882         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
1883         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
1884         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
1885         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
1886         Likewise.
1887         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
1888         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
1889         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
1890         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
1891         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
1892         Likewise.
1893         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
1894         Likewise.
1895         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
1896         Likewise.
1897         * doc/glibc-functions/xdrrec_endofrecord.texi
1898         (xdrrec_endofrecord): Likewise.
1899         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
1900         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
1901         Likewise.
1902         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
1903         Likewise.
1904
1905 2010-05-04  Jim Meyering  <meyering@redhat.com>
1906
1907         gendocs.sh: make its "-s FILE" option more useful
1908         * build-aux/gendocs.sh: When honoring the -s FILE option, update
1909         $PACKAGE to reflect the probably-different basename of "FILE".
1910
1911 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
1912
1913         bootstrap: don't ignore download_po_files failure
1914         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
1915         failure.
1916
1917 2010-05-03  Jim Meyering  <meyering@redhat.com>
1918
1919         maint.mk: allow to pass options to gendocs.sh
1920         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
1921         (gendocs_options_): New overridable variable.
1922
1923         gnu-web-doc-update: don't ignore configure or build failure
1924         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
1925
1926         announce-gen: backslash-escape '@'s in --help output
1927         * build-aux/announce-gen: Fix syntax errors.
1928
1929         maint.mk, announce-gen: allow project-specific announcement mail headers
1930         * top/maint.mk (translation_project_): Define default.
1931         (announcement_Cc_, announcement_mail_headers_): Likewise.
1932         (announcement): Invoke announce-gen with new --mail-headers option.
1933         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
1934
1935         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
1936         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
1937         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
1938         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
1939         line in the "err2" output file when running "make check" in verbose
1940         mode (i.e., with set -x enabled).
1941
1942 2010-05-03  Bruno Haible  <bruno@clisp.org>
1943
1944         wctob: Fix for weird platforms.
1945         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
1946         argument value.
1947
1948 2010-05-03  Jim Meyering  <meyering@redhat.com>
1949
1950         maint.mk: prohibit unwarranted use of <strings.h>
1951         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
1952         strings.h in a file that does not also use strcasecmp, strncasecmp,
1953         ffs or ffsll.
1954
1955         maint.mk: remove obsolete comments
1956         * top/maint.mk: Remove stale, commented-out rules.
1957
1958 2010-05-02  Bruno Haible  <bruno@clisp.org>
1959
1960         wcwidth: Declare also when it's aliased.
1961         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
1962         macro.
1963
1964 2010-05-02  Bruno Haible  <bruno@clisp.org>
1965
1966         Fix regression from 2010-04-25.
1967         * gnulib-tool (func_modules_transitive_closure): Check the status of
1968         all modules, not only of the tests that are of the form foo-tests where
1969         foo is a module.
1970
1971 2010-05-02  Bruno Haible  <bruno@clisp.org>
1972
1973         wctob: Work around nasty Cygwin 1.7.2 bug.
1974         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
1975         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
1976
1977 2010-05-01  Bruno Haible  <bruno@clisp.org>
1978
1979         fpurge: Sharper test.
1980         * tests/test-fpurge.c (main): Add one more ftell check.
1981         * modules/fpurge-tests (Depends-on): Add ftell.
1982         Suggested by Eric Blake.
1983
1984 2010-05-01  Bruno Haible  <bruno@clisp.org>
1985
1986         ftello: Another test.
1987         * tests/test-ftello3.c: New file.
1988         * modules/ftello-tests (Files): Add it.
1989         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
1990         MOSTLYCLEANFILES.
1991
1992         ftell: Another test.
1993         * tests/test-ftell3.c: New file.
1994         * modules/ftell-tests (Files): Add it.
1995         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
1996         MOSTLYCLEANFILES.
1997
1998 2010-05-01  Bruno Haible  <bruno@clisp.org>
1999
2000         ftell, ftello: Work around Solaris bug.
2001         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2002         * lib/ftello.c: Include stdio-impl.h.
2003         (ftello): On Solaris, when _IOWRT is set, compute the result without
2004         looking at _IOREAD.
2005         * modules/ftello (Files): Add lib/stdio-impl.h.
2006         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2007         * doc/posix-functions/ftello.texi: Likewise.
2008         Reported by Eric Blake.
2009
2010 2010-05-01  Bruno Haible  <bruno@clisp.org>
2011
2012         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2013         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2014         the _IOWRT flag is also set.
2015
2016 2010-05-01  Bruno Haible  <bruno@clisp.org>
2017
2018         Fix doc about a HP-UX stdio bug.
2019         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2020         * doc/posix-functions/ftello.texi: Likewise.
2021
2022 2010-05-01  Bruno Haible  <bruno@clisp.org>
2023
2024         lseek test: Fix failure on Solaris.
2025         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2026         output.
2027
2028 2010-04-30  Jim Meyering  <meyering@redhat.com>
2029
2030         bootstrap: don't ignore failure to generate po*/Makevars
2031         * build-aux/bootstrap (with_gettext): Don't ignore failure
2032         to create po/Makevars or runtime-po/Makevars.
2033
2034 2010-04-29  Eric Blake  <eblake@redhat.com>
2035
2036         headers: relax license to LGPLv2+
2037         * modules/fcntl-h (License): Relax license.
2038         * modules/getopt-posix (License): Likewise.
2039         * modules/locale (License): Likewise.
2040         * modules/math (License): Likewise.
2041         * modules/pty (License): Likewise.
2042         * modules/sched (License): Likewise.
2043         * modules/search (License): Likewise.
2044         * modules/spawn (License): Likewise.
2045         * modules/stdarg (License): Likewise.
2046         * modules/sysexits (License): Likewise.
2047
2048 2010-04-29  Jim Meyering  <meyering@redhat.com>
2049
2050         inttypes: relax license to LGPLv2+
2051         * modules/inttypes (License): Relax license.
2052
2053 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2054
2055         * top/maint.mk (indent): Run twice to produce idempotent results.
2056
2057 2010-04-28  Bruno Haible  <bruno@clisp.org>
2058
2059         getdate: Generate getdate.c in the source directory.
2060         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2061         MOSTLYCLEANFILES.
2062         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2063
2064 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2065
2066         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2067         is not declared as a const *; avoid warnings in that case.
2068
2069 2010-04-28  Eric Blake  <eblake@redhat.com>
2070
2071         canonicalize-lgpl: avoid compiler warning
2072         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2073         declaration' / 'extraneous semicolon' warning with some compilers.
2074         Reported by Andreas Gruenbacher.
2075
2076 2010-04-28  Jim Meyering  <meyering@redhat.com>
2077
2078         init.sh: ensure a more reliable exit status when exiting via trap
2079         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2080         Inspired by patches from Dmitry V. Levin.
2081         Also trap on signal 3 (SIGQUIT).
2082
2083 2010-04-27  Bruno Haible  <bruno@clisp.org>
2084
2085         Update doc about utimes().
2086         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2087         'utimens' module.
2088         Reported by Andreas Gruenbacher <agruen@suse.de>.
2089
2090 2010-04-27  Eric Blake  <eblake@redhat.com>
2091
2092         full-read, full-write: relax license
2093         * modules/full-read (License): Drop to LGPLv2+.
2094         * modules/full-write (License): Likewise.
2095         * modules/safe-read (License): Likewise.
2096         * modules/safe-write (License): Likewise.
2097
2098         pthread: mention library for linking
2099         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2100
2101 2010-04-27  Jim Meyering  <meyering@redhat.com>
2102
2103         maint.mk: fix a bug introduced in last change
2104         * top/maint.mk (gl_assured_headers_): Now that all names are on
2105         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2106         is not anchored to end of word, it should be adequate.
2107
2108         maint.mk: avoid side-effect in latest syntax-check
2109         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2110         to run commands via $(shell...), and hence to incur cost only when
2111         the new rule is actually run.
2112
2113         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2114         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2115         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2116         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2117         (gl_assured_headers_, az_, AZ_): Define.
2118         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2119
2120 2010-04-26  Jim Meyering  <jim@meyering.net>
2121             Bruno Haible  <bruno@clisp.org>
2122
2123         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2124         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2125         Prompted by an exchange with Gilles Espinasse.
2126
2127 2010-04-26  Jim Meyering  <meyering@redhat.com>
2128
2129         git-version-gen: aesthetic tweak
2130         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2131         so that the command remains on a single line.
2132
2133 2010-04-26  Eric Blake  <eblake@redhat.com>
2134
2135         git-version-gen: allow use on EBCDIC hosts
2136         * build-aux/git-version-gen (dirty): Use literal rather than tying
2137         ourselves to ascii.
2138         Reported by Steve Goetze.
2139
2140 2010-04-25  Bruno Haible  <bruno@clisp.org>
2141
2142         netdb: Add support for GNULIB_POSIXCHECK.
2143         * lib/netdb.in.h: Include warn-on-use.h.
2144         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2145         functions are used when GNULIB_POSIXCHECK is defined and the
2146         getaddrinfo module is not in use.
2147         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2148         freeaddrinfo, gai_strerror, getnameinfo are declared.
2149         * modules/netdb (Depends-on): Add warn-on-use.
2150         (Makefile.am): Include warn-on-use.h in netdb.h.
2151
2152 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2153
2154         build: avoid "make check" failure without .git/ directory
2155         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2156         there is no .git/ directory.
2157
2158 2010-04-25  Bruno Haible  <bruno@clisp.org>
2159
2160         ptsname: Fix misuse of ttyname_r.
2161         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2162         of errno.
2163
2164 2010-04-25  Bruno Haible  <bruno@clisp.org>
2165
2166         ttyname_r: Make it work on Solaris 10.
2167         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2168         if the system function has the POSIX declaration. Test whether the
2169         function fails if the buffer is less than 128 bytes large.
2170         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2171         system's ttyname_r function. Provide a reasonably large buffer.
2172         * modules/ttyname_r (Depends-on): Add extensions.
2173         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2174
2175 2010-04-25  Bruno Haible  <bruno@clisp.org>
2176
2177         Use the 'extensions' module for some more functions on Solaris.
2178         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2179         module.
2180         * doc/posix-functions/ctime_r.texi: Likewise.
2181         * doc/posix-functions/getgrgid_r.texi: Likewise.
2182         * doc/posix-functions/getgrnam_r.texi: Likewise.
2183         * doc/posix-functions/getpwnam_r.texi: Likewise.
2184         * doc/posix-functions/getpwuid_r.texi: Likewise.
2185         * doc/posix-functions/readdir_r.texi: Likewise.
2186         * doc/posix-functions/sigwait.texi: Likewise.
2187         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2188         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2189
2190 2010-04-25  Bruno Haible  <bruno@clisp.org>
2191
2192         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2193         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2194         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2195         * lib/ttyname_r.c: Include <limits.h>.
2196         (ttyname_r): Define using the system's ttyname_r function, if it exists
2197         and not on Solaris.
2198         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2199         set.
2200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2201         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2202         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2203         Reported by Simon Josefsson.
2204
2205 2010-04-25  Bruno Haible  <bruno@clisp.org>
2206
2207         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2208         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2209         * doc/posix-functions/ctime_r.texi: Likewise.
2210         * doc/posix-functions/getgrgid_r.texi: Likewise.
2211         * doc/posix-functions/getgrnam_r.texi: Likewise.
2212         * doc/posix-functions/getlogin_r.texi: Likewise.
2213         * doc/posix-functions/getpwnam_r.texi: Likewise.
2214         * doc/posix-functions/getpwuid_r.texi: Likewise.
2215         * doc/posix-functions/readdir_r.texi: Likewise.
2216         * doc/posix-functions/sigwait.texi: Likewise.
2217         * doc/posix-functions/ttyname_r.texi: Likewise.
2218         Reported by Simon Josefsson.
2219
2220 2010-04-25  Bruno Haible  <bruno@clisp.org>
2221
2222         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2223         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2224         also to --create-testdir.
2225         (func_acceptable): Don't consider the status of *-tests modules here.
2226         (func_modules_transitive_closure): Consider it here, before including a
2227         test module.
2228         (func_import, func_create_testdir): Set inc_all_direct_tests,
2229         inc_all_indirect_tests.
2230         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2231         --create-testdir and --create-megatestdir.
2232
2233 2010-04-25  Bruno Haible  <bruno@clisp.org>
2234
2235         gnulib-tool: Add --without-*-tests options.
2236         * gnulib-tool (func_usage): Document the --without-*-tests options.
2237         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2238         excl_unportable_tests): New variables.
2239         Fail if they are specified with --import or --update.
2240         (func_acceptable): Respect the excl_*_tests variables.
2241         (func_import): Set the excl_*_tests variables to empty.
2242
2243 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2244             Bruno Haible  <bruno@clisp.org>
2245
2246         Work around a MacOS X 10.4 bug with openpty.
2247         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2248         * tests/test-openpty.c (main): Close the master side explicitly.
2249
2250 2010-04-25  Bruno Haible  <bruno@clisp.org>
2251
2252         strnlen: Fix a C++ test error on MacOS X and Solaris.
2253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2254         the function is not declared.
2255         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2256         Simon Josefsson.
2257
2258 2010-04-24  Bruno Haible  <bruno@clisp.org>
2259
2260         Avoid a gcc warning.
2261         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2262         of correct type for %08lx directive.
2263         Reported by Eric Blake.
2264
2265 2010-04-24  Bruno Haible  <bruno@clisp.org>
2266
2267         vasnprintf: Correct errno value in case of out-of-memory.
2268         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2269         or sprintf. Use the errno value from SNPRINTF or sprintf.
2270         Reported by Ian Beckwith <ianb@erislabs.net>.
2271
2272 2010-04-24  Bruno Haible  <bruno@clisp.org>
2273
2274         ansi-c++-opt: Find correct compiler when cross-compiling.
2275         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2276         AC_CHECK_PROGS.
2277         Reported by Simon Josefsson.
2278
2279 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2280
2281         vc-list-files: Add support for subversion
2282         * build-aux/vc-list-files: Use "svn list" to generate the list of
2283         files controlled by subversion.
2284
2285 2010-04-23  Jim Meyering  <meyering@redhat.com>
2286
2287         vc-list-files tests: convert to use init.sh
2288         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2289         path_prepend_.
2290         Use Exit, not exit.
2291         Use skip_ rather than open coding it.
2292         Remove trap set-up and compare definitions.
2293         * tests/test-vc-list-files-git.sh: Likewise.
2294         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2295
2296 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2297
2298         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2299         backup files.
2300
2301 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2302
2303         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2304
2305 2010-04-20  Eric Blake  <eblake@redhat.com>
2306
2307         tests: be robust to ignored SIGPIPE
2308         * tests/test-select-in.sh: Consume all output.
2309         * tests/test-lseek.sh: Check correct exit status, while avoiding
2310         EPIPE.
2311
2312 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2313             Bruno Haible  <bruno@clisp.org>
2314
2315         visibility: Don't use -fvisibility if it leads to a warning.
2316         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2317         yes, don't pretend that visibility works if it leads to a warning.
2318         Reported by Mike Gran <spk121@yahoo.com>.
2319
2320 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2321
2322         * build-aux/bootstrap: Use "git -h" for testing for supported options
2323         instead of "git --help".  The short-form option only shows a summary,
2324         and doesn't layout the full man page.  Grep for the full option name
2325         in the summary, too.
2326
2327 2010-04-19  Bruno Haible  <bruno@clisp.org>
2328
2329         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2330         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2331         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2332         mention of RELOCATABLE_STRIP.
2333         Reported by Sylvain Beucler <beuc@beuc.net>.
2334
2335 2010-04-19  Bruno Haible  <bruno@clisp.org>
2336
2337         * lib/diffseq.h: Fix typo in comment.
2338         Reported by Eric Blake.
2339
2340 2010-04-19  Bruno Haible  <bruno@clisp.org>
2341
2342         ioctl: Move autoconf macro to a .m4 file.
2343         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2344         * modules/ioctl (Files): Add it.
2345         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2346         Reported by Ian Beckwith <ianb@erislabs.net>.
2347
2348 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2349             Bruno Haible  <bruno@clisp.org>
2350
2351         diffseq: Accommodate use-case with abstract arrays.
2352         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2353         is not defined.
2354         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2355         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2356
2357 2010-04-18  Bruno Haible  <bruno@clisp.org>
2358
2359         * doc/posix-headers/stdbool.texi: More precise wording.
2360
2361 2010-04-17  Jim Meyering  <meyering@redhat.com>
2362
2363         maint.mk: use gnu-style indentation in an embedded perl script
2364         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2365         Rename variable: s/two/last_two_bytes/
2366
2367 2010-04-16  Eric Blake  <eblake@redhat.com>
2368
2369         test-stdbool: skip test that fails with Solaris CC
2370         * tests/test-stdbool.c (f): Skip test that causes compilation
2371         error under buggy C++ compiler.
2372         * lib/stdbool.in.h: Document the limitation.
2373         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2374
2375         setenv: allow compilation with C++
2376         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2377         register keyword.
2378
2379         stdint: allow test to pass with C++
2380         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2381
2382         getopt: allow compilation with C++
2383         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2384         struct.
2385         * lib/getopt.c (_getopt_internal_r): Use correct type.
2386         Reported by Dagobert Michelson, via Joel E. Denny.
2387
2388 2010-04-16  Bruno Haible  <bruno@clisp.org>
2389
2390         Override netdb.h always.
2391         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2392         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2393         Reported by Ludovic Courtès <ludo@gnu.org>.
2394
2395 2010-04-15  Bruno Haible  <bruno@clisp.org>
2396
2397         openpty: Fix mistake from 2010-03-21.
2398         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2399         Reported by Simon Josefsson.
2400
2401 2010-04-15  Eric Blake  <eblake@redhat.com>
2402
2403         test-forkpty: fix expected signature
2404         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2405         Reported by Simon Josefsson.
2406
2407 2010-04-15  Jim Meyering  <meyering@redhat.com>
2408
2409         maint.mk: texinfo_suffix_re_: correct the default regexp
2410         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2411
2412         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2413         make it configurable via texinfo_suffix_re_.
2414
2415 2010-04-14  Eric Blake  <eblake@redhat.com>
2416
2417         strtok_r: relax license to LGPLv2+
2418         * modules/strtok_r (License): Relax license.
2419         Reported by Matthias Bolte.
2420
2421 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2422
2423         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2424         version 1.4.4 by default instead of requiring the libgcrypt
2425         version used during build.  This makes it possible to use the
2426         application with older but still binary compatible libgcrypt
2427         versions.
2428
2429 2010-04-13  Eric Blake  <eblake@redhat.com>
2430
2431         getopt-gnu: match recent glibc fixes and posix ruling
2432         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2433         '+' handling, when requesting extensions.
2434         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2435         'W;' handling.
2436         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2437         * doc/posix-functions/getopt.texi (getopt): Document this.
2438         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2439         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2440         Likewise.
2441
2442         getopt: merge bug fixes from glibc
2443         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2444         diagnostics.  Honor '+:' correctly.  Reject ';'.
2445
2446         getopt-posix: detect MacOS bug
2447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2448         optind when missing a required argument.
2449         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2450         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2451         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2452         Likewise.
2453
2454         getopt-posix: avoid spurious failure on Solaris
2455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2456         an indicator that setting optind=1 is sufficient for reset.
2457
2458         getopt-posix: avoid spurious failure on FreeBSD
2459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2460         in POSIX mode, since the m4 test uses it.
2461
2462         gnulib-tool: silence warning on BSD sh
2463         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2464
2465 2010-04-13  Jim Meyering  <meyering@redhat.com>
2466
2467         doc: users.txt: GNU patch now uses gnulib
2468         * users.txt: Add patch.
2469
2470 2010-04-12  Jim Meyering  <meyering@redhat.com>
2471
2472         maint.mk: generate more concise timing data for syntax-check rules
2473         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2474         " done" from each line that reports a syntax-check test duration.
2475
2476 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2477
2478         git-version-gen: use "git update-index..." rather than "git status"
2479         * build-aux/git-version-gen: Use git update-index --refresh, not
2480         "git status".  With some versions of git, "git status" would fail
2481         to update the index and result in an unwarranted "-dirty" suffix.
2482
2483 2010-04-11  Jim Meyering  <meyering@redhat.com>
2484
2485         openat: correct formatting (no semantic change)
2486         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2487         Suggested by Bruno Haible.
2488
2489 2010-04-11  Bruno Haible  <bruno@clisp.org>
2490
2491         Stricter declaration checking in testdirs.
2492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2493         If for_tests is true, augment AM_CPPFLAGS to define
2494         GNULIB_STRICT_CHECKING.
2495         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2496         GNULIB_STRICT_CHECKING is defined, verify that the function is
2497         declared.
2498
2499 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2500             Bruno Haible  <bruno@clisp.org>
2501
2502         libunistring: Improve configure output.
2503         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2504         Don't say "consider installing GNU libunistring" when checking again
2505         with libiconv.
2506
2507 2010-04-11  Bruno Haible  <bruno@clisp.org>
2508
2509         libunistring: Correct value of $LTLIBUNISTRING.
2510         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2511         correct the value of $LTLIBUNISTRING.
2512
2513 2010-04-11  Bruno Haible  <bruno@clisp.org>
2514
2515         havelib: Add static libraries to LIBS in the right order.
2516         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2517         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2518
2519 2010-04-11  Bruno Haible  <bruno@clisp.org>
2520
2521         libunistring: Detect libunistring also when it depends on libiconv.
2522         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2523         the second AC_LIB_HAVE_LINKFLAGS invocation.
2524
2525 2010-04-11  James Youngman  <jay@gnu.org>
2526
2527         close-stream: declare local scalars to be "const"
2528         * lib/close-stream.c (close_stream): Make boolean variables const
2529         to document the fact that we set but do not change them.
2530
2531 2010-04-11  Bruno Haible  <bruno@clisp.org>
2532
2533         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2534
2535 2010-04-11  Jim Meyering  <meyering@redhat.com>
2536
2537         maint.mk: don't include dist-check.mk
2538         * top/maint.mk: Remove bogus include directive.
2539
2540         maint.mk: improve empty-line-at-EOF check
2541         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2542         solution, rather than tail+Perl-based one.  The latter would read
2543         a few kilobytes from the end of each file, and did not handle empty
2544         files properly.
2545
2546         maint.mk: print the elapsed time for each syntax-check rule
2547         * top/maint.mk (sc_m_rules_): Save start time in a file.
2548         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2549         (local-check): Interpose the .z rules
2550
2551 2010-04-11  Jim Meyering  <meyering@redhat.com>
2552
2553         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2554         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2555         empty file with one that ends in an empty line.
2556
2557 2010-04-10  Bruno Haible  <bruno@clisp.org>
2558
2559         mkdir: Make it work on mingw64.
2560         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2561         * lib/mkdir.c: Update comment.
2562         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
2563
2564 2010-04-10  Bruno Haible  <bruno@clisp.org>
2565
2566         Don't override improved macro from newer autoconf.
2567         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2568         autoconf >= 2.62.
2569         Reported by Joel E. Denny <jdenny@clemson.edu>.
2570
2571 2010-04-10  Jim Meyering  <meyering@redhat.com>
2572
2573         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2574         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2575
2576         maint.mk: correct a diagnostic
2577         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2578         in diagnostic; now use $prohibit.
2579
2580 2010-04-10  Bruno Haible  <address@hidden>
2581
2582         fchownat: Fix a C++ test error on Solaris 8.
2583         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2584         the function does not exist.
2585
2586 2010-04-10  Bruno Haible  <bruno@clisp.org>
2587
2588         vasnprintf: Add more tests.
2589         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2590         (test_function): Test converting an invalid wide string.
2591
2592         vasnprintf: Correct handling of unconvertible wide string arguments.
2593         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2594         VASNPRINTF.
2595         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2596         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2597         smaller than the expected maximum need for the directive. Set errno to
2598         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2599         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2601         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2602         * modules/vasnprintf (Files): Add m4/printf.m4.
2603         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2604
2605 2010-04-10  Bruno Haible  <bruno@clisp.org>
2606
2607         vasnprintf: Fix crash in %ls directive.
2608         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2609         string is passed as argument to %ls, with no precision and no width.
2610         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2611
2612 2010-04-10  Bruno Haible  <bruno@clisp.org>
2613
2614         vasnprintf: Fix multiple test failures on mingw.
2615         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
2616         _snprintf, or snwprintf, not _snwprintf.
2617
2618 2010-04-10  Bruno Haible  <bruno@clisp.org>
2619
2620         write: Fix a C++ test error on mingw.
2621         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
2622
2623 2010-04-10  Bruno Haible  <bruno@clisp.org>
2624
2625         vasnprintf test: Reduce code duplication.
2626         * tests/test-vasnprintf.c (test_function): New function, extracted from
2627         test_vasnprintf.
2628         (test_vasnprintf, test_asnprintf): Invoke it.
2629
2630 2010-04-10  Bruno Haible  <bruno@clisp.org>
2631
2632         strnlen: Fix warning in C++ mode on MacOS X.
2633         * lib/string.in.h (strnlen): Use the modern idiom.
2634         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
2635         defining strnlen as a macro already in <config.h>.
2636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2637         REPLACE_STRNLEN.
2638         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
2639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2640
2641 2010-04-08  James Youngman  <jay@gnu.org>
2642
2643         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2644         the example.
2645
2646 2010-04-09  Jim Meyering  <meyering@redhat.com>
2647
2648         maint.mk: print better diagnostic when there is no $(_hv_file)
2649         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2650         announce that when $(_hv_file) (aka help-version) does not exist.
2651
2652         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2653         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2654         not try to interpret its random input bytes.  Jarno Rajahalme reported
2655         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2656         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2657         (mktempd_): Likewise, just in case.
2658
2659         ftruncate: add two years to projected module removal date: 2012
2660         * m4/ftruncate.m4: Adjust comments.
2661
2662         ftruncate: mark module as obsolete; even MinGW provides it, now
2663         * modules/ftruncate (Status): Obsolete.
2664         (Notice): Say that.
2665         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2667
2668 2010-04-08  Bruno Haible  <bruno@clisp.org>
2669
2670         Fix side effects from tests-related modules.
2671         * modules/dprintf-posix (Comment): New section.
2672         * modules/fprintf-posix (Comment): Likewise.
2673         * modules/obstack-printf-posix (Comment): Likewise.
2674         * modules/printf-posix (Comment): Likewise.
2675         * modules/snprintf-posix (Comment): Likewise.
2676         * modules/sprintf-posix (Comment): Likewise.
2677         * modules/vasnprintf-posix (Comment): Likewise.
2678         * modules/vasprintf-posix (Comment): Likewise.
2679         * modules/vdprintf-posix (Comment): Likewise.
2680         * modules/vfprintf-posix (Comment): Likewise.
2681         * modules/vprintf-posix (Comment): Likewise.
2682         * modules/vsnprintf-posix (Comment): Likewise.
2683         * modules/vsprintf-posix (Comment): Likewise.
2684         * modules/xprintf-posix (Comment): Likewise.
2685         * modules/xvasprintf-posix (Comment): Likewise.
2686         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2687         * modules/floorf-tests (Depends-on): Likewise.
2688         * modules/round-tests (Depends-on): Likewise.
2689         * modules/roundf-tests (Depends-on): Likewise.
2690         * modules/trunc-tests (Depends-on): Likewise.
2691         * modules/truncf-tests (Depends-on): Likewise.
2692         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2693         'fprintf-posix' module is not present.
2694         * tests/test-floorf2.c (check): Likewise.
2695         * tests/test-trunc2.c (check): Likewise.
2696         * tests/test-truncf2.c (check): Likewise.
2697         * tests/test-round2.c (equal): Likewise.
2698         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2699
2700 2010-04-07  Karl Berry  <karl@gnu.org>
2701
2702         * config/srclist.txt,
2703         * config/srclistvars.sh,
2704         * config/srclist-update: doc fixes.
2705
2706 2010-04-07  Jim Meyering  <meyering@redhat.com>
2707
2708         maint.mk: add a PATH crosschecking syntax-check rule
2709         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
2710         Useful if you use a test like the one in help-version (coreutils,
2711         diffutils, grep, gzip) that ensures $(VERSION) matches what is
2712         printed by prog --version.
2713
2714 2010-04-06  Bruno Haible  <bruno@clisp.org>
2715
2716         Fix link error on mingw.
2717         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
2718         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
2719
2720 2010-04-06  Bruno Haible  <bruno@clisp.org>
2721
2722         Assume rmdir exists.
2723         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
2724
2725 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
2726
2727         doc: update users.txt
2728         * users.txt: Add gcal.
2729
2730 2010-04-06  Jim Meyering  <meyering@redhat.com>
2731
2732         init.sh: simply unset TMPDIR rather than risking env -i
2733         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
2734         although it probably works fine on all Unix-based systems, some
2735         systems (Cygwin?) cannot tolerate a totally cleared environment.
2736         Suggestion from Eric Blake.
2737
2738 2010-04-06  Jim Meyering  <meyering@redhat.com>
2739
2740         init.sh: portability fix: use env's POSIX-specified -i option not -u
2741         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
2742         than unportable env -u.  Solaris 5.11's env lacks support for -u.
2743
2744 2010-04-05  Bruno Haible  <bruno@clisp.org>
2745
2746         btowc: Work around Cygwin 1.7.2 bug.
2747         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
2748         does not map NUL to 0.
2749         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
2750
2751 2010-04-05  Bruno Haible  <bruno@clisp.org>
2752
2753         Make the multithread modules work on Cygwin 1.7.2.
2754         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
2755         imported symbols can be declared weak, so that it returns "no" on
2756         Cygwin 1.7.2.
2757
2758 2010-04-05  Bruno Haible  <bruno@clisp.org>
2759
2760         Use the module 'strncat'.
2761         * modules/unistr/u8-strncat (Depends-on): Add strncat.
2762
2763         Tests for module 'strncat'.
2764         * modules/strncat-tests: New file.
2765         * tests/test-strncat.c: New file.
2766
2767         New module 'strncat'.
2768         * lib/string.in.h (strncat): New declaration.
2769         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
2770         * m4/strncat.m4: New file, based on m4/memchr.m4.
2771         * modules/strncat: New file.
2772         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
2773         is declared.
2774         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
2775         REPLACE_STRNCAT.
2776         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
2777         REPLACE_STRNCAT.
2778         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
2779         module.
2780         * tests/test-string-c++.cc: Check signature of strncat.
2781
2782 2010-04-05  Jim Meyering  <meyering@redhat.com>
2783
2784         xstrtoumax-tests: convert to use init.sh
2785         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
2786         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2787         Use Exit, not exit.
2788         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2789
2790         xstrtoimax-tests: convert to use init.sh
2791         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
2792         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2793         Use Exit, not exit.
2794         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2795
2796 2010-04-05  Bruno Haible  <bruno@clisp.org>
2797
2798         sys_socket: Avoid #define replacements in C++ mode.
2799         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
2800         warning to the function if possible, rather than #defining the symbol
2801         to a dysfunctional alias.
2802
2803 2010-04-05  Bruno Haible  <bruno@clisp.org>
2804
2805         fseeko: Fix C++ test error on mingw.
2806         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
2807         gl_FUNC_FSEEKO.
2808         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
2809         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
2810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
2811         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
2812
2813 2010-04-05  Bruno Haible  <bruno@clisp.org>
2814
2815         duplocale: Improve test output.
2816         * tests/test-duplocale.c (main): Print reason for skipped test.
2817
2818 2010-04-05  Bruno Haible  <bruno@clisp.org>
2819
2820         Assume rmdir exists.
2821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
2822         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
2823
2824 2010-04-05  Bruno Haible  <bruno@clisp.org>
2825
2826         Fix link error on Solaris 8 with cc.
2827         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
2828
2829 2010-04-05  Bruno Haible  <bruno@clisp.org>
2830
2831         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2832         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
2833
2834 2010-04-05  Bruno Haible  <bruno@clisp.org>
2835
2836         vasprintf: Update documentation.
2837         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
2838
2839 2010-04-05  Bruno Haible  <bruno@clisp.org>
2840
2841         ptsname: Improve test.
2842         * tests/test-ptsname.c (main): Also try the various master names of BSD
2843         systems.
2844
2845 2010-04-05  Bruno Haible  <bruno@clisp.org>
2846
2847         memchr: Avoid a possible C++ test error.
2848         * lib/string.in.h (memchr): Provide declaration if function is missing.
2849         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
2850         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
2851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
2852         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
2853
2854 2010-04-05  Bruno Haible  <bruno@clisp.org>
2855
2856         strtok_r: Improve idiom.
2857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
2858         AC_LIBOBJ is used.
2859
2860 2010-04-05  Bruno Haible  <bruno@clisp.org>
2861
2862         strdup: Improve idiom.
2863         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
2864         AC_LIBOBJ is used.
2865         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
2866         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
2867         when AC_LIBOBJ is used.
2868
2869 2010-04-05  Bruno Haible  <bruno@clisp.org>
2870
2871         mbsinit, mbrtowc, wcrtomb: Improve idioms.
2872         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
2873         don't set REPLACE_MBSINIT to 1.
2874         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
2875         don't set REPLACE_MBRTOWC to 1.
2876         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
2877         exist, don't set REPLACE_MBSRTOWCS to 1.
2878         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
2879         exist, don't set REPLACE_MBSNRTOWCS to 1.
2880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
2881         don't set REPLACE_WCRTOMB to 1.
2882         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
2883         exist, don't set REPLACE_WCSRTOMBS to 1.
2884         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
2885         exist, don't set REPLACE_WCSNRTOMBS to 1.
2886
2887 2010-04-05  Bruno Haible  <bruno@clisp.org>
2888
2889         ldexpl: Improve idiom.
2890         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
2891         make sure to set HAVE_DECL_LDEXPL to 0.
2892
2893 2010-04-05  Jim Meyering  <meyering@redhat.com>
2894
2895         xstrtol-tests: convert to use init.sh
2896         * modules/xstrtol-tests (Files): Add tests/init.sh.
2897         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2898         Use Exit, not exit.
2899         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2900
2901         atexit-tests: convert to use init.sh
2902         * modules/atexit-tests (Files): Add tests/init.sh.
2903         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2904         Use Exit, not exit.
2905         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2906
2907         init.sh: fix typo
2908         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
2909
2910         init.sh: make it easier for a test script to write to the tty, ...
2911         when using automake's parallel-tests mode.
2912         * tests/init.sh (stderr_fileno_): Define overridable variable.
2913         (warn_): New function, to use it.
2914         (fail_, skip_, framework_failure_): Use warn_.
2915
2916 2010-04-04  Bruno Haible  <bruno@clisp.org>
2917
2918         btowc: Avoid warning.
2919         * lib/btowc.c: Include <stdlib.h>.
2920         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
2921
2922 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
2923             Bruno Haible  <bruno@clisp.org>
2924
2925         wchar: Port to NetBSD 1.5.
2926         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
2927         * lib/wctype.in.h (WEOF): Likewise.
2928
2929 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
2930             Bruno Haible  <bruno@clisp.org>
2931
2932         Port extended stdio to NetBSD 1.5.
2933         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
2934         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
2935         older.
2936
2937 2010-04-04  Bruno Haible  <bruno@clisp.org>
2938
2939         string: Remove unused substitution.
2940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2941         HAVE_DECL_STRERROR.
2942         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
2943
2944 2010-04-04  Bruno Haible  <bruno@clisp.org>
2945
2946         strtod: Avoid a possible C++ test error.
2947         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
2948         set REPLACE_STRTOD.
2949
2950 2010-04-04  Bruno Haible  <bruno@clisp.org>
2951
2952         strerror: Update documentation.
2953         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
2954
2955 2010-04-04  Bruno Haible  <bruno@clisp.org>
2956
2957         stdio: Fix some C++ test errors on Solaris 8 with GCC.
2958         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
2959         _GL_CXXALIAS_SYS_CAST.
2960
2961 2010-04-04  Bruno Haible  <bruno@clisp.org>
2962
2963         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2964         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
2965         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
2966         REPLACE_FREXPL to 1.
2967         * doc/posix-functions/frexpl.texi: Update documentation.
2968
2969 2010-04-04  Bruno Haible  <bruno@clisp.org>
2970
2971         math: Fix some C++ test errors on Solaris 8 and Cygwin.
2972         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
2973
2974 2010-04-04  Bruno Haible  <bruno@clisp.org>
2975
2976         Implement nanosleep for native Windows.
2977         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
2978
2979 2010-04-04  Bruno Haible  <bruno@clisp.org>
2980
2981         math: Fix some C++ test errors on Solaris 8.
2982         * lib/math.in.h (truncf, trunc): Use simpler idiom.
2983
2984 2010-04-04  Bruno Haible  <bruno@clisp.org>
2985
2986         math: Fix some C++ test errors on Cygwin.
2987         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
2988         truncl): Provide declaration if the system does not have it.
2989         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
2990         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
2991         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
2992         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
2993         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
2994         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
2995         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
2996         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
2997         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
2998         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
2999         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3000         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3001         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3002         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3003         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3004         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3006         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3007         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3008         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3009         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3010         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3011
3012 2010-04-04  Bruno Haible  <bruno@clisp.org>
3013
3014         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3015         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3016         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3017         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3018         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3019         * m4/isinf.m4 (gl_ISINF): Likewise.
3020         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3021
3022 2010-04-04  Bruno Haible  <bruno@clisp.org>
3023
3024         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3025         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3026
3027 2010-04-04  Bruno Haible  <bruno@clisp.org>
3028
3029         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3030         * modules/tmpfile (configure.ac): Update.
3031
3032         tmpfile: Fix C++ test error on mingw.
3033         * lib/stdio.in.h (tmpfile): New declaration.
3034         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3035         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3036         * modules/tmpfile (Depends-on): Add stdio.
3037         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3038         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3039         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3040         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3041         REPLACE_TMPFILE.
3042         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3043
3044 2010-04-04  Bruno Haible  <bruno@clisp.org>
3045
3046         ioctl: Fix C++ test error on mingw.
3047         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3048         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3049         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3050
3051 2010-04-03  Bruno Haible  <bruno@clisp.org>
3052
3053         wcwidth: Fix C++ test error on mingw.
3054         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3056         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3057
3058 2010-04-03  Bruno Haible  <bruno@clisp.org>
3059
3060         nanosleep: Fix C++ test error on mingw.
3061         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3062         * lib/time.in.h (nanosleep): Use modern idiom.
3063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3064         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3065         REPLACE_NANOSLEEP to 1.
3066         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3067         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3068
3069 2010-04-03  Bruno Haible  <bruno@clisp.org>
3070
3071         strptime: Fix C++ test error on mingw.
3072         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3073         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3074         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3075         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3077         not REPLACE_STRPTIME.
3078         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3079         REPLACE_STRPTIME.
3080
3081 2010-04-03  Bruno Haible  <bruno@clisp.org>
3082
3083         timegm: Fix C++ test error on mingw.
3084         * lib/time.in.h (timegm): Use modern idiom.
3085         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3086         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3087         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3088         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3089
3090 2010-04-03  Bruno Haible  <bruno@clisp.org>
3091
3092         timegm: Assume declaration if function exists.
3093         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3094         if it exists. Don't clobber ac_cv_func_timegm.
3095
3096 2010-04-03  Bruno Haible  <bruno@clisp.org>
3097
3098         time_r: Fix C++ test error on mingw.
3099         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3100         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3101         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3102         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3103         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3104
3105 2010-04-03  Bruno Haible  <bruno@clisp.org>
3106
3107         time_r: Minor updates.
3108         * modules/time_r (Description): Mention the provided functions.
3109         * lib/time_r.c: Don't include <string.h>.
3110         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3111         * doc/posix-functions/localtime_r.texi: Likewise.
3112
3113 2010-04-03  Bruno Haible  <bruno@clisp.org>
3114
3115         time: Fix regression introduced on 2010-03-08.
3116         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3117         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3118
3119 2010-04-03  Jim Meyering  <meyering@redhat.com>
3120
3121         maint.mk: don't silently disable project-specific syntax-check rules
3122         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3123         that they need to convert their project-specific syntax-check rules
3124         to use the new _sc_search_regexp.
3125
3126 2010-04-03  Bruno Haible  <bruno@clisp.org>
3127
3128         fchdir: Fix regression introduced on 2010-03-08.
3129         * lib/unistd.in.h (fchdir): Fix declaration.
3130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3132         REPLACE_FCHDIR.
3133         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3134         REPLACE_FCHDIR.
3135
3136 2010-04-03  Bruno Haible  <bruno@clisp.org>
3137
3138         getpagesize: Fix C++ test error on mingw.
3139         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3140         system does not declare the function.
3141         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3142         declared.
3143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3144         HAVE_DECL_GETPAGESIZE.
3145         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3146
3147 2010-04-03  Bruno Haible  <bruno@clisp.org>
3148
3149         stdio: Make C++ tests work on mingw.
3150         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3151         does not declare the function.
3152
3153 2010-04-03  Bruno Haible  <bruno@clisp.org>
3154
3155         ftello: Fix C++ test error on mingw.
3156         * lib/stdio.in.h (ftello): Use modern idiom.
3157         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3158         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3159         is missing and that it needs to be replaced.
3160         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3162         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3163
3164 2010-04-03  Bruno Haible  <bruno@clisp.org>
3165
3166         fseeko: Fix C++ test error on mingw.
3167         * lib/stdio.in.h (fseeko): Use modern idiom.
3168         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3169         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3170         is missing and that it needs to be replaced.
3171         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3173         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3174
3175 2010-04-03  Bruno Haible  <bruno@clisp.org>
3176
3177         mkstemp: Fix C++ test error on mingw.
3178         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3180         function is missing and that it needs to be replaced.
3181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3182         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3183
3184 2010-04-03  Bruno Haible  <bruno@clisp.org>
3185
3186         stpncpy: Fix C++ test error on mingw.
3187         * lib/string.in.h (stpncpy): Use modern idiom.
3188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3189         function is missing and that it needs to be replaced.
3190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3191         REPLACE_STPNCPY.
3192         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3193
3194 2010-04-03  Bruno Haible  <bruno@clisp.org>
3195
3196         sys_stat: Fix C++ test error on mingw.
3197         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3198         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3199
3200 2010-04-03  Bruno Haible  <bruno@clisp.org>
3201
3202         pty: Update doc.
3203         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3204
3205 2010-04-03  Bruno Haible  <bruno@clisp.org>
3206
3207         unistd: Fix C++ test error on mingw.
3208         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3209
3210 2010-04-03  Bruno Haible  <bruno@clisp.org>
3211
3212         Update doc regarding mingw.
3213         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3214         * doc/glibc-functions/login_tty.texi: Likewise.
3215         * doc/glibc-functions/forkpty.texi: Likewise.
3216
3217 2010-04-03  Bruno Haible  <bruno@clisp.org>
3218
3219         stdlib: Avoid compilation failure of c-strtold on mingw.
3220         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3221
3222 2010-04-03  Bruno Haible  <bruno@clisp.org>
3223
3224         locale: Make C++ tests work on Cygwin and mingw.
3225         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3226         cannot provide the function.
3227         Reported by Simon Josefsson.
3228
3229 2010-04-03  Bruno Haible  <bruno@clisp.org>
3230
3231         localename: Port to MacOS X 10.6.
3232         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3233         memory layout of the locales in MacOS X 10.6 as well.
3234         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3235
3236 2010-04-02  Bruno Haible  <bruno@clisp.org>
3237
3238         gnulib-tool: Ensure that long-running tests are executed last.
3239         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3240         running tests after the one for the other tests.
3241
3242 2010-04-02  Bruno Haible  <bruno@clisp.org>
3243
3244         gnulib-tool: Ensure the tests in the main directory are executed first.
3245         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3246         start with the current directory.
3247
3248 2010-04-02  Bruno Haible  <bruno@clisp.org>
3249
3250         Tests for module 'havelib', moved here from GNU gettext.
3251         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3252         modifications.
3253         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3254         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3255         with modifications.
3256         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3257         modifications.
3258         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3259         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3260         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3261         with modifications.
3262         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3263         with modifications.
3264         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3265         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3266         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3267         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3268         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3269         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3270         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3271         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3272         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3273         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3274         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3275         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3276         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3277         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3278         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3279         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3280         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3281         with modifications.
3282         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3283         with modifications.
3284         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3285         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3286         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3287         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3288         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3289         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3290         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3291         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3292         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3293         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3294         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3295         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3296         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3297         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3298         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3299         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3300         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3301         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3302         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3303         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3304         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3305         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3306         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3307         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3308         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3309         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3310         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3311         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3312         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3313         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3314         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3315         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3316         * tests/havelib/rpathx/rpathx.c: New file, from
3317         gettext/autoconf-lib-link.
3318         * tests/havelib/rpathx/Makefile.am: New file, from
3319         gettext/autoconf-lib-link.
3320         * tests/havelib/rpathx/configure.ac: New file, from
3321         gettext/autoconf-lib-link with modifications.
3322         * tests/havelib/rpathy/rpathy.c: New file, from
3323         gettext/autoconf-lib-link.
3324         * tests/havelib/rpathy/Makefile.am: New file, from
3325         gettext/autoconf-lib-link.
3326         * tests/havelib/rpathy/configure.ac: New file, from
3327         gettext/autoconf-lib-link with modifications.
3328         * tests/havelib/rpathz/rpathz.c: New file, from
3329         gettext/autoconf-lib-link.
3330         * tests/havelib/rpathz/Makefile.am: New file, from
3331         gettext/autoconf-lib-link.
3332         * tests/havelib/rpathz/configure.ac: New file, from
3333         gettext/autoconf-lib-link with modifications.
3334         * tests/havelib/rpathlx/usex.c: New file, from
3335         gettext/autoconf-lib-link.
3336         * tests/havelib/rpathlx/Makefile.am: New file, from
3337         gettext/autoconf-lib-link.
3338         * tests/havelib/rpathlx/configure.ac: New file, from
3339         gettext/autoconf-lib-link with modifications.
3340         * tests/havelib/rpathly/usey.c: New file, from
3341         gettext/autoconf-lib-link.
3342         * tests/havelib/rpathly/Makefile.am: New file, from
3343         gettext/autoconf-lib-link.
3344         * tests/havelib/rpathly/configure.ac: New file, from
3345         gettext/autoconf-lib-link with modifications.
3346         * tests/havelib/rpathlz/usez.c: New file, from
3347         gettext/autoconf-lib-link.
3348         * tests/havelib/rpathlz/Makefile.am: New file, from
3349         gettext/autoconf-lib-link.
3350         * tests/havelib/rpathlz/configure.ac: New file, from
3351         gettext/autoconf-lib-link with modifications.
3352         * tests/havelib/rpathlyx/usey.c: New file, from
3353         gettext/autoconf-lib-link.
3354         * tests/havelib/rpathlyx/Makefile.am: New file, from
3355         gettext/autoconf-lib-link.
3356         * tests/havelib/rpathlyx/configure.ac: New file, from
3357         gettext/autoconf-lib-link with modifications.
3358         * tests/havelib/rpathlzyx/usez.c: New file, from
3359         gettext/autoconf-lib-link.
3360         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3361         gettext/autoconf-lib-link.
3362         * tests/havelib/rpathlzyx/configure.ac: New file, from
3363         gettext/autoconf-lib-link with modifications.
3364         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3365         with modifications.
3366
3367 2010-04-02  Bruno Haible  <bruno@clisp.org>
3368
3369         gnulib-tool: Create distributed built sources also for the tests.
3370         * gnulib-tool (func_create_testdir): Also generate distributed built
3371         sources in the tests directory.
3372
3373 2010-04-02  Bruno Haible  <bruno@clisp.org>
3374
3375         gnulib-tool: Obey user's environment variables.
3376         * gnulib-tool (func_create_testdir): When creating built sources,
3377         respect the environment variables for autoconf, automake, etc. given by
3378         the user.
3379
3380 2010-04-02  Bruno Haible  <bruno@clisp.org>
3381
3382         gnulib-tool: Provide the value of --m4-base to modules.
3383         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3384         of gl_m4_base.
3385
3386 2010-04-02  Eric Blake  <eblake@redhat.com>
3387
3388         maint.mk: fix some fallout
3389         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3390         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3391
3392 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3393
3394         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3395         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3396         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3397         (sc_cast_of_x_alloc_return_value): Likewise.
3398         (sc_cast_of_alloca_return_value): Likewise.
3399         (sc_space_tab): Likewise.
3400         (sc_prohibit_atoi_atof): Likewise.
3401         (sc_prohibit_magic_number_exit): Likewise.
3402         (sc_error_exit_success): Likewise.
3403         (sc_file_system): Likewise.
3404         (sc_prohibit_have_config_h): Likewise.
3405         (sc_require_config_h): Likewise.
3406         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3407         (sc_obsolete_symbols): Likewise.
3408         (sc_changelog): Likewise.
3409         (sc_program_name): Likewise.
3410         (sc_the_the): Likewise.
3411         (sc_trailing_blank): Likewise.
3412         (sc_two_space_separator_in_usage): Likewise.
3413         (sc_useless_cpp_parens): Likewise.
3414         (sc_GPL_version): Likewise.
3415         (sc_GFDL_version): Likewise.
3416         (sc_texinfo_acronym): Likewise.
3417         (sc_prohibit_cvs_keyword): Likewise.
3418         (sc_prohibit_stat_st_blocks): Likewise.
3419         (sc_prohibit_S_IS_definition): Likewise.
3420         (sc_redundant_const): Likewise.
3421         (sc_makefile_TAB_only_indentation): Likewise.
3422         (sc_m4_quote_check): Likewise.
3423         (sc_makefile_path_separator_check): Likewise.
3424         (sc_copyright_check): Likewise.
3425         (sc_Wundef_boolean): Likewise.
3426         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3427
3428         maint.mk: match 0 or more whitespace-before-function-call '('
3429         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3430         that have zero or two-and-more spaces between the function name
3431         and the open parenthesis.
3432         (sc_error_message_warn_fatal): Likewise.
3433         (sc_error_message_uppercase): Likewise.
3434         (sc_error_message_period): Likewise.
3435
3436 2010-03-31  Eric Blake  <eblake@redhat.com>
3437
3438         maint.mk: check for [ as well as test
3439         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3440         Based on a libvirt report by Matthias Bolte.
3441
3442         gnumakefile: don't squelch _version output
3443         * top/GNUmakefile (_version): Create one-shot dependency rather
3444         than using $(shell) when version must be regenerated.
3445         (_autoreconf): Run verbosely, by default.
3446
3447         sys_time: avoid compiler warnings
3448         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3449         unconditional, fixing regression from 2010-03-29.
3450         Reported by Simon Josefsson.
3451
3452 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3453
3454         maint.mk: s/_header_without_use/_sc_header_without_use/
3455         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3456         (sc_prohibit_assert_without_use): Use the new name.
3457         (sc_prohibit_close_stream_without_use): Likewise.
3458         (sc_prohibit_getopt_without_use): Likewise.
3459         (sc_prohibit_quotearg_without_use): Likewise.
3460         (sc_prohibit_quote_without_use): Likewise.
3461         (sc_prohibit_long_options_without_use): Likewise.
3462         (sc_prohibit_inttostr_without_use): Likewise.
3463         (sc_prohibit_ignore_value_without_use): Likewise.
3464         (sc_prohibit_error_without_use): Likewise.
3465         (sc_prohibit_xalloc_without_use): Likewise.
3466         (sc_prohibit_hash_without_use): Likewise.
3467         (sc_prohibit_hash_pjw_without_use): Likewise.
3468         (sc_prohibit_safe_read_without_use): Likewise.
3469         (sc_prohibit_argmatch_without_use): Likewise.
3470         (sc_prohibit_canonicalize_without_use): Likewise.
3471         (sc_prohibit_root_dev_ino_without_use): Likewise.
3472         (sc_prohibit_openat_without_use): Likewise.
3473         (sc_prohibit_c_ctype_without_use): Likewise.
3474         (sc_prohibit_signal_without_use): Likewise.
3475         (sc_prohibit_intprops_without_use): Likewise.
3476
3477 2010-03-30  Eric Blake  <eblake@redhat.com>
3478
3479         maint: improve module indicators
3480         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3481         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3482         columns, and avoid extra macro expansion.
3483
3484         fdopendir: work around FreeBSD bug
3485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3486         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3487         * modules/dirent (Makefile.am): Substitute it.
3488         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3489         declaration.
3490         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3491         fix.
3492         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3493
3494 2010-03-29  Bruno Haible  <bruno@clisp.org>
3495
3496         Emit #pragma system_header after the inclusion guard, not before.
3497         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3498         guard that spans the entire file, not before. This enables an
3499         optimization in GCC's preprocessor.
3500         * lib/ctype.in.h: Likewise.
3501         * lib/dirent.in.h: Likewise.
3502         * lib/errno.in.h: Likewise.
3503         * lib/float.in.h: Likewise.
3504         * lib/getopt.in.h: Likewise.
3505         * lib/iconv.in.h: Likewise.
3506         * lib/langinfo.in.h: Likewise.
3507         * lib/locale.in.h: Likewise.
3508         * lib/math.in.h: Likewise.
3509         * lib/netdb.in.h: Likewise.
3510         * lib/netinet_in.in.h: Likewise.
3511         * lib/pty.in.h: Likewise.
3512         * lib/sched.in.h: Likewise.
3513         * lib/se-selinux.in.h: Likewise.
3514         * lib/search.in.h: Likewise.
3515         * lib/spawn.in.h: Likewise.
3516         * lib/stdarg.in.h: Likewise.
3517         * lib/stdint.in.h: Likewise.
3518         * lib/string.in.h: Likewise.
3519         * lib/strings.in.h: Likewise.
3520         * lib/sys_file.in.h: Likewise.
3521         * lib/sys_ioctl.in.h: Likewise.
3522         * lib/sys_time.in.h: Likewise.
3523         * lib/sys_times.in.h: Likewise.
3524         * lib/sys_utsname.in.h: Likewise.
3525         * lib/sys_wait.in.h: Likewise.
3526         * lib/sysexits.in.h: Likewise.
3527         * lib/wctype.in.h: Likewise.
3528
3529 2010-03-28  James Youngman  <jay@gnu.org>
3530
3531         save-cwd: don't leak a file descriptor when the caller execs.
3532         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3533         saved file descriptor.
3534         * modules/save-cwd (Depends-on): Depend on cloexec.
3535
3536 2010-03-29  Bruno Haible  <bruno@clisp.org>
3537
3538         Remove vestiges of fts-lgpl module.
3539         * lib/fts_.h: Assume GNULIB_FTS is 1.
3540         * lib/fts.c: Likewise.
3541         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3542
3543 2010-03-28  Bruno Haible  <bruno@clisp.org>
3544
3545         Fix definition of tests witness macro.
3546         * gnulib-tool (func_import): Fix definition of witness macro.
3547
3548 2010-03-28  Bruno Haible  <bruno@clisp.org>
3549
3550         Fix ioctl's protoype on glibc systems.
3551         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3552         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3553         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3554         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3555         signature. If not, arrange to replace the ioctl function.
3556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3557         REPLACE_IOCTL.
3558         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3559         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3560         Reported by Ludovic Courtès <ludo@gnu.org>.
3561
3562 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3563
3564         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3565         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3566         made it so grep -r --include=GLOB* ... did not work.
3567
3568 2010-03-26  Jim Meyering  <meyering@redhat.com>
3569             Eric Blake  <eblake@redhat.com>
3570
3571         maint.mk: prohibit use of test's -o and -a operators
3572         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3573
3574 2010-03-28  Bruno Haible  <bruno@clisp.org>
3575
3576         Remove unused GNULIB_XYZ macro definitions.
3577         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3578         invocation.
3579
3580 2010-03-28  Bruno Haible  <bruno@clisp.org>
3581
3582         Mark privileged tests modules.
3583         * modules/idpriv-drop-tests (Status): New section.
3584         * modules/idpriv-droptemp-tests (Status): New section.
3585
3586 2010-03-28  Bruno Haible  <bruno@clisp.org>
3587
3588         Split C++ tests into separate tests modules.
3589         * modules/dirent-c++-tests: New file, extracted from
3590         modules/dirent-tests.
3591         * modules/dirent-tests: Depend on it.
3592         * modules/fcntl-h-c++-tests: New file, extracted from
3593         modules/fcntl-h-tests.
3594         * modules/fcntl-h-tests: Depend on it.
3595         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3596         * modules/glob-tests: Depend on it.
3597         * modules/iconv-h-c++-tests: New file, extracted from
3598         modules/iconv-h-tests.
3599         * modules/iconv-h-tests: Depend on it.
3600         * modules/langinfo-c++-tests: New file, extracted from
3601         modules/langinfo-tests.
3602         * modules/langinfo-tests: Depend on it.
3603         * modules/locale-c++-tests: New file, extracted from
3604         modules/locale-tests.
3605         * modules/locale-tests: Depend on it.
3606         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3607         * modules/math-tests: Depend on it.
3608         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3609         * modules/pty-tests: Depend on it.
3610         * modules/search-c++-tests: New file, extracted from
3611         modules/search-tests.
3612         * modules/search-tests: Depend on it.
3613         * modules/signal-c++-tests: New file, extracted from
3614         modules/signal-tests.
3615         * modules/signal-tests: Depend on it.
3616         * modules/spawn-c++-tests: New file, extracted from
3617         modules/spawn-tests.
3618         * modules/spawn-tests: Depend on it.
3619         * modules/stdio-c++-tests: New file, extracted from
3620         modules/stdio-tests.
3621         * modules/stdio-tests: Depend on it.
3622         * modules/stdlib-c++-tests: New file, extracted from
3623         modules/stdlib-tests.
3624         * modules/stdlib-tests: Depend on it.
3625         * modules/string-c++-tests: New file, extracted from
3626         modules/string-tests.
3627         * modules/string-tests: Depend on it.
3628         * modules/sys_ioctl-c++-tests: New file, extracted from
3629         modules/sys_ioctl-tests.
3630         * modules/sys_ioctl-tests: Depend on it.
3631         * modules/sys_select-c++-tests: New file, extracted from
3632         modules/sys_select-tests.
3633         * modules/sys_select-tests: Depend on it.
3634         * modules/sys_socket-c++-tests: New file, extracted from
3635         modules/sys_socket-tests.
3636         * modules/sys_socket-tests: Depend on it.
3637         * modules/sys_stat-c++-tests: New file, extracted from
3638         modules/sys_stat-tests.
3639         * modules/sys_stat-tests: Depend on it.
3640         * modules/sys_time-c++-tests: New file, extracted from
3641         modules/sys_time-tests.
3642         * modules/sys_time-tests: Depend on it.
3643         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3644         * modules/time-tests: Depend on it.
3645         * modules/unistd-c++-tests: New file, extracted from
3646         modules/unistd-tests.
3647         * modules/unistd-tests: Depend on it.
3648         * modules/wchar-c++-tests: New file, extracted from
3649         modules/wchar-tests.
3650         * modules/wchar-tests: Depend on it.
3651         * modules/wctype-c++-tests: New file, extracted from
3652         modules/wctype-tests.
3653         * modules/wctype-tests: Depend on it.
3654         Reported by Simon Josefsson.
3655
3656 2010-03-28  Bruno Haible  <bruno@clisp.org>
3657
3658         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3659         * gnulib-tool (func_exists_module): New function, extracted from
3660         func_verify_module.
3661         (func_verify_module): Use it.
3662         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3663         'foo' only if 'foo' exists.
3664         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3665         module.
3666
3667 2010-03-28  Bruno Haible  <bruno@clisp.org>
3668
3669         gnulib-tool: Add support for special categories of tests.
3670         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3671         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3672         (func_usage): Document them.
3673         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3674         inc_unportable_tests, inc_all_tests): New variables.
3675         (func_acceptable): Consider these variables.
3676         (func_modules_transitive_closure): Make it work when the 'Status' field
3677         consists of multiple words.
3678         (func_import): Store and restore the values of inc_cxx_tests,
3679         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3680         inc_all_tests in gnulib-comp.m4.
3681         (func_create_testdir): Set inc_all_tests to true.
3682         * doc/gnulib.texi (Extra tests modules): New section.
3683         Suggested by Jim Meyering.
3684
3685 2010-03-28  Bruno Haible  <bruno@clisp.org>
3686
3687         ansi-c++-opt: Allow turning off the C++ build by default.
3688         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3689         gl_CXX_CHOICE_DEFAULT_NO is defined.
3690         Requested by Eric Blake.
3691
3692 2010-03-28  Bruno Haible  <bruno@clisp.org>
3693
3694         unistd: Avoid #define replacements in C++ mode.
3695         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3696         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3697         setsockopt, shutdown, select): In C++, attach a warning to the function
3698         if possible, rather than #defining the symbol to a dysfunctional alias.
3699         Reported by John W. Eaton <jwe@gnu.org>.
3700
3701 2010-03-28  Bruno Haible  <bruno@clisp.org>
3702
3703         Fix link errors on mingw.
3704         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3705         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3706         $(LIBSOCKET).
3707         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3708         $(LIBSOCKET).
3709
3710 2010-03-28  Bruno Haible  <bruno@clisp.org>
3711             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3712
3713         lib-ignore: Determine different options for different compilers.
3714         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
3715         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
3716         Add comments.
3717         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
3718         * NEWS: Mention the change.
3719
3720 2010-03-27  Bruno Haible  <bruno@clisp.org>
3721
3722         Remove unused GNULIB_XYZ macro definitions.
3723         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3724         * modules/fseek (configure.ac): Likewise.
3725         * modules/ioctl (configure.ac): Likewise.
3726         * modules/open (configure.ac): Likewise.
3727         * modules/stdlib-safer (configure.ac): Likewise.
3728
3729 2010-03-27  Bruno Haible  <bruno@clisp.org>
3730
3731         Add a remark about certain modules.
3732         * modules/malloc (Comment): New section.
3733         * modules/realloc (Comment): Likewise.
3734         * modules/sigpipe (Comment): Likewise.
3735
3736 2010-03-27  Bruno Haible  <bruno@clisp.org>
3737
3738         Resolve conflict between the two kinds of module indicators.
3739         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
3740         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
3741         * modules/canonicalize (configure.ac): Invoke
3742         gl_MODULE_INDICATOR_FOR_TESTS.
3743         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
3744         GNULIB_XYZ.
3745         * tests/test-dirent-c++.cc: Likewise.
3746         * tests/test-dirent-safer.c: Likewise.
3747         * tests/test-dup2.c: Likewise.
3748         * tests/test-fchdir.c: Likewise.
3749         * tests/test-fcntl-h-c++.cc: Likewise.
3750         * tests/test-getopt.c: Likewise.
3751         * tests/test-getopt.h: Likewise.
3752         * tests/test-langinfo-c++.cc: Likewise.
3753         * tests/test-locale-c++.cc: Likewise.
3754         * tests/test-math-c++.cc: Likewise.
3755         * tests/test-pty-c++.cc: Likewise.
3756         * tests/test-search-c++.cc: Likewise.
3757         * tests/test-signal-c++.cc: Likewise.
3758         * tests/test-spawn-c++.cc: Likewise.
3759         * tests/test-stdio-c++.cc: Likewise.
3760         * tests/test-stdlib-c++.cc: Likewise.
3761         * tests/test-string-c++.cc: Likewise.
3762         * tests/test-sys_ioctl-c++.cc: Likewise.
3763         * tests/test-sys_select-c++.cc: Likewise.
3764         * tests/test-sys_socket-c++.cc: Likewise.
3765         * tests/test-sys_stat-c++.cc: Likewise.
3766         * tests/test-sys_time-c++.cc: Likewise.
3767         * tests/test-time-c++.cc: Likewise.
3768         * tests/test-unistd-c++.cc: Likewise.
3769         * tests/test-wchar-c++.cc: Likewise.
3770         * tests/uninorm/test-u8-nfc.c: Likewise.
3771         * tests/uninorm/test-u8-nfd.c: Likewise.
3772         * tests/uninorm/test-u8-nfkc.c: Likewise.
3773         * tests/uninorm/test-u8-nfkd.c: Likewise.
3774         * tests/uninorm/test-u16-nfc.c: Likewise.
3775         * tests/uninorm/test-u16-nfd.c: Likewise.
3776         * tests/uninorm/test-u16-nfkc.c: Likewise.
3777         * tests/uninorm/test-u16-nfkd.c: Likewise.
3778         * tests/uninorm/test-u32-nfc.c: Likewise.
3779         * tests/uninorm/test-u32-nfc-big.c: Likewise.
3780         * tests/uninorm/test-u32-nfd.c: Likewise.
3781         * tests/uninorm/test-u32-nfd-big.c: Likewise.
3782         * tests/uninorm/test-u32-nfkc.c: Likewise.
3783         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
3784         * tests/uninorm/test-u32-nfkd.c: Likewise.
3785         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
3786         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3787
3788 2010-03-27  Bruno Haible  <bruno@clisp.org>
3789
3790         Distinguish two kinds of module indicators.
3791         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
3792         gl_MODULE_INDICATOR.
3793         (gl_MODULE_INDICATOR): New macro.
3794         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
3795         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
3796         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3797         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3798         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3799         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3800         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3801         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3802         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3803         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3804         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3805         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3807         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3808         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3809         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3810         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3811         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3812         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3813         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3814         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3815         * modules/cloexec (configure.ac): Likewise.
3816         * modules/getopt-gnu (configure.ac): Likewise.
3817         * modules/uninorm/u8-normalize (configure.ac): Likewise.
3818         * modules/uninorm/u16-normalize (configure.ac): Likewise.
3819         * modules/uninorm/u32-normalize (configure.ac): Likewise.
3820         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
3821
3822 2010-03-27  Bruno Haible  <bruno@clisp.org>
3823
3824         New module description field 'Comment'.
3825         * gnulib-tool: New option --extract-comment.
3826         (func_usage): Document it.
3827         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
3828         (func_get_comment): New function.
3829         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
3830
3831 2010-03-27  Bruno Haible  <bruno@clisp.org>
3832
3833         Addendum to 2010-02-07 commit.
3834         * gnulib-tool (func_usage): Document --extract-applicability option.
3835
3836 2010-03-27  Bruno Haible  <bruno@clisp.org>
3837
3838         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
3839         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
3840         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
3841         rather than link errors.
3842
3843 2010-03-27  Bruno Haible  <bruno@clisp.org>
3844
3845         Avoid side effects from tests-related modules on the compilation of lib.
3846         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
3847         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
3848         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
3849         parameter. Emit into AM_CPPFLAGS a definition of the designated C
3850         macro.
3851         (func_import): Define a witness macro. Assign it a value that depends
3852         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
3853         tests-related modules.
3854         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
3855         Reported by Jim Meyering.
3856
3857 2010-03-27  Bruno Haible  <bruno@clisp.org>
3858
3859         Factorize common .m4 code.
3860         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
3861         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
3862         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
3863         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
3864         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3865         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
3866         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
3867         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3868         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3869         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3870         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
3871         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3872         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3873         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3874         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3875         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
3876         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3877         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3879         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
3880         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
3881         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3882         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3884         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3885         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3886         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
3887         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
3888         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
3889         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3890         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3891         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3892
3893 2010-03-27  Bruno Haible  <bruno@clisp.org>
3894
3895         Fix a compilation error on Cygwin with g++ >= 4.3.
3896         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
3897         if it is undefined or if we alias it to chmod.
3898         (lstat): Don't warn about the use of this function if it is undefined
3899         or if we alias it to stat.
3900         Reported by Simon Josefsson.
3901
3902 2010-03-27  Bruno Haible  <bruno@clisp.org>
3903
3904         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
3905         * modules/getlogin (configure.ac): Update.
3906
3907         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
3908         * modules/getlogin_r (configure.ac): Update.
3909
3910         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
3911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
3912         * modules/inet_ntop (configure.ac): Update.
3913
3914         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
3915         * modules/inet_pton (configure.ac): Update.
3916
3917         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
3918         * modules/mbslen (configure.ac): Update.
3919
3920         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
3921         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
3922         * modules/forkpty (configure.ac): Update.
3923         * modules/openpty (configure.ac): Update.
3924
3925 2010-03-26  Simon Josefsson  <simon@josefsson.org>
3926
3927         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
3928         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
3929
3930 2010-03-25  Eric Blake  <eblake@redhat.com>
3931
3932         maint: use pragma consistently across replacement headers
3933         * lib/ctype.in.h (system_header): Hoist for consistent placement.
3934         * lib/dirent.in.h (system_header): Likewise.
3935         * lib/errno.in.h (system_header): Likewise.
3936         * lib/float.in.h (system_header): Likewise.
3937         * lib/getopt.in.h (system_header): Likewise.
3938         * lib/iconv.in.h (system_header): Likewise.
3939         * lib/inttypes.in.h (system_header): Likewise.
3940         * lib/langinfo.in.h (system_header): Likewise.
3941         * lib/locale.in.h (system_header): Likewise.
3942         * lib/math.in.h (system_header): Likewise.
3943         * lib/netdb.in.h (system_header): Likewise.
3944         * lib/netinet_in.in.h (system_header): Likewise.
3945         * lib/pty.in.h (system_header): Likewise.
3946         * lib/sched.in.h (system_header): Likewise.
3947         * lib/se-selinux.in.h (system_header): Likewise.
3948         * lib/search.in.h (system_header): Likewise.
3949         * lib/spawn.in.h (system_header): Likewise.
3950         * lib/stdarg.in.h (system_header): Likewise.
3951         * lib/stdint.in.h (system_header): Likewise.
3952         * lib/string.in.h (system_header): Likewise.
3953         * lib/strings.in.h (system_header): Likewise.
3954         * lib/sys_file.in.h (system_header): Likewise.
3955         * lib/sys_ioctl.in.h (system_header): Likewise.
3956         * lib/sys_socket.in.h (system_header): Likewise.
3957         * lib/sys_times.in.h (system_header): Likewise.
3958         * lib/sys_utsname.in.h (system_header): Likewise.
3959         * lib/sys_wait.in.h (system_header): Likewise.
3960         * lib/sysexits.in.h (system_header): Likewise.
3961         * lib/unistd.in.h (system_header): Likewise.
3962         * lib/wctype.in.h (system_header): Likewise.
3963
3964         arpa/inet: fix mingw compilation warning
3965         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
3966         Reported by Matthew Bolte.
3967
3968 2010-03-25  Bruno Haible  <bruno@clisp.org>
3969
3970         Avoid collision between gnulib wrapper and libintl wrapper.
3971         * lib/printf.c (printf): Don't define if a printf wrapper is already
3972         defined in intl/printf.c.
3973         Reported by Michel Boaventura <michel@michelboaventura.com>.
3974
3975 2010-03-25  Bruno Haible  <bruno@clisp.org>
3976
3977         Use ANSI C.
3978         * lib/readutmp.h (getutent): Provide ANSI C prototype.
3979
3980 2010-03-25  Bruno Haible  <bruno@clisp.org>
3981
3982         Minor formatting changes.
3983         * lib/acosl.c: Insert space before function argument list.
3984         * lib/argz.c: Likewise.
3985         * lib/asinl.c: Likewise.
3986         * lib/expl.c: Likewise.
3987         * lib/gen-uni-tables.c: Likewise.
3988         * lib/gettext.h: Likewise.
3989         * lib/glthread/lock.h: Likewise.
3990         * lib/tanl.c: Likewise.
3991         * lib/uniname/uniname.c: Likewise.
3992         * tests/test-idpriv-drop.c: Likewise.
3993         * tests/test-idpriv-droptemp.c: Likewise.
3994         * tests/test-lock.c: Likewise.
3995         * tests/test-tls.c: Likewise.
3996         * lib/argp-help.c: Insert space before function-like macro argument
3997         list.
3998         * lib/memcmp.c: Likewise.
3999         * tests/test-base64.c: Likewise.
4000         * lib/localename.c: Insert space before sizeof's argument list.
4001         * lib/safe-alloc.h: Likewise.
4002         * lib/file-set.h: Insert space before macro argument list.
4003         * tests/test-argp.c: Likewise.
4004         * lib/argp-namefrob.h: Insert space before function parameter list.
4005         * lib/getaddrinfo.c: Likewise.
4006         * lib/netdb.in.h: Likewise.
4007         * lib/parse-duration.h: Likewise.
4008         * lib/parse-duration.c: Likewise.
4009         * lib/poll.c: Likewise.
4010         * lib/select.c: Likewise.
4011         * lib/trim.h: Likewise.
4012         * tests/test-usleep.c: Likewise.
4013         * lib/ldexpl.c: Insert space before function parameter list and before
4014         function argument list.
4015         * lib/logl.c: Likewise.
4016         * lib/sqrtl.c: Likewise.
4017         * lib/trim.c: Likewise.
4018         * lib/cosl.c: Use GNU style indentation. Insert space before function
4019         argument list.
4020         * lib/sinl.c: Likewise.
4021         * lib/tsearch.c: Insert space after 'for'.
4022         Reported by Jim Meyering.
4023
4024 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4025
4026         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4027         config header before grepping, as it's not present before
4028         autoreconf/configure are run.  Reported by Simon Josefsson.
4029
4030 2010-03-23  Bruno Haible  <bruno@clisp.org>
4031
4032         pt_chown: Make it work with automake < 1.11.
4033         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4034         Reported by Simon Josefsson.
4035
4036 2010-03-23  Bruno Haible  <bruno@clisp.org>
4037
4038         pt_chown: Don't depend on GPLed modules.
4039         * lib/pt_chown.c: Don't include idpriv.h.
4040         (main): Don't drop privileges.
4041         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4042         Reported by Simon Josefsson.
4043
4044 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4045
4046         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4047         suggestions from karl@freefriends.org (Karl Berry).
4048
4049 2010-03-22  Eric Blake  <eblake@redhat.com>
4050
4051         gethostname: further tweaks
4052         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4053         are overriding gethostname.
4054         Suggested by Bruno Haible.
4055
4056 2010-03-21  Bruno Haible  <bruno@clisp.org>
4057
4058         Fix comments.
4059         * lib/forkpty.c (rpl_forkpty): Fix comment.
4060         * lib/openpty.c (rpl_openpty): Likewise.
4061         Reported by Eric Blake.
4062
4063 2010-03-22  Eric Blake  <eblake@redhat.com>
4064
4065         gethostname: fix build on mingw
4066         * lib/unistd.in.h (includes): Work around fact that mingw
4067         <winsock2.h> re-includes <unistd.h>, by avoiding any
4068         redeclarations if we are being included by <winsock2.h>.
4069         Reported by Matthias Bolte.
4070
4071 2010-03-21  Bruno Haible  <bruno@clisp.org>
4072
4073         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4074         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4075         modifications.
4076         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4077         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4078         provide the replacement.
4079         * modules/forkpty (Depends-on): Add openpty, login_tty.
4080         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4081         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4082         * doc/glibc-functions/forkpty.texi: More supported platforms.
4083         * config/srclist.txt: Add forkpty.c (commented).
4084
4085 2010-03-21  Bruno Haible  <bruno@clisp.org>
4086
4087         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4088         (Makefile.am): Verify that PTY_LIB is defined.
4089
4090         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4091
4092 2010-03-21  Bruno Haible  <bruno@clisp.org>
4093
4094         Tests for module 'login_tty'.
4095         * modules/login_tty-tests: New file.
4096         * tests/test-login_tty.c: New file.
4097
4098         New module 'login_tty'.
4099         * lib/login_tty.c: New file.
4100         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4101         * modules/login_tty: New file.
4102         * doc/glibc-functions/login_tty.texi: Mention the new module.
4103
4104 2010-03-21  Bruno Haible  <bruno@clisp.org>
4105
4106         login_tty: Documentation.
4107         * doc/glibc-functions/login_tty.texi: New file.
4108         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4109
4110 2010-03-21  Bruno Haible  <bruno@clisp.org>
4111
4112         pty: Consistent macro naming.
4113         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4114         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4115         * modules/pty (configure.ac): Update.
4116
4117 2010-03-21  Bruno Haible  <bruno@clisp.org>
4118
4119         Tests for openpty: Make stricter.
4120         * tests/test-openpty.c (main): Add test of canonical processing and
4121         erase.
4122         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4123
4124         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4125         * lib/openpty.c (openpty): New replacement function.
4126         * lib/pty.in.h: Include <termios.h>.
4127         (openpty): Update declaration. Add comments.
4128         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4129         is not declared, arrange to provide the replacement. Check for _getpty
4130         and posix_openpt.
4131         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4132         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4133         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4134         * modules/pty-tests (test_pty_c___LDADD): New variable.
4135         * doc/glibc-functions/openpty.texi: More supported platforms.
4136
4137 2010-03-21  Bruno Haible  <bruno@clisp.org>
4138
4139         setenv: Tweaks.
4140         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4141         the test program.
4142         * doc/posix-functions/setenv.texi: Update platforms list.
4143
4144 2010-03-21  Bruno Haible  <bruno@clisp.org>
4145
4146         New module 'unlockpt'.
4147         * lib/unlockpt.c: New file, from glibc with modifications.
4148         * m4/unlockpt.m4: New file.
4149         * modules/unlockpt: New file.
4150         * lib/stdlib.in.h (unlockpt): New declaration.
4151         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4152         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4153         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4154         HAVE_UNLOCKPT.
4155         * doc/posix-functions/unlockpt.texi: Mention the new module.
4156         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4157         * config/srclist.txt: Add unlockpt.c (commented).
4158
4159 2010-03-21  Jim Meyering  <meyering@redhat.com>
4160
4161         maint.mk: prohibit inclusion of "intprops.h" without use
4162         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4163
4164 2010-03-21  Bruno Haible  <bruno@clisp.org>
4165
4166         New module 'grantpt'.
4167         * lib/grantpt.c: New file, from glibc with modifications.
4168         * m4/grantpt.m4: New file.
4169         * modules/grantpt: New file.
4170         * lib/stdlib.in.h (grantpt): New declaration.
4171         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4172         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4173         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4174         HAVE_GRANTPT.
4175         * doc/posix-functions/grantpt.texi: Mention the new module.
4176         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4177         * config/srclist.txt: Add grantpt.c (commented).
4178
4179 2010-03-21  Bruno Haible  <bruno@clisp.org>
4180
4181         New module 'pt_chown'.
4182         * lib/pt_chown.c: New file, from glibc with modifications.
4183         * lib/pty-private.h: New file, from glibc with modifications.
4184         * modules/pt_chown: New file.
4185         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4186
4187 2010-03-21  Bruno Haible  <bruno@clisp.org>
4188
4189         Tests for module 'ptsname'.
4190         * modules/ptsname-tests: New file.
4191         * tests/test-ptsname.c: New file.
4192
4193         New module 'ptsname'.
4194         * lib/ptsname.c: New file, from glibc with modifications.
4195         * m4/ptsname.m4: New file.
4196         * modules/ptsname: New file.
4197         * lib/stdlib.in.h (ptsname): New declaration.
4198         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4199         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4200         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4201         HAVE_PTSNAME.
4202         * doc/posix-functions/ptsname.texi: Mention the new module.
4203         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4204         * config/srclist.txt: Add ptsname.c (commented).
4205
4206 2010-03-21  Bruno Haible  <bruno@clisp.org>
4207
4208         Tests for module 'ttyname_r'.
4209         * modules/ttyname_r-tests: New file.
4210         * tests/test-ttyname_r.c: New file.
4211
4212         New module 'ttyname_r'.
4213         * lib/ttyname_r.c: New file.
4214         * m4/ttyname_r.m4: New file.
4215         * modules/ttyname_r: New file.
4216         * lib/unistd.in.h (ttyname_r): New declaration.
4217         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4218         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4219         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4220         HAVE_TTYNAME_R.
4221         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4222         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4223
4224 2010-03-20  Bruno Haible  <bruno@clisp.org>
4225
4226         signal: Undefine macro definitions in C++ mode.
4227         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4228         sigfillset): Undefine macro definitions from the system header in C++
4229         mode.
4230         Reported by John W. Eaton <jwe@gnu.org>.
4231
4232 2010-03-20  Bruno Haible  <bruno@clisp.org>
4233
4234         Ensure no #include statements inside extern "C" { ... }.
4235         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4236         contain #include statements.
4237         * lib/time.in.h: Likewise.
4238
4239 2010-03-20  Bruno Haible  <bruno@clisp.org>
4240
4241         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4242         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4243         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4244         Reported by John W. Eaton <jwe@gnu.org>.
4245
4246 2010-03-20  Bruno Haible  <bruno@clisp.org>
4247
4248         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4249         Reported by Jim Meyering.
4250
4251 2010-03-20  Bruno Haible  <bruno@clisp.org>
4252
4253         pipe: Set errno upon failure.
4254         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4255         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4256         errno value in error message.
4257
4258 2010-03-20  Bruno Haible  <bruno@clisp.org>
4259             Jim Meyering  <meyering@redhat.com>
4260
4261         lchown: Avoid "unused variable" warning.
4262         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4263
4264 2010-03-20  Bruno Haible  <bruno@clisp.org>
4265
4266         Work around unlink() bug on MacOS X 10.5.6.
4267         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4268         attempting to unlink a parent directory.
4269         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4270         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4271         activate for the replacement function.
4272         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4273
4274 2010-03-20  Bruno Haible  <bruno@clisp.org>
4275
4276         Fix link errors on Solaris 8.
4277         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4278         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4279
4280 2010-03-19  Jim Meyering  <meyering@redhat.com>
4281
4282         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4283         The _LIBC implementation of build_range_exp correctly honors the
4284         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4285         However, the non-_LIBC implementation would ignore that syntax-bit
4286         flag and return REG_ERANGE unconditionally.
4287         This change makes it honor that flag.
4288         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4289         Make two pointer parameters "const".
4290         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4291         (parse_bracket_exp): Update caller.
4292
4293         regex.m4: correct the reversed range endpoint ([b-a]) test
4294         * m4/regex.m4: When requiring that [b-a] evoke failure,
4295         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4296         test pass once again for x86-based systems.
4297
4298 2010-03-19  Bruno Haible  <bruno@clisp.org>
4299
4300         scandir: Fix link error on Solaris 8.
4301         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4302         macros.
4303
4304 2010-03-19  Bruno Haible  <bruno@clisp.org>
4305
4306         getusershell: Fix documentation.
4307         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4308         module.
4309         * doc/glibc-functions/setusershell.texi: Likewise.
4310
4311         getusershell: Provide declaration, missing on Solaris 9.
4312         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4313         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4314         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4315         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4317         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4318         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4319         HAVE_GETUSERSHELL.
4320         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4321
4322 2010-03-19  Bruno Haible  <bruno@clisp.org>
4323
4324         wctype: Provide iswblank function.
4325         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4326         exists and is fine.
4327         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4328         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4329         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4330         * doc/posix-functions/iswblank.texi: Update.
4331
4332 2010-03-19  Bruno Haible  <bruno@clisp.org>
4333
4334         Tests of module 'pty' in C++ mode.
4335         * modules/pty-tests: New file.
4336         * tests/test-pty-c++.cc: New file.
4337         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4338
4339 2010-03-19  Eric Blake  <eblake@redhat.com>
4340
4341         logb: fix documentation
4342         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4343         1.5 declaration bug.
4344
4345         forkpty, openpty: prefer glibc's const-safe prototype
4346         * lib/forkpty.c (rpl_forkpty): New file.
4347         * lib/openpty.c (rpl_openpty): Likewise.
4348         * modules/forkpty (Files): Distribute it.
4349         * modules/openpty (Files): Likewise.
4350         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4351         check...
4352         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4353         replacement for for non-const BSD signature.
4354         * modules/pty (Makefile.am): Substitute witnesses.
4355         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4356         * tests/test-forkpty.c: Update signature check.
4357         * tests/test-openpty.c: Likewise.
4358         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4359         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4360
4361         forkpty, openpty: split functions into new modules
4362         * modules/pty (Makefile.am): Substitute new witnesses.
4363         (Libraries): Move library detection...
4364         * modules/forkpty: ...into new module.
4365         * modules/openpty: Another new module.
4366         * modules/pty-tests: Rename and split...
4367         * modules/forkpty-tests: ...to this...
4368         * modules/openpty-tests: ...and this.
4369         * tests/test-pty.c: Rename and split...
4370         * tests/test-forkpty.c: ...to this...
4371         * tests/test-openpty.c: ...and this.
4372         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4373         (gl_PTY): Split library searching...
4374         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4375         (gl_FORKPTY, gl_OPENPTY): New macros.
4376         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4377         * NEWS: Mention the split.
4378         * MODULES.html.sh (Misc): Document the modules.
4379         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4380         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4381
4382         pty: improve replacement header
4383         * lib/pty.in.h: New file.
4384         * modules/pty (Files): Ship it.
4385         (Makefile.am): Always build replacement.
4386         * m4/pty.m4: Rename...
4387         * m4/pty_h.m4: ...to this.
4388         (gl_PTY): Modernize setting of witness macros; update check of
4389         forkpty to take proper advantage of cache.
4390         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4391
4392         getopt: avoid compiler warning
4393         * lib/getopt.c (attribute_hidden): Remove unused macro.
4394
4395 2010-03-18  Bruno Haible  <bruno@clisp.org>
4396
4397         Fix link errors on Solaris 8.
4398         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4399         * modules/search-tests (test_search_c___LDADD): Likewise.
4400         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4401         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4402         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4403         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4404         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4405         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4406         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4407
4408 2010-03-18  Bruno Haible  <bruno@clisp.org>
4409
4410         Fix bug introduced on 2010-03-14.
4411         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4412         (gl_SPAWN_H): Require it.
4413         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4414         Reported by Simon Josefsson.
4415
4416 2010-03-18  Bruno Haible  <bruno@clisp.org>
4417
4418         Fix typo introduced on 2009-12-31.
4419         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4420         posix_spawn_file_actions_adddup2.
4421
4422 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4423         and Eric Blake  <eblake@redhat.com>
4424
4425         test-vc-list-files-git: make more robust
4426         * tests/test-vc-list-files-git.sh: Unset problematic environment
4427         variables.  Chain commands together.
4428
4429 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4430
4431         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4432         `AC_CHECK_DECL' invocation.
4433
4434 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4435
4436         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4437         appears before executable statements. Suggested by Petr Sumbera
4438         <Petr.Sumbera@Sun.COM>.
4439
4440 2010-03-14  Bruno Haible  <bruno@clisp.org>
4441
4442         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4443         portability problems. Instead use a simpler test.
4444         (main): Check that invalid arguments are rejected only on Linux.
4445
4446 2010-03-14  Bruno Haible  <bruno@clisp.org>
4447
4448         Fix bug introduced on 2009-12-31.
4449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4450         gl_PREREQ_SYS_H_WINSOCK2 always.
4451         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4452         SYS_SOCKET_H variable.
4453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4454         Update comments.
4455         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4456         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4457         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4459         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4460
4461 2010-03-14  Bruno Haible  <bruno@clisp.org>
4462
4463         Fix values returned by sinl, cosl.
4464         * lib/trigl.h: Add specification comments.
4465         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4466         that combines the values from the precomputed table with the values of
4467         the Chebyshev polynomials.
4468
4469 2010-03-14  Bruno Haible  <bruno@clisp.org>
4470
4471         Fix compilation error when modules 'posix_spawn[p]' are not used.
4472         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4473         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4474
4475 2010-03-14  Bruno Haible  <bruno@clisp.org>
4476
4477         Fix compilation error on mingw when module 'time_r' is not used.
4478         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4479         is 1.
4480         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4481         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4482         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4483         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4484
4485 2010-03-14  Bruno Haible  <bruno@clisp.org>
4486
4487         Fix compilation error with Sun C.
4488         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4489         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4490         instead of GCC specific ULONG_LONG_MAX.
4491         * lib/xstrtoll.c: Likewise.
4492         * lib/xstrtoull.c: Likewise.
4493
4494 2010-03-13  Bruno Haible  <bruno@clisp.org>
4495
4496         Allow the user to disable C++ code and tests.
4497         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4498         (gl_PROG_ANSI_CXX): Require it.
4499
4500 2010-03-13  Bruno Haible  <bruno@clisp.org>
4501
4502         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4503         cases.
4504
4505 2010-03-13  Bruno Haible  <bruno@clisp.org>
4506
4507         Test that gnulib does not break the standard C++ headers.
4508         * tests/test-locale-c++2.cc: New file.
4509         * modules/locale-tests (Files): Add it.
4510         (Makefile.am): Compile it for test-locale-c++.
4511         * tests/test-math-c++2.cc: New file.
4512         * modules/math-tests (Files): Add it.
4513         (Makefile.am): Compile it for test-math-c++.
4514         * tests/test-signal-c++2.cc: New file.
4515         * modules/signal-tests (Files): Add it.
4516         (Makefile.am): Compile it for test-signal-c++.
4517         * tests/test-stdio-c++2.cc: New file.
4518         * modules/stdio-tests (Files): Add it.
4519         (Makefile.am): Compile it for test-stdio-c++.
4520         * tests/test-stdlib-c++2.cc: New file.
4521         * modules/stdlib-tests (Files): Add it.
4522         (Makefile.am): Compile it for test-stdlib-c++.
4523         * tests/test-string-c++2.cc: New file.
4524         * modules/string-tests (Files): Add it.
4525         (Makefile.am): Compile it for test-string-c++.
4526         * tests/test-time-c++2.cc: New file.
4527         * modules/time-tests (Files): Add it.
4528         (Makefile.am): Compile it for test-time-c++.
4529         Reported by John W. Eaton <jwe@gnu.org>.
4530
4531 2010-03-13  Bruno Haible  <bruno@clisp.org>
4532
4533         * gnulib-tool (func_usage): Clarify which options are available for
4534         --create-testdir and --create-megatestdir.
4535
4536 2010-03-13  Bruno Haible  <bruno@clisp.org>
4537
4538         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4539         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4540         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4541         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4542         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4543         when appropriate.
4544         Reported by Jim Meyering.
4545
4546 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4547
4548         * gnulib-tool (func_import): Explain origin of code.
4549
4550 2010-03-12  Bruno Haible  <bruno@clisp.org>
4551
4552         Fix problem with automake's definition of CXXLINK.
4553         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4554         Reported by Simon Josefsson and Ludovic Courtès.
4555
4556 2010-03-12  Bruno Haible  <bruno@clisp.org>
4557
4558         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4559         stable releases.
4560
4561 2010-03-11  Bruno Haible  <bruno@clisp.org>
4562
4563         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4564         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4565         whether the system provides one variant or multiple variants of the
4566         function.
4567         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4568         C++ compilers.
4569         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4570         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4571         Reported by Jim Meyering.
4572
4573 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4574
4575         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4576
4577 2010-03-08  Bruno Haible  <bruno@clisp.org>
4578
4579         gnulib-tool: Add support for --libtool in --create-testdir.
4580         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4581         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4582
4583 2010-03-08  Eric Blake  <eblake@redhat.com>
4584
4585         gnulib-tool.texi: mention possibility of git submodule
4586         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4587         submodules.
4588         * doc/.gitignore: Ignore another generated file.
4589
4590 2010-03-08  Karl Berry  <karl@gnu.org>
4591
4592         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4593         of committing gnulib files while skipping others.
4594
4595 2010-03-07  Bruno Haible  <bruno@clisp.org>
4596
4597         Tests of module 'wctype' in C++ mode.
4598         * tests/test-wctype-c++.cc: New file.
4599         * modules/wctype-tests (Files): Add it and tests/signature.h.
4600         (Depends-on): Add ansi-c++-opt.
4601         (Makefile.am): Arrange to compile and run test-wctype-c++.
4602
4603         Tests of module 'wchar' in C++ mode.
4604         * tests/test-wchar-c++.cc: New file.
4605         * modules/wchar-tests (Files): Add it and tests/signature.h.
4606         (Depends-on): Add ansi-c++-opt.
4607         (Makefile.am): Arrange to compile and run test-wchar-c++.
4608         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4609         gl_MODULE_INDICATOR.
4610
4611         Tests of module 'unistd' in C++ mode.
4612         * tests/test-unistd-c++.cc: New file.
4613         * modules/unistd-tests (Files): Add it and tests/signature.h.
4614         (Depends-on): Add ansi-c++-opt.
4615         (Makefile.am): Arrange to compile and run test-unistd-c++.
4616         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
4617         gl_MODULE_INDICATOR.
4618
4619         Tests of module 'time' in C++ mode.
4620         * tests/test-time-c++.cc: New file.
4621         * modules/time-tests (Files): Add it and tests/signature.h.
4622         (Depends-on): Add ansi-c++-opt.
4623         (Makefile.am): Arrange to compile and run test-time-c++.
4624         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4625
4626         Tests of module 'sys_time' in C++ mode.
4627         * tests/test-sys_time-c++.cc: New file.
4628         * modules/sys_time-tests (Files): Add it and tests/signature.h.
4629         (Depends-on): Add ansi-c++-opt.
4630         (Makefile.am): Arrange to compile and run test-sys_time-c++.
4631         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
4632         gl_MODULE_INDICATOR.
4633
4634         Tests of module 'sys_stat' in C++ mode.
4635         * tests/test-sys_stat-c++.cc: New file.
4636         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
4637         (Depends-on): Add ansi-c++-opt.
4638         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
4639         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
4640         gl_MODULE_INDICATOR.
4641
4642         Tests of module 'sys_socket' in C++ mode.
4643         * tests/test-sys_socket-c++.cc: New file.
4644         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4645         (Depends-on): Add ansi-c++-opt.
4646         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4648         gl_MODULE_INDICATOR.
4649
4650         Tests of module 'sys_select' in C++ mode.
4651         * tests/test-sys_select-c++.cc: New file.
4652         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4653         (Depends-on): Add ansi-c++-opt.
4654         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4656         gl_MODULE_INDICATOR.
4657
4658         Tests of module 'sys_ioctl' in C++ mode.
4659         * tests/test-sys_ioctl-c++.cc: New file.
4660         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4661         (Depends-on): Add ansi-c++-opt.
4662         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4664         gl_MODULE_INDICATOR.
4665
4666         Tests of module 'string' in C++ mode.
4667         * tests/test-string-c++.cc: New file.
4668         * modules/string-tests (Files): Add it and tests/signature.h.
4669         (Depends-on): Add ansi-c++-opt.
4670         (Makefile.am): Arrange to compile and run test-string-c++.
4671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4672         gl_MODULE_INDICATOR.
4673
4674         Tests of module 'stdlib' in C++ mode.
4675         * tests/test-stdlib-c++.cc: New file.
4676         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4677         (Depends-on): Add ansi-c++-opt.
4678         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4679         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4680         gl_MODULE_INDICATOR.
4681
4682         Tests of module 'stdio' in C++ mode.
4683         * tests/test-stdio-c++.cc: New file.
4684         * modules/stdio-tests (Files): Add it and tests/signature.h.
4685         (Depends-on): Add ansi-c++-opt.
4686         (Makefile.am): Arrange to compile and run test-stdio-c++.
4687         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4688         gl_MODULE_INDICATOR.
4689
4690         Tests of module 'spawn' in C++ mode.
4691         * tests/test-spawn-c++.cc: New file.
4692         * modules/spawn-tests (Files): Add it and tests/signature.h.
4693         (Depends-on): Add ansi-c++-opt.
4694         (Makefile.am): Arrange to compile and run test-spawn-c++.
4695         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4696         gl_MODULE_INDICATOR.
4697
4698         Tests of module 'signal' in C++ mode.
4699         * tests/test-signal-c++.cc: New file.
4700         * modules/signal-tests (Files): Add it and tests/signature.h.
4701         (Depends-on): Add ansi-c++-opt.
4702         (Makefile.am): Arrange to compile and run test-signal-c++.
4703         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4704         gl_MODULE_INDICATOR.
4705
4706         Tests of module 'search' in C++ mode.
4707         * tests/test-search-c++.cc: New file.
4708         * modules/search-tests (Files): Add it and tests/signature.h.
4709         (Depends-on): Add ansi-c++-opt.
4710         (Makefile.am): Arrange to compile and run test-search-c++.
4711         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
4712         gl_MODULE_INDICATOR.
4713
4714         Tests of module 'math' in C++ mode.
4715         * tests/test-math-c++.cc: New file.
4716         * modules/math-tests (Files): Add it and tests/signature.h.
4717         (Depends-on): Add ansi-c++-opt.
4718         (Makefile.am): Arrange to compile and run test-math-c++.
4719         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4720
4721         Tests of module 'locale' in C++ mode.
4722         * tests/test-locale-c++.cc: New file.
4723         * modules/locale-tests (Files): Add it and tests/signature.h.
4724         (Depends-on): Add ansi-c++-opt.
4725         (Makefile.am): Arrange to compile and run test-locale-c++.
4726         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
4727         gl_MODULE_INDICATOR.
4728
4729         Tests of module 'langinfo' in C++ mode.
4730         * tests/test-langinfo-c++.cc: New file.
4731         * modules/langinfo-tests (Files): Add it and tests/signature.h.
4732         (Depends-on): Add ansi-c++-opt.
4733         (Makefile.am): Arrange to compile and run test-langinfo-c++.
4734         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
4735         gl_MODULE_INDICATOR.
4736
4737         Tests of module 'iconv-h' in C++ mode.
4738         * tests/test-iconv-h-c++.cc: New file.
4739         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
4740         (Depends-on): Add ansi-c++-opt.
4741         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
4742
4743         Tests of module 'glob' in C++ mode.
4744         * tests/test-glob-c++.cc: New file.
4745         * modules/glob-tests (Files): Add it.
4746         (Depends-on): Add ansi-c++-opt.
4747         (Makefile.am): Arrange to compile and run test-glob-c++.
4748
4749         Tests of module 'fcntl-h' in C++ mode.
4750         * tests/test-fcntl-h-c++.cc: New file.
4751         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
4752         (Depends-on): Add ansi-c++-opt.
4753         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
4754         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
4755         gl_MODULE_INDICATOR.
4756
4757         Tests of module 'dirent' in C++ mode.
4758         * tests/test-dirent-c++.cc: New file.
4759         * modules/dirent-tests (Files): Add it and tests/signature.h.
4760         (Depends-on): Add ansi-c++-opt.
4761         (Makefile.am): Arrange to compile and run test-dirent-c++.
4762         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4763         gl_MODULE_INDICATOR.
4764
4765         New module 'ansi-c++-opt'.
4766         * modules/ansi-c++-opt: New file.
4767         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
4768
4769         Document C++ namespace mode.
4770         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
4771
4772         wctype: Avoid #define replacements in C++ mode.
4773         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
4774         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
4775         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
4776         In C++, define a namespaced alias symbol.
4777         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
4778         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
4779         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
4780         rule.
4781
4782         wchar: Avoid #define replacements in C++ mode.
4783         * lib/wchar.in.h: Include c++defs.h.
4784         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
4785         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
4786         symbol.
4787         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
4788         * modules/wchar (Depends-on): Add c++defs.
4789         (Makefile.am): Update wchar.h rule.
4790
4791         unistd: Avoid #define replacements in C++ mode.
4792         * lib/unistd.in.h: Include c++defs.h.
4793         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
4794         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
4795         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
4796         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
4797         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
4798         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
4799         symbol.
4800         (environ): Update.
4801         * modules/unistd (Depends-on): Add c++defs.
4802         (Makefile.am): Update unistd.h rule.
4803
4804         time: Avoid #define replacements in C++ mode.
4805         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
4806         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
4807         define a namespaced alias symbol.
4808         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
4809         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
4810         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
4811         * modules/time (Depends-on): Add c++defs, warn-on-use.
4812         (Makefile.am): Update time.h rule.
4813         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4814         * modules/nanosleep (configure.ac): Likewise.
4815         * modules/strptime (configure.ac): Likewise.
4816         * modules/timegm (configure.ac): Likewise.
4817
4818         sys_time: Avoid #define replacements in C++ mode.
4819         * lib/sys_time.in.h: Include c++defs.h.
4820         (gettimeofday): In C++, define a namespaced alias symbol.
4821         * modules/sys_time (Depends-on): Add c++defs.
4822         (Makefile.am): Update sys/time.h rule.
4823
4824         sys_stat: Avoid #define replacements in C++ mode.
4825         * lib/sys_stat.in.h: Include c++defs.h.
4826         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
4827         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
4828         namespaced alias symbol.
4829         In C++, define a namespaced alias symbol.
4830         * modules/sys_stat (Depends-on): Add c++defs.
4831         (Makefile.am): Update sys/stat.h rule.
4832
4833         sys_socket: Avoid #define replacements in C++ mode.
4834         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
4835         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
4836         definitions also when the system has a <sys/socket.h>.
4837         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4838         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
4839         In C++, define a namespaced alias symbol.
4840         * modules/sys_socket (Depends-on): Add c++defs.
4841         (Makefile.am): Update sys/socket.h rule.
4842
4843         sys_select: Avoid #define replacements in C++ mode.
4844         * lib/sys_select.in.h: Include c++defs.h. Enable the function
4845         definitions also when the system has a <sys/select.h>.
4846         (select): In C++, define a namespaced alias symbol.
4847         * modules/sys_select (Depends-on): Add c++defs.
4848         (Makefile.am): Update sys/select.h rule.
4849
4850         sys_ioctl: Avoid #define replacements in C++ mode.
4851         * lib/sys_ioctl.in.h: Include c++defs.h.
4852         (ioctl): In C++, define a namespaced alias symbol.
4853         * modules/sys_ioctl (Depends-on): Add c++defs.
4854         (Makefile.am): Update sys/ioctl.h rule.
4855
4856         string: Avoid #define replacements in C++ mode.
4857         * lib/string.in.h: Include c++defs.h.
4858         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
4859         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4860         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4861         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
4862         strsignal, strverscmp): In C++, define a namespaced alias symbol.
4863         * modules/string (Depends-on): Add c++defs.
4864         (Makefile.am): Update string.h rule.
4865
4866         stdlib: Avoid #define replacements in C++ mode.
4867         * lib/stdlib.in.h: Include c++defs.h.
4868         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
4869         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
4870         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
4871         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
4872         symbol.
4873         * modules/stdlib (Depends-on): Add c++defs.
4874         (Makefile.am): Update stdlib.h rule.
4875
4876         stdio: Avoid #define replacements in C++ mode.
4877         * lib/stdio.in.h: Include c++defs.h.
4878         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
4879         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
4880         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
4881         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
4882         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
4883         namespaced alias symbol.
4884         * modules/stdio (Depends-on): Add c++defs.
4885         (Makefile.am): Update stdio.h rule.
4886
4887         spawn: Avoid #define replacements in C++ mode.
4888         * lib/spawn.in.h: Include c++defs.h.
4889         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4890         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4891         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4892         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4893         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4894         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4895         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4896         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4897         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4898         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4899         In C++, define a namespaced alias symbol.
4900         * modules/spawn (Depends-on): Add c++defs.
4901         (Makefile.am): Update spawn.h rule.
4902
4903         signal: Avoid #define replacements in C++ mode.
4904         * lib/signal.in.h: Include c++defs.h.
4905         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4906         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
4907         namespaced alias symbol.
4908         * modules/signal (Depends-on): Add c++defs.
4909         (Makefile.am): Update signal.h rule.
4910
4911         search: Avoid #define replacements in C++ mode.
4912         * lib/search.in.h: Include c++defs.h.
4913         (_gl_search_compar_fn, _gl_search_action_fn): New types.
4914         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
4915         symbol.
4916         * modules/search (Depends-on): Add c++defs.
4917         (Makefile.am): Update search.h rule.
4918
4919         math: Avoid #define replacements in C++ mode.
4920         * lib/math.in.h: Include c++defs.h.
4921         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
4922         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
4923         trunc, truncl): In C++, define a namespaced alias symbol.
4924         * modules/math (Depends-on): Add c++defs.
4925         (Makefile.am): Update math.h rule.
4926
4927         locale: Avoid #define replacements in C++ mode.
4928         * lib/locale.in.h: Include c++defs.h.
4929         (duplocale): In C++, define a namespaced alias symbol.
4930         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
4931         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
4932         * modules/locale (Depends-on): Add c++defs.
4933         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
4934
4935         langinfo: Avoid #define replacements in C++ mode.
4936         * lib/langinfo.in.h: Include c++defs.h.
4937         (nl_langinfo): In C++, define a namespaced alias symbol.
4938         * modules/langinfo (Depends-on): Add c++defs.
4939         (Makefile.am): Update langinfo.h rule.
4940
4941         iconv-h: Avoid #define replacements in C++ mode.
4942         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
4943         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
4944         symbol.
4945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
4946         whenever iconv is present.
4947         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
4948         (Makefile.am): Update iconv.h rule.
4949
4950         glob: Avoid #define replacements in C++ mode.
4951         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
4952         (_gl_glob_errfunc_fn): New type.
4953         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
4954         symbol.
4955         * modules/glob (Depends-on): Add c++defs, warn-on-use.
4956         (Makefile.am): Update glob.h rule.
4957
4958         fcntl-h: Avoid #define replacements in C++ mode.
4959         * lib/fcntl.in.h: Include c++defs.h.
4960         (fcntl, open, openat): In C++, define a namespaced alias symbol.
4961         * modules/fcntl-h (Depends-on): Add c++defs.
4962         (Makefile.am): Update fcntl.h rule.
4963
4964         dirent: Avoid #define replacements in C++ mode.
4965         * lib/dirent.in.h: Include c++defs.h.
4966         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
4967         namespaced alias symbol.
4968         (dirfd): Update declaration.
4969         * modules/dirent (Depends-on): Add c++defs.
4970         (Makefile.am): Update dirent.h rule.
4971
4972         ctype: Make it usable in C++ code.
4973         * lib/ctype.in.h: Include c++defs.h.
4974         (isblank): Declare as extern "C".
4975         * modules/ctype (Depends-on): Add c++defs.
4976         (Makefile.am): Update ctype.h rule.
4977
4978         New module 'c++defs'.
4979         * modules/c++defs: New file.
4980         * build-aux/c++defs.h: New file.
4981         Reported by John W. Eaton <jwe@gnu.org>.
4982
4983 2010-03-07  Bruno Haible  <bruno@clisp.org>
4984
4985         logb: Provide missing declaration for Cygwin.
4986         * lib/math.in.h (logb): New declaration.
4987         * m4/logb.m4: New file.
4988         * modules/logb (Files): Add m4/logb.m4.
4989         (Depends-on): Add math.
4990         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
4991         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
4992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
4993         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
4994         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
4995
4996 2010-03-07  Bruno Haible  <bruno@clisp.org>
4997
4998         Fix test-cond link error.
4999         * tests/test-cond.c: Include <stdio.h>.
5000
5001 2010-03-07  Bruno Haible  <bruno@clisp.org>
5002
5003         Fix test-dirent-safer link error.
5004         * modules/dirent-safer-tests (Makefile.am): Define
5005         test_dirent_safer_LDADD.
5006
5007 2010-03-07  Bruno Haible  <bruno@clisp.org>
5008
5009         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5010         among default module list.
5011
5012 2010-03-07  Bruno Haible  <bruno@clisp.org>
5013
5014         Fix link error on platforms with GNU libiconv.
5015         * modules/unistr/u8-strcoll-tests (Makefile): Define
5016         test_u8_strcoll_LDADD.
5017         * modules/unistr/u16-strcoll-tests (Makefile): Define
5018         test_u16_strcoll_LDADD.
5019         * modules/unistr/u32-strcoll-tests (Makefile): Define
5020         test_u32_strcoll_LDADD.
5021
5022 2010-03-07  Bruno Haible  <bruno@clisp.org>
5023
5024         Use POSIX declarations for socket functions.
5025         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5026         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5027         rpl_sendto): Change declaration to match POSIX.
5028         * lib/connect.c (rpl_connect): Likewise.
5029         * lib/accept.c (rpl_accept): Likewise.
5030         * lib/bind.c (rpl_bind): Likewise.
5031         * lib/getpeername.c (rpl_getpeername): Likewise.
5032         * lib/getsockname.c (rpl_getsockname): Likewise.
5033         * lib/recv.c (rpl_recv): Likewise.
5034         * lib/send.c (rpl_send): Likewise.
5035         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5036         * lib/sendto.c (rpl_sendto): Likewise.
5037
5038 2010-03-06  Bruno Haible  <bruno@clisp.org>
5039
5040         Clarify access, euidaccess, faccessat.
5041         * doc/posix-functions/faccessat.texi: Mention security problem under
5042         "Other problems", not "Portability problems".
5043         * doc/posix-functions/access.texi: Likewise. Mention a related security
5044         problem.
5045         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5046         * lib/euidaccess.c: Add comments about platforms.
5047         * lib/unistd.in.h (access, euidaccess): Add warnings.
5048
5049 2010-03-07  Bruno Haible  <bruno@clisp.org>
5050
5051         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5052         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5053         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5054         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5055         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5056         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5057         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5058         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5059         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5061         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5062         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5063         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5064         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5065         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5066         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5067         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5068         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5069         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5070         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5071         Likewise.
5072         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5073         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5074         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5075         Likewise.
5076         * tests/test-spawn.c (main): Make it work when
5077         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5078
5079 2010-03-07  Bruno Haible  <bruno@clisp.org>
5080
5081         Fix incorrect Makefile.am generation in German locale.
5082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5083         Execute sed command with character range in C locale.
5084
5085 2010-03-06  Bruno Haible  <bruno@clisp.org>
5086
5087         Tests for module 'iconv-h'.
5088         * modules/iconv-h-tests: New file.
5089         * tests/test-iconv-h.c: New file.
5090
5091         New module 'iconv-h'.
5092         * modules/iconv-h: New file.
5093         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5094         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5095         (configure.ac): Remove gl_ICONV_H.
5096         (Makefile.am): Remove rule for iconv.h.
5097
5098 2010-03-06  Bruno Haible  <bruno@clisp.org>
5099
5100         More consistent naming of *.m4 files.
5101         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5102         * modules/wctype (Files): Update.
5103
5104         More consistent naming of *.m4 files.
5105         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5106         * modules/wchar (Files): Update.
5107
5108 2010-03-06  Jim Meyering  <meyering@redhat.com>
5109
5110         euidaccess: relax license to LGPLv2+
5111         * modules/euidaccess (License): Relax to LGPLv2+.
5112
5113 2010-03-06  Bruno Haible  <bruno@clisp.org>
5114
5115         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5116         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5117         (Makefile.am): Augment lib_SOURCES instead.
5118
5119 2010-03-04  Jim Meyering  <meyering@redhat.com>
5120
5121         utime: remove obsolete module
5122         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5123         unnecessary for years, and has been marked as obsolete for 10 months.
5124         * modules/utime: Remove file.
5125         * lib/utime.c: Remove file.
5126         * m4/utime.m4: Remove file.
5127         * m4/utimes-null.m4: Remove file.
5128         * doc/posix-functions/utime.texi (utime): Remove reference to
5129         the module.  Move the sole "fixed by gnulib" item into the
5130         "problems not fixed by Gnulib" list.
5131         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5132
5133 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5134
5135         * modules/exit (License): Relax license to LGPLv2+.
5136         (Status): Mark as obsolete.
5137         * NEWS: Mention deprecated 'exit' module.
5138         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5139         of now obsolete 'exit'.
5140
5141 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5142
5143         fts-lgpl: remove unused module
5144         * modules/fts-lgpl: Remove.
5145         * MODULES.html.sh (func_all_modules): Adjust.
5146         * check-module (find_included_lib_files): Adjust.
5147         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5148
5149 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5150
5151         copy-acl: enhance Solaris ACL error handling
5152         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5153         * lib/set-mode-acl.c (qset_acl): Likewise.
5154
5155 2010-03-02  Bruno Haible  <bruno@clisp.org>
5156
5157         spawn: Don't override the system defined values on FreeBSD 8.
5158         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5159         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5160         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5161         if HAVE_POSIX_SPAWN is 1.
5162         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5163
5164 2010-03-01  Bruno Haible  <bruno@clisp.org>
5165
5166         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5167         regarding Automake.
5168
5169 2010-02-25  Bruno Haible  <bruno@clisp.org>
5170
5171         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5172         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5173         setting, not afterwards.
5174         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5175
5176 2010-02-24  Eric Blake  <eblake@redhat.com>
5177
5178         bootstrap, git-version-gen: use timestamp
5179         * build-aux/git-version-gen (scriptversion): Force UTC.
5180         * build-aux/bootstrap (scriptversion): New variable.
5181
5182         bootstrap: allow older git
5183         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5184         older than 1.6.4.  Requested by the libvirt project.
5185
5186 2010-02-23  Eric Blake  <eblake@redhat.com>
5187
5188         warn-on-use: work with old autoconf
5189         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5190         AS_VAR semantics of autoconf 2.60.
5191         Reported by Bruno Haible.
5192
5193         bootstrap: improve some comments
5194         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5195         clarification comments.
5196
5197         gettimeofday: provide correct function
5198         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5199         when replacement is declared, otherwise provide gettimeofday.
5200         Reported by Michael Goffioul.
5201
5202 2010-02-23  Jim Meyering  <meyering@redhat.com>
5203
5204         lib-ignore: relax license to "unlimited", not LGPLv2+
5205         * modules/lib-ignore (License): Relax to "unlimited".
5206
5207 2010-02-23  Jim Meyering  <meyering@redhat.com>
5208
5209         lib-ignore: relax license to LGPLv2+
5210         * modules/lib-ignore (License): Relax to LGPLv2+.
5211
5212 2010-02-22  Eric Blake  <eblake@redhat.com>
5213
5214         lseek: avoid bash 3.2 broken pipe bug
5215         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5216         warning from bash 3.2.
5217         Reported by Ben Pfaff, with analysis from Bruno Haible.
5218
5219         bootstrap: support non-FSF copyright holder
5220         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5221         bootstrap.conf override of COPYRIGHT_HOLDER.
5222         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5223
5224         bootstrap: interoperate with gettext 0.14.1
5225         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5226
5227         bootstrap: allow for alternate submodule location
5228         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5229         hardcoding submodule location.
5230         (gnulib_mk): Allow direct use of Makefile.am.
5231
5232         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5233         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5234         rather than reconfiguring where the submodule points.
5235
5236         gettimeofday: restore support for platforms that lack function
5237         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5238         replacement if function is missing.
5239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5240         * modules/sys_time (Makefile.am): Substitute it.
5241         * lib/sys_time.in.h (gettimeofday): Check it.
5242         Reported by Michael Goffioul.
5243
5244 2010-02-21  Bruno Haible  <bruno@clisp.org>
5245
5246         * lib/stdio.in.h (obstack_printf): Fix typo.
5247
5248 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5249
5250         vc-list-files: use bzr ls's -R option
5251         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5252         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5253
5254 2010-02-21  Jim Meyering  <meyering@redhat.com>
5255
5256         init.sh: fix EXEEXT shims to work also for names like test-prog
5257         * tests/init.sh: Re-exec a better shell, when needed.
5258         If the current shell lacks support for posix $(...), an init.sh-using
5259         test will now try to find a shell that supports that.  If EXEEXT is
5260         nonempty, we also require support for hyphen-in-alias-name and shell
5261         substitutions like ${var#glob}.  Failure to find such a shell results
5262         in a skipped test.
5263
5264 2010-02-21  Bruno Haible  <bruno@clisp.org>
5265
5266         Really work around around "broken pipe" error message from bash 3.2.
5267         * gnulib-tool (func_reset_sigpipe): Remove function.
5268         (echo): In bash 3.2, define to a function that uses printf.
5269         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5270
5271 2010-02-20  Bruno Haible  <bruno@clisp.org>
5272
5273         Restore support for automake 1.9.6 with autoconf 2.61.
5274         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5275         Reported by James Youngman <jay@gnu.org>.
5276
5277 2010-02-20  Bruno Haible  <bruno@clisp.org>
5278
5279         Improve *printf warning condition.
5280         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5281         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5282         and the function is overridden due to SIGPIPE emulation.
5283
5284 2010-02-20  Bruno Haible  <bruno@clisp.org>
5285
5286         * lib/stdio.in.h: Tweak comments.
5287
5288 2010-02-19  Bruno Haible  <bruno@clisp.org>
5289
5290         Make it easier to find modules. New gnulib-tool option '--find'.
5291         * gnulib-tool: New option --find.
5292         (func_usage): Document it.
5293         (func_sanitize_modulelist): New function, extracted from
5294         func_all_modules.
5295         (func_all_modules): Invoke it.
5296         * doc/gnulib-tool.texi (Which modules?): New node.
5297
5298 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5299
5300         * lib/sys_select.in.h: Provide select replacement even if
5301         sys/select.h exists on a system, for Interix.
5302
5303 2010-02-18  Jim Meyering  <meyering@redhat.com>
5304
5305         init.sh: don't use $(...) just yet
5306         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5307         to accommodate e.g., Solaris' /bin/sh.
5308
5309 2010-02-17  Bruno Haible  <bruno@clisp.org>
5310
5311         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5312         Reported by Ludovic Courtès <ludo@gnu.org>.
5313
5314 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5315
5316         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5317         linking with -lintl.
5318
5319 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5320
5321         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5322         if not provided by the system's netdb.h.  Reported by
5323         ludo@gnu.org (Ludovic Courtès).
5324
5325 2010-02-15  Jim Meyering  <meyering@redhat.com>
5326
5327         init.sh: improve portability and efficiency
5328         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5329         "dummy" in a for loop.
5330         Use '!', not '^' to select the complement of a character set used
5331         in a "case" statement.
5332         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5333         Suggestions from Eric Blake.
5334
5335         init.sh: automatically accommodate programs with the .exe suffix
5336         Automatically arrange for an invocation of "prog" to execute the
5337         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5338         may use the simpler "prog", yet still work when built on a system
5339         that requires specifying the added suffix.
5340         Do this by constructing a function named "prog" that invokes
5341         "prog.exe" for each .exe file in selected directories.
5342         * tests/init.sh (find_exe_basenames_): New function.
5343         (create_exe_shim_functions_): New function.
5344         (path_prepend_): Use it.
5345
5346         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5347         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5348         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5349
5350 2010-02-14  Jim Meyering  <meyering@redhat.com>
5351
5352         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5353         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5354         (sc_prohibit_hash_pjw_without_use): New rule.
5355
5356         maint.mk: allow the default upload destination dir to be overridden
5357         * top/maint.mk (upload_dest_dir_): Define with a default that
5358         preserves the status quo.
5359         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5360         Reported by Peter Simons.
5361
5362         maint.mk: prohibit inclusion of "hash.h" without_use
5363         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5364
5365 2010-02-10  Jim Meyering  <meyering@redhat.com>
5366
5367         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5368         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5369
5370 2010-02-09  Eric Blake  <ebb9@byu.net>
5371         and Bruno Haible  <bruno@clisp.org>
5372
5373         obstack-printf-posix: ensure declaration
5374         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5375         extracted from gl_FUNC_OBSTACK_PRINTF.
5376         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5377         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5378         Likewise.
5379         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5380         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5381         0.
5382
5383 2010-02-08  Bruno Haible  <bruno@clisp.org>
5384
5385         gnulib-tool: Fix typo in 2010-02-07 commit.
5386         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5387         Reported by Eric Blake.
5388
5389 2010-02-07  Bruno Haible  <bruno@clisp.org>
5390
5391         gnulib-tool: Fix up caching patches.
5392         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5393         option --no-cache. Use associative arrays when supported by the shell.
5394         (sed_comments): New variable.
5395         (modcache): Renamed from do_cache.
5396         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5397         abbreviate unnecessarily.
5398         (have_associative): New variable.
5399         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5400         way also for ksh and zsh.
5401         (func_init_sed_convert_to_cache_statements): New function, extracted
5402         from func_cache_lookup_module. Add support for associative arrays.
5403         Don't set the c_MODULE_cached variable here. Ignore all lines before
5404         the first field header. Remove only the final newline, not all trailing
5405         newlines. Support empty fields correctly. Limit the use of 'eval' to
5406         assignments.
5407         (func_get_description, func_get_status, func_get_notice,
5408         func_get_applicability, func_get_filelist, func_get_dependencies,
5409         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5410         func_get_automake_snippet, func_get_include_directive,
5411         func_get_link_directive, func_get_license, func_get_maintainer):
5412         Update documentation. List the unoptimized code first. Add support for
5413         associative arrays. Limit the use of 'eval' to assignments.
5414         (func_get_applicability): Undo stylistic pessimisations.
5415         (func_get_automake_snippet, func_get_include_directive): Reduce code
5416         duplication.
5417         (func_modules_transitive_closure, func_modules_add_dummy,
5418         func_modules_notice, func_modules_to_filelist, func_add_file,
5419         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5420         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5421         func_create_testdir, func_create_megatestdir): Update documentation.
5422
5423 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5424
5425         * gnulib-tool (func_cache_lookup_module): Store the module name
5426         belonging to the cache variable; error out if two different
5427         module names map to the same cache variable name.
5428
5429 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5430
5431         gnulib-tool: Make caching optional.
5432         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5433         Update matching short versions of --no-changelog.
5434         (func_usage): Update.
5435         (sed_extract_cache_prog): Renamed from ...
5436         (sed_extract_prog): ... this; revert to old extraction script.
5437         (func_get_description, func_get_status)
5438         (func_get_notice, func_get_applicability, func_get_filelist)
5439         (func_get_dependencies, func_get_autoconf_early_snippet)
5440         (func_get_autoconf_snippet, func_get_automake_snippet)
5441         (func_get_include_directive, func_get_link_directive)
5442         (func_get_license, func_get_maintainer): If $do_cache is false,
5443         use old, non-caching extraction scripts.
5444         Suggestion by Bruno Haible.
5445
5446 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5447
5448         gnulib-tool: cache module metainformation.
5449         * gnulib-tool (sed_extract_prog): Match newline before each
5450         header, and rewrite header to a shell variable suffix.
5451         (func_cache_var, func_cache_lookup_module): New functions,
5452         to turn a module name into a cache variable prefix, and to
5453         look up and cache module metainformation.
5454         (func_get_description, func_get_status)
5455         (func_get_notice, func_get_applicability, func_get_filelist)
5456         (func_get_dependencies, func_get_autoconf_early_snippet)
5457         (func_get_autoconf_snippet, func_get_automake_snippet)
5458         (func_get_include_directive, func_get_link_directive)
5459         (func_get_license, func_get_maintainer): Use
5460         func_cache_lookup_module.
5461
5462 2010-02-07  Bruno Haible  <bruno@clisp.org>
5463
5464         fnctl: Fix missing dependency.
5465         * modules/fcntl (Depends-on): Add getdtablesize.
5466         Reported by John W. Eaton <jwe@gnu.org>.
5467
5468 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5469
5470         Argp: fix recognition of short alias options.
5471
5472         * lib/argp-parse.c (convert_options): Fix improper use of
5473         `|' between character values.
5474         * tests/test-argp.c (group1_option): New alias option
5475         --read (-r).
5476         (group1_parser): Special handling for 'r'.
5477         (test15): New test case.
5478         (test_fun): Add test15.
5479         * tests/test-argp-2.sh: Update expected --help and --usage
5480         outputs.
5481
5482 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5483
5484         * tests/test-argp.c: Fix indentation.
5485
5486 2010-02-04  Eric Blake  <ebb9@byu.net>
5487
5488         gettimeofday: expose type of second argument
5489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5490         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5491         * tests/test-gettimeofday.c: Use it to silence warning.
5492         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5493         the issue.
5494
5495 2010-02-03  Jim Meyering  <meyering@redhat.com>
5496
5497         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5498         * lib/regcomp.c (TYPE_SIGNED): Define.
5499         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5500
5501         regcomp.c: avoid a new -Wshadow warning
5502         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5503
5504 2010-02-01  Jim Meyering  <meyering@redhat.com>
5505
5506         removing useless parentheses in cpp #define directives
5507         For motivation, see commit c0221df4, "define STREQ(a,b)
5508         consistently, removing useless parentheses"
5509         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5510         * lib/mountlist.c (MNT_IGNORE): Likewise.
5511         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5512
5513 2010-02-01  Eric Blake  <ebb9@byu.net>
5514
5515         sys_time: use link-warning
5516         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5517         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5518         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5519         * modules/sys_time (Depends-on): Add warn-on-use.
5520         (Makefile.am): Always build replacement.
5521         (configure.ac): Update substitutions.
5522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5523         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5524         bother with SYS_TIME_H.
5525         * modules/gettimeofday (configure.ac): Declare indicator.
5526         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5527         in use.
5528
5529         closein-tests: silence compiler warning
5530         * tests/test-closein.c (main): Ignore fread result.
5531         * modules/closein-tests (Depends-on): Add ignore-value.
5532
5533         tests: silence warning about system return
5534         * tests/test-areadlink-with-size.c (main): Ignore system result.
5535         * tests/test-areadlink.c (main): Likewise.
5536         * tests/test-areadlinkat-with-size.c (main): Likewise.
5537         * tests/test-areadlinkat.c (main): Likewise.
5538         * tests/test-canonicalize-lgpl.c (main): Likewise.
5539         * tests/test-canonicalize.c (main): Likewise.
5540         * tests/test-chown.c (main): Likewise.
5541         * tests/test-fchownat.c (main): Likewise.
5542         * tests/test-fdutimensat.c (main): Likewise.
5543         * tests/test-fstatat.c (main): Likewise.
5544         * tests/test-futimens.c (main): Likewise.
5545         * tests/test-lchown.c (main): Likewise.
5546         * tests/test-link.c (main): Likewise.
5547         * tests/test-linkat.c (main): Likewise.
5548         * tests/test-lstat.c (main): Likewise.
5549         * tests/test-mkdir.c (main): Likewise.
5550         * tests/test-mkdirat.c (main): Likewise.
5551         * tests/test-mkfifo.c (main): Likewise.
5552         * tests/test-mkfifoat.c (main): Likewise.
5553         * tests/test-mknod.c (main): Likewise.
5554         * tests/test-readlink.c (main): Likewise.
5555         * tests/test-remove.c (main): Likewise.
5556         * tests/test-rename.c (main): Likewise.
5557         * tests/test-renameat.c (main): Likewise.
5558         * tests/test-rmdir.c (main): Likewise.
5559         * tests/test-symlink.c (main): Likewise.
5560         * tests/test-symlinkat.c (main): Likewise.
5561         * tests/test-unlink.c (main): Likewise.
5562         * tests/test-unlinkat.c (main): Likewise.
5563         * tests/test-utimens.c (main): Likewise.
5564         * tests/test-utimensat.c (main): Likewise.
5565         * modules/areadlink-tests (Depends-on): Add ignore-value.
5566         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5567         * modules/areadlinkat-tests (Depends-on): Likewise.
5568         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5569         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5570         * modules/canonicalize-tests (Depends-on): Likewise.
5571         * modules/chown-tests (Depends-on): Likewise.
5572         * modules/fdutimensat-tests (Depends-on): Likewise.
5573         * modules/futimens-tests (Depends-on): Likewise.
5574         * modules/lchown-tests (Depends-on): Likewise.
5575         * modules/link-tests (Depends-on): Likewise.
5576         * modules/linkat-tests (Depends-on): Likewise.
5577         * modules/lstat-tests (Depends-on): Likewise.
5578         * modules/mkdir-tests (Depends-on): Likewise.
5579         * modules/mkfifo-tests (Depends-on): Likewise.
5580         * modules/mkfifoat-tests (Depends-on): Likewise.
5581         * modules/mknod-tests (Depends-on): Likewise.
5582         * modules/openat-tests (Depends-on): Likewise.
5583         * modules/readlink-tests (Depends-on): Likewise.
5584         * modules/remove-tests (Depends-on): Likewise.
5585         * modules/rename-tests (Depends-on): Likewise.
5586         * modules/renameat-tests (Depends-on): Likewise.
5587         * modules/rmdir-tests (Depends-on): Likewise.
5588         * modules/symlink-tests (Depends-on): Likewise.
5589         * modules/symlinkat-tests (Depends-on): Likewise.
5590         * modules/unlink-tests (Depends-on): Likewise.
5591         * modules/utimens-tests (Depends-on): Likewise.
5592         * modules/utimensat-tests (Depends-on): Likewise.
5593
5594 2010-01-31  Bruno Haible  <bruno@clisp.org>
5595
5596         Perform the same test for many <math.h> functions.
5597         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5598         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5599         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5600         of gl_MATHFUNC.
5601         * modules/acos (configure.ac): Likewise.
5602         * modules/asin (configure.ac): Likewise.
5603         * modules/atan (configure.ac): Likewise.
5604         * modules/atan2 (configure.ac): Likewise.
5605         * modules/cbrt (configure.ac): Likewise.
5606         * modules/copysign (configure.ac): Likewise.
5607         * modules/cos (configure.ac): Likewise.
5608         * modules/cosh (configure.ac): Likewise.
5609         * modules/erf (configure.ac): Likewise.
5610         * modules/erfc (configure.ac): Likewise.
5611         * modules/exp (configure.ac): Likewise.
5612         * modules/fmod (configure.ac): Likewise.
5613         * modules/hypot (configure.ac): Likewise.
5614         * modules/j0 (configure.ac): Likewise.
5615         * modules/j1 (configure.ac): Likewise.
5616         * modules/jn (configure.ac): Likewise.
5617         * modules/lgamma (configure.ac): Likewise.
5618         * modules/log (configure.ac): Likewise.
5619         * modules/log10 (configure.ac): Likewise.
5620         * modules/log1p (configure.ac): Likewise.
5621         * modules/pow (configure.ac): Likewise.
5622         * modules/remainder (configure.ac): Likewise.
5623         * modules/sin (configure.ac): Likewise.
5624         * modules/sinh (configure.ac): Likewise.
5625         * modules/tan (configure.ac): Likewise.
5626         * modules/tanh (configure.ac): Likewise.
5627         * modules/y0 (configure.ac): Likewise.
5628         * modules/y1 (configure.ac): Likewise.
5629         * modules/yn (configure.ac): Likewise.
5630         Suggested by Paolo Bonzini.
5631
5632 2010-01-31  Bruno Haible  <bruno@clisp.org>
5633
5634         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
5635
5636 2010-01-31  Bruno Haible  <bruno@clisp.org>
5637
5638         Work around getdelim() bug on FreeBSD 8.0.
5639         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
5640         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5641         not work.
5642         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5643         is 1.
5644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5645         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5646         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5647         a non-zero size.
5648         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5649
5650 2010-01-31  Bruno Haible  <bruno@clisp.org>
5651
5652         Work around getline() bug on FreeBSD 8.0.
5653         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5654         and a non-zero size.
5655         * tests/test-getline.c (main): Likewise.
5656         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5657         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5658
5659 2010-01-28  Eric Blake  <ebb9@byu.net>
5660
5661         regex: fix build failure
5662         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5663         platforms.
5664
5665 2010-01-28  Jim Meyering  <meyering@redhat.com>
5666
5667         regex: do not ignore memory allocation failure
5668         * lib/regex_internal.c (create_cd_newstate): Detect
5669         re_node_set_init_copy failure.   Extracted from glibc commit
5670         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5671
5672         regex: sync more white-space changes from libc
5673         * lib/regex_internal.c: White-space only changes.
5674         * lib/regexec.c: Likewise.
5675
5676         regex: add many uses of __attribute_warn_unused_result__
5677         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5678         * lib/regexec.c: Likewise.
5679         Extracted from a messy glibc commit.
5680
5681         regcomp.c: spelling and merge-artifact from glibc
5682         * lib/regcomp.c: Merge remainder of glibc's
5683         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5684
5685         regcomp.c: sync white-space changes from glibc
5686         * lib/regcomp.c: Merge to accommodate white space
5687         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5688
5689         regcomp.c: do not ignore internal return values
5690         * lib/regcomp.c: Do not ignore internal return values.
5691         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5692         but without its white-space changes and spelling fixes.
5693
5694         regex_internal.h: define __attribute_warn_unused_result__
5695         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5696
5697         maint: add a syntax-check rule to check for vulnerable Makefile.in
5698         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5699
5700 2010-01-27  Jim Meyering  <meyering@redhat.com>
5701
5702         ncftpput-ftp: clean up spaces
5703         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5704         Remove trailing blanks.
5705
5706 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5707
5708         * build-aux/git-version-gen: Fix copyright statement.
5709         * build-aux/gnupload: Likewise.
5710         * tests/test-arcfour.c: Likewise.
5711         * tests/test-arctwo.c: Likewise.
5712         * tests/test-count-one-bits.c: Likewise.
5713         * tests/test-crc.c: Likewise.
5714         * tests/test-des.c: Likewise.
5715         * tests/test-gc-arcfour.c: Likewise.
5716         * tests/test-gc-arctwo.c: Likewise.
5717         * tests/test-gc-des.c: Likewise.
5718         * tests/test-gc-hmac-md5.c: Likewise.
5719         * tests/test-gc-hmac-sha1.c: Likewise.
5720         * tests/test-gc-md2.c: Likewise.
5721         * tests/test-gc-md4.c: Likewise.
5722         * tests/test-gc-md5.c: Likewise.
5723         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5724         * tests/test-gc-rijndael.c: Likewise.
5725         * tests/test-gc-sha1.c: Likewise.
5726         * tests/test-gc.c: Likewise.
5727         * tests/test-gethostname.c: Likewise.
5728         * tests/test-gettimeofday.c: Likewise.
5729         * tests/test-hash.c: Likewise.
5730         * tests/test-hmac-md5.c: Likewise.
5731         * tests/test-hmac-sha1.c: Likewise.
5732         * tests/test-md2.c: Likewise.
5733         * tests/test-md4.c: Likewise.
5734         * tests/test-md5.c: Likewise.
5735         * tests/test-memchr.c: Likewise.
5736         * tests/test-memchr2.c: Likewise.
5737         * tests/test-memcmp.c: Likewise.
5738         * tests/test-memmem.c: Likewise.
5739         * tests/test-memrchr.c: Likewise.
5740         * tests/test-rawmemchr.c: Likewise.
5741         * tests/test-read-file.c: Likewise.
5742         * tests/test-rijndael.c: Likewise.
5743         * tests/test-sockets.c: Likewise.
5744         * tests/test-strchrnul.c: Likewise.
5745         * tests/test-strstr.c: Likewise.
5746         * tests/test-strtod.c: Likewise.
5747         * build-aux/ncftpput-ftp: Likewise.
5748
5749 2010-01-26  Eric Blake  <ebb9@byu.net>
5750
5751         ignore-value: update recommended header name
5752         * modules/ignore-value (Include): Only use <> for headers that
5753         exist in glibc.
5754
5755 2010-01-26  Jim Meyering  <meyering@redhat.com>
5756
5757         test-userspec.c: avoid compiler warnings
5758         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
5759         and "initialization discards qualifiers..." warnings.
5760         Put the first "uid" in its own scope, and make char* members "const".
5761
5762 2010-01-25  Bruno Haible  <bruno@clisp.org>
5763
5764         gnulib-tool: Make warning diagnostics consistent.
5765         * gnulib-tool (func_warning): New function.
5766         Use it everywhere where gnulib-tool produces output to stderr and it is
5767         not a fatal error.
5768
5769 2010-01-25  Bruno Haible  <bruno@clisp.org>
5770
5771         Fix test dependencies.
5772         * modules/xstrtol-tests (Depends-on): Add inttypes.
5773         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
5774
5775 2010-01-25 Pádraig Brady <P@draigBrady.com>
5776
5777         syntax-check: detect incorrect boolean macro values in config.h
5778         * modules/maintainer-makefile (configure.ac): Parameterize the location
5779         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
5780         The logic is from Eric Blake and the location indicated by Jim Meyering.
5781         Note the more natural CONFIG_HEADER name is prohibited by automake
5782         for backwards compatibility reasons.
5783         * top/maint.mk (sc_Wundef_boolean): New rule.
5784
5785 2010-01-25  Jim Meyering  <meyering@redhat.com>
5786
5787         bootstrap: detect MacOS 10.6's shasum, too
5788         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
5789         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
5790
5791 2010-01-23  Jim Meyering  <meyering@redhat.com>
5792
5793         xstrtoll: new module
5794         * modules/xstrtoll: New file.
5795         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
5796         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
5797         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
5798         ./configure fails if you use this module and lack "long long".
5799         * modules/xstrtoll-tests: New module.
5800         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
5801         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
5802         new init.sh-based test framework.
5803
5804 2010-01-24  Bruno Haible  <bruno@clisp.org>
5805
5806         Tests for module 'yn'.
5807         * modules/yn-tests: New file.
5808         * tests/test-yn.c: New file.
5809
5810         Tests for module 'y1'.
5811         * modules/y1-tests: New file.
5812         * tests/test-y1.c: New file.
5813
5814         Tests for module 'y0'.
5815         * modules/y0-tests: New file.
5816         * tests/test-y0.c: New file.
5817
5818         Tests for module 'tanh'.
5819         * modules/tanh-tests: New file.
5820         * tests/test-tanh.c: New file.
5821
5822         Tests for module 'tan'.
5823         * modules/tan-tests: New file.
5824         * tests/test-tan.c: New file.
5825
5826         Tests for module 'sqrt'.
5827         * modules/sqrt-tests: New file.
5828         * tests/test-sqrt.c: New file.
5829
5830         Tests for module 'sinh'.
5831         * modules/sinh-tests: New file.
5832         * tests/test-sinh.c: New file.
5833
5834         Tests for module 'sin'.
5835         * modules/sin-tests: New file.
5836         * tests/test-sin.c: New file.
5837
5838         Tests for module 'rint'.
5839         * modules/rint-tests: New file.
5840         * tests/test-rint.c: New file.
5841
5842         Tests for module 'remainder'.
5843         * modules/remainder-tests: New file.
5844         * tests/test-remainder.c: New file.
5845
5846         Tests for module 'pow'.
5847         * modules/pow-tests: New file.
5848         * tests/test-pow.c: New file.
5849
5850         Tests for module 'nextafter'.
5851         * modules/nextafter-tests: New file.
5852         * tests/test-nextafter.c: New file.
5853
5854         Tests for module 'modf'.
5855         * modules/modf-tests: New file.
5856         * tests/test-modf.c: New file.
5857
5858         Tests for module 'logb'.
5859         * modules/logb-tests: New file.
5860         * tests/test-logb.c: New file.
5861
5862         Tests for module 'log1p'.
5863         * modules/log1p-tests: New file.
5864         * tests/test-log1p.c: New file.
5865
5866         Tests for module 'log10'.
5867         * modules/log10-tests: New file.
5868         * tests/test-log10.c: New file.
5869
5870         Tests for module 'log'.
5871         * modules/log-tests: New file.
5872         * tests/test-log.c: New file.
5873
5874         Tests for module 'lgamma'.
5875         * modules/lgamma-tests: New file.
5876         * tests/test-lgamma.c: New file.
5877
5878         Tests for module 'ldexp'.
5879         * modules/ldexp-tests: New file.
5880         * tests/test-ldexp.c: New file.
5881
5882         Tests for module 'jn'.
5883         * modules/jn-tests: New file.
5884         * tests/test-jn.c: New file.
5885
5886         Tests for module 'j1'.
5887         * modules/j1-tests: New file.
5888         * tests/test-j1.c: New file.
5889
5890         Tests for module 'j0'.
5891         * modules/j0-tests: New file.
5892         * tests/test-j0.c: New file.
5893
5894         Tests for module 'hypot'.
5895         * modules/hypot-tests: New file.
5896         * tests/test-hypot.c: New file.
5897
5898         Tests for module 'fmod'.
5899         * modules/fmod-tests: New file.
5900         * tests/test-fmod.c: New file.
5901
5902         Tests for module 'fabs'.
5903         * modules/fabs-tests: New file.
5904         * tests/test-fabs.c: New file.
5905
5906         Tests for module 'exp'.
5907         * modules/exp-tests: New file.
5908         * tests/test-exp.c: New file.
5909
5910         Tests for module 'erfc'.
5911         * modules/erfc-tests: New file.
5912         * tests/test-erfc.c: New file.
5913
5914         Tests for module 'erf'.
5915         * modules/erf-tests: New file.
5916         * tests/test-erf.c: New file.
5917
5918         Tests for module 'cosh'.
5919         * modules/cosh-tests: New file.
5920         * tests/test-cosh.c: New file.
5921
5922         Tests for module 'cos'.
5923         * modules/cos-tests: New file.
5924         * tests/test-cos.c: New file.
5925
5926         Tests for module 'copysign'.
5927         * modules/copysign-tests: New file.
5928         * tests/test-copysign.c: New file.
5929
5930         Tests for module 'cbrt'.
5931         * modules/cbrt-tests: New file.
5932         * tests/test-cbrt.c: New file.
5933
5934         Tests for module 'atan2'.
5935         * modules/atan2-tests: New file.
5936         * tests/test-atan2.c: New file.
5937
5938         Tests for module 'atan'.
5939         * modules/atan-tests: New file.
5940         * tests/test-atan.c: New file.
5941
5942         Tests for module 'asin'.
5943         * modules/asin-tests: New file.
5944         * tests/test-asin.c: New file.
5945
5946         Tests for module 'acos'.
5947         * modules/acos-tests: New file.
5948         * tests/test-acos.c: New file.
5949
5950 2010-01-24  Bruno Haible  <bruno@clisp.org>
5951
5952         Fix tests for common <math.h> functions.
5953         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
5954         code snippet that references the function pointer, rather than merely
5955         calling the function. Substitute the FUNC_LIBM variable.
5956         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
5957         * modules/acos (configure.ac): Likewise.
5958         * modules/asin (configure.ac): Likewise.
5959         * modules/atan (configure.ac): Likewise.
5960         * modules/atan2 (configure.ac): Likewise.
5961         * modules/cbrt (configure.ac): Likewise.
5962         * modules/copysign (configure.ac): Likewise.
5963         * modules/cos (configure.ac): Likewise.
5964         * modules/cosh (configure.ac): Likewise.
5965         * modules/erf (configure.ac): Likewise.
5966         * modules/erfc (configure.ac): Likewise.
5967         * modules/exp (configure.ac): Likewise.
5968         * modules/fabs (configure.ac): Likewise.
5969         * modules/fmod (configure.ac): Likewise.
5970         * modules/hypot (configure.ac): Likewise.
5971         * modules/j0 (configure.ac): Likewise.
5972         * modules/j1 (configure.ac): Likewise.
5973         * modules/jn (configure.ac): Likewise.
5974         * modules/ldexp (configure.ac): Likewise.
5975         * modules/lgamma (configure.ac): Likewise.
5976         * modules/log (configure.ac): Likewise.
5977         * modules/log10 (configure.ac): Likewise.
5978         * modules/log1p (configure.ac): Likewise.
5979         * modules/logb (configure.ac): Likewise.
5980         * modules/modf (configure.ac): Likewise.
5981         * modules/nextafter (configure.ac): Likewise.
5982         * modules/pow (configure.ac): Likewise.
5983         * modules/remainder (configure.ac): Likewise.
5984         * modules/rint (configure.ac): Likewise.
5985         * modules/sin (configure.ac): Likewise.
5986         * modules/sinh (configure.ac): Likewise.
5987         * modules/tan (configure.ac): Likewise.
5988         * modules/tanh (configure.ac): Likewise.
5989         * modules/y0 (configure.ac): Likewise.
5990         * modules/y1 (configure.ac): Likewise.
5991         * modules/yn (configure.ac): Likewise.
5992
5993 2010-01-24  Bruno Haible  <bruno@clisp.org>
5994
5995         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
5996         * tests/test-acosl.c (x): New variable.
5997         (main): Store argument in x and fetch it from x.
5998         * tests/test-asinl.c (x): New variable.
5999         (main): Store argument in x and fetch it from x.
6000         * tests/test-atanl.c (x): New variable.
6001         (main): Store argument in x and fetch it from x.
6002         * tests/test-cosl.c (x): New variable.
6003         (main): Store argument in x and fetch it from x.
6004         * tests/test-expl.c (x): New variable.
6005         (main): Store argument in x and fetch it from x.
6006         * tests/test-logl.c (x): New variable.
6007         (main): Store argument in x and fetch it from x.
6008         * tests/test-sinl.c (x): New variable.
6009         (main): Store argument in x and fetch it from x.
6010         * tests/test-sqrtl.c (x): New variable.
6011         (main): Store argument in x and fetch it from x.
6012         * tests/test-tanl.c (x): New variable.
6013         (main): Store argument in x and fetch it from x.
6014
6015 2010-01-24  Bruno Haible  <bruno@clisp.org>
6016
6017         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6018         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6019         assignments to the initial TESTS_ENVIRONMENT.
6020         * doc/gnulib.texi (Unit test modules): Document it.
6021         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6022         TESTS_ENVIRONMENT.
6023         * modules/btowc-tests (Makefile.am): Likewise.
6024         * modules/c-stack-tests (Makefile.am): Likewise.
6025         * modules/c-strcase-tests (Makefile.am): Likewise.
6026         * modules/copy-file-tests (Makefile.am): Likewise.
6027         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6028         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6029         * modules/mbrtowc-tests (Makefile.am): Likewise.
6030         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6031         * modules/mbscasestr-tests (Makefile.am): Likewise.
6032         * modules/mbschr-tests (Makefile.am): Likewise.
6033         * modules/mbscspn-tests (Makefile.am): Likewise.
6034         * modules/mbsinit-tests (Makefile.am): Likewise.
6035         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6036         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6037         * modules/mbspbrk-tests (Makefile.am): Likewise.
6038         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6039         * modules/mbsrchr-tests (Makefile.am): Likewise.
6040         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6041         * modules/mbsspn-tests (Makefile.am): Likewise.
6042         * modules/mbsstr-tests (Makefile.am): Likewise.
6043         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6044         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6045         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6046         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6047         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6048         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6049         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6050         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6051         * modules/wcrtomb-tests (Makefile.am): Likewise.
6052         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6053         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6054         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6055         assignments from TESTS_ENVIRONMENT.
6056         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6057         augmentation.
6058         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6059         * modules/atexit-tests (Makefile.am): Likewise.
6060         * modules/binary-io-tests (Makefile.am): Likewise.
6061         * modules/closein-tests (Makefile.am): Likewise.
6062         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6063         * modules/exclude-tests (Makefile.am): Likewise.
6064         * modules/fflush-tests (Makefile.am): Likewise.
6065         * modules/fpending-tests (Makefile.am): Likewise.
6066         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6067         * modules/freadahead-tests (Makefile.am): Likewise.
6068         * modules/freadptr-tests (Makefile.am): Likewise.
6069         * modules/freadseek-tests (Makefile.am): Likewise.
6070         * modules/fseek-tests (Makefile.am): Likewise.
6071         * modules/fseeko-tests (Makefile.am): Likewise.
6072         * modules/ftell-tests (Makefile.am): Likewise.
6073         * modules/ftello-tests (Makefile.am): Likewise.
6074         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6075         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6076         * modules/lseek-tests (Makefile.am): Likewise.
6077         * modules/parse-duration-tests (Makefile.am): Likewise.
6078         * modules/perror-tests (Makefile.am): Likewise.
6079         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6080         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6081         * modules/pipe-tests (Makefile.am): Likewise.
6082         * modules/pread-tests (Makefile.am): Likewise.
6083         * modules/printf-posix-tests (Makefile.am): Likewise.
6084         * modules/select-tests (Makefile.am): Likewise.
6085         * modules/sigpipe-tests (Makefile.am): Likewise.
6086         * modules/tsearch-tests (Makefile.am): Likewise.
6087         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6088         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6089         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6090         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6091         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6092         * modules/version-etc-tests (Makefile.am): Likewise.
6093         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6094         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6095         * modules/xalloc-die-tests (Makefile.am): Likewise.
6096         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6097         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6098         * modules/xstrtol-tests (Makefile.am): Likewise.
6099         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6100         * modules/yesno-tests (Makefile.am): Likewise.
6101         Suggested by Jim Meyering.
6102
6103 2010-01-24  Bruno Haible  <bruno@clisp.org>
6104
6105         More documentation.
6106         * doc/gnulib.texi (Writing modules): New chapter.
6107         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6108         the new chapter.
6109
6110 2010-01-24  Jim Meyering  <meyering@redhat.com>
6111
6112         maint.mk: do not prepend "./" after filtering
6113         * top/maint.mk (_prepend_srcdir_prefix): New variable
6114         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6115         "./" when $(srcdir) is ".".
6116
6117         define STREQ(a,b) consistently, removing useless parentheses
6118         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6119         since the only risk is that "a" or "b" contains an unparenthesized
6120         comma, but if either did that, STREQ would have 3 or more arguments.
6121         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6122         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6123         * lib/hash-triple.c (STREQ): Likewise.
6124         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6125         * lib/getugroups.c (STREQ): Likewise.
6126
6127 2010-01-23  Jim Meyering  <meyering@redhat.com>
6128
6129         maint.mk: fix syntax-check in a non-srcdir build directory
6130         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6131         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6132
6133 2010-01-22  Jim Meyering  <meyering@redhat.com>
6134
6135         userspec: add unit tests
6136         * tests/test-userspec.c: New file.
6137         * modules/userspec-tests: Likewise.
6138
6139 2010-01-21  Jim Meyering  <meyering@redhat.com>
6140
6141         maint.mk: handle source file names containing "." robustly
6142         * top/maint.mk (_dot_escaped_srcdir): Define.
6143         (VC_LIST): Use it in LHS of sed substitution.
6144
6145 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6146
6147         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6148         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6149         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6150         from a non-srcdir build.
6151
6152 2010-01-20  Eric Blake  <ebb9@byu.net>
6153
6154         warn-on-use: use instead of link-warning
6155         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6156         * modules/unistd (Depends-on, Makefile.am): Likewise.
6157         * modules/arpa_inet (Depends-on): Replace link-warning with
6158         warn-on-use.
6159         (Makefile.am): Update rules accordingly.
6160         * modules/ctype (Depends-on, Makefile.am): Likewise.
6161         * modules/dirent (Depends-on, Makefile.am): Likewise.
6162         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6163         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6164         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6165         * modules/locale (Depends-on, Makefile.am): Likewise.
6166         * modules/math (Depends-on, Makefile.am): Likewise.
6167         * modules/search (Depends-on, Makefile.am): Likewise.
6168         * modules/signal (Depends-on, Makefile.am): Likewise.
6169         * modules/spawn (Depends-on, Makefile.am): Likewise.
6170         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6171         * modules/string (Depends-on, Makefile.am): Likewise.
6172         * modules/strings (Depends-on, Makefile.am): Likewise.
6173         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6174         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6175         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6176         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6177         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6178         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6179         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6180         * modules/wchar (Depends-on, Makefile.am): Likewise.
6181         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6182         should be poisoned.
6183         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6184         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6185         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6186         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6188         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6189         * m4/math_h.m4 (gl_MATH_H): Likewise.
6190         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6191         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6192         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6193         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6194         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6195         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6196         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6197         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6198         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6202         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6203         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6204         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6205         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6206         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6207         GL_LINK_WARNING.
6208         * lib/ctype.in.h: Likewise.
6209         * lib/dirent.in.h: Likewise.
6210         * lib/fcntl.in.h: Likewise.
6211         * lib/inttypes.in.h: Likewise.
6212         * lib/langinfo.in.h: Likewise.
6213         * lib/locale.in.h: Likewise.
6214         * lib/math.in.h: Likewise.
6215         * lib/search.in.h: Likewise.
6216         * lib/signal.in.h: Likewise.
6217         * lib/spawn.in.h: Likewise.
6218         * lib/stdio.in.h: Likewise.
6219         * lib/stdlib.in.h: Likewise.
6220         * lib/string.in.h: Likewise.
6221         * lib/strings.in.h: Likewise.
6222         * lib/sys_file.in.h: Likewise.
6223         * lib/sys_ioctl.in.h: Likewise.
6224         * lib/sys_select.in.h: Likewise.
6225         * lib/sys_socket.in.h: Likewise.
6226         * lib/sys_stat.in.h: Likewise.
6227         * lib/sys_times.in.h: Likewise.
6228         * lib/sys_utsname.in.h: Likewise.
6229         * lib/unistd.in.h: Likewise.
6230         * lib/wchar.in.h: Likewise.
6231
6232 2010-01-20  Bruno Haible  <bruno@clisp.org>
6233
6234         Avoid duplicate -lm.
6235         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6236         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6239         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6240         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6241         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6242         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6243         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6244         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6245         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6246         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6247         Reported by Paolo Bonzini.
6248
6249 2010-01-19  Bruno Haible  <bruno@clisp.org>
6250
6251         langinfo, nl_langinfo: Relicense under LGPLv2+.
6252         * modules/langinfo (License): Change to LGPLv2+.
6253         * modules/nl_langinfo (License): Likewise.
6254         Patch by David Lutterkort <lutter@redhat.com>.
6255
6256 2010-01-19  Bruno Haible  <bruno@clisp.org>
6257
6258         Avoid compilation error with cc on OSF/1 5.1.
6259         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6260         statement, not before.
6261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6262
6263 2010-01-18  Bruno Haible  <bruno@clisp.org>
6264
6265         Avoid a link error due to the __printf__ symbol.
6266         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6267         and 2.6.x.
6268         (__format__, __printf__): Remove definitions.
6269         * lib/argp-fmtstream.h: Likewise.
6270         * lib/argp.h: Likewise.
6271         * lib/error.h: Likewise.
6272         * lib/vasnprintf.h: Likewise.
6273         * lib/xprintf.h: Likewise.
6274         * lib/xvasprintf.h: Likewise.
6275         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6276
6277 2010-01-18  Bruno Haible  <bruno@clisp.org>
6278
6279         Tests for module 'tanl'.
6280         * modules/tanl-tests: New file.
6281         * tests/test-tanl.c: New file.
6282
6283         Tests for module 'sqrtl'.
6284         * modules/sqrtl-tests: New file.
6285         * tests/test-sqrtl.c: New file.
6286
6287         Tests for module 'sinl'.
6288         * modules/sinl-tests: New file.
6289         * tests/test-sinl.c: New file.
6290
6291         Tests for module 'logl'.
6292         * modules/logl-tests: New file.
6293         * tests/test-logl.c: New file.
6294
6295         Tests for module 'expl'.
6296         * modules/expl-tests: New file.
6297         * tests/test-expl.c: New file.
6298
6299         Tests for module 'cosl'.
6300         * modules/cosl-tests: New file.
6301         * tests/test-cosl.c: New file.
6302
6303         Tests for module 'atanl'.
6304         * modules/atanl-tests: New file.
6305         * tests/test-atanl.c: New file.
6306
6307         Tests for module 'asinl'.
6308         * modules/asinl-tests: New file.
6309         * tests/test-asinl.c: New file.
6310
6311         Tests for module 'acosl'.
6312         * modules/acosl-tests: New file.
6313         * tests/test-acosl.c: New file.
6314
6315         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6316         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6317         tanl): Use the standard gnulib idiom.
6318         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6319         * lib/sinl.c: Likewise.
6320         * lib/tanl.c: Don't include trigl.c.
6321         (kernel_tanl): Make static.
6322         * lib/sincosl.c: Include trigl.h first.
6323         * lib/trigl.c: Likewise.
6324         * m4/acosl.m4: New file.
6325         * m4/asinl.m4: New file.
6326         * m4/atanl.m4: New file.
6327         * m4/cosl.m4: New file.
6328         * m4/expl.m4: New file.
6329         * m4/logl.m4: New file.
6330         * m4/sinl.m4: New file.
6331         * m4/sqrtl.m4: New file.
6332         * m4/tanl.m4: New file.
6333         * m4/mathl.m4: Remove file.
6334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6335         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6336         Don't initialize GNULIB_MATHL.
6337         * modules/acosl: New file.
6338         * modules/asinl: New file.
6339         * modules/atanl: New file.
6340         * modules/cosl: New file.
6341         * modules/expl: New file.
6342         * modules/logl: New file.
6343         * modules/sinl: New file.
6344         * modules/sqrtl: New file.
6345         * modules/tanl: New file.
6346         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6347         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6348         substitute GNULIB_MATHL.
6349         * modules/mathl: Rewritten.
6350         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6351         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6352         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6353         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6354         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6355         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6356         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6357         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6358         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6359
6360 2010-01-18  Bruno Haible  <bruno@clisp.org>
6361
6362         sqrt: Make gl_FUNC_SQRT requirable.
6363         * m4/sqrt.m4: New file.
6364         * modules/sqrt (Files): Add it.
6365         (configure.ac): Invoke gl_FUNC_SQRT.
6366
6367 2010-01-18  Bruno Haible  <bruno@clisp.org>
6368
6369         New modules for common <math.h> functions.
6370         * m4/mathfunc.m4: New file.
6371         * modules/acos: New file.
6372         * modules/asin: New file.
6373         * modules/atan: New file.
6374         * modules/atan2: New file.
6375         * modules/cbrt: New file.
6376         * modules/copysign: New file.
6377         * modules/cos: New file.
6378         * modules/cosh: New file.
6379         * modules/erf: New file.
6380         * modules/erfc: New file.
6381         * modules/exp: New file.
6382         * modules/fabs: New file.
6383         * modules/fmod: New file.
6384         * modules/hypot: New file.
6385         * modules/j0: New file.
6386         * modules/j1: New file.
6387         * modules/jn: New file.
6388         * modules/ldexp: New file.
6389         * modules/lgamma: New file.
6390         * modules/log: New file.
6391         * modules/log10: New file.
6392         * modules/log1p: New file.
6393         * modules/logb: New file.
6394         * modules/modf: New file.
6395         * modules/nextafter: New file.
6396         * modules/pow: New file.
6397         * modules/remainder: New file.
6398         * modules/rint: New file.
6399         * modules/sin: New file.
6400         * modules/sinh: New file.
6401         * modules/sqrt: New file.
6402         * modules/tan: New file.
6403         * modules/tanh: New file.
6404         * modules/y0: New file.
6405         * modules/y1: New file.
6406         * modules/yn: New file.
6407         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6408         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6409         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6410         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6411         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6412         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6413         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6414         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6415         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6416         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6417         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6418         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6419         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6420         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6421         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6422         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6423         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6424         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6425         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6426         * doc/posix-functions/log.texi: Mention the 'log' module.
6427         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6428         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6429         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6430         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6431         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6432         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6433         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6434         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6435         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6436         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6437         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6438         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6439         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6440         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6441         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6442         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6443
6444 2010-01-18  Jim Meyering  <meyering@redhat.com>
6445
6446         ignore-value: relax license to LGPLv2+
6447         * modules/ignore-value (License): Relax to LGPLv2+.
6448
6449         getdate: don't leak when TZ contains two or more '"'s
6450         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6451         double quote in TZ after the first one.
6452
6453         readtokens: do not leak internal token_lengths buffer
6454         * lib/readtokens.c (readtokens): Free the local, lengths,
6455         when the supplied "token_lengths" parameter is NULL.
6456
6457 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6458
6459         Fix a couple of missing LIBTHREAD link failures on AIX.
6460         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6461         $(LIBTHREAD).
6462         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6463
6464         Link test-poll against INET_PTON_LIB.
6465         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6466         for inet_pton on Solaris 10.
6467
6468 2010-01-17  Bruno Haible  <bruno@clisp.org>
6469
6470         unistdio/*-sprintf: Fix typo in module description.
6471         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6472         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6473         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6474         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6475         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6476         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6477         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6479
6480 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6481
6482         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6483         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6484         variables in shell case patterns, for AIX and HP-UX ksh.
6485
6486         Split large sed scripts, for HP-UX sed.
6487         * modules/stdio: Split sed scripts around 50 sed commands,
6488         to avoid HP-UX limit of 99 commands, in the near future.
6489         * modules/string: Likewise.
6490         * modules/unistd: Likewise.
6491
6492         gnulib-tool: avoid writing in the current directory.
6493         * gnulib-tool (func_emit_lib_Makefile_am)
6494         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6495         not in the current directory, so concurrent gnulib-tool
6496         instances do not interfere.
6497
6498 2010-01-16  Jim Meyering  <meyering@redhat.com>
6499
6500         doc: update users.txt
6501         * users.txt: Add grep.
6502         (diffutils, gzip): Update URLs.
6503
6504 2010-01-12  Bruno Haible  <bruno@clisp.org>
6505
6506         posix_spawn: Avoid test failure on Cygwin.
6507         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6508         characters.
6509         Reported by Simon Josefsson.
6510
6511 2010-01-12  Bruno Haible  <bruno@clisp.org>
6512
6513         * tests/test-cond.c (main): When skipping the test, show the reason.
6514
6515 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6516
6517         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6518
6519 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6520
6521         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6522         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6523
6524 2010-01-12  Eric Blake  <ebb9@byu.net>
6525
6526         build: guarantee AS_VAR_IF
6527         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6528         (gl_AS_VAR_IF): Move...
6529         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6530         Reported by Simon Josefsson.
6531
6532 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6533
6534         * lib/stdio.in.h: Fix typo.
6535
6536 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6537
6538         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6539         libgpg-error.
6540
6541 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6542
6543         * tests/test-xalloc-die.sh: Use $EXEEXT.
6544
6545 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6546             Bruno Haible  <bruno@clisp.org>
6547
6548         getlogin, getlogin_r: Avoid test failure.
6549         * tests/test-getlogin.c: Include <stdio.h>.
6550         (main): Skip the test when the function fails because stdin is not a
6551         tty.
6552         * tests/test-getlogin_r.c: Include <stdio.h>.
6553         (main): Skip the test when the function fails because stdin is not a
6554         tty.
6555
6556 2010-01-11  Eric Blake  <ebb9@byu.net>
6557
6558         tests: avoid more large file warnings
6559         * tests/test-fflush.c: Avoid warning about ftell use.
6560         * tests/test-fseek.c: Avoid warning about fseek use.
6561
6562 2010-01-10  Bruno Haible  <bruno@clisp.org>
6563
6564         nproc: Work better on Linux when /proc and /sys are not mounted.
6565         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6566         as lower bound when, on glibc/Linux systems,
6567         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6568         Suggested by Pádraig Brady <P@draigbrady.com>.
6569         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6570
6571         nproc: Refactor.
6572         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6573         extracted from num_processors.
6574         (num_processors): Call it.
6575
6576 2010-01-11  Jim Meyering  <meyering@redhat.com>
6577
6578         utimecmp: avoid new warning from upcoming gcc-4.5.0
6579         * lib/utimecmp.c (BILLION): Define using #define rather than an
6580         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6581
6582 2010-01-11  Eric Blake  <ebb9@byu.net>
6583
6584         math: add portability warnings for classification macros
6585         * modules/math (Depends-on): Add warn-on-use.
6586         (Makefile.am): Provide new substitutions.
6587         * m4/math_h.m4 (gl_MATH_H): Require inline.
6588         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6589         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6590         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6591         implement warnings.
6592
6593         unistd: warn on use of environ without module
6594         * modules/unistd (Depends-on): Add warn-on-use.
6595         (Makefile.am): Provide new substitutions.
6596         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6597         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6598
6599         stdio: warn on suspicious uses
6600         * modules/stdio (Depends-on): Add warn-on-use.
6601         (Makefile.am): Provide new substitutions.
6602         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6603         fseeko.
6604         * lib/stdio.in.h (gets): Always warn on use.
6605         (fseek, ftell): Adjust when warnings are issued, and honor
6606         _GL_NO_LARGE_FILES as a way to silence the warning.
6607         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6608         any warning about large file offsets.
6609         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6610         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6611         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6612         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6613         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6614         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
6615         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
6616         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
6617
6618         warn-on-use: new module
6619         * modules/warn-on-use: New file.
6620         * build-aux/warn-on-use.h: Likewise.
6621         * m4/warn-on-use.m4: Likewise.
6622         * MODULES.html.sh (Support for building): Mention it.
6623
6624 2010-01-10  Bruno Haible  <bruno@clisp.org>
6625
6626         Tests for module 'unistr/u32-strdup'.
6627         * modules/unistr/u32-strdup-tests: New file.
6628         * tests/unistr/test-u32-strdup.c: New file.
6629
6630         Tests for module 'unistr/u16-strdup'.
6631         * modules/unistr/u16-strdup-tests: New file.
6632         * tests/unistr/test-u16-strdup.c: New file.
6633
6634         Tests for module 'unistr/u8-strdup'.
6635         * modules/unistr/u8-strdup-tests: New file.
6636         * tests/unistr/test-u8-strdup.c: New file.
6637         * tests/unistr/test-strdup.h: New file.
6638
6639         Tests for module 'unistr/u32-strncmp'.
6640         * modules/unistr/u32-strncmp-tests: New file.
6641         * tests/unistr/test-u32-strncmp.c: New file.
6642
6643         Tests for module 'unistr/u16-strncmp'.
6644         * modules/unistr/u16-strncmp-tests: New file.
6645         * tests/unistr/test-u16-strncmp.c: New file.
6646
6647         Tests for module 'unistr/u8-strncmp'.
6648         * modules/unistr/u8-strncmp-tests: New file.
6649         * tests/unistr/test-u8-strncmp.c: New file.
6650         * tests/unistr/test-strncmp.h: New file.
6651
6652         Tests for module 'unistr/u32-strcoll'.
6653         * modules/unistr/u32-strcoll-tests: New file.
6654         * tests/unistr/test-u32-strcoll.c: New file.
6655
6656         Tests for module 'unistr/u16-strcoll'.
6657         * modules/unistr/u16-strcoll-tests: New file.
6658         * tests/unistr/test-u16-strcoll.c: New file.
6659
6660         Tests for module 'unistr/u8-strcoll'.
6661         * modules/unistr/u8-strcoll-tests: New file.
6662         * tests/unistr/test-u8-strcoll.c: New file.
6663
6664         Tests for module 'unistr/u32-strcmp'.
6665         * modules/unistr/u32-strcmp-tests: New file.
6666         * tests/unistr/test-u32-strcmp.c: New file.
6667         * tests/unistr/test-u32-strcmp.h: New file.
6668
6669         Tests for module 'unistr/u16-strcmp'.
6670         * modules/unistr/u16-strcmp-tests: New file.
6671         * tests/unistr/test-u16-strcmp.c: New file.
6672         * tests/unistr/test-u16-strcmp.h: New file.
6673
6674         Tests for module 'unistr/u8-strcmp'.
6675         * modules/unistr/u8-strcmp-tests: New file.
6676         * tests/unistr/test-u8-strcmp.c: New file.
6677         * tests/unistr/test-u8-strcmp.h: New file.
6678         * tests/unistr/test-strcmp.h: New file.
6679
6680         Tests for module 'unistr/u32-strncat'.
6681         * modules/unistr/u32-strncat-tests: New file.
6682         * tests/unistr/test-u32-strncat.c: New file.
6683
6684         Tests for module 'unistr/u16-strncat'.
6685         * modules/unistr/u16-strncat-tests: New file.
6686         * tests/unistr/test-u16-strncat.c: New file.
6687
6688         Tests for module 'unistr/u8-strncat'.
6689         * modules/unistr/u8-strncat-tests: New file.
6690         * tests/unistr/test-u8-strncat.c: New file.
6691         * tests/unistr/test-strncat.h: New file.
6692
6693         Tests for module 'unistr/u32-strcat'.
6694         * modules/unistr/u32-strcat-tests: New file.
6695         * tests/unistr/test-u32-strcat.c: New file.
6696
6697         Tests for module 'unistr/u16-strcat'.
6698         * modules/unistr/u16-strcat-tests: New file.
6699         * tests/unistr/test-u16-strcat.c: New file.
6700
6701         Tests for module 'unistr/u8-strcat'.
6702         * modules/unistr/u8-strcat-tests: New file.
6703         * tests/unistr/test-u8-strcat.c: New file.
6704         * tests/unistr/test-strcat.h: New file.
6705
6706         Tests for module 'unistr/u32-stpncpy'.
6707         * modules/unistr/u32-stpncpy-tests: New file.
6708         * tests/unistr/test-u32-stpncpy.c: New file.
6709
6710         Tests for module 'unistr/u16-stpncpy'.
6711         * modules/unistr/u16-stpncpy-tests: New file.
6712         * tests/unistr/test-u16-stpncpy.c: New file.
6713
6714         Tests for module 'unistr/u8-stpncpy'.
6715         * modules/unistr/u8-stpncpy-tests: New file.
6716         * tests/unistr/test-u8-stpncpy.c: New file.
6717         * tests/unistr/test-stpncpy.h: New file.
6718
6719         Tests for module 'unistr/u32-strncpy'.
6720         * modules/unistr/u32-strncpy-tests: New file.
6721         * tests/unistr/test-u32-strncpy.c: New file.
6722
6723         Tests for module 'unistr/u16-strncpy'.
6724         * modules/unistr/u16-strncpy-tests: New file.
6725         * tests/unistr/test-u16-strncpy.c: New file.
6726
6727         Tests for module 'unistr/u8-strncpy'.
6728         * modules/unistr/u8-strncpy-tests: New file.
6729         * tests/unistr/test-u8-strncpy.c: New file.
6730         * tests/unistr/test-strncpy.h: New file.
6731
6732         Tests for module 'unistr/u32-stpcpy'.
6733         * modules/unistr/u32-stpcpy-tests: New file.
6734         * tests/unistr/test-u32-stpcpy.c: New file.
6735
6736         Tests for module 'unistr/u16-stpcpy'.
6737         * modules/unistr/u16-stpcpy-tests: New file.
6738         * tests/unistr/test-u16-stpcpy.c: New file.
6739
6740         Tests for module 'unistr/u8-stpcpy'.
6741         * modules/unistr/u8-stpcpy-tests: New file.
6742         * tests/unistr/test-u8-stpcpy.c: New file.
6743         * tests/unistr/test-stpcpy.h: New file.
6744
6745         Tests for module 'unistr/u32-strcpy'.
6746         * modules/unistr/u32-strcpy-tests: New file.
6747         * tests/unistr/test-u32-strcpy.c: New file.
6748
6749         Tests for module 'unistr/u16-strcpy'.
6750         * modules/unistr/u16-strcpy-tests: New file.
6751         * tests/unistr/test-u16-strcpy.c: New file.
6752
6753         Tests for module 'unistr/u8-strcpy'.
6754         * modules/unistr/u8-strcpy-tests: New file.
6755         * tests/unistr/test-u8-strcpy.c: New file.
6756         * tests/unistr/test-strcpy.h: New file.
6757
6758         Tests for module 'unistr/u32-strnlen'.
6759         * modules/unistr/u32-strnlen-tests: New file.
6760         * tests/unistr/test-u32-strnlen.c: New file.
6761
6762         Tests for module 'unistr/u16-strnlen'.
6763         * modules/unistr/u16-strnlen-tests: New file.
6764         * tests/unistr/test-u16-strnlen.c: New file.
6765
6766         Tests for module 'unistr/u8-strnlen'.
6767         * modules/unistr/u8-strnlen-tests: New file.
6768         * tests/unistr/test-u8-strnlen.c: New file.
6769         * tests/unistr/test-strnlen.h: New file.
6770
6771         Tests for module 'unistr/u32-strlen'.
6772         * modules/unistr/u32-strlen-tests: New file.
6773         * tests/unistr/test-u32-strlen.c: New file.
6774
6775         Tests for module 'unistr/u16-strlen'.
6776         * modules/unistr/u16-strlen-tests: New file.
6777         * tests/unistr/test-u16-strlen.c: New file.
6778
6779         Tests for module 'unistr/u8-strlen'.
6780         * modules/unistr/u8-strlen-tests: New file.
6781         * tests/unistr/test-u8-strlen.c: New file.
6782
6783         Tests for module 'unistr/u32-prev'.
6784         * modules/unistr/u32-prev-tests: New file.
6785         * tests/unistr/test-u32-prev.c: New file.
6786
6787         Tests for module 'unistr/u16-prev'.
6788         * modules/unistr/u16-prev-tests: New file.
6789         * tests/unistr/test-u16-prev.c: New file.
6790
6791         Tests for module 'unistr/u8-prev'.
6792         * modules/unistr/u8-prev-tests: New file.
6793         * tests/unistr/test-u8-prev.c: New file.
6794
6795         Tests for module 'unistr/u32-next'.
6796         * modules/unistr/u32-next-tests: New file.
6797         * tests/unistr/test-u32-next.c: New file.
6798
6799         Tests for module 'unistr/u16-next'.
6800         * modules/unistr/u16-next-tests: New file.
6801         * tests/unistr/test-u16-next.c: New file.
6802
6803         Tests for module 'unistr/u8-next'.
6804         * modules/unistr/u8-next-tests: New file.
6805         * tests/unistr/test-u8-next.c: New file.
6806
6807         Tests for module 'unistr/u32-strmbtouc'.
6808         * modules/unistr/u32-strmbtouc-tests: New file.
6809         * tests/unistr/test-u32-strmbtouc.c: New file.
6810
6811         Tests for module 'unistr/u16-strmbtouc'.
6812         * modules/unistr/u16-strmbtouc-tests: New file.
6813         * tests/unistr/test-u16-strmbtouc.c: New file.
6814
6815         Tests for module 'unistr/u8-strmbtouc'.
6816         * modules/unistr/u8-strmbtouc-tests: New file.
6817         * tests/unistr/test-u8-strmbtouc.c: New file.
6818
6819         Tests for module 'unistr/u32-strmblen'.
6820         * modules/unistr/u32-strmblen-tests: New file.
6821         * tests/unistr/test-u32-strmblen.c: New file.
6822
6823         Tests for module 'unistr/u16-strmblen'.
6824         * modules/unistr/u16-strmblen-tests: New file.
6825         * tests/unistr/test-u16-strmblen.c: New file.
6826
6827         Tests for module 'unistr/u8-strmblen'.
6828         * modules/unistr/u8-strmblen-tests: New file.
6829         * tests/unistr/test-u8-strmblen.c: New file.
6830
6831         Tests for module 'unistr/u32-cpy-alloc'.
6832         * modules/unistr/u32-cpy-alloc-tests: New file.
6833         * tests/unistr/test-u32-cpy-alloc.c: New file.
6834
6835         Tests for module 'unistr/u16-cpy-alloc'.
6836         * modules/unistr/u16-cpy-alloc-tests: New file.
6837         * tests/unistr/test-u16-cpy-alloc.c: New file.
6838
6839         Tests for module 'unistr/u8-cpy-alloc'.
6840         * modules/unistr/u8-cpy-alloc-tests: New file.
6841         * tests/unistr/test-u8-cpy-alloc.c: New file.
6842         * tests/unistr/test-cpy-alloc.h: New file.
6843
6844         Tests for module 'unistr/u32-mbsnlen'.
6845         * modules/unistr/u32-mbsnlen-tests: New file.
6846         * tests/unistr/test-u32-mbsnlen.c: New file.
6847
6848         Tests for module 'unistr/u16-mbsnlen'.
6849         * modules/unistr/u16-mbsnlen-tests: New file.
6850         * tests/unistr/test-u16-mbsnlen.c: New file.
6851
6852         Tests for module 'unistr/u8-mbsnlen'.
6853         * modules/unistr/u8-mbsnlen-tests: New file.
6854         * tests/unistr/test-u8-mbsnlen.c: New file.
6855
6856         Tests for module 'unistr/u32-chr'.
6857         * modules/unistr/u32-chr-tests: New file.
6858         * tests/unistr/test-u32-chr.c: New file.
6859
6860         Tests for module 'unistr/u16-chr'.
6861         * modules/unistr/u16-chr-tests: New file.
6862         * tests/unistr/test-u16-chr.c: New file.
6863
6864         Tests for module 'unistr/u8-chr'.
6865         * modules/unistr/u8-chr-tests: New file.
6866         * tests/unistr/test-u8-chr.c: New file.
6867         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
6868
6869         Tests for module 'unistr/u32-cmp2'.
6870         * modules/unistr/u32-cmp2-tests: New file.
6871         * tests/unistr/test-u32-cmp2.c: New file.
6872
6873         Tests for module 'unistr/u16-cmp2'.
6874         * modules/unistr/u16-cmp2-tests: New file.
6875         * tests/unistr/test-u16-cmp2.c: New file.
6876
6877         Tests for module 'unistr/u8-cmp2'.
6878         * modules/unistr/u8-cmp2-tests: New file.
6879         * tests/unistr/test-u8-cmp2.c: New file.
6880         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
6881
6882         Tests for module 'unistr/u32-cmp'.
6883         * modules/unistr/u32-cmp-tests: New file.
6884         * tests/unistr/test-u32-cmp.c: New file.
6885
6886         Tests for module 'unistr/u16-cmp'.
6887         * modules/unistr/u16-cmp-tests: New file.
6888         * tests/unistr/test-u16-cmp.c: New file.
6889
6890         Tests for module 'unistr/u8-cmp'.
6891         * modules/unistr/u8-cmp-tests: New file.
6892         * tests/unistr/test-u8-cmp.c: New file.
6893         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
6894
6895         Tests for module 'unistr/u32-set'.
6896         * modules/unistr/u32-set-tests: New file.
6897         * tests/unistr/test-u32-set.c: New file.
6898
6899         Tests for module 'unistr/u16-set'.
6900         * modules/unistr/u16-set-tests: New file.
6901         * tests/unistr/test-u16-set.c: New file.
6902
6903         Tests for module 'unistr/u8-set'.
6904         * modules/unistr/u8-set-tests: New file.
6905         * tests/unistr/test-u8-set.c: New file.
6906         * tests/unistr/test-set.h: New file.
6907
6908         Tests for module 'unistr/u32-move'.
6909         * modules/unistr/u32-move-tests: New file.
6910         * tests/unistr/test-u32-move.c: New file.
6911
6912         Tests for module 'unistr/u16-move'.
6913         * modules/unistr/u16-move-tests: New file.
6914         * tests/unistr/test-u16-move.c: New file.
6915
6916         Tests for module 'unistr/u8-move'.
6917         * modules/unistr/u8-move-tests: New file.
6918         * tests/unistr/test-u8-move.c: New file.
6919         * tests/unistr/test-move.h: New file.
6920
6921         Tests for module 'unistr/u32-cpy'.
6922         * modules/unistr/u32-cpy-tests: New file.
6923         * tests/unistr/test-u32-cpy.c: New file.
6924
6925         Tests for module 'unistr/u16-cpy'.
6926         * modules/unistr/u16-cpy-tests: New file.
6927         * tests/unistr/test-u16-cpy.c: New file.
6928
6929         Tests for module 'unistr/u8-cpy'.
6930         * modules/unistr/u8-cpy-tests: New file.
6931         * tests/unistr/test-u8-cpy.c: New file.
6932         * tests/unistr/test-cpy.h: New file.
6933
6934 2010-01-09  Bruno Haible  <bruno@clisp.org>
6935
6936         Tests for module 'unistr/u32-uctomb'.
6937         * modules/unistr/u32-uctomb-tests: New file.
6938         * tests/unistr/test-u32-uctomb.c: New file.
6939
6940         Tests for module 'unistr/u16-uctomb'.
6941         * modules/unistr/u16-uctomb-tests: New file.
6942         * tests/unistr/test-u16-uctomb.c: New file.
6943
6944         Tests for module 'unistr/u8-uctomb'.
6945         * modules/unistr/u8-uctomb-tests: New file.
6946         * tests/unistr/test-u8-uctomb.c: New file.
6947
6948         Tests for module 'unistr/u32-mbtoucr'.
6949         * modules/unistr/u32-mbtoucr-tests: New file.
6950         * tests/unistr/test-u32-mbtoucr.c: New file.
6951
6952         Tests for module 'unistr/u16-mbtoucr'.
6953         * modules/unistr/u16-mbtoucr-tests: New file.
6954         * tests/unistr/test-u16-mbtoucr.c: New file.
6955
6956         Tests for module 'unistr/u8-mbtoucr'.
6957         * modules/unistr/u8-mbtoucr-tests: New file.
6958         * tests/unistr/test-u8-mbtoucr.c: New file.
6959
6960         Tests for module 'unistr/u32-mbtouc'.
6961         * modules/unistr/u32-mbtouc-tests: New file.
6962         * tests/unistr/test-u32-mbtouc.c: New file.
6963
6964         Tests for module 'unistr/u16-mbtouc'.
6965         * modules/unistr/u16-mbtouc-tests: New file.
6966         * tests/unistr/test-u16-mbtouc.c: New file.
6967
6968         Tests for module 'unistr/u8-mbtouc'.
6969         * modules/unistr/u8-mbtouc-tests: New file.
6970         * tests/unistr/test-u8-mbtouc.c: New file.
6971
6972         Tests for module 'unistr/u32-mbtouc-unsafe'.
6973         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
6974         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
6975         * tests/unistr/test-u32-mbtouc.h: New file.
6976
6977         Tests for module 'unistr/u16-mbtouc-unsafe'.
6978         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
6979         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
6980         * tests/unistr/test-u16-mbtouc.h: New file.
6981
6982         Tests for module 'unistr/u8-mbtouc-unsafe'.
6983         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
6984         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
6985         * tests/unistr/test-u8-mbtouc.h: New file.
6986
6987         Tests for module 'unistr/u32-mblen'.
6988         * modules/unistr/u32-mblen-tests: New file.
6989         * tests/unistr/test-u32-mblen.c: New file.
6990
6991         Tests for module 'unistr/u16-mblen'.
6992         * modules/unistr/u16-mblen-tests: New file.
6993         * tests/unistr/test-u16-mblen.c: New file.
6994
6995         Tests for module 'unistr/u8-mblen'.
6996         * modules/unistr/u8-mblen-tests: New file.
6997         * tests/unistr/test-u8-mblen.c: New file.
6998
6999         Tests for module 'unistr/u32-to-u16'.
7000         * modules/unistr/u32-to-u16-tests: New file.
7001         * tests/unistr/test-u32-to-u16.c: New file.
7002
7003         Tests for module 'unistr/u32-to-u8'.
7004         * modules/unistr/u32-to-u8-tests: New file.
7005         * tests/unistr/test-u32-to-u8.c: New file.
7006
7007         Tests for module 'unistr/u16-to-u32'.
7008         * modules/unistr/u16-to-u32-tests: New file.
7009         * tests/unistr/test-u16-to-u32.c: New file.
7010
7011         Tests for module 'unistr/u16-to-u8'.
7012         * modules/unistr/u16-to-u8-tests: New file.
7013         * tests/unistr/test-u16-to-u8.c: New file.
7014
7015         Tests for module 'unistr/u8-to-u32'.
7016         * modules/unistr/u8-to-u32-tests: New file.
7017         * tests/unistr/test-u8-to-u32.c: New file.
7018
7019         Tests for module 'unistr/u8-to-u16'.
7020         * modules/unistr/u8-to-u16-tests: New file.
7021         * tests/unistr/test-u8-to-u16.c: New file.
7022
7023         Tests for module 'unistr/u32-check'.
7024         * modules/unistr/u32-check-tests: New file.
7025         * tests/unistr/test-u32-check.c: New file.
7026
7027         Tests for module 'unistr/u16-check'.
7028         * modules/unistr/u16-check-tests: New file.
7029         * tests/unistr/test-u16-check.c: New file.
7030
7031         Tests for module 'unistr/u8-check'.
7032         * modules/unistr/u8-check-tests: New file.
7033         * tests/unistr/test-u8-check.c: New file.
7034
7035         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7036         (category_equals): New function.
7037         (main): Add more tests.
7038         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7039
7040         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7041
7042 2010-01-10  Bruno Haible  <bruno@clisp.org>
7043
7044         unistr/u*-strcoll: Try harder to distinguish different strings.
7045         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7046         compare s1 and s2 to see if they are different.
7047
7048 2010-01-10  Bruno Haible  <bruno@clisp.org>
7049
7050         unistr/u*-stpncpy: Fix the return value.
7051         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7052         description of the return value consistent with stpncpy in glibc.
7053         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7054         written non-NUL unit.
7055
7056 2010-01-10  Bruno Haible  <bruno@clisp.org>
7057
7058         unistr/u*-next: Add missing dependencies.
7059         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7060         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7061         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7062
7063 2010-01-10  Bruno Haible  <bruno@clisp.org>
7064
7065         unistr/u8-mbsnlen: Fix return value for incomplete character.
7066         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7067         u8_mblen.
7068         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7069         Remove unistr/u8-mblen.
7070         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7071         u16_mblen.
7072         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7073         Remove unistr/u16-mblen.
7074
7075 2010-01-10  Bruno Haible  <bruno@clisp.org>
7076
7077         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7078         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7079         Reported by Brian Gough <bjg@gnu.org> and
7080         Chris Clayton <chris2553@googlemail.com> via
7081         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7082
7083 2010-01-09  Bruno Haible  <bruno@clisp.org>
7084
7085         unistr/u16-to-u32: Reject invalid input.
7086         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7087         u16_mbtouc.
7088         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7089         Remove unistr/u16-mbtouc.
7090
7091         unistr/u16-to-u8: Reject invalid input.
7092         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7093         u16_mbtouc.
7094         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7095         Remove unistr/u16-mbtouc.
7096
7097         unistr/u8-to-u32: Reject invalid input.
7098         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7099         u8_mbtouc.
7100         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7101         Remove unistr/u8-mbtouc.
7102
7103         unistr/u8-to-u16: Reject invalid input.
7104         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7105         u8_mbtouc.
7106         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7107         Remove unistr/u8-mbtouc.
7108
7109 2010-01-09  Bruno Haible  <bruno@clisp.org>
7110
7111         Tests for module 'getlogin'.
7112         * modules/getlogin-tests: New file.
7113         * tests/test-getlogin.c: New file.
7114
7115         New module 'getlogin'.
7116         * lib/unistd.in.h (getlogin): New declaration.
7117         * lib/getlogin.c: New file.
7118         * m4/getlogin.m4: New file.
7119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7120         HAVE_GETLOGIN.
7121         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7122         HAVE_GETLOGIN.
7123         * modules/getlogin: New file.
7124         * doc/posix-functions/getlogin.texi: Mention the new module.
7125         Reported by John W. Eaton <jwe@gnu.org>.
7126
7127 2010-01-09  Bruno Haible  <bruno@clisp.org>
7128
7129         getlogin_r: Support for native Windows.
7130         * lib/getlogin_r.c: Include <windows.h>
7131         (getlogin_r): Implement for native Windows.
7132         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7133         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7134         via John W. Eaton <jwe@gnu.org>.
7135
7136 2010-01-09  Bruno Haible  <bruno@clisp.org>
7137
7138         getlogin_r: Small fixes.
7139         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7140         succeeds.
7141         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7142         before testing whether getlogin_r is declared. No need to set
7143         HAVE_DECL_GETLOGIN_R to 1.
7144         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7145
7146 2010-01-09  Bruno Haible  <bruno@clisp.org>
7147
7148         * lib/unistd.in.h (getlogin_r): Add comment.
7149
7150 2010-01-09  Bruno Haible  <bruno@clisp.org>
7151
7152         Tests for module 'getlogin_r'.
7153         * modules/getlogin_r-tests: New file.
7154         * tests/test-getlogin_r.c: New file.
7155
7156 2010-01-09  Jim Meyering  <meyering@redhat.com>
7157
7158         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7159         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7160         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7161
7162 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7163
7164         * lib/dup2.c (rpl_dup2): Improve comment.
7165
7166 2010-01-08  Eric Blake  <ebb9@byu.net>
7167
7168         maint.mk: allow packages to add makefile @@ exceptions
7169         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7170         (sc_makefile_check): Rename...
7171         (sc_makefile_at_at_check): ...to this, and use hook.
7172
7173         dup2: work around mingw bug
7174         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7175         Reported by Simon Josefsson.
7176
7177 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7178
7179         glob: Fix C++ compilation.
7180         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7181         C++.
7182
7183 2010-01-07  Bruno Haible  <bruno@clisp.org>
7184
7185         Fix indentation of wctype.in.h, broken since 2007-01-06.
7186         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7187
7188 2010-01-07  Bruno Haible  <bruno@clisp.org>
7189
7190         mbslen: Avoid collision with system function.
7191         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7192         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7193         * m4/mbslen.m4: New file.
7194         * modules/mbslen (Files): Add it.
7195         (configure.ac): Invoke gl_MBSLEN.
7196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7197         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7198         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7199         via Ian Beckwith <ianb@erislabs.net>.
7200
7201 2010-01-07  Bruno Haible  <bruno@clisp.org>
7202
7203         dirent: Document the last fix.
7204         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7205
7206 2010-01-07  Bruno Haible  <bruno@clisp.org>
7207
7208         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7209         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7210         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7211         va_list are defined.
7212         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7213         Reported by Eric Blake.
7214
7215 2010-01-07  Bruno Haible  <bruno@clisp.org>
7216
7217         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7218         * modules/xlist (Depends-on): Add 'list',
7219         * modules/xoset (Depends-on): Add 'oset'.
7220         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7221
7222 2010-01-07  Bruno Haible  <bruno@clisp.org>
7223
7224         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7225         * doc/posix-functions/strncasecmp.texi: Likewise.
7226
7227 2010-01-07  Bruno Haible  <bruno@clisp.org>
7228
7229         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7230
7231 2010-01-07  John W. Eaton  <jwe@octave.org>
7232
7233         wctype: allow C++ use
7234         * lib/wctype.in.h: Add extern "C" block for C++.
7235
7236 2010-01-06  Eric Blake  <ebb9@byu.net>
7237
7238         maint.mk: detect incorrect GFDL usage
7239         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7240
7241 2010-01-06  Jim Meyering  <meyering@redhat.com>
7242         and Eric Blake  <ebb9@byu.net>
7243
7244         maint.mk: ignore multi-line copyright in NEWS
7245         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7246
7247 2010-01-06  Eric Blake  <ebb9@byu.net>
7248
7249         select: add missing dependency
7250         * modules/select-tests (Depends-on): Move sockets dependency...
7251         * modules/select (Depends-on): ...here.
7252         Reported by Ian Beckwith.
7253
7254         doc: regenerate INSTALL
7255         * doc/INSTALL: Reflect recent autoconf update.
7256         * doc/INSTALL.ISO: Likewise.
7257         * doc/INSTALL.UTF-8: Likewise.
7258
7259         pread: fix compilation on glibc
7260         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7261         Reported by Ralf Wildenhues.
7262
7263         dirent: fix test failure
7264         * lib/dirent.in.h (includes): Guarantee ino_t.
7265         Reported by Ralf Wildenhues.
7266
7267 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7268
7269         linkat, renameat: avoid bad free
7270         * lib/at-func2.c (at_func2): Fix typo.
7271         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7272
7273 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7274
7275         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7276         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7277         to avoid failure of symlink test later.
7278
7279 2010-01-06  Eric Blake  <ebb9@byu.net>
7280
7281         stdio, unistd: guarantee ssize_t
7282         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7283         2008 are exposed when needed.
7284         * lib/stdio.in.h (includes): Likewise.
7285         Reported by Ralf Wildenhues.
7286
7287 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7288
7289         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7290         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7291         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7292
7293 2010-01-06  Jim Meyering  <meyering@redhat.com>
7294
7295         readtokens: this module *does* require xalloc.h
7296         It uses only functions that were omitted by the old syntax-check rule.
7297         * lib/readtokens.c: Include "xalloc.h" once again.
7298         * modules/readtokens (Depends-on): Add xalloc.
7299         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7300
7301 2010-01-05  Eric Blake  <ebb9@byu.net>
7302
7303         maint: support 'make announcement' from a VPATH build
7304         * top/maint.mk (announcement): Look for correct NEWS file.
7305
7306 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7307
7308         utimens (fdutimens): ignore a negative FD, per contract
7309         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7310         when we have a valid file descriptor.  Otherwise, using a brand
7311         new glibc (with just-patched futimens that now fails with EBADF)
7312         would cause this function to fail with ENOSYS.
7313         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7314         See also http://bugzilla.redhat.com/552320.
7315
7316 2010-01-05  Eric Blake  <ebb9@byu.net>
7317
7318         strcase: document what it provides
7319         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7320         gnulib module.
7321         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7322         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7323
7324 2010-01-05  Jim Meyering  <meyering@redhat.com>
7325
7326         maint: remove useless inclusions of "xalloc.h"
7327         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7328         * lib/readtokens.c: Likewise.
7329         * lib/same.c: Likewise.
7330         * modules/getloadavg (Depends-on): Remove xalloc.
7331         * modules/readtokens: Likewise.
7332         * modules/same: Likewise.
7333
7334         maint.mk: include 4 more function names in alloca.h-checking regexp
7335         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7336         regexp.  Before, we would give a false-positive (saying alloca.h
7337         is included unnecessarily) when the only uses involved omitted symbols.
7338
7339         xalloc.h: use consistent formatting
7340         * lib/xalloc.h: Move declarations to start in the first column.
7341
7342 2010-01-05  Eric Blake  <ebb9@byu.net>
7343
7344         mkdir: avoid xalloc
7345         * lib/mkdir.c (includes): Drop unused header.
7346         Reported by John W. Eaton.
7347
7348 2010-01-04  Jim Meyering  <meyering@redhat.com>
7349
7350         nl_langinfo: avoid configure-time syntax error
7351         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7352         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7353         the empty string.  Don't let that provoke a shell syntax error.
7354
7355         regcomp, regexec, fnmatch: avoid array bounds read error
7356         * lib/regcomp.c (build_equiv_class): From glibc:
7357         Use only the low 24 bits of a findidx return value as an index
7358         into the weights array.  Patch by Ulrich Drepper:
7359         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7360         * lib/regexec.c (check_node_accept_bytes): Likewise.
7361         * lib/fnmatch_loop.c (FCT): Likewise.
7362
7363         regcomp: skip collseq lookup when there are no rules
7364         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7365         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7366
7367         regcomp: recognize ill-formed { } expressions
7368         * lib/regcomp.c (parse_dup_op): From glibc:
7369         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7370
7371         regcomp: fix typo in comment
7372         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7373         s/satisfy/satisfies/.
7374
7375         regcomp: sync from glibc: remove dead store
7376         * lib/regcomp.c (duplicate_node_closure): Remove useless
7377         search_duplicated_node call and dead store.
7378
7379         regcomp: sync from glibc; always use nl_langinfo
7380         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7381         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7382         * modules/regex (Depends-on): Add nl_langinfo.
7383
7384 2010-01-04  Eric Blake  <ebb9@byu.net>
7385
7386         fdopendir: fix configure test
7387         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7388
7389 2010-01-01  Bruno Haible  <bruno@clisp.org>
7390
7391         wchar: Remove unused configure check.
7392         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7393
7394 2010-01-01  Eric Blake  <ebb9@byu.net>
7395
7396         headers: make check of system header explicit
7397         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7398         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7399         ourselves.
7400         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7402         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7403         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7404         internals.
7405         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7406         missing.
7407         Suggested by Bruno Haible.
7408
7409 2010-01-01  Jim Meyering  <meyering@redhat.com>
7410
7411         ChangeLog: tweak to eliminate unnecessary copyright line
7412         * ChangeLog: Remove a copyright line that was mistakenly updated
7413         by today's update-copyright run.  Reported by Eric Blake.
7414
7415         test-update-copyright: don't let envvar setting cause test failure
7416         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7417
7418 2010-01-01  Bruno Haible  <bruno@clisp.org>
7419
7420         localename: Avoid gcc warning.
7421         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7422         function if it is not used.
7423
7424 2010-01-01  Jim Meyering  <meyering@redhat.com>
7425
7426         update nearly all FSF copyright year lists to include 2010
7427         Use the same procedure as for 2009, outlined in
7428         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7429
7430         version-etc: set COPYRIGHT_YEAR to 2010
7431         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7432
7433 2009-12-31  Eric Blake  <ebb9@byu.net>
7434
7435         doc: correct availability of cygwin 1.5.x getopt
7436         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7437         variables.
7438         * doc/posix-functions/opterr.texi (opterr): Likewise.
7439         * doc/posix-functions/optind.texi (optind): Likewise.
7440         * doc/posix-functions/optopt.texi (optopt): Likewise.
7441         * doc/posix-functions/tzname.texi (tzname): Likewise.
7442
7443         openat: update maintainer
7444         * modules/openat (Maintainer): Add myself.
7445
7446         utimens: avoid shadowing warning
7447         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7448         buffers into one, to avoid shadowing, as well as avoiding a
7449         redundant stat.
7450         Reported by Jim Meyering.
7451
7452         test-dup2: avoid compiler warning
7453         * tests/test-dup2.c (is_inheritable): Only define if used.
7454
7455 2010-01-01  Bruno Haible  <bruno@clisp.org>
7456
7457         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7458         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7459         defined, use wctomb instead of wcrtomb.
7460
7461 2010-01-01  Bruno Haible  <bruno@clisp.org>
7462
7463         iconv: Reject native Solaris iconv.
7464         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7465         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7466
7467 2009-12-31  Bruno Haible  <bruno@clisp.org>
7468
7469         * tests/test-signal.c (main): Remove test of 'SIG'.
7470
7471 2009-12-31  Bruno Haible  <bruno@clisp.org>
7472
7473         spawn: Fix incomplete fix.
7474         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7475         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7476         warnings for GNULIB_POSIXCHECK again.
7477         Reported by Eric Blake.
7478
7479 2009-12-31  Bruno Haible  <bruno@clisp.org>
7480
7481         Avoid namespace pollution on glibc systems.
7482         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7483         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7484         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7485         glibc systems.
7486
7487 2009-12-31  Bruno Haible  <bruno@clisp.org>
7488
7489         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7490         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7491         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7492         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7493         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7494         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7495         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7496
7497 2009-12-31  Bruno Haible  <bruno@clisp.org>
7498
7499         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7500         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7501         afterwards.
7502
7503 2009-12-31  Bruno Haible  <bruno@clisp.org>
7504
7505         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7506         SYS_UTSNAME_H.
7507
7508 2009-12-31  Bruno Haible  <bruno@clisp.org>
7509
7510         spawn: Fix misapplied patch.
7511         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7512         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7513         warnings for GNULIB_POSIXCHECK.
7514
7515 2009-12-31  Bruno Haible  <bruno@clisp.org>
7516
7517         times: Update after sys_times changed.
7518         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7519         * modules/times (Files): Add it.
7520         (configure.ac): Invoke gl_FUNC_TIMES.
7521
7522 2009-12-31  Bruno Haible  <bruno@clisp.org>
7523
7524         Use AC_C_INLINE where necessary.
7525         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7526         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7527         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7528         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7529         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7530         * m4/mbiter.m4 (gl_MBITER): Likewise.
7531         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7532         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7533         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7534         * modules/u64 (configure.ac): Likewise.
7535
7536 2009-12-31  Bruno Haible  <bruno@clisp.org>
7537
7538         Use AC_C_INLINE instead of module 'inline' where possible.
7539         * modules/inline (Description): Clarify purpose.
7540         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7541         * modules/count-one-bits (Depends-on): Remove inline.
7542         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7543         * modules/openat (Depends-on): Remove inline.
7544         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7545         instead of depending on module 'inline'.
7546         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7547         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7548         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7549         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7550         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7551         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7552         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7553         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7554         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7555         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7556         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7557         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7558         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7559         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7560         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7561         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7562         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7563         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7564         Likewise.
7565         * modules/unictype/property-ascii-hex-digit (Depends-on,
7566         configure.ac): Likewise.
7567         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7568         configure.ac): Likewise.
7569         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7570         configure.ac): Likewise.
7571         * modules/unictype/property-bidi-block-separator (Depends-on,
7572         configure.ac): Likewise.
7573         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7574         configure.ac): Likewise.
7575         * modules/unictype/property-bidi-common-separator (Depends-on,
7576         configure.ac): Likewise.
7577         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7578         Likewise.
7579         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7580         configure.ac): Likewise.
7581         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7582         configure.ac): Likewise.
7583         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7584         configure.ac): Likewise.
7585         * modules/unictype/property-bidi-european-digit (Depends-on,
7586         configure.ac): Likewise.
7587         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7588         configure.ac): Likewise.
7589         * modules/unictype/property-bidi-left-to-right (Depends-on,
7590         configure.ac): Likewise.
7591         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7592         configure.ac): Likewise.
7593         * modules/unictype/property-bidi-other-neutral (Depends-on,
7594         configure.ac): Likewise.
7595         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7596         Likewise.
7597         * modules/unictype/property-bidi-segment-separator (Depends-on,
7598         configure.ac): Likewise.
7599         * modules/unictype/property-bidi-whitespace (Depends-on,
7600         configure.ac): Likewise.
7601         * modules/unictype/property-combining (Depends-on, configure.ac):
7602         Likewise.
7603         * modules/unictype/property-composite (Depends-on, configure.ac):
7604         Likewise.
7605         * modules/unictype/property-currency-symbol (Depends-on,
7606         configure.ac): Likewise.
7607         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7608         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7609         Likewise.
7610         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7611         configure.ac): Likewise.
7612         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7613         Likewise.
7614         * modules/unictype/property-diacritic (Depends-on, configure.ac):
7615         Likewise.
7616         * modules/unictype/property-extender (Depends-on, configure.ac):
7617         Likewise.
7618         * modules/unictype/property-format-control (Depends-on, configure.ac):
7619         Likewise.
7620         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
7621         Likewise.
7622         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
7623         Likewise.
7624         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
7625         Likewise.
7626         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
7627         Likewise.
7628         * modules/unictype/property-hyphen (Depends-on, configure.ac):
7629         Likewise.
7630         * modules/unictype/property-id-continue (Depends-on, configure.ac):
7631         Likewise.
7632         * modules/unictype/property-id-start (Depends-on, configure.ac):
7633         Likewise.
7634         * modules/unictype/property-ideographic (Depends-on, configure.ac):
7635         Likewise.
7636         * modules/unictype/property-ids-binary-operator (Depends-on,
7637         configure.ac): Likewise.
7638         * modules/unictype/property-ids-trinary-operator (Depends-on,
7639         configure.ac): Likewise.
7640         * modules/unictype/property-ignorable-control (Depends-on,
7641         configure.ac): Likewise.
7642         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7643         Likewise.
7644         * modules/unictype/property-join-control (Depends-on, configure.ac):
7645         Likewise.
7646         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7647         Likewise.
7648         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7649         Likewise.
7650         * modules/unictype/property-logical-order-exception (Depends-on,
7651         configure.ac): Likewise.
7652         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7653         Likewise.
7654         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7655         * modules/unictype/property-non-break (Depends-on, configure.ac):
7656         Likewise.
7657         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7658         Likewise.
7659         * modules/unictype/property-numeric (Depends-on, configure.ac):
7660         Likewise.
7661         * modules/unictype/property-other-alphabetic (Depends-on,
7662         configure.ac): Likewise.
7663         * modules/unictype/property-other-default-ignorable-code-point
7664         (Depends-on, configure.ac): Likewise.
7665         * modules/unictype/property-other-grapheme-extend (Depends-on,
7666         configure.ac): Likewise.
7667         * modules/unictype/property-other-id-continue (Depends-on,
7668         configure.ac): Likewise.
7669         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7670         Likewise.
7671         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7672         Likewise.
7673         * modules/unictype/property-other-math (Depends-on, configure.ac):
7674         Likewise.
7675         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7676         Likewise.
7677         * modules/unictype/property-paired-punctuation (Depends-on,
7678         configure.ac): Likewise.
7679         * modules/unictype/property-paragraph-separator (Depends-on,
7680         configure.ac): Likewise.
7681         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7682         Likewise.
7683         * modules/unictype/property-pattern-white-space (Depends-on,
7684         configure.ac): Likewise.
7685         * modules/unictype/property-private-use (Depends-on, configure.ac):
7686         Likewise.
7687         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7688         Likewise.
7689         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7690         Likewise.
7691         * modules/unictype/property-radical (Depends-on, configure.ac):
7692         Likewise.
7693         * modules/unictype/property-sentence-terminal (Depends-on,
7694         configure.ac): Likewise.
7695         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7696         Likewise.
7697         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7698         * modules/unictype/property-terminal-punctuation (Depends-on,
7699         configure.ac): Likewise.
7700         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7701         Likewise.
7702         * modules/unictype/property-unassigned-code-value (Depends-on,
7703         configure.ac): Likewise.
7704         * modules/unictype/property-unified-ideograph (Depends-on,
7705         configure.ac): Likewise.
7706         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7707         Likewise.
7708         * modules/unictype/property-variation-selector (Depends-on,
7709         configure.ac): Likewise.
7710         * modules/unictype/property-white-space (Depends-on, configure.ac):
7711         Likewise.
7712         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
7713         Likewise.
7714         * modules/unictype/property-xid-start (Depends-on, configure.ac):
7715         Likewise.
7716         * modules/unictype/property-zero-width (Depends-on, configure.ac):
7717         Likewise.
7718         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
7719         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
7720         Likewise.
7721
7722 2009-12-31  Bruno Haible  <bruno@clisp.org>
7723
7724         Remove unnecessary AC_C_INLINE invocation.
7725         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
7726         since 2009-08-21.
7727
7728 2009-12-31  Jim Meyering  <meyering@redhat.com>
7729
7730         maint.mk: don't require explicit gpg_key_ID in cfg.mk
7731         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
7732         With this change, we can all remove the gpg_key_ID = ... definition
7733         from our respective cfg.mk files.
7734
7735         maint.mk: create announcement template in ~/, not in /tmp
7736         * top/maint.mk (emit_upload_commands): Adjust.
7737         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
7738         Remove temporary file, .ci-msg.
7739
7740 2009-12-31  Eric Blake  <ebb9@byu.net>
7741
7742         link-warning: always build headers with link warnings
7743         * modules/arpa_inet (Makefile.am): Always build replacement
7744         header.
7745         * modules/ctype (Makefile.am): Likewise.
7746         * modules/dirent (Makefile.am): Likewise.
7747         * modules/inttypes (Makefile.am): Likewise.
7748         * modules/langinfo (Makefile.am): Likewise.
7749         * modules/locale (Makefile.am): Likewise.
7750         * modules/spawn (Makefile.am): Likewise.
7751         * modules/sys_file (Makefile.am): Likewise.
7752         * modules/sys_ioctl (Makefile.am): Likewise.
7753         * modules/sys_select (Makefile.am): Likewise.
7754         * modules/sys_socket (Makefile.am): Likewise.
7755         * modules/sys_times (Makefile.am): Likewise.
7756         * modules/sys_utsname (Makefile.am): Likewise.
7757         * modules/sys_wait (Makefile.am): Likewise.
7758         * modules/wchar (Makefile.am): Likewise.
7759         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
7760         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
7761         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
7762         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
7763         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
7764         Likewise.
7765         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7766         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7767         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
7768         Likewise.
7769         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
7770         Likewise.
7771         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
7773         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
7774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7777         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7778         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
7779         (gl_WCHAR_H_DEFAULTS): Likewise.
7780
7781 2009-12-31  Eric Blake  <ebb9@byu.net>
7782
7783         signal, spawn: use link warnings
7784         * lib/signal.in.h (sigset_t): Make unconditional.
7785         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
7786         (sigpending, sigprocmask, sigaction): Add link warnings.
7787         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
7788         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
7789         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
7790         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
7791         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
7792         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
7793         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
7794         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
7795         (posix_spawn_file_actions_destroy)
7796         (posix_spawn_file_actions_addopen)
7797         (posix_spawn_file_actions_addclose)
7798         (posix_spawn_file_actions_adddup2): Likewise.
7799         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
7800         * tests/test-signal.c (main): Enhance test.
7801
7802         spawn: improve wrapper support
7803         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
7804         (gl_SPAWN_H_DEFAULTS): New defaults.
7805         * modules/spawn (Makefile.am): Substitute them.
7806         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
7807         Only declare if missing or broken.
7808
7809         sys_times, sys_utsname: use include_next
7810         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
7811         header.
7812         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
7813         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7814         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7815         * modules/sys_times (Depends-on): Add include_next.
7816         (Makefile.am): Substitute additional values.
7817         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7818         * lib/sys_times.in.h (includes): Include native header, if
7819         available.
7820         * lib/sys_utsname.in.h (includes): Likewise.
7821         * tests/test-sys_times.c (main): Enhance test.
7822
7823         fdutimensat: revert prior patch
7824         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
7825         utimens.h.
7826         Reported by Bruno Haible.
7827
7828 2009-12-30  Eric Blake  <ebb9@byu.net>
7829
7830         sys_wait: drop link-warning dependency
7831         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
7832         link-warning efforts.
7833         * lib/sys_wait.in.h: Likewise.
7834
7835         fdutimensat: remove bogus dependency
7836         * modules/fdutimensat (Depends-on): Drop inline.
7837
7838         unistd: fix typo
7839         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
7840
7841 2009-12-30  Bruno Haible  <bruno@clisp.org>
7842
7843         Fix compilation error with Solaris cc.
7844         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
7845         * lib/unicase/u16-is-invariant.c: Likewise.
7846         * lib/unicase/u32-is-invariant.c: Likewise.
7847         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7848
7849 2009-12-30  Bruno Haible  <bruno@clisp.org>
7850
7851         Fix test crash.
7852         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
7853         locales.
7854         Reported by Simon Josefsson <simon@josefsson.org>.
7855
7856 2009-12-30  Bruno Haible  <bruno@clisp.org>
7857
7858         Fix compilation error on most platforms.
7859         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
7860         Reported by Simon Josefsson <simon@josefsson.org>
7861         and Nelson H. F. Beebe <beebe@math.utah.edu>.
7862
7863 2009-12-30  Eric Blake  <ebb9@byu.net>
7864
7865         futimens, utimensat: work around ntfs-3g bug
7866         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
7867         a ctime bug is present, and expand workaround to cover ntfs-3g.
7868         * lib/utimens.c (fdutimens, lutimens): Likewise.
7869         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
7870         (validate_timespec): Adjust return value.
7871         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
7872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7873         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
7874
7875 2009-12-29  Eric Blake  <ebb9@byu.net>
7876
7877         link-warning: make usage consistent
7878         * modules/ctype (Depends-on): Add link-warning.
7879         (Makefile.am): Update rules accordingly.
7880         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7881         * modules/locale (Depends-on, Makefile.am): Likewise.
7882         * modules/sys_file (Makefile.am): Likewise.
7883         * modules/getopt-posix (Makefile.am): Delete unused link warning
7884         efforts.
7885         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
7886         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
7887         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
7888         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
7889
7890         stdio: remove unused variables
7891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
7892         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
7893         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7894
7895         tests: test more substitute headers
7896         * modules/ctype-tests: New file.
7897         * modules/dirent-tests: Likewise.
7898         * modules/spawn-tests: Likewise.
7899         * modules/sys_file-tests: Likewise.
7900         * modules/sys_ioctl-tests: Likewise.
7901         * modules/sys_wait-tests: Likewise.
7902         * tests/test-ctype.c: Likewise.
7903         * tests/test-dirent.c: Likewise.
7904         * tests/test-spawn.c: Likewise.
7905         * tests/test-sys_file.c: Likewise.
7906         * tests/test-sys_ioctl.c: Likewise.
7907         * tests/test-sys_wait.c: Likewise.
7908         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
7909         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
7910         whether or not flock is in use.
7911
7912         tests: remove License section from module
7913         * modules/arpa_inet-tests: Remove unneeded section.
7914         * modules/byteswap-tests: Likewise.
7915         * modules/ceilf-tests: Likewise.
7916         * modules/ceill-tests: Likewise.
7917         * modules/crypto/des-tests: Likewise.
7918         * modules/crypto/gc-arcfour-tests: Likewise.
7919         * modules/crypto/gc-arctwo-tests: Likewise.
7920         * modules/crypto/gc-des-tests: Likewise.
7921         * modules/crypto/gc-hmac-md5-tests: Likewise.
7922         * modules/crypto/gc-hmac-sha1-tests: Likewise.
7923         * modules/crypto/gc-md2-tests: Likewise.
7924         * modules/crypto/gc-md4-tests: Likewise.
7925         * modules/crypto/gc-md5-tests: Likewise.
7926         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
7927         * modules/crypto/gc-rijndael-tests: Likewise.
7928         * modules/crypto/gc-sha1-tests: Likewise.
7929         * modules/crypto/gc-tests: Likewise.
7930         * modules/crypto/md2-tests: Likewise.
7931         * modules/crypto/md4-tests: Likewise.
7932         * modules/fcntl-h-tests: Likewise.
7933         * modules/floorf-tests: Likewise.
7934         * modules/floorl-tests: Likewise.
7935         * modules/frexp-nolibm-tests: Likewise.
7936         * modules/frexp-tests: Likewise.
7937         * modules/frexpl-nolibm-tests: Likewise.
7938         * modules/frexpl-tests: Likewise.
7939         * modules/getaddrinfo-tests: Likewise.
7940         * modules/inttypes-tests: Likewise.
7941         * modules/isfinite-tests: Likewise.
7942         * modules/isinf-tests: Likewise.
7943         * modules/ldexpl-tests: Likewise.
7944         * modules/locale-tests: Likewise.
7945         * modules/math-tests: Likewise.
7946         * modules/netdb-tests: Likewise.
7947         * modules/netinet_in-tests: Likewise.
7948         * modules/printf-frexp-tests: Likewise.
7949         * modules/printf-frexpl-tests: Likewise.
7950         * modules/priv-set-tests: Likewise.
7951         * modules/random_r-tests: Likewise.
7952         * modules/round-tests: Likewise.
7953         * modules/roundf-tests: Likewise.
7954         * modules/roundl-tests: Likewise.
7955         * modules/search-tests: Likewise.
7956         * modules/select-tests: Likewise.
7957         * modules/signal-tests: Likewise.
7958         * modules/stdbool-tests: Likewise.
7959         * modules/stddef-tests: Likewise.
7960         * modules/stdint-tests: Likewise.
7961         * modules/stdio-tests: Likewise.
7962         * modules/stdlib-tests: Likewise.
7963         * modules/string-tests: Likewise.
7964         * modules/strings-tests: Likewise.
7965         * modules/sys_select-tests: Likewise.
7966         * modules/sys_socket-tests: Likewise.
7967         * modules/sys_stat-tests: Likewise.
7968         * modules/sys_time-tests: Likewise.
7969         * modules/sys_utsname-tests: Likewise.
7970         * modules/sysexits-tests: Likewise.
7971         * modules/time-tests: Likewise.
7972         * modules/trunc-tests: Likewise.
7973         * modules/truncf-tests: Likewise.
7974         * modules/truncl-tests: Likewise.
7975         * modules/tsearch-tests: Likewise.
7976         * modules/unistd-tests: Likewise.
7977         * modules/wchar-tests: Likewise.
7978         * modules/wctype-tests: Likewise.
7979
7980         tests: fix license on several tests
7981         * tests/test-des.c: Update to GPLv3+.
7982         * tests/test-flock.c: Likewise.
7983         * tests/test-fsync.c: Likewise.
7984         * tests/test-futimens.h: Likewise.
7985         * tests/test-gc-arcfour.c: Likewise.
7986         * tests/test-gc-arctwo.c: Likewise.
7987         * tests/test-gc-des.c: Likewise.
7988         * tests/test-gc-hmac-md5.c: Likewise.
7989         * tests/test-gc-hmac-sha1.c: Likewise.
7990         * tests/test-gc-md2.c: Likewise.
7991         * tests/test-gc-md4.c: Likewise.
7992         * tests/test-gc-md5.c: Likewise.
7993         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7994         * tests/test-gc-rijndael.c: Likewise.
7995         * tests/test-gc-sha1.c: Likewise.
7996         * tests/test-gc.c: Likewise.
7997         * tests/test-getcwd.c: Likewise.
7998         * tests/test-link.c: Likewise.
7999         * tests/test-link.h: Likewise.
8000         * tests/test-lutimens.h: Likewise.
8001         * tests/test-md2.c: Likewise.
8002         * tests/test-md4.c: Likewise.
8003         * tests/test-mkdir.h: Likewise.
8004         * tests/test-rename.c: Likewise.
8005         * tests/test-rename.h: Likewise.
8006         * tests/test-safe-alloc.c: Likewise.
8007         * tests/test-utimens-common.h: Likewise.
8008         * tests/test-utimens.h: Likewise.
8009
8010         maint: sync license texts
8011         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8012         * doc/gpl-3.0.texi: Revert copyright year update.
8013         * doc/lgpl-3.0.texi: Likewise.
8014
8015 2009-12-29  Jim Meyering  <meyering@redhat.com>
8016
8017         update nearly all FSF copyright year lists to include 2009
8018         The files named by the following are exempted:
8019             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8020               test -f "$dst" && { echo "$dst"; continue; }
8021               test -d "$dst" || continue
8022               echo "$dst"/$(basename "$src")
8023             done > exempt
8024             git ls-files tests/unictype >> exempt
8025         In the remaining files, convert to all-interval notation if
8026         - there is already at least one year interval like 2000-2003
8027         - the file is maintained by me
8028         - the file is in lib/uni*/, where that style already prevails
8029         Otherwise, use update-copyright's default.
8030
8031 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8032         and Eric Blake  <ebb9@byu.net>
8033
8034         tests: don't require debug system() to pass
8035         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8036         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8037         * tests/test-unlink.h (test_unlink_func): Likewise.
8038         * tests/test-fstatat.c (main): ...into callers.
8039         * tests/test-lstat.c (main): Likewise.
8040         * tests/test-rmdir.c (main): Likewise.
8041         * tests/test-unlink.c (main): Likewise.
8042         * tests/test-unlinkat.c (main): Likewise.
8043         * tests/test-areadlink-with-size.c (main): Don't require a
8044         debug-only system call to pass, aiding cross-testing to mingw.
8045         * tests/test-areadlink.c (main): Likewise.
8046         * tests/test-areadlinkat-with-size.c (main): Likewise.
8047         * tests/test-areadlinkat.c (main): Likewise.
8048         * tests/test-canonicalize-lgpl.c (main): Likewise.
8049         * tests/test-canonicalize.c (main): Likewise.
8050         * tests/test-chown.c (main): Likewise.
8051         * tests/test-fchownat.c (main): Likewise.
8052         * tests/test-lchown.c (main): Likewise.
8053         * tests/test-fdutimensat.c (main): Likewise.
8054         * tests/test-futimens.c (main): Likewise.
8055         * tests/test-link.c (main): Likewise.
8056         * tests/test-linkat.c (main): Likewise.
8057         * tests/test-mkdir.c (main): Likewise.
8058         * tests/test-mkdirat.c (main): Likewise.
8059         * tests/test-mkfifo.c (main): Likewise.
8060         * tests/test-mkfifoat.c (main): Likewise.
8061         * tests/test-mknod.c (main): Likewise.
8062         * tests/test-readlink.c (main): Likewise.
8063         * tests/test-remove.c (main): Likewise.
8064         * tests/test-rename.c (main): Likewise.
8065         * tests/test-renameat.c (main): Likewise.
8066         * tests/test-symlink.c (main): Likewise.
8067         * tests/test-symlinkat.c (main): Likewise.
8068         * tests/test-utimens.c (main): Likewise.
8069         * tests/test-utimensat.c (main): Likewise.
8070
8071 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8072
8073         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8074         on $(UNUSED_PARAMETER_H) to avoid build failure.
8075
8076 2009-12-28  Jim Meyering  <meyering@redhat.com>
8077
8078         update-copyright: you may specify a max. line length other than 72
8079         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8080
8081         maint: use consistent FSF copyright line syntax
8082         * lib/posixtm.c: Add missing comma in FSF copyright line.
8083         * lib/posixtm.h: Likewise.
8084         * lib/getugroups.c: Add missing ", Inc.".
8085
8086         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8087         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8088         FSF copyright line.  Remove trailing blanks.
8089
8090 2009-12-28  Eric Blake  <ebb9@byu.net>
8091
8092         test-dup2: reduce dependencies
8093         * modules/cloexec (Configure.ac): Set witness.
8094         * modules/dup2-tests (Depends-on): Drop cloexec.
8095         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8096         not present.
8097         Suggested by Bruno Haible.
8098
8099 2009-12-26  Bruno Haible  <bruno@clisp.org>
8100
8101         Remove an unneeded dependency.
8102         * modules/fseterr (Depends-on): Remove dup2.
8103
8104 2009-12-26  Eric Blake  <ebb9@byu.net>
8105
8106         tests: use macros.h in more places
8107         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8108         (ASSERT_STREAM): Provide default of stderr.
8109         * tests/test-dirent-safer.c: Include macros.h, using alternate
8110         stream for assertions.
8111         * tests/test-dup-safer.c: Likewise.
8112         * tests/test-freopen-safer.c: Likewise.
8113         * tests/test-getopt.c: Likewise.
8114         * tests/test-openat-safer.c: Likewise.
8115         * tests/test-pipe.c: Likewise.
8116         * tests/test-popen-safer.c: Likewise.
8117         * modules/dirent-safer-tests (Files): Include macros.h.
8118         * modules/unistd-safer-tests (Files): Likewise.
8119         * modules/freopen-safer-tests (Files): Likewise.
8120         * modules/getopt-posix-tests (Files): Likewise.
8121         * modules/openat-safer-tests (Files): Likewise.
8122         * modules/pipe-tests (Files): Likewise.
8123
8124 2009-12-26  Bruno Haible  <bruno@clisp.org>
8125
8126         javacomp: Portability fix.
8127         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8128         that it also works on Solaris.
8129
8130 2009-12-26  Bruno Haible  <bruno@clisp.org>
8131
8132         localename: Fix storage allocation of gl_locale_name_thread's result.
8133         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8134         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8135         all platforms that have 'uselocale'.
8136         (gl_locale_name_thread_unsafe): New function, extracted from
8137         gl_locale_name_thread.
8138         (gl_locale_name_thread): Call struniq on all platforms that have
8139         'uselocale'.
8140         * tests/test-localename.c (test_locale_name_thread): Check that the
8141         resulting strings are permanently allocated.
8142         * modules/localename-tests (Depends-on): Add strdup.
8143
8144 2009-12-26  Bruno Haible  <bruno@clisp.org>
8145
8146         * tests/test-localename.c (categories): Fill in the strings.
8147
8148 2009-12-26  Jim Meyering  <meyering@redhat.com>
8149
8150         isdir: complete the removal of m4/isdir.m4
8151         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8152
8153         isdir: clean up, since at least grep still uses it
8154         * lib/isdir.c: Include "isdir.h".
8155         (S_ISDIR): Remove now-unneeded definition.
8156         * modules/isdir (Files): Add lib/isdir.h.
8157         * lib/isdir.h: New file, with declaration.
8158         * m4/isdir.m4: Remove file -- unneeded.
8159
8160 2009-12-25  Bruno Haible  <bruno@clisp.org>
8161
8162         selinux-h: Make generated .h files standalone.
8163         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8164         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8165         * lib/se-selinux.in.h: Likewise.
8166         * modules/selinux-h (Depends-on): Add unused-parameter.
8167         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8168         selinux/selinux.h and selinux/context.h.
8169         Suggested by Eric Blake.
8170
8171 2009-12-25  Bruno Haible  <bruno@clisp.org>
8172
8173         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8174         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8175         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8176         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8177         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8178
8179 2009-12-24  Bruno Haible  <bruno@clisp.org>
8180
8181         openat: Fix warning.
8182         * lib/openat-proc.c: Include <unistd.h>.
8183
8184 2009-12-24  Bruno Haible  <bruno@clisp.org>
8185
8186         New module 'unused-parameter'.
8187         * build-aux/unused-parameter.h: New file, extracted from earlier
8188         gnulib-common.m4.
8189         * modules/unused-parameter: New file.
8190         * lib/unistr.h: Include unused-parameter.h.
8191         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8192         _GL_UNUSED.
8193         * modules/unistr/base (Depends-on): Add unused-parameter.
8194
8195 2009-12-24  Bruno Haible  <bruno@clisp.org>
8196
8197         Add missing dependencies to 'extensions' module.
8198         * m4/extensions.m4: Add comment.
8199         * modules/accept4 (Depends-on): Add extensions.
8200         * modules/dup3 (Depends-on): Likewise.
8201         * modules/fcntl (Depends-on): Likewise.
8202         * modules/futimens (Depends-on): Likewise.
8203         * modules/mknod (Depends-on): Likewise.
8204         * modules/pipe2 (Depends-on): Likewise.
8205         * modules/stat-time (Depends-on): Likewise.
8206         * modules/strcasestr-simple (Depends-on): Likewise.
8207         * modules/strsignal (Depends-on): Likewise.
8208         * modules/utimensat (Depends-on): Likewise.
8209         * modules/localcharset (Depends-on): Likewise. Needed because of
8210         gl_FCNTL_O_FLAGS.
8211         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8212         AC_TYPE_MBSTATE_T.
8213         * modules/wcsnrtombs (Depends-on): Likewise.
8214         * modules/wcsrtombs (Depends-on): Likewise.
8215
8216 2009-12-24  Bruno Haible  <bruno@clisp.org>
8217
8218         binary-io: Avoid gcc warning due to SET_BINARY.
8219         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8220         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8221
8222 2009-12-24  Bruno Haible  <bruno@clisp.org>
8223
8224         Avoid future namespace pollution on glibc systems.
8225         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8226         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8227         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8228         glibc systems.
8229
8230 2009-12-24  Bruno Haible  <bruno@clisp.org>
8231
8232         Refactor common macros used in tests.
8233         * tests/macros.h: New file.
8234         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8235         and/or <stdlib.h>, if appropriate.
8236         (ASSERT, SIZEOF): Remove macros.
8237         * tests/test-areadlink-with-size.c: Likewise.
8238         * tests/test-areadlinkat.c: Likewise.
8239         * tests/test-areadlinkat-with-size.c: Likewise.
8240         * tests/test-argmatch.c: Likewise.
8241         * tests/test-argv-iter.c: Likewise.
8242         * tests/test-array-mergesort.c: Likewise.
8243         * tests/test-array_list.c: Likewise.
8244         * tests/test-array_oset.c: Likewise.
8245         * tests/test-avltree_list.c: Likewise.
8246         * tests/test-avltree_oset.c: Likewise.
8247         * tests/test-avltreehash_list.c: Likewise.
8248         * tests/test-base64.c: Likewise.
8249         * tests/test-binary-io.c: Likewise.
8250         * tests/test-bitrotate.c: Likewise.
8251         * tests/test-btowc.c: Likewise.
8252         * tests/test-byteswap.c: Likewise.
8253         * tests/test-c-ctype.c: Likewise.
8254         * tests/test-c-stack.c: Likewise.
8255         * tests/test-c-strcasecmp.c: Likewise.
8256         * tests/test-c-strcasestr.c: Likewise.
8257         * tests/test-c-strncasecmp.c: Likewise.
8258         * tests/test-c-strstr.c: Likewise.
8259         * tests/test-canonicalize-lgpl.c: Likewise.
8260         * tests/test-canonicalize.c: Likewise.
8261         * tests/test-carray_list.c: Likewise.
8262         * tests/test-ceilf1.c: Likewise.
8263         * tests/test-ceilf2.c: Likewise.
8264         * tests/test-ceill.c: Likewise.
8265         * tests/test-chown.c: Likewise.
8266         * tests/test-cloexec.c: Likewise.
8267         * tests/test-copy-acl.c: Likewise.
8268         * tests/test-copy-file.c: Likewise.
8269         * tests/test-count-one-bits.c: Likewise.
8270         * tests/test-dprintf-posix.c: Likewise.
8271         * tests/test-dup2.c: Likewise.
8272         * tests/test-dup3.c: Likewise.
8273         * tests/test-duplocale.c: Likewise.
8274         * tests/test-fbufmode.c: Likewise.
8275         * tests/test-fchdir.c: Likewise.
8276         * tests/test-fchownat.c: Likewise.
8277         * tests/test-fcntl-safer.c: Likewise.
8278         * tests/test-fcntl.c: Likewise.
8279         * tests/test-fdopendir.c: Likewise.
8280         * tests/test-fdutimensat.c: Likewise.
8281         * tests/test-fflush2.c: Likewise.
8282         * tests/test-file-has-acl.c: Likewise.
8283         * tests/test-filevercmp.c: Likewise.
8284         * tests/test-flock.c: Likewise.
8285         * tests/test-floorf1.c: Likewise.
8286         * tests/test-floorf2.c: Likewise.
8287         * tests/test-floorl.c: Likewise.
8288         * tests/test-fnmatch.c: Likewise.
8289         * tests/test-fopen.h: Likewise.
8290         * tests/test-fpending.c: Likewise.
8291         * tests/test-fprintf-posix.c: Likewise.
8292         * tests/test-fpurge.c: Likewise.
8293         * tests/test-freadable.c: Likewise.
8294         * tests/test-freadahead.c: Likewise.
8295         * tests/test-freading.c: Likewise.
8296         * tests/test-freadptr.c: Likewise.
8297         * tests/test-freadptr2.c: Likewise.
8298         * tests/test-freadseek.c: Likewise.
8299         * tests/test-freopen.c: Likewise.
8300         * tests/test-frexp.c: Likewise.
8301         * tests/test-frexpl.c: Likewise.
8302         * tests/test-fseek.c: Likewise.
8303         * tests/test-fseeko.c: Likewise.
8304         * tests/test-fstatat.c: Likewise.
8305         * tests/test-fstrcmp.c: Likewise.
8306         * tests/test-fsync.c: Likewise.
8307         * tests/test-ftell.c: Likewise.
8308         * tests/test-ftello.c: Likewise.
8309         * tests/test-func.c: Likewise.
8310         * tests/test-futimens.c: Likewise.
8311         * tests/test-fwritable.c: Likewise.
8312         * tests/test-fwriting.c: Likewise.
8313         * tests/test-getcwd.c: Likewise.
8314         * tests/test-getdate.c: Likewise.
8315         * tests/test-getdelim.c: Likewise.
8316         * tests/test-getdtablesize.c: Likewise.
8317         * tests/test-getgroups.c: Likewise.
8318         * tests/test-getline.c: Likewise.
8319         * tests/test-getndelim2.c: Likewise.
8320         * tests/test-glob.c: Likewise.
8321         * tests/test-hash.c: Likewise.
8322         * tests/test-i-ring.c: Likewise.
8323         * tests/test-iconv-utf.c: Likewise.
8324         * tests/test-iconv.c: Likewise.
8325         * tests/test-idpriv-drop.c: Likewise.
8326         * tests/test-idpriv-droptemp.c: Likewise.
8327         * tests/test-inet_ntop.c: Likewise.
8328         * tests/test-inet_pton.c: Likewise.
8329         * tests/test-isblank.c: Likewise.
8330         * tests/test-isfinite.c: Likewise.
8331         * tests/test-isinf.c: Likewise.
8332         * tests/test-isnan.c: Likewise.
8333         * tests/test-isnand.h: Likewise.
8334         * tests/test-isnanf.h: Likewise.
8335         * tests/test-isnanl.h: Likewise.
8336         * tests/test-lchown.c: Likewise.
8337         * tests/test-ldexpl.c: Likewise.
8338         * tests/test-link.c: Likewise.
8339         * tests/test-linkat.c: Likewise.
8340         * tests/test-linked_list.c: Likewise.
8341         * tests/test-linkedhash_list.c: Likewise.
8342         * tests/test-localename.c: Likewise.
8343         * tests/test-lseek.c: Likewise.
8344         * tests/test-lstat.c: Likewise.
8345         * tests/test-mbmemcasecmp.c: Likewise.
8346         * tests/test-mbmemcasecoll.c: Likewise.
8347         * tests/test-mbrtowc.c: Likewise.
8348         * tests/test-mbscasecmp.c: Likewise.
8349         * tests/test-mbscasestr1.c: Likewise.
8350         * tests/test-mbscasestr2.c: Likewise.
8351         * tests/test-mbscasestr3.c: Likewise.
8352         * tests/test-mbscasestr4.c: Likewise.
8353         * tests/test-mbschr.c: Likewise.
8354         * tests/test-mbscspn.c: Likewise.
8355         * tests/test-mbsinit.c: Likewise.
8356         * tests/test-mbsncasecmp.c: Likewise.
8357         * tests/test-mbsnrtowcs.c: Likewise.
8358         * tests/test-mbspbrk.c: Likewise.
8359         * tests/test-mbspcasecmp.c: Likewise.
8360         * tests/test-mbsrchr.c: Likewise.
8361         * tests/test-mbsrtowcs.c: Likewise.
8362         * tests/test-mbsspn.c: Likewise.
8363         * tests/test-mbsstr1.c: Likewise.
8364         * tests/test-mbsstr2.c: Likewise.
8365         * tests/test-mbsstr3.c: Likewise.
8366         * tests/test-memchr.c: Likewise.
8367         * tests/test-memchr2.c: Likewise.
8368         * tests/test-memcmp.c: Likewise.
8369         * tests/test-memmem.c: Likewise.
8370         * tests/test-memrchr.c: Likewise.
8371         * tests/test-mkdir.c: Likewise.
8372         * tests/test-mkdirat.c: Likewise.
8373         * tests/test-mkfifo.c: Likewise.
8374         * tests/test-mkfifoat.c: Likewise.
8375         * tests/test-mknod.c: Likewise.
8376         * tests/test-nanosleep.c: Likewise.
8377         * tests/test-nl_langinfo.c: Likewise.
8378         * tests/test-obstack-printf.c: Likewise.
8379         * tests/test-open.c: Likewise.
8380         * tests/test-openat.c: Likewise.
8381         * tests/test-pipe-filter-gi1.c: Likewise.
8382         * tests/test-pipe-filter-gi2-main.c: Likewise.
8383         * tests/test-pipe-filter-ii1.c: Likewise.
8384         * tests/test-pipe-filter-ii2-main.c: Likewise.
8385         * tests/test-pipe2.c: Likewise.
8386         * tests/test-popen.h: Likewise.
8387         * tests/test-posixtm.c: Likewise.
8388         * tests/test-pread.c: Likewise.
8389         * tests/test-printf-frexp.c: Likewise.
8390         * tests/test-printf-frexpl.c: Likewise.
8391         * tests/test-printf-posix.c: Likewise.
8392         * tests/test-priv-set.c: Likewise.
8393         * tests/test-quotearg.c: Likewise.
8394         * tests/test-random_r.c: Likewise.
8395         * tests/test-rawmemchr.c: Likewise.
8396         * tests/test-rbtree_list.c: Likewise.
8397         * tests/test-rbtree_oset.c: Likewise.
8398         * tests/test-rbtreehash_list.c: Likewise.
8399         * tests/test-readlink.c: Likewise.
8400         * tests/test-remove.c: Likewise.
8401         * tests/test-rename.c: Likewise.
8402         * tests/test-renameat.c: Likewise.
8403         * tests/test-rmdir.c: Likewise.
8404         * tests/test-round1.c: Likewise.
8405         * tests/test-roundf1.c: Likewise.
8406         * tests/test-roundl.c: Likewise.
8407         * tests/test-safe-alloc.c: Likewise.
8408         * tests/test-sameacls.c: Likewise.
8409         * tests/test-set-mode-acl.c: Likewise.
8410         * tests/test-setenv.c: Likewise.
8411         * tests/test-sigaction.c: Likewise.
8412         * tests/test-signbit.c: Likewise.
8413         * tests/test-sleep.c: Likewise.
8414         * tests/test-snprintf-posix.c: Likewise.
8415         * tests/test-snprintf.c: Likewise.
8416         * tests/test-sprintf-posix.c: Likewise.
8417         * tests/test-stat-time.c: Likewise.
8418         * tests/test-stat.c: Likewise.
8419         * tests/test-strcasestr.c: Likewise.
8420         * tests/test-strchrnul.c: Likewise.
8421         * tests/test-strerror.c: Likewise.
8422         * tests/test-striconv.c: Likewise.
8423         * tests/test-striconveh.c: Likewise.
8424         * tests/test-striconveha.c: Likewise.
8425         * tests/test-strsignal.c: Likewise.
8426         * tests/test-strstr.c: Likewise.
8427         * tests/test-strtod.c: Likewise.
8428         * tests/test-strverscmp.c: Likewise.
8429         * tests/test-symlink.c: Likewise.
8430         * tests/test-symlinkat.c: Likewise.
8431         * tests/test-trunc1.c: Likewise.
8432         * tests/test-trunc2.c: Likewise.
8433         * tests/test-truncf1.c: Likewise.
8434         * tests/test-truncf2.c: Likewise.
8435         * tests/test-truncl.c: Likewise.
8436         * tests/test-uname.c: Likewise.
8437         * tests/test-unlink.c: Likewise.
8438         * tests/test-unlinkat.c: Likewise.
8439         * tests/test-unsetenv.c: Likewise.
8440         * tests/test-usleep.c: Likewise.
8441         * tests/test-utimens.c: Likewise.
8442         * tests/test-utimensat.c: Likewise.
8443         * tests/test-vasnprintf-posix.c: Likewise.
8444         * tests/test-vasnprintf-posix2.c: Likewise.
8445         * tests/test-vasnprintf.c: Likewise.
8446         * tests/test-vasprintf-posix.c: Likewise.
8447         * tests/test-vasprintf.c: Likewise.
8448         * tests/test-vdprintf-posix.c: Likewise.
8449         * tests/test-vfprintf-posix.c: Likewise.
8450         * tests/test-vprintf-posix.c: Likewise.
8451         * tests/test-vsnprintf-posix.c: Likewise.
8452         * tests/test-vsnprintf.c: Likewise.
8453         * tests/test-vsprintf-posix.c: Likewise.
8454         * tests/test-wcrtomb.c: Likewise.
8455         * tests/test-wcsnrtombs.c: Likewise.
8456         * tests/test-wcsrtombs.c: Likewise.
8457         * tests/test-wctype.c: Likewise.
8458         * tests/test-wcwidth.c: Likewise.
8459         * tests/test-xfprintf-posix.c: Likewise.
8460         * tests/test-xmemdup0.c: Likewise.
8461         * tests/test-xprintf-posix.c: Likewise.
8462         * tests/test-xvasprintf.c: Likewise.
8463         * tests/unicase/test-locale-language.c: Likewise.
8464         * tests/unicase/test-mapping-part1.h: Likewise.
8465         * tests/unicase/test-predicate-part1.h: Likewise.
8466         * tests/unicase/test-u8-casecmp.c: Likewise.
8467         * tests/unicase/test-u8-casecoll.c: Likewise.
8468         * tests/unicase/test-u8-casefold.c: Likewise.
8469         * tests/unicase/test-u8-is-cased.c: Likewise.
8470         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8471         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8472         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8473         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8474         * tests/unicase/test-u8-tolower.c: Likewise.
8475         * tests/unicase/test-u8-totitle.c: Likewise.
8476         * tests/unicase/test-u8-toupper.c: Likewise.
8477         * tests/unicase/test-u16-casecmp.c: Likewise.
8478         * tests/unicase/test-u16-casecoll.c: Likewise.
8479         * tests/unicase/test-u16-casefold.c: Likewise.
8480         * tests/unicase/test-u16-is-cased.c: Likewise.
8481         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8482         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8483         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8484         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8485         * tests/unicase/test-u16-tolower.c: Likewise.
8486         * tests/unicase/test-u16-totitle.c: Likewise.
8487         * tests/unicase/test-u16-toupper.c: Likewise.
8488         * tests/unicase/test-u32-casecmp.c: Likewise.
8489         * tests/unicase/test-u32-casecoll.c: Likewise.
8490         * tests/unicase/test-u32-casefold.c: Likewise.
8491         * tests/unicase/test-u32-is-cased.c: Likewise.
8492         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8493         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8494         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8495         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8496         * tests/unicase/test-u32-tolower.c: Likewise.
8497         * tests/unicase/test-u32-totitle.c: Likewise.
8498         * tests/unicase/test-u32-toupper.c: Likewise.
8499         * tests/unicase/test-ulc-casecmp.c: Likewise.
8500         * tests/unicase/test-ulc-casecoll.c: Likewise.
8501         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8502         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8503         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8504         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8505         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8506         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8507         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8508         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8509         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8510         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8511         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8512         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8513         * tests/unictype/test-bidi_byname.c: Likewise.
8514         * tests/unictype/test-bidi_name.c: Likewise.
8515         * tests/unictype/test-bidi_of.c: Likewise.
8516         * tests/unictype/test-bidi_test.c: Likewise.
8517         * tests/unictype/test-block_list.c: Likewise.
8518         * tests/unictype/test-block_of.c: Likewise.
8519         * tests/unictype/test-block_test.c: Likewise.
8520         * tests/unictype/test-categ_and.c: Likewise.
8521         * tests/unictype/test-categ_and_not.c: Likewise.
8522         * tests/unictype/test-categ_byname.c: Likewise.
8523         * tests/unictype/test-categ_name.c: Likewise.
8524         * tests/unictype/test-categ_none.c: Likewise.
8525         * tests/unictype/test-categ_of.c: Likewise.
8526         * tests/unictype/test-categ_or.c: Likewise.
8527         * tests/unictype/test-categ_test_withtable.c: Likewise.
8528         * tests/unictype/test-combining.c: Likewise.
8529         * tests/unictype/test-decdigit.c: Likewise.
8530         * tests/unictype/test-digit.c: Likewise.
8531         * tests/unictype/test-mirror.c: Likewise.
8532         * tests/unictype/test-numeric.c: Likewise.
8533         * tests/unictype/test-pr_byname.c: Likewise.
8534         * tests/unictype/test-pr_test.c: Likewise.
8535         * tests/unictype/test-predicate-part1.h: Likewise.
8536         * tests/unictype/test-scripts.c: Likewise.
8537         * tests/unictype/test-sy_c_ident.c: Likewise.
8538         * tests/unictype/test-sy_java_ident.c: Likewise.
8539         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8540         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8541         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8542         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8543         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8544         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8545         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8546         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8547         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8548         * tests/uninorm/test-compat-decomposition.c: Likewise.
8549         * tests/uninorm/test-composition.c: Likewise.
8550         * tests/uninorm/test-decomposing-form.c: Likewise.
8551         * tests/uninorm/test-decomposition.c: Likewise.
8552         * tests/uninorm/test-u8-nfc.c: Likewise.
8553         * tests/uninorm/test-u8-nfd.c: Likewise.
8554         * tests/uninorm/test-u8-nfkc.c: Likewise.
8555         * tests/uninorm/test-u8-nfkd.c: Likewise.
8556         * tests/uninorm/test-u8-normcmp.c: Likewise.
8557         * tests/uninorm/test-u8-normcoll.c: Likewise.
8558         * tests/uninorm/test-u16-nfc.c: Likewise.
8559         * tests/uninorm/test-u16-nfd.c: Likewise.
8560         * tests/uninorm/test-u16-nfkc.c: Likewise.
8561         * tests/uninorm/test-u16-nfkd.c: Likewise.
8562         * tests/uninorm/test-u16-normcmp.c: Likewise.
8563         * tests/uninorm/test-u16-normcoll.c: Likewise.
8564         * tests/uninorm/test-u32-nfc.c: Likewise.
8565         * tests/uninorm/test-u32-nfd.c: Likewise.
8566         * tests/uninorm/test-u32-nfkc.c: Likewise.
8567         * tests/uninorm/test-u32-nfkd.c: Likewise.
8568         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8569         * tests/uninorm/test-u32-normcmp.c: Likewise.
8570         * tests/uninorm/test-u32-normcoll.c: Likewise.
8571         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8572         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8573         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8574         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8575         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8576         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8577         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8578         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8579         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8580         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8581         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8582         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8583         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8584         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8585         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8586         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8587         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8588         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8589         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8590         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8591         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8592         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8593         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8594         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8595         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8596         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8597         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8598         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8599         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8600         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8601         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8602         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8603         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8604         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8605         * tests/uniwidth/test-u8-width.c: Likewise.
8606         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8607         * tests/uniwidth/test-u16-width.c: Likewise.
8608         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8609         * tests/uniwidth/test-u32-width.c: Likewise.
8610         * tests/uniwidth/test-uc_width.c: Likewise.
8611         * tests/uniwidth/test-uc_width2.c: Likewise.
8612         * modules/acl-tests (Files): Add tests/macros.h.
8613         * modules/areadlink-tests (Files): Likewise.
8614         * modules/areadlink-with-size-tests (Files): Likewise.
8615         * modules/areadlinkat-tests (Files): Likewise.
8616         * modules/areadlinkat-with-size-tests (Files): Likewise.
8617         * modules/argmatch-tests (Files): Likewise.
8618         * modules/argv-iter-tests (Files): Likewise.
8619         * modules/array-list-tests (Files): Likewise.
8620         * modules/array-mergesort-tests (Files): Likewise.
8621         * modules/array-oset-tests (Files): Likewise.
8622         * modules/avltree-list-tests (Files): Likewise.
8623         * modules/avltree-oset-tests (Files): Likewise.
8624         * modules/avltreehash-list-tests (Files): Likewise.
8625         * modules/base64-tests (Files): Likewise.
8626         * modules/binary-io-tests (Files): Likewise.
8627         * modules/bitrotate-tests (Files): Likewise.
8628         * modules/btowc-tests (Files): Likewise.
8629         * modules/byteswap-tests (Files): Likewise.
8630         * modules/c-ctype-tests (Files): Likewise.
8631         * modules/c-stack-tests (Files): Likewise.
8632         * modules/c-strcase-tests (Files): Likewise.
8633         * modules/c-strcasestr-tests (Files): Likewise.
8634         * modules/c-strstr-tests (Files): Likewise.
8635         * modules/canonicalize-lgpl-tests (Files): Likewise.
8636         * modules/canonicalize-tests (Files): Likewise.
8637         * modules/carray-list-tests (Files): Likewise.
8638         * modules/ceilf-tests (Files): Likewise.
8639         * modules/ceill-tests (Files): Likewise.
8640         * modules/chown-tests (Files): Likewise.
8641         * modules/cloexec-tests (Files): Likewise.
8642         * modules/copy-file-tests (Files): Likewise.
8643         * modules/count-one-bits-tests (Files): Likewise.
8644         * modules/dprintf-posix-tests (Files): Likewise.
8645         * modules/dup2-tests (Files): Likewise.
8646         * modules/dup3-tests (Files): Likewise.
8647         * modules/duplocale-tests (Files): Likewise.
8648         * modules/fbufmode-tests (Files): Likewise.
8649         * modules/fchdir-tests (Files): Likewise.
8650         * modules/fcntl-safer-tests (Files): Likewise.
8651         * modules/fcntl-tests (Files): Likewise.
8652         * modules/fdopendir-tests (Files): Likewise.
8653         * modules/fdutimensat-tests (Files): Likewise.
8654         * modules/fflush-tests (Files): Likewise.
8655         * modules/filevercmp-tests (Files): Likewise.
8656         * modules/flock-tests (Files): Likewise.
8657         * modules/floorf-tests (Files): Likewise.
8658         * modules/floorl-tests (Files): Likewise.
8659         * modules/fnmatch-tests (Files): Likewise.
8660         * modules/fopen-safer-tests (Files): Likewise.
8661         * modules/fopen-tests (Files): Likewise.
8662         * modules/fpending-tests (Files): Likewise.
8663         * modules/fprintf-posix-tests (Files): Likewise.
8664         * modules/fpurge-tests (Files): Likewise.
8665         * modules/freadable-tests (Files): Likewise.
8666         * modules/freadahead-tests (Files): Likewise.
8667         * modules/freading-tests (Files): Likewise.
8668         * modules/freadptr-tests (Files): Likewise.
8669         * modules/freadseek-tests (Files): Likewise.
8670         * modules/freopen-tests (Files): Likewise.
8671         * modules/frexp-nolibm-tests (Files): Likewise.
8672         * modules/frexp-tests (Files): Likewise.
8673         * modules/frexpl-nolibm-tests (Files): Likewise.
8674         * modules/frexpl-tests (Files): Likewise.
8675         * modules/fseek-tests (Files): Likewise.
8676         * modules/fseeko-tests (Files): Likewise.
8677         * modules/fstrcmp-tests (Files): Likewise.
8678         * modules/fsync-tests (Files): Likewise.
8679         * modules/ftell-tests (Files): Likewise.
8680         * modules/ftello-tests (Files): Likewise.
8681         * modules/func-tests (Files): Likewise.
8682         * modules/futimens-tests (Files): Likewise.
8683         * modules/fwritable-tests (Files): Likewise.
8684         * modules/fwriting-tests (Files): Likewise.
8685         * modules/getcwd-tests (Files): Likewise.
8686         * modules/getdate-tests (Files): Likewise.
8687         * modules/getdelim-tests (Files): Likewise.
8688         * modules/getdtablesize-tests (Files): Likewise.
8689         * modules/getgroups-tests (Files): Likewise.
8690         * modules/getline-tests (Files): Likewise.
8691         * modules/getndelim2-tests (Files): Likewise.
8692         * modules/glob-tests (Files): Likewise.
8693         * modules/hash-tests (Files): Likewise.
8694         * modules/i-ring-tests (Files): Likewise.
8695         * modules/iconv-tests (Files): Likewise.
8696         * modules/iconv_open-utf-tests (Files): Likewise.
8697         * modules/idpriv-drop-tests (Files): Likewise.
8698         * modules/idpriv-droptemp-tests (Files): Likewise.
8699         * modules/inet_ntop-tests (Files): Likewise.
8700         * modules/inet_pton-tests (Files): Likewise.
8701         * modules/isblank-tests (Files): Likewise.
8702         * modules/isfinite-tests (Files): Likewise.
8703         * modules/isinf-tests (Files): Likewise.
8704         * modules/isnan-tests (Files): Likewise.
8705         * modules/isnand-nolibm-tests (Files): Likewise.
8706         * modules/isnand-tests (Files): Likewise.
8707         * modules/isnanf-nolibm-tests (Files): Likewise.
8708         * modules/isnanf-tests (Files): Likewise.
8709         * modules/isnanl-nolibm-tests (Files): Likewise.
8710         * modules/isnanl-tests (Files): Likewise.
8711         * modules/lchown-tests (Files): Likewise.
8712         * modules/ldexpl-tests (Files): Likewise.
8713         * modules/link-tests (Files): Likewise.
8714         * modules/linkat-tests (Files): Likewise.
8715         * modules/linked-list-tests (Files): Likewise.
8716         * modules/linkedhash-list-tests (Files): Likewise.
8717         * modules/localename-tests (Files): Likewise.
8718         * modules/lseek-tests (Files): Likewise.
8719         * modules/lstat-tests (Files): Likewise.
8720         * modules/mbmemcasecmp-tests (Files): Likewise.
8721         * modules/mbmemcasecoll-tests (Files): Likewise.
8722         * modules/mbrtowc-tests (Files): Likewise.
8723         * modules/mbscasecmp-tests (Files): Likewise.
8724         * modules/mbscasestr-tests (Files): Likewise.
8725         * modules/mbschr-tests (Files): Likewise.
8726         * modules/mbscspn-tests (Files): Likewise.
8727         * modules/mbsinit-tests (Files): Likewise.
8728         * modules/mbsncasecmp-tests (Files): Likewise.
8729         * modules/mbsnrtowcs-tests (Files): Likewise.
8730         * modules/mbspbrk-tests (Files): Likewise.
8731         * modules/mbspcasecmp-tests (Files): Likewise.
8732         * modules/mbsrchr-tests (Files): Likewise.
8733         * modules/mbsrtowcs-tests (Files): Likewise.
8734         * modules/mbsspn-tests (Files): Likewise.
8735         * modules/mbsstr-tests (Files): Likewise.
8736         * modules/memchr-tests (Files): Likewise.
8737         * modules/memchr2-tests (Files): Likewise.
8738         * modules/memcmp-tests (Files): Likewise.
8739         * modules/memmem-tests (Files): Likewise.
8740         * modules/memrchr-tests (Files): Likewise.
8741         * modules/mkdir-tests (Files): Likewise.
8742         * modules/mkfifo-tests (Files): Likewise.
8743         * modules/mkfifoat-tests (Files): Likewise.
8744         * modules/mknod-tests (Files): Likewise.
8745         * modules/nanosleep-tests (Files): Likewise.
8746         * modules/nl_langinfo-tests (Files): Likewise.
8747         * modules/obstack-printf-tests (Files): Likewise.
8748         * modules/open-tests (Files): Likewise.
8749         * modules/openat-tests (Files): Likewise.
8750         * modules/pipe-filter-gi-tests (Files): Likewise.
8751         * modules/pipe-filter-ii-tests (Files): Likewise.
8752         * modules/pipe2-tests (Files): Likewise.
8753         * modules/popen-safer-tests (Files): Likewise.
8754         * modules/popen-tests (Files): Likewise.
8755         * modules/posixtm-tests (Files): Likewise.
8756         * modules/pread-tests (Files): Likewise.
8757         * modules/printf-frexp-tests (Files): Likewise.
8758         * modules/printf-frexpl-tests (Files): Likewise.
8759         * modules/printf-posix-tests (Files): Likewise.
8760         * modules/priv-set-tests (Files): Likewise.
8761         * modules/quotearg-tests (Files): Likewise.
8762         * modules/random_r-tests (Files): Likewise.
8763         * modules/rawmemchr-tests (Files): Likewise.
8764         * modules/rbtree-list-tests (Files): Likewise.
8765         * modules/rbtree-oset-tests (Files): Likewise.
8766         * modules/rbtreehash-list-tests (Files): Likewise.
8767         * modules/readlink-tests (Files): Likewise.
8768         * modules/remove-tests (Files): Likewise.
8769         * modules/rename-tests (Files): Likewise.
8770         * modules/renameat-tests (Files): Likewise.
8771         * modules/rmdir-tests (Files): Likewise.
8772         * modules/round-tests (Files): Likewise.
8773         * modules/roundf-tests (Files): Likewise.
8774         * modules/roundl-tests (Files): Likewise.
8775         * modules/safe-alloc-tests (Files): Likewise.
8776         * modules/setenv-tests (Files): Likewise.
8777         * modules/sigaction-tests (Files): Likewise.
8778         * modules/signbit-tests (Files): Likewise.
8779         * modules/sleep-tests (Files): Likewise.
8780         * modules/snprintf-posix-tests (Files): Likewise.
8781         * modules/snprintf-tests (Files): Likewise.
8782         * modules/sprintf-posix-tests (Files): Likewise.
8783         * modules/stat-tests (Files): Likewise.
8784         * modules/stat-time-tests (Files): Likewise.
8785         * modules/strcasestr-tests (Files): Likewise.
8786         * modules/strchrnul-tests (Files): Likewise.
8787         * modules/strerror-tests (Files): Likewise.
8788         * modules/striconv-tests (Files): Likewise.
8789         * modules/striconveh-tests (Files): Likewise.
8790         * modules/striconveha-tests (Files): Likewise.
8791         * modules/strsignal-tests (Files): Likewise.
8792         * modules/strstr-tests (Files): Likewise.
8793         * modules/strtod-tests (Files): Likewise.
8794         * modules/strverscmp-tests (Files): Likewise.
8795         * modules/symlink-tests (Files): Likewise.
8796         * modules/symlinkat-tests (Files): Likewise.
8797         * modules/trunc-tests (Files): Likewise.
8798         * modules/truncf-tests (Files): Likewise.
8799         * modules/truncl-tests (Files): Likewise.
8800         * modules/uname-tests (Files): Likewise.
8801         * modules/unicase/cased-tests (Files): Likewise.
8802         * modules/unicase/ignorable-tests (Files): Likewise.
8803         * modules/unicase/locale-language-tests (Files): Likewise.
8804         * modules/unicase/tolower-tests (Files): Likewise.
8805         * modules/unicase/totitle-tests (Files): Likewise.
8806         * modules/unicase/toupper-tests (Files): Likewise.
8807         * modules/unicase/u8-casecmp-tests (Files): Likewise.
8808         * modules/unicase/u8-casecoll-tests (Files): Likewise.
8809         * modules/unicase/u8-casefold-tests (Files): Likewise.
8810         * modules/unicase/u8-is-cased-tests (Files): Likewise.
8811         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
8812         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
8813         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
8814         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
8815         * modules/unicase/u8-tolower-tests (Files): Likewise.
8816         * modules/unicase/u8-totitle-tests (Files): Likewise.
8817         * modules/unicase/u8-toupper-tests (Files): Likewise.
8818         * modules/unicase/u16-casecmp-tests (Files): Likewise.
8819         * modules/unicase/u16-casecoll-tests (Files): Likewise.
8820         * modules/unicase/u16-casefold-tests (Files): Likewise.
8821         * modules/unicase/u16-is-cased-tests (Files): Likewise.
8822         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
8823         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
8824         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
8825         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
8826         * modules/unicase/u16-tolower-tests (Files): Likewise.
8827         * modules/unicase/u16-totitle-tests (Files): Likewise.
8828         * modules/unicase/u16-toupper-tests (Files): Likewise.
8829         * modules/unicase/u32-casecmp-tests (Files): Likewise.
8830         * modules/unicase/u32-casecoll-tests (Files): Likewise.
8831         * modules/unicase/u32-casefold-tests (Files): Likewise.
8832         * modules/unicase/u32-is-cased-tests (Files): Likewise.
8833         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
8834         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
8835         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
8836         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
8837         * modules/unicase/u32-tolower-tests (Files): Likewise.
8838         * modules/unicase/u32-totitle-tests (Files): Likewise.
8839         * modules/unicase/u32-toupper-tests (Files): Likewise.
8840         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
8841         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
8842         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
8843         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
8844         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
8845         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
8846         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
8847         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
8848         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
8849         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
8850         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
8851         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
8852         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
8853         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
8854         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
8855         * modules/unictype/bidicategory-name-tests (Files): Likewise.
8856         * modules/unictype/bidicategory-of-tests (Files): Likewise.
8857         * modules/unictype/bidicategory-test-tests (Files): Likewise.
8858         * modules/unictype/block-list-tests (Files): Likewise.
8859         * modules/unictype/block-of-tests (Files): Likewise.
8860         * modules/unictype/block-test-tests (Files): Likewise.
8861         * modules/unictype/category-C-tests (Files): Likewise.
8862         * modules/unictype/category-Cc-tests (Files): Likewise.
8863         * modules/unictype/category-Cf-tests (Files): Likewise.
8864         * modules/unictype/category-Cn-tests (Files): Likewise.
8865         * modules/unictype/category-Co-tests (Files): Likewise.
8866         * modules/unictype/category-Cs-tests (Files): Likewise.
8867         * modules/unictype/category-L-tests (Files): Likewise.
8868         * modules/unictype/category-Ll-tests (Files): Likewise.
8869         * modules/unictype/category-Lm-tests (Files): Likewise.
8870         * modules/unictype/category-Lo-tests (Files): Likewise.
8871         * modules/unictype/category-Lt-tests (Files): Likewise.
8872         * modules/unictype/category-Lu-tests (Files): Likewise.
8873         * modules/unictype/category-M-tests (Files): Likewise.
8874         * modules/unictype/category-Mc-tests (Files): Likewise.
8875         * modules/unictype/category-Me-tests (Files): Likewise.
8876         * modules/unictype/category-Mn-tests (Files): Likewise.
8877         * modules/unictype/category-N-tests (Files): Likewise.
8878         * modules/unictype/category-Nd-tests (Files): Likewise.
8879         * modules/unictype/category-Nl-tests (Files): Likewise.
8880         * modules/unictype/category-No-tests (Files): Likewise.
8881         * modules/unictype/category-P-tests (Files): Likewise.
8882         * modules/unictype/category-Pc-tests (Files): Likewise.
8883         * modules/unictype/category-Pd-tests (Files): Likewise.
8884         * modules/unictype/category-Pe-tests (Files): Likewise.
8885         * modules/unictype/category-Pf-tests (Files): Likewise.
8886         * modules/unictype/category-Pi-tests (Files): Likewise.
8887         * modules/unictype/category-Po-tests (Files): Likewise.
8888         * modules/unictype/category-Ps-tests (Files): Likewise.
8889         * modules/unictype/category-S-tests (Files): Likewise.
8890         * modules/unictype/category-Sc-tests (Files): Likewise.
8891         * modules/unictype/category-Sk-tests (Files): Likewise.
8892         * modules/unictype/category-Sm-tests (Files): Likewise.
8893         * modules/unictype/category-So-tests (Files): Likewise.
8894         * modules/unictype/category-Z-tests (Files): Likewise.
8895         * modules/unictype/category-Zl-tests (Files): Likewise.
8896         * modules/unictype/category-Zp-tests (Files): Likewise.
8897         * modules/unictype/category-Zs-tests (Files): Likewise.
8898         * modules/unictype/category-and-not-tests (Files): Likewise.
8899         * modules/unictype/category-and-tests (Files): Likewise.
8900         * modules/unictype/category-byname-tests (Files): Likewise.
8901         * modules/unictype/category-name-tests (Files): Likewise.
8902         * modules/unictype/category-none-tests (Files): Likewise.
8903         * modules/unictype/category-of-tests (Files): Likewise.
8904         * modules/unictype/category-or-tests (Files): Likewise.
8905         * modules/unictype/category-test-withtable-tests (Files): Likewise.
8906         * modules/unictype/combining-class-tests (Files): Likewise.
8907         * modules/unictype/ctype-alnum-tests (Files): Likewise.
8908         * modules/unictype/ctype-alpha-tests (Files): Likewise.
8909         * modules/unictype/ctype-blank-tests (Files): Likewise.
8910         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
8911         * modules/unictype/ctype-digit-tests (Files): Likewise.
8912         * modules/unictype/ctype-graph-tests (Files): Likewise.
8913         * modules/unictype/ctype-lower-tests (Files): Likewise.
8914         * modules/unictype/ctype-print-tests (Files): Likewise.
8915         * modules/unictype/ctype-punct-tests (Files): Likewise.
8916         * modules/unictype/ctype-space-tests (Files): Likewise.
8917         * modules/unictype/ctype-upper-tests (Files): Likewise.
8918         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
8919         * modules/unictype/decimal-digit-tests (Files): Likewise.
8920         * modules/unictype/digit-tests (Files): Likewise.
8921         * modules/unictype/mirror-tests (Files): Likewise.
8922         * modules/unictype/numeric-tests (Files): Likewise.
8923         * modules/unictype/property-alphabetic-tests (Files): Likewise.
8924         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
8925         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
8926         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
8927         Likewise.
8928         * modules/unictype/property-bidi-block-separator-tests (Files):
8929         Likewise.
8930         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
8931         Likewise.
8932         * modules/unictype/property-bidi-common-separator-tests (Files):
8933         Likewise.
8934         * modules/unictype/property-bidi-control-tests (Files): Likewise.
8935         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
8936         Likewise.
8937         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
8938         Likewise.
8939         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
8940         Likewise.
8941         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
8942         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
8943         Likewise.
8944         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
8945         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
8946         Likewise.
8947         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
8948         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
8949         * modules/unictype/property-bidi-segment-separator-tests (Files):
8950         Likewise.
8951         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
8952         * modules/unictype/property-byname-tests (Files): Likewise.
8953         * modules/unictype/property-combining-tests (Files): Likewise.
8954         * modules/unictype/property-composite-tests (Files): Likewise.
8955         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
8956         * modules/unictype/property-dash-tests (Files): Likewise.
8957         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
8958         * modules/unictype/property-default-ignorable-code-point-tests (Files):
8959         Likewise.
8960         * modules/unictype/property-deprecated-tests (Files): Likewise.
8961         * modules/unictype/property-diacritic-tests (Files): Likewise.
8962         * modules/unictype/property-extender-tests (Files): Likewise.
8963         * modules/unictype/property-format-control-tests (Files): Likewise.
8964         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
8965         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
8966         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
8967         * modules/unictype/property-hex-digit-tests (Files): Likewise.
8968         * modules/unictype/property-hyphen-tests (Files): Likewise.
8969         * modules/unictype/property-id-continue-tests (Files): Likewise.
8970         * modules/unictype/property-id-start-tests (Files): Likewise.
8971         * modules/unictype/property-ideographic-tests (Files): Likewise.
8972         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
8973         * modules/unictype/property-ids-trinary-operator-tests (Files):
8974         Likewise.
8975         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
8976         * modules/unictype/property-iso-control-tests (Files): Likewise.
8977         * modules/unictype/property-join-control-tests (Files): Likewise.
8978         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
8979         * modules/unictype/property-line-separator-tests (Files): Likewise.
8980         * modules/unictype/property-logical-order-exception-tests (Files):
8981         Likewise.
8982         * modules/unictype/property-lowercase-tests (Files): Likewise.
8983         * modules/unictype/property-math-tests (Files): Likewise.
8984         * modules/unictype/property-non-break-tests (Files): Likewise.
8985         * modules/unictype/property-not-a-character-tests (Files): Likewise.
8986         * modules/unictype/property-numeric-tests (Files): Likewise.
8987         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
8988         * modules/unictype/property-other-default-ignorable-code-point-tests
8989         (Files): Likewise.
8990         * modules/unictype/property-other-grapheme-extend-tests (Files):
8991         Likewise.
8992         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
8993         * modules/unictype/property-other-id-start-tests (Files): Likewise.
8994         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
8995         * modules/unictype/property-other-math-tests (Files): Likewise.
8996         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
8997         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
8998         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
8999         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9000         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9001         * modules/unictype/property-private-use-tests (Files): Likewise.
9002         * modules/unictype/property-punctuation-tests (Files): Likewise.
9003         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9004         * modules/unictype/property-radical-tests (Files): Likewise.
9005         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9006         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9007         * modules/unictype/property-space-tests (Files): Likewise.
9008         * modules/unictype/property-terminal-punctuation-tests (Files):
9009         Likewise.
9010         * modules/unictype/property-test-tests (Files): Likewise.
9011         * modules/unictype/property-titlecase-tests (Files): Likewise.
9012         * modules/unictype/property-unassigned-code-value-tests (Files):
9013         Likewise.
9014         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9015         * modules/unictype/property-uppercase-tests (Files): Likewise.
9016         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9017         * modules/unictype/property-white-space-tests (Files): Likewise.
9018         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9019         * modules/unictype/property-xid-start-tests (Files): Likewise.
9020         * modules/unictype/property-zero-width-tests (Files): Likewise.
9021         * modules/unictype/scripts-tests (Files): Likewise.
9022         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9023         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9024         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9025         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9026         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9027         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9028         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9029         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9030         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9031         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9032         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9033         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9034         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9035         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9036         * modules/uninorm/composition-tests (Files): Likewise.
9037         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9038         * modules/uninorm/decomposition-tests (Files): Likewise.
9039         * modules/uninorm/filter-tests (Files): Likewise.
9040         * modules/uninorm/nfc-tests (Files): Likewise.
9041         * modules/uninorm/nfd-tests (Files): Likewise.
9042         * modules/uninorm/nfkc-tests (Files): Likewise.
9043         * modules/uninorm/nfkd-tests (Files): Likewise.
9044         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9045         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9046         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9047         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9048         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9049         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9050         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9051         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9052         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9053         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9054         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9055         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9056         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9057         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9058         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9059         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9060         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9061         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9062         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9063         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9064         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9065         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9066         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9067         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9068         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9069         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9070         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9071         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9072         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9073         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9074         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9075         * modules/uniwidth/u8-width-tests (Files): Likewise.
9076         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9077         * modules/uniwidth/u16-width-tests (Files): Likewise.
9078         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9079         * modules/uniwidth/u32-width-tests (Files): Likewise.
9080         * modules/uniwidth/width-tests (Files): Likewise.
9081         * modules/unlink-tests (Files): Likewise.
9082         * modules/unsetenv-tests (Files): Likewise.
9083         * modules/usleep-tests (Files): Likewise.
9084         * modules/utimens-tests (Files): Likewise.
9085         * modules/utimensat-tests (Files): Likewise.
9086         * modules/vasnprintf-posix-tests (Files): Likewise.
9087         * modules/vasnprintf-tests (Files): Likewise.
9088         * modules/vasprintf-posix-tests (Files): Likewise.
9089         * modules/vasprintf-tests (Files): Likewise.
9090         * modules/vdprintf-posix-tests (Files): Likewise.
9091         * modules/vfprintf-posix-tests (Files): Likewise.
9092         * modules/vprintf-posix-tests (Files): Likewise.
9093         * modules/vsnprintf-posix-tests (Files): Likewise.
9094         * modules/vsnprintf-tests (Files): Likewise.
9095         * modules/vsprintf-posix-tests (Files): Likewise.
9096         * modules/wcrtomb-tests (Files): Likewise.
9097         * modules/wcsnrtombs-tests (Files): Likewise.
9098         * modules/wcsrtombs-tests (Files): Likewise.
9099         * modules/wctype-tests (Files): Likewise.
9100         * modules/wcwidth-tests (Files): Likewise.
9101         * modules/xmemdup0-tests (Files): Likewise.
9102         * modules/xprintf-posix-tests (Files): Likewise.
9103         * modules/xvasprintf-tests (Files): Likewise.
9104
9105 2009-12-24  Eric Blake  <ebb9@byu.net>
9106
9107         test-nanosleep: fix typo
9108         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9109         patch.
9110         Reported by Bruno Haible.
9111
9112 2009-12-24  Bruno Haible  <bruno@clisp.org>
9113
9114         Reduce namespace pollution on glibc systems.
9115         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9116         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9117         systems.
9118         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9119         <getopt.h> on glibc systems.
9120         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9121         systems.
9122         * lib/fcntl.c: Include <unistd.h> here instead.
9123
9124 2009-12-24  Bruno Haible  <bruno@clisp.org>
9125
9126         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9127
9128 2009-12-24  Eric Blake  <ebb9@byu.net>
9129
9130         tests: add signature checks
9131         * tests/signature.h (SIGNATURE_CHECK): New file.
9132         * modules/atexit-tests (Files): Use it.
9133         * modules/btowc-tests (Files): Likewise.
9134         * modules/canonicalize-lgpl-tests (Files): Likewise.
9135         * modules/ceilf-tests (Files): Likewise.
9136         * modules/ceill-tests (Files): Likewise.
9137         * modules/chown-tests (Files): Likewise.
9138         * modules/dprintf-posix-tests (Files): Likewise.
9139         * modules/dup2-tests (Files): Likewise.
9140         * modules/dup3-tests (Files): Likewise.
9141         * modules/duplocale-tests (Files): Likewise.
9142         * modules/fchdir-tests (Files): Likewise.
9143         * modules/fcntl-tests (Files): Likewise.
9144         * modules/fdopendir-tests (Files): Likewise.
9145         * modules/fflush-tests (Files): Likewise.
9146         * modules/flock-tests (Files): Likewise.
9147         * modules/floorf-tests (Files): Likewise.
9148         * modules/floorl-tests (Files): Likewise.
9149         * modules/fnmatch-tests (Files): Likewise.
9150         * modules/fopen-tests (Files): Likewise.
9151         * modules/fprintf-posix-tests (Files): Likewise.
9152         * modules/freopen-tests (Files): Likewise.
9153         * modules/frexp-nolibm-tests (Files): Likewise.
9154         * modules/frexp-tests (Files): Likewise.
9155         * modules/frexpl-nolibm-tests (Files): Likewise.
9156         * modules/frexpl-tests (Files): Likewise.
9157         * modules/fseek-tests (Files): Likewise.
9158         * modules/fseeko-tests (Files): Likewise.
9159         * modules/fsync-tests (Files): Likewise.
9160         * modules/ftell-tests (Files): Likewise.
9161         * modules/ftello-tests (Files): Likewise.
9162         * modules/futimens-tests (Files): Likewise.
9163         * modules/getaddrinfo-tests (Files): Likewise.
9164         * modules/getcwd-tests (Files): Likewise.
9165         * modules/getdelim-tests (Files): Likewise.
9166         * modules/getdtablesize-tests (Files): Likewise.
9167         * modules/getgroups-tests (Files): Likewise.
9168         * modules/gethostname-tests (Files): Likewise.
9169         * modules/getline-tests (Files): Likewise.
9170         * modules/getopt-posix-tests (Files): Likewise.
9171         * modules/gettimeofday-tests (Files): Likewise.
9172         * modules/glob-tests (Files): Likewise.
9173         * modules/iconv-tests (Files): Likewise.
9174         * modules/inet_ntop-tests (Files): Likewise.
9175         * modules/inet_pton-tests (Files): Likewise.
9176         * modules/isblank-tests (Files): Likewise.
9177         * modules/lchown-tests (Files): Likewise.
9178         * modules/ldexpl-tests (Files): Likewise.
9179         * modules/link-tests (Files): Likewise.
9180         * modules/linkat-tests (Files): Likewise.
9181         * modules/lseek-tests (Files): Likewise.
9182         * modules/lstat-tests (Files): Likewise.
9183         * modules/mbrtowc-tests (Files): Likewise.
9184         * modules/mbsinit-tests (Files): Likewise.
9185         * modules/mbsnrtowcs-tests (Files): Likewise.
9186         * modules/mbsrtowcs-tests (Files): Likewise.
9187         * modules/memchr-tests (Files): Likewise.
9188         * modules/memcmp-tests (Files): Likewise.
9189         * modules/memmem-tests (Files): Likewise.
9190         * modules/memrchr-tests (Files): Likewise.
9191         * modules/mkdir-tests (Files): Likewise.
9192         * modules/mkfifo-tests (Files): Likewise.
9193         * modules/mkfifoat-tests (Files): Likewise.
9194         * modules/mknod-tests (Files): Likewise.
9195         * modules/nanosleep-tests (Files): Likewise.
9196         * modules/nl_langinfo-tests (Files): Likewise.
9197         * modules/obstack-printf-tests (Files): Likewise.
9198         * modules/open-tests (Files): Likewise.
9199         * modules/openat-tests (Files): Likewise.
9200         * modules/perror-tests (Files): Likewise.
9201         * modules/pipe2-tests (Files): Likewise.
9202         * modules/poll-tests (Files): Likewise.
9203         * modules/popen-tests (Files): Likewise.
9204         * modules/posix_spawn-tests (Files): Likewise.
9205         * modules/posix_spawnp-tests (Files): Likewise.
9206         * modules/pread-tests (Files): Likewise.
9207         * modules/printf-posix-tests (Files): Likewise.
9208         * modules/pty-tests (Files): Likewise.
9209         * modules/random_r-tests (Files): Likewise.
9210         * modules/rawmemchr-tests (Files): Likewise.
9211         * modules/readlink-tests (Files): Likewise.
9212         * modules/remove-tests (Files): Likewise.
9213         * modules/rename-tests (Files): Likewise.
9214         * modules/renameat-tests (Files): Likewise.
9215         * modules/rmdir-tests (Files): Likewise.
9216         * modules/round-tests (Files): Likewise.
9217         * modules/roundf-tests (Files): Likewise.
9218         * modules/roundl-tests (Files): Likewise.
9219         * modules/select-tests (Files): Likewise.
9220         * modules/setenv-tests (Files): Likewise.
9221         * modules/sigaction-tests (Files): Likewise.
9222         * modules/sleep-tests (Files): Likewise.
9223         * modules/snprintf-posix-tests (Files): Likewise.
9224         * modules/snprintf-tests (Files): Likewise.
9225         * modules/sprintf-posix-tests (Files): Likewise.
9226         * modules/stat-tests (Files): Likewise.
9227         * modules/strcasestr-tests (Files): Likewise.
9228         * modules/strchrnul-tests (Files): Likewise.
9229         * modules/strerror-tests (Files): Likewise.
9230         * modules/strsignal-tests (Files): Likewise.
9231         * modules/strstr-tests (Files): Likewise.
9232         * modules/strtod-tests (Files): Likewise.
9233         * modules/strverscmp-tests (Files): Likewise.
9234         * modules/symlink-tests (Files): Likewise.
9235         * modules/symlinkat-tests (Files): Likewise.
9236         * modules/times-tests (Files): Likewise.
9237         * modules/trunc-tests (Files): Likewise.
9238         * modules/truncf-tests (Files): Likewise.
9239         * modules/truncl-tests (Files): Likewise.
9240         * modules/tsearch-tests (Files): Likewise.
9241         * modules/uname-tests (Files): Likewise.
9242         * modules/unlink-tests (Files): Likewise.
9243         * modules/unsetenv-tests (Files): Likewise.
9244         * modules/usleep-tests (Files): Likewise.
9245         * modules/utimensat-tests (Files): Likewise.
9246         * modules/vasprintf-tests (Files): Likewise.
9247         * modules/vdprintf-posix-tests (Files): Likewise.
9248         * modules/vfprintf-posix-tests (Files): Likewise.
9249         * modules/vprintf-posix-tests (Files): Likewise.
9250         * modules/vsnprintf-posix-tests (Files): Likewise.
9251         * modules/vsnprintf-tests (Files): Likewise.
9252         * modules/vsprintf-posix-tests (Files): Likewise.
9253         * modules/wcrtomb-tests (Files): Likewise.
9254         * modules/wcsnrtombs-tests (Files): Likewise.
9255         * modules/wcsrtombs-tests (Files): Likewise.
9256         * modules/wcwidth-tests (Files): Likewise.
9257         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9258         * tests/test-isinf.c (isinf): Likewise.
9259         * tests/test-isnan.c (isnan): Likewise.
9260         * tests/test-signbit.c (signbit): Likewise.
9261         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9262         declaration, either as macro or with correct signature.
9263         (select): Ensure function under test is declared with correct
9264         signature in correct header.
9265         * tests/test-atexit.c (atexit): Likewise.
9266         * tests/test-btowc.c (btowc): Likewise.
9267         * tests/test-canonicalize-lgpl.c (realpath)
9268         (canonicalize_file_name): Likewise.
9269         * tests/test-ceilf1.c (ceilf): Likewise.
9270         * tests/test-ceill.c (ceill): Likewise.
9271         * tests/test-chown.c (chown): Likewise.
9272         * tests/test-dprintf-posix.c (dprintf): Likewise.
9273         * tests/test-dup2.c (dup2): Likewise.
9274         * tests/test-dup3.c (dup3): Likewise.
9275         * tests/test-duplocale.c (duplocale): Likewise.
9276         * tests/test-fchdir.c (fchdir): Likewise.
9277         * tests/test-fchownat.c (fchownat): Likewise.
9278         * tests/test-fcntl.c (fcntl): Likewise.
9279         * tests/test-fdopendir.c (fdopendir): Likewise.
9280         * tests/test-fflush.c (fflush): Likewise.
9281         * tests/test-flock.c (flock): Likewise.
9282         * tests/test-floorf1.c (floorf): Likewise.
9283         * tests/test-floorl.c (floorl): Likewise.
9284         * tests/test-fnmatch.c (fnmatch): Likewise.
9285         * tests/test-fopen.c (fopen): Likewise.
9286         * tests/test-fprintf-posix.c (fprintf): Likewise.
9287         * tests/test-freopen.c (freopen): Likewise.
9288         * tests/test-frexp.c (frexp): Likewise.
9289         * tests/test-frexpl.c (frexpl): Likewise.
9290         * tests/test-fseek.c (fseek): Likewise.
9291         * tests/test-fseeko.c (fseeko): Likewise.
9292         * tests/test-fstatat.c (fstatat): Likewise.
9293         * tests/test-fsync.c (fsync): Likewise.
9294         * tests/test-ftell.c (ftell): Likewise.
9295         * tests/test-ftello.c (ftello): Likewise.
9296         * tests/test-futimens.c (futimens): Likewise.
9297         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9298         (gai_strerror): Likewise.
9299         * tests/test-getcwd.c (getcwd): Likewise.
9300         * tests/test-getdelim.c (getdelim): Likewise.
9301         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9302         * tests/test-getgroups.c (getgroups): Likewise.
9303         * tests/test-gethostname.c (gethostname): Likewise.
9304         * tests/test-getline.c (getline): Likewise.
9305         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9306         Likewise.
9307         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9308         * tests/test-glob.c (glob, globfree): Likewise.
9309         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9310         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9311         * tests/test-inet_pton.c (inet_pton): Likewise.
9312         * tests/test-isblank.c (isblank): Likewise.
9313         * tests/test-lchown.c (lchown): Likewise.
9314         * tests/test-ldexpl.c (ldexpl): Likewise.
9315         * tests/test-link.c (link): Likewise.
9316         * tests/test-linkat.c (linkat): Likewise.
9317         * tests/test-lseek.c (lseek): Likewise.
9318         * tests/test-lstat.c (lstat): Likewise.
9319         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9320         * tests/test-mbsinit.c (mbsinit): Likewise.
9321         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9322         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9323         * tests/test-memchr.c (memchr): Likewise.
9324         * tests/test-memcmp.c (memcmp): Likewise.
9325         * tests/test-memmem.c (memmem): Likewise.
9326         * tests/test-memrchr.c (memrchr): Likewise.
9327         * tests/test-mkdir.c (mkdir): Likewise.
9328         * tests/test-mkdirat.c (mkdirat): Likewise.
9329         * tests/test-mkfifo.c (mkfifo): Likewise.
9330         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9331         * tests/test-mknod.c (mknod): Likewise.
9332         * tests/test-nanosleep.c (nanosleep): Likewise.
9333         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9334         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9335         Likewise.
9336         * tests/test-open.c (open): Likewise.
9337         * tests/test-openat.c (openat): Likewise.
9338         * tests/test-perror.c (perror): Likewise.
9339         * tests/test-pipe2.c (pipe2): Likewise.
9340         * tests/test-poll.c (poll): Likewise.
9341         * tests/test-popen.c (popen, pclose): Likewise.
9342         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9343         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9344         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9345         (posix_spawn_file_actions_destroy)
9346         (posix_spawn_file_actions_addclose)
9347         (posix_spawn_file_actions_addopen)
9348         (posix_spawn_file_actions_adddup2): Likewise.
9349         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9350         * tests/test-pread.c (pread): Likewise.
9351         * tests/test-printf-posix.c (printf): Likewise.
9352         * tests/test-pty.c (openpty, forkpty): Likewise.
9353         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9354         (random_r): Likewise.
9355         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9356         * tests/test-readlink.c (readlink): Likewise.
9357         * tests/test-remove.c (remove): Likewise.
9358         * tests/test-rename.c (rename): Likewise.
9359         * tests/test-renameat.c (renameat): Likewise.
9360         * tests/test-rmdir.c (rmdir): Likewise.
9361         * tests/test-round1.c (round): Likewise.
9362         * tests/test-roundf1.c (roundf): Likewise.
9363         * tests/test-roundl.c (roundl): Likewise.
9364         * tests/test-setenv.c (setenv): Likewise.
9365         * tests/test-sigaction.c (sigaction): Likewise.
9366         * tests/test-sleep.c (sleep): Likewise.
9367         * tests/test-snprintf.c (snprintf): Likewise.
9368         * tests/test-sprintf-posix.c (sprintf): Likewise.
9369         * tests/test-stat.c (stat): Likewise.
9370         * tests/test-stpncpy.c (stpncpy): Likewise.
9371         * tests/test-strcasestr.c (strcasestr): Likewise.
9372         * tests/test-strchrnul.c (strchrnul): Likewise.
9373         * tests/test-strerror.c (strerror): Likewise.
9374         * tests/test-strsignal.c (strsignal): Likewise.
9375         * tests/test-strstr.c (strstr): Likewise.
9376         * tests/test-strtod.c (strtod): Likewise.
9377         * tests/test-strverscmp.c (strverscmp): Likewise.
9378         * tests/test-symlink.c (symlink): Likewise.
9379         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9380         * tests/test-times.c (times): Likewise.
9381         * tests/test-trunc1.c (trunc): Likewise.
9382         * tests/test-truncf1.c (truncf): Likewise.
9383         * tests/test-truncl.c (truncl): Likewise.
9384         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9385         Likewise.
9386         * tests/test-uname.c (uname): Likewise.
9387         * tests/test-unlink.c (unlink): Likewise.
9388         * tests/test-unlinkat.c (unlinkat): Likewise.
9389         * tests/test-unsetenv.c (unsetenv): Likewise.
9390         * tests/test-usleep.c (usleep): Likewise.
9391         * tests/test-utimensat.c (utimensat): Likewise.
9392         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9393         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9394         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9395         * tests/test-vprintf-posix.c (vprintf): Likewise.
9396         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9397         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9398         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9399         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9400         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9401         * tests/test-wcwidth.c (wcwidth): Likewise.
9402
9403         build: pull in conditional headers during GNULIB_POSIXCHECK
9404         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9405         definitions from any conditionally-included headers.
9406         * lib/stdlib.in.h (includes): Likewise.
9407         * lib/unistd.in.h (includes): Likewise.
9408
9409 2009-12-24  Bruno Haible  <bruno@clisp.org>
9410
9411         * tests/test-argv-iter.c: Include header file being tested immediately
9412         after config.h.
9413         * tests/test-base64.c: Likewise.
9414         * tests/test-flock.c: Likewise.
9415         * tests/test-fsync.c: Likewise.
9416         * tests/test-getdate.c: Likewise.
9417         * tests/test-getndelim2.c: Likewise.
9418         * tests/test-isfinite.c: Likewise.
9419         * tests/test-isinf.c: Likewise.
9420         * tests/test-strerror.c: Likewise.
9421         * tests/test-strsignal.c: Likewise.
9422
9423 2009-12-23  Eric Blake  <ebb9@byu.net>
9424
9425         unistd: work around cygwin bug
9426         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9427         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9428         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9429
9430 2009-12-23  Bruno Haible  <bruno@clisp.org>
9431
9432         localename: More tests.
9433         * tests/test-localename.c (SIZEOF): New macro.
9434         (categories): New variable.
9435         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9436         test_locale_name_default): Add test w.r.t. thread locale.
9437         (test_locale_name_thread): New function.
9438         (main): Invoke it.
9439
9440         localename: Make aware of thread locale.
9441         * lib/localename.h (gl_locale_name_thread): New declaration.
9442         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9443         behaviour with respect to thread locale.
9444         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9445         <langinfo.h>, glthread/lock.h.
9446         (SIZE_BITS): New macro.
9447         (string_hash): New function.
9448         (struct hash_node): New type.
9449         (HASH_TABLE_SIZE): New macro.
9450         (struniq_hash_table, struniq_lock): New variables.
9451         (struniq): New function.
9452         (gl_locale_name_thread): New function.
9453         (gl_locale_name): Invoke it.
9454         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9455         * modules/localename (Depends-on): Add lock.
9456         Reported by Mike Gran <spk121@yahoo.com>.
9457
9458 2009-12-23  Eric Blake  <ebb9@byu.net>
9459
9460         va-args: new module
9461         * modules/va-args: New file.
9462         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9463         * MODULES.html.sh (Core language properties): Mention it.
9464
9465         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9466         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9467         named alias for __attribute__((__unused__)).
9468         * lib/chown.c: Update client.
9469         * lib/fchmodat.c: Likewise.
9470         * lib/fts.c: Likewise.
9471         * lib/getdate.y: Likewise.
9472         * lib/getgroups.c: Likewise.
9473         * lib/getopt.c: Likewise.
9474         * lib/getugroups.c: Likewise.
9475         * lib/mkdir.c: Likewise.
9476         * lib/mkfifo.c: Likewise.
9477         * lib/mkfifoat.c: Likewise.
9478         * lib/mknod.c: Likewise.
9479         * lib/mknodat.c: Likewise.
9480         * lib/readlink.c: Likewise.
9481         * lib/se-context.in.h: Likewise.
9482         * lib/se-selinux.in.h: Likewise.
9483         * lib/sockets.c: Likewise.
9484         * lib/symlink.c: Likewise.
9485         * lib/symlinkat.c: Likewise.
9486         * lib/unicodeio.c: Likewise.
9487         * lib/unistr.h: Likewise.
9488         * tests/test-areadlink.c: Likewise.
9489         * tests/test-areadlinkat.c: Likewise.
9490         * tests/test-filenamecat.c: Likewise.
9491         * tests/test-fseeko.c: Likewise.
9492         * tests/test-ftello.c: Likewise.
9493         * tests/test-getdate.c: Likewise.
9494         * tests/test-getgroups.c: Likewise.
9495         * tests/test-gethostname.c: Likewise.
9496         * tests/test-quotearg.c: Likewise.
9497         * tests/test-version-etc.c: Likewise.
9498         * tests/test-xalloc-die.c: Likewise.
9499         * tests/test-xfprintf-posix.c: Likewise.
9500         * tests/test-xprintf-posix.c: Likewise.
9501         * tests/test-xvasprintf.c: Likewise.
9502
9503         tests: avoid compiler warnings
9504         * tests/test-fcntl.c (main): Delete unused parameters.
9505         * tests/test-freopen-safer.c (main): Likewise.
9506         * tests/test-xalloc-die.c (main): Mark unused parameters.
9507         * tests/test-fseeko.c (main): Likewise.
9508         * tests/test-ftello.c (main): Likewise.
9509         * tests/test-nanosleep.c (main): Avoid declaration warning.
9510         * tests/test-sleep.c (main): Likewise.
9511         * tests/test-unsetenv.c (main): Silence warning about string
9512         literal.
9513         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9514
9515 2009-12-23  Bruno Haible  <bruno@clisp.org>
9516
9517         * tests/test-localename.c (test_locale_name): New function, extracted
9518         from main. Also test mixed situations.
9519         (test_locale_name_posix, test_locale_name_environ,
9520         test_locale_name_default): New functions.
9521         (main): Invoke them all.
9522         * modules/localename-tests (configure.ac): Test for newlocale.
9523
9524 2009-12-23  Bruno Haible  <bruno@clisp.org>
9525
9526         unistd: Ensure getcwd gets declared before being overridden.
9527         * lib/unistd.in.h: Conditionally include <io.h>.
9528
9529 2009-12-22  Bruno Haible  <bruno@clisp.org>
9530
9531         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9532         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9533         (gl_WCHAR_H): Invoke it.
9534         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9535         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9536         Reported by Karl Berry <karl@freefriends.org>.
9537
9538 2009-12-22  Eric Blake  <ebb9@byu.net>
9539
9540         math, unistd: avoid redundant includes
9541         * lib/math.in.h (isnan): No need to re-include <math.h>.
9542         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9543
9544         getsubopt: work around cygwin bug
9545         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9546         avoid conflicting with system getsubopt.
9547         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9548         bug.
9549
9550         getopt: synchronize from glibc
9551         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9552         parameter order.  Adjust all callers.
9553         (_getopt_internal_r, main): Adjust quoting in error messages.
9554         Drop considerations for outdated POSIX 1003.2 error message.
9555         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9556         callers.
9557         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9558
9559         test-getopt: test stderr behavior
9560         * modules/getopt-posix-tests (Depends-on): Add dup2.
9561         * tests/test-getopt.c (ASSERT): Avoid stderr.
9562         (main): Move stderr to a temporary file.
9563         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9564         Instead, add parameter to inform caller if output occurred.
9565         (test_getopt): Adjust all existing tests to expect silence, and
9566         add new tests of leading ":".
9567         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9568         glibc shortcomings with leading "-:" or "+:" in optstring.
9569         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9570         Likewise.
9571         * doc/posix-functions/getopt.texi (getopt): Likewise.
9572
9573         test-getopt: enhance test
9574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9575         supports optind=0.
9576         * tests/test-getopt.c (OPTIND_MIN): Move...
9577         * tests/test-getopt.h (OPTIND_MIN): ...here.
9578         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9579         Require that optind=0 works, since modern BSD supports it in
9580         addition to optreset, and since coreutils expects it.
9581         (test_getopt_long_only): New test.
9582         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9583         glibc shortcomings with 'W;', and enforcement of optind=0.
9584         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9585         Likewise.
9586
9587 2009-12-21  Bruno Haible  <bruno@clisp.org>
9588
9589         localename: Improvements for MacOS X and Cygwin.
9590         * lib/localename.h (gl_locale_name_environ): New declaration.
9591         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9592         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9593         (gl_locale_name_posix): Invoke it.
9594         (gl_locale_name_default): Add comments. Use Windows native API also on
9595         Cygwin.
9596
9597 2009-12-21  Bruno Haible  <bruno@clisp.org>
9598
9599         Update list of Win32 locale ids.
9600         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9601         (LANG_SAMI): Renamed from LANG_SAAMI.
9602         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9603         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9604         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9605         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9606         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9607         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9608         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9609         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9610         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9611         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9612         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9613         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9614         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
9615         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
9616         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
9617         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
9618         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
9619         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
9620         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
9621         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
9622         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
9623         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
9624         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
9625         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
9626         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
9627         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
9628         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
9629         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
9630         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
9631         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
9632         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
9633         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
9634         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
9635         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
9636         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
9637         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
9638         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
9639         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
9640         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9641         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9642         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9643         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9644         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9645         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9646         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9647         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9648         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9649         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9650         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9651         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9652         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9653         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9654         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9655         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9656         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9657         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9658         Add more languages and countries for Sami, Sorbian. Add more countries
9659         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9660         for Pashto. Change country for Syriac, Tswana.
9661
9662 2009-12-21  Eric Blake  <ebb9@byu.net>
9663
9664         test-utimens: avoid spurious failure
9665         * tests/test-chown.h (nap): Factor...
9666         * tests/nap.h: ...into new file.
9667         * tests/test-lchown.h (nap): Avoid duplication.
9668         * tests/test-utimens-common.h (nap): Use shared implementation,
9669         necessary on file systems with 1-second resolution.
9670         * modules/chown-tests (Files): Include new file.
9671         * modules/fdutimensat-tests (Files): Likewise.
9672         * modules/futimens-tests (Files): Likewise.
9673         * modules/lchown-tests (Files): Likewise.
9674         * modules/openat-tests (Files): Likewise.
9675         * modules/utimens-tests (Files): Likewise.
9676         * modules/utimensat-tests (Files): Likewise.
9677
9678 2009-12-19  Eric Blake  <ebb9@byu.net>
9679
9680         futimens, utimensat: work around Linux bug
9681         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9682         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9683         * lib/utimensat.c (rpl_utimensat): Work around it.
9684         * lib/futimens.c (rpl_futimens): Adjust comment.
9685
9686         utimens: work around Linux ctime bug
9687         * lib/utimens.c (detect_ctime_bug): New helper function.
9688         (update_timespec): Differentiate between workaround needed for
9689         this bug vs. what is needed for systems that lack utimensat.
9690         (fdutimens, lutimens): Work around bug.
9691
9692         utimens: check for ctime update
9693         * tests/test-utimens-common.h (check_ctime): Define.
9694         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9695         * tests/test-futimens.h (test_futimens): Likewise.
9696         * tests/test-lutimens.h (test_lutimens): Likewise.
9697         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9698         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9699
9700 2009-12-19  Bruno Haible  <bruno@clisp.org>
9701
9702         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9703         * tests/test-dprintf-posix2.sh: New file.
9704         * tests/test-dprintf-posix2.c: New file.
9705         * modules/dprintf-posix-tests (Files): Add them.
9706         (configure.ac): Check for getrlimit and setrlimit.
9707         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9708
9709 2009-12-19  Bruno Haible  <bruno@clisp.org>
9710
9711         fprintf-posix: Check against memory leak fixed on 2009-12-15.
9712         * tests/test-fprintf-posix3.sh: New file.
9713         * tests/test-fprintf-posix3.c: New file.
9714         * modules/fprintf-posix-tests (Files): Add them.
9715         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9716
9717 2009-12-19  Eric Blake  <ebb9@byu.net>
9718
9719         dirfd: fix prototype
9720         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
9721         * lib/dirfd.c (dirfd): Likewise.
9722
9723         canonicalize: reduce memory usage
9724         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
9725         allocation to size.
9726         Reported by Solar Designer <solar@openwall.com>.
9727
9728 2009-12-19  Bruno Haible  <bruno@clisp.org>
9729
9730         New module attribute 'Applicability'.
9731         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
9732         * gnulib-tool: New option --extract-applicability.
9733         (func_usage): Document it.
9734         (sed_extract_prog): Recognize it.
9735         (func_get_applicability): New function.
9736         (func_import): Generalize handling of 'link-warning' module.
9737         * modules/link-warning (Applicability): New section.
9738         * modules/arg-nonnull (Applicability): New section.
9739         Repoted by Simon Josefsson <simon@josefsson.org>.
9740
9741 2009-12-19  Bruno Haible  <bruno@clisp.org>
9742
9743         fflush: tweak
9744         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
9745         * lib/fseeko.c (rpl_fseeko): Likewise.
9746
9747 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9748
9749         * lib/gl_list.h: Fix typo in comment.
9750
9751 2009-12-16  Eric Blake  <ebb9@byu.net>
9752
9753         fcntl: use to simplify other modules
9754         * modules/cloexec (Depends-on): Add fcntl.
9755         * modules/fchdir (Depends-on): Likewise.
9756         * modules/fd-safer-flag (Depends-on): Likewise.
9757         * modules/unistd-safer (Depends-on): Likewise.
9758         * modules/dup3 (configure.ac): Set module indicator.
9759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
9760         missing.
9761         * lib/fchdir.c (_gl_register_dup): Fix comment.
9762         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
9763         * lib/dup-safer.c (dup_safer): Likewise.
9764         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
9765         * lib/dup3.c (dup3): Likewise.
9766         * tests/test-fchdir.c (main): Enhance test.
9767         Fixes a dup_cloexec bug reported by Ondřej Vašík.
9768
9769         fcntl: port portions of fcntl to mingw
9770         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
9771         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
9772         replacement for mingw.
9773         * modules/fcntl (Description): Update.
9774         (Depends-on): Add dup2.
9775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
9776         * modules/fcntl-h (Makefile.am): Substitute it.
9777         * lib/fcntl.in.h (fcntl): Update declaration.
9778         (F_DUPFD, F_GETFD): New macros, when needed.
9779         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9780         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
9781         * tests/test-fcntl.c (check_flags, main): Enhance test for items
9782         we now guarantee.
9783
9784         fcntl: work around cygwin bug in F_DUPFD
9785         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
9786         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
9787         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
9788         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
9789         * doc/posix-functions/fcntl.texi (fcntl): Document it.
9790
9791         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
9792         * modules/fcntl (Files): List new files.
9793         (configure.ac): Run a test.
9794         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
9795         * lib/fcntl.c (rpl_fcntl): Likewise.
9796         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
9797         (gl_FCNTL_H): Always replace fcntl.h.
9798         * modules/fcntl-h (Makefile.am): Substitute witnesses.
9799         * lib/fcntl.in.h (fcntl): Declare replacement.
9800         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
9801         needed, plus a witness.
9802         * doc/posix-functions/fcntl.texi (fcntl): Document this.
9803         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9804         * tests/test-fcntl.c: New file.
9805         * modules/fcntl-tests: Likewise.
9806
9807         binary-io: avoid potential compilation warning
9808         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
9809         directives.
9810
9811         fflush: avoid compilation error on NetBSD
9812         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
9813         between off_t and fpos_t, since the latter is sometimes a struct.
9814         * lib/fseeko.c (rpl_fseeko): Likewise.
9815         Reported by Alexander Nasonov <alnsn@yandex.ru>.
9816
9817 2009-12-15  Eric Blake  <ebb9@byu.net>
9818
9819         fcntl-h, stdio, sys_ioctl: fix declarations
9820         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
9821         function must not take arguments.
9822         * lib/sys_ioctl.in.h (ioctl): Likewise.
9823         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
9824         (open): Add a link warning.
9825
9826 2009-12-15  Jim Meyering  <meyering@redhat.com>
9827
9828         areadlink, areadlink-with-size: relax license to LGPLv2+
9829         * modules/areadlink (License): Relax to LGPLv2+.
9830         * modules/areadlink-with-size (License): Likewise.
9831
9832 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
9833             Bruno Haible  <bruno@clisp.org>
9834
9835         *printf: Fix memory leak.
9836         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
9837         * lib/vfprintf.c (vfprintf): Likewise.
9838         * lib/dprintf.c (dprintf): Likewise.
9839         * lib/vdprintf.c (vdprintf): Likewise.
9840
9841 2009-12-14  Eric Blake  <ebb9@byu.net>
9842
9843         accept4: adjust module dependencies
9844         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
9845
9846         utimens: one more try at avoiding compiler warning
9847         * lib/utimens.c (lutimens): Lower scope of result.
9848
9849 2009-12-13  Bruno Haible  <bruno@clisp.org>
9850
9851         Move the malloc checking from module 'list' to new module 'xlist'.
9852         * modules/xlist: New file.
9853         * lib/gl_xlist.h: New file.
9854         * lib/gl_xlist.c: New file.
9855         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
9856         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
9857         gl_list_add_last, gl_list_add_before, gl_list_add_after,
9858         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
9859         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
9860         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
9861         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
9862         gl_sortedlist_nx_add): New declarations.
9863         (struct gl_list_implementation): Rename and change methods accordingly.
9864         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
9865         (gl_list_nx_create): Renamed from gl_list_create.
9866         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9867         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9868         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9869         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9870         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9871         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9872         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9873         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9874         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
9875         gl_list_create_empty.
9876         (gl_list_nx_create): Renamed from gl_list_create.
9877         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9878         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9879         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9880         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9881         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9882         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9883         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9884         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9885         * lib/gl_array_list.c: Don't include xalloc.h.
9886         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
9887         NULL upon out-of-memory.
9888         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
9889         out-of-memory.
9890         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
9891         Change return type to 'int'.
9892         (gl_array_nx_set_at): Renamed from gl_array_set_at.
9893         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9894         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
9895         upon out-of-memory.
9896         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
9897         upon out-of-memory.
9898         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
9899         upon out-of-memory.
9900         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
9901         upon out-of-memory.
9902         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
9903         out-of-memory.
9904         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
9905         Update.
9906         (gl_array_list_implementation): Update.
9907         * lib/gl_carray_list.c: Don't include xalloc.h.
9908         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
9909         Return NULL upon out-of-memory.
9910         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
9911         out-of-memory.
9912         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
9913         Change return type to 'int'.
9914         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
9915         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9916         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
9917         upon out-of-memory.
9918         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
9919         upon out-of-memory.
9920         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
9921         out-of-memory.
9922         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
9923         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
9924         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
9925         Update.
9926         (gl_carray_list_implementation): Update.
9927         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
9928         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
9929         gl_linked_create_empty. Return NULL upon out-of-memory.
9930         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
9931         out-of-memory.
9932         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
9933         Change return type to 'int'. Return -1 upon out-of-memory.
9934         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
9935         out-of-memory.
9936         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
9937         upon out-of-memory.
9938         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
9939         upon out-of-memory.
9940         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
9941         NULL upon out-of-memory.
9942         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
9943         upon out-of-memory.
9944         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
9945         out-of-memory.
9946         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
9947         Update.
9948         * lib/gl_linked_list.c: Don't include xalloc.h.
9949         (gl_linked_list_implementation): Update.
9950         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
9951         (add_to_bucket): Change return type to 'int'.
9952         (gl_linkedhash_list_implementation): Update.
9953         * lib/gl_anytree_list1.h (free_subtree): New function.
9954         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
9955         gl_tree_create_empty. Return NULL upon out-of-memory.
9956         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
9957         Change return type to 'int'. Return -1 upon out-of-memory.
9958         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
9959         out-of-memory.
9960         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
9961         (gl_tree_remove_node): New function, moved here from
9962         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
9963         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
9964         Update.
9965         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
9966         malloc, not xmalloc. Return NULL upon out-of-memory.
9967         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
9968         out-of-memory.
9969         (gl_tree_remove_node_from_tree): New function, extracted from
9970         gl_tree_remove_node.
9971         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
9972         upon out-of-memory.
9973         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
9974         out-of-memory.
9975         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
9976         upon out-of-memory.
9977         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
9978         upon out-of-memory.
9979         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
9980         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
9981         not xmalloc. Return NULL upon out-of-memory.
9982         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
9983         out-of-memory.
9984         (gl_tree_remove_node_from_tree): New function, extracted from
9985         gl_tree_remove_node.
9986         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
9987         upon out-of-memory.
9988         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
9989         out-of-memory.
9990         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
9991         upon out-of-memory.
9992         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
9993         upon out-of-memory.
9994         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
9995         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
9996         gl_anytree_list1.h before gl_anyavltree_list2.h.
9997         (gl_avltree_list_implementation): Update.
9998         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
9999         gl_anytree_list1.h before gl_anyavltree_list2.h.
10000         (gl_rbtree_list_implementation): Update.
10001         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10002         Change return type to 'int'. Return -1 upon out-of-memory. Use
10003         __builtin_expect.
10004         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10005         (gl_avltreehash_list_implementation): Update.
10006         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10007         (gl_rbtreehash_list_implementation): Update.
10008         * modules/array-list (Depends-on): Remove xalloc.
10009         * modules/carray-list (Depends-on): Likewise.
10010         * modules/linked-list (Depends-on): Likewise.
10011         * modules/linkedhash-list (Depends-on): Likewise.
10012         * modules/avltree-list (Depends-on): Likewise.
10013         * modules/rbtree-list (Depends-on): Likewise.
10014         * modules/avltreehash-list (Depends-on): Likewise.
10015         * modules/rbtreehash-list (Depends-on): Likewise.
10016
10017         * modules/xsublist: New file.
10018         * lib/gl_xsublist.h: New file.
10019         * lib/gl_xsublist.c: New file.
10020         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10021         (gl_sublist_nx_create): New declaration.
10022         * lib/gl_sublist.c: Don't include xalloc.h.
10023         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10024         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10025         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10026         Change return type to 'int'. Return -1 upon out-of-memory.
10027         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10028         upon out-of-memory.
10029         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10030         NULL upon out-of-memory.
10031         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10032         upon out-of-memory.
10033         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10034         NULL upon out-of-memory.
10035         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10036         NULL upon out-of-memory.
10037         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10038         upon out-of-memory.
10039         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10040         (gl_sublist_list_implementation): Update.
10041         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10042         upon out-of-memory.
10043         * modules/sublist (Depends-on): Remove xalloc.
10044
10045         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10046         * tests/test-carray_list.c: Likewise.
10047         * tests/test-linked_list.c: Likewise.
10048         * tests/test-linkedhash_list.c: Likewise.
10049         * tests/test-avltree_list.c: Likewise.
10050         * tests/test-rbtree_list.c: Likewise.
10051         * tests/test-avltreehash_list.c: Likewise.
10052         * tests/test-rbtreehash_list.c: Likewise.
10053         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10054         * modules/carray-list-tests (Makefile.am): Likewise.
10055         * modules/linked-list-tests (Makefile.am): Likewise.
10056         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10057         * modules/avltree-list-tests (Makefile.am): Likewise.
10058         * modules/rbtree-list-tests (Makefile.am): Likewise.
10059         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10060         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10061
10062         * NEWS: Mention the changes.
10063
10064         * lib/clean-temp.c: Include gl_xlist.h.
10065         * modules/clean-temp (Depends-on): Add xlist.
10066
10067         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10068         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10069
10070         * tests/test-array_oset.c: Include gl_xlist.h.
10071         * modules/array-oset-tests (Depends-on): Add xlist.
10072
10073         Reported by José E. Marchesi <jemarch@gnu.org>.
10074
10075 2009-12-13  Bruno Haible  <bruno@clisp.org>
10076
10077         Move the malloc checking from module 'oset' to new module 'xoset'.
10078         * modules/xoset: New file.
10079         * lib/gl_xoset.h: New file.
10080         * lib/gl_xoset.c: New file.
10081         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10082         declarations.
10083         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10084         (struct gl_oset_implementation): Rename and change methods accordingly.
10085         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10086         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10087         'int'. Mark as __warn_unused_result__.
10088         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10089         gl_oset_create_empty.
10090         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10091         'int'.
10092         * lib/gl_array_oset.c: Don't include xalloc.h.
10093         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10094         malloc, not xmalloc.
10095         (grow): Change return type to 'int'. Don't call xalloc_die.
10096         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10097         to 'int'.
10098         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10099         'int'.
10100         (gl_array_oset_implementation): Update.
10101         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10102         gl_tree_create_empty.
10103         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10104         'int'.
10105         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10106         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10107         xmalloc.
10108         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10109         not xmalloc.
10110         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10111         xmalloc.
10112         (gl_avltree_oset_implementation): Update.
10113         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10114         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10115         xmalloc.
10116         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10117         not xmalloc.
10118         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10119         xmalloc.
10120         (gl_rbtree_oset_implementation): Update.
10121         * modules/array-oset (Depends-on): Remove xalloc.
10122         * modules/avltree-oset (Depends-on): Likewise.
10123         * modules/rbtree-oset (Depends-on): Likewise.
10124         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10125         * tests/test-avltree_oset.c: Likewise.
10126         * tests/test-rbtree_oset.c: Likewise.
10127         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10128         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10129         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10130         * NEWS: Mention the change.
10131
10132 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10133
10134         maint.mk: allow a project to override release-prep commands
10135         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10136         commands into a new rule.
10137         (release-prep): New rule.
10138         (release-prep-hook): New overridable variable.
10139
10140 2009-12-13  Bruno Haible  <bruno@clisp.org>
10141
10142         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10143
10144 2009-12-13  Jim Meyering  <meyering@redhat.com>
10145
10146         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10147         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10148
10149 2009-12-12  Bruno Haible  <bruno@clisp.org>
10150
10151         duplocale: Tweak.
10152         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10153
10154 2009-12-12  Karl Berry  <karl@gnu.org>
10155
10156         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10157
10158 2009-12-12  Bruno Haible  <bruno@clisp.org>
10159
10160         * m4/po.m4: Undo incorrect untabification.
10161
10162 2009-12-12  Bruno Haible  <bruno@clisp.org>
10163
10164         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10165         * modules/c-strtod (Depends-on): Add locale.
10166         * modules/c-strtold (Depends-on): Likewise.
10167
10168 2009-12-12  Bruno Haible  <bruno@clisp.org>
10169
10170         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10171
10172 2009-12-11  Eric Blake  <ebb9@byu.net>
10173
10174         setenv: relax requirement in light of POSIX ruling
10175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10176         not NULL.
10177         * tests/test-setenv.c (main): Relax test.
10178         * tests/test-unsetenv.c (main): Likewise.
10179         * doc/posix-functions/setenv.texi (setenv): Document this.
10180         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10181
10182 2009-12-11  Bruno Haible  <bruno@clisp.org>
10183
10184         New module 'fd-safer-flag'.
10185         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10186         * lib/dup-safer.c (dup_safer_flag): Remove function.
10187         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10188         * lib/fd-safer.c (fd_safer_flag): Remove function.
10189         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10190         * modules/cloexec (configure.ac): Drop indicator macro.
10191         * modules/fd-safer-flag: New file.
10192         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10193         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10194         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10195
10196 2009-12-11  Bruno Haible  <bruno@clisp.org>
10197
10198         Tests for module 'nl_langinfo'.
10199         * modules/nl_langinfo-tests: New file.
10200         * tests/test-nl_langinfo.sh: New file.
10201         * tests/test-nl_langinfo.c: New file.
10202
10203         New module 'nl_langinfo'.
10204         * lib/nl_langinfo.c: New file.
10205         * m4/nl_langinfo.m4: New file.
10206         * modules/nl_langinfo: New file.
10207         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10208
10209 2009-12-11  Bruno Haible  <bruno@clisp.org>
10210
10211         Tests for module 'langinfo'.
10212         * modules/langinfo-tests: New file.
10213         * tests/test-langinfo.c: New file.
10214
10215         New module 'langinfo'.
10216         * lib/langinfo.in.h: New file.
10217         * m4/langinfo_h.m4: New file.
10218         * modules/langinfo: New file.
10219         * doc/posix-headers/langinfo.texi: Mention the new module.
10220
10221 2009-12-11  Bruno Haible  <bruno@clisp.org>
10222
10223         * lib/config.charset: Untabify.
10224
10225 2009-12-11  Bruno Haible  <bruno@clisp.org>
10226
10227         * modules/unistd-safer (configure.ac): Drop indicator macro.
10228
10229 2009-12-11  Bruno Haible  <bruno@clisp.org>
10230
10231         Move pipe2-safer code to its own file.
10232         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10233         * lib/pipe-safer.c (pipe2_safer): Remove function.
10234         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10235         (Makefile.am): Add it to lib_SOURCES.
10236
10237 2009-12-10  Bruno Haible  <bruno@clisp.org>
10238
10239         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10240
10241 2009-12-10  Bruno Haible  <bruno@clisp.org>
10242
10243         Declare which arguments expect non-NULL values, for GCC and clang.
10244         * build-aux/arg-nonnull.h: New file.
10245         * modules/arg-nonnull: New file.
10246         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10247         (inet_ntop, inet_pton): Use it.
10248         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10249         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10250         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10251         (open, openat): Use it.
10252         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10253         (fnmatch): Use it.
10254         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10255         (getopt, getopt_long, getopt_long_only): Use it.
10256         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10257         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10258         Use it.
10259         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10260         (iconv_open): Use it.
10261         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10262         (strtoimax, strtoumax): Use it.
10263         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10264         (duplocale): Use it.
10265         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10266         (frexp, frexpl): Use it.
10267         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10268         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10269         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10270         (tsearch, tfind, tdelete, twalk): Use it.
10271         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10272         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10273         sigpending): Use it.
10274         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10275         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10276         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10277         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10278         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10279         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10280         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10281         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10282         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10283         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10284         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10285         Use it.
10286         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10287         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10288         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10289         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10290         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10291         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10292         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10293         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10294         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10295         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10296         strtoull, unsetenv): Use it.
10297         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10298         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10299         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10300         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10301         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10302         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10303         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10304         (strcasecmp, strncasecmp): Use it.
10305         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10306         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10307         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10308         rpl_setsockopt): Use it.
10309         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10310         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10311         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10312         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10313         (gettimeofday): Use it.
10314         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10315         (times): Use it.
10316         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10317         (uname): Use it.
10318         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10319         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10320         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10321         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10322         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10323         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10324         unlinkat, write): Use it.
10325         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10326         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10327         * lib/argv-iter.h: Include arg-nonnull.h.
10328         (_ATTRIBUTE_NONNULL_): Remove macro.
10329         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10330         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10331         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10332         optimization.
10333         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10334         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10335         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10336         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10337         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10338         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10339         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10340         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10341         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10342         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10343         * modules/dirent (Depends-on): Add arg-nonnull.
10344         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10345         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10346         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10347         * modules/fnmatch (Depends-on): Add arg-nonnull.
10348         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10349         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10350         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10351         * modules/glob (Depends-on): Add arg-nonnull.
10352         (Makefile.am): Insert arg-nonnull.h into glob.h.
10353         * modules/iconv_open (Depends-on): Add arg-nonnull.
10354         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10355         * modules/inttypes (Depends-on): Add arg-nonnull.
10356         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10357         * modules/locale (Depends-on): Add arg-nonnull.
10358         (Makefile.am): Insert arg-nonnull.h into locale.h.
10359         * modules/math (Depends-on): Add arg-nonnull.
10360         (Makefile.am): Insert arg-nonnull.h into math.h.
10361         * modules/netdb (Depends-on): Add arg-nonnull.
10362         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10363         * modules/search (Depends-on): Add arg-nonnull.
10364         (Makefile.am): Insert arg-nonnull.h into search.h.
10365         * modules/signal (Depends-on): Add arg-nonnull.
10366         (Makefile.am): Insert arg-nonnull.h into signal.h.
10367         * modules/spawn (Depends-on): Add arg-nonnull.
10368         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10369         * modules/stdio (Depends-on): Add arg-nonnull.
10370         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10371         * modules/stdlib (Depends-on): Add arg-nonnull.
10372         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10373         * modules/string (Depends-on): Add arg-nonnull.
10374         (Makefile.am): Insert arg-nonnull.h into string.h.
10375         * modules/strings (Depends-on): Add arg-nonnull.
10376         (Makefile.am): Insert arg-nonnull.h into strings.h.
10377         * modules/sys_socket (Depends-on): Add arg-nonnull.
10378         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10379         * modules/sys_stat (Depends-on): Add arg-nonnull.
10380         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10381         * modules/sys_time (Depends-on): Add arg-nonnull.
10382         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10383         * modules/sys_times (Depends-on): Add arg-nonnull.
10384         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10385         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10386         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10387         * modules/time (Depends-on): Add arg-nonnull.
10388         (Makefile.am): Insert arg-nonnull.h into time.h.
10389         * modules/unistd (Depends-on): Add arg-nonnull.
10390         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10391         * modules/wchar (Depends-on): Add arg-nonnull.
10392         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10393         * modules/argv-iter (Depends-on): Add arg-nonnull.
10394         * tests/test-canonicalize.c (null_ptr): New function.
10395         (main): Use it.
10396         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10397         (main): Use it.
10398         * tests/test-memmem.c (null_ptr): New function.
10399         (main): Use it.
10400         Reported by Jim Meyering.
10401
10402 2009-12-10  Bruno Haible  <bruno@clisp.org>
10403
10404         Use spaces for indentation, not tabs.
10405         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10406         * m4/*.m4: Untabify.
10407         * build-aux/*.h: Untabify.
10408         * tests/**/*.[hc]: Untabify.
10409         * README: New section "Indent with spaces, not TABs", based on
10410         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10411         * NEWS: Mention the change.
10412
10413 2009-12-10  Bruno Haible  <bruno@clisp.org>
10414
10415         pty test: Fix link error.
10416         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10417         test_pty_LDADD.
10418
10419 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10420
10421         * modules/pty: New file.
10422         * modules/pty-tests: New file.
10423         * m4/pty.m4: New file.
10424         * tests/test-pty.c: New file.
10425         * doc/glibc-headers/pty.texi: Modified.
10426         * doc/glibc-functions/forkpty.texi: Modified.
10427         * doc/glibc-functions/openpty.texi: Modified.
10428
10429 2009-12-10  Bruno Haible  <bruno@clisp.org>
10430
10431         Avoid syntax error in C++ mode.
10432         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10433
10434 2009-12-10  Bruno Haible  <bruno@clisp.org>
10435
10436         Use sed with option -e.
10437         * gnulib-tool (func_version, func_emit_copyright_notice,
10438         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10439         option -e to sed.
10440         * modules/link-warning (Makefile.am): Likewise.
10441
10442 2009-12-10  Jim Meyering  <meyering@redhat.com>
10443
10444         mgetgroups: do not write bytes beyond end of malloc'd buffer
10445         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10446         username, we call getgroups with a one-element-shorter buffer,
10447         but still told it the length was original, max_n_groups.
10448
10449 2009-12-09  Eric Blake  <ebb9@byu.net>
10450
10451         cloexec: relax license
10452         * modules/cloexec (Maintainer): Add myself.
10453         (License): Use LGPL, not GPL.
10454
10455         link-warning: optimize generation
10456         * modules/link-warning (Makefile.am): Reduce process usage.
10457
10458 2009-12-09  Bruno Haible  <bruno@clisp.org>
10459
10460         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10461         workaround was added on 2009-11-17.
10462
10463 2009-12-09  Jim Meyering  <meyering@redhat.com>
10464             Bruno Haible  <bruno@clisp.org>
10465
10466         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10467         * modules/link-warning (Makefile.am): Make the comment-removing sed
10468         command more robust in the face of bootstrap-prepended comment lines.
10469
10470 2009-12-09  Bruno Haible  <bruno@clisp.org>
10471
10472         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10473         most one group.
10474
10475 2009-12-09  Simon Josefsson <simon@josefsson.org>
10476             Bruno Haible  <bruno@clisp.org>
10477
10478         * build-aux/link-warning.h: Add copyright notice.
10479         * modules/link-warning (Makefile.am): Generate link-warning.h from
10480         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10481         * NEWS: Mention change in link-warning module.
10482         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10483         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10484         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10485         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10486         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10487         * modules/math (Makefile.am): Add dependency to math.h.
10488         * modules/search (Makefile.am): Add dependency to search.h.
10489         * modules/signal (Makefile.am): Add dependency to signal.h.
10490         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10491         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10492         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10493         * modules/string (Makefile.am): Add dependency to string.h.
10494         * modules/strings (Makefile.am): Add dependency to strings.h.
10495         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10496         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10497         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10498         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10499         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10500         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10501         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10502         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10503         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10504
10505 2009-12-09  Bruno Haible  <bruno@clisp.org>
10506
10507         fchdir: Optimize away rpl_fstat when possible.
10508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10509         REPLACE_OPEN_DIRECTORY.
10510         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10511
10512 2009-12-09  Bruno Haible  <bruno@clisp.org>
10513
10514         * lib/fchdir.c: Update comment.
10515
10516 2009-12-09  Bruno Haible  <bruno@clisp.org>
10517
10518         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10519
10520 2009-12-08  Eric Blake  <ebb9@byu.net>
10521
10522         fchdir: avoid memory leak on re-registration.
10523         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10524
10525 2009-12-08  Jim Meyering  <meyering@redhat.com>
10526
10527         init.sh: avoid Solaris 10 /bin/sh portability problem
10528         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10529         sourced script:
10530           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10531           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10532           bar
10533         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10534         and two tests used that idiom.
10535         * tests/init.sh: Update suggested usage comments.
10536         (path_prepend_): New function, to be used in place
10537         of the --src-path=DIR option.
10538         (setup_): Move PATH-prepending code into path_prepend_.
10539         * tests/test-pread.sh: Adapt to new usage.
10540         * tests/test-xalloc-die.sh: Likewise.
10541
10542 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10543
10544         * doc/gnulib.texi (Glibc pty.h): Add.
10545         * doc/glibc-functions/forkpty.texi: Add.
10546         * doc/glibc-functions/openpty.texi: Add.
10547         Suggested by Bruno Haible.
10548
10549 2009-12-08  Eric Blake  <ebb9@byu.net>
10550
10551         fchdir: fix logic bugs
10552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10553         * tests/test-fchdir.c (main): Enhance test.
10554         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10555         is in use.
10556
10557         dup2: fix logic bugs
10558         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10559         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10560         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10561         exists.
10562         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10563
10564 2009-12-07  Eric Blake  <ebb9@byu.net>
10565
10566         unlink: fix m4 detection
10567         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10568
10569         unistd-safer: add unit test
10570         * modules/unistd-safer-tests: New file.
10571         * tests/test-dup-safer.c: Likewise.
10572         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10573         * tests/test-dup2.c (setmode): Likewise.
10574         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10575
10576         cloexec: preserve text vs. binary across dup_cloexec
10577         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10578         mode.
10579         * modules/dup2-tests (Depends-on): Add binary-io.
10580         * modules/cloexec-tests (Depends-on): Likewise.
10581         * tests/test-dup2.c (setmode, is_mode): New helpers.
10582         (main): Add tests that translation mode is preserved.
10583         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10584         Reported by Bruno Haible.
10585
10586         mgetgroups: reduce duplicate listings
10587         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10588         resulting array.
10589         * tests/test-chown.h (test_chown): Simplify client.
10590         * tests/test-lchown.h (test_lchown): Likewise.
10591
10592 2009-12-06  Bruno Haible  <bruno@clisp.org>
10593
10594         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10595         value.
10596
10597 2009-12-06  Bruno Haible  <bruno@clisp.org>
10598
10599         * lib/progname.c: Include stdio.h, stdlib.h.
10600         (set_program_name): Reject a NULL argument.
10601
10602 2009-12-05  Eric Blake  <ebb9@byu.net>
10603
10604         pipe2-safer: new module
10605         * modules/pipe2-safer: New file.
10606         * lib/unistd-safer.h (pipe2_safer): New prototype.
10607         * lib/unistd--.h (pipe2): New wrapper.
10608         * lib/pipe-safer.c (pipe2_safer): New function.
10609         * modules/pipe (Depends-on): Add pipe2-safer.
10610         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10611
10612         stdlib-safer: preserve cloexec flag for mkostemp[s]
10613         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10614         fd_safer_flag.
10615
10616         unistd-safer: allow preservation of cloexec status via flag
10617         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
10618         prototypes.
10619         * lib/dup-safer.c (dup_safer_flag): New function.
10620         * lib/fd-safer.c (fd_safer_flag): Likewise.
10621         * modules/cloexec (configure.ac): Set witness.
10622
10623         test-dup2: enhance test
10624         * modules/dup2-tests (Depends-on): Add cloexec.
10625         * tests/test-dup2.c (main): Enhance test.
10626
10627         cloexec: add dup_cloexec
10628         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
10629         header and comments.
10630         * lib/cloexec.c (set_cloexec_flag): Add comments.
10631         (dup_cloexec): New function, with mingw implementation borrowed
10632         from...
10633         * lib/w32spawn.h (dup_noinherit): ...here.
10634         * modules/execute (Depends-on): Add cloexec.
10635         * modules/pipe (Depends-on): Likewise.
10636         * modules/cloexec (Depends-on): Add dup2.
10637         * modules/cloexec-tests (Files): New file.
10638         * tests/test-cloexec.c: Likewise.
10639
10640         test-xalloc-die: fix test for mingw
10641         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10642         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10643         directory and .exe suffix off argv[0] output.
10644
10645         test-fseeko: fix test for mingw
10646         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10647         than undefining fseek, so test will pass on mingw.
10648
10649 2009-12-05  Bruno Haible  <bruno@clisp.org>
10650
10651         * lib/progname.h (set_program_name): Clarify specification.
10652         * lib/progname.c (set_program_name): Likewise.
10653         Reported by Jim Meyering.
10654
10655 2009-12-05  Jim Meyering  <meyering@redhat.com>
10656
10657         maint.mk: backslash-escape parens in default regexp
10658         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10659         backslash-escape the literal parentheses.
10660
10661         maint.mk: news-date-check: use grep -E
10662         * top/maint.mk (today): Define a Make variable, not a...
10663         (news-date-check): ...shell variable.
10664         (news-date-regexp): Use the Make variable.
10665         Use grep's -E option.  Change the failing diagnostic to mention
10666         the variable, $(news-date-regexp).
10667
10668 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10669
10670         maintainer-makefile: allow customization of NEWS entry format
10671         * top/maint.mk (news-date-regexp): New overridable variable.
10672         (news-date-check): Use it.
10673
10674 2009-12-04  Eric Blake  <ebb9@byu.net>
10675
10676         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10677         * lib/mgetgroups.h (xgetgroups): New prototype.
10678         * lib/mgetgroups.c (xgetgroups): New wrapper.
10679         (mgetgroups): Handle ENOSYS.
10680         * modules/mgetgroups (Depends-on): Add realloc.
10681         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10682
10683         mgetgroups: avoid argument promotion issues with -1
10684         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10685         for invalid gid_t.
10686         * tests/test-chown.h (getegid, test_chown): Likewise.
10687         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10688
10689 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10690
10691         exclude: Fix header file problems.
10692         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10693
10694 2009-12-01  Jim Meyering  <meyering@redhat.com>
10695
10696         fts: fts_open: do not let an empty string cause immediate failure
10697         This is required in support of GNU rm, for which the command
10698         "rm A '' B" must process and remove both A and B, in spite of
10699         the empty string argument.
10700         * lib/fts.c (fts_open): Do not let the presence of an empty string
10701         cause fts_open to fail immediately.  Most fts-using tools must be
10702         able to process all arguments, in order, and can be expected to
10703         diagnose such arguments themselves.
10704
10705 2009-11-30  Eric Blake  <ebb9@byu.net>
10706
10707         utimens: fix compilation error
10708         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10709         Declare variable at right scope.
10710
10711 2009-11-29  Jim Meyering  <meyering@redhat.com>
10712
10713         bootstrap: handle perl-5.11's changed --version output
10714         * build-aux/bootstrap (get_version): Handle perl separately,
10715         since perl-5.11's --version output is different.
10716
10717 2009-11-28  Jim Meyering  <meyering@redhat.com>
10718
10719         userspec: depend on the inttostr module, too
10720         * modules/userspec (Depends-on): Add inttostr.
10721
10722         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
10723         * lib/userspec.c (parse_with_separator): Do not accept a user ID
10724         number of MAXUID when it evaluates to (uid_t) -1.
10725         Likewise for group ID.  Reported by Matt McCutchen in
10726         <http://savannah.gnu.org/bugs/?28113>
10727
10728         userspec: reformat to use spaces, not TABs
10729         * lib/userspec.c: Expand TABs to spaces.
10730         Add Emacs' "indent-tabs-mode: nil" hint.
10731
10732 2009-11-27  Eric Blake  <ebb9@byu.net>
10733
10734         getopt-gnu: flush out another BSD bug
10735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
10736         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
10737         flush out BSD bug.
10738         * tests/test-getopt.h (test_getopt): End lists with NULL.
10739         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10740         (test_getopt_long_posix): Enhance test.
10741         * modules/getopt-posix-tests (Depends-on): Add stdbool.
10742         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
10743         getopt-gnu.
10744         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10745         Likewise.
10746
10747 2009-11-27  Simon Josefsson  <simon@josefsson.org>
10748
10749         * modules/idpriv-droptemp-tests (Notice): Fix text.
10750
10751 2009-11-27  Jim Meyering  <meyering@redhat.com>
10752
10753         test-xalloc-die: avoid spurious failure due to libtool argv difference
10754         In a libtool-enabled project, this test would fail due to a difference
10755         in the emitted program name, e.g.,
10756         -test-xalloc-die: memory exhausted
10757         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
10758         Use program to avoid that.
10759         * modules/xalloc-die-tests (Depends-on): Add progname.
10760         * tests/test-xalloc-die.c: Include progname.h".
10761         (program_name): Remove decl.
10762         (main): Call set_program_name.
10763         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
10764
10765 2009-11-26  Richard Jones  <rjones@redhat.com>
10766
10767         w32sock: leave win32 error in place.
10768         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
10769
10770 2009-11-26  Eric Blake  <ebb9@byu.net>
10771
10772         init.sh: suggest to use skip_ and fail_ functions in comments
10773         * tests/init.sh: Add a sentence.
10774
10775 2009-11-25  Bruno Haible  <bruno@clisp.org>
10776
10777         init.sh: add documentation in comments
10778         * tests/init.sh: Add some developer and user documentation.
10779
10780 2009-11-26  Jim Meyering  <meyering@redhat.com>
10781
10782         init.sh: accommodate even those who specify bogus srcdir manually
10783         * tests/init.sh: Normally, srcdir is guaranteed by automake and
10784         configure-time tests to be sanitized, so that there is no need to
10785         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
10786         (with no double quotes) suffices.  However, since tests may be
10787         invoked manually, and since you may explicitly set srcdir to the
10788         name of a directory containing spaces, do quote its uses here.
10789         * tests/test-pread.sh: Likewise.
10790         Suggested by Bruno Haible.
10791
10792         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
10793         * tests/test-pread.sh: Write no data into the pipe, because
10794         test-pread actually reads none.  This avoids a diagnostic,
10795         "bash: echo: write error: Broken pipe", that arises in the unusual
10796         event something is ignoring SIGPIPE, and might be interpreted
10797         as some sort of failure.  Reported by Bruno Haible.
10798
10799 2009-11-25  Jim Meyering  <meyering@redhat.com>
10800
10801         test-pread: cover failure with ESPIPE and EINVAL
10802         * tests/test-pread.c (main): Test for failure, too.
10803         * tests/test-pread.sh: Invoke with stdin on a pipe.
10804         Suggested by Eric Blake.
10805
10806         pread: improvement and fix
10807         * modules/pread (Depends-on): Depend on lseek, for portability to
10808         e.g., mingw.  Suggested by Eric Blake.
10809         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
10810
10811         unistd.in.h: correct declaration of pread
10812         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
10813         Reported by Richard W.M. Jones.
10814
10815         test-pread.sh: distribute the test script
10816         * modules/pread-tests (Files): Include test-pread.sh.
10817
10818         test-pread.sh: clean up
10819         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
10820         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
10821         That is unnecessary, since it's always ".".
10822         Suggestion from Eric Blake.
10823
10824         test-pread.sh: make executable
10825         * tests/test-pread.sh: Set executable bit.
10826         Reported by Eric Blake.
10827
10828         correct typo in test-pread.sh
10829         * tests/test-pread.sh: Add #! line.
10830
10831         test pread
10832         * tests/test-pread.c: New file.
10833         * tests/test-pread.sh: Likewise.
10834         * modules/pread-tests: Likewise.
10835
10836         pread: new module
10837         * modules/pread: New file.
10838         * lib/unistd.in.h (pread): Define/declare.
10839         * lib/pread.c (pread): New file.
10840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
10841         * modules/unistd (Makefile.am): Substitute witnesses.
10842         * doc/posix-functions/pread.texi (pread): Update.
10843         * MODULES.html.sh: Add pread.
10844
10845 2009-11-25  Jim Meyering  <meyering@redhat.com>
10846
10847         tests/init.sh: new file to be used via most *.sh tests
10848         * tests/init.sh: New file.
10849
10850 2009-11-25  Eric Blake  <ebb9@byu.net>
10851
10852         utimens: work around older Linux failure with symlinks
10853         * lib/utimens.c (lutimensat_works_really): New variable.
10854         (fdutimens, lutimens): Use it to manage kernels that support
10855         nanosecond times on files, but not on symlinks.
10856         Reported by Ondřej Vašík.
10857
10858         utimes: fix configure grammar
10859         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
10860
10861 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
10862
10863         regex: Fix fastmap for multibyte character ranges.
10864         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
10865         characters when a multibyte character range is included.
10866
10867 2009-11-22  Andy Wingo  <wingo@pobox.com>
10868
10869         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
10870         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
10871
10872 2009-11-24  Bruno Haible  <bruno@clisp.org>
10873
10874         doc: Most *_l functions exist in MacOS X 10.5.
10875         * doc/posix-functions/duplocale.texi: Update platforms list.
10876         * doc/posix-functions/freelocale.texi: Likewise.
10877         * doc/posix-functions/newlocale.texi: Likewise.
10878         * doc/posix-functions/uselocale.texi: Likewise.
10879         * doc/posix-functions/isalnum_l.texi: Likewise.
10880         * doc/posix-functions/isalpha_l.texi: Likewise.
10881         * doc/posix-functions/isblank_l.texi: Likewise.
10882         * doc/posix-functions/iscntrl_l.texi: Likewise.
10883         * doc/posix-functions/isdigit_l.texi: Likewise.
10884         * doc/posix-functions/isgraph_l.texi: Likewise.
10885         * doc/posix-functions/islower_l.texi: Likewise.
10886         * doc/posix-functions/isprint_l.texi: Likewise.
10887         * doc/posix-functions/ispunct_l.texi: Likewise.
10888         * doc/posix-functions/isspace_l.texi: Likewise.
10889         * doc/posix-functions/isupper_l.texi: Likewise.
10890         * doc/posix-functions/iswalnum_l.texi: Likewise.
10891         * doc/posix-functions/iswalpha_l.texi: Likewise.
10892         * doc/posix-functions/iswblank_l.texi: Likewise.
10893         * doc/posix-functions/iswcntrl_l.texi: Likewise.
10894         * doc/posix-functions/iswctype_l.texi: Likewise.
10895         * doc/posix-functions/iswdigit_l.texi: Likewise.
10896         * doc/posix-functions/iswgraph_l.texi: Likewise.
10897         * doc/posix-functions/iswlower_l.texi: Likewise.
10898         * doc/posix-functions/iswprint_l.texi: Likewise.
10899         * doc/posix-functions/iswpunct_l.texi: Likewise.
10900         * doc/posix-functions/iswspace_l.texi: Likewise.
10901         * doc/posix-functions/iswupper_l.texi: Likewise.
10902         * doc/posix-functions/iswxdigit_l.texi: Likewise.
10903         * doc/posix-functions/isxdigit_l.texi: Likewise.
10904         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
10905         * doc/posix-functions/strcasecmp_l.texi: Likewise.
10906         * doc/posix-functions/strcoll_l.texi: Likewise.
10907         * doc/posix-functions/strfmon_l.texi: Likewise.
10908         * doc/posix-functions/strftime_l.texi: Likewise.
10909         * doc/posix-functions/strncasecmp_l.texi: Likewise.
10910         * doc/posix-functions/strxfrm_l.texi: Likewise.
10911         * doc/posix-functions/tolower_l.texi: Likewise.
10912         * doc/posix-functions/toupper_l.texi: Likewise.
10913         * doc/posix-functions/towctrans_l.texi: Likewise.
10914         * doc/posix-functions/towlower_l.texi: Likewise.
10915         * doc/posix-functions/towupper_l.texi: Likewise.
10916         * doc/posix-functions/wcscoll_l.texi: Likewise.
10917         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
10918         * doc/posix-functions/wctrans_l.texi: Likewise.
10919         * doc/posix-functions/wctype_l.texi: Likewise.
10920         * doc/glibc-functions/strptime_l.texi: Likewise.
10921         * doc/glibc-functions/strtod_l.texi: Likewise.
10922         * doc/glibc-functions/strtof_l.texi: Likewise.
10923         * doc/glibc-functions/strtol_l.texi: Likewise.
10924         * doc/glibc-functions/strtold_l.texi: Likewise.
10925         * doc/glibc-functions/strtoll_l.texi: Likewise.
10926         * doc/glibc-functions/strtoul_l.texi: Likewise.
10927         * doc/glibc-functions/strtoull_l.texi: Likewise.
10928         * doc/glibc-functions/wcsftime_l.texi: Likewise.
10929         * doc/glibc-functions/wcstod_l.texi: Likewise.
10930         * doc/glibc-functions/wcstof_l.texi: Likewise.
10931         * doc/glibc-functions/wcstol_l.texi: Likewise.
10932         * doc/glibc-functions/wcstold_l.texi: Likewise.
10933         * doc/glibc-functions/wcstoll_l.texi: Likewise.
10934         * doc/glibc-functions/wcstoul_l.texi: Likewise.
10935         * doc/glibc-functions/wcstoull_l.texi: Likewise.
10936
10937 2009-11-24  Bruno Haible  <bruno@clisp.org>
10938
10939         duplocale: Fix logic bug.
10940         * lib/duplocale.c: Don't include <langinfo.h>.
10941         (_NL_LOCALE_NAME): Remove macro.
10942         (rpl_duplocale): Use setlocale instead of nl_langinfo.
10943         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
10944
10945 2009-11-23  Jim Meyering  <meyering@redhat.com>
10946
10947         test-update-copyright: don't hard-code /usr/bin/perl
10948         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
10949         perl to print the current year.  Gilles Espinasse reported that
10950         the replaced use of perl was hard-coded as /usr/bin/perl.
10951
10952 2009-11-23  Bruno Haible  <bruno@clisp.org>
10953
10954         duplocale: Add support for glibc 2.3.x.
10955         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
10956
10957 2009-11-22  Bruno Haible  <bruno@clisp.org>
10958
10959         vasnprintf: Tiny optimization.
10960         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
10961         MacOS X.
10962
10963 2009-11-22  Bruno Haible  <bruno@clisp.org>
10964
10965         Tests for module 'duplocale'.
10966         * modules/duplocale-tests: New file.
10967         * tests/test-duplocale.c: New file.
10968
10969         New module 'duplocale'.
10970         * m4/duplocale.m4: New file.
10971         * lib/locale.in.h (duplocale): New declaration.
10972         * lib/duplocale.c: New file.
10973         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
10974         gl_LOCALE_H_DEFAULTS): New macros.
10975         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
10976         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
10977         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
10978         REPLACE_DUPLOCALE.
10979         * modules/duplocale: New file.
10980         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
10981
10982 2009-11-22  Bruno Haible  <bruno@clisp.org>
10983
10984         * modules/locale-tests (configure.ac): Test for newlocale function.
10985         * tests/test-locale.c: When the system has extended locale functions,
10986         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
10987
10988         locale: Make locale_t available when possible.
10989         * lib/locale.in.h: Include <xlocale.h> when it exists.
10990         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
10991         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
10992         * modules/locale (Depends-on): Add extensions.
10993         (Makefile.am): Also substitute HAVE_XLOCALE_H.
10994         * doc/posix-headers/locale.texi: Document the problem with locale_t.
10995
10996 2009-11-22  Bruno Haible  <bruno@clisp.org>
10997
10998         Add comments.
10999         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11000         invocation.
11001         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11002         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11003         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11004
11005 2009-11-22  Bruno Haible  <bruno@clisp.org>
11006
11007         error: account for the possibility of freopen (stdout).
11008         * lib/error.c: Include <unistd.h>.
11009         (flush_stdout): New function, extracted from error and error_at_line.
11010         Determine stdout's fd dynamically.
11011         (error, error_at_line): Invoke flush_stdout.
11012         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11013         * modules/error (Depends-on): Add unistd.
11014
11015 2009-11-22  Bruno Haible  <bruno@clisp.org>
11016
11017         diffseq: Add comment.
11018         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11019
11020 2009-11-22  Jim Meyering  <meyering@redhat.com>
11021
11022         c-stack: avoid defining an unused static function
11023         * lib/c-stack.c (find_stack_direction): Do not define this function
11024         when it will not be used.
11025
11026         diffseq: avoid spurious gcc warnings
11027         * lib/diffseq.h (IF_LINT2): Define.
11028         (compareseq): Use it to initialize two members of "part".
11029         This avoids two used-uninitialized warnings.
11030
11031 2009-11-21  Jim Meyering  <meyering@redhat.com>
11032
11033         c-stack: avoid "ignoring return value of `write'" warning
11034         * lib/c-stack.c: Include "ignore-value.h".
11035         (die): Explicitly ignore each write return value.
11036         * modules/c-stack (Depends-on): Add ignore-value.
11037
11038 2009-11-21  Bruno Haible  <bruno@clisp.org>
11039
11040         diffseq: reduce scope of variable 'best'.
11041         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11042         variable, earlier used for two different purposes.
11043
11044 2009-11-21  Jim Meyering  <meyering@redhat.com>
11045
11046         diffseq: remove useless assignment to "best"
11047         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11048         assignment.  At that point "best" is already guaranteed to be zero.
11049
11050 2009-11-20  Eric Blake  <ebb9@byu.net>
11051
11052         build: mention ftp redirector in release announcements
11053         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11054         values that used to come from cfg.mk; mention FTP redirect URL.
11055         * build-aux/announce-gen: Mention the mirror list.
11056         Suggested by Karl Berry.
11057
11058         nanosleep: improve port to mingw
11059         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11061         LIB_NANOSLEEP, but only when needed.
11062         * modules/select (Link): Document LIBSOCKET.
11063         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11064         enough.
11065
11066         nanosleep: work around cygwin bug
11067         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11068         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11069         bug.
11070         (getnow): Delete, not needed.
11071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11072         LIB_CLOCK_GETTIME.
11073         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11074         clock-time, gettime.
11075         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11076         bug.
11077         * modules/nanosleep-tests: New test.
11078         * tests/test-nanosleep.c: New file.
11079
11080         sleep: work around cygwin bug
11081         * lib/sleep.c (rpl_sleep): Work around the bug.
11082         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11083         (gl_PREREQ_SLEEP): Delete unused macro.
11084         * modules/sleep (Depends-on): Add verify.
11085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11086         * modules/unistd (Makefile.am): Substitute witness.
11087         * lib/unistd.in.h (sleep): Update prototype.
11088         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11089         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11090         * modules/sleep-tests (Depends-on): Check for alarm.
11091
11092 2009-11-20  Jim Meyering  <meyering@redhat.com>
11093
11094         maint.mk: improve sc_prohibit_magic_number_exit
11095         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11096         so it does not match uses like System.exit(1).
11097         Add comments showing how to correct all offenders.
11098
11099 2009-11-19  Eric Blake  <ebb9@byu.net>
11100
11101         xalloc-die-tests: add missing library
11102         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11103
11104         test-xvasprintf: silence compiler warnings
11105         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11106         empty string from gcc.
11107
11108 2009-11-19  Jim Meyering  <meyering@redhat.com>
11109
11110         xfreopen: new module, from coreutils
11111         * modules/xfreopen: New module.
11112         * lib/xfreopen.c: New file.
11113         * lib/xfreopen.h: New file.
11114         * MODULES.html.sh (File stream based Input/Output"): Add it.
11115
11116 2009-11-19  Eric Blake  <ebb9@byu.net>
11117
11118         manywarnings: depend on warnings
11119         * modules/manywarnings (Depends-on): Add warnings.
11120
11121         build: avoid compiler warnings
11122         * lib/select.c (rpl_select): Delete unused variable.
11123         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11124
11125 2009-11-18  Eric Blake  <ebb9@byu.net>
11126
11127         tests: avoid false negative with --with-packager
11128         * tests/test-version-etc.sh: Discard packager information.
11129         * tests/test-argp-version-etc-1.sh: Likewise.
11130         Reported by Mike Frysinger.
11131
11132         utimens: fix regression on Solaris
11133         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11134         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11135         can only change fd timestamps via futimesat.  Instead, use an
11136         additional witness macro to avoid BSD bug.
11137         Reported by Jim Meyering.
11138
11139 2009-11-17  Eric Blake  <ebb9@byu.net>
11140
11141         usleep: use it to simplify tests
11142         * modules/stat-time-tests (Depends-on): Add usleep.
11143         (configure.ac): Drop usleep check.
11144         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11145         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11146         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11147         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11148         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11149         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11150         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11151         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11152         Likewise.
11153         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11154         * tests/test-lchown.h (nap): Likewise.
11155         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11156         * tests/test-stat-time.c (nap): Likewise.
11157         * tests/test-utimens-common.h (nap): Update comments.
11158
11159         usleep: new module
11160         * modules/usleep: New file.
11161         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11162         * lib/usleep.c (usleep): Likewise.
11163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11164         * modules/unistd (Makefile.am): Substitute witnesses.
11165         * lib/unistd.in.h (usleep): Add declaration.
11166         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11167         * MODULES.html.sh (Date and time): Likewise.
11168         * modules/usleep-tests (Depends-on): New test.
11169         * tests/test-usleep.c: New file.
11170
11171         chown: work around OpenBSD bug
11172         * lib/chown.c (rpl_chown): Work around the bug.
11173         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11174         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11175         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11176         * modules/chown (Depends-on): Add stdbool.
11177         * modules/lchown (Depends-on): Likewise.
11178         * doc/posix-functions/chown.texi (chown): Document the bug.
11179         * doc/posix-functions/lchown.texi (lchown): Likewise.
11180         * tests/test-lchown.h (test_chown): Relax test.
11181
11182         mkstemp: avoid conflict with C++ keyword template
11183         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11184         * lib/mkostemp.c (mkostemp): Likewise.
11185         * lib/mkostemps.c (mkostemps): Likewise.
11186         * lib/mkstemp.c (mkstemp): Likewise.
11187         * lib/mkstemps.c (mkstemps): Likewise.
11188
11189         xalloc-die-tests: optimize
11190         * tests/test-xalloc-die.sh: Reduce number of processes.
11191
11192 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11193
11194         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11195         patch from ludo@gnu.org (Ludovic Courtès).
11196
11197 2009-11-17  Jim Meyering  <meyering@redhat.com>
11198
11199         version-etc: use proper license string
11200         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11201         * modules/version-etc-fsf: Likewise.
11202
11203 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11204
11205         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11206         printed to stdout.  Deal with EOL differences.
11207
11208 2009-11-17  Eric Blake  <ebb9@byu.net>
11209
11210         unsetenv: work around Solaris bug
11211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11212         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11213         Reported by Jim Meyering.
11214
11215         vasnprintf: avoid compiler warnings
11216         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11217         variables.
11218         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11219
11220 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11221
11222         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11223         settings since xalloc-die is no longer the self test,
11224         xalloc-die.sh is.
11225
11226 2009-11-17  Jim Meyering  <meyering@redhat.com>
11227
11228         test-xalloc-die.sh: make the code agree with the commit log
11229         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11230         at the end, just in case you happen to have a test-xalloc-die
11231         program in some other PATH directory.
11232
11233         test-xalloc-die.sh: fix a portability bug
11234         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11235         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11236         Otherwise, argv[0] (as often seen in diagnostics) would be too
11237         system-dependent, sometimes with, and sometimes without the leading "./".
11238
11239         version-etc-fsf: relax license to LGPLv3+
11240         * modules/version-etc-fsf (License): Relax license.
11241
11242 2009-11-16  Eric Blake  <ebb9@byu.net>
11243
11244         xalloc-die-tests: avoid printing null pointer
11245         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11246         shell script.
11247         * tests/test-xalloc-die.c (program_name): Declare.
11248         * tests/test-xalloc-die.sh (tmpfiles): New file.
11249
11250         setenv, unsetenv: work around various bugs
11251         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11252         (setenv) [HAVE_SETENV]: Work around bugs.
11253         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11254         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11255         for bugs.
11256         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11257         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11259         * modules/stdlib (Makefile.am): Update substitutions.
11260         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11261         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11262         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11263         * modules/setenv-tests: New test.
11264         * modules/unsetenv-tests: Likewise.
11265         * tests/test-setenv.c: New file.
11266         * tests/test-unsetenv.c: Likewise.
11267
11268 2009-11-16  Jim Meyering  <meyering@redhat.com>
11269
11270         version-etc: relax license to LGPLv3+
11271         * modules/version-etc (License): Relax license.
11272
11273         better AC_REQUIRE expanded-before-required-warning avoidance
11274         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11275         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11276         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11277         which is no longer needed.
11278
11279 2009-11-16  Eric Blake  <ebb9@byu.net>
11280
11281         test-freading: clean up temporary file
11282         * tests/test-freading.c (main): Remove file on success, and use
11283         ASSERT more liberally.
11284         Reported by Jim Meyering.
11285
11286 2009-11-16  Jim Meyering  <meyering@redhat.com>
11287
11288         avoid new AC_REQUIRE expanded-before-required warnings
11289         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11290         merely using it.
11291         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11292         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11293
11294 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11295
11296         * tests/test-xalloc-die.c: New file.
11297         * modules/xalloc-die-tests: New file.
11298         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11299         XFAIL_TESTS so it can be appended by modules.
11300
11301 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11302
11303         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11304         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11305
11306 2009-11-14  Eric Blake  <ebb9@byu.net>
11307
11308         fnmatch: avoid compiler warning
11309         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11310         to silence compiler warning about mismatch signedness in ?:.
11311         Reported by Robert Millan.
11312
11313         intprops: add double-inclusion guard
11314         * lib/intprops.h: Allow idempotent includes.
11315         Suggested by Bruce Korb.
11316
11317         openat: detect Solaris fchownat bug
11318         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11319         penalizing glibc chownat when only lchownat is broken.
11320         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11321         trailing slash bugs.
11322         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11323         * modules/openat-tests (Files): Include more files.
11324         (Depends-on): Add mgetgroups, sleep, stat-time.
11325         (configure.ac): Add additional checks.
11326         (Makefile.am): Build new test.
11327         * tests/test-fchownat.c: New file.
11328
11329         lchown: detect Solaris and FreeBSD bug
11330         * lib/lchown.c (rpl_lchown): Work around bug.
11331         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11333         * modules/unistd (Makefile.am): Populate it.
11334         * lib/unistd.in.h (lchown): Update declaration.
11335         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11336         * modules/lchown-tests: New file.
11337         * tests/test-lchown.h (test_lchown): Likewise.
11338         * tests/test-lchown.c (main): Likewise.
11339
11340         chown: detect Solaris and FreeBSD bug
11341         * lib/chown.c (rpl_chown): Work around bug.
11342         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11343         (gl_PREREQ_CHOWN): Delete.
11344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11345         * modules/unistd (Makefile.am): Populate it.
11346         * lib/unistd.in.h (chown): Update declaration.
11347         * lib/lchown.c (chown): Update client.
11348         * modules/lchown (Depends-on): Add lstat.
11349         * doc/posix-functions/chown.texi (chown): Document the bug.
11350         * doc/posix-functions/getgroups.texi (getgroups): Document
11351         getgroups pitfall.
11352         * modules/chown-tests: New file.
11353         * tests/test-chown.h (test_chown): Likewise.
11354         * tests/test-chown.c (main): Likewise.
11355
11356 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11357
11358         gnulib-tool: correctly detect absence of m4 directories
11359         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11360
11361 2009-11-14  Jim Meyering  <meyering@redhat.com>
11362
11363         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11364         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11365
11366 2009-11-14  John W. Eaton  <jwe@gnu.org>
11367
11368         strftime.h: wrap funtion declaration in extern "C" block
11369         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11370
11371 2009-11-13  Eric Blake  <ebb9@byu.net>
11372
11373         getgroups: avoid compiler warning
11374         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11375
11376         getgroups: work around FreeBSD bug
11377         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11378         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11379         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11380         * tests/test-getgroups.c (main): Fix buffer overrun.
11381
11382         getgroups: avoid compilation failure
11383         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11384         * modules/getgroups (Depends-on): Add stdint.
11385
11386 2009-11-13  Jim Meyering  <meyering@redhat.com>
11387
11388         test-getgroups: avoid compilation failure
11389         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11390
11391 2009-11-13  Eric Blake  <ebb9@byu.net>
11392
11393         mgetgroups: new module, taken from coreutils
11394         * modules/mgetgroups: New file.
11395         * lib/mgetgroups.h: Likewise.
11396         * lib/mgetgroups.c (mgetgroups): Likewise.
11397         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11398         * MODULES.html.sh (Users and groups): Mention it.
11399
11400         getgroups: don't expose GETGROUPS_T to user
11401         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11402         an element at a time if GETGROUPS_T is wrong size.
11403         * lib/getugroups.h (getugroups): Change signature.
11404         * lib/unistd.in.h (getgroups): Likewise.
11405         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11406         signature needs fixing.
11407         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11408         AC_TYPE_GETGROUPS.
11409         * modules/group-member (Depends-on): Add getgroups.
11410         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11411         (group_member): Rely on getgroups replacement.
11412         * lib/getugroups.c (getugroups): Use gid_t.
11413         * tests/test-getgroups.c (main): Likewise.
11414         * NEWS: Mention the signature change.
11415         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11416         problem with signature.
11417         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11418         GETGROUPS_T is still useful for setgroups.
11419
11420         getgroups, getugroups: provide stubs for mingw
11421         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11422         * lib/getugroups.c (getugroups): Likewise.
11423         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11424         function.  Modernize replacement scheme.
11425         (gl_PREREQ_GETGROUPS): Delete.
11426         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11427         * modules/getgroups (configure.ac): Declare witness.
11428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11429         * modules/unistd (Depends-on): Substitute witness.
11430         * lib/unistd.in.h (getgroups): Declare replacement.
11431
11432         getgroups: avoid calling exit
11433         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11434         drop xalloc.
11435         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11436         dependencies.
11437         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11438         exiting, in the rare case of malloc failure.
11439
11440         getgroups: fix logic error
11441         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11442         has more than 20 groups.
11443         * modules/getgroups-tests: New test.
11444         * tests/test-getgroups.c: New file.
11445
11446 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11447
11448         * tests/test-base64.c: Improve.
11449
11450 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11451
11452         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11453         Blake <ebb9@byu.net>.
11454
11455 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11456
11457         * tests/test-xvasprintf.c: Add %s%s related checks.
11458
11459 2009-11-12  Eric Blake  <ebb9@byu.net>
11460
11461         version-etc: match standards.texi style
11462         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11463         and use <> only for URLs.
11464
11465 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11466
11467         fts: do not fail on a submount during traversal
11468         * lib/fts.c (fts_build): Read the stat info again after opening
11469         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11470         Original report at http://bugzilla.redhat.com/501848.
11471
11472 2009-11-12  Jim Meyering  <meyering@redhat.com>
11473
11474         bootstrap: sync from coreutils
11475         * build-aux/bootstrap (bootstrap_epilogue): New function.
11476         Use git_modules_config in one more place.  This make bootstrap's
11477         --gnulib-srcdir option more useful for testing.
11478
11479         bootstrap: generalize autoheader check
11480         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11481         AC_CONFIG_HEADERS.
11482
11483 2009-11-11  Eric Blake  <ebb9@byu.net>
11484
11485         mkfifoat: use new modules for Solaris and BSD bugs
11486         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11487         * lib/mkfifoat.c (mknodat): Split...
11488         * lib/mknodat.c (mknodat): ...into new file.
11489         * modules/mkfifoat (Files): Ship new file.
11490         (Depends-on): Add mkfifo, mknod.
11491         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11492         (Depends-on): Add symlink.
11493         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11494         redundant with test_mkfifo.h.
11495         (do_mkfifoat, do_mknodat): New helpers.
11496
11497         mknod: new module
11498         * modules/mknod: New file.
11499         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11500         * lib/mknod.c (mknod): Likewise.
11501         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11502         defaults.
11503         * modules/sys_stat (Makefile.am): Substitute them.
11504         * lib/sys_stat.in.h (mknod): Declare replacement.
11505         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11506         Document it.
11507         * doc/posix-functions/mknod.texi (mknod): Likewise.
11508         * modules/mknod-tests: New test.
11509         * tests/test-mknod.c: Likewise.
11510
11511         mkfifo: new module
11512         * modules/mkfifo: New file.
11513         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11514         * lib/mkfifo.c (mkfifo): Likewise.
11515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11516         defaults.
11517         * modules/sys_stat (Makefile.am): Substitute them.
11518         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11519         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11520         Document it.
11521         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11522         * modules/mkfifo-tests: New test.
11523         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11524         from test-mkfifoat.c.
11525         * tests/test-mkfifo.c: New file.
11526
11527         readlink: detect FreeBSD bug
11528         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11529         slash on symlink.
11530         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11531         * tests/test-readlink.h (test_readlink): Enhance test.
11532
11533         symlink: detect FreeBSD bug
11534         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11535         slash on symlink.
11536         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11537         * tests/test-symlink.h (test_symlink): Enhance test.
11538
11539 2009-11-10  Eric Blake  <ebb9@byu.net>
11540
11541         link: detect FreeBSD bug
11542         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11543         symlink.
11544         * doc/posix-functions/link.texi (link): Document the bug.
11545         * tests/test-link.h (test_link): Enhance test.
11546         * tests/test-linkat.c (main): Update caller.
11547
11548         unlink, remove: detect FreeBSD bug
11549         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11550         slash on symlink.
11551         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11552         * doc/posix-functions/remove.texi (remove): Likewise.
11553         * tests/test-unlink.h (test_unlink): Enhance test.
11554         * tests/test-remove.c (main): Likewise.
11555
11556 2009-11-09  Eric Blake  <ebb9@byu.net>
11557
11558         rename: detect FreeBSD bug
11559         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11560         slash on symlink.
11561         * modules/renameat-tests (Depends-on): Add filenamecat.
11562         * tests/test-rename.h (test_rename): Allow one more errno.
11563         * tests/test-renameat.c (main): Likewise.
11564         * doc/posix-functions/rename.texi (rename): Document the bug.
11565
11566         open: detect FreeBSD bug
11567         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11568         symlink.
11569         * doc/posix-functions/open.texi (open): Document the bug.
11570         * doc/posix-functions/utimes.texi (utimes): Likewise.
11571         * tests/test-open.h (test_open): Add parameters, and test symlink
11572         handling.
11573         * tests/test-open.c (main): Adjust caller.
11574         * tests/test-fcntl-safer.c (main): Likewise.
11575         * modules/open-tests (Depends-on): Add stdbool, symlink.
11576         * modules/fcntl-safer-tests (Depends-on): Likewise.
11577         * tests/test-openat.c (main): Add test-open tests.
11578
11579         stat: detect FreeBSD bug
11580         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11581         symlink.
11582         * doc/posix-functions/stat.texi (stat): Document the bug.
11583         * tests/test-stat.h (test_stat_func): Add argument.
11584         * tests/test-stat.c (main): Adjust caller.
11585         * tests/test-fstatat.c (main): Likewise.
11586         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11587         Reported by Jim Meyering.
11588
11589 2009-11-09  James Youngman  <jay@gnu.org>
11590
11591         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11592         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11593
11594 2009-11-08  Jim Meyering  <meyering@redhat.com>
11595
11596         utimens: remove invalid futimesat call
11597         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11598         It used the file descriptor of the target file as the DIR_FD
11599         parameter and NULL as the file name.  That caused failure with
11600         errno == EFAULT on FreeBSD-8.0-rc2
11601
11602 2009-11-07  Eric Blake  <ebb9@byu.net>
11603
11604         fflush, freadseek: use fseeko, not fseek
11605         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11606         (clear_ungetc_buffer): Avoid potential problems on large files.
11607         * lib/freadseek.c (freadseek): Likewise.
11608         * modules/freadseek (Depends-on): Add fseeko.
11609         * modules/fseek (configure.ac): Set a witness.
11610         * tests/test-fflush.c (main): Use fseeko.
11611         * tests/test-fpurge.c (fseek): Disable link warning.
11612         * tests/test-freadable.c (fseek): Likewise.
11613         * tests/test-freading.c (fseek): Likewise.
11614         * tests/test-fseeko.c (fseek): Likewise.
11615         * tests/test-ftell.c (fseek): Likewise.
11616         * tests/test-ftello.c (fseek): Likewise.
11617         * tests/test-fwritable.c (fseek): Likewise.
11618         * tests/test-fwriting.c (fseek): Likewise.
11619
11620 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11621
11622         * modules/memchr (Depends-on): Drop getpagesize dependency.
11623
11624 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11625
11626         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
11627         Reported by Ludovic Courtès.
11628         * build-aux/pmccabe2html: Improve example usage.
11629         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
11630
11631 2009-11-06  Jim Meyering  <meyering@redhat.com>
11632
11633         do-release-commit-and-tag: New module.
11634         Automate the release-commit and tag process.
11635         * build-aux/do-release-commit-and-tag: New script, from coreutils.
11636         * modules/do-release-commit-and-tag: New file.
11637         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11638
11639 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11640
11641         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11642         because test-select.c uses inet_pton.
11643
11644 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11645
11646         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11647         GETADDRINFO_LIB.  Bump serial number.
11648         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11649         Suggested by Eric Blake <ebb9@byu.net>.
11650
11651 2009-11-05  Eric Blake  <ebb9@byu.net>
11652
11653         strtod: detect darwin bug
11654         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11655         Reported by Leo Davis.
11656
11657         freopen-safer: new module
11658         * modules/freopen-safer: New module.
11659         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11660         * lib/freopen-safer.c (freopen_safer): New file.
11661         * lib/stdio-safer.h (freopen_safer): New declaration.
11662         * lib/stdio--.h (freopen): New override.
11663         * MODULES.html.sh (File stream based Input/Output): Mention it.
11664         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11665         freopen-safer module.
11666         * doc/posix-functions/stderr.texi (stderr): Likewise.
11667         * doc/posix-functions/stdin.texi (stdin): Likewise.
11668         * doc/posix-functions/stdout.texi (stdout): Likewise.
11669         * modules/freopen-safer-tests: New test.
11670         * tests/test-reopen-safer.c: New file.
11671
11672 2009-11-05  Jim Meyering  <meyering@redhat.com>
11673
11674         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11675         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11676
11677 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11678
11679         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11680
11681 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11682
11683         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11684
11685 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11686
11687         Fix link error.
11688         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11689         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11690
11691 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11692
11693         * tests/test-func.c: Also test value of __func__.
11694
11695 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11696
11697         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11698         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11699
11700 2009-11-05  Bruno Haible  <bruno@clisp.org>
11701
11702         Fix link error.
11703         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11704         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11705         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11706
11707 2009-11-05  Bruno Haible  <bruno@clisp.org>
11708
11709         Tests for module 'inet_pton'.
11710         * modules/inet_pton-tests: New file.
11711         * tests/test-inet_pton.c: New file.
11712
11713 2009-11-05  Bruno Haible  <bruno@clisp.org>
11714
11715         Tests for module 'inet_ntop'.
11716         * modules/inet_ntop-tests: New file.
11717         * tests/test-inet_ntop.c: New file.
11718
11719 2009-11-04  Eric Blake  <ebb9@byu.net>
11720
11721         stdlib-safer: wrap all mkstemp variants
11722         * modules/mkostemp (configure.ac): Set witness.
11723         * modules/mkostemps (configure.ac): Likewise.
11724         * modules/mkstemps (configure.ac): Likewise.
11725         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
11726         (mkstemps_safer): Wrap more functions.
11727         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
11728         wrapping.
11729         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
11730         (mkstemps_safer): Implement the wrappers.
11731
11732         mkstemps, mkostemps: new modules
11733         * modules/mkostemps: New module.
11734         * modules/mkstemps: Likewise.
11735         * lib/mkostemps.c (mkostemps): New file.
11736         * lib/mkstemps.c (mkstemps): Likewise.
11737         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
11738         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
11739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
11740         * modules/stdlib (Makefile.am): Substitute them.
11741         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
11742         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
11743         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11744         * doc/gnulib.texi (Glibc stdlib.h): Include them.
11745         * MODULES.html.sh (File system functions): Mention them.
11746
11747         tempname: resync from glibc
11748         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
11749         same values for __GT_FILE as glibc.  Abort even when assertions
11750         are disabled.
11751         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
11752         match its value otherwise.  Allow idempotent inclusion.
11753         * lib/mkdtemp.c (mkdtemp): Adjust caller.
11754         * lib/mkostemp.c (mkostemp): Likewise.
11755         * lib/mkstemp.c (mkstemp): Likewise.
11756         * lib/tmpfile.c (tmpfile): Likewise.
11757         * NEWS: Document this.
11758
11759         utimens: fix use of futimens on older Linux
11760         * lib/utimens.c (fdutimens): Use updated, rather than original,
11761         timespec to avoid bug in older Linux kernel.
11762         Reported by Simon Josefsson.
11763
11764 2009-11-04  Bruno Haible  <bruno@clisp.org>
11765
11766         Make num_processors more flexible and consistent.
11767         * lib/nproc.h (enum nproc_query): New type.
11768         (num_processors): Add a 'query' argument.
11769         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
11770         (num_processors): Add a 'query' argument. Test the value of the
11771         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
11772         mingw, count the number of CPUs available for the current process.
11773         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
11774         Check for sched_getaffinity and sched_getaffinity_np.
11775         * modules/nproc (Depends-on): Add c-ctype, extensions.
11776         * NEWS: Mention the change.
11777
11778 2009-11-03  Bruno Haible  <bruno@clisp.org>
11779
11780         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
11781
11782 2009-11-03  Jim Meyering  <meyering@redhat.com>
11783
11784         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
11785         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
11786         if it is defined.
11787
11788 2009-11-02  Eric Blake  <ebb9@byu.net>
11789
11790         mktime, timegm: share common declaration
11791         * lib/mktime-internal.h: New file.
11792         * lib/mktime.c: Use it rather than open-coding a declaration.
11793         * lib/timegm.c: Likewise.
11794         * modules/mktime (Files): Ship it.
11795         * modules/timegm (Files): Likewise.
11796         Suggested by Bruno Haible.
11797
11798         test-update-copyright: update test to match script changes
11799         * tests/test-update-copyright.sh: Avoid hard-coding perl
11800         location.  Don't update *.bak created by earlier runs.
11801
11802 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11803             Simon Josefsson  <simon@josefsson.org>
11804             Bruno Haible  <bruno@clisp.org>
11805
11806         Fix link error on Solaris 8.
11807         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
11808         also in libnsl. Define also INET_PTON_LIB.
11809         * modules/inet_pton (Link): New section.
11810
11811 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11812             Bruno Haible  <bruno@clisp.org>
11813
11814         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
11815         * modules/inet_ntop (Link): New section.
11816         Reported by Boyan Kasarov <bkasarov@gmail.com>.
11817
11818 2009-11-02  Eric Blake  <ebb9@byu.net>
11819
11820         maint: avoid compiler warnings in m4 macros
11821         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
11822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
11823
11824 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11825
11826         * m4/pmccabe2html.m4: Remove file.
11827         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
11828         function.  Change maintainer.
11829         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
11830         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
11831         Courtès).
11832
11833 2009-10-31  Eric Blake  <ebb9@byu.net>
11834
11835         fseeko: fix m4 regression
11836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
11837         regression from 2009-10-27.
11838         Reported by Ralf Wildenhues.
11839
11840 2009-10-31  Jim Meyering  <meyering@redhat.com>
11841
11842         inttostr: aesthetics and improved (compile-time) safety
11843         Define inttype_is_signed rather than inttype_is_unsigned,
11844         since the sole use is via "#if inttype_is_signed".
11845         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
11846         inttype_is_unsigned.
11847         * lib/offtostr.c (inttype_is_signed): Likewise.
11848         * lib/uinttostr.c (inttype_is_signed): Likewise.
11849         * lib/umaxtostr.c (inttype_is_signed): Likewise.
11850         * lib/inttostr.c (inttostr): Use verify to cross-check the
11851         inttype_is_signed value and the signedness of the actual type.
11852         * modules/inttostr (Depends-on): Add verify.
11853
11854 2009-10-30  Eric Blake  <ebb9@byu.net>
11855
11856         build: avoid compiler warnings
11857         * lib/fchmodat.c (lchmod): Mark unused variables.
11858         * lib/getopt.c (_getopt_initialize): Likewise.
11859         * lib/mktime.c (__mktime_internal): Provide prototype.
11860         * lib/inttostr.c (inttostr): Avoid compiler warning even with
11861         older gcc that do not understand #pragma GCC diagnostic.
11862         * lib/uinttostr.c (inttype_is_unsigned): Define.
11863         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
11864
11865 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11866
11867         stat: fix compilation on AIX
11868         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
11869         only see struct stat64.
11870
11871 2009-10-30  Eric Blake  <ebb9@byu.net>
11872
11873         exclude: make more robust
11874         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
11875         rather than masking a coding bug.
11876         Suggested by Bruno Haible.
11877
11878 2009-10-30  Jim Meyering  <meyering@redhat.com>
11879
11880         perl scripts: remove #!/usr/bin/perl in favor of more portable...
11881         Rather than putting #!/usr/bin/perl on the first line,
11882         start with a variant of what's recommended by "man perlrun" that
11883         invokes the first "perl" program from your shell's search path.
11884         * build-aux/gitlog-to-changelog: Replace #!... as above.
11885         Add a "Local Variables" perl mode setting.
11886         Prompted by a patch from Ludovic Courtès.
11887         Improved by Eric Blake.
11888         * build-aux/useless-if-before-free: Likewise.
11889         * build-aux/announce-gen: Likewise.
11890         * build-aux/update-copyright: Likewise.
11891
11892 2009-10-29  Eric Blake  <ebb9@byu.net>
11893
11894         filenamecat-lgpl: adjust clients
11895         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
11896         filenamecat.
11897         * modules/renameat (Depends-on): Likewise.
11898
11899         filenamecat: split into filenamecat-lgpl
11900         * modules/filenamecat-lgpl: New module.
11901         * modules/filenamecat (Files): Move library-safe files into
11902         filenamecat-lgpl.
11903         (Depends-on): Add filenamecat-lgpl.
11904         (configure.ac): Declare witness.
11905         * lib/filenamecat.h (file_name_concat): Only declare when using
11906         GPL module.
11907         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
11908         Move...
11909         * lib/filenamecat-lgpl.c: ...into new file.
11910         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
11911         (gl_FILE_NAME_CONCAT): Use it.
11912         * MODULES.html.sh (File system functions): Mention new module.
11913
11914         argp: avoid memory leak
11915         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
11916         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
11917         base_name, since the latter malloc()s and can call exit().
11918         Leak introduced 2006-07-03.
11919
11920         dirname-lgpl: adjust clients that don't need full dirname
11921         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
11922         * modules/filenamecat (Depends-on): Likewise.
11923         * modules/linkat (Depends-on): Likewise.
11924         * modules/mkancesdirs (Depends-on): Likewise.
11925         * modules/mkdir (Depends-on): Likewise.
11926         * modules/openat (Depends-on): Likewise.
11927         * modules/savewd (Depends-on): Likewise.
11928         * modules/rename (Depends-on): Likewise.
11929         (License): Relax license.
11930         * modules/mkdir-tests (Depends-on): Drop progname.
11931         (Makefile.am): Delete unneeded LDADD.
11932         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
11933
11934         dirname: split into dirname-lgpl
11935         * modules/dirname-lgpl: New module.
11936         * modules/dirname (Files): Move library-safe files into
11937         dirname-lgpl.
11938         (Depends-on): Add dirname-lgpl.
11939         (configure.ac): Declare witness.
11940         * modules/double-slash-root (License): Relax license.
11941         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
11942         module.
11943         * lib/dirname.c (dir_len, mdir_name): Move...
11944         * lib/dirname-lgpl.c: ...into new file.
11945         * lib/basename.c (last_component, base_len): Move...
11946         * lib/basename-lgpl.c: ...into new file.
11947         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
11948         (gl_DIRNAME): Use it.
11949         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
11950         Mention new module.
11951         * modules/dirname-tests (Depends-on): Add progname.
11952         * tests/test-dirname.c (program_name): Delete.
11953
11954         mkdir: make safe for libraries
11955         * modules/mkdir (Depends-on): Drop xalloc.
11956         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
11957         exit.
11958
11959         tests: avoid some compiler warnings
11960         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
11961         literals.
11962         * tests/test-memchr.c (main): Avoid type mismatch.
11963         * tests/test-arpa_inet.c (main): Avoid unused parameters.
11964         * tests/test-base64.c (main): Likewise.
11965         * tests/test-getdelim.c (main): Likewise.
11966         * tests/test-gethostname.c (main): Likewise.
11967         * tests/test-getline.c (main): Likewise.
11968         * tests/test-netinet_in.c (main): Likewise.
11969         * tests/test-select.c (open_server_socket, main): Likewise.
11970         * tests/test-select-stdin.c (main): Likewise.
11971         * tests/test-sockets.c (main): Likewise.
11972         * tests/test-strsignal.c (main): Likewise.
11973         * tests/test-sys_select.c (main): Likewise.
11974         * tests/test-sys_socket.c (main): Likewise.
11975         * tests/test-u64.c (main): Likewise.
11976         * tests/test-xfprintf-posix.c (main): Likewise.
11977         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
11978
11979         sockets: avoid compiler warning
11980         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
11981
11982         maint: detect usage(1) and other suspicious exits
11983         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
11984
11985 2009-10-29  Jim Meyering  <meyering@redhat.com>
11986
11987         timespec: long-to-int truncation could make timespec_cmp malfunction
11988         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
11989         a multiple of 2^32 nanoseconds as no difference.
11990
11991 2009-10-28  Jim Meyering  <meyering@redhat.com>
11992
11993         fprintftime: wrap macro code argument in "do {...} while(0)"
11994         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
11995         cpy macro must be a statement that can be followed by a semicolon.
11996         Now that the else clause contains a comment and is hence longer
11997         than one line, I require curly braces.  That in turn requires
11998         that we wrap this code block in the standard do...while(0).
11999
12000         fprintftime: remove stray semicolon from previous change
12001         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12002
12003         fprintftime: avoid a warning about ignored fwrite return value
12004         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12005         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12006         that is unsafe.
12007         * modules/fprintftime (Depends-on): Add ignore-value.
12008
12009         exclude: avoid an unwarranted warning
12010         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12011
12012 2009-10-27  Eric Blake  <ebb9@byu.net>
12013
12014         fseek: avoid compilation failure when fflush is replaced
12015         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12016         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12017         module is in use.
12018         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12019         module is not in use; since REPLACE_FSEEK worked otherwise.
12020         (GNULIB_FTELLO): Likewise for ftell.
12021         Reported by Ian Beckwith and others.
12022
12023 2009-10-27  Bruno Haible  <bruno@clisp.org>
12024
12025         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12026         Reported by Jim Meyering.
12027
12028 2009-10-27  Jim Meyering  <jim@meyering.net>
12029             Bruno Haible  <bruno@clisp.org>
12030
12031         Avoid warning despite dropping the return value of fwrite.
12032         * lib/unicodeio.c: Include ignore-value.h.
12033         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12034         * modules/unicodeio (Depends-on): Add ignore-value.
12035
12036 2009-10-26  Eric Blake  <ebb9@byu.net>
12037
12038         areadlinkat: fix fallback path
12039         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12040         pointer and zero.
12041
12042 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12043
12044         Use a better IO block size for modern systems
12045         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12046         * lib/md2.c: Likewise.
12047         * lib/md4.c: Likewise.
12048         * lib/md5.c: Likewise.
12049         * lib/sha1.c: Likewise.
12050         * lib/sha256.c: Likewise.
12051         * lib/sha512.c: Likewise.
12052
12053 2009-10-22  Eric Blake  <ebb9@byu.net>
12054
12055         tests: avoid several compiler warnings
12056         * tests/test-getcwd.c (main): Avoid buffer underflow.
12057         * tests/test-getdate.c (main): String literals are not safe with
12058         putenv, so use setenv.  Declare unused argument.
12059         * modules/getdate-tests (Depends-on): Add setenv.
12060         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12061         problems with string literals in char *.
12062         * tests/test-hash.c (main): Avoid shadowing declaration.
12063         (insert_new): Treat string literals as char const *.
12064         * tests/test-getopt.h (test_getopt): Likewise.
12065         (getopt_loop): Alter types to minimize casting elsewhere.
12066         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12067         (test_getopt_long_posix): Likewise.
12068         (do_getopt_long): Add wrapper to minimize casting.
12069         * tests/test-atexit.c (clear_temp_file): Use void.
12070         * tests/test-areadlink-with-size.c (main): Declare unused
12071         arguments.
12072         * tests/test-areadlink.c (main): Likewise.
12073         * tests/test-areadlinkat-with-size.c (main): Likewise.
12074         * tests/test-areadlinkat.c (main): Likewise.
12075         * tests/test-canonicalize-lgpl.c (main): Likewise.
12076         * tests/test-canonicalize.c (main): Likewise.
12077         * tests/test-dirent-safer.c (main): Likewise.
12078         * tests/test-dirname.c (main): Likewise.
12079         * tests/test-dup2.c (main): Likewise.
12080         * tests/test-fchdir.c (main): Likewise.
12081         * tests/test-fcntl-h.c (main): Likewise.
12082         * tests/test-fcntl-safer.c (main): Likewise.
12083         * tests/test-fdopendir.c (main): Likewise.
12084         * tests/test-fdutimensat.c (main): Likewise.
12085         * tests/test-fflush.c (main): Likewise.
12086         * tests/test-filenamecat.c (main): Likewise.
12087         * tests/test-filevercmp.c (main): Likewise.
12088         * tests/test-fopen-safer.c (main): Likewise.
12089         * tests/test-fopen.c (main): Likewise.
12090         * tests/test-fpending.c (main): Likewise.
12091         * tests/test-fpurge.c (main): Likewise.
12092         * tests/test-freading.c (main): Likewise.
12093         * tests/test-fstatat.c (main): Likewise.
12094         * tests/test-fsync.c (main): Likewise.
12095         * tests/test-futimens.c (main): Likewise.
12096         * tests/test-getndelim2.c (main): Likewise.
12097         * tests/test-gettimeofday.c (main): Likewise.
12098         * tests/test-getopt.c (main): Likewise.
12099         * tests/test-i-ring.c (main): Likewise.
12100         * tests/test-inttypes.c (main): Likewise.
12101         * tests/test-link.c (main): Likewise.
12102         * tests/test-lstat.c (main): Likewise.
12103         * tests/test-math.c (main): Likewise.
12104         * tests/test-md5.c (main): Likewise.
12105         * tests/test-memchr2.c (main): Likewise.
12106         * tests/test-memrchr.c (main): Likewise.
12107         * tests/test-mkdir.c (main): Likewise.
12108         * tests/test-mkdirat.c (main): Likewise.
12109         * tests/test-mkfifoat.c (main): Likewise.
12110         * tests/test-open.c (main): Likewise.
12111         * tests/test-openat-safer.c (main): Likewise.
12112         * tests/test-openat.c (main): Likewise.
12113         * tests/test-quotearg.c (main): Likewise.
12114         * tests/test-rawmemchr.c (main): Likewise.
12115         * tests/test-readlink.c (main): Likewise.
12116         * tests/test-remove.c (main): Likewise.
12117         * tests/test-rename.c (main): Likewise.
12118         * tests/test-renameat.c (main): Likewise.
12119         * tests/test-rmdir.c (main): Likewise.
12120         * tests/test-sha1.c (main): Likewise.
12121         * tests/test-signal.c (main): Likewise.
12122         * tests/test-sigaction.c (main): Likewise.
12123         * tests/test-stat.c (main): Likewise.
12124         * tests/test-stat-time.c (main): Likewise.
12125         * tests/test-stddef.c (main): Likewise.
12126         * tests/test-stdint.c (main): Likewise.
12127         * tests/test-stdio.c (main): Likewise.
12128         * tests/test-stdlib.c (main): Likewise.
12129         * tests/test-strchrnul.c (main): Likewise.
12130         * tests/test-strerror.c (main): Likewise.
12131         * tests/test-string.c (main): Likewise.
12132         * tests/test-strtod.c (main): Likewise.
12133         * tests/test-strverscmp.c (main): Likewise.
12134         * tests/test-symlink.c (main): Likewise.
12135         * tests/test-symlinkat.c (main): Likewise.
12136         * tests/test-sys_stat.c (main): Likewise.
12137         * tests/test-sys_time.c (main): Likewise.
12138         * tests/test-time.c (main): Likewise.
12139         * tests/test-unistd.c (main): Likewise.
12140         * tests/test-unlink.c (main): Likewise.
12141         * tests/test-unlinkat.c (main): Likewise.
12142         * tests/test-utimens.c (main): Likewise.
12143         * tests/test-utimensat.c (main): Likewise.
12144         * tests/test-version-etc.c (main): Likewise.
12145         * tests/test-wchar.c (main): Likewise.
12146         * tests/test-wctype.c (main): Likewise.
12147         * tests/test-xprintf-posix.c (main): Likewise.
12148         * tests/test-posixtm.c (main): Likewise.
12149         (STREQ): Delete unused macro.
12150         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12151         shadowed variables.
12152         * tests/test-memchr.c (main): Likewise.
12153
12154 2009-10-21  Eric Blake  <ebb9@byu.net>
12155
12156         areadlinkat: avoid failure on older glibc
12157         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12158         rather than mis-comparing 0 against FUNC_RESULT of char*.
12159
12160 2009-10-21  Bruno Haible  <bruno@clisp.org>
12161
12162         * modules/stpncpy (License): Relicense under LGPLv2+.
12163         Reported by David Lutterkort <lutter@redhat.com>.
12164
12165 2009-10-20  Eric Blake  <ebb9@byu.net>
12166
12167         utimensat: work around Solaris 9 bug
12168         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12169         has trailing slash bugs.
12170         * tests/test-lutimens.h (test_lutimens): Enhance test.
12171         * tests/test-utimens.h (test_utimens): Likewise.
12172         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12173         * doc/posix-functions/utimes.texi (utimes): Likewise.
12174         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12175         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12176         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12177         * doc/posix-functions/futimens.texi (futimens): Likewise.
12178
12179         fdutimensat: new module
12180         * modules/fdutimensat: New file.
12181         * lib/fdutimensat.c (fdutimensat): Likewise.
12182         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12183         * MODULES.html.sh (File system functions): Mention module.
12184         * modules/fdutimensat-tests: New test.
12185         * tests/test-fdutimensat.c: Likewise.
12186
12187         doc: regenerate INSTALL
12188         * doc/INSTALL: Reflect recent autoconf update.
12189         * doc/INSTALL.ISO: Likewise.
12190         * doc/INSTALL.UTF-8: Likewise.
12191
12192 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12193
12194         acl: warn if ACL support is not detected
12195         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12196
12197 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12198
12199         * lib/nproc.h: Add extern "C" block for C++.
12200
12201 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12202             Bruno Haible  <bruno@clisp.org>
12203
12204         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12205         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12206         * doc/posix-functions/isalpha.texi: Likewise.
12207         * doc/posix-functions/isblank.texi: Likewise.
12208         * doc/posix-functions/iscntrl.texi: Likewise.
12209         * doc/posix-functions/isdigit.texi: Likewise.
12210         * doc/posix-functions/isgraph.texi: Likewise.
12211         * doc/posix-functions/islower.texi: Likewise.
12212         * doc/posix-functions/isprint.texi: Likewise.
12213         * doc/posix-functions/ispunct.texi: Likewise.
12214         * doc/posix-functions/isspace.texi: Likewise.
12215         * doc/posix-functions/isupper.texi: Likewise.
12216         * doc/posix-functions/isxdigit.texi: Likewise.
12217
12218 2009-10-18  Bruno Haible  <bruno@clisp.org>
12219
12220         Tests for module 'isblank'.
12221         * modules/isblank-tests: New file.
12222         * tests/test-isblank.c: New file.
12223
12224         New module 'isblank'.
12225         * lib/isblank.c: New file.
12226         * m4/isblank.m4: New file.
12227         * modules/isblank: New file.
12228         * doc/posix-functions/isblank.texi: Mention the new module.
12229
12230 2009-10-18  Bruno Haible  <bruno@clisp.org>
12231
12232         New module 'ctype'.
12233         * lib/ctype.in.h: New file.
12234         * m4/ctype.m4: New file.
12235         * modules/ctype: New file.
12236         * doc/posix-headers/ctype.texi: Mention the new module.
12237
12238 2009-10-18  Jim Meyering  <meyering@redhat.com>
12239
12240         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12241         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12242         right after its initialization, rather than farther down.
12243         Keeping these in close proximity makes it easier to ensure
12244         that each such variable is initialized.  E.g.,
12245
12246             LIB_CLOCK_GETTIME=
12247             AC_SUBST([LIB_CLOCK_GETTIME])
12248
12249         This change also increments these serial numbers.
12250         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12251         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12253
12254 2009-10-18  Bruno Haible  <bruno@clisp.org>
12255
12256         Don't let environment variables perturb build.
12257         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12258         (gl_PREREQ_GETHRXTIME): ... not here.
12259
12260 2009-10-18  Bruno Haible  <bruno@clisp.org>
12261
12262         Avoid symlink attack in localcharset module.
12263         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12264         (O_NOFOLLOW): Define fallback.
12265         (get_charset_aliases): Don't open the file if it is a symbolic link.
12266         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12267         gl_FCNTL_H.
12268         (gl_FCNTL_H): Require it.
12269         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12270         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12271         Reported by Fergal Glynn <fglynn@veracode.com>.
12272
12273 2009-10-18  Bruno Haible  <bruno@clisp.org>
12274
12275         Implement nproc for mingw.
12276         * lib/nproc.c: Include <windows.h>
12277         (num_processors): On native Windows platforms, try GetSystemInfo.
12278
12279 2009-10-18  Bruno Haible  <bruno@clisp.org>
12280
12281         Implement nproc for IRIX.
12282         * lib/nproc.c: Include <sys/sysmp.h>.
12283         (num_processors): On IRIX systems, try sysmp.
12284         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12285
12286 2009-10-18  Bruno Haible  <bruno@clisp.org>
12287
12288         Implement nproc for HP-UX.
12289         * lib/nproc.c: Include <sys/pstat.h>
12290         (num_processors): On HP-UX systems, try pstat_getdynamic.
12291         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12292         pstat_getdynamic.
12293
12294 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12295             Bruno Haible  <bruno@clisp.org>
12296
12297         Implement nproc for NetBSD, OpenBSD.
12298         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12299         (ARRAY_SIZE): New macro.
12300         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12301         * m4/nproc.m4: New file.
12302         * modules/nproc (Files): Add m4/nproc.m4.
12303         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12304         (Makefile.am): Instead, augment lib_SOURCES.
12305
12306 2009-10-18  Bruno Haible  <bruno@clisp.org>
12307
12308         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12309         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12310         sys/param.h.
12311
12312 2009-10-16  Eric Blake  <ebb9@byu.net>
12313
12314         utimensat: new module
12315         * modules/utimensat: New file.
12316         * lib/utimensat.c (utimensat): Likewise.
12317         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12318         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12319         so we can work around Linux bugs.
12320         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12321         * modules/sys_stat (Makefile.am): Substitute them.
12322         * lib/sys_stat.in.h (utimensat): Declare it.
12323         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12324         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12325         * modules/utimensat-tests: New test.
12326         * tests/test-utimensat.c: Likewise.
12327
12328         utimens: let lutimens work on non-symlinks
12329         * lib/utimens.c (lutimens): Fall back to utimens rather than
12330         failing with ENOSYS, when file is not a symlink.
12331         (utimens): Reduce redirection.
12332         * tests/test-lutimens.h (test_lutimens): Update test to cover
12333         non-symlinks.
12334         * tests/test-utimens.h (test_utimens): Update test to cover
12335         symlinks.
12336         * tests/test-utimens.c (main): Update caller.
12337
12338         utimens: cache whether utimensat syscall works
12339         * lib/utimens.c (utimensat_works_really): New cache variable.
12340         (fdutimens, lutimens): Use it to avoid failing syscall.
12341
12342         test-stat-time, test-utimens: improve portability
12343         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12344         ext4 on alpha, and for cygwin.
12345         * tests/test-utimens-common.h: New file.
12346         (nap): Factor delays into single function.
12347         * tests/test-lutimens.h (test_lutimens): Use new header.
12348         * tests/test-futimens.h (test_futimens): Likewise.
12349         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12350         timestamps to occur from same machine, as was done previously for
12351         test_utimens.
12352         * modules/utimens-tests (Files): Ship new file.
12353         * modules/futimens-tests (Files): Likewise.
12354         Reported in part by Jim Meyering.
12355
12356         sys_stat: sort replacement declarations
12357         * lib/sys_stat.in.h: Sort declarations.
12358         * lib/futimens.c (futimens): Fix typo.
12359
12360 2009-10-15  Jim Meyering  <meyering@redhat.com>
12361
12362         don't let environment settings perturb build
12363         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12364         could cause a configure-time and/or build-time malfunction.
12365         Typically, a configure-time function-in-library test is performed
12366         via code like this:
12367
12368           LIB_VAR=
12369           AC_SUBST([LIB_VAR])
12370           prefix_saved_LIBS=$LIBS
12371             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12372                        [test "$ac_cv_search_FUNC" = "none required" ||
12373                         LIB_VAR=$ac_cv_search_FUNC])
12374           LIBS=$prefix_saved_LIBS
12375
12376         However, in each of the files affected by this change, the LIB_VAR=
12377         initialization was omitted.  Thus, when set in the environment, its
12378         value would propagate into generated Makefiles when FUNC is not found
12379         in LIB_NAME.
12380         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12381         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12383
12384 2009-10-14  Eric Blake  <ebb9@byu.net>
12385
12386         fchdir: avoid infinite recursion in mingw
12387         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12388         recursing.
12389
12390         test-stat-time: port to mingw
12391         * tests/test-stat-time.c (force_unlink): Return a value.
12392         (test_ctime) [W32]: Fix compilation error.
12393         (nap): Don't call usleep with too large an argument.  Use
12394         force_unlink.
12395         * doc/pastposix-functions/usleep.texi (usleep): Document the
12396         portability issue.
12397
12398 2009-10-13  Jim Meyering  <meyering@redhat.com>
12399
12400         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12401         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12402         * modules/pipe-filter-ii: Likewise.
12403         * modules/sys_socket-tests: Likewise.
12404         * modules/tsearch-tests: Likewise.
12405         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12406         (check): Depend on it.
12407
12408 2009-10-12  Eric Blake  <ebb9@byu.net>
12409
12410         utimens-tests: port to NFS file systems
12411         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12412         comparisons to avoid spurious failures from timestamp drift
12413         between NFS machines.
12414
12415 2009-10-12  Eric Blake  <ebb9@byu.net>
12416
12417         stat-time-tests: minor cleanups
12418         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12419         * tests/test-stat-time.c (nap): Separate assignment from call.
12420         Suggested by Paolo Bonzini and Bruno Haible.
12421
12422         sys_stat: guarantee struct timespec
12423         * lib/sys_stat.in.h (includes): Always include <time.h>
12424         * modules/sys_stat (Depends-on): Add time.
12425         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12426         mode_t permission values.
12427         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12428         get at subsecond timestamps.
12429
12430 2009-10-10  Eric Blake  <ebb9@byu.net>
12431
12432         futimens: new module
12433         * modules/futimens: New file.
12434         * lib/futimens.c (futimens): Likewise.
12435         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12436         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12437         we can work around Linux bugs.
12438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12439         * modules/sys_stat (Makefile.am): Substitute them.
12440         * lib/sys_stat.in.h (futimens): Declare it.
12441         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12442         * doc/posix-functions/futimens.texi (futimens): Likewise.
12443         * modules/futimens-tests: New test.
12444         * tests/test-futimens.c: Likewise.
12445
12446         utimens: introduce fdutimens
12447         * lib/utimens.h (fdutimens): New prototype.
12448         * lib/utimens.c (gl_futimens): Move guts...
12449         (fdutimens): ...to new interface.
12450         * tests/test-utimens.c (do_fdutimens): Use it.
12451
12452         utimens: add UTIME_NOW and UTIME_OMIT support
12453         * lib/utimens.c (validate_timespec, update_timespec): New helper
12454         functions.
12455         (gl_futimens, lutimens): Use them.
12456         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12457         stdbool, sys_stat.
12458         (Link): Mention resulting library dependency.
12459         * modules/utimecmp (Link): Likewise.
12460         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12461         (Makefile.am): Pick up library dependency.
12462         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12463         definition.
12464         * tests/test-sys_stat.c: Test the definitions.
12465         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12466         * NEWS: Document library dependency.
12467
12468         utimecmp: support symlink timestamps
12469         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12470         hashing when possible.  Use pathconf when available.
12471         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12472         * modules/utimecmp (Depends-on): Add lstat.
12473
12474         utimens: add lutimens interface
12475         * lib/utimens.c (lutimens): New function.
12476         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12477         * lib/utimens.h (lutimens): Declare new interface.
12478         * tests/test-utimens.c (main): Enhance test.
12479         * tests/test-lutimens.h (test_lutimens): New file.
12480         * modules/utimens-tests (Files): Distribute it.
12481         (Depends-on): Add symlink.
12482         (configure.ac): Check for usleep.
12483
12484         utimens: validate futimens usage
12485         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12486         fewer syscalls on failure later on.  Avoid compiler warning on
12487         mingw.
12488         * modules/utimens (Depends-on): Add dup2.
12489
12490         utimens: add test
12491         * modules/utimens-tests: New test.
12492         * tests/test-utimens.h: New file.
12493         * tests/test-futimens.h: Likewise.
12494         * tests/test-utimens.c: Likewise.
12495
12496         doc: mention timestamp portability issues
12497         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12498         instead.
12499         * doc/posix-functions/utime.texi (utime): Likewise.
12500         * doc/posix-functions/utimes.texi (utimes): Likewise.
12501         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12502         instead.
12503         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12504         module.
12505         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12506         Mention weakness with symlink timestamps.
12507         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12508         to utimensat/futimens instead.
12509         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12510
12511         test-dup2: enhance test
12512         * tests/test-dup2.c (main): Also check AT_FDCWD.
12513
12514         test-stat-time: avoid more spurious failures
12515         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12516         xfs; and avoid race if the two timestamps cross quantization edge.
12517
12518         relocatable: prefer 'file system' over 'filesystem'
12519         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12520         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12521         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12522         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12523         * lib/relocatable.c (compute_curr_prefix): Likewise.
12524
12525 2009-10-10  Jim Meyering  <meyering@redhat.com>
12526
12527         stat-time-tests: check for the usleep function
12528         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12529
12530 2009-10-10  Bruno Haible  <bruno@clisp.org>
12531
12532         * modules/xnanosleep: Put the Link section after the Include section.
12533
12534 2009-10-09  Eric Blake  <ebb9@byu.net>
12535
12536         dup2: work around FreeBSD 6.1 bug
12537         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12538         * doc/posix-functions/dup2.texi (dup2): Document it.
12539         Reported by Nelson H. F. Beebe and Jim Meyering.
12540
12541         test-stat-time: port to buggy NFS clients
12542         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12543         (test_ctime): Also skip test if mtime and ctime are skewed.
12544
12545         maint: prefer 'file system' over 'filesystem'
12546         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12547         * doc/posix-functions/lstat.texi (lstat): Likewise.
12548         * lib/file-has-acl.c (file_has_acl): Likewise.
12549         * lib/fwriteerror.c [TEST]: Likewise.
12550         * tests/test-areadlink.h (test_areadlink): Likewise.
12551         * tests/test-areadlinkat-with-size.c (main): Likewise.
12552         * tests/test-areadlinkat.c (main): Likewise.
12553         * tests/test-canonicalize-lgpl.c (main): Likewise.
12554         * tests/test-canonicalize.c (main): Likewise.
12555         * tests/test-fstatat.c (main): Likewise.
12556         * tests/test-linkat.c (main): Likewise.
12557         * tests/test-lstat.h (test_lstat_func): Likewise.
12558         * tests/test-mkdir.h (test_mkdir): Likewise.
12559         * tests/test-readlink.h (test_readlink): Likewise.
12560         * tests/test-remove.c (main): Likewise.
12561         * tests/test-rename.h (test_rename): Likewise.
12562         * tests/test-renameat.c (main): Likewise.
12563         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12564         * tests/test-symlink.h (test_symlink): Likewise.
12565         * tests/test-symlinkat.c (main): Likewise.
12566         * tests/test-unlink.h (test_unlink_func): Likewise.
12567         * tests/test-unlinkat.c (main): Likewise.
12568
12569         maint: make realtime library usage explicit
12570         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12571         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12572         * modules/settime (Link): Likewise.
12573         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12574
12575         test-stat-time: speed up execution
12576         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12577         warning on mingw.
12578         (nap): New helper function.
12579         (prepare_test): Use it to reduce sleep time.
12580         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12581         execution.
12582         * modules/stat-time-tests (configure.ac): Check for usleep.
12583
12584 2009-10-09  Jim Meyering  <meyering@redhat.com>
12585
12586         selinux-h: always use getfilecon wrappers
12587         * lib/getfilecon.c: New file.
12588         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12589         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12590         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12591         (fgetfilecon): Provide a stub.
12592         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12593         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12594         file unconditionally.
12595         When <selinux/selinux.h> is found, arrange to use wrappers.
12596         * modules/selinux-h (Files): Add getfilecon.c.
12597         (Makefile.am): Substitute include-next-related bits
12598         into the now-always-generated selinux/selinux.h file.
12599         * doc/glibc-functions/lgetfilecon.texi: New file.
12600         * doc/glibc-functions/fgetfilecon.texi: New file.
12601         * doc/glibc-functions/getfilecon.texi: New file.
12602         * doc/glibc-functions/getfilecon-desc.texi: New file.
12603         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12604         which to pull in the new files.
12605         * MODULES.html.sh (Misc): Add selinux-h.
12606
12607 2009-10-08  Jim Meyering  <meyering@redhat.com>
12608
12609         unistd: fix comment typo
12610         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12611
12612 2009-10-08  Eric Blake  <ebb9@byu.net>
12613
12614         areadlink: use SIZE_MAX consistently
12615         * modules/areadlink (Depends-on): Add stdint.
12616         * modules/areadlink-with-size (Depends-on): Likewise.
12617         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
12618         gives NULL; drop sys/types, since unistd gives size_t; and add
12619         stdint for SIZE_MAX.
12620         (SIZE_MAX): Rely on headers.
12621         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
12622         and add stdint.
12623         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
12624         (SIZE_MAX): Likewise.
12625         (INITIAL_BUF_SIZE): Turn into enum.
12626         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
12627
12628 2009-10-08  Jim Meyering  <meyering@redhat.com>
12629
12630         areadlinkat: avoid compilation failure
12631         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
12632         Fix typo in comment.
12633
12634 2009-10-07  Eric Blake  <ebb9@byu.net>
12635
12636         areadlinkat-with-size: new module
12637         * modules/areadlinkat-with-size: New module.
12638         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
12639         * lib/areadlink.h (areadlinkat): Declare it.
12640         * MODULES.html.sh (File system functions): Mention it.
12641         * modules/areadlinkat-with-size-tests: New test.
12642         * tests/test-areadlinkat-with-size.c: New file.
12643
12644         xreadlinkat: new module
12645         * modules/xreadlinkat: New module.
12646         * lib/xreadlinkat.c (xreadlinkat): New file.
12647         * lib/xreadlink.h (xreadlinkat): Declare it.
12648         * MODULES.html.sh (File system functions): Mention it.
12649
12650         areadlinkat: new module
12651         * lib/at-func.c (FUNC_FAIL): New define.
12652         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12653         * modules/areadlinkat: New module.
12654         * lib/linkat.c (areadlinkat): Move...
12655         * lib/areadlinkat.c (areadlinkat): ...to new file.
12656         * lib/areadlink.h (areadlinkat): Declare it.
12657         * modules/linkat (Depends-on): Add areadlinkat.
12658         * MODULES.html.sh (File system functions): Mention it.
12659         * modules/areadlinkat-tests: New test.
12660         * tests/test-areadlinkat.c: New file.
12661
12662         areadlink, areadlink-with-size: add tests
12663         * modules/areadlink-tests: New test.
12664         * modules/areadlink-with-size-tests: Likewise.
12665         * tests/test-areadlink.h: New file.
12666         * tests/test-areadlink.c: Likewise.
12667         * tests/test-areadlink-with-size.c: Likewise.
12668
12669         maint: minor cleanups
12670         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12671         _UNUSED_PARAMETER_ instead.
12672         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12673         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12674         * modules/linkat-tests (Files): Distribute test-link.h.
12675
12676         openat, utimens: whitespace cleanup
12677         * lib/openat.c: Prefer space throughout, rather than mix of 8
12678         spaces vs. tabs.
12679         * lib/at-func.c: Likewise.
12680         * lib/utimens.c: Likewise.
12681
12682         openat: avoid using wrong fd
12683         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12684         working directory chooses same fd.
12685         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12686
12687         mkdir, mkdirat: fix cygwin 1.5.x bug
12688         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12689         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12690         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12691         bug.
12692         (gl_PREREQ_MKDIR): Delete unused macro.
12693         * modules/mkdir (Files): Track file rename.
12694         (configure.ac): Update macro name.
12695         * modules/openat (Depends-on): Add mkdir.
12696         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12697
12698         mkdir, mkdirat: add tests
12699         * modules/mkdir-tests: New test.
12700         * tests/test-mkdir.h: New file.
12701         * tests/test-mkdir.c: Likewise.
12702         * tests/test-mkdirat.c: Likewise.
12703         * modules/openat-tests (Files): Add new files.
12704         (Makefile.am): Run new test.
12705
12706 2009-10-06  Eric Blake  <ebb9@byu.net>
12707
12708         doc: tweak *at function documentation
12709         * doc/posix-functions/faccessat.texi (faccessat): Mention
12710         known issue with replacement.
12711         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
12712         * doc/posix-functions/linkat.texi (linkat): Likewise.
12713         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12714         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12715         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12716         * doc/posix-functions/renameat.texi (renameat): Likewise.
12717         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12718
12719         openat: fix GNU/Hurd bug in unlinkat
12720         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
12721         broken.
12722         * doc/posix-functions/unlink.texi (unlink): Document this.
12723         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
12724
12725         fdopendir: fix GNU/Hurd bug
12726         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
12727         allowing non-directory fds.
12728         * lib/fdopendir.c (rpl_fdopendir): Work around it.
12729         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12730         * modules/dirent (Makefile.am): Substitute it.
12731         * lib/dirent.in.h (fdopendir): Declare replacement.
12732         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
12733         * tests/test-fdopendir.c (main): Test something other than
12734         /dev/null, since on Hurd that behaves like a directory.
12735
12736         test-symlink: port to GNU/Hurd
12737         * tests/test-symlink.h (test_symlink): Relax expected errno.
12738
12739         doc: tweak more cygwin information
12740         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
12741         now compatible with glibc.
12742         * doc/posix-functions/getopt.texi (getopt): Likewise.
12743
12744         getopt-gnu: add another test
12745         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
12746         guarantee behavior relied on by m4.
12747         * tests/test-getopt.c (main): Use it.
12748         * modules/getopt-posix-tests (Depends-on): Add setenv.
12749         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
12750
12751         getopt: fix compilation on darwin
12752         * lib/getopt.in.h (includes): Leave breadcrumbs during system
12753         include.
12754         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
12755         Reported by Ludovic Courtès.
12756
12757 2009-10-06  Bruno Haible  <bruno@clisp.org>
12758
12759         * modules/size_max (Description): Discourage its use.
12760         Reported by Simon Josefsson.
12761
12762 2009-10-06  Jim Meyering  <meyering@redhat.com>
12763
12764         linkat: avoid compilation failure
12765         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
12766
12767 2009-10-05  Eric Blake  <ebb9@byu.net>
12768
12769         linkat: support Linux 2.6.17
12770         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
12771         linkat on Linux, but allow cache variable override.
12772         * lib/linkat.c (rpl_linkat): Define override.
12773         * modules/linkat (Depends-on): Add symlinkat.
12774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
12775         * modules/unistd (Makefile.am): Substitute it.
12776         * lib/unistd.in.h (linkat): Declare replacement.
12777         Reported by Pádraig Brady.
12778
12779         quotearg: port test to systems with C.UTF-8 locale
12780         * tests/test-quotearg.c (struct result_strings): Add another
12781         member, differentiating between C.ASCII and C.UTF-8 handling.
12782         (compare_strings): Add parameter.
12783         (main): Adjust all callers.
12784
12785         getopt: avoid clash with FreeBSD _getopt_internal
12786         * lib/getopt.in.h (_getopt_internal): Override the name.
12787         * lib/getopt_int.h (includes): Pick up any overrides.
12788         Reported by Reuben Thomas.
12789
12790         hash: allow C89 compilation
12791         * lib/hash.c (check_tuning): Move declaration before statement.
12792         Reported by Reuben Thomas.
12793
12794 2009-10-05  Karl Berry  <karl@gnu.org>
12795
12796         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
12797
12798 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
12799             Bruno Haible  <bruno@clisp.org>
12800
12801         * lib/uname.c (uname): Use a table-driven algorithm to compute
12802         Windows NT versions.
12803
12804 2009-10-04  Bruno Haible  <bruno@clisp.org>
12805
12806         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
12807         program_invocation_short_name.
12808         * modules/progname (configure.ac): Test for presence of
12809         program_invocation_short_name.
12810         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
12811
12812 2009-10-04  Bruno Haible  <bruno@clisp.org>
12813
12814         * lib/progname.c (set_program_name): Fix comment.
12815         Reported by Jim Meyering.
12816
12817 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12818             Bruno Haible  <bruno@clisp.org>
12819
12820         * lib/uname.c: Include <string.h>.
12821         (uname): Do only one call to GetVersionEx in the common case.
12822
12823 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12824             Bruno Haible  <bruno@clisp.org>
12825
12826         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
12827         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
12828         (uname): Add support for Windows CE and various non-x86 CPU types.
12829
12830 2009-10-03  Bruno Haible  <bruno@clisp.org>
12831
12832         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
12833         invocation to tests/configure.ac.
12834         Reported by Ian Beckwith <ianb@erislabs.net>.
12835
12836 2009-10-02  Eric Blake  <ebb9@byu.net>
12837
12838         fchdir: avoid compiler warning
12839         * lib/fchdir.c (canonicalize_file_name)
12840         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
12841
12842         test-open: support mingw errno values
12843         * tests/test-open.h (test_open): Relax test.
12844         * tests/test-fopen.h (test_fopen): Likewise.
12845         * tests/test-openat-safer.c (main): Likewise.
12846
12847         open: fix opening directory on mingw
12848         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
12849
12850         test-open: on GNU/Hurd, /dev/null is a directory
12851         * tests/test-fopen.h (main): Rename...
12852         (test_fopen): ...to this.  Use a guaranteed non-directory when
12853         confirming open behavior on trailing slash.
12854         * tests/test-openat-safer.c (main): Likewise.
12855         * tests/test-open.h (main): Likewise....
12856         (test_open): ...to this.
12857         * tests/test-fopen.c (main): Adjust caller.
12858         * tests/test-fopen-safer.c (main): Likewise.
12859         * tests/test-open.c (main): Likewise.
12860         * tests/test-fcntl-safer.c (main): Likewise.
12861         Reported by Samuel Thibault.
12862
12863         rename, fchdir: don't ignore chdir failure
12864         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
12865         * lib/rename.c (rpl_rename) [W32]: Likewise.
12866         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
12867         an empty destination directory if source cannot be renamed,
12868         although there is still possibility for failure.
12869         * doc/posix-functions/rename.texi (rename): Document the race.
12870         Reported by Jim Meyering.
12871
12872         maint: cleanup whitespace in recent commits
12873         * lib/rename.c (rpl_rename): Remove tabs.
12874         * tests/test-link.h (test_link): Likewise.
12875         * lib/fchdir.c (get_name): Likewise.
12876         Reported by Jim Meyering.
12877
12878 2009-10-02  Ben Pfaff  <blp@gnu.org>
12879
12880         relocatable-prog-wrapper: Add missing dependency on
12881         double-slash-root.
12882         * modules/relocatable-prog-wrapper: Add dependency.
12883         Reported by Ian Beckwith <ianb@erislabs.net>.
12884
12885 2009-10-02  Eric Blake  <ebb9@byu.net>
12886
12887         renameat: fix Solaris bugs
12888         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
12889         needed fixing.
12890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
12891         * modules/stdio (Makefile.am): Substitute it.
12892         * lib/stdio.in.h (renameat): Declare replacement.
12893         * lib/renameat.c (rpl_renameat): Implement fix.
12894
12895         renameat: new module
12896         * modules/renameat: New file.
12897         * lib/renameat.c (renameat): Likewise.
12898         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
12899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
12900         * modules/stdio (Makefile.am): Substitute them.
12901         * lib/stdio.in.h (renameat): Declare it.
12902         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12903         * doc/posix-functions/renameat.texi (renameat): Likewise.
12904         * modules/renameat-tests: New test.
12905         * tests/test-renameat.c: Likewise.
12906
12907         rename: fix mingw bugs
12908         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
12909         directory overwrite bugs.
12910
12911         rename: fix another cygwin 1.5 bug
12912         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
12913         checks.
12914         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
12915         unnecessary cygwin workarounds.  Also work around bug with moving
12916         full directory onto an empty one.
12917         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
12918
12919         rename-dest-slash: merge into rename module
12920         * modules/rename-dest-slash (Status): Mark obsolete.
12921         (Depends-on): Add rename.
12922         (Files): Let rename do it all.
12923         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
12924         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
12925         * m4/rename-dest-slash.m4: ...so this file can be deleted.
12926         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
12927         * lib/rename.c (rpl_rename): Update comments.
12928
12929         rename: fix cygwin 1.5.x bugs
12930         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
12931         * lib/rename.c (rpl_rename): Work around them.
12932         * modules/rename (Depends-on): Add same-inode.
12933
12934         rename: fix Solaris 10 bug
12935         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
12936         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
12937         was the only bug.
12938
12939         rename: fix Solaris 9 bug
12940         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
12941         on non-directory.  Avoid calling exit.
12942         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
12943         strdup.
12944         * modules/rename-tests (Depends-on): Drop lstat.
12945         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
12946         (gl_PREREQ_RENAME): Delete unused macro.
12947
12948         rename-dest-slash: fix NetBSD bug
12949         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
12950         links.
12951         * modules/rename-dest-slash (Depends-on): Add same-inode.
12952
12953         rename-tests: new test, exposes several platform bugs
12954         * modules/rename-tests: New file.
12955         * tests/test-rename.h: Likewise.
12956         * tests/test-rename.c: Likewise.
12957         * doc/posix-functions/rename.texi (rename): Improve documentation,
12958         including bugs that will eventually be fixed in gnulib.
12959
12960 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
12961
12962         * lib/uname.c: Include <stdlib.h>
12963         (uname): Assume version info is available.
12964
12965 2009-10-02  Jim Meyering  <meyering@redhat.com>
12966
12967         gnu-web-doc-update: correct --help output
12968         * build-aux/gnu-web-doc-update: Make --help output relevant.
12969
12970         gnu-web-doc-update: add standard options
12971         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
12972
12973         gnu-web-doc-update: New module.
12974         Use this script to automatically update the on-line web documentation
12975         for your GNU project at http://www.gnu.org/software/$pkg/manual/
12976         * modules/gnu-web-doc-update: New file, from coreutils.
12977         * build-aux/gnu-web-doc-update: New script.
12978
12979 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
12980
12981         link: LoadLibrary is not needed.
12982         * lib/link.c: Use GetModuleHandle.
12983
12984 2009-10-01  Eric Blake  <ebb9@byu.net>
12985
12986         getopt: bump serial number
12987         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
12988         change.
12989
12990         tests: tighten link, rmdir, and remove tests
12991         * tests/test-link.h (includes): No need to use <config.h> here.
12992         Clean up if directory hard link was created, otherwise test for
12993         trailing '.'.
12994         * tests/test-linkat.c (main): Simplify.
12995         * tests/test-remove.c (main): Enhance test for trailing '.'.
12996         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12997
12998 2009-10-01  Jim Meyering  <meyering@redhat.com>
12999
13000         maint.mk: requiring "make major" was annoying, for a "minor" release.
13001         What is intended is "stable", to contrast with alpha and beta,
13002         so require "make stable", not "make major".
13003         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13004         (get_tool_versions): Likewise.
13005         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13006
13007 2009-09-30  Ben Pfaff  <blp@gnu.org>
13008
13009         Fix broken build of replacement for Windows tmpfile().
13010         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13011         flags argument added along with the 'mkostemp' module.
13012
13013 2009-09-28  Bruno Haible  <bruno@clisp.org>
13014
13015         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13016         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13017         to 'remove_elt'.
13018         (gl_list_remove): Update.
13019         * lib/gl_list.c (gl_list_remove): Update.
13020         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13021         to 'remove_elt'.
13022         (gl_oset_remove): Update.
13023         * lib/gl_list.c (gl_oset_remove): Update.
13024         Reported by Eric Blake.
13025
13026 2009-09-28  Eric Blake  <ebb9@byu.net>
13027
13028         doc: mention yet more cygwin 1.7 status
13029         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13030         cygwin.
13031         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13032         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13033
13034         argp: fix test failure
13035         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13036         that are not upper-case.  Pass correct range to tolower.
13037
13038 2009-09-27  Jim Meyering  <meyering@redhat.com>
13039
13040         test-yesno: work around sparc-dash here-document infelicity
13041         Without this change, the literal \177 byte in a here document
13042         would make dash 0.5.5.1-3 access uninitialized memory.
13043         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13044         Instead, use a marker, "@", and filter through tr to create the desired
13045         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13046
13047 2009-09-27  Bruno Haible  <bruno@clisp.org>
13048
13049         Disable untested support for new flavours of ACLs on AIX.
13050         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13051         progress.
13052         * lib/set-mode-acl.c (qset_acl): Likewise.
13053
13054 2008-12-07  Bruno Haible  <bruno@clisp.org>
13055
13056         Add support for new flavours of ACLs on AIX. (Untested.)
13057         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13058         (file_has_acl): Add support for newer AIX.
13059         * lib/set-mode-acl.c (qset_acl): Likewise.
13060         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13061         Rainer Tammer <tammer@tammer.net>.
13062
13063 2009-09-26  Eric Blake  <ebb9@byu.net>
13064
13065         argp: fix compilation of getopt
13066         * lib/getopt.in.h (includes): Use different guard than glibc.
13067         Reported by Sergey Poznyakoff.
13068
13069         doc: mention more cygwin 1.7 status
13070         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13071         bug.
13072         * doc/posix-functions/execl.texi (execl): Likewise.
13073         * doc/posix-functions/execle.texi (execle): Likewise.
13074         * doc/posix-functions/execlp.texi (execlp): Likewise.
13075         * doc/posix-functions/execv.texi (execv): Likewise.
13076         * doc/posix-functions/execve.texi (execve): Likewise.
13077         * doc/posix-functions/execvp.texi (execvp): Likewise.
13078         * doc/glibc-functions/canonicalize_file_name.texi
13079         (canonicalize_file_name): Cygwin 1.7 now provides this.
13080         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13081         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13082         on AT_SYMLINK_NOFOLLOW.
13083
13084 2009-09-24  Eric Blake  <ebb9@byu.net>
13085
13086         test-linkat: make test more robust
13087         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13088
13089         getopt: fix inclusion guards for cygwin
13090         * modules/getopt-posix (Depends-on): Add include-next.
13091         (Makefile.am): Substitute more items in replacement header.
13092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13093         <getopt.h>.
13094         * lib/getopt.in.h (includes): Use split inclusion guard, and
13095         prefer <getopt.h> over include <unistd.h> when one is present.
13096         (option): Also override name of 'struct option'.
13097
13098         same-inode: revert prior change; it is not yet ready
13099         * NEWS: Undo mention of this change.
13100         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13101         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13102         * lib/cycle-check.c (cycle_check): Likewise.
13103         * lib/same.c (same_name): Likewise.
13104         * lib/at-func2.c (at_func2): Likewise.
13105
13106 2009-09-23  Eric Blake  <ebb9@byu.net>
13107
13108         linkat: new module
13109         * modules/linkat: New file.
13110         * lib/at-func2.c (at_func2): Likewise.
13111         * lib/linkat.c (linkat): Likewise.
13112         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13113         * lib/openat-priv.h (at_func2): Add declaration.
13114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13115         * modules/unistd (Makefile.am): Substitute them.
13116         * lib/unistd.in.h (linkat): Declare it.
13117         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13118         * doc/posix-functions/linkat.texi (linkat): Likewise.
13119         * doc/posix-functions/link.texi (link): Tweak wording.
13120         * tests/test-link.c (main): Move guts...
13121         * tests/test-link.h (test_link): ...into new file.
13122         * modules/linkat-tests: New test.
13123         * tests/test-linkat.c: Likewise.
13124         * modules/link-tests (Files): Ship new file.
13125         (Depends-on): Add stdbool.
13126
13127         dirname: add library-safe mdir_name
13128         * lib/dirname.h (mdir_name): New prototype.
13129         * lib/dirname.c (dir_name): Move guts...
13130         (mdir_name): ...to new function that avoids xalloc_die.
13131
13132         fchdir: another mingw fix
13133         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13134         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13135         on mingw (where it has not yet been ported), and make it optional
13136         elsewhere.
13137         (_gl_register_fd): Use it.
13138
13139         same-inode: make SAME_INODE tri-state, to port to mingw
13140         * NEWS: Mention this change.
13141         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13142         st_ino always being 0.
13143         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13144         * lib/cycle-check.c (cycle_check): Likewise.
13145         * lib/same.c (same_name): Likewise.
13146
13147         lstat: avoid mingw compilation error
13148         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13149         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13150         lstat ourselves.
13151         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13152         was adequate.
13153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13154         the checks for lstat.
13155         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13156
13157         link: fix test failure on Solaris 9
13158         * lib/link.c (rpl_link): Don't assume link will catch bogus
13159         trailing slash on source.
13160
13161         test-symlinkat: enhance test
13162         * tests/test-readlink.c (main): Move guts...
13163         * tests/test-readlink.h (test_readlink): ...into new file.
13164         * tests/test-symlink.c (main): Move guts...
13165         * tests/test-symlink.h (test_symlink): ...into new file.
13166         * tests/test-symlinkat.c (main): Use new files for further
13167         coverage.
13168         (do_symlink, do_readlink): New helper functions.
13169         * modules/symlink-tests (Files): Ship new file.
13170         (Depends-on): Add stdbool.
13171         * modules/readlink-tests (Files): Ship new file.
13172         (Depends-on): Add stdbool.
13173         * modules/symlinkat-tests (Files): Use new files.
13174
13175 2009-09-23  Eric Blake  <ebb9@byu.net>
13176
13177         readlink: document portability issue with symlink length
13178         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13179         systems have bogus st_size on symlinks, and mention the
13180         areadlink-with-size module.
13181         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13182         * doc/posix-functions/readlink.texi (readlink): Mention the
13183         areadlink module, and ERANGE failure.
13184         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13185         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13186
13187         readlink: fix Solaris 9 bug with trailing slash
13188         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13189         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13190         * doc/posix-functions/readlink.texi (readlink): Document this.
13191         * modules/readlink-tests: New test.
13192         * tests/test-readlink.c: Likewise.
13193
13194         readlink: fix cygwin 1.5.x bug with return type
13195         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13196         * lib/unistd.in.h (readlink): Use ssize_t.
13197         * lib/readlink.c (readlink): Likewise.
13198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13199         * modules/unistd (Makefile.am): Substitute it.
13200         * lib/unistd.in.h (readlink): Declare replacement.
13201         * doc/posix-functions/readlink.texi (readlink): Document this.
13202
13203         symlink: use throughout gnulib
13204         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13205         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13206         symlink is not used.
13207         * modules/symlinkat (Depends-on): Add symlink.
13208         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13209         * modules/canonicalize-tests (Depends-on): Likewise.
13210         * modules/lstat-tests (Depends-on): Likewise.
13211         * modules/openat-tests (Depends-on): Likewise.
13212         * modules/remove-tests (Depends-on): Likewise.
13213         * modules/rmdir-tests (Depends-on): Likewise.
13214         * modules/unlink-tests (Depends-on): Likewise.
13215         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13216         * tests/test-canonicalize.c (symlink): Likewise.
13217         * tests/test-fstatat.c (symlink): Likewise.
13218         * tests/test-lstat.c (symlink): Likewise.
13219         * tests/test-remove.c (symlink): Likewise.
13220         * tests/test-rmdir.c (symlink): Likewise.
13221         * tests/test-unlink.c (symlink): Likewise.
13222         * tests/test-unlinkat.c (symlink): Likewise.
13223
13224         symlink: new module, for Solaris 9 bug
13225         * modules/symlink: New file.
13226         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13227         * lib/symlink.c: Likewise.
13228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13229         * modules/unistd (Makefile.am): Substitute them.
13230         * lib/unistd.in.h (symlink): Declare replacement.
13231         * MODULES.html.sh (File system functions): Mention it.
13232         * doc/posix-functions/symlink.texi (symlink): Likewise.
13233         * modules/symlink-tests: New test.
13234         * tests/test-symlink.c: Likewise.
13235
13236 2009-09-23  Bruno Haible  <bruno@clisp.org>
13237
13238         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13239         when needed.
13240         Test case: gnulib-tool --import --with-tests atexit inttypes.
13241         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13242
13243 2009-09-23  Bruno Haible  <bruno@clisp.org>
13244
13245         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13246         subcommand, not in a subshell.
13247
13248 2009-09-22  Eric Blake  <ebb9@byu.net>
13249
13250         unistd: sort replacement declarations
13251         * lib/unistd.in.h: Sort declarations.
13252
13253         open, openat: minor optimization
13254         * lib/open.c (open): If open succeeded, len is non-zero.
13255         * lib/openat.c (rpl_openat): Likewise.
13256
13257         link-follow: ensure correct result
13258         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13260         distinguish between possible failures.
13261
13262 2009-09-21  Eric Blake  <ebb9@byu.net>
13263
13264         fts: avoid compiler warning
13265         * lib/fts.c (dirent_inode_sort_may_be_useful)
13266         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13267
13268 2009-09-19  Bruno Haible  <bruno@clisp.org>
13269
13270         * lib/progreloc.c (canonicalize_file_name): New declaration.
13271
13272 2009-09-19  Eric Blake  <ebb9@byu.net>
13273
13274         link: fix quoting
13275         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13276
13277         openat: fix openat bugs on Solaris 9
13278         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13279         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13280         * modules/openat (Depends-on): Add open.
13281         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13282         * modules/fcntl-h (Makefile.am): Substitute it.
13283         * lib/fcntl.in.h (openat): Declare replacement.
13284         * doc/posix-functions/openat.texi (openat): Document this.
13285
13286         openat: move fstatat and unlinkat into correct files
13287         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13288         compiled.
13289         * lib/openat.c (fstatat, unlinkat): Move...
13290         * lib/fstatat.c (fstatat): ...into correct files.
13291         * lib/unlinkat.c (unlinkat): Likewise.
13292
13293         openat: fix unlinkat bugs on Solaris 9
13294         * lib/unlinkat.c (unlinkat): New file.
13295         * modules/openat (Depends-on): Add unlink.
13296         (Files): Distribute it.
13297         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13298         trailing slash behavior is broken.
13299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13300         * modules/unistd (Makefile.am): Substitute it.
13301         * lib/unistd.in.h (unlinkat): Declare replacement.
13302         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13303
13304         openat: fix fstatat bugs on Solaris 9
13305         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13306         stat.
13307         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13308
13309         test-unlinkat: enhance test, to expose Solaris 9 bug
13310         * tests/test-unlink.c (main): Factor guts...
13311         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13312         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13313         * tests/test-rmdir.c (main): Adjust caller.
13314         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13315         (unlinker): New helper function.
13316         (rmdirat): Enhance check.
13317         * modules/rmdir-tests (Depends-on): Add stdbool.
13318         * modules/unlink-tests (Depends-on): Likewise.
13319         (Files): Add test-unlink.h.
13320         * modules/openat-tests (Files): Likewise.
13321         (Depends-on): Add unlinkdir.
13322
13323         test-fstatat: new test, to expose Solaris 9 bugs
13324         * tests/test-stat.c (main): Factor guts...
13325         * tests/test-stat.h (test_stat_func): ...into new file.
13326         * tests/test-lstat.c (main): Factor guts...
13327         * tests/test-lstat.h (test_lstat_func): ...into new file.
13328         * tests/test-fstatat.c: New file.
13329         * modules/stat-tests (Files): Add test-stat.h.
13330         * modules/lstat-tests (Files): Add test-lstat.h.
13331         (Depends-on): Add stdbool.
13332         * modules/openat-tests (Depends-on): Add pathmax.
13333         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13334         (Makefile.am): Run new test.
13335
13336         remove: new module, for mingw and Solaris 9 bugs
13337         * modules/remove: New file.
13338         * lib/remove.c: Likewise.
13339         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13341         * modules/stdio (Makefile.am): Use them.
13342         * lib/stdio.in.h (remove): Declare replacement.
13343         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13344         * doc/posix-functions/remove.texi (remove): Likewise.
13345         * modules/remove-tests: New test.
13346         * tests/test-remove.c: Likewise.
13347
13348         unlink: new module, for Solaris 9 bug
13349         * modules/unlink: New file.
13350         * lib/unlink.c: Likewise.
13351         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13353         * modules/unistd (Makefile.am): Use them.
13354         * lib/unistd.in.h (stat): Declare replacement.
13355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13356         * doc/posix-functions/unlink.texi (unlink): Likewise.
13357         * modules/unlink-tests: New test.
13358         * tests/test-unlink.c: Likewise.
13359
13360         lstat: fix Solaris 9 bug
13361         * lib/lstat.c (lstat): Also check for trailing slash on
13362         non-symlink, non-directories.  Use stat module to simplify logic.
13363         * doc/posix-functions/lstat.texi (lstat): Document it.
13364         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13365         (configure.ac): Check for symlink.
13366         * tests/test-lstat.c (main): Add more tests.
13367
13368         stat: add as dependency to other modules
13369         * modules/chown (Depends-on): Add stat.
13370         * modules/euidaccess (Depends-on): Likewise.
13371         * modules/fchdir (Depends-on): Likewise.
13372         * modules/isdir (Depends-on): Likewise.
13373         * modules/link (Depends-on): Likewise.
13374         * modules/lstat (Depends-on): Likewise.
13375         * modules/mkdir-p (Depends-on): Likewise.
13376         * modules/modechange (Depends-on): Likewise.
13377         * modules/open (Depends-on): Likewise.
13378         * modules/readlink (Depends-on): Likewise.
13379         * modules/same (Depends-on): Likewise.
13380
13381         stat: fix Solaris 9 bug
13382         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13383         slash.
13384         * lib/stat.c (rpl_stat): Work around it.
13385         * doc/posix-functions/stat.texi (stat): Update documentation.
13386
13387         stat: new module, for mingw bug
13388         * modules/stat: New file.
13389         * lib/stat.c: Likewise.
13390         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13392         * modules/sys_stat (Makefile.am): Use them.
13393         * lib/sys_stat.in.h (stat): Declare replacement.
13394         * lib/openat.c (fstatat): Deal with lstat and stat being function
13395         macros.
13396         * modules/openat (Depends-on): Add inline.
13397         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13398         * doc/posix-functions/stat.texi (stat): Likewise.
13399         * modules/stat-tests: New test.
13400         * tests/test-stat.c: Likewise.
13401
13402 2009-09-19  Jim Meyering  <meyering@redhat.com>
13403
13404         syntax-check: detect unnecessary inclusion of canonicalize.h
13405         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13406
13407 2009-09-19  Eric Blake  <ebb9@byu.net>
13408
13409         canonicalize-lgpl: adjust clients to use correct header
13410         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13411         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13412         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13413         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13414         * lib/progreloc.c (includes): Likewise.
13415
13416 2009-09-19  Jim Meyering  <meyering@redhat.com>
13417
13418         test-posixtm.c: correct a comment
13419         * tests/test-posixtm.c: Correct first-line comment.
13420         Spotted by Eric Blake.
13421
13422 2009-09-16  Jim Meyering  <meyering@redhat.com>
13423
13424         posixtm-tests: make T const-correct; add a test case
13425         * tests/test-posixtm.c (T): Declare const.
13426         Add a test for -(2^31+1).
13427         Remove useless can-succeed-only-in-2002 test.
13428
13429         posixtm-tests: adjust the sole failing test
13430         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13431         expected output matches what mktime now produces.  Cross-checked via
13432         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13433
13434         posixtm: move #ifdef'd tests into a new module
13435         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13436         * tests/test-posixtm.c: ... this new file.
13437         * modules/posixtm-tests: New module.
13438
13439 2009-09-19  Eric Blake  <ebb9@byu.net>
13440
13441         openat: simplify use of at-func.c
13442         * lib/at-func.c (includes): Include prerequisites here, to
13443         simplify requirements on client files.
13444         * lib/openat-priv.h: Add double-inclusion guard.
13445         * lib/faccessat.c (includes): Simplify.
13446         * lib/fchmodat.c (includes): Likewise.
13447         * lib/fchownat.c (includes): Likewise.
13448         * lib/mkdirat.c (includes): Likewise.
13449         * lib/mkfifoat.c (includes): Likewise.
13450         * lib/symlinkat.c (includes): Likewise.
13451
13452         openat: allow return of fd 0
13453         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13454         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13455         unistd-safer.
13456         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13457         <fcntl.h>; this module does not leak fds.
13458         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13459         must be allowed to return 0, leaving openat_safer to add the
13460         safety.
13461         (openat_permissive): Avoid writing to just-opened fd 2 if
13462         restoring the current directory fails.
13463         * lib/openat-die.c (openat_restore_fail): Add comment.
13464         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13465         (save_cwd): Guarantee safe fd, but without use of open_safer.
13466         * tests/test-openat.c: New test.
13467         * modules/openat-tests (Files, Makefile.am): Distribute and build
13468         new file.
13469
13470         relocatable-prog-wrapper: fix build
13471         * modules/relocatable-prog-wrapper (Files): Update name of
13472         canonicalize m4 file, broken on 2009-09-17.
13473         Reported by emad hajjar <aleppos@hotmail.com>.
13474
13475 2009-09-19  Bruno Haible  <bruno@clisp.org>
13476
13477         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13478         * lib/safe-alloc.c: Likewise.
13479         Reported by Ian Beckwith <ianb@erislabs.net>.
13480
13481 2009-09-18  Bruno Haible  <bruno@clisp.org>
13482
13483         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13484         Reported by <erobles@sensacd.com.mx>.
13485
13486 2009-09-17  Eric Blake  <ebb9@byu.net>
13487
13488         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13489         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13490         slashes when checking if last component is missing.
13491         * tests/test-canonicalize.c (main): Test this.
13492
13493         canonicalize, canonicalize-lgpl: honor // if distinct from /
13494         * modules/canonicalize (Files): Add double-slash-root.m4.
13495         * modules/canonicalize-lgpl (Files): Likewise.
13496         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13497         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13498         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13499         fallback definition.
13500         (canonicalize_filename_mode): Use it to protect //.
13501         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13502         (__realpath): Likewise.
13503         * tests/test-canonicalize.c (main): Test this.
13504         * tests/test-canonicalize-lgpl.c (main): Likewise.
13505         * modules/canonicalize-tests (Depends-on): Add same-inode.
13506         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13507
13508         canonicalize-lgpl: fix glibc bug with trailing slash
13509         * m4/canonicalize-lgpl.m4: Move contents...
13510         * m4/canonicalize.m4: ...here.
13511         (gl_CANONICALIZE_LGPL): Factor realpath check...
13512         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13513         glibc 2.3.5 bug, fixed 2005-04-27.
13514         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13515         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13516         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13517         * modules/canonicalize-lgpl (Files): Manage file rename.
13518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13519         * modules/stdlib (Makefile.am): Substitute witness.
13520         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13521         is needed.
13522         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13523         replacement is required.
13524         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13525         * doc/glibc-functions/canonicalize_file_name.texi
13526         (canonicalize_file_name): Document this.
13527         * doc/posix-functions/realpath.texi (realpath): Likewise.
13528
13529         canonicalize-lgpl: reject non-directory with trailing slash
13530         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13531         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13532         catches failures in glibc 2.3.5.
13533         * tests/test-canonicalize.c (main): Likewise.
13534
13535         canonicalize-lgpl: use native realpath if it works
13536         * lib/canonicalize-lgpl.c (realpath): Guard with
13537         FUNC_REALPATH_WORKS.
13538         * lib/stdlib.in.h (realpath): Make declaration optional based on
13539         HAVE_REALPATH.
13540         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13541         native realpath works.
13542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13543         * modules/stdlib (Makefile.am): Substitute witness.
13544
13545         canonicalize, canonicalize-lgpl: use <stdlib.h>
13546         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13547         (Include): Mention <stdlib.h>.
13548         (configure.ac): Mention functions we provide.
13549         * modules/canonicalize (configure.ac): Likewise.
13550         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13551         realpath if canonicalize_file_name is missing.
13552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13553         * modules/stdlib (Makefile.am): Substitute witnesses.
13554         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13555         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13556         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13557         * NEWS: Document this.
13558         * doc/glibc-functions/canonicalize_file_name.texi
13559         (canonicalize_file_name): Likewise.
13560         * doc/posix-functions/realpath.texi (realpath): Likewise.
13561         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13562
13563         test-canonicalize: consolidate into single C program
13564         * tests/test-canonicalize.sh: Delete; move setup into...
13565         * tests/test-canonicalize.c (main): ...the program, making it
13566         easier to run in debugger.  Add some tests.
13567         * modules/canonicalize-tests (Files): Remove unused file.
13568         (Depends-on): Add progname.
13569         (configure.ac, Makefile.am): Simplify.
13570
13571         test-canonicalize-lgpl: consolidate into single C program
13572         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13573         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13574         easier to run in debugger.  Add some tests.
13575         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13576         (configure.ac, Makefile.am): Simplify.
13577
13578         canonicalize: avoid resolvepath
13579         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13580         unnecessary checks.
13581         * lib/canonicalize.c (includes): Simplify.
13582         (canonicalize_file_name): Drop resolvepath implementation.
13583         * modules/canonicalize (Depends-on): Drop filenamecat.
13584
13585         canonicalize: don't lose errno
13586         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13587         over calls to free.
13588
13589         canonicalize: simplify errno handling
13590         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13591         assignment.
13592
13593         canonicalize, canonicalize-lgpl: update module dependencies
13594         * modules/canonicalize (Depends-on): Add extensions, lstat,
13595         pathmax, stdlib.
13596         (Files): Drop pathmax.h.
13597         (configure.ac): Adjust macro name.
13598         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13599         lstat, stdlib, sys_stat.
13600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13601         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13602         extensions.
13603         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13604         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13605         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13606         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13607         declaration, if available.
13608         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13609         we can rely on the readlink module.
13610         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13611         (includes): Use <unistd.h> unconditionally.
13612
13613 2009-09-17  Eric Blake  <ebb9@byu.net>
13614
13615         maint: make Include sections of modules consistent
13616         * modules/alloca: Use only header name; no need to list #include.
13617         * modules/alloca-opt: Likewise.
13618         * modules/arpa_inet: Likewise.
13619         * modules/canon-host: Likewise.
13620         * modules/configmake: Likewise.
13621         * modules/dirent: Likewise.
13622         * modules/eealloc: Likewise.
13623         * modules/environ: Likewise.
13624         * modules/fchdir: Likewise.
13625         * modules/fcntl: Likewise.
13626         * modules/fcntl-h: Likewise.
13627         * modules/gethrxtime: Likewise.
13628         * modules/gettime: Likewise.
13629         * modules/ignore-value: Likewise.
13630         * modules/inet_ntop: Likewise.
13631         * modules/inet_pton: Likewise.
13632         * modules/inttypes: Likewise.
13633         * modules/isnand-nolibm: Likewise.
13634         * modules/isnanf-nolibm: Likewise.
13635         * modules/mbchar: Likewise.
13636         * modules/mbfile: Likewise.
13637         * modules/mbiter: Likewise.
13638         * modules/mbuiter: Likewise.
13639         * modules/netdb: Likewise.
13640         * modules/netinet_in: Likewise.
13641         * modules/nproc: Likewise.
13642         * modules/pagealign_alloc: Likewise.
13643         * modules/poll: Likewise.
13644         * modules/printf-frexp: Likewise.
13645         * modules/pthread: Likewise.
13646         * modules/putenv: Likewise.
13647         * modules/random_r: Likewise.
13648         * modules/relocatable-prog: Likewise.
13649         * modules/search: Likewise.
13650         * modules/select: Likewise.
13651         * modules/selinux-h: Likewise.
13652         * modules/settime: Likewise.
13653         * modules/signal: Likewise.
13654         * modules/size_max: Likewise.
13655         * modules/socklen: Likewise.
13656         * modules/ssize_t: Likewise.
13657         * modules/stdarg: Likewise.
13658         * modules/stdbool: Likewise.
13659         * modules/stddef: Likewise.
13660         * modules/stdint: Likewise.
13661         * modules/stdio: Likewise.
13662         * modules/stdlib: Likewise.
13663         * modules/string: Likewise.
13664         * modules/strings: Likewise.
13665         * modules/sys_file: Likewise.
13666         * modules/sys_ioctl: Likewise.
13667         * modules/sys_select: Likewise.
13668         * modules/sys_socket: Likewise.
13669         * modules/sys_stat: Likewise.
13670         * modules/sys_time: Likewise.
13671         * modules/sys_times: Likewise.
13672         * modules/sys_utsname: Likewise.
13673         * modules/sys_wait: Likewise.
13674         * modules/sysexits: Likewise.
13675         * modules/time: Likewise.
13676         * modules/times: Likewise.
13677         * modules/tmpfile: Likewise.
13678         * modules/trim: Likewise.
13679         * modules/unistd: Likewise.
13680         * modules/wchar: Likewise.
13681         * modules/wctype: Likewise.
13682
13683 2009-09-17  Bruno Haible  <bruno@clisp.org>
13684
13685         Make getdate.y compile on QNX and NetBSD 5 / i386.
13686         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13687         TIME_T_FITS_IN_LONG_INT.
13688         * lib/getdate.y (long_time_t): New type.
13689         (relative_time): Change type of 'seconds' field to long_time_t.
13690         (get_date): Update types of local variables. Check against overflow
13691         during conversion from long_time_t to time_t.
13692         Reported by Matt Kraai <kraai@ftbfs.org>
13693         and Hasso Tepper <hasso@netbsd.org>.
13694
13695 2009-09-17  Bruno Haible  <bruno@clisp.org>
13696
13697         * modules/COPYING: Update copyright years.
13698         * modules/README: Likeiwse.
13699         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13700         Reported by Ian Beckwith <ianb@erislabs.net>.
13701
13702 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13703
13704         * users.txt: Update references for gnuit package.
13705
13706 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13707
13708         * m4/getdelim.m4: Fix typo in copyright line.
13709
13710 2009-09-17  Bruno Haible  <bruno@clisp.org>
13711
13712         * lib/atoll.c: Use the standard header with GPL copyright.
13713         * lib/argz.in.h: Likewise.
13714         * lib/glob.c: Likewise.
13715         * lib/glob-libc.h: Likewise.
13716         * lib/random_r.c: Likewise.
13717         * lib/siglist.h: Likewise.
13718         * lib/strsignal.c: Likewise.
13719         Reported by Ian Beckwith <ianb@erislabs.net>.
13720
13721 2009-09-17  Eric Blake  <ebb9@byu.net>
13722
13723         rmdir: ensure correct dependency order
13724         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
13725
13726 2009-09-17  Bruno Haible  <bruno@clisp.org>
13727
13728         Disable assertion that fails on NetBSD 5 / i386.
13729         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
13730         Reported by Sam Steingold <sds@gnu.org>
13731         and Hasso Tepper <hasso@netbsd.org>.
13732
13733 2009-09-16  Eric Blake  <ebb9@byu.net>
13734
13735         unlinkdir: port to mingw
13736         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
13737         on which no one can unlink a directory.
13738
13739         stdlib: sort witness names
13740         * modules/stdlib (Makefile.am): Sort replacements.
13741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
13742         * lib/stdlib.in.h: Likewise.
13743
13744         parse-duration-tests: avoid link failure
13745         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
13746         LIBINTL.
13747         Reported by Tom G. Christensen.
13748
13749         openat-tests: ensure unlinkat behaves like rmdir
13750         * tests/test-rmdir.c (main): Factor guts...
13751         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
13752         * modules/rmdir-tests (Files): Ship new file.
13753         * modules/openat-tests: New test.
13754         * tests/test-unlinkat.c: Likewise.
13755
13756         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
13757         * modules/rmdir-errno (Status, Notice): Now obsolete.
13758
13759         rmdir: work around cygwin 1.5.x and mingw bugs
13760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
13761         * lib/rmdir.c (rmdir): Work around it.
13762         * modules/rmdir (Status, Notice): No longer obsolete.
13763         (Files): Add dos.m4.
13764         (Depends-on): Add unistd.
13765         (configure.ac): Set witnesses.
13766         (License): Relax to LGPLv2+.
13767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
13768         * modules/unistd (Makefile.am): Substitute witnesses.
13769         * lib/unistd.in.h (rmdir): Declare replacement.
13770         * doc/posix-functions/rmdir.texi (rmdir): Document this.
13771         * modules/rmdir-tests: New tests.
13772         * tests/test-rmdir.c: Likewise.
13773
13774 2009-09-15  Eric Blake  <ebb9@byu.net>
13775
13776         fchdir: improve use of replacement functions
13777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
13778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
13779         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
13780         REPLACE_CLOSEDIR.
13781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
13782         * modules/sys_stat (Makefile.am): Substitute correct witness.
13783         * modules/dirent (Makefile.am): Likewise.
13784         * modules/unistd (Makefile.am): Likewise.
13785         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
13786         * lib/unistd.in.h (dup): Likewise.
13787         * lib/sys_stat.in.h (fstat): Likewise.
13788
13789         maint: ignore gnulib-tool temp files
13790         * .gitignore: Ignore files created during gnulib-tool --test.
13791
13792 2009-09-13  Jim Meyering  <meyering@redhat.com>
13793
13794         posixtm: don't reject a time that specify "60" as the number of seconds
13795         * lib/posixtm.c (posixtime): The code to reject invalid dates
13796         would also reject a time specified with the .60 suffix.
13797         But POSIX allows that, in order to accommodate leap seconds.
13798         So don't reject it.
13799         (main): Adjust tests accordingly.
13800         * modules/posixtm (Depends-on): Add stpcpy.
13801
13802 2009-09-11  Jim Meyering  <meyering@redhat.com>
13803
13804         announce-gen: include [$release_type] in emitted Subject:
13805         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
13806         e.g., [stable] in the emitted Subject: line.
13807
13808 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13809
13810         Remove obsolete macros from several modules.
13811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
13812         obsolete Autoconf macros with their modern counterparts.
13813         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
13814         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
13815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
13816         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
13817         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
13818         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13820         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13821         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13822         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
13823         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13825         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13826         * m4/sockets.m4 (gl_SOCKETS): Likewise.
13827         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
13828         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
13829         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13830         * m4/time_r.m4 (gl_TIME_R): Likewise.
13831         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13832         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
13833         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13834
13835         Fix copyright header in build-aux scripts.
13836         * build-aux/git-version-gen: Fix copyright header to match GPLv3
13837         recommendation.
13838         * build-aux/ncftpput-ftp: Likewise.
13839         * build-aux/update-copyright: Likewise.
13840
13841 2009-09-09  Eric Blake  <ebb9@byu.net>
13842
13843         test-link: allow Linux choice of errno
13844         * tests/test-link.c (main): Relax test for alternate error.
13845
13846         strndup: fix improper m4 caching
13847         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
13848         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
13849         (gl_PREREQ_STRNDUP): Delete.
13850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
13851         * modules/string (Makefile.am): Substitute it.
13852         * lib/string.in.h (strndup): Modernize prototype.
13853
13854         getcwd: port to mingw
13855         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
13856         different from the POSIX assumptions made throughout the getcwd
13857         module; fortunately, the mingw getcwd does not need replacement.
13858         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
13859         * modules/getcwd-tests: New test.
13860         * tests/test-getcwd.c: Likewise.
13861
13862         link: fix platform bugs
13863         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
13864         * lib/link.c (link): Work around them.  Fix related mingw bug.
13865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
13866         * modules/unistd (Makefile.am): Substitute it.
13867         * lib/unistd.in.h (link): Declare replacement.
13868         * doc/posix-functions/link.texi (link): Document this.
13869         * modules/link (Depends-on): Add strdup-posix, sys_stat.
13870
13871         test-link: consolidate into single C program, test more cases
13872         * tests/test-link.sh: Delete.
13873         * tests/test-link.c: Test more error conditions.  Exposes bugs on
13874         at least Cygwin and Solaris.
13875         * modules/link-tests (Files): Remove unused file.
13876         (Depends-on): Add errno, sys_stat.
13877         (Makefile.am): Simplify.
13878
13879 2009-09-08  Bruno Haible  <bruno@clisp.org>
13880
13881         Work around towlower, towupper bug on mingw.
13882         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
13883         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
13884         * doc/posix-functions/towlower.texi: Mention the mingw bug.
13885         * doc/posix-functions/towupper.texi: Likewise.
13886         Reported by Eric Blake.
13887
13888 2009-09-08  Jim Meyering  <meyering@redhat.com>
13889
13890         build: don't try to run autoheader if we don't use it
13891         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
13892         is not used in configure.ac.
13893
13894 2009-09-08  Eric Blake  <ebb9@byu.net>
13895
13896         euidaccess: fix compilation error
13897         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
13898
13899         rawmemchr: relax license
13900         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
13901         okay.
13902         Reported by Jim Meyering.
13903
13904         mkfifoat: new module
13905         * modules/mkfifoat: New file.
13906         * lib/mkfifoat.c: Likewise.
13907         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
13908         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13909         * modules/sys_stat (Makefile.am): Use them.
13910         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
13911         * MODULES.html.sh (File system functions): Mention module.
13912         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13913         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13914         * modules/mkfifoat-tests: New test.
13915         * tests/test-mkfifoat.c: Likewise.
13916
13917         strchrnul: relax license
13918         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
13919         okay.
13920         Reported by Jim Meyering.
13921
13922 2009-09-08  Eric Blake  <ebb9@byu.net>
13923
13924         fstatat: fix compilation on Solaris
13925         * lib/fstatat.c (includes): Add fcntl.h.
13926         Reported by Pádraig Brady.
13927
13928 2009-09-07  Eric Blake  <ebb9@byu.net>
13929
13930         rename: modernize replacement
13931         * modules/rename (Depends-on): Add stdio.
13932         (configure.ac): Declare witness.
13933         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
13934         stdio take care of replacement.
13935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13936         * modules/stdio (Makefile.am): Substitute them.
13937         * lib/stdio.in.h (rename): Declare replacement.
13938         * lib/rename.c (includes): Allow cross-compilation to non-windows
13939         machines.
13940         * doc/posix-functions/rename.texi (rename): Improve
13941         documentation.
13942
13943         stdio: sort witness names
13944         * modules/stdio (Makefile.am): Sort replacements.
13945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13946         * lib/stdio.in.h: Likewise.
13947
13948         getcwd: minor cleanups
13949         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
13950         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
13951
13952         openat: provide more convenience names
13953         * modules/faccessat (configure.ac): Add C witness.
13954         * lib/unistd.in.h (readlinkat): Fix typo.
13955         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
13956         convenience wrappers.
13957         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
13958         wrappers in syntax checks.
13959
13960 2009-09-06  Eric Blake  <ebb9@byu.net>
13961
13962         doc: fix comments in recent patches
13963         * lib/faccessat.c: Mention correct function.
13964         * lib/fchmodat.c: Likewise.
13965         * lib/fchownat.c: Likewise.
13966         * lib/symlinkat.c: Likewise.
13967         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
13968         constants.
13969
13970         faccessat, symlinkat: continue cleanup of previous patch
13971         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
13972         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
13973         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
13974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
13975         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
13976         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
13977         set.
13978
13979 2009-09-06  Bruno Haible  <bruno@clisp.org>
13980
13981         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
13982         (fstatat): Declare if GNULIB_FSTATAT is set.
13983         (mkdirat): Declare if GNULIB_MKDIRAT is set.
13984         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
13985         (unlinkat): Declare if GNULIB_UNLINKAT is set.
13986         * modules/fcntl-h (Files): Remove m4/openat.m4.
13987         * modules/sys_stat (Files): Remove m4/openat.m4.
13988         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
13989         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
13990         * modules/unistd (Files): Remove m4/openat.m4.
13991         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
13992         GNULIB_OPENAT.
13993         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
13994         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
13995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
13996         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
13997         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
13998         gl_OPENAT_DEFAULTS.
13999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14000         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14001         Don't require gl_OPENAT_DEFAULTS.
14002         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14003         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14004         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14005         (gl_OPENAT_DEFAULTS): Remove macro.
14006
14007 2009-09-06  Bruno Haible  <bruno@clisp.org>
14008
14009         * modules/openat (configure.ac): Remove unneeded witness.
14010
14011 2009-09-06  Bruno Haible  <bruno@clisp.org>
14012
14013         Set errno to ENOSYS when a function is entirely unsupported.
14014         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14015         EOPNOTSUPP.
14016         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14017         * modules/chown (Depends-on): Remove errno.
14018
14019 2009-09-06  Bruno Haible  <bruno@clisp.org>
14020
14021         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14022
14023 2009-09-06  Bruno Haible  <bruno@clisp.org>
14024
14025         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14026
14027 2009-09-06  Ben Pfaff  <blp@gnu.org>
14028             Bruno Haible  <bruno@clisp.org>
14029
14030         Work around a glibc bug in strtok_r.
14031         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14032         Undefine if UNDEFINE_STRTOK_R is set.
14033         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14035         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14036         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14037         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14038         UNDEFINE_STRTOK_R.
14039         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14040
14041 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14042
14043         exclude: minor fix
14044         * lib/exclude.c: Include wctype.h
14045
14046 2009-09-06  Akim Demaille  <demaille@gostai.com>
14047
14048         bootstrap: improve error message
14049         * build-aux/bootstrap (find_tool): Upon failure, report the list
14050         of candidates.
14051         Honor the initial value of the envvar.
14052
14053 2009-09-05  Eric Blake  <ebb9@byu.net>
14054
14055         symlinkat: new module
14056         * modules/symlinkat: New file.
14057         * lib/symlinkat.c: Likewise.
14058         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14060         * modules/unistd (Makefile.am): Use them.
14061         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14062         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14063         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14064         * MODULES.html.sh (File system functions): Mention module.
14065         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14066         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14067         * modules/symlinkat-tests: New test.
14068         * tests/test-symlinkat.c: Likewise.
14069
14070         test-openat-safer: add more checks
14071         * tests/test-openat-safer.c (main): Check more code paths.
14072
14073 2009-09-05  Jim Meyering  <meyering@redhat.com>
14074
14075         syntax-check: detect unnecessary inclusion of openat.h
14076         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14077
14078 2009-09-05  Bruno Haible  <bruno@clisp.org>
14079
14080         Support towlower, towupper.
14081         * doc/posix-functions/towlower.texi: Mention module wctype.
14082         * doc/posix-functions/towupper.texi: Likewise.
14083         * lib/wctype.in.h (towlower, towupper): New functions.
14084         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14085         (ASSERT): New macro.
14086         (e): New variable.
14087         (main): Test also towlower, towupper. Test WEOF argument.
14088         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14089
14090 2009-09-05  Bruno Haible  <bruno@clisp.org>
14091
14092         Fix conversion behaviour when the input is invalid.
14093         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14094         mark occurring in first pass of indirect conversion.
14095         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14096         input.
14097         Found by clang's static analyzer.
14098
14099 2009-09-05  Bruno Haible  <bruno@clisp.org>
14100
14101         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14102         where direct conversion is possible.
14103
14104 2009-09-04  Eric Blake  <ebb9@byu.net>
14105
14106         openat: fail with ENOENT on empty name
14107         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14108         buffer.
14109
14110         link-follow: fix logic bug in prior patch
14111         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14112         reversed sense of yes and no in prior patch.  Avoid confusing
14113         compilation failure with desired semantics.
14114
14115         link-follow: accomodate mingw and cross-compilation
14116         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14117         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14118         cross-compilation results to -1, to make linkat easier to
14119         implement when cross-compiling.  Trivially support mingw.
14120         * modules/link-follow (configure.ac): Call new name.
14121         * NEWS: Mention this.
14122
14123 2009-09-03  Eric Blake  <ebb9@byu.net>
14124
14125         faccessat: compile replacement
14126         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14127         needed.
14128
14129         fts: fix compilation error
14130         * lib/fts.c (includes): Re-add "openat.h", for
14131         openat_needs_fchdir.
14132
14133         faccessat: new module
14134         * modules/faccessat: New file.
14135         * lib/faccessat.c: Likewise.
14136         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14138         * modules/unistd (Makefile.am): Use it.
14139         * lib/unistd.in.h (faccessat): Declare it.
14140         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14141         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14142         * MODULES.html.sh (File system functions): Mention it.
14143         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14144         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14145
14146         euidaccess: prefer POSIX over non-standard implementation
14147         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14148         * lib/euidaccess.c (euidaccess): Use it if available.
14149
14150         openat: make template easier to use
14151         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14152         AT_FUNC_F2 to be undefined.
14153         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14154         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14155         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14156         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14157         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14158         Likewise.
14159         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14160         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14161         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14162         Likewise.
14163
14164         openat: declare in POSIX headers
14165         * NEWS: Mention this.
14166         * modules/openat (configure.ac): Declare witnesses.
14167         (Depends-on): Add fcntl-h, sys_stat, unistd.
14168         (Include): Mention correct headers.
14169         * modules/fcntl-h (Depends-on): Add link-warning.
14170         (Files): Add openat.m4.
14171         (Makefile.am): Substitute witnesses.
14172         * modules/sys_stat (Files, Makefile.am): Likewise.
14173         * modules/unistd (Files, Makefile.am): Likewise.
14174         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14175         (gl_OPENAT_DEFAULTS): New macro.
14176         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14179         (SYS_STAT_H): Remove unused variable.
14180         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14181         * lib/fcntl--.h (includes): Remove unneeded header.
14182         * lib/openat-safer.c (includes): Likewise.
14183         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14184         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14185         appropriate headers.
14186         (__OPENAT_PREFIX): Delete.
14187         * lib/fcntl.in.h (openat): Provide declaration.
14188         (AT_FDCWD): Fix Solaris bug.
14189         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14190         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14191         * lib/fchmodat.c (includes):  Adjust to find declaration.
14192         * lib/fchownat.c (includes): Likewise.
14193         * lib/mkdirat.c (includes): Likewise.
14194         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14195         still visible.
14196
14197 2009-09-02  Eric Blake  <ebb9@byu.net>
14198
14199         errno: use consistently
14200         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14201         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14202         * lib/canonicalize.c (ELOOP): Likewise.
14203         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14204         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14205         * lib/lchown.c (EOPNOTSUPP): Likewise.
14206         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14207         * lib/savewd.c (ESTALE): Likewise.
14208         * lib/settime.c (ENOSYS): Likewise.
14209         * lib/utimens.c (ENOSYS): Likewise.
14210         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14211         * lib/chdir-safer.c (ELOOP): Likewise.
14212         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14213         * modules/c-stack (Depends-on): Add errno.
14214         * modules/canonicalize (Depends-on): Likewise.
14215         * modules/chdir-safer (Depends-on): Likewise.
14216         * modules/fdopendir (Depends-on): Likewise.
14217         * modules/inet_ntop (Depends-on): Likewise.
14218         * modules/inet_pton (Depends-on): Likewise.
14219         * modules/lchown (Depends-on): Likewise.
14220         * modules/openat (Depends-on): Likewise.
14221         * modules/savewd (Depends-on): Likewise.
14222         * modules/settime (Depends-on): Likewise.
14223         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14224
14225         fts: avoid leaking fds
14226         * modules/fts (Depends-on): Add cloexec.
14227         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14228         flag.
14229
14230         fts: make directory fds more robust
14231         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14232         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14233
14234         backupfile, chdir-long, fts, savedir: make safer
14235         * lib/backupfile.c (includes): Use "dirent--.h", since
14236         numbered_backup can write to stderr during readdir.
14237         * lib/savedir.c (includes): Likewise.
14238         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14239         emulation can write to stderr on failure.
14240         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14241         * lib/getcwd.c: Document why opendir_safer is unused.
14242         * lib/glob.c: Likewise.
14243         * lib/scandir.c: Likewise.
14244         * lib/openat-proc.c: Likewise, for open_safer.
14245         * modules/backupfile (Depends-on): Add dirent-safer.
14246         * modules/savedir (Depends-on): Likewise.
14247         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14248         * modules/chdir-long (Depends-on): Add openat-safer.
14249
14250         openat-safer: new module
14251         * modules/openat-safer: New file.
14252         * lib/openat-safer.c: Likewise.
14253         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14254         * lib/fcntl-safer.h (openat_safer): Declare.
14255         * lib/fcntl--.h (openat): Override.
14256         * MODULES.html.sh (File descriptor based I/O): Mention it.
14257         * lib/openat.h: Add double-inclusion guards.
14258         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14259         "fcntl--.h", so we can implement openat.
14260         * modules/openat-safer-tests: New test.
14261         * tests/test-openat-safer.c: New file.
14262
14263         dirent-safer: new module
14264         * modules/dirent-safer: New file.
14265         * lib/dirent--.h: Likewise.
14266         * lib/dirent-safer.h: Likewise.
14267         * lib/opendir-safer.c: Likewise.
14268         * m4/dirent-safer.m4: Likewise.
14269         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14270         * modules/dirent-safer-tests: New test.
14271         * tests/test-dirent-safer.c: New file.
14272         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14273
14274         fdopendir: optimize on mingw
14275         * lib/unistd.in.h (_gl_directory_name): New prototype.
14276         * lib/fchdir.c (_gl_directory_name): Implement it.
14277         (fchdir): Use it to simplify implementation.
14278         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14279         fchdir, when available, to avoid calling [f]chdir().
14280
14281         fdopendir: split into its own module
14282         * lib/openat.c (fdopendir): Move...
14283         * lib/fdopendir.c: ...into new file.
14284         * modules/fdopendir: New module.
14285         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14286         * modules/openat (Depends-on): Add fdopendir.
14287         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14288         fdopendir here.
14289         * modules/savedir (Depends-on): Only need fdopendir, not full
14290         openat.
14291         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14292         * lib/openat.h (fdopendir): Drop prototype.
14293         * lib/dirent.in.h (fdopendir): Provide prototype.
14294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14295         * modules/dirent (Makefile.am): Substitute them.
14296         * MODULES.html.sh (File system functions): Mention it.
14297         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14298         * modules/fdopendir-tests: New file.
14299         * tests/test-fdopendir.c: Likewise.
14300
14301         fchdir: use more consistent macro convention
14302         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14303         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14304         REPLACE_FCHDIR, rather than relying on config.h macros.
14305         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14306         inside a single make-time REPLACE_FCHDIR block, rather than using
14307         the config.h FCHDIR_REPLACEMENT.
14308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14309         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14310         Manage fstat replacement.
14311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14312         REPLACE_FCHDIR.
14313         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14314         (Makefile.am): Substitute REPLACE_FCHDIR.
14315         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14316         FCHDIR_REPLACEMENT.
14317         * lib/dup-safer.c (dup_safer): Likewise.
14318         * lib/dup2.c (rpl_dup2): Likewise.
14319         * lib/dup3.c (rpl_dup3): Likewise.
14320         * lib/open.c (rpl_open): Likewise.
14321
14322         fchdir: simplify error handling, and support dup3
14323         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14324         stdbool, malloc-posix, realloc-posix.
14325         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14326         (ensure_dirs_slot): Return false on allocation failure.
14327         (rpl_dup2): Delete.
14328         (_gl_register_dup): New function.
14329         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14330         (_gl_register_fd): Close fd on allocation failure.
14331         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14332         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14333         prototype.
14334         (rpl_dup2_fchdir): Delete prototype.
14335         * lib/open.c (open): Update caller.
14336         * lib/dup2.c (dup2): Track fchdir metadata.
14337         * lib/dup3.c (dup3): Likewise.
14338         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14340
14341 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14342
14343         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14344         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14345         don't pass arguments to AC_OUTPUT.
14346
14347 2009-09-02  Bruno Haible  <bruno@clisp.org>
14348
14349         * modules/mkdtemp (License): Relicense under LGPLv2+.
14350         Reported by Paolo Bonzini.
14351
14352 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14353
14354         Replace uses of obsolete autoconf macros in Jim's modules.
14355         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14356         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14357         can evoke a warning from autoconf when run with -Wobsolete
14358         enabled.  They were declared obsolete for good reasons (see
14359         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14360         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14361         should not continue using the deprecated macros.
14362         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14363         obsolete Autoconf macros with modern counterparts.
14364         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14365         * m4/dos.m4 (gl_AC_DOS): Likewise.
14366         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14368         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14369         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14370         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14371         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14373         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14374         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14375         Likewise.
14376         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14377         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14378         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14379         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14380         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14381         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14382
14383 2009-09-01  Eric Blake  <ebb9@byu.net>
14384
14385         fchdir: fix off-by-one bug in previous patch
14386         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14387         (_gl_unregister_fd): Delete useless if.
14388
14389 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14390
14391         maint.mk: sort the list of syntax-check rules
14392         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14393         easier to get a sense of progress when the rules are run sequentially
14394         and take a long time.
14395
14396 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14397
14398         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14399         * modules/netinet_in: Likewise.
14400         * modules/sys_file: Likewise.
14401         * modules/sys_ioctl: Likewise.
14402         * modules/sys_select: Likewise.
14403         * modules/sys_socket: Likewise.
14404         * modules/sys_stat: Likewise.
14405         * modules/sys_time: Likewise.
14406         * modules/sys_times: Likewise.
14407         * modules/sys_utsname: Likewise.
14408         * modules/sys_wait: Likewise.
14409
14410 2009-09-01  Jim Meyering  <meyering@redhat.com>
14411
14412         fts: help ensure that return values are not ignored
14413         * lib/fts_.h (__GNUC_PREREQ): Define.
14414         (__attribute_warn_unused_result__): Define.
14415         (fts_children, fts_close, fts_open, fts_read): Declare with
14416         __attribute_warn_unused_result__.
14417
14418         fts: fts_close now fails also when closing a dir file descriptor fails
14419         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14420         and propagate to caller, along with errno.
14421
14422         announce-gen: correct formatting in --help output
14423         * build-aux/announce-gen (usage): Move the one-line description in
14424         --help output "up", to where it belongs, just after Usage:.
14425
14426 2009-08-31  Eric Blake  <ebb9@byu.net>
14427
14428         fchdir: port to mingw
14429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14430         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14431         opened, then use a substitute.
14432         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14433         replacement.
14434         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14435         (_gl_register_fd): No need to check stat if open already filters
14436         all directories.
14437         (fchdir): Fix error condition to match POSIX.
14438         * modules/fchdir (Depends-on): Add sys_stat.
14439         * doc/posix-functions/open.texi (open): Document the limitation.
14440         * modules/fchdir-tests: New file.
14441         * tests/test-fchdir.c: Likewise.
14442
14443         canonicalize: allow cross-testing from cygwin to mingw
14444         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14445         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14446         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14447         Likewise.
14448         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14449         target does not support symlinks.
14450         * tests/test-canonicalize-lgpl.sh: Likewise.
14451
14452         chown: avoid compilation warning on mingw
14453         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14454         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14455         mingw.
14456         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14457         * modules/chown (Depends-on): Add errno.
14458
14459 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14460
14461         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14462         command.
14463
14464 2009-08-31  Jim Meyering  <meyering@redhat.com>
14465
14466         canonicalize: remove useless initialization
14467         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14468         initialization of local, "end".
14469
14470 2009-08-30  Bruno Haible  <bruno@clisp.org>
14471
14472         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14473         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14474         ENOSYS.
14475
14476 2009-08-30  Bruno Haible  <bruno@clisp.org>
14477
14478         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14479         /usr/xpg4/bin/tr when it exists.
14480         * tests/test-pipe-filter-gi1.sh: Likewise.
14481
14482 2009-08-30  Bruno Haible  <bruno@clisp.org>
14483
14484         Work around deficient /usr/bin/id program on Solaris.
14485         * tests/test-file-has-acl.sh (ID): New variable.
14486         * tests/test-set-mode-acl.sh (ID): Likewise.
14487         * tests/test-copy-acl.sh (ID): Likewise.
14488         * tests/test-copy-file.sh (ID): Likewise.
14489
14490 2009-08-30  Bruno Haible  <bruno@clisp.org>
14491
14492         New module 'xstriconveh'.
14493         * lib/xstriconveh.h: New file.
14494         * lib/xstriconveh.c: New file.
14495         * modules/xstriconveh: New file.
14496
14497 2009-08-30  Bruno Haible  <bruno@clisp.org>
14498
14499         Make it easier to use mem_cd_iconveh.
14500         * lib/striconveh.h (iconveh_t): New type.
14501         (iconveh_open, iconveh_close): New declarations.
14502         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14503         with a single 'const iconveh_t *' argument.
14504         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14505         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14506         with a single 'const iconveh_t *' argument.
14507         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14508         * tests/test-striconveh.c (main): Update.
14509         * NEWS: Mention the change.
14510
14511 2009-08-30  Bruno Haible  <bruno@clisp.org>
14512
14513         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14514         problem.
14515
14516 2009-08-30  Bruno Haible  <bruno@clisp.org>
14517
14518         Work around iconv_open problem on Solaris.
14519         * lib/iconv_open-solaris.gperf: New file.
14520         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14521         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14522         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14523         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14524         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14525         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14526
14527 2009-08-29  Jim Meyering  <meyering@redhat.com>
14528
14529         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14530         * top/maint.mk (cvs-check): Remove target; it was just an alias
14531         to the better-named vc-diff-check.
14532         (maintainer-distcheck): Remove rule.  It was used only from
14533         the (alpha/beta/major) target, and all of its commands but one
14534         were coreutils-specific.
14535         (vc-dist): Remove rule.
14536         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14537         Run vc-diff-check, not vc-dist.
14538         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14539
14540 2009-08-27  Bruno Haible  <bruno@clisp.org>
14541
14542         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14543         of 0.
14544
14545 2009-08-27  Bruno Haible  <bruno@clisp.org>
14546
14547         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14548         compilers.
14549         * doc/func.texi: Document the SunPRO C bug.
14550
14551 2009-08-27  Bruno Haible  <bruno@clisp.org>
14552
14553         Fix link error on Solaris.
14554         * tests/test-parse-duration.c (xstrdup): Remove function.
14555
14556 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14557
14558         ignore-value: handle pointer types, too
14559         * lib/ignore-value.h (__attribute__): Remove definition.
14560         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14561         of a more concise and more-often effective "(void) i" statement.
14562         (ignore_ptr): New function to suppress warnings from functions that
14563         return pointers, and to make it explicit that one function doesn't
14564         handle all cases.
14565
14566 2009-08-25  Bruno Haible  <bruno@clisp.org>
14567
14568         dup2: work around a Linux bug.
14569         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14570         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14571         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14572         Reported by Simon Josefsson.
14573
14574 2009-08-25  Jim Meyering  <meyering@redhat.com>
14575
14576         libguestfs uses gnulib
14577         * users.txt: Add libguestfs.
14578
14579 2009-08-24  Eric Blake  <ebb9@byu.net>
14580
14581         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14582         * lib/pipe2.c (includes): Add binary-io.h.
14583         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14584
14585 2009-08-24  Bruno Haible  <bruno@clisp.org>
14586
14587         Tolerate declared but missing accept4 syscall.
14588         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14589         available.
14590         * lib/sys_socket.in.h (accept4): If the function is already present,
14591         override it.
14592         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14593         * modules/accept4 (Makefile.am): Compile accept4.c always.
14594         Reported by Paolo Bonzini and Eric Blake.
14595
14596 2009-08-23  Bruno Haible  <bruno@clisp.org>
14597
14598         New module 'accept4'.
14599         * lib/sys_socket.in.h (accept4): New declaration.
14600         * lib/accept4.c: New file.
14601         * m4/accept4.m4: New file.
14602         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14603         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14604         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14605         HAVE_ACCEPT4.
14606         * modules/accept4: New file.
14607         * doc/glibc-functions/accept4.texi: Mention the new module.
14608
14609 2009-08-24  Jim Meyering  <meyering@redhat.com>
14610
14611         progname: also set global program_invocation_name, when possible
14612         Before this change, a libtool-enabled program that calls glibc's
14613         error function would report the program name as
14614         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
14615         * modules/progname (configure.ac): Check for a declaration of
14616         program_invocation_name.
14617         * lib/progname.c:  Include <errno.h>.
14618         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
14619         Set program_invocation_name.
14620
14621 2009-08-23  Bruno Haible  <bruno@clisp.org>
14622
14623         * lib/dup3.c: Include <string.h>.
14624
14625 2009-08-23  Bruno Haible  <bruno@clisp.org>
14626
14627         * lib/dup3.c (dup3): Test only once whether the system actually exists.
14628         * lib/pipe2.c (pipe2): Likewise.
14629         Suggested by Eric Blake.
14630
14631 2009-08-23  Bruno Haible  <bruno@clisp.org>
14632
14633         Tolerate declared but missing dup3 syscall.
14634         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
14635         * lib/unistd.in.h (dup3): If the function is already present,
14636         override it.
14637         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
14638         * modules/dup3 (Makefile.am): Compile dup3.c always.
14639         Reported by Paolo Bonzini.
14640
14641 2009-08-23  Bruno Haible  <bruno@clisp.org>
14642
14643         Tolerate declared but missing pipe2 syscall.
14644         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14645         available.
14646         * lib/unistd.in.h (pipe2): If the function is already present,
14647         override it.
14648         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14649         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14650         Reported by Paolo Bonzini.
14651
14652 2009-08-23  Bruno Haible  <bruno@clisp.org>
14653
14654         * lib/pipe2.c (pipe2): Move #ifs inside function.
14655
14656 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14657
14658         quotearg: document limitations of quote_these_too
14659         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14660         those limitations are created.
14661         * lib/quotearg.h (set_char_quoting): Document that digits and
14662         letters that are special after backslash are not permitted.
14663         (quotearg_char): Cross-reference set_char_quoting documentation.
14664
14665 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14666
14667         quotearg: implement custom_quoting_style
14668         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14669         right_quote fields.
14670         (set_custom_quoting): New public function.
14671         (quotearg_buffer_restyled): Add left_quote and right_quote
14672         arguments, handle them very much like locale quoting, and update
14673         all uses.
14674         (quotearg_n_custom): New public function.
14675         (quotearg_n_custom_mem): New public function.
14676         (quotearg_custom): New public function.
14677         (quotearg_custom_mem): New public function.
14678         * lib/quotearg.h: Prototype and document new public functions.
14679         (enum quoting_style): For escape_quoting_style and
14680         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14681         ignored even though they're otherwise like c_quoting_style.
14682         Add custom_quoting_style member and document with comparison to
14683         clocale_quoting_style.
14684         * tests/test-quotearg.c (custom_quotes): New array.
14685         (custom_results): New array.
14686         (main): Extend to test custom quoting.
14687
14688 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14689
14690         quotearg: fix right quote escaping when it's in quote_these_too
14691         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14692         quote, be sure to prepend only one backslash.
14693         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14694         (main): Test it.
14695
14696 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14697
14698         quotearg-tests: test escaping of embedded locale quotes
14699         * tests/test-quotearg.c (struct result_strings): Add member for
14700         new input.
14701         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14702         (inputs): Add new input.
14703         (results_g): Add expected results.
14704         (flag_results): Likewise.
14705         (locale_results): Likewise.
14706         (compare_strings): Check those.
14707
14708 2009-08-23  Bruno Haible  <bruno@clisp.org>
14709
14710         Tests for module 'dup3'.
14711         * modules/dup3-tests: New file.
14712         * tests/test-dup3.c: New file.
14713
14714         New module 'dup3'.
14715         * lib/unistd.in.h (dup3): New declaration.
14716         * lib/dup3.c: New file.
14717         * m4/dup3.m4: New file.
14718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
14719         HAVE_DUP3.
14720         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
14721         * modules/dup3: New file.
14722         * doc/glibc-functions/dup3.texi: Mention the new module.
14723
14724 2009-08-23  Bruno Haible  <bruno@clisp.org>
14725
14726         Tweak the dup2 test.
14727         * tests/test-dup2.c (main): Create the test file empty. Verify that an
14728         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
14729         the test file is still empty. Fix argument order of lseek.
14730
14731 2009-08-23  Bruno Haible  <bruno@clisp.org>
14732
14733         Avoid test link errors when the modules getopt-gnu, gettext are used.
14734         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
14735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14736
14737 2009-08-23  Bruno Haible  <bruno@clisp.org>
14738
14739         Fix getdtablesize() on mingw.
14740         * lib/getdtablesize.c (getdtablesize): Implement differently.
14741         * lib/unistd.in.h (getdtablesize): Improve comment.
14742
14743 2009-08-23  Bruno Haible  <bruno@clisp.org>
14744
14745         New module 'mkostemp'.
14746         Based on Ulrich Drepper's 2007-08-10 change in glibc.
14747         * lib/stdlib.in.h (mksotemp): New declaration.
14748         * lib/mkostemp.c: New file, from glibc with modifications.
14749         * lib/tempname.h (GT_FILE): Remove outdated comment.
14750         (gen_tempname): Add flags argument.
14751         * lib/tempname.c (__GT_BIGFILE): Remove macro.
14752         (__GT_FILE): Map to 1.
14753         (small_open, large_open): Remove macros.
14754         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
14755         * lib/mkstemp.c (mkstemp): Update.
14756         * lib/mkdtemp.c (mkdtemp): Likewise.
14757         * m4/mkostemp.m4: New file.
14758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
14759         HAVE_MKOSTEMP.
14760         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
14761         HAVE_MKOSTEMP.
14762         * modules/mkostemp: New file, based on modules/mkstemp.
14763         * doc/glibc-functions/mkostemp.texi: Mention the new module.
14764         * NEWS: Mention the change.
14765
14766 2009-08-23  Bruno Haible  <bruno@clisp.org>
14767
14768         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
14769         Reported by Eric Blake.
14770
14771 2009-08-23  Bruno Haible  <bruno@clisp.org>
14772
14773         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
14774         Reported by Eric Blake.
14775
14776 2009-08-23  Bruno Haible  <bruno@clisp.org>
14777
14778         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
14779         * modules/pipe2 (Depends-on): Likewise.
14780
14781 2009-08-23  Eric Blake  <ebb9@byu.net>
14782
14783         fcntl-h: add O_TTY_INIT support
14784         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
14785         * tests/test-fcntl-h.c (o): Test it.
14786         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14787
14788         fcntl-h: rename from fcntl, in preparation for fcntl(2)
14789         * modules/fcntl: Move <fcntl.h> header replacement...
14790         * modules/fcntl-h: ...to new name, so as not to collide with
14791         like-named function.
14792         * tests/test-fcntl.c: Rename...
14793         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
14794         * modules/fcntl-tests: Rename...
14795         * modules/fcntl-h-tests: ...to this.  Update test file name.
14796         * modules/chdir-long (Depends-on): Update clients.
14797         * modules/chdir-safer (Depends-on): Likewise.
14798         * modules/fcntl-safer (Depends-on): Likewise.
14799         * modules/fts (Depends-on): Likewise.
14800         * modules/mkancesdirs (Depends-on): Likewise.
14801         * modules/mkdir-p (Depends-on): Likewise.
14802         * modules/open (Depends-on): Likewise.
14803         * modules/savewd (Depends-on): Likewise.
14804         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
14805         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14806
14807 2009-08-22  Bruno Haible  <bruno@clisp.org>
14808
14809         * modules/binary-io (License): Relicense under LGPL.
14810         * modules/pipe2 (License): Likewise.
14811
14812 2009-08-22  Bruno Haible  <bruno@clisp.org>
14813
14814         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
14815         return value.
14816         * lib/pipe-filter-gi.c (filter_init): Likewise.
14817         Reported by Eric Blake.
14818
14819 2009-08-22  Bruno Haible  <bruno@clisp.org>
14820
14821         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
14822         * modules/pipe (Depends-on): Add pipe2.
14823
14824 2009-08-22  Bruno Haible  <bruno@clisp.org>
14825
14826         Tests for module 'pipe2'.
14827         * modules/pipe2-tests: New file.
14828         * tests/test-pipe2.c: New file.
14829
14830         New module 'pipe2'.
14831         * lib/unistd.in.h (pipe2): New declaration.
14832         * lib/pipe2.c: New file.
14833         * m4/pipe2.m4: New file.
14834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
14835         HAVE_PIPE2.
14836         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
14837         * modules/pipe2: New file.
14838         * doc/glibc-functions/pipe2.texi: Mention the new module.
14839
14840 2009-08-22  Bruno Haible  <bruno@clisp.org>
14841
14842         Reference some new glibc functions.
14843         * doc/glibc-functions/accept4.texi: New file.
14844         * doc/glibc-functions/dup3.texi: New file.
14845         * doc/glibc-functions/mkostemp.texi: New file.
14846         * doc/glibc-functions/pipe2.texi: New file.
14847         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
14848         (Glibc sys/socket.h): Refer to accept4.
14849         (Glibc unistd.h): Refer to dup3, pipe2.
14850         Reported by Eric Blake.
14851
14852 2009-08-22  Jim Meyering  <meyering@redhat.com>
14853             Bruno Haible  <bruno@clisp.org>
14854
14855         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
14856         This makes it so packages using automake-1.11's silent-rules option
14857         can print e.g., a single "GEN    configmake.h" line, rather than
14858         the 30+ statements that perform the job.  If you want to see the
14859         actual commands, you can still run "make V=1".
14860         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
14861         so that make output is abbreviated when those variables are defined
14862         appropriately.
14863         * modules/argz: Likewise.
14864         * modules/arpa_inet: Likewise.
14865         * modules/byteswap: Likewise.
14866         * modules/configmake: Likewise.
14867         * modules/dirent: Likewise.
14868         * modules/errno: Likewise.
14869         * modules/fcntl: Likewise.
14870         * modules/float: Likewise.
14871         * modules/fnmatch: Likewise.
14872         * modules/getopt-posix: Likewise.
14873         * modules/glob: Likewise.
14874         * modules/iconv_open: Likewise.
14875         * modules/inttypes: Likewise.
14876         * modules/localcharset: Likewise.
14877         * modules/locale: Likewise.
14878         * modules/math: Likewise.
14879         * modules/netdb: Likewise.
14880         * modules/netinet_in: Likewise.
14881         * modules/poll: Likewise.
14882         * modules/posix_spawnp-tests: Likewise.
14883         * modules/sched: Likewise.
14884         * modules/search: Likewise.
14885         * modules/selinux-h: Likewise.
14886         * modules/signal: Likewise.
14887         * modules/spawn: Likewise.
14888         * modules/stdarg: Likewise.
14889         * modules/stdbool: Likewise.
14890         * modules/stddef: Likewise.
14891         * modules/stdint: Likewise.
14892         * modules/stdio: Likewise.
14893         * modules/stdlib: Likewise.
14894         * modules/string: Likewise.
14895         * modules/strings: Likewise.
14896         * modules/sys_file: Likewise.
14897         * modules/sys_ioctl: Likewise.
14898         * modules/sys_select: Likewise.
14899         * modules/sys_socket: Likewise.
14900         * modules/sys_stat: Likewise.
14901         * modules/sys_time: Likewise.
14902         * modules/sys_times: Likewise.
14903         * modules/sys_utsname: Likewise.
14904         * modules/sys_wait: Likewise.
14905         * modules/sysexits: Likewise.
14906         * modules/time: Likewise.
14907         * modules/unistd: Likewise.
14908         * modules/wchar: Likewise.
14909         * modules/wctype: Likewise.
14910
14911 2009-08-22  Jim Meyering  <meyering@redhat.com>
14912
14913         announce-gen: detect write failure
14914         * build-aux/announce-gen: Add Coda at end.
14915         Remove equivalent-but-more-verbose block at top.
14916
14917 2009-08-19  Akim Demaille  <demaille@gostai.com>
14918
14919         bootstrap: --help to stdout.
14920         * bootstrap (usage): Don't send --help to stderr.
14921         Use a here doc instead of a long string.
14922
14923 2009-08-21  Eric Blake  <ebb9@byu.net>
14924
14925         test-popen-safer: split from test-popen
14926         * tests/test-popen.c (main): Move...
14927         * tests/test-popen.h: ...into new file.
14928         * tests/test-popen-safer2.c: New file.
14929         * modules/popen-tests (Files): Add test-popen.h.
14930         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
14931         Suggested by Bruno Haible.
14932
14933         test-fcntl-safer: split from test-open
14934         * tests/test-open.c (main): Move...
14935         * tests/test-open.h: ...into new file.
14936         * tests/test-fcntl-safer.c: New file.
14937         * modules/open-tests (Files): Add test-open.h.
14938         * modules/fcntl-safer-tests: New file.
14939         Suggested by Bruno Haible.
14940
14941         test-fopen-safer: split from test-fopen
14942         * tests/test-fopen.c (main): Move...
14943         * tests/test-fopen.h: ...into new file.
14944         * tests/test-fopen-safer.c: New file.
14945         * modules/fopen-tests (Files): Add test-fopen.h.
14946         * modules/fopen-safer-tests: New file.
14947         Suggested by Bruno Haible.
14948
14949 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
14950
14951         popen-safer: test O_CLOEXEC at run-time.
14952         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
14953
14954 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
14955
14956         fcntl: move more flags to the header
14957         * lib/cloexec.c: Do not define FD_CLOEXEC here.
14958         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
14959         * lib/fcntl.in.h: Do both things here.
14960
14961 2009-08-21  Jim Meyering  <meyering@redhat.com>
14962
14963         consistently remove $@-t before redirecting to it
14964         * modules/argz: Remove $@-t and $@ before redirecting to the former.
14965         * modules/alloca-opt: Likewise.
14966         * modules/byteswap: Likewise.
14967         * modules/fnmatch: Likewise.
14968         * modules/getopt-posix: Likewise.
14969         * modules/glob: Likewise.
14970         * modules/poll: Likewise.
14971         * modules/posix_spawnp-tests: Likewise.
14972         * modules/sys_socket: Likewise.
14973         * modules/sysexits: Likewise.
14974
14975 2009-08-21  Eric Blake  <ebb9@byu.net>
14976
14977         popen: simplify access to original popen
14978         * lib/popen.c (rpl_popen): No need to worry about popen being a
14979         macro.
14980         Reported by Bruno Haible.
14981
14982 2009-08-20  Eric Blake  <ebb9@byu.net>
14983
14984         build: avoid some compiler warnings
14985         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
14986         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
14987         type.
14988         (new_exclude_segment, excluded_file_pattern_p)
14989         (excluded_file_name_p): Reduce scope.
14990         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
14991         old-style declaration.
14992
14993 2009-08-20  Simon Josefsson  <simon@josefsson.org>
14994
14995         * tests/test-exclude1.sh: Handle Windows EOL.
14996         * tests/test-exclude2.sh: Likewise.
14997         * tests/test-exclude3.sh: Likewise.
14998         * tests/test-exclude4.sh: Likewise.
14999         * tests/test-exclude5.sh: Likewise.
15000         * tests/test-exclude6.sh: Likewise.
15001         * tests/test-exclude7.sh: Likewise.
15002
15003 2009-08-19  Akim Demaille  <demaille@gostai.com>
15004
15005         bootstrap: find sha1sum when named gsha1sum.
15006         * bootstrap (find_tool): New.
15007         ($SHA1SUM): New.
15008         Use it.
15009
15010 2009-08-20  Jim Meyering  <meyering@redhat.com>
15011
15012         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15013         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15014         expression that converts "." in a file name to "\." in the resulting
15015         regexp.  Start with a dummy statement, so that prior shell variable
15016         definitions are expanded portably.  Reported by Simon Josefsson.
15017
15018 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15019
15020         Fix polling for writeability of a screen buffer.
15021         * lib/poll.c: Distinguish input and screen buffers for the
15022         Win32 implementation.
15023         * lib/select.c: Likewise.
15024
15025 2009-08-19  Eric Blake  <ebb9@byu.net>
15026
15027         popen-safer: prevent popen from clobbering std descriptors
15028         * modules/popen-safer: New file.
15029         * lib/popen-safer.c: Likewise.
15030         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15031         * lib/stdio--.h (popen): Provide override.
15032         * lib/stdio-safer.h (popen_safer): Provide declaration.
15033         * tests/test-popen.c (includes): Partially test this.
15034         * modules/popen-safer-tests: New file, for more tests.
15035         * tests/test-popen-safer.c: Likewise.
15036         * MODULES.html.sh (file stream based Input/Output): Mention it.
15037
15038         tests: test some of the *-safer modules
15039         * modules/fopen-safer (Depends-on): Add fopen.
15040         * modules/fcntl-safer (Depends-on): Add fcntl.
15041         * modules/stdlib-safer (Depends-on): Add stdlib.
15042         (configure.ac): Set indicator.
15043         * modules/unistd-safer (configure.ac): Likewise.
15044         * modules/tmpfile-safer (configure.ac): Likewise.
15045         (Depends-on): Add tmpfile.
15046         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15047         active.
15048         * tests/test-fopen.c (includes): Test safer versions when they are
15049         in use.
15050         * tests/test-open.c (includes): Likewise.
15051
15052         popen: fix cygwin 1.5 bug when stdin closed
15053         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15054         * modules/popen: New file.
15055         * modules/popen-tests: Likewise.
15056         * tests/test-popen.c: Likewise.
15057         * m4/popen.m4: Likewise.
15058         * lib/popen.c: Likewise.
15059         * lib/stdio.in.h (popen): New declaration.
15060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15061         * modules/stdio (Makefile.am): Likewise.
15062         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15063
15064 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15065
15066         maint.mk: give full control over update-copyright exclusions
15067         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15068         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15069         (update-copyright): Don't force inclusion of top-level
15070         ChangeLog.  Don't force exclusion of all COPYING files, but make
15071         them the default exclusion instead.
15072
15073 2009-08-16  Bruno Haible  <bruno@clisp.org>
15074
15075         Fix test failures on Solaris 10.
15076         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15077         tests when Solaris iconv() is used.
15078         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15079         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15080         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15081         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15082         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15083
15084 2009-08-16  Bruno Haible  <bruno@clisp.org>
15085
15086         Fix test failures on Solaris 10.
15087         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15088         'tr' program and pass it as first argument.
15089         * tests/test-pipe-filter-gi1.sh: Likewise.
15090         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15091         program as first argument.
15092         * tests/test-pipe-filter-gi1.c (main): Likewise.
15093
15094 2009-08-16  Eric Blake  <ebb9@byu.net>
15095
15096         fpurge: fix previous commits
15097         * modules/fpurge (Makefile.am): Make replacement conditional,
15098         partially reverting 2007-04-29 change; missed in previous
15099         attempt.
15100         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15101         is missing.
15102
15103 2009-08-16  Bruno Haible  <bruno@clisp.org>
15104
15105         Clarify fpurge's effect on the file position.
15106         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15107         * tests/test-fpurge.c (main): Make a second pass for checking the file
15108         position.
15109
15110 2009-08-16  Bruno Haible  <bruno@clisp.org>
15111
15112         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15113         declaration of fpurge is missing.
15114         * tests/test-fpurge.c (main): Check that the file has not more contents
15115         than expected. Close the file before removing it.
15116
15117 2009-08-15  Eric Blake  <ebb9@byu.net>
15118
15119         fpurge: don't wrap working cygwin implementation
15120         * lib/fpurge.c (fpurge): Fix comment typo.
15121         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15122         1.7 to avoid replacement.
15123         * tests/test-fpurge.c (main): Enhance test.
15124
15125 2009-08-15  Eric Blake  <ebb9@byu.net>
15126         and Jim Meyering  <meyering@redhat.com>
15127
15128         test-update-copyright: skip if perl is insufficient
15129         * tests/test-update-copyright.sh: Failure to run maintainer tool
15130         should not cause testsuite failure on cygwin 1.5.
15131
15132 2009-08-14  Eric Blake  <ebb9@byu.net>
15133
15134         doc: mention more functions added in cygwin 1.7.0
15135         * doc/posix-headers/limits.texi (limits.h): Update for recent
15136         cygwin additions.
15137         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15138         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15139         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15140         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15141         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15142
15143 2009-08-14  Eric Blake  <ebb9@byu.net>
15144
15145         maint.mk: simplify update-copyright rule
15146         * top/maint.mk (update-copyright-local): Delete, and document how
15147         to do it in cfg.mk instead.
15148         (update-copyright-exclude-regexp): Delete, and document how to do
15149         it in .x-update-copyright instead.
15150         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15151         exclude ChangeLog.
15152
15153 2009-08-14  Bruno Haible  <bruno@clisp.org>
15154
15155         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15156
15157 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15158
15159         maint.mk: support update-copyright-env
15160         * top/maint.mk (update-copyright-env): Define place-holder.
15161         (update-copyright): Expand $(update-copyright-env) before
15162         invoking update-copyright.
15163
15164 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15165
15166         update-copyright: implement forced reformatting
15167         * build-aux/update-copyright: Implement and document
15168         UPDATE_COPYRIGHT_FORCE.
15169         * tests/test-update-copyright.sh: Test it.
15170
15171 2009-08-14  Eric Blake  <ebb9@byu.net>
15172         and Bruno Haible  <bruno@clisp.org>
15173
15174         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15175         * tests/test-locale.c: Revert previous patch related to NULL.
15176         * tests/test-stdio.c: Likewise.
15177         * tests/test-stdlib.c: Likewise.
15178         * tests/test-string.c: Likewise.
15179         * tests/test-unistd.c: Likewise.
15180         * modules/time-tests (Depends-on): Add verify.
15181         * modules/wchar-tests (Depends-on): Likewise.
15182         * tests/test-time.c: Test for NULL compliance.
15183         * tests/test-wchar.c: Likewise.
15184         * modules/locale (Depends-on): Add stddef.
15185         * modules/stdio (Depends-on): Likewise.
15186         * modules/stdlib (Depends-on): Likewise.
15187         * modules/string (Depends-on): Likewise.
15188         * modules/time (Depends-on): Likewise.
15189         * modules/unistd (Depends-on): Likewise.
15190         * modules/wchar (Depends-on): Likewise.
15191         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15192         * lib/stdlib.in.h (includes): Likewise.
15193         * lib/string.in.h (includes): Likewise.
15194         * lib/time.in.h (includes): Likewise.
15195         * lib/unistd.in.h (includes): Likewise.
15196         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15197         replaced.
15198         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15199         * m4/stddef_h.m4: New file.
15200         * modules/stddef: Likewise.
15201         * lib/stddef.in.h: Likewise.
15202         * modules/stddef-tests: Likewise.
15203         * tests/test-stddef.c: Likewise.
15204         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15205         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15206         * doc/posix-headers/locale.texi (locale.h): Likewise.
15207         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15208         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15209         * doc/posix-headers/string.texi (string.h): Likewise.
15210         * doc/posix-headers/time.texi (time.h): Likewise.
15211         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15212         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15213
15214 2009-08-14  Eric Blake  <ebb9@byu.net>
15215
15216         doc: improve git diff of texinfo files
15217         * .gitattributes: Add rule for *.texi files, with hint on how to
15218         use it.
15219         Copied from m4, and based on a report by Bruno Haible.
15220
15221 2009-08-14  Bruno Haible  <bruno@clisp.org>
15222
15223         Disable multithread support by default on Cygwin 1.5.x for real.
15224         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15225
15226 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15227
15228         update-copyright: much ado about intervals
15229         * build-aux/update-copyright: Implement and document
15230         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15231         of copyright year intervals.
15232         Also, document UPDATE_COPYRIGHT_YEAR.
15233         * tests/test-update-copyright.sh: Test it.
15234
15235         update-copyright: convert 2-digit to 4-digit years
15236         * build-aux/update-copyright: Implement and document.
15237         * tests/test-update-copyright.sh: Update.
15238
15239 2009-08-14  Jim Meyering  <meyering@redhat.com>
15240
15241         test-exclude: avoid coreutils "make check" failure
15242         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15243         just as in test-argmatch.c.
15244
15245 2009-08-13  Eric Blake  <ebb9@byu.net>
15246
15247         test-dup2: fix bad assumption
15248         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15249         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15250
15251         test-version-etc: fix CRLF portability issue
15252         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15253         recognize \r.
15254         * tests/test-argp-version-etc-1.sh: Likewise.
15255
15256         getopt: update client modules
15257         * modules/argp (Depends-on): Use getopt-gnu.
15258         * modules/git-merge-changelog (Depends-on): Likewise.
15259         * modules/long-options (Depends-on): Likewise.
15260         * modules/xstrtol (Depends-on): Likewise.
15261
15262 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15263
15264         * tests/test-version-etc.sh: Don't fail on different
15265         project/version.  Don't fail on CRLF differences.  Rewrite to use
15266         multiple -e instead of multiple sed forks, suggested by Eric Blake
15267         <ebb9@byu.net>.
15268         * tests/test-argp-version-etc-1.sh: Likewise.
15269
15270 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15271
15272         * tests/test-version-etc.sh: Don't fail on different
15273         project/version.
15274
15275 2009-08-12  Bruno Haible  <bruno@clisp.org>
15276
15277         Tests for modules 'getopt-posix', 'getopt-gnu'.
15278         * modules/getopt-posix-tests: New file.
15279         * tests/test-getopt.c: New file.
15280         * tests/test-getopt.h: New file.
15281         * tests/test-getopt_long.h: New file.
15282
15283         New modules 'getopt-posix', 'getopt-gnu'.
15284         * modules/getopt-gnu: New file, renamed from modules/getopt.
15285         * modules/getopt-posix: New file.
15286         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15287         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15288         (gl_GETOPT): Remove macro.
15289         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15290         Disable the test against BSD systems that declare optreset. Test
15291         against mingw bug. Test against lack of support of optional arguments
15292         on many platforms.
15293         * doc/glibc-headers/getopt.texi: Update module name and list of
15294         relevant platforms.
15295         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15296         'getopt-gnu' and more portability problems.
15297         * NEWS: Mention the changes.
15298
15299 2009-08-12  Bruno Haible  <bruno@clisp.org>
15300
15301         Ensure that optarg etc. get declared by <unistd.h>.
15302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15303         AC_USE_SYSTEM_EXTENSIONS.
15304         * modules/getopt (Depends-on): Add 'extensions'.
15305
15306 2009-08-12  Bruno Haible  <bruno@clisp.org>
15307
15308         Avoid test link errors.
15309         * modules/pipe-filter-ii-tests (Makefile.am): Define
15310         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15311         * modules/pipe-filter-gi-tests (Makefile.am): Define
15312         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15314
15315 2009-08-12  Bruno Haible  <bruno@clisp.org>
15316
15317         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15318         gl_GETOPT_SUBSTITUTE before.
15319         (gl_GETOPT): Use it.
15320         * m4/argp.m4 (gl_ARGP): Update.
15321         Reported by Sergey Poznyakoff.
15322
15323         * m4/getopt.m4: Reorder macros.
15324         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15325         (gl_GETOPT_SUBSTITUTE): Remove macro.
15326
15327 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15328
15329         Minor improvement in gitlog-to-changelog
15330
15331         * build-aux/gitlog-to-changelog: New option `--format' makes
15332         output format string configurable.
15333
15334 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15335
15336         Optimize exclude: use hash tables for non-wildcard patterns.
15337
15338         * lib/exclude.c: Include hash.h and mbuiter.h
15339         (struct exclude_pattern, exclude_segment): New data types.
15340         (struct exclude): Rewrite.
15341         (fnmatch_pattern_has_wildcards): New function.
15342         (new_exclude_segment, free_exclude_segment): New functions.
15343         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15344         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15345         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15346         * modules/exclude: Depend on hash and mbuiter.
15347
15348         * modules/exclude-tests: New file.
15349         * tests/test-exclude.c: New file.
15350         * tests/test-exclude1.sh: New file.
15351         * tests/test-exclude2.sh: New file.
15352         * tests/test-exclude3.sh: New file.
15353         * tests/test-exclude4.sh: New file.
15354         * tests/test-exclude5.sh: New file.
15355         * tests/test-exclude6.sh: New file.
15356         * tests/test-exclude7.sh: New file.
15357
15358 2009-08-12  Bruno Haible  <bruno@clisp.org>
15359
15360         Ensure that getopt() gets declared by <unistd.h>.
15361         * lib/unistd.in.h: Conditionally include getopt.h.
15362         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15363         Set GNULIB_UNISTD_H_GETOPT.
15364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15365         GNULIB_UNISTD_H_GETOPT.
15366         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15367
15368 2009-08-12  Bruno Haible  <bruno@clisp.org>
15369
15370         Clarify logic.
15371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15372         gl_replace_getopt instead of GETOPT_H.
15373
15374 2009-08-12  Bruno Haible  <bruno@clisp.org>
15375
15376         * m4/getopt.m4: Add comments.
15377
15378 2009-08-12  Bruno Haible  <bruno@clisp.org>
15379
15380         Disable multithread support by default on Cygwin 1.5.x.
15381         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15382         set gl_use_threads=no if not specified otherwise.
15383
15384 2009-08-11  Bruno Haible  <bruno@clisp.org>
15385
15386         Avoid compilation error on NetBSD 5.0.
15387         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15388         * tests/test-stdio.c: Likewise.
15389         * tests/test-stdlib.c: Likewise.
15390         * tests/test-string.c: Likewise.
15391         * tests/test-unistd.c: Likewise.
15392         Reported by Greg Troxel <gdt@ir.bbn.com>
15393         at <https://savannah.gnu.org/support/?106973>.
15394
15395 2009-08-11  Bruno Haible  <bruno@clisp.org>
15396
15397         * modules/dup2-tests (Depends-on): Remove close.
15398
15399         Undo 2009-07-19 commit.
15400         * modules/acl-tests (Depends-on): Remove close.
15401         * modules/binary-io-tests (Depends-on): Likewise.
15402         * modules/closein-tests (Depends-on): Likewise.
15403         * modules/flock-tests (Depends-on): Likewise.
15404         * modules/fsync-tests (Depends-on): Likewise.
15405         * modules/lseek-tests (Depends-on): Likewise.
15406         * modules/pipe-tests (Depends-on): Likewise.
15407         * modules/posix_spawn-tests (Depends-on): Likewise.
15408         * modules/posix_spawnp-tests (Depends-on): Likewise.
15409         * modules/stat-time-tests (Depends-on): Likewise.
15410         * modules/yesno-tests (Depends-on): Likewise.
15411
15412 2009-08-10  Bruno Haible  <bruno@clisp.org>
15413
15414         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15415
15416 2009-08-10  Bruno Haible  <bruno@clisp.org>
15417
15418         Fix a gcc warning.
15419         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15420
15421 2009-08-10  Bruno Haible  <bruno@clisp.org>
15422
15423         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15424         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15425         not only the first time.
15426         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15427         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15428         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15429         is 1, not only the the first time.
15430
15431 2009-08-10  Bruno Haible  <bruno@clisp.org>
15432
15433         Make it possible to use module 'gethostname' without module 'close'.
15434         * lib/unistd.in.h (close): Evoke a link error only if
15435         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15437         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15438         * modules/unistd (Makefile.am): Substitute
15439         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15440         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15441         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15442         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15443         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15444         * modules/sys_ioctl (Makefile.am): Substitute
15445         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15446         * modules/socket (configure.ac): On native Windows, set
15447         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15448         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15449         Reported by Sam Steingold <sds@gnu.org>.
15450
15451 2009-08-10  Bruno Haible  <bruno@clisp.org>
15452
15453         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15454         * modules/ioctl (configure.ac): Likewise.
15455
15456 2009-08-10  Bruno Haible  <bruno@clisp.org>
15457
15458         Avoid collision between gnulib wrapper and libintl wrapper.
15459         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15460         already defined in intl/printf.c.
15461         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15462         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15463
15464 2009-08-09  Bruno Haible  <bruno@clisp.org>
15465
15466         Make <sys/select.h> really self-contained, also on Solaris 10.
15467         * lib/sys_select.in.h: Include <string.h>.
15468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15469         Solaris 10 problem.
15470         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15471         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15472         Reported by Jim Meyering.
15473
15474 2009-08-09  Bruno Haible  <bruno@clisp.org>
15475
15476         Avoid warnings from 'aclocal' that are due to a use of macro name
15477         AM_XGETTEXT_OPTION that is not defined in automake.
15478         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15479         automake.
15480         * modules/error (configure.ac): Likewise.
15481         * modules/propername (configure.ac): Likewise.
15482         * modules/vasprintf (configure.ac): Likewise.
15483         * modules/verror (configure.ac): Likewise.
15484         * modules/xprintf (configure.ac): Likewise.
15485         * modules/xvasprintf (configure.ac): Likewise.
15486
15487 2009-08-08  Bruno Haible  <bruno@clisp.org>
15488
15489         Avoid compilation error in C++ mode.
15490         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15491         Reported by Sam Steingold <sds@gnu.org>.
15492
15493 2009-08-08  Bruno Haible  <bruno@clisp.org>
15494
15495         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15496         for the various Unix platforms.
15497         * doc/posix-headers/limits.texi: Update platforms list regarding
15498         HOST_NAME_MAX.
15499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15500
15501 2009-08-07  Jim Meyering  <meyering@redhat.com>
15502
15503         selinux-at: fix typo in a comment
15504         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15505         Spotted by Paolo Bonzini.
15506
15507         selinux-at: remove redundant m4 code, add documentation
15508         * modules/selinux-at (configure.ac): Remove redundant code.
15509         LIB_SELINUX is already set via the dependent module, selinux-h.
15510         (Include): Add quotes around selinux-at.h.
15511         * lib/selinux-at.h: Add documentation.
15512         Reported by Bruno Haible in
15513         http://marc.info/?l=gnulib-bug&m=124958988300749
15514
15515 2009-08-07  Bruno Haible  <bruno@clisp.org>
15516
15517         Avoid link error on MacOS X 10.3 and 10.4.
15518         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15519         on non-ELF systems.
15520         * lib/argp-pv.c (argp_program_version): Likewise.
15521         Reported by Simon Josefsson.
15522
15523 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15524
15525         * tests/test-version-etc.sh: Use $EXEEXT.
15526
15527 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15528
15529         update-copyright: update documentation to point to maint.mk
15530         * build-aux/update-copyright: Here.
15531
15532 2009-08-06  Jim Meyering  <meyering@redhat.com>
15533
15534         maint.mk: support update-copyright-local
15535         * top/maint.mk (update-copyright-local): Define place-holder.
15536         (update-copyright): Depend on $(update-copyright-local).
15537
15538 2009-08-06  Jim Meyering  <meyering@redhat.com>
15539
15540         selinux-at: new module
15541         Initially written for coreutils, this module will soon be
15542         used by findutils, too.
15543         * MODULES.html.sh [Misc]: Add selinux-at.
15544         * lib/selinux-at.h: New file, from coreutils.
15545         * lib/selinux-at.c: Likewise.
15546         * modules/selinux-at: Likewise.
15547         (License): Change from LGPL to GPL, since it depends
15548         on the GPL'd openat module.
15549
15550         doc: update README
15551         * README: Remove references to cogito.
15552         Remove cvs-repo-updating instructions from 2007.
15553         Don't imply that CVS is better if you have limited disk space.
15554
15555 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15556
15557         update-copyright: support C-style comments
15558         * build-aux/update-copyright: Implement and document.
15559         * tests/test-update-copyright.sh: Test.
15560
15561 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15562
15563         update-copyright: support omitted "(C)"
15564         * build-aux/update-copyright: Implement and document.  Also,
15565         allow variable whitespace before "(C)".
15566         * tests/test-update-copyright.sh: Test.
15567
15568 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15569
15570         update-copyright: don't trip on non-FSF copyright statements
15571         * build-aux/update-copyright: Fix so that the first correctly
15572         formatted FSF copyright statement is recognized no matter what
15573         appears before it.  Update documentation.
15574         * tests/test-update-copyright.sh: Test that.
15575
15576 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15577
15578         update-copyright: clean up code a little
15579         * build-aux/update-copyright: Append "_re" to the name of any
15580         variable holding a regular expression.
15581         Replace "old" and "new" with "stmt" in variable names.
15582         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15583         handled correctly.
15584         Format code more consistently.
15585
15586 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15587
15588         update-copyright-tests: improve portability
15589         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15590         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15591
15592 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15593
15594         update-copyright: support @copyright{} and &copy;
15595         * build-aux/update-copyright: Implement and document.
15596         * tests/test-update-copyright.sh: Test.
15597
15598 2009-08-04  Jim Meyering  <meyering@redhat.com>
15599
15600         update-copyright-tests: correctly test EOL=\r\n handling
15601         * tests/test-update-copyright.sh: Put \r at the end of some lines
15602         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15603
15604         maint.mk: make update-copyright exclusion list more configurable
15605         * top/maint.mk (update-copyright): Default to excluding COPYING,
15606         but allow an override, in case someone does want to update that file.
15607
15608         maint.mk: don't update copyright date in COPYING
15609         * top/maint.mk (update-copyright): Exclude COPYING.
15610
15611         maint.mk: add a copyright-updating rule
15612         * top/maint.mk (update-copyright): New rule.
15613         Derived from coreutils/Makefile.am.
15614
15615         update-copyright: rename some variables
15616         * build-aux/update-copyright: Rename a few variables for clarity.
15617         Tweak syntax.  List Joel E. Denny as coauthor.
15618
15619 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15620
15621         update-copyright: fix bug for 2-digit last year and add tests
15622         * build-aux/update-copyright: Fix bug.
15623         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
15624         specified.
15625         * modules/update-copyright-tests: New
15626         * tests/test-update-copyright.sh: New.
15627
15628 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15629
15630         update-copyright: handle leading tabs in line prefix
15631         * build-aux/update-copyright: Count leading tabs as 8 spaces
15632         when computing margin.  This helps with the formatting of
15633         ChangeLogs, for example.
15634         Fix documentation a little.
15635
15636 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15637
15638         update-copyright: support EOL=\r\n
15639         * build-aux/update-copyright: Implement that.
15640
15641 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15642
15643         update-copyright: automatically format copyright statements
15644         * build-aux/update-copyright: Implement that.
15645         Also, be a little more predictable and safer by always failing
15646         when the full copyright format is not perfectly recognized as an
15647         unbroken whole.  Discussed at
15648         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15649         Rewrite documentation.
15650
15651 2009-08-03  Bruno Haible  <bruno@clisp.org>
15652
15653         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15654
15655 2009-08-02  Bruno Haible  <bruno@clisp.org>
15656
15657         Tests for module 'uname'.
15658         * modules/uname-tests: New file.
15659         * tests/test-uname.c: New file.
15660
15661         New module 'uname'.
15662         * lib/uname.c: New file.
15663         * m4/uname.m4: New file.
15664         * modules/uname: New file.
15665         * doc/posix-functions/uname.texi: Mention the new module.
15666
15667 2009-08-02  Bruno Haible  <bruno@clisp.org>
15668
15669         Tests for module 'sys_utsname'.
15670         * modules/sys_utsname-tests: New file.
15671         * tests/test-sys_utsname.c: New file.
15672
15673         New module 'sys_utsname'.
15674         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15675         * m4/sys_utsname_h.m4: New file.
15676         * modules/sys_utsname: New file.
15677         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15678
15679 2009-08-02  Bruno Haible  <bruno@clisp.org>
15680
15681         Implicitly initialize the sockets library.
15682         * lib/gethostname.c: Include sockets.h.
15683         (rpl_gethostname): Invoke gl_sockets_startup.
15684         * lib/socket.c: Include sockets.h.
15685         (rpl_socket): Invoke gl_sockets_startup.
15686         * modules/gethostname (Depends-on): Add sockets.
15687         * modules/socket (Depends-on): Likewise.
15688         * tests/test-poll.c: Don't include sockets.h.
15689         (main): Don't invoke gl_sockets_startup.
15690         * tests/test-select.c: Don't include sockets.h.
15691         (main): Don't invoke gl_sockets_startup.
15692
15693 2009-08-02  Bruno Haible  <bruno@clisp.org>
15694
15695         Allow multiple calls to gl_sockets_startup.
15696         * lib/sockets.c (initialized_sockets_version): New variable.
15697         (gl_sockets_startup): Do nothing if already called for this or a higher
15698         version.
15699         (gl_sockets_cleanup): Reset initialized_sockets_version.
15700
15701 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15702
15703         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15704         different project/version.
15705
15706 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15707             Bruno Haible  <bruno@clisp.org>
15708
15709         Tests for module 'pipe-filter-gi'.
15710         * modules/pipe-filter-gi-tests: New file.
15711         * tests/test-pipe-filter-gi1.sh: New file.
15712         * tests/test-pipe-filter-gi1.c: New file.
15713         * tests/test-pipe-filter-gi2.sh: New file.
15714         * tests/test-pipe-filter-gi2-main.c: New file.
15715         * tests/test-pipe-filter-gi2-child.c: New file.
15716
15717         New module 'pipe-filter-gi'.
15718         * lib/pipe-filter-gi.c: New file.
15719         * modules/pipe-filter-gi: New file.
15720
15721 2009-08-02  Bruno Haible  <bruno@clisp.org>
15722             Paolo Bonzini  <bonzini@gnu.org>
15723
15724         Tests for module 'pipe-filter-ii'.
15725         * modules/pipe-filter-ii-tests: New file.
15726         * tests/test-pipe-filter-ii1.sh: New file.
15727         * tests/test-pipe-filter-ii1.c: New file.
15728         * tests/test-pipe-filter-ii2.sh: New file.
15729         * tests/test-pipe-filter-ii2-main.c: New file.
15730         * tests/test-pipe-filter-ii2-child.c: New file.
15731
15732         New module 'pipe-filter-ii'.
15733         * lib/pipe-filter.h: New file.
15734         * lib/pipe-filter-ii.c: New file.
15735         * lib/pipe-filter-aux.h: New file.
15736         * modules/pipe-filter-ii: New file.
15737
15738 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15739
15740         * lib/gc-libgcrypt.c: Change copyright to FSF.
15741         * lib/gc-gnulib.c: Likewise.
15742
15743 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
15744
15745         * lib/gethostname.c: Include limits.h.
15746
15747 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15748             Bruno Haible  <bruno@clisp.org>
15749
15750         Ensure HOST_NAME_MAX as part of the gethostname module.
15751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
15752         define also HOST_NAME_MAX.
15753         * tests/test-gethostname.c: Include <limits.h>.
15754         (main): Check also HOST_NAME_MAX.
15755         * doc/posix-headers/limits.texi: Document the mingw problem.
15756
15757 2009-08-02  Bruno Haible  <bruno@clisp.org>
15758
15759         * lib/gethostname.c (gethostname): Fix handling of large len argument.
15760         Add comments.
15761
15762 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15763
15764         * lib/gethostname.c: Add Windows wrapper.
15765         * m4/gethostname.m4: Look for gethostname in -lws2_32.
15766         * modules/gethostname: Depend on sys_socket & errno, for also
15767         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
15768         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
15769
15770 2009-07-31  Jim Meyering  <meyering@redhat.com>
15771
15772         getloadavg: fix symbol name in comment
15773         * lib/getloadavg.c: Correct a typo I introduced when adding
15774         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
15775         Matt Kraai spotted the problem.
15776
15777 2009-07-29  Matt Kraai  <mkraai@beckman.com>
15778
15779         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
15780         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
15781         code also if ! defined N_NAME_POINTER.
15782         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
15783         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
15784         but the n_name member is a 12-byte array.
15785
15786 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
15787
15788         update-copyright: generalize comment handling
15789         * build-aux/update-copyright: Handle copyright statements
15790         within more comment styles.
15791         Document usage.
15792         Report any file with an external copyright holder or parse failure.
15793
15794 2009-07-29  Jim Meyering  <meyering@redhat.com>
15795
15796         mktime: correct setting of REPLACE_MKTIME
15797         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
15798
15799         update-copyright: new module
15800         * modules/update-copyright: New file.
15801         * build-aux/update-copyright: New file.
15802         * MODULES.html.sh (maint+release support): Add update-copyright.
15803
15804 2009-07-27  Bruno Haible  <bruno@clisp.org>
15805
15806         Fix compilation error when <ctime> is used and mktime is replaced.
15807         * lib/time.in.h (mktime): New declaration.
15808         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
15809         REPLACE_MKTIME instead of defining mktime in config.h.
15810         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
15811         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
15812         Reported by Ross McFarland <rwmcfa1@neces.com>.
15813
15814 2009-07-27  Bruno Haible  <bruno@clisp.org>
15815
15816         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
15817         Reported by Matt Kraai <mkraai@beckman.com>.
15818
15819 2009-07-25  Jim Meyering  <meyering@redhat.com>
15820
15821         maint.mk: avoid warnings about missing files
15822         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
15823         diagnostic when .prev-version does not exist.
15824         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
15825         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
15826         nonexistent cfg.mk.
15827         Suggestions from Simon Josefsson.
15828
15829 2009-07-25  Bruno Haible  <bruno@clisp.org>
15830
15831         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
15832         defined as macros. Needed on QNX 6.4.1.
15833         Reported by Matt Kraai <mkraai@beckman.com>.
15834
15835 2009-07-23  Jim Meyering  <meyering@redhat.com>
15836
15837         maint.mk: invoke "make dist" with a working value of XZ_OPT
15838         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
15839
15840 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
15841
15842         Make fseeko.c compile on QNX.
15843         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
15844
15845 2009-07-22  Peter Simons  <simons@cryp.to>
15846
15847         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
15848         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
15849         * lib/md4.h: Likewise.
15850         * lib/md5.h: Likewise.
15851         * lib/sha1.h: Likewise.
15852         * lib/sha256.h: Likewise.
15853         * lib/sha512.h: Likewise.
15854
15855         tests-sha1: don't assign literal string to 'char *' variable
15856         * tests/test-sha1.c (main): Declare locals with "const" to match
15857         attributes of the right hand side.
15858
15859 2009-07-21  Eric Blake  <ebb9@byu.net>
15860
15861         dup2: fix more mingw problems
15862         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
15863         fd to itself.
15864         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15865         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
15866         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
15867         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
15868         care of mingw bugs.
15869
15870 2009-07-21  Jim Meyering  <meyering@redhat.com>
15871
15872         vc-list-files: avoid failure when /bin/sh is dash
15873         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
15874         On some Debian based systems, /bin/sh is a symlink to dash, and running
15875         this command would omit the "/" following each 'tests' prefix:
15876           dash -x build-aux/vc-list-files -C . tests
15877         That is because bash and dash work differently:
15878           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
15879           bash ok
15880           dash odd
15881
15882 2009-07-21  Eric Blake  <ebb9@byu.net>
15883
15884         dup2-tests: test previous patch
15885         * modules/dup2-tests: New file.
15886         * tests/test-dup2.c: Likewise.
15887         * tests/test-open.c (main): Avoid unspecified behavior.
15888         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
15889         test.
15890
15891         dup2: work around mingw and cygwin 1.5 bug
15892         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
15893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15894         * modules/unistd (Makefile.am): Substitute it.
15895         * lib/unistd.in.h (dup2): Declare the replacement.
15896         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
15897         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
15898         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
15899         * modules/execute (Depends-on): Add dup2.
15900         * modules/fseterr (Depends-on): Likewise.
15901         * modules/pipe (Depends-on): Likewise.
15902         * modules/posix_spawn-internal (Depends-on): Likewise.
15903
15904 2009-07-21  Bruno Haible  <bruno@clisp.org>
15905
15906         * modules/.gitattributes: New file.
15907
15908 2009-07-20  Bruno Haible  <bruno@clisp.org>
15909
15910         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
15911         (main): Use it.
15912
15913 2009-07-20  Eric Blake  <ebb9@byu.net>
15914
15915         test-pipe: make a bit more robust.
15916         * tests/test-pipe.c (myerr): Allow error messages regardless of
15917         what we do to stderr.
15918         (test_pipe): Rearrange to avoid deadlock.
15919         (child_main): Try a larger read, to ensure we avoided deadlock.
15920         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
15921         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
15922         if misused.
15923
15924 2009-07-19  Jim Meyering  <meyering@redhat.com>
15925
15926         fts: avoid false-positive cycle-detection
15927         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
15928         for each new command line argument.
15929
15930 2009-07-19  Bruno Haible  <bruno@clisp.org>
15931
15932         Fix build error on mingw with the modules sys_select and unistd.
15933         * modules/acl-tests (Depends-on): Add close.
15934         * modules/binary-io-tests (Depends-on): Likewise.
15935         * modules/closein-tests (Depends-on): Likewise.
15936         * modules/flock-tests (Depends-on): Likewise.
15937         * modules/fsync-tests (Depends-on): Likewise.
15938         * modules/lseek-tests (Depends-on): Likewise.
15939         * modules/pipe-tests (Depends-on): Likewise.
15940         * modules/posix_spawn-tests (Depends-on): Likewise.
15941         * modules/posix_spawnp-tests (Depends-on): Likewise.
15942         * modules/stat-time-tests (Depends-on): Likewise.
15943         * modules/yesno-tests (Depends-on): Likewise.
15944
15945 2009-07-19  Bruno Haible  <bruno@clisp.org>
15946
15947         Unify conditionals.
15948         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
15949         macros, not at the compiler macros.
15950         * lib/pipe.c: Likewise.
15951         * lib/execute.c: Likewise.
15952         * lib/spawni.c: Likewise.
15953
15954 2009-07-19  Bruno Haible  <bruno@clisp.org>
15955
15956         Fix handling of closed stdin/stdout/stderr on mingw.
15957         * lib/w32spawn.h: Include unistd.h.
15958         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
15959         file descriptor with O_NOINHERIT flag.
15960         (fd_safer_noinherit): New function, based on fd-safer.c.
15961         (dup_safer_noinherit): New function, based on dup-safer.c.
15962         (undup_safer_noinherit): New function.
15963         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
15964         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
15965         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
15966         instead of fd_safer.
15967         * tests/test-pipe.c: Include <windows.h>.
15968         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
15969
15970         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
15971         from main.
15972         (test_pipe): Pass an extra argument for disambiguation.
15973         (main): Invoke parent_main or child_main.
15974
15975         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
15976         consistently.
15977
15978 2009-07-18  Eric Blake  <ebb9@byu.net>
15979
15980         test-pipe: fix mingw build
15981         * tests/test-pipe.c (main): Avoid fcntl on mingw.
15982
15983 2009-07-18  Bruno Haible  <bruno@clisp.org>
15984
15985         * modules/pipe-tests (Makefile.am): Fix typo.
15986
15987 2009-07-18  Eric Blake  <ebb9@byu.net>
15988
15989         error: fix mingw build
15990         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
15991         Reported by Bruno Haible.
15992
15993         error: avoid undefined use of stdout
15994         * lib/error.c (error, error_at_line): Check that fd 1 is open
15995         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
15996         is handling faults and the close_stdout module wants to report the
15997         detection of closed stdout as an error.
15998
15999 2009-07-17  Eric Blake  <ebb9@byu.net>
16000
16001         pipe: be robust in face of closed fds
16002         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16003         should cause child to misbehave.
16004         * modules/pipe-tests: New module.
16005         * tests/test-pipe.c: New file.
16006         * tests/test-pipe.sh: New file.
16007         Reported by Akim Demaille.
16008
16009 2009-07-14  Bruno Haible  <bruno@clisp.org>
16010
16011         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16012         Reported by anonymous kc.
16013
16014 2009-07-07  Jim Meyering  <meyering@redhat.com>
16015
16016         maint.mk: don't look for translatable strings in *.m4 or *.mk
16017         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16018         when searching for translatable strings.
16019
16020 2009-07-05  Jim Meyering  <meyering@redhat.com>
16021
16022         remove superfluous parentheses in STREQ definition
16023         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16024         * lib/getugroups.c (STREQ): Likewise.
16025         * lib/fnmatch.c (STREQ): Likewise.
16026         Spotted by Bruno Haible.
16027
16028 2009-07-04  Jim Meyering  <meyering@redhat.com>
16029
16030         argv-iter: new module
16031         * MODULES.html.sh: Add argv-iter.
16032         * lib/argv-iter.c, lib/argv-iter.h: New files.
16033         * modules/argv-iter: New file.
16034         * modules/argv-iter-tests: New file.
16035         * tests/test-argv-iter.c: Test it.
16036
16037 2009-07-04  Bruno Haible  <bruno@clisp.org>
16038
16039         Fix assertion.
16040         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16041         contains more exact copies of a given entry than file2, leave the extra
16042         copies unpaired rather than aborting.
16043         Reported by Eric Blake.
16044
16045 2009-07-02  Bruno Haible  <bruno@clisp.org>
16046
16047         Speedup git-merge-changelog for git cherry-pick.
16048         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16049         (entries_mapping_get): New function, extracted from compute_mapping.
16050         (entries_mapping_reverse_get): New function.
16051         (compute_mapping): Add a 'full' argument. Return the result in a
16052         'struct entries_mapping'.
16053         (main): Update. Access the mappings through entries_mapping_get.
16054         Reported by Eric Blake.
16055
16056 2009-07-02  Bruno Haible  <bruno@clisp.org>
16057
16058         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16059         best_i.
16060
16061 2009-07-02  Bruno Haible  <bruno@clisp.org>
16062
16063         Speed up approximate search for matching ChangeLog entries.
16064         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16065         argument. Call fstrcmp_bounded instead of fstrcmp.
16066         (compute_mapping, try_split_merged_entry, main): Update callers.
16067
16068 2009-07-02  Bruno Haible  <bruno@clisp.org>
16069
16070         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16071
16072 2009-06-30  Bruno Haible  <bruno@clisp.org>
16073
16074         Reduce the number of uc_is_cased calls.
16075         * lib/unicase.h (casing_suffix_context_t): Add
16076         'first_char_except_ignorable' field.
16077         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16078         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16079         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16080         Update initializer.
16081         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16082         case-ignorable characters.
16083         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16084         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16085         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16086         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16087         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16088
16089 2009-06-30  Bruno Haible  <bruno@clisp.org>
16090
16091         Tests for module 'unicase/ignorable'.
16092         * modules/unicase/ignorable-tests: New file.
16093         * tests/unicase/test-ignorable.c: New file, generated by
16094         gen-uni-tables.
16095
16096         Tests for module 'unicase/cased'.
16097         * modules/unicase/cased-tests: New file.
16098         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16099         * tests/unicase/test-predicate-part1.h: New file, derived from
16100         tests/unictype/test-predicate-part1.h.
16101         * tests/unicase/test-predicate-part2.h: New file, same as
16102         tests/unictype/test-predicate-part2.h.
16103
16104         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16105         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16106         (output_casing_properties): New function.
16107         (main): Call it.
16108         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16109         * lib/unicase/cased.c: Include unictype/bitmap.h.
16110         (uc_is_cased): Define through a bitmap lookup.
16111         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16112         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16113         (uc_is_case_ignorable): Define through a bitmap lookup.
16114         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16115         lib/unictype/bitmap.h.
16116         (Depends-on): Add inline. Clean up.
16117         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16118         lib/unictype/bitmap.h.
16119         (Depends-on): Add inline. Clean up.
16120         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16121         recognition.
16122         * tests/unicase/test-u16-tolower.c (main): Likewise.
16123         * tests/unicase/test-u32-tolower.c (main): Likewise.
16124
16125 2009-06-30  Bruno Haible  <bruno@clisp.org>
16126
16127         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16128         * lib/unicase/u16-casemap.c: Likewise.
16129         * lib/unicase/u32-casemap.c: Likewise.
16130
16131 2009-06-29  Bruno Haible  <bruno@clisp.org>
16132
16133         Define u32_casefold as a wrapper around u32_ct_casefold.
16134         * lib/unicase/u32-casefold.c: Update.
16135         * modules/unicase/u32-casefold (Depends-on): Add
16136         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16137         unicase/empty-suffix-context. Clean up.
16138
16139         Define u16_casefold as a wrapper around u16_ct_casefold.
16140         * lib/unicase/u16-casefold.c: Update.
16141         * modules/unicase/u16-casefold (Depends-on): Add
16142         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16143         unicase/empty-suffix-context. Clean up.
16144
16145         Define u8_casefold as a wrapper around u8_ct_casefold.
16146         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16147         * lib/unicase/u8-casefold.c: Update.
16148         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16149         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16150
16151         Define u32_totitle as a wrapper around u32_ct_totitle.
16152         * lib/unicase/u32-totitle.c: Update.
16153         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16154         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16155
16156         Define u16_totitle as a wrapper around u16_ct_totitle.
16157         * lib/unicase/u16-totitle.c: Update.
16158         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16159         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16160
16161         Define u8_totitle as a wrapper around u8_ct_totitle.
16162         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16163         functions.
16164         (FUNC): Delegate to U_CT_TOTITLE.
16165         * lib/unicase/u8-totitle.c: Update.
16166         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16167         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16168
16169         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16170         invocation.
16171         * modules/unicase/u32-tolower (Depends-on): Add
16172         unicase/empty-prefix-context, unicase/empty-suffix-context.
16173
16174         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16175         invocation.
16176         * modules/unicase/u16-tolower (Depends-on): Add
16177         unicase/empty-prefix-context, unicase/empty-suffix-context.
16178
16179         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16180         * modules/unicase/u8-tolower (Depends-on): Add
16181         unicase/empty-prefix-context, unicase/empty-suffix-context.
16182
16183         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16184         invocation.
16185         * modules/unicase/u32-toupper (Depends-on): Add
16186         unicase/empty-prefix-context, unicase/empty-suffix-context.
16187
16188         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16189         invocation.
16190         * modules/unicase/u16-toupper (Depends-on): Add
16191         unicase/empty-prefix-context, unicase/empty-suffix-context.
16192
16193         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16194         * modules/unicase/u8-toupper (Depends-on): Add
16195         unicase/empty-prefix-context, unicase/empty-suffix-context.
16196
16197         New module 'unicase/u32-ct-casefold'.
16198         * lib/unicase/u32-ct-casefold.c: New file.
16199         * modules/unicase/u32-ct-casefold: New file.
16200
16201         New module 'unicase/u16-ct-casefold'.
16202         * lib/unicase/u16-ct-casefold.c: New file.
16203         * modules/unicase/u16-ct-casefold: New file.
16204
16205         New module 'unicase/u8-ct-casefold'.
16206         * lib/unicase/u8-ct-casefold.c: New file.
16207         * lib/unicase/u-ct-casefold.h: New file, derived from
16208         lib/unicase/u-casefold.h.
16209         * modules/unicase/u8-ct-casefold: New file.
16210
16211         New module 'unicase/u32-ct-totitle'.
16212         * lib/unicase/u32-ct-totitle.c: New file.
16213         * modules/unicase/u32-ct-totitle: New file.
16214
16215         New module 'unicase/u16-ct-totitle'.
16216         * lib/unicase/u16-ct-totitle.c: New file.
16217         * modules/unicase/u16-ct-totitle: New file.
16218
16219         New module 'unicase/u8-ct-totitle'.
16220         * lib/unicase/u8-ct-totitle.c: New file.
16221         * lib/unicase/u-ct-totitle.h: New file, derived from
16222         lib/unicase/u-totitle.h.
16223         * modules/unicase/u8-ct-totitle: New file.
16224
16225         New module 'unicase/u32-ct-tolower'.
16226         * lib/unicase/u32-ct-tolower.c: New file.
16227         * modules/unicase/u32-ct-tolower: New file.
16228
16229         New module 'unicase/u16-ct-tolower'.
16230         * lib/unicase/u16-ct-tolower.c: New file.
16231         * modules/unicase/u16-ct-tolower: New file.
16232
16233         New module 'unicase/u8-ct-tolower'.
16234         * lib/unicase/u8-ct-tolower.c: New file.
16235         * modules/unicase/u8-ct-tolower: New file.
16236
16237         New module 'unicase/u32-ct-toupper'.
16238         * lib/unicase/u32-ct-toupper.c: New file.
16239         * modules/unicase/u32-ct-toupper: New file.
16240
16241         New module 'unicase/u16-ct-toupper'.
16242         * lib/unicase/u16-ct-toupper.c: New file.
16243         * modules/unicase/u16-ct-toupper: New file.
16244
16245         New module 'unicase/u8-ct-toupper'.
16246         * lib/unicase/u8-ct-toupper.c: New file.
16247         * modules/unicase/u8-ct-toupper: New file.
16248
16249         Add context arguments to u*_casemap functions.
16250         * lib/unicase/unicasemap.h: Include unicase.h.
16251         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16252         suffix_context arguments.
16253         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16254         functions.
16255         (FUNC): Add prefix_context and suffix_context arguments. Use
16256         uc_is_cased and uc_is_case_ignorable.
16257         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16258         * lib/unicase/u16-casemap.c: Likewise.
16259         * lib/unicase/u32-casemap.c: Likewise.
16260         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16261         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16262         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16263         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16264         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16265         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16266
16267         New module 'unicase/u32-suffix-context'.
16268         * lib/unicase/u32-suffix-context.c: New file.
16269         * modules/unicase/u32-suffix-context: New file.
16270
16271         New module 'unicase/u16-suffix-context'.
16272         * lib/unicase/u16-suffix-context.c: New file.
16273         * modules/unicase/u16-suffix-context: New file.
16274
16275         New module 'unicase/u8-suffix-context'.
16276         * lib/unicase/u8-suffix-context.c: New file.
16277         * lib/unicase/u-suffix-context.h: New file.
16278         * modules/unicase/u8-suffix-context: New file.
16279
16280         New module 'unicase/empty-suffix-context'.
16281         * lib/unicase/empty-suffix-context.c: New file.
16282         * modules/unicase/empty-suffix-context: New file.
16283
16284         New module 'unicase/u32-prefix-context'.
16285         * lib/unicase/u32-prefix-context.c: New file.
16286         * modules/unicase/u32-prefix-context: New file.
16287
16288         New module 'unicase/u16-prefix-context'.
16289         * lib/unicase/u16-prefix-context.c: New file.
16290         * modules/unicase/u16-prefix-context: New file.
16291
16292         New module 'unicase/u8-prefix-context'.
16293         * lib/unicase/u8-prefix-context.c: New file.
16294         * lib/unicase/u-prefix-context.h: New file.
16295         * lib/unicase/context.h: New file.
16296         * modules/unicase/u8-prefix-context: New file.
16297
16298         New module 'unicase/empty-prefix-context'.
16299         * lib/unicase/empty-prefix-context.c: New file.
16300         * modules/unicase/empty-prefix-context: New file.
16301
16302         New module 'unicase/ignorable'.
16303         * lib/unicase/ignorable.c: New file.
16304         * modules/unicase/ignorable: New file.
16305
16306         New module 'unicase/cased'.
16307         * lib/unicase/caseprop.h: New file.
16308         * lib/unicase/cased.c: New file.
16309         * modules/unicase/cased: New file.
16310
16311         New functions for case mapping of substrings.
16312         * lib/unicase.h (casing_prefix_context_t): New type.
16313         (unicase_empty_prefix_context): New variable.
16314         (u8_casing_prefix_context, u16_casing_prefix_context,
16315         u32_casing_prefix_context, u8_casing_prefixes_context,
16316         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16317         declarations.
16318         (casing_suffix_context_t): New type.
16319         (unicase_empty_suffix_context): New variable.
16320         (u8_casing_suffix_context, u16_casing_suffix_context,
16321         u32_casing_suffix_context, u8_casing_suffixes_context,
16322         u16_casing_suffixes_context, u32_casing_suffixes_context,
16323         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16324         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16325         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16326         declarations.
16327
16328 2009-06-28  Jim Meyering  <meyering@redhat.com>
16329
16330         boostrap: indent only with spaces
16331         * build-aux/bootstrap: Indent only with spaces, never TABs.
16332
16333         bootstrap: split long lines
16334         * build-aux/bootstrap: Keep line length < 80.
16335
16336         bootstrap: sync from coreutils
16337         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16338         just as autoreconf does.  Verify a list of prerequisite
16339         package-name,version-number pairs if defined in bootstrap.conf.
16340         Refer to README-prereq, if prerequisites are not satisfied.
16341
16342 2009-06-27  Eric Blake  <ebb9@byu.net>
16343
16344         tests: add test for bogus NULL definition
16345         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16346         * tests/test-stdlib.c: Likewise.
16347         * tests/test-string.c: Likewise.
16348         * tests/test-locale.c: Likewise.
16349         * tests/test-unistd.c: Likewise.
16350         * modules/stdio-tests (Depends-on): Add verify.
16351         * modules/stdlib-tests (Depends-on): Likewise.
16352         * modules/string-tests (Depends-on): Likewise.
16353         * modules/locale-tests (Depends-on): Likewise.
16354         * modules/unistd-tests (Depends-on): Likewise.
16355
16356 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16357
16358         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16359         self-explaining comment.
16360         * m4/selinux-selinux-h: Update serial.
16361         (gl_LIBSELINUX): New macro, adding a warning for missing development
16362         packages to code extracted from...
16363         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16364         Add warning for missing development packages here, too.
16365
16366 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16367
16368         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16369
16370 2009-06-25  Eric Blake  <ebb9@byu.net>
16371
16372         version-etc: fix regression
16373         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16374         gcc.
16375         (version_etc): Use it, to catch bugs with trailing NULL.
16376         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16377         (version_etc_va): Fix logic bug.
16378         * modules/version-etc-tests: Add test.
16379         * tests/test-version-etc.c: New file.
16380         * tests/test-version-etc.sh: Likewise.
16381
16382 2009-06-25  Sam Steingold  <sds@gnu.org>
16383
16384         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16385         mbtowc declaration.
16386
16387 2009-06-25  Eric Blake  <ebb9@byu.net>
16388
16389         fpurge: migrate into <stdio.h>
16390         * lib/fpurge.h: Delete...
16391         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16392         * lib/fpurge.c (fpurge): Change declaring header.
16393         * modules/fpurge (Files): Drop deleted file.
16394         (Depends-on): Add stdio.
16395         (configure.ac): Set witness.
16396         * modules/stdio (Makefile.am): Support fpurge macros.
16397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16398         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16399         * lib/fflush.c: Update client.
16400         * tests/test-fpurge.c: Likewise.
16401         * NEWS: Mention the change.
16402
16403 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16404
16405         * lib/argp-version-etc.c (program_authors): Add const
16406         qualifier.
16407         * lib/version-etc.c: Fix typos in the comments.
16408         * modules/argp-version-etc: Depends on version-etc.
16409
16410 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16411
16412         argp-version-etc: new module.
16413
16414         * lib/argp-version-etc.c: New file.
16415         * lib/argp-version-etc.h: New file.
16416         * modules/argp-version-etc: New file.
16417         * modules/argp-version-etc-tests: New file.
16418         * tests/test-argp-version-etc.c: New test.
16419         * tests/test-argp-version-etc-1.sh: New test.
16420
16421 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16422
16423         Provide additional interfaces and documentation for version-etc
16424         module.
16425
16426         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16427         interfaces.
16428         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16429         prototypes.
16430
16431 2009-06-24  Bruno Haible  <bruno@clisp.org>
16432
16433         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16434         HAVE_LIB${NAME} macro.
16435         Reported by Sam Steingold <sds@gnu.org>.
16436
16437 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16438
16439         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16440         needed.
16441
16442 2009-06-21  Bruno Haible  <bruno@clisp.org>
16443
16444         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16445         work.
16446         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16447         together with LIB${NAME}, LTLIB${NAME}.
16448         Reported by Sam Steingold <sds@gnu.org>.
16449
16450 2009-06-20  Jim Meyering  <meyering@redhat.com>
16451
16452         tests: make sc_require_test_exit_idiom more generic
16453         * top/maint.mk (Exit_witness_file): New overridable variable.
16454         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16455         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16456
16457 2009-06-19  Jim Meyering  <meyering@redhat.com>
16458
16459         hash: reverse order of src/dst parameters in an internal interface
16460         * lib/hash.c (transfer_entries): Reverse order of parameters to
16461         put DST before SRC.  Adjust callers.
16462
16463         tests: test-hash: avoid wholesale duplication
16464         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16465         Instead, use a loop and add a single conditional.
16466
16467         tests: test-hash: allow seed selection via a command line argument
16468         * tests/test-hash.c (get_seed): New function.
16469         (main): Use it.
16470
16471 2009-06-19  Eric Blake  <ebb9@byu.net>
16472
16473         hash: avoid memory leak on allocation failure
16474         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16475         failure.  Factor repeated algorithm...
16476         (transfer_entries): ...into new helper routine.
16477         (hash_delete): React to hash_rehash return value.
16478
16479         hash: reduce memory pressure in hash_rehash no-op case
16480         * lib/hash.c (next_prime): Avoid overflow.
16481         (hash_initialize): Factor bucket size computation...
16482         (compute_bucket_size): ...into new helper function.
16483         (hash_rehash): Use new function and open coding to reduce memory
16484         pressure, and avoid a memory leak in USE_OBSTACK code.
16485         Reported by Jim Meyering.
16486
16487 2009-06-18  Eric Blake  <ebb9@byu.net>
16488
16489         hash: make rotation more obvious
16490         * modules/hash (Depends-on): Add bitrotate and stdint.
16491         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16492         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16493         (SIZE_MAX): Rely on headers for definition.
16494         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16495         (raw_hasher): Use rotr_sz.
16496         Suggested by Jim Meyering.
16497
16498         hash: fix memory leak in last patch
16499         * lib/hash.c (hash_rehash): Avoid memory leak.
16500
16501         hash: avoid no-op rehashing
16502         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16503
16504         hash: provide default callback functions
16505         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16506         (hash_initialize): Use them as defaults.
16507         * tests/test-hash.c (main): Test this.
16508
16509         hash: minor optimization
16510         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16511         when possible.
16512         (hash_initialize): Document this promise.
16513         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16514         * tests/test-hash.c (hash_compare_strings): Test this.
16515
16516 2009-06-18  Bruno Haible  <bruno@clisp.org>
16517
16518         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16519         going to be replaced anyway.
16520
16521 2009-06-18  Bruno Haible  <bruno@clisp.org>
16522
16523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16524         in one place.
16525         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16526         be replaced anyway.
16527
16528 2009-06-18  Eric Blake  <ebb9@byu.net>
16529
16530         hash: check for resize before insertion
16531         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16532         threshold before insertion, so that a pathological hash_rehash
16533         that fills every bucket can still trigger another rehash.
16534
16535 2009-06-18  Jim Meyering  <meyering@redhat.com>
16536
16537         hash-tests: add a loop around the small tests
16538         * tests/test-hash.c (main): Repeat small tests with selected
16539         small initial table sizes.
16540
16541 2009-06-17  Eric Blake  <ebb9@byu.net>
16542
16543         hash: minor cleanups
16544         * lib/hash.h (hash_entry): Make opaque, by moving...
16545         * lib/hash.c (hash_entry): ...here.
16546         (hash_insert): Clarify restrictions on what can be inserted.
16547         (hash_get_next): Clarify when it is safe to remove an element
16548         during traversal.
16549         (check_tuning): Skip verification when tuning is known safe.
16550         (hash_initialize): Clarify restrictions on tuning.
16551
16552 2009-06-17  Jim Meyering  <jim@meyering.net>
16553         and Eric Blake  <ebb9@byu.net>
16554
16555         hash-tests: new module
16556         * modules/hash-tests: New file.
16557         * tests/test-hash.c: New file.
16558
16559 2009-06-17  Eric Blake  <ebb9@byu.net>
16560
16561         strstr-simple: document new module
16562         * MODULES.html.sh: Document new module.
16563
16564         strstr, strcasestr: replace on platforms with broken memchr
16565         * modules/strstr: Split into...
16566         * modules/strstr-simple: ...new module that does not care about
16567         performance, but does care about glibc bug.
16568         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16569         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16570         if platform memchr is broken, per Debian bug 521737.
16571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16572         memchr.
16573         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16574         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16575         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16576         * modules/mountlist (Depends-on): Add strstr-simple.
16577         * modules/gen-uni-tables (Depends-on): Likewise.
16578         * modules/argz (Depends-on): Add strstr.
16579
16580 2009-06-17  Bruno Haible  <bruno@clisp.org>
16581
16582         * modules/posix_spawn-internal (Depends-on): Add errno.
16583
16584 2009-06-17  Bruno Haible  <bruno@clisp.org>
16585
16586         Define missing ESTALE on Interix 3.5.
16587         * lib/errno.in.h (ESTALE): Assign a value if missing.
16588         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16589         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16590         missing.
16591         * doc/posix-headers/errno.texi: Mention the Interix bug.
16592         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16593
16594 2009-06-15  Eric Blake  <ebb9@byu.net>
16595
16596         memchr, memchr2: add valgrind exception
16597         * lib/memchr.valgrind: New file.
16598         * lib/memchr2.valgrind: New file.
16599         * modules/memchr (Files): Distribute valgrind file.
16600         * modules/memchr2 (Files): Likewise.
16601
16602         docs: memchr is no longer obsolete
16603         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16604         * lib/string.in.h (memchr): Simplify logic.
16605
16606 2009-06-14  Jim Meyering  <meyering@redhat.com>
16607
16608         link-follow: fix the "checking..." message to not mention trailing slash
16609         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16610         never considered trailing slashes.
16611
16612 2009-06-14  Bruno Haible  <bruno@clisp.org>
16613
16614         * m4/memchr.m4: Mention also the bug on IA-64.
16615         * doc/posix-functions/memchr.texi: Likewise.
16616
16617 2009-06-12  Eric Blake  <ebb9@byu.net>
16618
16619         memchr: detect broken x86_64 and alpha implementations
16620         * modules/memchr-tests (Depends-on): Move mmap detection...
16621         * modules/memchr (Depends-on): ...here.
16622         (configure.ac): Set indicator.
16623         * lib/string.in.h (memchr): Declare replacement.
16624         * modules/string (Makefile.am): Trigger replacement.
16625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
16627         bugs.
16628         * doc/posix-functions/memchr.texi (memchr): Document the bug.
16629         * modules/getpagesize (License): Relax license.
16630
16631 2009-06-11  Bruno Haible  <bruno@clisp.org>
16632
16633         * lib/idpriv.h: Add more references.
16634
16635 2009-06-08  Bruno Haible  <bruno@clisp.org>
16636
16637         Tests for module 'idpriv-droptemp'.
16638         * modules/idpriv-droptemp-tests: New file.
16639         * tests/test-idpriv-droptemp.sh: New file.
16640         * tests/test-idpriv-droptemp.su.sh: New file.
16641         * tests/test-idpriv-droptemp.c: New file.
16642
16643         New module 'idpriv-droptemp'.
16644         * lib/idpriv-droptemp.c: New file.
16645         * modules/idpriv-droptemp: New file.
16646
16647 2009-06-08  Bruno Haible  <bruno@clisp.org>
16648
16649         Tests for module 'idpriv-drop'.
16650         * modules/idpriv-drop-tests: New file.
16651         * tests/test-idpriv-drop.sh: New file.
16652         * tests/test-idpriv-drop.su.sh: New file.
16653         * tests/test-idpriv-drop.c: New file.
16654
16655         New module 'idpriv-drop'.
16656         * lib/idpriv.h: New file.
16657         * lib-idpriv-drop.c: New file.
16658         * m4/idpriv.m4: New file.
16659         * modules/idpriv-drop: New file.
16660
16661 2009-06-08  Bruno Haible  <bruno@clisp.org>
16662
16663         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16664         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16665         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16666         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16667         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16668         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16669         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16670
16671 2009-06-08  Eric Blake  <ebb9@byu.net>
16672
16673         test-strstr: use memory fence, when possible
16674         * tests/test-strstr.c (main): Use memory fence, in order to be
16675         more likely to trigger Debian bug 521737.
16676         * modules/strstr-tests (Files): Pull in additional files.
16677
16678         memchr: no longer obsolete, for wider field testing
16679         * modules/memchr (Status, Notice): Delete, this module is no
16680         longer obsolete.
16681         * modules/vasnprintf (Depends-on): Add memchr.
16682
16683 2009-06-07  Jim Meyering  <meyering@redhat.com>
16684
16685         hash: declare some functions with the warn_unused_result attribute
16686         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16687
16688 2009-06-07  Bruno Haible  <bruno@clisp.org>
16689
16690         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16691         Reported by Eric Blake.
16692
16693 2009-06-06  Eric Blake  <ebb9@byu.net>
16694
16695         test-alignof: fix typo with long double
16696         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16697         compiler error.
16698
16699 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16700
16701         Escape non-texinfo { and }s.
16702         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16703         markup error.
16704
16705 2009-06-04  Jim Meyering  <meyering@redhat.com>
16706
16707         gitlog-to-changelog: don't infloop on an empty commit log
16708         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16709         Reported by Boris Petersen <transacid@centerim.org>.
16710
16711 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
16712
16713         version-etc: extend for packagers
16714         Add three new configure options, intended for packagers:
16715           --with-packager="packager name"
16716           --with-packager-version="packager-specific version"
16717           --with-packager-bug-reports="packager bug reporting"
16718         An example with coreutils:
16719           $ ./configure \
16720             --with-packager=Gentoo \
16721             --with-packager-bug-report=http://bugs.gentoo.org/ \
16722             --with-packager-version="patchset 1.6"
16723           $ ./src/ls --version | head -n2
16724           ls (GNU coreutils) 7.1-dirty
16725           Packaged by Gentoo (patchset 1.6)
16726         Note that the bug reporting info via --help doesn't show up because
16727         coreutils uses its own custom emit_bug_reporting_address() implementation
16728         in src/system.h.  If it didn't, it'd look like:
16729           $ ./src/ls --help | tail -n4
16730           Report bugs to <bug-coreutils@gnu.org>.
16731           Report Gentoo bugs to <http://bugs.gentoo.org/>.
16732           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
16733           General help using GNU software: <http://www.gnu.org/gethelp/>.
16734         * lib/version-etc.c: Print new information, if provided.
16735         * m4/version-etc.m4: New file.
16736         * modules/version-etc (Files): Add m4/version-etc.m4.
16737         (configure.ac): Add gl_VERSION_ETC.
16738
16739 2009-05-31  Bruno Haible  <bruno@clisp.org>
16740
16741         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
16742         and 'int64_t'.
16743         * modules/alignof-tests (Dependencies): Add stdint.
16744         Reported by Eric Blake.
16745
16746 2009-05-31  Bruno Haible  <bruno@clisp.org>
16747
16748         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
16749         restriction due to compiler bugs.
16750         Reported by Eric Blake.
16751
16752 2009-05-31  Simon Josefsson  <simon@josefsson.org>
16753             Bruno Haible  <bruno@clisp.org>
16754
16755         Fix test-alignof failure.
16756         * lib/alignof.h (alignof_slot): New macro.
16757         (alignof_type): New macro, with the same semantics as the previous
16758         'alignof'.
16759         (alignof): Alias to alignof_slot.
16760         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
16761         check that the results are usable as constant expressions.
16762
16763 2009-05-31  Bruno Haible  <bruno@clisp.org>
16764
16765         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
16766         * tests/test-memchr.c (main): Check that memchr does not read past the
16767         first occurrence of the byte.
16768         * tests/test-strstr.c (main): Update comment.
16769         Suggested by Eric Blake.
16770
16771 2009-05-30  Bruno Haible  <bruno@clisp.org>
16772
16773         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
16774         detail how to use dumpbin.
16775         Reported by David Byron <dbyron@dbyron.com>.
16776
16777 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16778
16779         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
16780
16781 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16782
16783         * m4/manywarnings.m4: Add GCC 4.4 warnings.
16784
16785 2009-05-28  Bruno Haible  <bruno@clisp.org>
16786
16787         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
16788         build-aux/ files.
16789
16790 2009-05-28  Simon Josefsson  <simon@josefsson.org>
16791
16792         * gnulib-tool (func_import): Transform license on build-aux/ files too.
16793
16794 2009-05-27  Simon Josefsson  <simon@josefsson.org>
16795
16796         * gnulib-tool (sed_transform_main_lib_file)
16797         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
16798         regexps.
16799
16800 2009-05-26  Simon Josefsson  <simon@josefsson.org>
16801
16802         * tests/test-strstr.c: Add another self-test.
16803         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
16804         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
16805
16806 2009-05-23  Bruno Haible  <bruno@clisp.org>
16807
16808         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
16809         change.
16810
16811 2009-05-21  Bruno Haible  <bruno@clisp.org>
16812
16813         Simplify use of mode_t varargs.
16814         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
16815         uses 'mode_t' or 'int'.
16816         * lib/openat.c (openat): Likewise.
16817         * lib/open-safer.c (open_safer): Likewise.
16818         * m4/mode_t.m4: New file.
16819         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
16820         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
16821         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
16822         * modules/open (Files): Add m4/mode_t.m4.
16823         * modules/openat (Files): Likewise.
16824         * modules/fcntl-safer (Files): Likewise.
16825         Suggested by Eric Blake.
16826
16827 2009-05-21  Pádraig Brady  <P@draigbrady.com>
16828
16829         * doc/glibc-functions/fallocate.texi: New file.
16830         * doc/gnulib.texi: Include it.
16831
16832 2009-05-21  Eric Blake  <ebb9@byu.net>
16833             Bruno Haible  <bruno@clisp.org>
16834
16835         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
16836         invocations.
16837         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16838
16839 2009-05-21  Eric Blake  <ebb9@byu.net>
16840             Bruno Haible  <bruno@clisp.org>
16841
16842         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
16843         include_next. Fix of 2008-11-20 commit.
16844         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
16845         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
16846         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
16847         NEXT_MATH_H.
16848         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
16849         instead of NEXT_MATH_H.
16850
16851 2009-05-21  Bruno Haible  <bruno@clisp.org>
16852
16853         Avoid redefinition warnings for SIZE_MAX.
16854         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
16855         Reported by Simon Josefsson.
16856
16857 2009-05-21  Bruno Haible  <bruno@clisp.org>
16858
16859         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
16860         AC_CACHE_VAL.
16861
16862 2009-05-20  Bruno Haible  <bruno@clisp.org>
16863
16864         Make zeroptr.h work on mingw.
16865         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
16866         mprotect.
16867         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
16868         * modules/memchr2-tests (configure.ac): Likewise.
16869         * modules/memcmp-tests (configure.ac): Likewise.
16870         * modules/memmem-tests (configure.ac): Likewise.
16871         * modules/memrchr-tests (configure.ac): Likewise.
16872         Reported by Simon Josefsson.
16873
16874 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16875
16876         * tests/test-glob.c: Include string.h for strcmp prototype.
16877
16878 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16879
16880         * modules/getdelim (Depends-on): Add explicit stdint, although it
16881         was implicitly already pulled in via realloc-posix.
16882         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
16883
16884 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16885
16886         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
16887         G. Christensen" <tgc@jupiterrise.com>.
16888         * m4/sys_socket_h.m4: Check for sa_family_t.
16889         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
16890         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
16891         * tests/test-sys_socket.c: Check that sa_family_t works.
16892
16893 2009-05-18  Eric Blake  <ebb9@byu.net>
16894
16895         maint.mk: allow gnulib_dir in VPATH build
16896         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
16897
16898 2009-05-15  Jim Meyering  <meyering@redhat.com>
16899
16900         maint.mk: Give gnulib_dir a default definition.
16901         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
16902         Thus, most packages no longer need to specify this variable in cfg.mk
16903
16904 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
16905
16906         rename.m4: fix typos that would make non-mingw cross-configure fail
16907         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
16908
16909 2009-05-13  Eric Blake  <ebb9@byu.net>
16910
16911         mmap-anon: avoid out-of-order autoconf expansion
16912         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
16913         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
16914         * modules/memchr-tests (Depends-on): Add extensions.
16915         * modules/memchr2-tests (Depends-on): Add extensions.
16916         * modules/memcmp-tests (Depends-on): Add extensions.
16917         * modules/memmem-tests (Depends-on): Add extensions.
16918         * modules/memrchr-tests (Depends-on): Add extensions.
16919
16920 2009-05-13  Bruno Haible  <bruno@clisp.org>
16921
16922         Make some tests ISO C 99 compliant.
16923         * tests/zerosize-ptr.h: New file.
16924         * tests/test-memchr.c: Include zerosize-ptr.h.
16925         (main): Use a zero-size object pointer instead of NULL.
16926         * tests/test-memchr2.c: Include zerosize-ptr.h.
16927         (main): Use a zero-size object pointer instead of NULL.
16928         * tests/test-memcmp.c: Include zerosize-ptr.h.
16929         (main): Use a zero-size object pointer instead of NULL.
16930         * tests/test-memmem.c: Include zerosize-ptr.h.
16931         (main): Use a zero-size object pointer instead of NULL.
16932         * tests/test-memrchr.c: Include zerosize-ptr.h.
16933         (main): Use a zero-size object pointer instead of NULL.
16934         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
16935         m4/mmap-anon.m4.
16936         (Depends-on): Add getpagesize.
16937         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16938         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
16939         m4/mmap-anon.m4.
16940         (Depends-on): Add getpagesize.
16941         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16942         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
16943         m4/mmap-anon.m4.
16944         (Depends-on): Add getpagesize.
16945         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16946         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
16947         m4/mmap-anon.m4.
16948         (Depends-on): Add getpagesize.
16949         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16950         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
16951         m4/mmap-anon.m4.
16952         (Depends-on): Add getpagesize.
16953         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
16954
16955 2009-05-12  Bruno Haible  <bruno@clisp.org>
16956
16957         Tests for module 'alignof'.
16958         * modules/alignof-tests: New file.
16959         * tests/test-alignof.c: New file.
16960
16961 2009-05-12  Bruno Haible  <bruno@clisp.org>
16962
16963         Fix alignof macro.
16964         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
16965         vendor compilers that are always correct.
16966
16967 2009-05-12  Bruno Haible  <bruno@clisp.org>
16968
16969         Make the MAP_ANONYMOUS detection work on HP-UX 11.
16970         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
16971         not whether its fully works.
16972
16973 2009-05-12  Bruno Haible  <bruno@clisp.org>
16974
16975         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
16976
16977 2009-05-12  Jim Meyering  <meyering@redhat.com>
16978
16979         * top/maint.mk: Adjust backslash alignment.
16980
16981 2009-05-11  Simon Josefsson  <simon@josefsson.org>
16982
16983         * top/maint.mk: Make $(srcdir)/build-aux configurable.
16984
16985 2009-05-11  Eric Blake  <ebb9@byu.net>
16986
16987         argp: avoid undefined behavior
16988         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
16989         macros.
16990
16991 2009-05-08  Simon Josefsson  <simon@josefsson.org>
16992
16993         * tests/test-vc-list-files-git.sh: Do git config of user.email and
16994         user.name to prevent git commit from complaining.
16995
16996 2009-05-10  Bruno Haible  <bruno@clisp.org>
16997
16998         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
16999         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17000         it rewrites every file name only once.
17001         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17002
17003 2009-05-08  Bruno Haible  <bruno@clisp.org>
17004
17005         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17006         instead of 'max'.
17007
17008 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17009
17010         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17011         sockaddr_storage test.
17012
17013 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17014
17015         * modules/sys_socket (Makefile.am): Substitute
17016         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17017         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17018         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17019         * tests/test-sys_socket.c: Check sockaddr_storage.
17020
17021 2009-05-08  Bruno Haible  <bruno@clisp.org>
17022
17023         New module 'alignof'.
17024         * lib/alignof.h: New file.
17025         * modules/alignof: New file.
17026
17027 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17028             Bruno Haible  <bruno@clisp.org>
17029
17030         Fix test-file-has-acl on FreeBSD.
17031         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17032         mask is implicitly added.
17033         * tests/test-file-has-acl.c: Include <signal.h>.
17034         (main): Terminate the test after 5 seconds.
17035         * modules/acl-tests (configure.ac): Check for alarm function.
17036
17037 2009-05-04  Bruno Haible  <bruno@clisp.org>
17038
17039         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17040         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17041         * modules/errno (configure.ac): Drop AC_REQUIRE.
17042         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17043         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17044
17045 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17046
17047         * modules/glob-tests: New module.
17048         * tests/test-glob.c: Add.
17049
17050 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17051
17052         * modules/fnmatch-tests: New module.
17053         * tests/test-fnmatch.c: Add.
17054
17055 2009-05-04  Eric Blake  <ebb9@byu.net>
17056
17057         maint: make the new no-submodule-changes rule VPATH-safe
17058         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17059
17060 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17061             Bruno Haible  <bruno@clisp.org>
17062
17063         acl: Fix infinite loop on FreeBSD.
17064         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17065         of return value from acl_get_entry.
17066         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17067         Likewise.
17068
17069 2009-05-03  Bruno Haible  <bruno@clisp.org>
17070
17071         * lib/acl-internal.h (acl_entries): Clarify return value.
17072         * lib/acl_entries.c (acl_entries): Likewise.
17073
17074 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17075
17076         Bug fix in acl module.
17077         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17078
17079 2009-05-03  Bruno Haible  <bruno@clisp.org>
17080
17081         Create gperf-generated file in the source dir, not in the build dir.
17082         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17083         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17084         * modules/unicase/locale-language (unicase/locale-languages.h):
17085         Likewise.
17086         * modules/unicase/special-casing (unicase/special-casing-table.h):
17087         Likewise.
17088         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17089         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17090         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17091         Reported by Ralf Wildenhues.
17092
17093 2009-05-03  Bruno Haible  <bruno@clisp.org>
17094
17095         * modules/fnmatch (Description, configure.ac): Taken from
17096         fnmatch-posix.
17097         * modules/fnmatch-posix: Turn into a symbolic reference to the
17098         'fnmatch' module, and deprecate.
17099         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17100
17101 2009-05-03  Bruno Haible  <bruno@clisp.org>
17102
17103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17104         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17105         Reported by Ralf Wildenhues.
17106
17107 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17108
17109         * m4/fnmatch.m4: Fix fnmatch re-define.
17110
17111 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17112
17113         priv-set: new module and tests; adapt write-any-file
17114         * lib/priv-set.c: New file.
17115         * lib/priv-set.h: New file.
17116         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17117         * lib/write-any-file.c: Simplify by using priv-set module.
17118         * m4/priv-set.m4: New file.
17119         * modules/priv-set: New file.
17120         * modules/unlinkdir: Add dependency on priv-set module.
17121         * modules/write-any-file: Likewise.
17122
17123         Tests for module 'priv-set'.
17124         * modules/priv-set-tests: New file.
17125         * tests/test-priv-set.c: New file.
17126
17127 2009-05-03  Jim Meyering  <meyering@redhat.com>
17128             Bruno Haible  <bruno@clisp.org>
17129
17130         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17131         use the converted UTF-8 variant of the name instead.
17132
17133 2009-05-03  Jim Meyering  <meyering@redhat.com>
17134
17135         tests: tighten some getdate tests
17136         * tests/test-getdate.c (main): Tighten tests: require equality,
17137         not just greater than.  Set TZ envvar to UTC0.
17138
17139 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17140
17141         getdate: correctly interpret "next monday" when run on a Monday
17142         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17143         that e.g., "next tues" (when run on a tuesday) results in a date
17144         that is one week in the future, and not today's date.
17145         I.e., add a week when the wday is the same as the current one.
17146         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17147         and earlier by Martin Bernreuther and Jan Minář.
17148         * tests/test-getdate.c (main): Check that "next DAY" is always in
17149         the future and that "last DAY" is always in the past.
17150
17151 2009-05-02  Jim Meyering  <meyering@redhat.com>
17152
17153         build: ensure that a release build fails when a submodule is unclean
17154         * top/maint.mk (no-submodule-changes): New rule.
17155         (alpha beta major): Depend on it.
17156
17157 2009-05-02  Bruno Haible  <bruno@clisp.org>
17158
17159         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17160         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17161         shell variable gl_fnmatch_required to detect which variant is
17162         requested.
17163         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17164         gl_FUNC_FNMATCH_POSIX.
17165         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17166         exclude fnmatch-posix.
17167
17168 2009-05-02  Bruno Haible  <bruno@clisp.org>
17169
17170         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17171         * modules/mbsrtowcs (License): Change to LGPLv2+.
17172         * modules/strnlen1 (License): Likewise.
17173         Reported by Simon Josefsson.
17174
17175 2009-05-02  Bruno Haible  <bruno@clisp.org>
17176
17177         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17178         "cross".
17179         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17180         gnulib-tool was called with option --source-base=lib.
17181
17182 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17183
17184         Use automake *-local hooks without commands, for extensibility.
17185         * modules/localcharset (Makefile.am): Rename install-exec-local
17186         rule to install-exec-localcharset, and make it a prerequisite of
17187         install-exec-local.  Likewise, rename the uninstall-local rule to
17188         uninstall-localcharset, and make it a prerequisite of the former.
17189
17190 2009-05-01  Bruno Haible  <bruno@clisp.org>
17191
17192         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17193         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17194         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17196         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17197         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17198         m4/locale-zh.m4, m4/codeset.m4.
17199
17200         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17201         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17202         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17203         m4/locale-zh.m4.
17204
17205         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17206         REPLACE_WCRTOMB if mbstate_t must be replaced.
17207         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17208         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17209
17210 2009-05-01  Bruno Haible  <bruno@clisp.org>
17211
17212         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17213         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17214         dngettext, dcngettext, textdomain, bindtextdomain,
17215         bind_textdomain_codeset): Undefine before redefining.
17216
17217 2009-04-30  Bruno Haible  <bruno@clisp.org>
17218
17219         Fix bug introduced on 2009-04-25.
17220         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17221         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17222         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17223         is defined.
17224         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17225         is defined.
17226         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17227         is defined.
17228         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17229
17230 2009-04-28  Bruno Haible  <bruno@clisp.org>
17231
17232         Comment tweaks.
17233         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17234         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17235         * lib/unicase.h (u*_casexfrm): Likewise.
17236         Reported by Paolo Bonzini.
17237
17238 2009-04-28  Bruno Haible  <bruno@clisp.org>
17239
17240         Fix a compilation error.
17241         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17242         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17243         Reported by Jim Meyering.
17244
17245 2009-04-27  Bruno Haible  <bruno@clisp.org>
17246
17247         New module 'libunistring'.
17248         * modules/libunistring: New file.
17249         * m4/libunistring.m4: New file.
17250         * MODULES.html.sh (Unicode string functions): Add it.
17251
17252 2009-04-27  Eric Blake  <ebb9@byu.net>
17253
17254         maint.mk: allow package-specific header to provide <config.h>
17255         * top/maint.mk (sc_require_config_h): New variable.
17256         (sc_require_config_h, sc_require_config_h_first): Use it.
17257
17258 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17259
17260         * top/maint.mk (sc_avoid_if_before_free): Except
17261         useless-if-before-free script.
17262
17263 2009-04-27  Eric Blake  <ebb9@byu.net>
17264
17265         maintainer-makefile: depend on all required helper scripts
17266         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17267         useless-if-before-free.
17268         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17269         version, rather than assuming gnulib checkout is available.
17270         Reported by Simen Josefsson.
17271
17272 2009-04-26  Bruno Haible  <bruno@clisp.org>
17273
17274         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17275         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17276         "../" or "..".
17277
17278 2009-04-26  Bruno Haible  <bruno@clisp.org>
17279
17280         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17281         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17282         AC_LIB_HAVE_LINKFLAGS.
17283
17284 2009-04-26  Bruno Haible  <bruno@clisp.org>
17285
17286         Simplify calling convention of u*_conv_from_encoding.
17287         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17288         u32_conv_from_encoding): Expect a resultbuf argument and return the
17289         result directly as a pointer.
17290         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17291         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17292         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17293         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17294         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17295         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17296         Update.
17297         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17298         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17299         * lib/vasnprintf.c (VASNPRINTF): Update.
17300         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17301         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17302         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17303         * NEWS: Mention the change.
17304
17305 2009-04-26  Bruno Haible  <bruno@clisp.org>
17306
17307         Simplify calling convention of u*_conv_to_encoding.
17308         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17309         u32_conv_to_encoding): Expect a resultbuf argument and return the
17310         result directly as a pointer.
17311         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17312         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17313         freeing scaled_offsets if mem_iconveha failed.
17314         * lib/unicase/u-casexfrm.h (FUNC): Update.
17315         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17316         * lib/vasnprintf.c (VASNPRINTF): Update.
17317         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17318         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17319         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17320         * NEWS: Mention the change.
17321
17322 2009-04-26  Bruno Haible  <bruno@clisp.org>
17323
17324         Avoid test failures on AIX and OSF/1.
17325         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17326         malloc(0).
17327         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17328         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17329         Likewise.
17330         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17331         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17332         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17333         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17334         * doc/posix-functions/malloc.texi: Document the portability problem
17335         related to malloc(0).
17336
17337 2009-04-26  Bruno Haible  <bruno@clisp.org>
17338
17339         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17340         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17341         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17342
17343 2009-04-25  Bruno Haible  <bruno@clisp.org>
17344
17345         Avoid link error when creating a namespace clean library.
17346         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17347         as macro with arguments if already defined as an alias.
17348         * lib/signbitf.c (gl_signbitf): Don't undefine.
17349         * lib/signbitd.c (gl_signbitd): Don't undefine.
17350         * lib/signbitl.c (gl_signbitl): Don't undefine.
17351
17352 2009-04-25  Jim Meyering  <meyering@redhat.com>
17353
17354         vc-list-files: fix another quoting bug
17355         * build-aux/vc-list-files: Avoid sed backslash expansion
17356         of pathological directory names.
17357
17358 2009-04-25  Eric Blake  <ebb9@byu.net>
17359
17360         vc-list-files: fix shell quoting error
17361         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17362         timestamp.
17363
17364 2009-04-25  Jim Meyering  <meyering@redhat.com>
17365
17366         vc-list-files: restore lost functionality with subdir argument
17367         * build-aux/vc-list-files: When given a non-"." sub-directory
17368         argument, substitute the $dir/ prefix back onto each resulting name.
17369         Otherwise, coreutils' root_tests check would fail.
17370
17371 2009-04-24  Eric Blake  <ebb9@byu.net>
17372
17373         vc-list-files: ignore git symlinks
17374         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17375         than ls-files, to ignore git symlinks.
17376
17377         maint.mk: import improvements from m4
17378         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17379         (move_if_change): Delete unused macro.
17380         (news-date-check, vc-diff-check): Support VPATH builds.
17381         (announcement): Likewise.  Split --bootstrap-tools list...
17382         (boostrap-tools): ...into separate list, which can be overridden
17383         in cfg.mk.
17384         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17385         requiring dependency on useless-if-before-free module.
17386         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17387         Support VPATH builds.
17388
17389 2009-04-24  Jim Meyering  <meyering@redhat.com>
17390
17391         maint.mk: remove coreutils-specific rules and variables
17392         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17393         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17394         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17395
17396         maint.mk: remove obsolete rule
17397         * top/maint.mk (rel-check): Remove rule.
17398         (WGET, WGETFLAGS): Remove now-unused variables.
17399
17400 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17401
17402         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17403         consistency.
17404
17405         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17406         '$(PATH_SEPARATOR)' instead of ':'.
17407
17408 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17409
17410         * lib/getopt1.c (main): Use 'const' for static array.
17411
17412 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17413
17414         * top/maint.mk: Sync with coreutils.
17415         * NEWS: Explain incompatibilities.
17416
17417 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17418             Bruno Haible  <bruno@clisp.org>
17419
17420         Fix cross-compilation results.
17421         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17422         statement, as third argument of AC_TRY_RUN.
17423         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17424         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17425         Likewise.
17426         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17427         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17428         Likewise.
17429         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17430         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17431         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17432
17433 2009-04-20  Bruno Haible  <bruno@clisp.org>
17434
17435         Avoid test failure on mingw.
17436         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17437
17438 2009-04-20  Bruno Haible  <bruno@clisp.org>
17439
17440         Avoid compilation error on mingw.
17441         * modules/localename-tests (Depends-on): Add locale.
17442
17443 2009-04-19  Bruno Haible  <bruno@clisp.org>
17444
17445         Support for building a shared library on Windows platforms.
17446         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17447         (main): Test the presence of UNINORM_NFC here.
17448         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17449         (main): Test the presence of UNINORM_NFD here.
17450         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17451         (main): Test the presence of UNINORM_NFKC here.
17452         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17453         (main): Test the presence of UNINORM_NFKD here.
17454
17455 2009-04-19  Bruno Haible  <bruno@clisp.org>
17456
17457         Avoid a compiler warning.
17458         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17459         Change type of variable 'sequence'.
17460
17461 2009-04-19  Bruno Haible  <bruno@clisp.org>
17462
17463         * modules/configmake (Makefile.am): When the contents of configmake.h
17464         does not change, arrange to preserve its modification time.
17465
17466 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17467
17468         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17469         gettext domain.
17470
17471 2009-04-16  Jim Meyering  <meyering@redhat.com>
17472
17473         useless-if-before-free: improve conversion code
17474         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17475         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17476
17477 2009-04-14  Bruno Haible  <bruno@clisp.org>
17478
17479         * modules/fcntl (Depends-on): Add extensions.
17480         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17481
17482 2009-04-12  Ben Pfaff  <blp@gnu.org>
17483
17484         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17485         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17486
17487 2009-03-20  Ben Pfaff  <blp@gnu.org>
17488
17489         Make rename replace existing destinations on Windows.
17490         * m4/rename.m4: Add test for Mingw.
17491         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17492         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17493         * doc/posix-functions/rename.texi: Document.
17494
17495 2009-04-10  Bruno Haible  <bruno@clisp.org>
17496
17497         New include file "iconveh.h".
17498         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17499         * lib/striconveh.h: Include it.
17500         (enum iconv_ilseq_handler): Remove definition.
17501         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17502         striconveh.h.
17503         * lib/striconveha.c: Include striconveh.h.
17504         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17505         * modules/striconveh (Files): Add lib/iconveh.h.
17506         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17507         lib/striconveh.h.
17508
17509 2009-04-10  Bruno Haible  <bruno@clisp.org>
17510
17511         * lib/uniconv.h: Update comment.
17512
17513 2009-04-10  Bruno Haible  <bruno@clisp.org>
17514
17515         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17516         always.
17517         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17518         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17519         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17520         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17521         "unistring-notinline.h", so that the function gets defined always.
17522         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17523         * lib/unistr/u8-uctomb.c: Likewise.
17524         * lib/unistr/u16-mbtouc.c: Likewise.
17525         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17526         * lib/unistr/u16-uctomb.c: Likewise.
17527         * lib/unistr/u32-mbtouc.c: Likewise.
17528         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17529         * lib/unistr/u32-uctomb.c: Likewise.
17530
17531 2009-04-10  Bruno Haible  <bruno@clisp.org>
17532
17533         Mark 'utime' obsolete.
17534         * modules/utime (Status, Notice): New sections.
17535         Suggested by Jim Meyering.
17536
17537         Fix cross-compile guess for utime test.
17538         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17539         autoconf.
17540         * doc/posix-functions/utime.texi: Give more precisions.
17541         Reported by Jan <ipif@ymail.com>.
17542
17543 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17544
17545         filevercmp: correct today's change
17546         * lib/filevercmp.c: Also handle coreutils' test inputs.
17547         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17548
17549         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17550         for reporting it.
17551         * lib/filevercmp.c: Special handle for "", "." and "..".
17552         * tests/test-filevercmp.c: Enlarge the set suite.
17553
17554 2009-04-07  Jim Meyering  <meyering@redhat.com>
17555
17556         useless-if-before-free: show how to remove braced useless free, too
17557         * build-aux/useless-if-before-free: still only in a comment, though.
17558
17559 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17560
17561         maint.mk: import changes to syntax-check macros from coreutils
17562         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17563         Use them in the relevant macros.
17564
17565 2009-04-06  Bruno Haible  <bruno@clisp.org>
17566
17567         Fix unportable use of bit-fields.
17568         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17569         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17570         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17571
17572 2009-04-06  Bruno Haible  <bruno@clisp.org>
17573
17574         Avoid test failures on AIX and OSF/1.
17575         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17576         that malloc(0) = NULL.
17577         * tests/unicase/test-u8-tolower.c (check): Likewise.
17578         * tests/unicase/test-u8-totitle.c (check): Likewise.
17579         * tests/unicase/test-u8-toupper.c (check): Likewise.
17580         * tests/unicase/test-u16-casefold.c (check): Likewise.
17581         * tests/unicase/test-u16-tolower.c (check): Likewise.
17582         * tests/unicase/test-u16-totitle.c (check): Likewise.
17583         * tests/unicase/test-u16-toupper.c (check): Likewise.
17584         * tests/unicase/test-u32-casefold.c (check): Likewise.
17585         * tests/unicase/test-u32-tolower.c (check): Likewise.
17586         * tests/unicase/test-u32-totitle.c (check): Likewise.
17587         * tests/unicase/test-u32-toupper.c (check): Likewise.
17588         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17589         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17590         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17591         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17592         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17593         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17594         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17595         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17596         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17597         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17598         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17599         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17600
17601 2009-04-05  Bruno Haible  <bruno@clisp.org>
17602
17603         Work around an autoconf limitation.
17604         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17605         comment line if it would be longer than 3 KB.
17606
17607 2009-04-05  Bruno Haible  <bruno@clisp.org>
17608
17609         Avoid test failure with libiconv-1.13.
17610         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17611         of the expected test results.
17612
17613 2009-04-05  Bruno Haible  <bruno@clisp.org>
17614
17615         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
17616         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
17617         that it should be installed.
17618
17619 2009-04-05  Bruno Haible  <bruno@clisp.org>
17620
17621         * gnulib-tool: New option --copy-file.
17622         (func_usage): Document it.
17623         (func_dest_tmpfilename): Moved out of func_import.
17624         (func_add_file, func_update_file): New functions, extracted from
17625         func_import.
17626         (func_import): Update.
17627
17628 2009-04-05  Karl Berry  <karl@gnu.org>
17629
17630         * README: prominently mention gnulib-tool.
17631         Rearrange sections so getting the code is near the top.
17632
17633 2009-04-05  Bruno Haible  <bruno@clisp.org>
17634
17635         * lib/unicase.h: Mention u*_cmp2.
17636         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17637         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
17638         * lib/unicase/ulc-casecmp.c: Likewise.
17639         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
17640         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17641         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17642         unistr/u8-cmp.
17643         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17644         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17645         unistr/u16-cmp.
17646         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17647         unistr/u32-cmp.
17648
17649         * lib/uninorm.h: Mention u*_cmp2.
17650         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17651         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17652         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17653         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17654         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17655         unistr/u8-cmp.
17656         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17657         unistr/u16-cmp.
17658         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17659         unistr/u32-cmp.
17660
17661         New module 'unistr/u32-cmp2'.
17662         * lib/unistr/u32-cmp2.c: New file.
17663         * modules/unistr/u32-cmp2: New file.
17664
17665         New module 'unistr/u16-cmp2'.
17666         * lib/unistr/u16-cmp2.c: New file.
17667         * modules/unistr/u16-cmp2: New file.
17668
17669         New module 'unistr/u8-cmp2'.
17670         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17671         * lib/unistr/u8-cmp2.c: New file.
17672         * lib/unistr/u-cmp2.h: New file.
17673         * modules/unistr/u8-cmp2: New file.
17674
17675 2009-04-05  Bruno Haible  <bruno@clisp.org>
17676
17677         * lib/unictype.h (uc_property_is_valid): New macro.
17678         * tests/unictype/test-pr_byname.c (main): Use it.
17679
17680         * lib/unistr.h: Doc fixes.
17681         * lib/uniconv.h: Doc fixes.
17682         * lib/unictype.h: Doc fixes.
17683
17684 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         Port coreutils 7.2 to Solaris 8.
17687
17688         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17689         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17690         for Solaris 8.  This is a bit of a hack, as it means it's the
17691         caller's responsibility to add -lnsl if needed, but most likely it
17692         won't be needed since only getaddrinfo uses this and getaddrinfo
17693         isn't needed on Solaris 8.
17694
17695         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17696         problem to Solaris 8 encountered with coreutils 7.2, which
17697         resulted in a message "fnmatch.c:292: warning: passing argument 4
17698         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17699         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17700
17701 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17702
17703         * m4/ld-version-script.m4: Add FIXME comment.
17704
17705 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17706
17707         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17708         SOVERSION variable.
17709
17710 2009-04-02  Bruno Haible  <bruno@clisp.org>
17711
17712         * Makefile (info, html, dvi, pdf): Combine the rules.
17713         Suggested by Jim Meyering.
17714
17715 2009-04-01  Bruno Haible  <bruno@clisp.org>
17716
17717         * Makefile (info, html, dvi, pdf): New targets.
17718         Reported by Reuben Thomas <rrt@sc3d.org>.
17719
17720 2009-04-01  Bruno Haible  <bruno@clisp.org>
17721
17722         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
17723         can be put into PATH.
17724         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
17725
17726 2009-04-01  Bruno Haible  <bruno@clisp.org>
17727
17728         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
17729
17730 2009-04-01  Bruno Haible  <bruno@clisp.org>
17731
17732         Rename module 'visibility'.
17733         * modules/lib-symbol-visibility: Renamed from modules/visibility.
17734         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
17735         * doc/gnulib.texi: Update.
17736         * MODULES.html.sh (Misc): Update.
17737         * NEWS: Mention the change.
17738
17739 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17740
17741         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
17742         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
17743         Eric Blake <ebb9@byu.net> for review.
17744         * MODULES.html.sh: Add lib-msvc-compat.
17745         * doc/gnulib.texi: Link to new section.
17746         * m4/ld-output-def.m4: New file.
17747         * doc/ld-output-def.texi: New file.
17748
17749 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17750
17751         Rename ld-version-script to lib-symbol-versions.  Suggested by
17752         Bruno Haible <bruno@clisp.org>.
17753         * modules/ld-version-script: Renamed to lib-symbol-versions.
17754         * doc/ld-version-script.texi: Fix module name.
17755         * MODULES.html.sh: Add lib-symbol-versions.
17756
17757 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17758
17759         * modules/u64-tests: New file.
17760         * tests/test-u64.c: New file.
17761
17762 2009-03-04  Simon Josefsson  <simon@josefsson.org>
17763
17764         * MODULES.html.sh: Mention u64.
17765         * modules/u64: New module.
17766         * modules/crypto/sha512: Depend on u64 module instead of providing
17767         u64.h.
17768
17769 2009-03-27  Eric Blake  <ebb9@byu.net>
17770
17771         test-strerror: make debugging EAI_SYSTEM easier
17772         * modules/getaddrinfo-tests (Depends-on): Add strerror.
17773         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
17774         failure was EAI_SYSTEM.
17775
17776 2009-03-25  Bruno Haible  <bruno@clisp.org>
17777
17778         Fix a problem with --enable-relocatable on Solaris 7.
17779         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
17780         since 2008-02-24.
17781
17782 2009-03-25  Eric Blake  <ebb9@byu.net>
17783
17784         test-sockets: avoid gcc warning
17785         * tests/test-sockets.c (main): Silence compiler warning.
17786
17787 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         New modules nproc, pthread, contributed by Glen Lenker.
17790
17791         * MODULES.html.sh: Add pthread, nproc.
17792         * lib/nproc.c: New file.
17793         * lib/nproc.h: New file.
17794         * lib/pthread.in.h: New file.
17795         * m4/pthread.m4: New file.
17796         * modules/nproc: New file.
17797         * modules/pthread: New file.
17798
17799 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17800
17801         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
17802         New variable.
17803
17804 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
17805
17806         filevercmp: handle simple~ and numbered.~3~ backup suffixes
17807         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
17808         * tests/test-filevercmp.c: Add tests for backup suffixes.
17809
17810 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17811
17812         * modules/stdlib (Depends-on): Add stdint, needed when defining
17813         struct random_data on, for example, HP-UX 10.20.  Reported by
17814         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17815
17816 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17817
17818         * lib/readline.c (readline): Call fflush on stdout after printing
17819         prompt.
17820
17821 2009-03-20  Bruno Haible  <bruno@clisp.org>
17822
17823         Remove dependency from 'close' module to -lws2_32 on native Windows.
17824         * lib/close-hook.h: New file.
17825         * lib/close-hook.c: New file.
17826         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
17827         w32sock.h.
17828         (_gl_close_fd_maybe_socket): Remove function.
17829         (rpl_close): Invoke execute_all_close_hooks instead of
17830         _gl_close_fd_maybe_socket.
17831         * lib/sockets.c: Include close-hook.h, w32sock.h.
17832         (close_fd_maybe_socket): New function, essentially from lib/close.c.
17833         (close_sockets_hook): New variable.
17834         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
17835         (gl_sockets_cleanup): Unregister it.
17836         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
17837         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
17838         * modules/close-hook: New file.
17839         * modules/close (Files): Remove lib/w32sock.h.
17840         (Depends-on): Add close-hook.
17841         (Link): Remove section.
17842         * modules/sockets (Files): Add lib/w32sock.h.
17843         (Depends-on): Add close-hook.
17844         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
17845         invocation.
17846         * NEWS: Mention that LIB_CLOSE is gone.
17847
17848 2009-03-23  Eric Blake  <ebb9@byu.net>
17849
17850         signal-tests: test previous patch
17851         * tests/test-signal.c: New file.
17852         * modules/signal-tests: Likewise.
17853
17854         signal.h: always support 'volatile sig_atomic_t'
17855         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
17856         (gl_SIGNAL_H_DEFAULTS): Add a default.
17857         * modules/signal (Makefile.am): Substitute if needed.
17858         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
17859         users can blindly add volatile.
17860         * doc/posix-headers/signal.texi (signal.h): Document it.
17861         Reported by Matthew Woehlke.
17862
17863 2009-03-23  Jim Meyering  <meyering@redhat.com>
17864
17865         pathmax: PATH_MAX: use pathconf only when available
17866         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
17867         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
17868         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
17869         This avoids a link failure in a PSP cross-compilation environment
17870         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
17871
17872         * lib/vasnprintf.c (divide): Fix typo in comment.
17873
17874 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17875
17876         * gnulib-tool (func_filter_filelist): Fix comment.
17877
17878 2009-03-20  Bruno Haible  <bruno@clisp.org>
17879
17880         Make sockets.h self-contained.
17881         * lib/sockets.c: Include sockets.h first.
17882         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
17883
17884 2009-03-19  Eric Blake  <ebb9@byu.net>
17885
17886         doc: mention more functions added in cygwin 1.7.0
17887         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
17888         addition.
17889         * doc/posix-functions/log2f.texi: Likewise.
17890
17891 2009-03-19  Jim Meyering  <meyering@redhat.com>
17892
17893         fsusage: avoid syntax error due to statement-before-declaration
17894         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
17895         after all declarations.  Reported by Matthew Woehlke in
17896         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
17897
17898 2009-03-18  Eric Blake  <ebb9@byu.net>
17899
17900         build-aux/compile: sync from automake
17901         * build-aux/compile: New file, from automake.
17902         * config/srclist.txt: Mention build-aux/compile.
17903
17904 2009-03-17  Bruno Haible  <bruno@clisp.org>
17905
17906         * lib/git-merge-changelog.c: Fix typo in comment.
17907         Reported by Reuben Thomas <rrt@sc3d.org>.
17908
17909 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
17910
17911         * m4/regex.m4: update and improve help for
17912         --without-included-regex.
17913
17914 2009-03-17  Simon Josefsson  <simon@josefsson.org>
17915
17916         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
17917         failure on missing include files.
17918
17919 2009-03-17  Eric Blake  <ebb9@byu.net>
17920
17921         doc: mention more functions added in cygwin 1.7.0
17922         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
17923         addition.
17924         * doc/posix-functions/fwscanf.texi: Likewise.
17925         * doc/posix-functions/swprintf.texi: Likewise.
17926         * doc/posix-functions/swscanf.texi: Likewise.
17927         * doc/posix-functions/vfwprintf.texi: Likewise.
17928         * doc/posix-functions/vfwscanf.texi: Likewise.
17929         * doc/posix-functions/vswprintf.texi: Likewise.
17930         * doc/posix-functions/vswscanf.texi: Likewise.
17931         * doc/posix-functions/vwprintf.texi: Likewise.
17932         * doc/posix-functions/vwscanf.texi: Likewise.
17933         * doc/posix-functions/wcscasecmp.texi: Likewise.
17934         * doc/posix-functions/wcsdup.texi: Likewise.
17935         * doc/posix-functions/wcsftime.texi: Likewise.
17936         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17937         * doc/posix-functions/wprintf.texi: Likewise.
17938         * doc/posix-functions/wscanf.texi: Likewise.
17939         * doc/glibc-functions/gethostbyname2.texi: Likewise.
17940
17941 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17942
17943         maint.mk: really add $(AM_MAKEFLAGS)
17944         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
17945         was inadvertently omitted in the last commit.
17946         Spotted by Bruno Haible.
17947
17948         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
17949         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
17950         $(AM_MAKEFLAGS)' rather than plain `make'.
17951
17952         gnulib-tool: execute $MAKE not make
17953         * gnulib-tool: Default $MAKE to 'make'.
17954         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
17955         than make.  Initialize $MAKE in the do-autobuild script.
17956
17957         gnulib-tool: use $MAKE not make in generated files
17958         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
17959         make, in generated files.  Initialize $MAKE in the do-autobuild
17960         script.
17961
17962         * top/GNUmakefile (_have-git-version-gen): Fix typo.
17963
17964         GNUmakefile: disable parallelism only for multiple, recursive targets
17965         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
17966         additions in the Makefile.
17967         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
17968         by Automake.
17969         (.NOTPARALLEL): Only disable parallel builds if multiple targets
17970         are listed on the command line and at least one of them is
17971         listed in $(ALL_RECURSIVE_TARGETS).
17972
17973 2009-03-14  Bruno Haible  <bruno@clisp.org>
17974
17975         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
17976         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
17977         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
17978         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
17979         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
17980         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
17981         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
17982         unistr/u8-uctomb.
17983         * modules/unistr/u8-strchr (Depends-on): Likewise.
17984         * modules/unistr/u8-strrchr (Depends-on): Likewise.
17985         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
17986         unistr/u16-uctomb.
17987         * modules/unistr/u16-strchr (Depends-on): Likewise.
17988         * modules/unistr/u16-strrchr (Depends-on): Likewise.
17989
17990 2009-03-12  Bruno Haible  <bruno@clisp.org>
17991
17992         Work around select() bug on Interix 3.5.
17993         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
17994         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
17995         * m4/select.m4: New file.
17996         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
17997         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
17998         * modules/select (Files): Add m4/select.m4.
17999         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18000         * modules/nanosleep (Depends-on): Add select.
18001         * modules/poll (Depends-on): Likewise.
18002         * doc/posix-functions/select.texi: Mention the Interix bug.
18003         Reported by Markus Duft <mduft@gentoo.org>.
18004
18005         * lib/select.c: Renamed from lib/winsock-select.c.
18006         * modules/select (Files): Add lib/select.c, remove
18007         lib/winsock-select.c.
18008         (configure.ac): Update.
18009
18010 2009-03-12  Jim Meyering  <meyering@redhat.com>
18011
18012         avoid gcc warnings about unused macro definitions
18013         * lib/readtokens.c (STREQ): Remove unused definition.
18014         * lib/xmalloc.c (SIZE_MAX): Likewise.
18015         * lib/openat-die.c (N_): Likewise.
18016         * lib/mountlist.c (SIZE_MAX): Remove definition.
18017         Instead, include <stdint.h>.
18018         * lib/readutmp.c: Likewise.
18019         * modules/readutmp (Depends-on): Add stdint.
18020         * modules/mountlist (Depends-on): Add stdint.
18021         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18022
18023 2009-03-10  Bruno Haible  <bruno@clisp.org>
18024
18025         Tests for module 'mbmemcasecoll'.
18026         * modules/mbmemcasecoll-tests: New file.
18027         * tests/test-mbmemcasecoll1.sh: New file.
18028         * tests/test-mbmemcasecoll2.sh: New file.
18029         * tests/test-mbmemcasecoll3.sh: New file.
18030         * tests/test-mbmemcasecoll.c: New file.
18031
18032         New module 'mbmemcasecoll'.
18033         * lib/mbmemcasecoll.h: New file.
18034         * lib/mbmemcasecoll.c: New file.
18035         * modules/mbmemcasecoll: New file.
18036
18037         * tests/test-mbmemcasecmp.h: New file, extracted from
18038         tests/test-mbmemcasecmp.c.
18039         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18040         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18041         (main): Update.
18042         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18043
18044 2009-03-09  Bruno Haible  <bruno@clisp.org>
18045
18046         Tests for module 'mbmemcasecmp'.
18047         * modules/mbmemcasecmp-tests: New file.
18048         * tests/test-mbmemcasecmp1.sh: New file.
18049         * tests/test-mbmemcasecmp2.sh: New file.
18050         * tests/test-mbmemcasecmp3.sh: New file.
18051         * tests/test-mbmemcasecmp.c: New file.
18052
18053         New module 'mbmemcasecmp'.
18054         * lib/mbmemcasecmp.h: New file.
18055         * lib/mbmemcasecmp.c: New file.
18056         * modules/mbmemcasecmp: New file.
18057
18058 2009-03-09  Bruno Haible  <bruno@clisp.org>
18059
18060         Tests for module 'unicase/ulc-casecoll'.
18061         * modules/unicase/ulc-casecoll-tests: New file.
18062         * tests/unicase/test-ulc-casecoll1.sh: New file.
18063         * tests/unicase/test-ulc-casecoll2.sh: New file.
18064         * tests/unicase/test-ulc-casecoll.c: New file.
18065
18066         New module 'unicase/ulc-casecoll'.
18067         * lib/unicase.h (ulc_casecoll): New declaration.
18068         * lib/unicase/ulc-casecoll.c: New file.
18069         * modules/unicase/ulc-casecoll: New file.
18070
18071         New module 'unicase/ulc-casexfrm'.
18072         * lib/unicase.h (ulc_casexfrm): New declaration.
18073         * lib/unicase/ulc-casexfrm.c: New file.
18074         * modules/unicase/ulc-casexfrm: New file.
18075
18076 2009-03-09  Bruno Haible  <bruno@clisp.org>
18077
18078         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18079         invocations.
18080
18081         * m4/mbscasecmp.m4: Remove file.
18082         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18083         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18084
18085         * m4/mbscasestr.m4: Remove file.
18086         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18087         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18088
18089         * m4/mbschr.m4: Remove file.
18090         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18091         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18092
18093         * m4/mbscspn.m4: Remove file.
18094         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18095         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18096
18097         * m4/mbslen.m4: Remove file.
18098         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18099         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18100
18101         * m4/mbsncasecmp.m4: Remove file.
18102         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18103         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18104
18105         * m4/mbsnlen.m4: Remove file.
18106         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18107         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18108
18109         * m4/mbspbrk.m4: Remove file.
18110         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18111         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18112
18113         * m4/mbspcasecmp.m4: Remove file.
18114         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18115         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18116
18117         * m4/mbsrchr.m4: Remove file.
18118         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18119         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18120
18121         * m4/mbssep.m4: Remove file.
18122         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18123         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18124
18125         * m4/mbsspn.m4: Remove file.
18126         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18127         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18128
18129         * m4/mbsstr.m4: Remove file.
18130         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18131         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18132
18133         * m4/mbstok_r.m4: Remove file.
18134         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18135         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18136
18137         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18138
18139         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18140         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18141
18142         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18143
18144 2009-03-08  Bruno Haible  <bruno@clisp.org>
18145
18146         Tests for module 'unicase/ulc-casecmp'.
18147         * modules/unicase/ulc-casecmp-tests: New file.
18148         * tests/unicase/test-ulc-casecmp1.sh: New file.
18149         * tests/unicase/test-ulc-casecmp2.sh: New file.
18150         * tests/unicase/test-ulc-casecmp.c: New file.
18151
18152         New module 'unicase/ulc-casecmp'.
18153         * lib/unicase.h (ulc_casecmp): New declaration.
18154         * lib/unicase/ulc-casecmp.c: New file.
18155         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18156         'const SRC_UNIT *'.
18157         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18158         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18159         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18160         * modules/unicase/ulc-casecmp: New file.
18161
18162         Tests for module 'unicase/u32-is-cased'.
18163         * modules/unicase/u32-is-cased-tests: New file.
18164         * tests/unicase/test-u32-is-cased.c: New file.
18165
18166         Tests for module 'unicase/u16-is-cased'.
18167         * modules/unicase/u16-is-cased-tests: New file.
18168         * tests/unicase/test-u16-is-cased.c: New file.
18169
18170         Tests for module 'unicase/u8-is-cased'.
18171         * modules/unicase/u8-is-cased-tests: New file.
18172         * tests/unicase/test-u8-is-cased.c: New file.
18173         * tests/unicase/test-is-cased.h: New file.
18174
18175         New module 'unicase/u32-is-cased'.
18176         * lib/unicase/u32-is-cased.c: New file.
18177         * modules/unicase/u32-is-cased: New file.
18178
18179         New module 'unicase/u16-is-cased'.
18180         * lib/unicase/u16-is-cased.c: New file.
18181         * modules/unicase/u16-is-cased: New file.
18182
18183         New module 'unicase/u8-is-cased'.
18184         * lib/unicase/u8-is-cased.c: New file.
18185         * lib/unicase/u-is-cased.h: New file.
18186         * modules/unicase/u8-is-cased: New file.
18187
18188         Tests for module 'unicase/u32-is-casefolded'.
18189         * modules/unicase/u32-is-casefolded-tests: New file.
18190         * tests/unicase/test-u32-is-casefolded.c: New file.
18191
18192         Tests for module 'unicase/u16-is-casefolded'.
18193         * modules/unicase/u16-is-casefolded-tests: New file.
18194         * tests/unicase/test-u16-is-casefolded.c: New file.
18195
18196         Tests for module 'unicase/u8-is-casefolded'.
18197         * modules/unicase/u8-is-casefolded-tests: New file.
18198         * tests/unicase/test-u8-is-casefolded.c: New file.
18199         * tests/unicase/test-is-casefolded.h: New file.
18200
18201         New module 'unicase/u32-is-casefolded'.
18202         * lib/unicase/u32-is-casefolded.c: New file.
18203         * modules/unicase/u32-is-casefolded: New file.
18204
18205         New module 'unicase/u16-is-casefolded'.
18206         * lib/unicase/u16-is-casefolded.c: New file.
18207         * modules/unicase/u16-is-casefolded: New file.
18208
18209         New module 'unicase/u8-is-casefolded'.
18210         * lib/unicase/u8-is-casefolded.c: New file.
18211         * modules/unicase/u8-is-casefolded: New file.
18212
18213         Tests for module 'unicase/u32-is-titlecase'.
18214         * modules/unicase/u32-is-titlecase-tests: New file.
18215         * tests/unicase/test-u32-is-titlecase.c: New file.
18216
18217         Tests for module 'unicase/u16-is-titlecase'.
18218         * modules/unicase/u16-is-titlecase-tests: New file.
18219         * tests/unicase/test-u16-is-titlecase.c: New file.
18220
18221         Tests for module 'unicase/u8-is-titlecase'.
18222         * modules/unicase/u8-is-titlecase-tests: New file.
18223         * tests/unicase/test-u8-is-titlecase.c: New file.
18224         * tests/unicase/test-is-titlecase.h: New file.
18225
18226         New module 'unicase/u32-is-titlecase'.
18227         * lib/unicase/u32-is-titlecase.c: New file.
18228         * modules/unicase/u32-is-titlecase: New file.
18229
18230         New module 'unicase/u16-is-titlecase'.
18231         * lib/unicase/u16-is-titlecase.c: New file.
18232         * modules/unicase/u16-is-titlecase: New file.
18233
18234         New module 'unicase/u8-is-titlecase'.
18235         * lib/unicase/u8-is-titlecase.c: New file.
18236         * modules/unicase/u8-is-titlecase: New file.
18237
18238         Tests for module 'unicase/u32-is-lowercase'.
18239         * modules/unicase/u32-is-lowercase-tests: New file.
18240         * tests/unicase/test-u32-is-lowercase.c: New file.
18241
18242         Tests for module 'unicase/u16-is-lowercase'.
18243         * modules/unicase/u16-is-lowercase-tests: New file.
18244         * tests/unicase/test-u16-is-lowercase.c: New file.
18245
18246         Tests for module 'unicase/u8-is-lowercase'.
18247         * modules/unicase/u8-is-lowercase-tests: New file.
18248         * tests/unicase/test-u8-is-lowercase.c: New file.
18249         * tests/unicase/test-is-lowercase.h: New file.
18250
18251         New module 'unicase/u32-is-lowercase'.
18252         * lib/unicase/u32-is-lowercase.c: New file.
18253         * modules/unicase/u32-is-lowercase: New file.
18254
18255         New module 'unicase/u16-is-lowercase'.
18256         * lib/unicase/u16-is-lowercase.c: New file.
18257         * modules/unicase/u16-is-lowercase: New file.
18258
18259         New module 'unicase/u8-is-lowercase'.
18260         * lib/unicase/u8-is-lowercase.c: New file.
18261         * modules/unicase/u8-is-lowercase: New file.
18262
18263         Tests for module 'unicase/u32-is-uppercase'.
18264         * modules/unicase/u32-is-uppercase-tests: New file.
18265         * tests/unicase/test-u32-is-uppercase.c: New file.
18266
18267         Tests for module 'unicase/u16-is-uppercase'.
18268         * modules/unicase/u16-is-uppercase-tests: New file.
18269         * tests/unicase/test-u16-is-uppercase.c: New file.
18270
18271         Tests for module 'unicase/u8-is-uppercase'.
18272         * modules/unicase/u8-is-uppercase-tests: New file.
18273         * tests/unicase/test-u8-is-uppercase.c: New file.
18274         * tests/unicase/test-is-uppercase.h: New file.
18275
18276         New module 'unicase/u32-is-uppercase'.
18277         * lib/unicase/u32-is-uppercase.c: New file.
18278         * modules/unicase/u32-is-uppercase: New file.
18279
18280         New module 'unicase/u16-is-uppercase'.
18281         * lib/unicase/u16-is-uppercase.c: New file.
18282         * modules/unicase/u16-is-uppercase: New file.
18283
18284         New module 'unicase/u8-is-uppercase'.
18285         * lib/unicase/u8-is-uppercase.c: New file.
18286         * modules/unicase/u8-is-uppercase: New file.
18287
18288         New module 'unicase/u32-is-invariant'.
18289         * lib/unicase/u32-is-invariant.c: New file.
18290         * modules/unicase/u32-is-invariant: New file.
18291
18292         New module 'unicase/u16-is-invariant'.
18293         * lib/unicase/u16-is-invariant.c: New file.
18294         * modules/unicase/u16-is-invariant: New file.
18295
18296         New module 'unicase/u8-is-invariant'.
18297         * lib/unicase/u8-is-invariant.c: New file.
18298         * lib/unicase/invariant.h: New file.
18299         * lib/unicase/u-is-invariant.h: New file.
18300         * modules/unicase/u8-is-invariant: New file.
18301
18302         Tests for module 'unicase/u32-casecoll'.
18303         * modules/unicase/u32-casecoll-tests: New file.
18304         * tests/unicase/test-u32-casecoll.c: New file.
18305
18306         Tests for module 'unicase/u16-casecoll'.
18307         * modules/unicase/u16-casecoll-tests: New file.
18308         * tests/unicase/test-u16-casecoll.c: New file.
18309
18310         Tests for module 'unicase/u8-casecoll'.
18311         * modules/unicase/u8-casecoll-tests: New file.
18312         * tests/unicase/test-u8-casecoll.c: New file.
18313
18314         New module 'unicase/u32-casecoll'.
18315         * lib/unicase/u32-casecoll.c: New file.
18316         * modules/unicase/u32-casecoll: New file.
18317
18318         New module 'unicase/u16-casecoll'.
18319         * lib/unicase/u16-casecoll.c: New file.
18320         * modules/unicase/u16-casecoll: New file.
18321
18322         New module 'unicase/u8-casecoll'.
18323         * lib/unicase/u8-casecoll.c: New file.
18324         * lib/unicase/u-casecoll.h: New file.
18325         * modules/unicase/u8-casecoll: New file.
18326
18327         New module 'unicase/u32-casexfrm'.
18328         * lib/unicase/u32-casexfrm.c: New file.
18329         * modules/unicase/u32-casexfrm: New file.
18330
18331         New module 'unicase/u16-casexfrm'.
18332         * lib/unicase/u16-casexfrm.c: New file.
18333         * modules/unicase/u16-casexfrm: New file.
18334
18335         New module 'unicase/u8-casexfrm'.
18336         * lib/unicase/u8-casexfrm.c: New file.
18337         * lib/unicase/u-casexfrm.h: New file.
18338         * modules/unicase/u8-casexfrm: New file.
18339
18340         Tests for module 'unicase/u32-casecmp'.
18341         * modules/unicase/u32-casecmp-tests: New file.
18342         * tests/unicase/test-u32-casecmp.c: New file.
18343
18344         Tests for module 'unicase/u16-casecmp'.
18345         * modules/unicase/u16-casecmp-tests: New file.
18346         * tests/unicase/test-u16-casecmp.c: New file.
18347
18348         Tests for module 'unicase/u8-casecmp'.
18349         * modules/unicase/u8-casecmp-tests: New file.
18350         * tests/unicase/test-u8-casecmp.c: New file.
18351         * tests/unicase/test-casecmp.h: New file.
18352
18353         New module 'unicase/u32-casecmp'.
18354         * lib/unicase/u32-casecmp.c: New file.
18355         * modules/unicase/u32-casecmp: New file.
18356
18357         New module 'unicase/u16-casecmp'.
18358         * lib/unicase/u16-casecmp.c: New file.
18359         * modules/unicase/u16-casecmp: New file.
18360
18361         New module 'unicase/u8-casecmp'.
18362         * lib/unicase/u8-casecmp.c: New file.
18363         * lib/unicase/u-casecmp.h: New file.
18364         * modules/unicase/u8-casecmp: New file.
18365
18366         Tests for module 'unicase/u32-casefold'.
18367         * modules/unicase/u32-casefold-tests: New file.
18368         * tests/unicase/test-u32-casefold.c: New file.
18369
18370         Tests for module 'unicase/u16-casefold'.
18371         * modules/unicase/u16-casefold-tests: New file.
18372         * tests/unicase/test-u16-casefold.c: New file.
18373
18374         Tests for module 'unicase/u8-casefold'.
18375         * modules/unicase/u8-casefold-tests: New file.
18376         * tests/unicase/test-u8-casefold.c: New file.
18377
18378         New module 'unicase/u32-casefold'.
18379         * lib/unicase/u32-casefold.c: New file.
18380         * modules/unicase/u32-casefold: New file.
18381
18382         New module 'unicase/u16-casefold'.
18383         * lib/unicase/u16-casefold.c: New file.
18384         * modules/unicase/u16-casefold: New file.
18385
18386         New module 'unicase/u8-casefold'.
18387         * lib/unicase/u8-casefold.c: New file.
18388         * lib/unicase/u-casefold.h: New file.
18389         * modules/unicase/u8-casefold: New file.
18390
18391         New module 'unicase/tocasefold'.
18392         * lib/unicase/casefold.h: New file.
18393         * lib/unicase/tocasefold.c: New file.
18394         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18395         * modules/unicase/tocasefold: New file.
18396
18397         Tests for module 'unicase/u32-totitle'.
18398         * modules/unicase/u32-totitle-tests: New file.
18399         * tests/unicase/test-u32-totitle.c: New file.
18400
18401         Tests for module 'unicase/u16-totitle'.
18402         * modules/unicase/u16-totitle-tests: New file.
18403         * tests/unicase/test-u16-totitle.c: New file.
18404
18405         Tests for module 'unicase/u8-totitle'.
18406         * modules/unicase/u8-totitle-tests: New file.
18407         * tests/unicase/test-u8-totitle.c: New file.
18408
18409         New module 'unicase/u32-totitle'.
18410         * lib/unicase/u32-totitle.c: New file.
18411         * modules/unicase/u32-totitle: New file.
18412
18413         New module 'unicase/u16-totitle'.
18414         * lib/unicase/u16-totitle.c: New file.
18415         * modules/unicase/u16-totitle: New file.
18416
18417         New module 'unicase/u8-totitle'.
18418         * lib/unicase/u8-totitle.c: New file.
18419         * lib/unicase/u-totitle.h: New file.
18420         * modules/unicase/u8-totitle: New file.
18421
18422         Tests for module 'unicase/u32-tolower'.
18423         * modules/unicase/u32-tolower-tests: New file.
18424         * tests/unicase/test-u32-tolower.c: New file.
18425
18426         Tests for module 'unicase/u16-tolower'.
18427         * modules/unicase/u16-tolower-tests: New file.
18428         * tests/unicase/test-u16-tolower.c: New file.
18429
18430         Tests for module 'unicase/u8-tolower'.
18431         * modules/unicase/u8-tolower-tests: New file.
18432         * tests/unicase/test-u8-tolower.c: New file.
18433
18434         New module 'unicase/u32-tolower'.
18435         * lib/unicase/u32-tolower.c: New file.
18436         * modules/unicase/u32-tolower: New file.
18437
18438         New module 'unicase/u16-tolower'.
18439         * lib/unicase/u16-tolower.c: New file.
18440         * modules/unicase/u16-tolower: New file.
18441
18442         New module 'unicase/u8-tolower'.
18443         * lib/unicase/u8-tolower.c: New file.
18444         * modules/unicase/u8-tolower: New file.
18445
18446         Tests for module 'unicase/u32-toupper'.
18447         * modules/unicase/u32-toupper-tests: New file.
18448         * tests/unicase/test-u32-toupper.c: New file.
18449
18450         Tests for module 'unicase/u16-toupper'.
18451         * modules/unicase/u16-toupper-tests: New file.
18452         * tests/unicase/test-u16-toupper.c: New file.
18453
18454         Tests for module 'unicase/u8-toupper'.
18455         * modules/unicase/u8-toupper-tests: New file.
18456         * tests/unicase/test-u8-toupper.c: New file.
18457
18458         New module 'unicase/u32-toupper'.
18459         * lib/unicase/u32-toupper.c: New file.
18460         * modules/unicase/u32-toupper: New file.
18461
18462         New module 'unicase/u16-toupper'.
18463         * lib/unicase/u16-toupper.c: New file.
18464         * modules/unicase/u16-toupper: New file.
18465
18466         New module 'unicase/u8-toupper'.
18467         * lib/unicase/u8-toupper.c: New file.
18468         * modules/unicase/u8-toupper: New file.
18469
18470         New module 'unicase/u32-casemap'.
18471         * lib/unicase/u32-casemap.c: New file.
18472         * modules/unicase/u32-casemap: New file.
18473
18474         New module 'unicase/u16-casemap'.
18475         * lib/unicase/u16-casemap.c: New file.
18476         * modules/unicase/u16-casemap: New file.
18477
18478         New module 'unicase/u8-casemap'.
18479         * lib/unicase/unicasemap.h: New file.
18480         * lib/unicase/u8-casemap.c: New file.
18481         * lib/unicase/u-casemap.h: New file.
18482         * modules/unicase/u8-casemap: New file.
18483
18484         New module 'unicase/special-casing'.
18485         * lib/unicase/special-casing.h: New file.
18486         * lib/unicase/special-casing.c: New file.
18487         * lib/unicase/special-casing-table.gperf: New file, generated by
18488         gen-uni-tables.c.
18489         * modules/unicase/special-casing: New file.
18490
18491         Tests for module 'unicase/locale-language'.
18492         * modules/unicase/locale-language-tests: New file.
18493         * tests/unicase/test-locale-language.sh: New file.
18494         * tests/unicase/test-locale-language.c: New file.
18495
18496         New module 'unicase/locale-language'.
18497         * lib/unicase/locale-language.c: New file.
18498         * lib/unicase/locale-languages.gperf: New file.
18499         * modules/unicase/locale-language: New file.
18500
18501         Generate more tables for case conversion and case folding.
18502         * lib/gen-uni-tables.c (SCC_*): New enum items.
18503         (struct special_casing_rule): New type.
18504         (casing_rules, num_casing_rules, allocated_casing_rules): New
18505         variables.
18506         (add_casing_rule, fill_casing_rules): New functions.
18507         (struct casefold_rule): New type.
18508         (casefolding_rules, num_casefolding_rules,
18509         allocated_casefolding_rules): New variables.
18510         (fill_casefolding_rules): New function.
18511         (unicode_casefold): New variable.
18512         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18513         sort_casing_rules, output_casing_rules): New functions.
18514         (main): Accept to more arguments: SpecialCasing.txt and
18515         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18516         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18517         Output mapping for casefolding.
18518
18519         * lib/unicase.h: Include stdbool.h, uninorm.h.
18520         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18521         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18522         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18523         arguments.
18524         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18525         resultp arguments.
18526         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18527         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18528         resultp arguments.
18529         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18530         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18531         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18532         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18533         declarations.
18534         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18535
18536 2009-03-08  Bruno Haible  <bruno@clisp.org>
18537
18538         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18539         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18540         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18541         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18542
18543 2009-03-07  Bruno Haible  <bruno@clisp.org>
18544
18545         Adjust u*_normcmp, u*_normcoll API.
18546         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18547         u16_normcoll, u32_normcoll): Change failure conventions.
18548         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18549         errno and return -1.
18550         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18551
18552 2009-03-07  Bruno Haible  <bruno@clisp.org>
18553
18554         Tests for module 'uninorm/u32-normcoll'.
18555         * modules/uninorm/u32-normcoll-tests: New file.
18556         * tests/uninorm/test-u32-normcoll.c: New file.
18557
18558         Tests for module 'uninorm/u16-normcoll'.
18559         * modules/uninorm/u16-normcoll-tests: New file.
18560         * tests/uninorm/test-u16-normcoll.c: New file.
18561
18562         Tests for module 'uninorm/u8-normcoll'.
18563         * modules/uninorm/u8-normcoll-tests: New file.
18564         * tests/uninorm/test-u8-normcoll.c: New file.
18565
18566 2009-03-07  Bruno Haible  <bruno@clisp.org>
18567
18568         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18569         tests/uninorm/test-u32-normcmp.c.
18570         * tests/uninorm/test-u32-normcmp.c: Include it.
18571         (test_nonascii): New function, extracted from main. Add some more
18572         tests.
18573         (main): Invoke test_ascii and test_nonascii.
18574         * modules/uninorm/u32-normcmp-tests (Files): Add
18575         tests/uninorm/test-u32-normcmp.h.
18576         (Depends-on): Remove uninorm/u32-normcmp.
18577
18578         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18579         tests/uninorm/test-u16-normcmp.c.
18580         * tests/uninorm/test-u16-normcmp.c: Include it.
18581         (test_nonascii): New function, extracted from main. Add some more
18582         tests.
18583         (main): Invoke test_ascii and test_nonascii.
18584         * modules/uninorm/u16-normcmp-tests (Files): Add
18585         tests/uninorm/test-u16-normcmp.h.
18586         (Depends-on): Remove uninorm/u16-normcmp.
18587
18588         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18589         tests/uninorm/test-u8-normcmp.c.
18590         * tests/uninorm/test-u8-normcmp.c: Include it.
18591         (test_nonascii): New function, extracted from main. Add some more
18592         tests.
18593         (main): Invoke test_ascii and test_nonascii.
18594         * modules/uninorm/u8-normcmp-tests (Files): Add
18595         tests/uninorm/test-u8-normcmp.h.
18596         (Depends-on): Remove uninorm/u8-normcmp.
18597
18598 2009-03-07  Bruno Haible  <bruno@clisp.org>
18599
18600         New module 'uninorm/u32-normcoll'.
18601         * lib/uninorm/u32-normcoll.c: New file.
18602         * modules/uninorm/u32-normcoll: New file.
18603
18604         New module 'uninorm/u16-normcoll'.
18605         * lib/uninorm/u16-normcoll.c: New file.
18606         * modules/uninorm/u16-normcoll: New file.
18607
18608         New module 'uninorm/u8-normcoll'.
18609         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18610         declarations.
18611         * lib/uninorm/u8-normcoll.c: New file.
18612         * lib/uninorm/u-normcoll.h: New file.
18613         * modules/uninorm/u8-normcoll: New file.
18614
18615         New module 'uninorm/u32-normxfrm'.
18616         * lib/uninorm/u32-normxfrm.c: New file.
18617         * modules/uninorm/u32-normxfrm: New file.
18618
18619         New module 'uninorm/u16-normxfrm'.
18620         * lib/uninorm/u16-normxfrm.c: New file.
18621         * modules/uninorm/u16-normxfrm: New file.
18622
18623         New module 'uninorm/u8-normxfrm'.
18624         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
18625         declarations.
18626         * lib/uninorm/u8-normxfrm.c: New file.
18627         * lib/uninorm/u-normxfrm.h: New file.
18628         * modules/uninorm/u8-normxfrm: New file.
18629
18630 2009-03-07  Bruno Haible  <bruno@clisp.org>
18631
18632         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
18633         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
18634         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
18635
18636 2009-03-07  Bruno Haible  <bruno@clisp.org>
18637
18638         New module 'memxfrm'.
18639         * lib/memxfrm.h: New file.
18640         * lib/memxfrm.c: New file.
18641         * modules/memxfrm: New file.
18642
18643 2009-03-07  Bruno Haible  <bruno@clisp.org>
18644
18645         New module 'memcmp2'.
18646         * lib/memcmp2.h: New file.
18647         * lib/memcmp2.c: New file.
18648         * modules/memcmp2: New file.
18649
18650 2009-03-07  Bruno Haible  <bruno@clisp.org>
18651
18652         Tests for module 'uninorm/decomposing-form'.
18653         * modules/uninorm/decomposing-form-tests: New file.
18654         * tests/uninorm/test-decomposing-form.c: New file.
18655
18656         New module 'uninorm/decomposing-form'.
18657         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18658         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18659         Add 'decomposing_variant' field.
18660         * lib/uninorm/decomposing-form.c: New file.
18661         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18662         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18663         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18664         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18665         * modules/uninorm/decomposing-form: New file.
18666         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18667         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18668
18669 2009-03-07  Bruno Haible  <bruno@clisp.org>
18670
18671         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18672         strings.
18673
18674 2009-03-06  Bruno Haible  <bruno@clisp.org>
18675
18676         Tests for module 'uninorm/u32-normcmp'.
18677         * tests/uninorm/test-u32-normcmp.c: New file.
18678         * modules/uninorm/u32-normcmp-tests: New file.
18679
18680         Tests for module 'uninorm/u16-normcmp'.
18681         * tests/uninorm/test-u16-normcmp.c: New file.
18682         * modules/uninorm/u16-normcmp-tests: New file.
18683
18684         Tests for module 'uninorm/u8-normcmp'.
18685         * tests/uninorm/test-u8-normcmp.c: New file.
18686         * modules/uninorm/u8-normcmp-tests: New file.
18687
18688         New module 'uninorm/u32-normcmp'.
18689         * lib/uninorm/u32-normcmp.c: New file.
18690         * modules/uninorm/u32-normcmp: New file.
18691
18692         New module 'uninorm/u16-normcmp'.
18693         * lib/uninorm/u16-normcmp.c: New file.
18694         * modules/uninorm/u16-normcmp: New file.
18695
18696         New module 'uninorm/u8-normcmp'.
18697         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18698         declarations.
18699         * lib/uninorm/u8-normcmp.c: New file.
18700         * lib/uninorm/u-normcmp.h: New file.
18701         * modules/uninorm/u8-normcmp: New file.
18702
18703 2009-03-06  Bruno Haible  <bruno@clisp.org>
18704
18705         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18706         Reported by Eric Blake.
18707
18708 2009-03-06  Eric Blake  <ebb9@byu.net>
18709             Bruno Haible  <bruno@clisp.org>
18710
18711         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
18712         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
18713         condition.
18714         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18715         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
18716         condition.
18717         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18718
18719 2009-03-06  Eric Blake  <ebb9@byu.net>
18720
18721         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
18722         to avoid compiler warnings.
18723         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
18724
18725 2009-03-05  Bruno Haible  <bruno@clisp.org>
18726
18727         * tests/test-ftell.c (main): Disable test beyond end of file on
18728         FreeMiNT.
18729         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18730
18731 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
18732
18733         * lib/filevercmp.c: Move hidden files up in ordering.
18734         * tests/test-filevercmp.c: Add tests for hidden files.
18735
18736 2009-03-04  Bruno Haible  <bruno@clisp.org>
18737
18738         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
18739         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
18740         AM_CFLAGS.
18741         Reported by Simon Josefsson.
18742
18743 2009-03-03  Bruno Haible  <bruno@clisp.org>
18744
18745         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
18746         Reported by Simon Josefsson.
18747
18748         * doc/ld-version-script.texi: Update node reference.
18749
18750 2009-03-03  Bruno Haible  <bruno@clisp.org>
18751
18752         * modules/visibility (License): Change to 'unlimited'.
18753         Suggested by Simon Josefsson.
18754
18755 2009-03-03  Jim Meyering  <meyering@redhat.com>
18756
18757         unlinkdir: cannot_unlink_dir may modify process state
18758         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
18759         it's neither thread-safe nor appropriate for use in a library.
18760
18761 2009-03-03  Eric Blake  <ebb9@byu.net>
18762
18763         test-closein: silence test under Darwin
18764         * tests/test-closein.sh: Ignore stderr from cat, since we don't
18765         care if it dies from EPIPE or EBADF.
18766
18767 2009-03-03  Bruno Haible  <bruno@clisp.org>
18768
18769         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
18770         earlier.
18771         * doc/visibility.texi: Fix @node and @section.
18772
18773 2009-03-03  Simon Josefsson  <simon@josefsson.org>
18774
18775         * doc/gnulib.texi: Link to sections for ld version script and
18776         visibility.
18777         * doc/visibility.texi: Add @node and @section.
18778         * modules/ld-version-script: New module.
18779         * m4/ld-version-script.m4: New file.
18780         * doc/ld-version-script.texi: New file.
18781
18782 2009-03-02  David Lutterkort  <lutter@redhat.com>
18783
18784         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
18785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18786
18787 2009-03-02  Bruno Haible  <bruno@clisp.org>
18788
18789         * doc/visibility.texi: Mention libtool's -export-symbols option.
18790
18791 2009-03-02  Jim Meyering  <meyering@redhat.com>
18792
18793         announce-gen: new option: --no-print-checksums
18794         * build-aux/announce-gen (usage): Describe it.
18795         (print_checksums): Print a newline here, not in the [*] footnote.
18796         (main): Honor it.
18797
18798 2009-03-01  Bruno Haible  <bruno@clisp.org>
18799
18800         Use socklen_t in the native Windows replacements prototypes.
18801         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
18802         instead of 'int'.
18803         * lib/getsockopt.c (rpl_getsockopt): Likewise.
18804         * lib/setsockopt.c (rpl_setsockopt): Likewise.
18805         * modules/getsockopt (Depends-on): Add socklen.
18806         * modules/setsockopt (Depends-on): Add socklen.
18807
18808 2009-03-01  Bruno Haible  <bruno@clisp.org>
18809
18810         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
18811         least 4.2.
18812
18813 2009-03-01  Eric Blake  <ebb9@byu.net>
18814             Bruno Haible  <bruno@clisp.org>
18815
18816         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
18817         error messages.
18818         * lib/wait-process.c (wait_subprocess): Omit error message about
18819         deadly signal sent to the child of termsigp != NULL.
18820
18821 2009-03-01  Eric Blake  <ebb9@byu.net>
18822
18823         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
18824
18825 2009-03-01  Bruno Haible  <bruno@clisp.org>
18826
18827         Avoid a gcc warning.
18828         * tests/test-sched.c (b): Make global.
18829         Reported by Eric Blake.
18830
18831 2009-01-19  Martin Lambers  <marlam@marlam.de>
18832
18833         Provide POSIX semantics for socket timeout options on W32.
18834         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
18835         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
18836         * modules/setsockopt: Depend on sys_time module for struct timeval.
18837         * modules/getsockopt: Depend on sys_time module for struct timeval.
18838
18839 2009-03-01  Simon Josefsson  <simon@josefsson.org>
18840
18841         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
18842         __USE_GNU, for consistency with netdb.in.h.
18843         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18844
18845 2009-03-01  Bruno Haible  <bruno@clisp.org>
18846
18847         More support for FreeMiNT.
18848         * lib/fseeko.c (rpl_fseeko): Complete last commit.
18849         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18850
18851 2009-03-01  Bruno Haible  <bruno@clisp.org>
18852
18853         More support for FreeMiNT.
18854         * lib/fpurge.c (fpurge): Correct last commit.
18855         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18856
18857 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18858
18859         Fix unportable awk script in vc-list-files.
18860         * build-aux/vc-list-files: In the replacement awk script, use
18861         substr with a second argument of 1, not zero.
18862         Report by Simon Josefsson.
18863
18864 2009-02-28  Bruno Haible  <bruno@clisp.org>
18865
18866         More support for FreeMiNT.
18867         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
18868         to FreeMiNT today.
18869         * lib/fwriting.c (fwriting): Likewise.
18870         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
18871
18872 2009-02-28  Bruno Haible  <bruno@clisp.org>
18873
18874         * tests/test-freadseek.c (main): Disable test beyond end of file on
18875         FreeMiNT.
18876         * tests/test-ftello.c (main): Likewise.
18877         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18878
18879 2009-02-28  Bruno Haible  <bruno@clisp.org>
18880
18881         Add tentative support for FreeMiNT.
18882         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
18883         * lib/fpurge.c (fpurge): Likewise.
18884         * lib/freadable.c (freadable): Likewise.
18885         * lib/freading.c (freading): Likewise.
18886         * lib/freadptr.c (freadptr): Likewise.
18887         * lib/freadseek.c (freadptrinc): Likewise.
18888         * lib/fseeko.c (rpl_fseeko): Likewise.
18889         * lib/fseterr.c (fseterr): Likewise.
18890         * lib/fwritable.c (fwritable): Likewise.
18891         * lib/fwriting.c (fwriting): Likewise.
18892         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
18893         Hourihane.
18894         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18895
18896 2009-02-28  Bruno Haible  <bruno@clisp.org>
18897
18898         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
18899         SIGCHLD.
18900         Reported by Jim Meyering.
18901
18902 2009-02-28  Bruno Haible  <bruno@clisp.org>
18903
18904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
18905         Mention the results of these tests on various platforms.
18906         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
18907         order.
18908         * doc/posix-functions/printf.texi: Likewise.
18909         * doc/posix-functions/snprintf.texi: Likewise.
18910         * doc/posix-functions/sprintf.texi: Likewise.
18911         * doc/posix-functions/vfprintf.texi: Likewise.
18912         * doc/posix-functions/vprintf.texi: Likewise.
18913         * doc/posix-functions/vsnprintf.texi: Likewise.
18914         * doc/posix-functions/vsprintf.texi: Likewise.
18915         * doc/glibc-functions/obstack_printf.texi: Likewise.
18916         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18917
18918 2009-02-28  Bruno Haible  <bruno@clisp.org>
18919
18920         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
18921         Reported by Loïc Minier <lool@dooz.org>.
18922
18923 2009-02-27  Bruno Haible  <bruno@clisp.org>
18924
18925         * gnulib-tool (func_import): Make the sed expression used to create the
18926         sed script for updating the .gitignore file POSIX compliant.
18927         Reported by Eric Blake.
18928
18929 2009-02-27  Bruno Haible  <bruno@clisp.org>
18930
18931         * gnulib-tool (sed): Don't alias as "sed --posix".
18932         Reported by Eric Blake.
18933
18934 2009-02-27  Bruno Haible  <bruno@clisp.org>
18935
18936         Avoid test link errors.
18937         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
18938         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
18939         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
18940         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
18941         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18942
18943 2009-02-27  Bruno Haible  <bruno@clisp.org>
18944
18945         Avoid spurious "(cached)" in configure output.
18946         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
18947         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
18948         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18949         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18950         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18951         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18952         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18953         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18954         Reported by Eric Blake.
18955
18956 2009-02-27  Eric Blake  <ebb9@byu.net>
18957
18958         printf: fix regression in previous patch
18959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
18960
18961 2009-02-27  Bruno Haible  <bruno@clisp.org>
18962
18963         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
18964         value.
18965         * lib/stdint.in.h: Likewise.
18966         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
18967
18968 2009-02-27  Eric Blake  <ebb9@byu.net>
18969
18970         doc: mention more functions added in cygwin 1.7.0
18971         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
18972         addition.
18973         * doc/posix-functions/open_wmemstream.texi: Likewise.
18974         * doc/posix-functions/wcsnlen.texi: Likewise.
18975         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18976         * doc/posix-functions/wcstod.texi: Likewise.
18977         * doc/posix-functions/wcstof.texi: Likewise.
18978         * doc/posix-functions/wcstoimax.texi: Likewise.
18979         * doc/posix-functions/wcstok.texi: Likewise.
18980         * doc/posix-functions/wcstoumax.texi: Likewise.
18981
18982         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
18983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
18984         * doc/posix-functions/fprintf.texi: Update.
18985         * doc/posix-functions/printf.texi: Update.
18986         * doc/posix-functions/snprintf.texi: Update.
18987         * doc/posix-functions/sprintf.texi: Update.
18988         * doc/posix-functions/vfprintf.texi: Update.
18989         * doc/posix-functions/vprintf.texi: Update.
18990         * doc/posix-functions/vsnprintf.texi: Update.
18991         * doc/posix-functions/vsprintf.texi: Update.
18992         * doc/glibc-functions/obstack_printf.texi: Update.
18993         * doc/glibc-functions/obstack_vprintf.texi: Update.
18994
18995 2009-02-26  Eric Blake  <ebb9@byu.net>
18996
18997         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
18998         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
18999         compilation bug by using runtime conversion.
19000         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19001         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19002         * modules/ceill-tests (Files): Use nan.h.
19003         * modules/floorl-tests (Files): Likewise.
19004         * modules/frexpl-tests (Files): Likewise.
19005         * modules/isnanl-tests (Files): Likewise.
19006         * modules/ldexpl-tests (Files): Likewise.
19007         * modules/roundl-tests (Files): Likewise.
19008         * modules/truncl-tests (Files): Likewise.
19009         * tests/test-ceill.c (main): Use a working NaN.
19010         * tests/test-floorl.c (main): Likewise.
19011         * tests/test-frexpl.c (main): Likewise.
19012         * tests/test-isnan.c (test_long_double): Likewise.
19013         * tests/test-isnanl.h (main): Likewise.
19014         * tests/test-ldexpl.h (main): Likewise.
19015         * tests/test-roundl.h (main): Likewise.
19016         * tests/test-truncl.h (main): Likewise.
19017         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19018
19019 2009-02-26  Eric Blake  <ebb9@byu.net>
19020             Bruno Haible  <bruno@clisp.org>
19021
19022         Work around a *printf bug with %ls on Solaris.
19023         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19024         precision is specified, sprintf stops converting the wide string
19025         argument when the number of bytes that have been produced by this
19026         conversion equals or exceeds the precision.
19027         * doc/posix-functions/fprintf.texi: Update.
19028         * doc/posix-functions/printf.texi: Update.
19029         * doc/posix-functions/snprintf.texi: Update.
19030         * doc/posix-functions/sprintf.texi: Update.
19031         * doc/posix-functions/vfprintf.texi: Update.
19032         * doc/posix-functions/vprintf.texi: Update.
19033         * doc/posix-functions/vsnprintf.texi: Update.
19034         * doc/posix-functions/vsprintf.texi: Update.
19035         * doc/glibc-functions/obstack_printf.texi: Update.
19036         * doc/glibc-functions/obstack_vprintf.texi: Update.
19037
19038 2009-02-26  Eric Blake  <ebb9@byu.net>
19039
19040         stdlib: favor compiler check of random.h
19041         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19042         to avoid an ObjC random.h installed by Swarm.
19043
19044 2009-02-26  Bruno Haible  <bruno@clisp.org>
19045
19046         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19047         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19048         Reported by Gary V. Vaughan <gary@gnu.org>.
19049
19050 2009-02-26  Bruno Haible  <bruno@clisp.org>
19051
19052         Fix *printf behaviour regarding the %ls directive.
19053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19054         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19055         NEED_PRINTF_DIRECTIVE_LS.
19056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19057         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19058         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19059         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19060         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19061         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19062         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19065         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19067         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19071         * doc/posix-functions/fprintf.texi: Update.
19072         * doc/posix-functions/printf.texi: Update.
19073         * doc/posix-functions/snprintf.texi: Update.
19074         * doc/posix-functions/sprintf.texi: Update.
19075         * doc/posix-functions/vfprintf.texi: Update.
19076         * doc/posix-functions/vprintf.texi: Update.
19077         * doc/posix-functions/vsnprintf.texi: Update.
19078         * doc/posix-functions/vsprintf.texi: Update.
19079         * doc/glibc-functions/obstack_printf.texi: Update.
19080         * doc/glibc-functions/obstack_vprintf.texi: Update.
19081         Reported by Eric Blake.
19082
19083 2009-02-25  Bruno Haible  <bruno@clisp.org>
19084
19085         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19086         with known value.
19087         Reported by Gary V. Vaughan <gary@gnu.org>.
19088
19089 2009-02-25  Bruno Haible  <bruno@clisp.org>
19090
19091         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19092         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19093         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19094         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19095         Reported by Gary V. Vaughan <gary@gnu.org>.
19096
19097 2009-02-25  Bruno Haible  <bruno@clisp.org>
19098
19099         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19100         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19101         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19102         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19103         Reported by Gary V. Vaughan <gary@gnu.org>.
19104
19105 2009-02-25  Eric Blake  <ebb9@byu.net>
19106
19107         tests: skip fseek/ftell tests if ungetc is broken
19108         * m4/ungetc.m4: New file.
19109         * modules/fseek-tests: Split test, so ungetc dependency is
19110         separate from rest of test.
19111         * modules/fseeko-tests: Likewise.
19112         * modules/ftell-tests: Likewise.
19113         * modules/ftello-tests: Likewise.
19114         * tests/test-fseek.c (main): Isolate ungetc dependency.
19115         * tests/test-fseeko.c (main): Likewise.
19116         * tests/test-ftell.c (main): Likewise.
19117         * tests/test-ftello.c (main): Likewise.
19118         * tests/test-fseek2.sh: New file.
19119         * tests/test-fseeko2.sh: Likewise.
19120         * tests/test-ftell2.sh: Likewise.
19121         * tests/test-ftello2.sh: Likewise.
19122
19123 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
19124
19125         test-getaddrinfo: fix usage of skip return code 77
19126         * tests/test-gettaddrinfo.c: Return skip code 77 only
19127         for first occurance of skip (4x77 is not 77)
19128
19129 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19130
19131         strtod: avoid C99 decl-after-statement
19132         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19133
19134 2009-02-24  Eric Blake  <ebb9@byu.net>
19135
19136         strtod: detect HP-UX 11.31 bug
19137         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19138         Reported by Gary V. Vaughan.
19139
19140 2009-02-23  Bruno Haible  <bruno@clisp.org>
19141
19142         Fix invalid read past end of memory block.
19143         * lib/vasnprintf.c (DCHAR_SET): Define.
19144         (local_wcslen): Define only when needed.
19145         (local_strnlen, local_wcsnlen): New functions.
19146         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19147         directives that involve a conversion ourselves.
19148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19149         wcsnlen, mbrtowc, wcrtomb.
19150         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19151         * tests/test-vasprintf-posix.c (test_function): Likewise.
19152         * tests/test-snprintf-posix.h (test_function): Likewise.
19153         * tests/test-sprintf-posix.h (test_function): Likewise.
19154         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19155
19156 2009-02-22  Bruno Haible  <bruno@clisp.org>
19157
19158         Implement new clarified decomposition of Hangul syllables.
19159         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19160         of type LTV, return only a pairwise decomposition.
19161         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19162         Likewise.
19163         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19164         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19165         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19166
19167 2009-02-22  Bruno Haible  <bruno@clisp.org>
19168
19169         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19170         zero-length results and shrink excess allocated memory.
19171         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19172         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19173         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19174         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19175         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19176         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19177         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19178         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19179         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19180         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19181         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19182         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19183
19184 2009-02-21  Bruno Haible  <bruno@clisp.org>
19185
19186         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19187         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19188         spaces after a period. Put a space between a macro name and its
19189         argument list. Trivial rewordings.
19190         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19191         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19192         (main): Return 0 explicitly.
19193
19194 2009-02-21  Bruno Haible  <bruno@clisp.org>
19195
19196         Tests for module 'uninorm/filter'.
19197         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19198         * modules/uninorm/filter-tests: New file.
19199
19200         New module 'uninorm/filter'.
19201         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19202         uninorm_filter_flush, uninorm_filter_free): New declarations.
19203         * lib/uninorm/uninorm-filter.c: New file.
19204         * modules/uninorm/filter: New file.
19205
19206 2009-02-21  Bruno Haible  <bruno@clisp.org>
19207
19208         Tests for module 'uninorm/nfkc'.
19209         * tests/uninorm/test-nfkc.c: New file.
19210         * tests/uninorm/test-u8-nfkc.c: New file.
19211         * tests/uninorm/test-u16-nfkc.c: New file.
19212         * tests/uninorm/test-u32-nfkc.c: New file.
19213         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19214         * tests/uninorm/test-u32-nfkc-big.c: New file.
19215         * modules/uninorm/nfkc-tests: New file.
19216
19217         New module 'uninorm/nfkc'.
19218         * lib/uninorm/nfkc.c: New file.
19219         * modules/uninorm/nfkc: New file.
19220
19221         Tests for module 'uninorm/nfkd'.
19222         * tests/uninorm/test-nfkd.c: New file.
19223         * tests/uninorm/test-u8-nfkd.c: New file.
19224         * tests/uninorm/test-u16-nfkd.c: New file.
19225         * tests/uninorm/test-u32-nfkd.c: New file.
19226         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19227         * tests/uninorm/test-u32-nfkd-big.c: New file.
19228         * modules/uninorm/nfkd-tests: New file.
19229
19230         New module 'uninorm/nfkd'.
19231         * lib/uninorm/nfkd.c: New file.
19232         * modules/uninorm/nfkd: New file.
19233
19234         Tests for module 'uninorm/nfc'.
19235         * tests/uninorm/test-nfc.c: New file.
19236         * tests/uninorm/test-u8-nfc.c: New file.
19237         * tests/uninorm/test-u16-nfc.c: New file.
19238         * tests/uninorm/test-u32-nfc.c: New file.
19239         * tests/uninorm/test-u32-nfc-big.sh: New file.
19240         * tests/uninorm/test-u32-nfc-big.c: New file.
19241         * modules/uninorm/nfc-tests: New file.
19242
19243         New module 'uninorm/nfc'.
19244         * lib/uninorm/nfc.c: New file.
19245         * modules/uninorm/nfc: New file.
19246
19247         Tests for module 'uninorm/nfd'.
19248         * tests/uninorm/test-nfd.c: New file.
19249         * tests/uninorm/test-u8-nfd.c: New file.
19250         * tests/uninorm/test-u16-nfd.c: New file.
19251         * tests/uninorm/test-u32-nfd.c: New file.
19252         * tests/uninorm/test-u32-nfd-big.sh: New file.
19253         * tests/uninorm/test-u32-nfd-big.c: New file.
19254         * tests/uninorm/test-u32-normalize-big.h: New file.
19255         * tests/uninorm/test-u32-normalize-big.c: New file.
19256         * tests/uninorm/NormalizationTest.txt: New file, created from
19257         Unicode 5.1.0 NormalizationTest.txt.
19258         * modules/uninorm/nfd-tests: New file.
19259
19260         New module 'uninorm/nfd'.
19261         * lib/uninorm/nfd.c: New file.
19262         * modules/uninorm/nfd: New file.
19263
19264         New module 'uninorm/u32-normalize'.
19265         * lib/uninorm/u32-normalize.c: New file.
19266         * modules/uninorm/u32-normalize: New file.
19267
19268         New module 'uninorm/u16-normalize'.
19269         * lib/uninorm/u16-normalize.c: New file.
19270         * modules/uninorm/u16-normalize: New file.
19271
19272         New module 'uninorm/u8-normalize'.
19273         * lib/uninorm/u8-normalize.c: New file.
19274         * lib/uninorm/normalize-internal.h: New file.
19275         * lib/uninorm/u-normalize-internal.h: New file.
19276         * modules/uninorm/u8-normalize: New file.
19277
19278         New module 'uninorm/decompose-internal'.
19279         * lib/uninorm/decompose-internal.c: New file.
19280         * modules/uninorm/decompose-internal: New file.
19281
19282         Tests for module 'uninorm/composition'.
19283         * tests/uninorm/test-composition.c: New file.
19284         * modules/uninorm/composition-tests: New file.
19285
19286         New module 'uninorm/composition'.
19287         * lib/uninorm/composition.c: New file.
19288         * lib/uninorm/composition-table.gperf: New file, generated by
19289         gen-uni-tables.
19290         * modules/uninorm/composition: New file.
19291
19292         Tests for module 'uninorm/compat-decomposition'.
19293         * tests/uninorm/test-compat-decomposition.c: New file.
19294         * modules/uninorm/compat-decomposition-tests: New file.
19295
19296         New module 'uninorm/compat-decomposition'.
19297         * lib/uninorm/decompose-internal.h: New file.
19298         * lib/uninorm/compat-decomposition.c: New file.
19299         * modules/uninorm/compat-decomposition: New file.
19300
19301         Tests for module 'uninorm/canonical-decomposition'.
19302         * tests/uninorm/test-canonical-decomposition.c: New file.
19303         * modules/uninorm/canonical-decomposition-tests: New file.
19304
19305         New module 'uninorm/canonical-decomposition'.
19306         * lib/uninorm/canonical-decomposition.c: New file.
19307         * modules/uninorm/canonical-decomposition: New file.
19308
19309         Tests for module 'uninorm/decomposition'.
19310         * tests/uninorm/test-decomposition.c: New file.
19311         * modules/uninorm/decomposition-tests: New file.
19312
19313         New module 'uninorm/decomposition'.
19314         * lib/uninorm/decomposition.c: New file.
19315         * modules/uninorm/decomposition: New file.
19316
19317         New module 'uninorm/decomposition-table'.
19318         * lib/uninorm/decomposition-table.h: New file.
19319         * lib/uninorm/decomposition-table.c: New file.
19320         * lib/uninorm/decomposition-table1.h: New file, generated by
19321         gen-uni-tables.
19322         * lib/uninorm/decomposition-table2.h: New file, generated by
19323         gen-uni-tables.
19324         * modules/uninorm/decomposition-table: New file.
19325
19326         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19327         (UC_DECOMP_*): New enumeration items.
19328         (get_decomposition): New function.
19329         (struct decomp_table): New type.
19330         (output_decomposition, output_decomposition_tables): New functions.
19331         (unicode_composition_exclusions): New variable.
19332         (fill_composition_exclusions, debug_output_composition_tables): New
19333         functions.
19334         (main): Accept one more argument. Invoke fill_composition_exclusions.
19335         Output decomposition and composition tables.
19336
19337         New module 'uninorm/base'.
19338         * lib/uninorm.h: New file.
19339         * lib/unictype.h: Update comment.
19340         * modules/uninorm/base: New file.
19341
19342 2009-02-21  David Lutterkort  <lutter@redhat.com>
19343
19344         Tests for module 'safe-alloc'.
19345         * tests/test-safe-alloc.c: New file.
19346         * modules/safe-alloc-tests: New file.
19347
19348         New module 'safe-alloc'.
19349         * lib/safe-alloc.h: New file.
19350         * lib/safe-alloc.c: New file.
19351         * m4/safe-alloc.m4: New file.
19352         * modules/safe-alloc: New file.
19353         * doc/safe-alloc.texi: New file.
19354         * doc/gnulib.texi: Include it.
19355         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19356         safe-alloc.
19357
19358 2009-02-18  Bruno Haible  <bruno@clisp.org>
19359
19360         Fix link error on non-glibc systems.
19361         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19362         variable.
19363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19364
19365 2009-02-18  Jim Meyering  <meyering@redhat.com>
19366
19367         fts: avoid used-uninitialized error due to recent change
19368         * lib/fts.c (fts_read): Guard uses of the new member,
19369         parent->fts_n_dirs_remaining, since it's not relevant for
19370         the parent of a directory specified on the command-line.
19371
19372 2009-02-17  James Youngman  <jay@gnu.org>
19373             Bruno Haible  <bruno@clisp.org>
19374
19375         * m4/include_next.m4: Reformulate comment.
19376
19377 2009-02-16  Jim Meyering  <meyering@redhat.com>
19378
19379         fts: add #if guards so that the fts_lgpl module still builds
19380         * lib/fts.c: Guard just-added hash-table-using parts with
19381         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19382         Reported by Simon Josefsson.
19383
19384 2009-02-15  Bruno Haible  <bruno@clisp.org>
19385
19386         * modules/array-mergesort-tests: New file.
19387         * tests/test-array-mergesort.c: New file.
19388
19389         New module 'array-mergesort'.
19390         * modules/array-mergesort: New file.
19391         * lib/array-mergesort.h: New file.
19392
19393 2009-02-15  Bruno Haible  <bruno@clisp.org>
19394
19395         Fix 2009-02-07 commit.
19396         * lib/gen-uni-tables.c (output_predicate, output_category,
19397         output_combclass, output_bidi_category, output_decimal_digit,
19398         output_digit, output_numeric, output_mirror, output_scripts,
19399         output_ident_category, output_simple_mapping): Fix format directives.
19400         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19401
19402 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19403
19404         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19405         fixes are available from IBM.
19406
19407 2009-02-13  Jim Meyering  <meyering@redhat.com>
19408
19409         fts: arrange not to stat non-directories in more cases
19410         This makes GNU find (when it doesn't need to stat each file)
19411         *much* more efficient at traversing reiserfs file systems.
19412         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19413         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19414         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19415         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19416         (leaf_optimization_applies): New function.
19417         (LCO_hash, LCO_compare): New helper functions.
19418         (link_count_optimize_ok): New function.
19419         (fts_stat): Initialize new member (if dir).
19420         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19421         we've just stat'ed a directory.  Skip the stat call when possible.
19422         ---
19423         Note this AFS-related exchange:
19424         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19425         and note find's pioctl call in find/fstype.c.
19426         But that is necessary only if you want to enable the
19427         optimization for AFS, and for now, I don't.
19428
19429         fts: move a function definition "up" (no semantic change)
19430         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19431         "up" to precede upcoming use of a related function.
19432
19433 2009-02-11  Jim Meyering  <meyering@redhat.com>
19434
19435         fts: correct internal computation of nlinks (optimization-related)
19436         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19437         whether the current entry is a directory, so don't test it.
19438
19439 2009-02-10  Bruno Haible  <bruno@clisp.org>
19440
19441         Tests for module 'uniwbrk/ulc-wordbreaks'.
19442         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19443         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19444         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19445
19446         Tests for module 'uniwbrk/u32-wordbreaks'.
19447         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19448         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19449
19450         Tests for module 'uniwbrk/u16-wordbreaks'.
19451         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19452         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19453
19454         Tests for module 'uniwbrk/u8-wordbreaks'.
19455         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19456         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19457
19458 2009-02-10  Bruno Haible  <bruno@clisp.org>
19459
19460         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19461         property.
19462         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19463         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19464         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19465
19466 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19467
19468         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19469         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19470
19471 2009-02-10  Bruno Haible  <bruno@clisp.org>
19472
19473         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19474         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19475         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19476         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19477         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19478         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19479
19480 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19481
19482         * lib/sockets.h (gl_fd_to_handle): New function.
19483
19484         * tests/test-sockets.c: Call gl_fd_to_handle.
19485
19486 2009-02-09  Bruno Haible  <bruno@clisp.org>
19487
19488         * doc/havelib.texi: Document the conventions on bi-arch systems.
19489
19490 2009-02-08  Bruno Haible  <bruno@clisp.org>
19491
19492         Document the AC_LIB_LINKFLAGS macro.
19493         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19494         * doc/gnulib.texi: Include it.
19495
19496 2009-02-08  Bruno Haible  <bruno@clisp.org>
19497
19498         Fix wrong order of sections, compared to TOC.
19499         * doc/gnulib.texi: Include relocatable-maint.texi after the
19500         "Regular expressions" node, not before.
19501
19502 2009-02-08  Bruno Haible  <bruno@clisp.org>
19503
19504         Tests for module 'unicase/totitle'.
19505         * modules/unicase/totitle-tests: New file.
19506
19507         Tests for module 'unicase/tolower'.
19508         * modules/unicase/tolower-tests: New file.
19509
19510         Tests for module 'unicase/toupper'.
19511         * modules/unicase/toupper-tests: New file.
19512         * tests/unicase/test-mapping-part1.h: New file.
19513         * tests/unicase/test-mapping-part2.h: New file.
19514
19515         New module 'unicase/totitle'.
19516         * modules/unicase/totitle: New file.
19517         * lib/unicase/totitle.c: New file.
19518
19519         New module 'unicase/tolower'.
19520         * modules/unicase/tolower: New file.
19521         * lib/unicase/tolower.c: New file.
19522
19523         New module 'unicase/toupper'.
19524         * modules/unicase/toupper: New file.
19525         * lib/unicase/toupper.c: New file.
19526         * lib/unicase/simple-mapping.h: New file.
19527
19528         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19529         (mapping_table): New structure.
19530         (output_simple_mapping): New function.
19531         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19532         * modules/gen-uni-tables (Description): Update.
19533         * lib/unicase/toupper.h: New file, automatically generated by
19534         gen-uni-tables.
19535         * lib/unicase/tolower.h: New file, automatically generated by
19536         gen-uni-tables.
19537         * lib/unicase/totitle.h: New file, automatically generated by
19538         gen-uni-tables.
19539         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19540         gen-uni-tables.
19541         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19542         gen-uni-tables.
19543         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19544         gen-uni-tables.
19545
19546         New module 'unicase/base'.
19547         * modules/unicase/base: New file.
19548         * lib/unicase.h: New file.
19549
19550 2009-02-08  Bruno Haible  <bruno@clisp.org>
19551
19552         New module 'uniwbrk/ulc-wordbreaks'.
19553         * modules/uniwbrk/ulc-wordbreaks: New file.
19554         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19555
19556         New module 'uniwbrk/u32-wordbreaks'.
19557         * modules/uniwbrk/u32-wordbreaks: New file.
19558         * lib/uniwbrk/u32-wordbreaks.c: New file.
19559
19560         New module 'uniwbrk/u16-wordbreaks'.
19561         * modules/uniwbrk/u16-wordbreaks: New file.
19562         * lib/uniwbrk/u16-wordbreaks.c: New file.
19563
19564         New module 'uniwbrk/u8-wordbreaks'.
19565         * modules/uniwbrk/u8-wordbreaks: New file.
19566         * lib/uniwbrk/u8-wordbreaks.c: New file.
19567         * lib/uniwbrk/u-wordbreaks.h: New file.
19568
19569         New module 'uniwbrk/table'.
19570         * modules/uniwbrk/table: New file.
19571         * lib/uniwbrk/wbrktable.h: New file.
19572         * lib/uniwbrk/wbrktable.c: New file.
19573
19574         New module 'uniwbrk/wordbreak-property'.
19575         * modules/uniwbrk/wordbreak-property: New file.
19576         * lib/uniwbrk/wordbreak-property.c: New file.
19577
19578         * lib/gen-uni-tables.c (WBP_*): New enum items.
19579         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19580         (unicode_org_wbp): New variable.
19581         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19582         New functions.
19583         (wbp_table): New structure.
19584         (output_wbp, output_wbrk_tables): New functions.
19585         (main): Accept additional argument. Invoke fill_org_wbp,
19586         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19587         output_wbrk_tables.
19588         * modules/gen-uni-tables (Description): Update.
19589         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19590         gen-uni-tables.
19591
19592         New module 'uniwbrk/base'.
19593         * modules/uniwbrk/base: New file.
19594         * lib/uniwbrk.h: New file.
19595
19596 2009-02-08  Bruno Haible  <bruno@clisp.org>
19597
19598         Update to Unicode 5.1.0.
19599         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19600         U+2185..U+2188.
19601         (is_property_default_ignorable_code_point): Don't include characters
19602         of category Cc or Cs and not-a-characters.
19603         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19604         U+0D79, U+109E, U+109F, U+A60C.
19605         * lib/unictype/bidi_of.h: Regenerated.
19606         * lib/unictype/blocks.h: Regenerated.
19607         * lib/unictype/categ_C.h: Regenerated.
19608         * lib/unictype/categ_Cf.h: Regenerated.
19609         * lib/unictype/categ_Cn.h: Regenerated.
19610         * lib/unictype/categ_L.h: Regenerated.
19611         * lib/unictype/categ_Ll.h: Regenerated.
19612         * lib/unictype/categ_Lm.h: Regenerated.
19613         * lib/unictype/categ_Lo.h: Regenerated.
19614         * lib/unictype/categ_Lu.h: Regenerated.
19615         * lib/unictype/categ_M.h: Regenerated.
19616         * lib/unictype/categ_Mc.h: Regenerated.
19617         * lib/unictype/categ_Me.h: Regenerated.
19618         * lib/unictype/categ_Mn.h: Regenerated.
19619         * lib/unictype/categ_N.h: Regenerated.
19620         * lib/unictype/categ_Nd.h: Regenerated.
19621         * lib/unictype/categ_Nl.h: Regenerated.
19622         * lib/unictype/categ_No.h: Regenerated.
19623         * lib/unictype/categ_P.h: Regenerated.
19624         * lib/unictype/categ_Pd.h: Regenerated.
19625         * lib/unictype/categ_Pe.h: Regenerated.
19626         * lib/unictype/categ_Pf.h: Regenerated.
19627         * lib/unictype/categ_Pi.h: Regenerated.
19628         * lib/unictype/categ_Po.h: Regenerated.
19629         * lib/unictype/categ_Ps.h: Regenerated.
19630         * lib/unictype/categ_S.h: Regenerated.
19631         * lib/unictype/categ_Sk.h: Regenerated.
19632         * lib/unictype/categ_Sm.h: Regenerated.
19633         * lib/unictype/categ_So.h: Regenerated.
19634         * lib/unictype/categ_of.h: Regenerated.
19635         * lib/unictype/combining.h: Regenerated.
19636         * lib/unictype/ctype_alnum.h: Regenerated.
19637         * lib/unictype/ctype_alpha.h: Regenerated.
19638         * lib/unictype/ctype_graph.h: Regenerated.
19639         * lib/unictype/ctype_lower.h: Regenerated.
19640         * lib/unictype/ctype_print.h: Regenerated.
19641         * lib/unictype/ctype_punct.h: Regenerated.
19642         * lib/unictype/ctype_upper.h: Regenerated.
19643         * lib/unictype/decdigit.h: Regenerated.
19644         * lib/unictype/digit.h: Regenerated.
19645         * lib/unictype/mirror.h: Regenerated.
19646         * lib/unictype/numeric.h: Regenerated.
19647         * lib/unictype/pr_alphabetic.h: Regenerated.
19648         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19649         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19650         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19651         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19652         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19653         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19654         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19655         * lib/unictype/pr_combining.h: Regenerated.
19656         * lib/unictype/pr_dash.h: Regenerated.
19657         * lib/unictype/pr_decimal_digit.h: Regenerated.
19658         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19659         * lib/unictype/pr_deprecated.h: Regenerated.
19660         * lib/unictype/pr_diacritic.h: Regenerated.
19661         * lib/unictype/pr_extender.h: Regenerated.
19662         * lib/unictype/pr_format_control.h: Regenerated.
19663         * lib/unictype/pr_grapheme_base.h: Regenerated.
19664         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19665         * lib/unictype/pr_grapheme_link.h: Regenerated.
19666         * lib/unictype/pr_id_continue.h: Regenerated.
19667         * lib/unictype/pr_id_start.h: Regenerated.
19668         * lib/unictype/pr_ideographic.h: Regenerated.
19669         * lib/unictype/pr_ignorable_control.h: Regenerated.
19670         * lib/unictype/pr_lowercase.h: Regenerated.
19671         * lib/unictype/pr_math.h: Regenerated.
19672         * lib/unictype/pr_numeric.h: Regenerated.
19673         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19674         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19675         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19676         * lib/unictype/pr_other_id_continue.h: Regenerated.
19677         * lib/unictype/pr_other_lowercase.h: Regenerated.
19678         * lib/unictype/pr_other_math.h: Regenerated.
19679         * lib/unictype/pr_punctuation.h: Regenerated.
19680         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19681         * lib/unictype/pr_soft_dotted.h: Regenerated.
19682         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19683         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19684         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19685         * lib/unictype/pr_uppercase.h: Regenerated.
19686         * lib/unictype/pr_xid_continue.h: Regenerated.
19687         * lib/unictype/pr_xid_start.h: Regenerated.
19688         * lib/unictype/pr_zero_width.h: Regenerated.
19689         * lib/unictype/scripts.h: Regenerated.
19690         * lib/unictype/scripts_byname.gperf: Regenerated.
19691         * lib/unictype/sy_java_ident.h: Regenerated.
19692         * lib/unilbrk/lbrkprop1.h: Regenerated.
19693         * lib/unilbrk/lbrkprop2.h: Regenerated.
19694         * tests/unictype/test-categ_C.c: Regenerated.
19695         * tests/unictype/test-categ_Cf.c: Regenerated.
19696         * tests/unictype/test-categ_Cn.c: Regenerated.
19697         * tests/unictype/test-categ_L.c: Regenerated.
19698         * tests/unictype/test-categ_Ll.c: Regenerated.
19699         * tests/unictype/test-categ_Lm.c: Regenerated.
19700         * tests/unictype/test-categ_Lo.c: Regenerated.
19701         * tests/unictype/test-categ_Lu.c: Regenerated.
19702         * tests/unictype/test-categ_M.c: Regenerated.
19703         * tests/unictype/test-categ_Mc.c: Regenerated.
19704         * tests/unictype/test-categ_Me.c: Regenerated.
19705         * tests/unictype/test-categ_Mn.c: Regenerated.
19706         * tests/unictype/test-categ_N.c: Regenerated.
19707         * tests/unictype/test-categ_Nd.c: Regenerated.
19708         * tests/unictype/test-categ_Nl.c: Regenerated.
19709         * tests/unictype/test-categ_No.c: Regenerated.
19710         * tests/unictype/test-categ_P.c: Regenerated.
19711         * tests/unictype/test-categ_Pd.c: Regenerated.
19712         * tests/unictype/test-categ_Pe.c: Regenerated.
19713         * tests/unictype/test-categ_Pf.c: Regenerated.
19714         * tests/unictype/test-categ_Pi.c: Regenerated.
19715         * tests/unictype/test-categ_Po.c: Regenerated.
19716         * tests/unictype/test-categ_Ps.c: Regenerated.
19717         * tests/unictype/test-categ_S.c: Regenerated.
19718         * tests/unictype/test-categ_Sk.c: Regenerated.
19719         * tests/unictype/test-categ_Sm.c: Regenerated.
19720         * tests/unictype/test-categ_So.c: Regenerated.
19721         * tests/unictype/test-ctype_alnum.c: Regenerated.
19722         * tests/unictype/test-ctype_alpha.c: Regenerated.
19723         * tests/unictype/test-ctype_graph.c: Regenerated.
19724         * tests/unictype/test-ctype_lower.c: Regenerated.
19725         * tests/unictype/test-ctype_print.c: Regenerated.
19726         * tests/unictype/test-ctype_punct.c: Regenerated.
19727         * tests/unictype/test-ctype_upper.c: Regenerated.
19728         * tests/unictype/test-decdigit.h: Regenerated.
19729         * tests/unictype/test-digit.h: Regenerated.
19730         * tests/unictype/test-numeric.h: Regenerated.
19731         * tests/unictype/test-pr_alphabetic.c: Regenerated.
19732         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
19733         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
19734         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
19735         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
19736         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
19737         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
19738         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
19739         * tests/unictype/test-pr_combining.c: Regenerated.
19740         * tests/unictype/test-pr_dash.c: Regenerated.
19741         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
19742         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
19743         * tests/unictype/test-pr_deprecated.c: Regenerated.
19744         * tests/unictype/test-pr_diacritic.c: Regenerated.
19745         * tests/unictype/test-pr_extender.c: Regenerated.
19746         * tests/unictype/test-pr_format_control.c: Regenerated.
19747         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
19748         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
19749         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
19750         * tests/unictype/test-pr_id_continue.c: Regenerated.
19751         * tests/unictype/test-pr_id_start.c: Regenerated.
19752         * tests/unictype/test-pr_ideographic.c: Regenerated.
19753         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
19754         * tests/unictype/test-pr_lowercase.c: Regenerated.
19755         * tests/unictype/test-pr_math.c: Regenerated.
19756         * tests/unictype/test-pr_numeric.c: Regenerated.
19757         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
19758         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
19759         Regenerated.
19760         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
19761         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
19762         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
19763         * tests/unictype/test-pr_other_math.c: Regenerated.
19764         * tests/unictype/test-pr_punctuation.c: Regenerated.
19765         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
19766         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
19767         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
19768         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
19769         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
19770         * tests/unictype/test-pr_uppercase.c: Regenerated.
19771         * tests/unictype/test-pr_xid_continue.c: Regenerated.
19772         * tests/unictype/test-pr_xid_start.c: Regenerated.
19773         * tests/unictype/test-pr_zero_width.c: Regenerated.
19774
19775         Update to Unicode 5.1.0.
19776         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
19777         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
19778         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
19779         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
19780         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
19781         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
19782         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
19783         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
19784         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
19785         (nonspacing_table_ind): Update.
19786         * tests/uniwidth/test-uc_width2.sh: Update expected result.
19787
19788         Update to Unicode 5.1.0.
19789         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
19790         code transform.
19791         * lib/uniname/uniname.c (unicode_character_name,
19792         unicode_name_character): Add the range 0x1Fxxx to the code transform.
19793         * lib/uniname/uninames.h: Regenerated.
19794         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
19795
19796 2009-02-07  Bruno Haible  <bruno@clisp.org>
19797
19798         Merge gen-ctype and gen-lbrk into a single program.
19799         * lib/gen-uni-tables.c: New file, incorporating
19800         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
19801         Add directory prefixes to the names of the generated files.
19802         * lib/unictype/gen-ctype.c: Remove file.
19803         * lib/unilbrk/gen-lbrk.c: Remove file.
19804         * modules/gen-uni-tables: New file.
19805         * modules/unictype/gen-ctype: Remove file.
19806         * modules/unilbrk/gen-lbrk: Remove file.
19807
19808 2009-02-07  Bruno Haible  <bruno@clisp.org>
19809
19810         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
19811
19812         New module 'unistr/u32-strcoll'.
19813         * modules/unistr/u32-strcoll: New file.
19814         * lib/unistr/u32-strcoll.c: New file.
19815
19816         New module 'unistr/u16-strcoll'.
19817         * modules/unistr/u16-strcoll: New file.
19818         * lib/unistr/u16-strcoll.c: New file.
19819
19820         New module 'unistr/u8-strcoll'.
19821         * modules/unistr/u8-strcoll: New file.
19822         * lib/unistr/u8-strcoll.c: New file.
19823         * lib/unistr/u-strcoll.h: New file.
19824
19825 2009-02-07  Bruno Haible  <bruno@clisp.org>
19826
19827         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
19828         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19829         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19830         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
19831         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
19832         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
19833
19834 2009-02-07  Bruno Haible  <bruno@clisp.org>
19835
19836         Make 64-bit clean.
19837         * lib/unictype/gen-ctype.c (output_predicate, output_category,
19838         output_combclass, output_bidi_category, output_decimal_digit,
19839         output_digit, output_numeric, output_mirror, output_scripts,
19840         output_ident_category): Use proper width specifier in format strings.
19841
19842 2009-02-07  Bruno Haible  <bruno@clisp.org>
19843
19844         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
19845         failure behaviour.
19846
19847 2009-02-07  Jim Meyering  <meyering@redhat.com>
19848
19849         regex: avoid compilation failure with upcoming gcc-4.4
19850         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
19851         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
19852         "... error: integer overflow in preprocessor expression".
19853
19854 2009-02-05  Ben Pfaff  <blp@gnu.org>
19855
19856         Fix link errors on Windows when close module is used.
19857         * modules/close: Add $(LIB_CLOSE) to Link section.
19858         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
19859         $(LIB_CLOSE) on Windows.
19860
19861 2009-02-05  Jim Meyering  <meyering@redhat.com>
19862
19863         still avoid unused-parameter warnings, but do it cleanly
19864         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
19865         (get_fs_usage): Cast to void instead.
19866         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
19867         (dev_from_mount_options, read_file_system_list): Cast to void.
19868         Prompted by Bruno Haible.
19869
19870 2009-02-04  Jim Meyering  <meyering@redhat.com>
19871
19872         fsusage.c: correct copyright year
19873         * lib/fsusage.c: Reflect year in which the change is pushed into
19874
19875         avoid misc. warnings
19876         * lib/fsusage.c (UNUSED_PARAM): Define.
19877         (get_fs_usage): Mark parameter "disk" as unused.
19878         * lib/getugroups.c (getgrent): Use "void" in prototype.
19879         * lib/mountlist.c: Mark unused parameters.
19880         (read_file_system_list): Declare a local with "const".
19881         * lib/nanosleep.c (getnow): Declare static.
19882         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
19883
19884         dirfd: set errno upon failure
19885         * lib/dirfd.c: Include <errno.h>.
19886         Set errno to ENOTSUP when returning -1.
19887         * modules/dirfd (Depends-on): Add errno.
19888         Suggested by John Kodis <kodis@comcast.net>.
19889
19890 2009-02-01  Bruno Haible  <bruno@clisp.org>
19891
19892         Don't assume sizeof (long) >= sizeof (void *).
19893         * lib/memcmp.c: Include stdint.h.
19894         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
19895         srcp2 to 'const byte *'.
19896         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
19897         types to uintptr_t.
19898         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
19899         * modules/memcmp (Depends-on): Add stdint.
19900         Reported by Ozkan Sezer <sezeroz@gmail.com>.
19901
19902 2009-01-30  Eric Blake  <ebb9@byu.net>
19903
19904         fix more require-before-expand issues
19905         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
19906         expand, AC_PROG_AWK.
19907         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
19908
19909 2009-01-28  Eric Blake  <ebb9@byu.net>
19910
19911         version-etc: use consistent URL formatting
19912         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
19913         Improve formatting.  Use fputs for string without %.
19914
19915 2009-01-28  Jim Meyering  <meyering@redhat.com>
19916
19917         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
19918         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
19919         "underquoted definition of NAME" from autoconf-2.59.
19920
19921 2009-01-28  Bruno Haible  <bruno@clisp.org>
19922
19923         * doc/gnulib.texi: Add "Obsolete modules" to index.
19924
19925 2009-01-28  Jim Meyering  <meyering@redhat.com>
19926
19927         useless-if-before-free: recognize more variants
19928         * build-aux/useless-if-before-free: Also recognize e.g.,
19929         if (NULL != p) free (p);
19930
19931 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
19932
19933         test-getaddrinfo: skip (don't fail) this test when there's no network
19934         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
19935         on the presumption that it means you lack network access.
19936
19937 2009-01-26  Jim Meyering  <meyering@redhat.com>
19938
19939         fflush: avoid warnings on modern systems
19940         * lib/fflush.c (rpl_fflush): Move declarations of locals,
19941         pos and result, into scopes where they're used.
19942
19943 2009-01-26  Eric Blake  <ebb9@byu.net>
19944
19945         Silence warning reintroduced by recent extensions patch.
19946         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
19947         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
19948         autoconf.
19949
19950         Backport improved autoconf semantics of AC_DEFUN_ONCE.
19951         * m4/00gnulib.m4: New file.
19952         * gnulib-tool (func_get_filelist): Always use it.
19953         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
19954         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
19955
19956 2009-01-25  Bruno Haible  <bruno@clisp.org>
19957
19958         Make test-quotearg work on MacOS X and AIX.
19959         * tests/test-quotearg.sh: New file.
19960         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
19961         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
19962         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
19963         include <libintl.h>.
19964         (fake_locale): Remove variable.
19965         (gettext, dgettext, dcgettext): Remove functions.
19966         (main): Instead of setting a fake locale, set a real locale. Call
19967         textdomain and bindtextdomain.
19968         * modules/quotearg-tests (Files): Add the new files.
19969         (Depends-on): Add gettext, setenv, unsetenv.
19970         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
19971         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
19972         Augment TESTS_ENVIRONMENT.
19973
19974 2009-01-25  Bruno Haible  <bruno@clisp.org>
19975
19976         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
19977         fr_FR.ISO8859-1 locale on MacOS X.
19978         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
19979         ja_JP.eucJP locale on MacOS X.
19980         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
19981         zh_CN.GB18030 locale on MacOS X.
19982
19983 2009-01-25  Bruno Haible  <bruno@clisp.org>
19984
19985         Avoid link errors on MacOS X 10.3.
19986         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
19987         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19988
19989 2009-01-25  Bruno Haible  <bruno@clisp.org>
19990
19991         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
19992         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
19993         * modules/pipe (Files): Remove m4/posix_spawn.m4.
19994         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
19995         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
19996         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
19997         posix_spawnattr_init, posix_spawnattr_setsigmask,
19998         posix_spawnattr_setflags, posix_spawnattr_destroy.
19999
20000         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20001         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20002         * modules/execute (Files): Remove m4/posix_spawn.m4.
20003         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20004         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20005         posix_spawnattr_init, posix_spawnattr_setsigmask,
20006         posix_spawnattr_setflags, posix_spawnattr_destroy.
20007
20008 2009-01-25  Bruno Haible  <bruno@clisp.org>
20009
20010         * lib/glthread/threadlib.c: Include <stdlib.h>.
20011
20012 2009-01-25  Bruno Haible  <bruno@clisp.org>
20013
20014         * lib/glthread/threadlib.c (dummy): New declaration.
20015
20016 2009-01-25  Bruno Haible  <bruno@clisp.org>
20017
20018         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20019         multibyte characters also for the GB18030 encoding. Don't crash when
20020         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20021
20022 2009-01-25  Bruno Haible  <bruno@clisp.org>
20023
20024         Avoid redefining 'struct random_data' on OSF/1 5.1.
20025         * lib/stdlib.in.h: Include <random.h> if it exists.
20026         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20027         HAVE_RANDOM_H. Include <random.h> when testing whether
20028         'struct random_data' exists.
20029         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20030
20031 2009-01-25  Bruno Haible  <bruno@clisp.org>
20032
20033         Don't install charset.alias on MacOS X >= 10.3.
20034         * lib/localcharset.c (DARWIN7): New macro.
20035         (get_charset_aliases): Hardcode the result for Darwin7.
20036         * modules/localcharset (install-exec-local): Don't install
20037         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20038
20039 2009-01-25  Bruno Haible  <bruno@clisp.org>
20040
20041         Don't install charset.alias on mingw and Cygwin.
20042         * modules/localcharset (install-exec-local): Don't install
20043         charset.alias on mingw and Cygwin, if the file does not yet exist.
20044         The result for these platforms is hardcoded in localcharset.c.
20045
20046 2009-01-25  Bruno Haible  <bruno@clisp.org>
20047
20048         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20050         before requiring AC_USE_SYSTEM_EXTENSIONS.
20051
20052 2009-01-25  Jim Meyering  <meyering@redhat.com>
20053
20054         c-strtod: avoid warnings
20055         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20056         "assignment discards qualifiers from pointer target type" warnings.
20057
20058 2009-01-24  Bruno Haible  <bruno@clisp.org>
20059
20060         Add support for non-UTF-8 locales on MacOS X.
20061         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20062         canonical encodings. For Darwin 7 and newer, don't map traditional
20063         encodings to UTF-8.
20064         Reported by Vincent Lefevre <vincent@vinc17.org>
20065         at <http://savannah.gnu.org/bugs/?25235>.
20066
20067 2009-01-24  Bruno Haible  <bruno@clisp.org>
20068
20069         * doc/gnulib.texi (Obsolete modules): New section.
20070         Reported by Mike Frysinger <vapier@gentoo.org>.
20071
20072 2009-01-24  Bruno Haible  <bruno@clisp.org>
20073
20074         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20075         (%.dvi): New rule.
20076
20077 2009-01-24  Bruno Haible  <bruno@clisp.org>
20078
20079         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20080         Reported by Eric Blake.
20081
20082 2009-01-24  Bruno Haible  <bruno@clisp.org>
20083
20084         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20085         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20086         Reported by Gary V. Vaughan <gary@gnu.org>.
20087
20088 2009-01-24  Bruno Haible  <bruno@clisp.org>
20089
20090         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20091
20092 2009-01-23  Bruno Haible  <bruno@clisp.org>
20093
20094         Make c-strtod, c-strtold usable in libraries.
20095         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20096         (C_STRTOD): Call strdup instead of xstrdup.
20097         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20098         * modules/c-strtold (Depends-on): Likewise.
20099         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20100         * NEWS: Mention the change.
20101         Reported by Michael Gold <mgold@ncf.ca>.
20102
20103 2009-01-23  Jim Meyering  <meyering@redhat.com>
20104
20105         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20106         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20107         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20108
20109 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20110
20111         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20112         GNU CoreUtils.
20113         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20114         * modules/version-etc (Description): Update.
20115
20116 2009-01-22  Bruno Haible  <bruno@clisp.org>
20117
20118         Cache the C locale object.
20119         * lib/c-strtod.c (c_locale_cache): New variable.
20120         (c_locale): New function.
20121         (C_STRTOD): Use it, and don't call freelocale.
20122         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20123         Suggested by Paolo Bonzini.
20124
20125 2009-01-21  Bruno Haible  <bruno@clisp.org>
20126
20127         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20128         conditions other than overflow.
20129
20130 2009-01-21  Bruno Haible  <bruno@clisp.org>
20131
20132         * lib/c-strtod.c: Include errno.h.
20133         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20134         value from STRTOD_L and STRTOD.
20135
20136 2009-01-21  Bruno Haible  <bruno@clisp.org>
20137         and Jim Meyering  <meyering@redhat.com>
20138
20139         nanosleep: skip configure test (fail it) for apple universal builds
20140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20141         universal builds, assume that nanosleep does not work.
20142         * modules/nanosleep (Depends-on): Add multiarch.
20143
20144         mktime: skip configure test (fail it) for apple universal builds
20145         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20146         universal builds, assume that mktime does not work.
20147         * modules/mktime (Depends-on): Add multiarch.
20148
20149 2009-01-21  Eric Blake  <ebb9@byu.net>
20150
20151         multiarch: avoid expand-before-require warning
20152         * modules/multiarch (configure.ac): Require, rather than expand,
20153         gl_MULTIARCH.
20154         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20155         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20156         enforce that all clients require it.  Partial reversion of
20157         2008-12-29 patch.
20158
20159         error: avoid expand-before-require warning
20160         * modules/errno (configure.ac): Require, rather than expand,
20161         gl_HEADER_ERRNO_H.
20162         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20163         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20164         enforce that all clients require it.
20165
20166         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20167         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20168         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20169         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20170
20171 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20172
20173         Revert:
20174         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20175
20176         regex: do not depend on obsolete modules.
20177         * modules/regex: Remove memcmp and memmove.
20178
20179 2009-01-20  Bruno Haible  <bruno@clisp.org>
20180
20181         Make the 'link' module link on Windows NT 4.
20182         * lib/link.c (_WIN32_WINNT): Don't define.
20183         (CreateHardLinkFuncType): New type.
20184         (CreateHardLinkFunc, initialized): New variables.
20185         (initialize): New function.
20186         (link): Invoke CreateHardLink indirectly through the function pointer.
20187
20188 2009-01-20  Bruno Haible  <bruno@clisp.org>
20189
20190         Fix compilation failure on mingw.
20191         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20192
20193 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20194
20195         * doc/c-strtod.texi: Mention a couple of restrictions.
20196
20197 2009-01-20  Jim Meyering  <meyering@redhat.com>
20198
20199         gettimeofday: move more declarations out of functions
20200         * lib/gettimeofday.c: Move extern declarations of tzset and
20201         gmtime out of containing functions.  Prompted by Bruno Haible.
20202
20203 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20204
20205         regex: do not depend on obsolete modules.
20206         * modules/regex: Remove memcmp and memmove.
20207
20208 2009-01-19  Bruno Haible  <bruno@clisp.org>
20209
20210         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20211         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20212         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20213         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20214         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20215
20216 2009-01-19  Bruno Haible  <bruno@clisp.org>
20217
20218         * tests/test-link.c: Include <errno.h>.
20219         (main): Exit with code 77 when a hard link cannot be created due to
20220         the file system.
20221         * tests/test-link.sh: Skip test when a hard link cannot be created due
20222         to the file system.
20223         Suggested by Eric Blake.
20224
20225 2009-01-19  Martin Lambers  <marlam@marlam.de>
20226
20227         * modules/link-tests: New file.
20228         * tests/test-link.sh: New file.
20229         * tests/test-link.c: New file.
20230
20231 2009-01-19  Eric Blake  <ebb9@byu.net>
20232
20233         doc: mention another function added in cygwin 1.7.0
20234         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20235         Another new function in cygwin 1.7.
20236
20237 2009-01-19  Bruno Haible  <bruno@clisp.org>
20238
20239         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20240         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20241         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20242         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20243         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20244         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20245         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20246         * m4/md4.m4 (gl_MD4): Likewise.
20247         * m4/md5.m4 (gl_MD5): Likewise.
20248         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20249         * m4/sha1.m4 (gl_SHA1): Likewise.
20250         * m4/sha256.m4 (gl_SHA256): Likewise.
20251         * m4/sha512.m4 (gl_SHA512): Likewise.
20252
20253 2009-01-19  Bruno Haible  <bruno@clisp.org>
20254
20255         * modules/uniname/uniname-tests (Depends-on): Add progname.
20256         * tests/uniname/test-uninames.c: Include progname.h.
20257         (main): Call set_program_name.
20258
20259         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20260         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20261         (main): Call set_program_name.
20262
20263         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20264         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20265         (main): Call set_program_name.
20266
20267         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20268         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20269         (main): Call set_program_name.
20270
20271         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20272         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20273         (main): Call set_program_name.
20274
20275         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20276         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20277         (main): Call set_program_name.
20278
20279         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20280         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20281         (main): Call set_program_name.
20282
20283         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20284         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20285         (main): Call set_program_name.
20286
20287         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20288         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20289         (main): Call set_program_name.
20290
20291 2009-01-19  Eric Blake  <ebb9@byu.net>
20292
20293         test-unistd: test previous patch
20294         * tests/test-unistd.c: Test *_FILENO macros.
20295
20296         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20297         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20298         Guarantee a definition.
20299         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20300         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20301         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20302         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20303         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20304         Likewise.
20305         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20306         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20307         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20308         Likewise.
20309         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20310         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20311         (STDERR_FILENO): Likewise.
20312         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20313         (STDERR_FILENO): Likewise.
20314         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20315         (STDERR_FILENO): Likewise.
20316         Reported by Elbert Pol.
20317
20318 2009-01-19  Eric Blake  <ebb9@byu.net>
20319
20320         doc: mention more functions added in cygwin 1.7.0
20321         * doc/posix-functions/abort.texi (abort): Update wording related
20322         to cygwin.
20323         * doc/posix-functions/daylight.texi (daylight): Likewise.
20324         * doc/posix-functions/optarg.texi (optarg): Likewise.
20325         * doc/posix-functions/optarg.texi (opterr): Likewise.
20326         * doc/posix-functions/optarg.texi (optind): Likewise.
20327         * doc/posix-functions/optarg.texi (optopt): Likewise.
20328         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20329         worked in 1.5.x, and was withdrawn in 1.7.
20330         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20331         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20332         cygwin versions.
20333         * doc/posix-functions/perror.texi (perror): Likewise.
20334         * doc/posix-functions/printf.texi (printf): Likewise.
20335         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20336         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20337         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20338         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20339         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20340         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20341         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20342         Likewise.
20343         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20344         Likewise.
20345         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20346         this function.
20347         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20348         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20349         Likewise.
20350         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20351         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20352         * doc/posix-functions/confstr.texi (confstr): Likewise.
20353         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20354         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20355         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20356         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20357         * doc/posix-functions/fputws.texi (fputws): Likewise.
20358         * doc/posix-functions/fwide.texi (fwide): Likewise.
20359         * doc/posix-functions/getwc.texi (getwc): Likewise.
20360         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20361         * doc/posix-functions/putwc.texi (putwc): Likewise.
20362         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20363         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20364         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20365         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20366         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20367         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20368         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20369         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20370         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20371         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20372         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20373
20374 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20375
20376         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20377         * lib/ioctl.c: Include <sys/ioctl.h>.
20378
20379 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20380
20381         * modules/getdate-tests (Depends-on): Add progname.
20382         * tests/test-getdate.c: Use progname module, to avoid link errors
20383         on non-glibc systems.
20384
20385 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20386
20387         * modules/filenamecat-tests (Depends-on): Add progname.
20388         * modules/fstrcmp-tests (Depends-on): Likewise.
20389
20390         * tests/test-filenamecat.c: Use progname module, to avoid link
20391         errors on non-glibc systems.
20392         * tests/test-fstrcmp.c: Likewise.
20393
20394 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20395
20396         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20397         * lib/gettimeofday.c: Move extern declaration out of function.
20398
20399 2009-01-18  Bruno Haible  <bruno@clisp.org>
20400
20401         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20402         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20403         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20404
20405 2009-01-18  Bruno Haible  <bruno@clisp.org>
20406
20407         * lib/strftime.c (MEMPCPY): Remove unused macro.
20408         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20409
20410 2009-01-18  Martin Lambers  <marlam@marlam.de>
20411
20412         New module 'link'.
20413         * lib/unistd.in.h (link): New declaration.
20414         * lib/link.c: New file.
20415         * m4/link.m4: New file.
20416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20417         HAVE_LINK.
20418         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20419         * modules/link: New file.
20420         * doc/posix-functions/link.texi: Mention the new module.
20421
20422 2009-01-18  Bruno Haible  <bruno@clisp.org>
20423
20424         * tests/test-avltree_list.c (main): Call set_program_name.
20425         * tests/test-avltree_oset.c (main): Likewise.
20426         * tests/test-obstack-printf.c: Include progname.h.
20427         (main): Call set_program_name.
20428         * tests/test-quotearg.c: Include progname.h.
20429         (main): Call set_program_name.
20430         * tests/test-xmemdup0.c: Include progname.h.
20431         (main): Call set_program_name.
20432
20433 2009-01-18  Bruno Haible  <bruno@clisp.org>
20434
20435         New module 'alphasort'.
20436         * lib/dirent.in.h (alphasort): New declaration.
20437         * lib/alphasort.c: New file, from glibc with modifications.
20438         * m4/alphasort.m4: New file.
20439         * modules/alphasort: New file.
20440         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20441         HAVE_ALPHASORT.
20442         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20443         HAVE_ALPHASORT.
20444         * doc/posix-functions/alphasort.texi: Mention the new module and the
20445         portability problems.
20446
20447 2009-01-18  Bruno Haible  <bruno@clisp.org>
20448
20449         New module 'scandir'.
20450         * lib/dirent.in.h (scandir): New declaration.
20451         * lib/scandir.c: New file, from glibc with modifications.
20452         * m4/scandir.m4: New file.
20453         * modules/scandir: New file.
20454         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20455         HAVE_SCANDIR.
20456         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20457         HAVE_SCANDIR.
20458         * doc/posix-functions/scandir.texi: Mention the new module and the
20459         portability problems.
20460
20461 2009-01-17  Bruno Haible  <bruno@clisp.org>
20462
20463         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20464         Update documentation.
20465         (func_remove_suffix): Escape all dots in the suffix. Update
20466         documentation.
20467         (func_filter_filelist): Update documentation.
20468         Reported by Ralf Wildenhues.
20469
20470 2009-01-17  Bruno Haible  <bruno@clisp.org>
20471
20472         * modules/dprintf-posix-tests: New file.
20473         * tests/test-dprintf-posix.sh: New file.
20474         * tests/test-dprintf-posix.c: New file.
20475
20476         New modules 'dprintf', 'dprintf-posix'.
20477         * lib/stdio.in.h (dprintf): New declaration.
20478         * lib/dprintf.c: New file.
20479         * m4/dprintf.m4: New file.
20480         * m4/dprintf-posix.m4: New file.
20481         * modules/dprintf: New file.
20482         * modules/dprintf-posix: New file.
20483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20484         HAVE_DPRINTF, REPLACE_DPRINTF.
20485         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20486         HAVE_DPRINTF, REPLACE_DPRINTF.
20487         * doc/posix-functions/dprintf.texi: Mention the new modules.
20488
20489 2009-01-17  Bruno Haible  <bruno@clisp.org>
20490
20491         * modules/vdprintf-posix-tests: New file.
20492         * tests/test-vdprintf-posix.sh: New file.
20493         * tests/test-vdprintf-posix.c: New file.
20494
20495         New modules 'vdprintf', 'vdprintf-posix'.
20496         * lib/stdio.in.h (vdprintf): New declaration.
20497         * lib/vdprintf.c: New file.
20498         * m4/vdprintf.m4: New file.
20499         * m4/vdprintf-posix.m4: New file.
20500         * modules/vdprintf: New file.
20501         * modules/vdprintf-posix: New file.
20502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20503         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20504         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20505         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20506         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20507
20508 2009-01-17  Bruno Haible  <bruno@clisp.org>
20509
20510         Fix replacement of fopen on mingw.
20511         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20512         mingw.
20513
20514 2009-01-17  Bruno Haible  <bruno@clisp.org>
20515
20516         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20517         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20518
20519 2009-01-17  Bruno Haible  <bruno@clisp.org>
20520
20521         Avoid test-fflush2.sh failure on mingw.
20522         * tests/test-fflush2.c: Include binary-io.h.
20523         (main): Put standard input into binary mode.
20524         * modules/fflush-tests (Depends-on): Add binary-io.
20525
20526 2009-01-17  Bruno Haible  <bruno@clisp.org>
20527
20528         * lib/wchar.in.h: In another particular situation, include only the
20529         system's <wchar.h> file.
20530         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20531         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20532         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20533
20534 2009-01-17  Bruno Haible  <bruno@clisp.org>
20535
20536         Support for stripping executables in --enable-relocatable.
20537         * build-aux/install-reloc: Expect one more argument, or an environment
20538         variable RELOC_STRIP_PROG. If set, strip the destination program and
20539         its wrapper.
20540         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20541         RELOC_STRIP_PROG.
20542         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20543         to set RELOCATABLE_STRIP.
20544         * NEWS: Mention the new Makefile requirement.
20545
20546 2009-01-17  Bruno Haible  <bruno@clisp.org>
20547
20548         * build-aux/install-reloc: Remove debugging information left over by
20549         C compiler on MacOS X.
20550
20551 2009-01-17  Bruno Haible  <bruno@clisp.org>
20552
20553         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20554         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20555         _NSGetExecutablePath.
20556
20557 2009-01-16  Jim Meyering  <meyering@redhat.com>
20558
20559         strerror: avoid warnings about discarding "const"
20560         * lib/strerror.c (rpl_strerror): Instead of returning a const
20561         string from each and every "case", use a variable, and add a single
20562         cast after the switch.
20563
20564 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20565
20566         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20567
20568 2009-01-16  Bruno Haible  <bruno@clisp.org>
20569
20570         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20571         array initializer syntax that also works in C++ mode.
20572         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20573
20574 2009-01-16  Jim Meyering  <meyering@redhat.com>
20575
20576         poll: suppress a warning
20577         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20578         to ignore "...unsigned expression < 0 is always false" warnings.
20579
20580 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20581
20582         poll: remove declarations of unused variables
20583         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20584         sockbuf and optlen.
20585
20586 2009-01-15  Bruno Haible  <bruno@clisp.org>
20587
20588         Make fflush-after-ungetc POSIX compliant on BSD systems.
20589         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20590         (clear_ungetc_buffer): Implement also for other systems.
20591         (rpl_fflush): On glibc systems, invoke
20592         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20593         clear_ungetc_buffer after fetching the stream's position, not before.
20594
20595 2009-01-15  Bruno Haible  <bruno@clisp.org>
20596
20597         Make fflush-after-ungetc POSIX compliant on glibc systems.
20598         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20599         after ungetc.
20600         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20601         (rpl_fflush): On glibc systems, simply call the system's fflush
20602         function after clearing the ungetc buffer.
20603         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20604         Instead, lseek only to the end of file, then use the system's fseeko
20605         for the rest. On glibc systems, reset the EOF indicator bit.
20606
20607 2009-01-15  Jim Meyering  <meyering@redhat.com>
20608
20609         openmp.m4: revert quote-adding change, for portability to older autoconf
20610         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20611         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20612         Simon Josefsson noticed the problem when using autoconf-2.61.
20613
20614 2009-01-15  Bruno Haible  <bruno@clisp.org>
20615
20616         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
20617         * tests/test-fflush2.c (ASSERT): Always fail.
20618         (main): Add two tests for fflush() after ungetc(), taking into account
20619         the Austin Group's clarification.
20620         Suggested by Eric Blake.
20621
20622 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
20623
20624         mktime.m4: remove K&R-style function prototypes
20625         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
20626         for the Sun C++ compiler.
20627
20628 2009-01-14  Bruno Haible  <bruno@clisp.org>
20629
20630         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
20631         while including <wchar.h>.
20632         * lib/wchar.in.h: In two particular situations on HP-UX, include only
20633         the system's <wchar.h> file.
20634         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20635
20636 2009-01-14  Bruno Haible  <bruno@clisp.org>
20637
20638         * m4/csharp.m4: Don't mention gettext on the serial number line.
20639         * m4/csharpexec.m4: Likewise.
20640         * m4/eaccess.m4: Likewise.
20641         * m4/javaexec.m4: Likewise.
20642         * m4/sig_atomic_t.m4: Likewise.
20643         * m4/tmpdir.m4: Likewise.
20644         * m4/intldir.m4: Bump gettext version.
20645         * m4/lib-ld.m4: Likewise.
20646
20647 2009-01-14  Bruno Haible  <bruno@clisp.org>
20648
20649         * lib/progname.c (set_program_name): Add more comments.
20650         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20651
20652 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20653
20654         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20655         were sys/stat.h does not define it.
20656
20657 2009-01-14  Jim Meyering  <meyering@redhat.com>
20658
20659         many *.m4 files: improve m4 quoting
20660         99% of this change was performed by running the following commands:
20661         git ls-files | grep '\.m4$' | xargs perl -pi \
20662           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20663           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20664           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20665           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20666         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20667         The remainder were to add Copyright dates, increment serial numbers,
20668         undo some changes in comments, exclude m4/intl.m4, and add quotes
20669         around the "1" in ",1" where the unusual spacing prohibited the
20670         above regexps from doing the job.  For more details, see
20671         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20672         * m4/acl.m4: Modified.
20673         * m4/afs.m4: Likewise.
20674         * m4/alloca.m4: Likewise.
20675         * m4/argp.m4: Likewise.
20676         * m4/argz.m4: Likewise.
20677         * m4/atexit.m4: Likewise.
20678         * m4/bison-i18n.m4: Likewise.
20679         * m4/bison.m4: Likewise.
20680         * m4/byteswap.m4: Likewise.
20681         * m4/c-stack.m4: Likewise.
20682         * m4/c-strtod.m4: Likewise.
20683         * m4/calloc.m4: Likewise.
20684         * m4/canonicalize-lgpl.m4: Likewise.
20685         * m4/chown.m4: Likewise.
20686         * m4/clock_time.m4: Likewise.
20687         * m4/codeset.m4: Likewise.
20688         * m4/copy-file.m4: Likewise.
20689         * m4/csharp.m4: Likewise.
20690         * m4/csharpcomp.m4: Likewise.
20691         * m4/csharpexec.m4: Likewise.
20692         * m4/d-ino.m4: Likewise.
20693         * m4/d-type.m4: Likewise.
20694         * m4/dirfd.m4: Likewise.
20695         * m4/double-slash-root.m4: Likewise.
20696         * m4/eaccess.m4: Likewise.
20697         * m4/eealloc.m4: Likewise.
20698         * m4/environ.m4: Likewise.
20699         * m4/errno_h.m4: Likewise.
20700         * m4/euidaccess.m4: Likewise.
20701         * m4/execute.m4: Likewise.
20702         * m4/fatal-signal.m4: Likewise.
20703         * m4/fchdir.m4: Likewise.
20704         * m4/fcntl_h.m4: Likewise.
20705         * m4/fileblocks.m4: Likewise.
20706         * m4/filenamecat.m4: Likewise.
20707         * m4/findprog.m4: Likewise.
20708         * m4/flexmember.m4: Likewise.
20709         * m4/fnmatch.m4: Likewise.
20710         * m4/fopen.m4: Likewise.
20711         * m4/fpending.m4: Likewise.
20712         * m4/fprintf-posix.m4: Likewise.
20713         * m4/free.m4: Likewise.
20714         * m4/frexp.m4: Likewise.
20715         * m4/frexpl.m4: Likewise.
20716         * m4/fsusage.m4: Likewise.
20717         * m4/ftruncate.m4: Likewise.
20718         * m4/gc-camellia.m4: Likewise.
20719         * m4/gc-random.m4: Likewise.
20720         * m4/gc.m4: Likewise.
20721         * m4/getaddrinfo.m4: Likewise.
20722         * m4/getcwd-abort-bug.m4: Likewise.
20723         * m4/getcwd-path-max.m4: Likewise.
20724         * m4/getdate.m4: Likewise.
20725         * m4/getdomainname.m4: Likewise.
20726         * m4/getgroups.m4: Likewise.
20727         * m4/gethostname.m4: Likewise.
20728         * m4/gethrxtime.m4: Likewise.
20729         * m4/getline.m4: Likewise.
20730         * m4/getloadavg.m4: Likewise.
20731         * m4/getndelim2.m4: Likewise.
20732         * m4/getpass.m4: Likewise.
20733         * m4/gettext.m4: Likewise.
20734         * m4/gettime.m4: Likewise.
20735         * m4/gettimeofday.m4: Likewise.
20736         * m4/gnulib-common.m4: Likewise.
20737         * m4/group-member.m4: Likewise.
20738         * m4/host-os.m4: Likewise.
20739         * m4/iconv.m4: Likewise.
20740         * m4/iconv_open.m4: Likewise.
20741         * m4/inet_ntop.m4: Likewise.
20742         * m4/inet_pton.m4: Likewise.
20743         * m4/inline.m4: Likewise.
20744         * m4/intldir.m4: Likewise.
20745         * m4/intlmacosx.m4: Likewise.
20746         * m4/intmax.m4: Likewise.
20747         * m4/intmax_t.m4: Likewise.
20748         * m4/inttypes.m4: Likewise.
20749         * m4/inttypes_h.m4: Likewise.
20750         * m4/inttypes-pri.m4: Likewise.
20751         * m4/isapipe.m4: Likewise.
20752         * m4/isnand.m4: Likewise.
20753         * m4/isnanf.m4: Likewise.
20754         * m4/isnanl.m4: Likewise.
20755         * m4/javacomp.m4: Likewise.
20756         * m4/javaexec.m4: Likewise.
20757         * m4/jm-winsz1.m4: Likewise.
20758         * m4/jm-winsz2.m4: Likewise.
20759         * m4/lchown.m4: Likewise.
20760         * m4/lcmessage.m4: Likewise.
20761         * m4/ldexpl.m4: Likewise.
20762         * m4/lib-ld.m4: Likewise.
20763         * m4/lib-link.m4: Likewise.
20764         * m4/libsigsegv.m4: Likewise.
20765         * m4/link-follow.m4: Likewise.
20766         * m4/localcharset.m4: Likewise.
20767         * m4/locale-fr.m4: Likewise.
20768         * m4/locale-ja.m4: Likewise.
20769         * m4/locale-tr.m4: Likewise.
20770         * m4/locale-zh.m4: Likewise.
20771         * m4/lock.m4: Likewise.
20772         * m4/longlong.m4: Likewise.
20773         * m4/ls-mntd-fs.m4: Likewise.
20774         * m4/lstat.m4: Likewise.
20775         * m4/malloc.m4: Likewise.
20776         * m4/mathl.m4: Likewise.
20777         * m4/mbrtowc.m4: Likewise.
20778         * m4/mbstate_t.m4: Likewise.
20779         * m4/mbswidth.m4: Likewise.
20780         * m4/memchr.m4: Likewise.
20781         * m4/memcmp.m4: Likewise.
20782         * m4/memcpy.m4: Likewise.
20783         * m4/memmem.m4: Likewise.
20784         * m4/memmove.m4: Likewise.
20785         * m4/mempcpy.m4: Likewise.
20786         * m4/memrchr.m4: Likewise.
20787         * m4/memset.m4: Likewise.
20788         * m4/minmax.m4: Likewise.
20789         * m4/mkdir-slash.m4: Likewise.
20790         * m4/mkdtemp.m4: Likewise.
20791         * m4/mktime.m4: Likewise.
20792         * m4/mmap-anon.m4: Likewise.
20793         * m4/mountlist.m4: Likewise.
20794         * m4/nanosleep.m4: Likewise.
20795         * m4/nls.m4: Likewise.
20796         * m4/nocrash.m4: Likewise.
20797         * m4/open.m4: Likewise.
20798         * m4/openat.m4: Likewise.
20799         * m4/openmp.m4: Likewise.
20800         * m4/pathmax.m4: Likewise.
20801         * m4/perl.m4: Likewise.
20802         * m4/physmem.m4: Likewise.
20803         * m4/pipe.m4: Likewise.
20804         * m4/po.m4: Likewise.
20805         * m4/poll.m4: Likewise.
20806         * m4/posixtm.m4: Likewise.
20807         * m4/posixver.m4: Likewise.
20808         * m4/printf-frexp.m4: Likewise.
20809         * m4/printf-frexpl.m4: Likewise.
20810         * m4/printf-posix.m4: Likewise.
20811         * m4/printf-posix-rpl.m4: Likewise.
20812         * m4/printf.m4: Likewise.
20813         * m4/progtest.m4: Likewise.
20814         * m4/putenv.m4: Likewise.
20815         * m4/readline.m4: Likewise.
20816         * m4/readlink.m4: Likewise.
20817         * m4/readutmp.m4: Likewise.
20818         * m4/realloc.m4: Likewise.
20819         * m4/regex.m4: Likewise.
20820         * m4/relocatable.m4: Likewise.
20821         * m4/relocatable-lib.m4: Likewise.
20822         * m4/rename-dest-slash.m4: Likewise.
20823         * m4/rename.m4: Likewise.
20824         * m4/rmdir-errno.m4: Likewise.
20825         * m4/rmdir.m4: Likewise.
20826         * m4/roundf.m4: Likewise.
20827         * m4/roundl.m4: Likewise.
20828         * m4/rpmatch.m4: Likewise.
20829         * m4/save-cwd.m4: Likewise.
20830         * m4/selinux-selinux-h.m4: Likewise.
20831         * m4/setenv.m4: Likewise.
20832         * m4/settime.m4: Likewise.
20833         * m4/sig2str.m4: Likewise.
20834         * m4/sig_atomic_t.m4: Likewise.
20835         * m4/signalblocking.m4: Likewise.
20836         * m4/signbit.m4: Likewise.
20837         * m4/sigpipe.m4: Likewise.
20838         * m4/sockets.m4: Likewise.
20839         * m4/sockpfaf.m4: Likewise.
20840         * m4/st_dm_mode.m4: Likewise.
20841         * m4/stat-time.m4: Likewise.
20842         * m4/stdbool.m4: Likewise.
20843         * m4/stdint.m4: Likewise.
20844         * m4/stdint_h.m4: Likewise.
20845         * m4/stpcpy.m4: Likewise.
20846         * m4/stpncpy.m4: Likewise.
20847         * m4/strcase.m4: Likewise.
20848         * m4/strchrnul.m4: Likewise.
20849         * m4/strcspn.m4: Likewise.
20850         * m4/strdup.m4: Likewise.
20851         * m4/strftime.m4: Likewise.
20852         * m4/strndup.m4: Likewise.
20853         * m4/strnlen.m4: Likewise.
20854         * m4/strpbrk.m4: Likewise.
20855         * m4/strptime.m4: Likewise.
20856         * m4/strsep.m4: Likewise.
20857         * m4/strtod.m4: Likewise.
20858         * m4/strtoimax.m4: Likewise.
20859         * m4/strtok_r.m4: Likewise.
20860         * m4/strtol.m4: Likewise.
20861         * m4/strtoll.m4: Likewise.
20862         * m4/strtoul.m4: Likewise.
20863         * m4/strtoull.m4: Likewise.
20864         * m4/strtoumax.m4: Likewise.
20865         * m4/strverscmp.m4: Likewise.
20866         * m4/threadlib.m4: Likewise.
20867         * m4/timegm.m4: Likewise.
20868         * m4/tm_gmtoff.m4: Likewise.
20869         * m4/tmpdir.m4: Likewise.
20870         * m4/tmpfile.m4: Likewise.
20871         * m4/tzset.m4: Likewise.
20872         * m4/uintmax_t.m4: Likewise.
20873         * m4/unlinkdir.m4: Likewise.
20874         * m4/unlocked-io.m4: Likewise.
20875         * m4/uptime.m4: Likewise.
20876         * m4/userspec.m4: Likewise.
20877         * m4/utimbuf.m4: Likewise.
20878         * m4/utime.m4: Likewise.
20879         * m4/utimes-null.m4: Likewise.
20880         * m4/utimes.m4: Likewise.
20881         * m4/vararrays.m4: Likewise.
20882         * m4/vasnprintf.m4: Likewise.
20883         * m4/vfprintf-posix.m4: Likewise.
20884         * m4/vprintf-posix.m4: Likewise.
20885         * m4/wait-process.m4: Likewise.
20886         * m4/wchar_t.m4: Likewise.
20887         * m4/wint_t.m4: Likewise.
20888         * m4/write-any-file.m4: Likewise.
20889         * m4/yield.m4: Likewise.
20890
20891 2009-01-13  Bruno Haible  <bruno@clisp.org>
20892
20893         Avoid test-copy-file.sh failures when ACL support insufficient.
20894         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
20895         TESTS_ENVIRONMENT.
20896         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
20897         Reported by Jim Meyering.
20898
20899 2009-01-13  Bruno Haible  <bruno@clisp.org>
20900
20901         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
20902         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
20903         * modules/unistdio/u8-printf-parse (Files): Likewise.
20904         * modules/unistdio/u32-printf-parse (Files): Likewise.
20905         * modules/unistdio/ulc-printf-parse (Files): Likewise.
20906
20907 2009-01-13  Simon Josefsson  <simon@josefsson.org>
20908
20909         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
20910         and m4/inttypes_h.m4 too.
20911
20912 2009-01-12  Eric Blake  <ebb9@byu.net>
20913
20914         tests: IRIX 6.2 cc can't compile -0.0 into .data
20915         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
20916         rather than at compile-time.
20917         * tests/test-floorl.c (minus_zero): Likewise.
20918         * tests/test-frexpl.c (minus_zero): Likewise.
20919         * tests/test-isnan.c (minus_zerol): Likewise.
20920         * tests/test-isnanl.h (minus_zero): Likewise.
20921         * tests/test-ldexpl.c (minus_zero): Likewise.
20922         * tests/test-roundl.c (minus_zero): Likewise.
20923         * tests/test-signbit.c (minus_zerol): Likewise.
20924         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20925         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20926         * tests/test-truncl.c (minus_zero): Likewise.
20927         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20928         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20929         Reported by Tom G. Christensen and Nelson H. F. Beebe.
20930
20931 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20932
20933         regex: fix glibc bug 9697
20934         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
20935         handling.
20936
20937 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20938
20939         regex: fix glibc bug 697
20940         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
20941         being NULL also if there are no backreferences.
20942
20943 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
20944
20945         regex: merge glibc changes
20946         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
20947         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
20948         re_string_skip_chars, re_string_reconstruct): Likewise.
20949         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
20950
20951 2009-01-07  Jim Meyering  <meyering@redhat.com>
20952
20953         poll: filter through cppi
20954         * lib/poll.c: Indent cpp directives to reflect nesting.
20955
20956 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
20957
20958         poll: don't return uninitialized
20959         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
20960
20961 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
20962
20963         avoid compile failure on AIX 6.1
20964         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
20965         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
20966
20967 2009-01-04  Jim Meyering  <meyering@redhat.com>
20968
20969         remove duplicate inclusion of <stdio.h>
20970         * tests/test-fprintf-posix.c: Likewise.
20971         * tests/test-printf-posix.c: Likewise.
20972         * tests/test-snprintf-posix.c: Likewise.
20973         * tests/test-sprintf-posix.c: Likewise.
20974         * tests/test-vasprintf-posix.c: Likewise.
20975         * tests/test-vfprintf-posix.c: Likewise.
20976         * tests/test-vprintf-posix.c: Likewise.
20977         * tests/test-vsnprintf-posix.c: Likewise.
20978         * tests/test-vsprintf-posix.c: Likewise.
20979
20980 2009-01-03  Jim Meyering  <meyering@redhat.com>
20981
20982         gnulib-tool: fix sed-based filtering
20983         * gnulib-tool (func_filter_filelist): Remove extra backslash
20984         in sed_fff_filter definition.
20985
20986 2009-01-02  Jim Meyering  <meyering@redhat.com>
20987
20988         strftime: avoid compilation failure on Solaris 2.6
20989         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
20990         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
20991         Don't #define mbrlen or mbsinit, since now they're guaranteed to
20992         be available.  Reported by Tom G. Christensen.  Details in
20993         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
20994
20995 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20996             Bruno Haible  <bruno@clisp.org>
20997
20998         Speed up gnulib-tool by doing more string processing through shell
20999         built-ins.
21000         * gnulib-tool (fast_func_append): New variable.
21001         (func_remove_prefix, func_remove_suffix): New functions.
21002         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21003         (func_filter_filelist): New function.
21004         (func_get_dependencies): Use func_remove_suffix instead of sed.
21005         (func_get_automake_snippet): Use func_filter_filelist instead of a
21006         subshell and sed invocation.
21007
21008 2009-01-01  Bruno Haible  <bruno@clisp.org>
21009
21010         Fix a security bug.
21011         * gnulib-tool (func_import, import, update): Don't allow the characters
21012         '"', '$', '`', '\' in macro arguments that become part of commands that
21013         are evaluated.
21014
21015 2009-01-01  Bruno Haible  <bruno@clisp.org>
21016
21017         * gnulib-tool (func_reset_sigpipe): Add more comments.
21018
21019 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21020
21021         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21022         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21023         already know the answer.
21024
21025 2009-01-01  Jim Meyering  <meyering@redhat.com>
21026
21027         * lib/version-etc.c (version_etc_va): Update copyright year.
21028
21029 2008-12-30  Bruno Haible  <bruno@clisp.org>
21030
21031         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21032         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21033         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21034
21035 2008-12-29  Eric Blake  <ebb9@byu.net>
21036
21037         multiarch: avoid autoconf AC_REQUIRE bug
21038         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21039         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21040         2.63 and older.
21041         Reported by Bruno Haible, and analyzed in
21042         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21043
21044 2008-12-29  Bruno Haible  <bruno@clisp.org>
21045
21046         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21047         files in subdirectories correctly.
21048         Reported by Ralf Wildenhues.
21049
21050 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21051
21052         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21053         rather than 'join FILE -', for Solaris join.
21054
21055 2008-12-29  Bruno Haible  <bruno@clisp.org>
21056
21057         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21058         quoting.
21059         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21060         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21061         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21062         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21063         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21064         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21065         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21066         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21067         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21068         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21069         * m4/nls.m4 (AM_NLS): Likewise.
21070         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21071         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21072         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21073         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21074         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21075         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21076         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21077         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21078         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21079         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21080         * m4/xsize.m4 (gl_XSIZE): Likewise.
21081         Suggested by Jim Meyering.
21082
21083 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21084
21085         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21086         * lib/parse-duration.c: use a switch instead of cascading if's.
21087
21088 2008-12-29  Eric Blake  <ebb9@byu.net>
21089
21090         wchar.h: supply WEOF on Irix 5.3
21091         * lib/wchar.in.h (wint_t): Also supply WEOF.
21092         * lib/wctype.in.h (wint_t): Likewise.
21093         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21094         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21095         Reported by Tom G. Christensen.
21096
21097 2008-12-26  Bruno Haible  <bruno@clisp.org>
21098
21099         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21100         i486, i586, i686.
21101
21102 2008-12-26  Bruno Haible  <bruno@clisp.org>
21103
21104         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21105
21106 2008-12-26  Bruno Haible  <bruno@clisp.org>
21107
21108         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21109         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21110         not __STDC_CONSTANT_MACROS.
21111         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21112
21113 2008-12-25  Bruno Haible  <bruno@clisp.org>
21114
21115         Add support for universal builds to vasnprintf.
21116         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21117         universal builds, guess no.
21118         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21119         * modules/vasprintf-posix (Depends-on): Likewise.
21120         * modules/fprintf-posix (Depends-on): Likewise.
21121         * modules/vfprintf-posix (Depends-on): Likewise.
21122         * modules/snprintf-posix (Depends-on): Likewise.
21123         * modules/vsnprintf-posix (Depends-on): Likewise.
21124         * modules/sprintf-posix (Depends-on): Likewise.
21125         * modules/vsprintf-posix (Depends-on): Likewise.
21126         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21127         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21128         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21129         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21130         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21131         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21132         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21133
21134         Add support for universal builds to <inttypes.h>.
21135         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21136         _SCNu64_PREFIX): In Apple
21137         universal builds, define directly, using _LP64.
21138         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21139         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21140         * modules/inttypes (Depends-on): Add multiarch.
21141         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21142
21143         Add support for universal builds to <stdint.h>.
21144         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21145         universal builds, define directly, using _LP64.
21146         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21147         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21148         and size_t.
21149         * modules/stdint (Depends-on): Add multiarch.
21150         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21151
21152         New module 'multiarch'.
21153         * modules/multiarch: New file.
21154         * m4/multiarch.m4: New file.
21155
21156 2008-12-25  Bruno Haible  <bruno@clisp.org>
21157
21158         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21159
21160 2008-12-25  Bruno Haible  <bruno@clisp.org>
21161
21162         * modules/btowc (License): Relicense under LGPLv2+.
21163         * modules/mbsinit (License): Likewise.
21164         * modules/mbrtowc (License): Likewise.
21165         * modules/wcrtomb (License): Likewise.
21166         * modules/streq (License): Likewise.
21167         Reported by David Lutterkort <lutter@redhat.com>.
21168
21169 2008-12-23  Bruno Haible  <bruno@clisp.org>
21170
21171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21172
21173 2008-12-23  Bruno Haible  <bruno@clisp.org>
21174
21175         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21177         GETADDRINFO_LIB, not in LIBS.
21178         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21179         * modules/canon-host (Link): Likewise.
21180         * NEWS: Mention the change.
21181         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21182         GETADDRINFO_LIB.
21183
21184 2008-12-22  Bruno Haible  <bruno@clisp.org>
21185
21186         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21187         * doc/posix-functions/iswalpha_l.texi: Likewise.
21188         * doc/posix-functions/iswblank_l.texi: Likewise.
21189         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21190         * doc/posix-functions/iswctype_l.texi: Likewise.
21191         * doc/posix-functions/iswdigit_l.texi: Likewise.
21192         * doc/posix-functions/iswgraph_l.texi: Likewise.
21193         * doc/posix-functions/iswlower_l.texi: Likewise.
21194         * doc/posix-functions/iswprint_l.texi: Likewise.
21195         * doc/posix-functions/iswpunct_l.texi: Likewise.
21196         * doc/posix-functions/iswspace_l.texi: Likewise.
21197         * doc/posix-functions/iswupper_l.texi: Likewise.
21198         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21199         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21200         * doc/posix-functions/open_wmemstream.texi: Likewise.
21201         * doc/posix-functions/swscanf.texi: Likewise.
21202         * doc/posix-functions/towctrans_l.texi: Likewise.
21203         * doc/posix-functions/towlower.texi: Likewise.
21204         * doc/posix-functions/towlower_l.texi: Likewise.
21205         * doc/posix-functions/towupper.texi: Likewise.
21206         * doc/posix-functions/towupper_l.texi: Likewise.
21207         * doc/posix-functions/vfwprintf.texi: Likewise.
21208         * doc/posix-functions/vfwscanf.texi: Likewise.
21209         * doc/posix-functions/vswscanf.texi: Likewise.
21210         * doc/posix-functions/vwprintf.texi: Likewise.
21211         * doc/posix-functions/vwscanf.texi: Likewise.
21212         * doc/posix-functions/wcpcpy.texi: Likewise.
21213         * doc/posix-functions/wcpncpy.texi: Likewise.
21214         * doc/posix-functions/wcscasecmp.texi: Likewise.
21215         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21216         * doc/posix-functions/wcscoll_l.texi: Likewise.
21217         * doc/posix-functions/wcsdup.texi: Likewise.
21218         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21219         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21220         * doc/posix-functions/wcsnlen.texi: Likewise.
21221         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21222         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21223         * doc/posix-functions/wctrans_l.texi: Likewise.
21224         * doc/posix-functions/wctype_l.texi: Likewise.
21225         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21226         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21227         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21228         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21229         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21230         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21231         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21232         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21233         * doc/glibc-functions/wcschrnul.texi: Likewise.
21234         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21235         * doc/glibc-functions/wcstod_l.texi: Likewise.
21236         * doc/glibc-functions/wcstof_l.texi: Likewise.
21237         * doc/glibc-functions/wcstol_l.texi: Likewise.
21238         * doc/glibc-functions/wcstold_l.texi: Likewise.
21239         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21240         * doc/glibc-functions/wcstoq.texi: Likewise.
21241         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21242         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21243         * doc/glibc-functions/wcstouq.texi: Likewise.
21244         * doc/glibc-functions/wmempcpy.texi: Likewise.
21245
21246 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21247             Eric Blake  <ebb9@byu.net>
21248             Paolo Bonzini  <bonzini@gnu.org>
21249             Bruno Haible  <bruno@clisp.org>
21250
21251         Make c-stack work on Haiku.
21252         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21253         (c_stack_action): Use SA_ONSTACK flag.
21254
21255 2008-12-22  Bruno Haible  <bruno@clisp.org>
21256
21257         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21258
21259 2008-12-22  Bruno Haible  <bruno@clisp.org>
21260
21261         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21262         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21263         being overridden.
21264         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21265         New macros.
21266         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21268         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21269         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21270
21271 2008-12-22  Bruno Haible  <bruno@clisp.org>
21272
21273         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21274         from test code.
21275
21276 2008-12-22  Eric Blake  <ebb9@byu.net>
21277
21278         Avoid gcc warnings on cygwin.
21279         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21280         Avoid unused variable.
21281         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21282         Likewise.
21283
21284 2008-12-22  Bruno Haible  <bruno@clisp.org>
21285
21286         Remove HAVE_MBRTOWC conditionals.
21287         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21288         (mbscasecmp): Assume mbrtowc function.
21289         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21290         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21291         * lib/mbschr.c: Include mbuiter.h unconditionally.
21292         (mbschr): Assume mbrtowc function.
21293         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21294         (mbscspn): Assume mbrtowc function.
21295         * lib/mbslen.c: Include mbuiter.h unconditionally.
21296         (mbslen): Assume mbrtowc function.
21297         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21298         (mbsncasecmp): Assume mbrtowc function.
21299         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21300         (mbsnlen): Assume mbrtowc function.
21301         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21302         (mbspbrk): Assume mbrtowc function.
21303         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21304         (mbspcasecmp): Assume mbrtowc function.
21305         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21306         (mbsrchr): Assume mbrtowc function.
21307         * lib/mbssep.c: Include mbuiter.h unconditionally.
21308         (mbssep): Assume mbrtowc function.
21309         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21310         (mbsspn): Assume mbrtowc function.
21311         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21312         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21313         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21314         (mbstok_r): Assume mbrtowc function.
21315         * lib/propername.c: Include mbuiter.h unconditionally.
21316         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21317         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21318         (trim2): Assume mbrtowc function.
21319         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21320         (mbsnwidth): Assume mbrtowc function.
21321         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21322         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21323         fallback definitions.
21324         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21325
21326 2008-12-22  Bruno Haible  <bruno@clisp.org>
21327
21328         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21329
21330 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21331
21332         * modules/regex: Request emulations for the mb*/wc* functions we need.
21333         * m4/regex.m4: Don't look for those functions here.
21334         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21335
21336 2008-12-22  Bruno Haible  <bruno@clisp.org>
21337
21338         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21339
21340 2008-12-21  Bruno Haible  <bruno@clisp.org>
21341
21342         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21343         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21344         (Include): Remove conditionalization.
21345         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21346         (Include): Remove conditionalization.
21347         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21348         (Include): Remove conditionalization.
21349         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21350         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21351         * NEWS: Mention the change.
21352         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21353         via Sergey Poznyakoff <gray@gnu.org.ua>.
21354
21355 2008-12-21  Bruno Haible  <bruno@clisp.org>
21356
21357         * MODULES.html.sh (Extended multibyte and wide character utilities
21358         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21359         wcrtomb, wcsrtombs.
21360         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21361         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21362         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21363         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21364
21365 2008-12-21  Bruno Haible  <bruno@clisp.org>
21366
21367         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21368
21369 2008-12-21  Bruno Haible  <bruno@clisp.org>
21370
21371         * modules/wcsnrtombs-tests: New file.
21372         * tests/test-wcsnrtombs1.sh: New file.
21373         * tests/test-wcsnrtombs2.sh: New file.
21374         * tests/test-wcsnrtombs3.sh: New file.
21375         * tests/test-wcsnrtombs4.sh: New file.
21376         * tests/test-wcsnrtombs.c: New file.
21377
21378         New module 'wcsnrtombs'.
21379         * lib/wchar.in.h (wcsnrtombs): New declaration.
21380         * lib/wcsnrtombs.c: New file.
21381         * lib/wcsrtombs-state.c: New file.
21382         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21383         (internal_state): Remove variable.
21384         * m4/wcsnrtombs.m4: New file.
21385         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21386         compilation units.
21387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21388         HAVE_WCSNRTOMBS.
21389         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21390         HAVE_WCSNRTOMBS.
21391         * modules/wcsnrtombs: New file.
21392         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21393         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21394
21395 2008-12-21  Bruno Haible  <bruno@clisp.org>
21396
21397         * modules/wcsrtombs-tests: New file.
21398         * tests/test-wcsrtombs1.sh: New file.
21399         * tests/test-wcsrtombs2.sh: New file.
21400         * tests/test-wcsrtombs3.sh: New file.
21401         * tests/test-wcsrtombs4.sh: New file.
21402         * tests/test-wcsrtombs.c: New file.
21403
21404         New module 'wcsrtombs'.
21405         * lib/wchar.in.h (wcsrtombs): New declaration.
21406         * lib/wcsrtombs.c: New file.
21407         * m4/wcsrtombs.m4: New file.
21408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21409         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21410         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21411         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21412         * modules/wcsrtombs: New file.
21413         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21414         bugs.
21415
21416 2008-12-21  Bruno Haible  <bruno@clisp.org>
21417
21418         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21419         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21420         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21421         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21422         if not correct.
21423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21424         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21425         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21426         m4/locale-zh.m4, m4/codeset.m4.
21427         * doc/posix-functions/wcrtomb.texi: Document the bug.
21428
21429 2008-12-21  Bruno Haible  <bruno@clisp.org>
21430
21431         Work around a btowc() bug on IRIX 6.5.
21432         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21433         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21434         REPLACE_WTOBC if not.
21435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21436         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21437         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21438
21439 2008-12-21  Bruno Haible  <bruno@clisp.org>
21440
21441         * modules/wcrtomb-tests: New file.
21442         * tests/test-wcrtomb.sh: New file.
21443         * tests/test-wcrtomb.c: New file.
21444
21445         New module 'wcrtomb'.
21446         * lib/wchar.in.h (wcrtomb): New declaration.
21447         * lib/wcrtomb.c: New file.
21448         * m4/wcrtomb.m4: New file.
21449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21450         HAVE_WCRTOMB.
21451         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21452         HAVE_WCRTOMB.
21453         * modules/wcrtomb: New file.
21454         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21455
21456 2008-12-21  Bruno Haible  <bruno@clisp.org>
21457
21458         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21459         * modules/mbsrtowcs (Files): Likewise.
21460         * modules/wctob (Files): Likewise.
21461         * modules/c-strcase-tests (Files): Likewise.
21462         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21463         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21464         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21465         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21466         * modules/vasnprintf-posix-tests (Files): Likewise.
21467
21468 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21469
21470         gitlog-to-changelog: pass all command-line arguments to git-log
21471         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21472         it is sometimes convenient to filter the commits in various ways.
21473         gitlog-to-changelog only allows --since to specify a start date,
21474         but git-log itself supports many other filtering mechanisms.
21475         At the moment, I want to filter by branch name.  Rather than
21476         adding a --branch option to gitlog-to-changelog, it seems more
21477         flexible to simply pass all options directly to git-log and let
21478         git do the work.  Notice that this effectively makes --since a
21479         redundant option for gitlog-to-changelog, but removing it would
21480         require current usage to change since calls would then require
21481         an additional '--'.
21482
21483 2008-12-21  Bruno Haible  <bruno@clisp.org>
21484
21485         * modules/mbsnrtowcs-tests: New file.
21486         * tests/test-mbsnrtowcs1.sh: New file.
21487         * tests/test-mbsnrtowcs2.sh: New file.
21488         * tests/test-mbsnrtowcs3.sh: New file.
21489         * tests/test-mbsnrtowcs4.sh: New file.
21490         * tests/test-mbsnrtowcs.c: New file.
21491
21492         New module 'mbsnrtowcs'.
21493         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21494         * lib/mbsnrtowcs.c: New file.
21495         * lib/mbsrtowcs-state.c: New file.
21496         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21497         (internal_state): Remove variable.
21498         * m4/mbsnrtowcs.m4: New file.
21499         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21500         compilation units.
21501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21502         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21503         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21504         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21505         * modules/mbsnrtowcs: New file.
21506         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21507         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21508         portability problem.
21509
21510 2008-12-21  Bruno Haible  <bruno@clisp.org>
21511
21512         Work around mbsrtowcs bug.
21513         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21514         (gl_FUNC_MBSRTOWCS): Invoke it.
21515         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21516         m4/locale-zh.m4.
21517         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21518
21519 2008-12-21  Bruno Haible  <bruno@clisp.org>
21520
21521         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21522
21523 2008-12-21  Bruno Haible  <bruno@clisp.org>
21524
21525         Update doc for AIX.
21526         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21527         16-bit wchar_t type.
21528         * doc/posix-functions/btowc.texi: Likewise.
21529         * doc/posix-functions/fgetwc.texi: Likewise.
21530         * doc/posix-functions/fgetws.texi: Likewise.
21531         * doc/posix-functions/fputwc.texi: Likewise.
21532         * doc/posix-functions/fputws.texi: Likewise.
21533         * doc/posix-functions/fwide.texi: Likewise.
21534         * doc/posix-functions/fwprintf.texi: Likewise.
21535         * doc/posix-functions/fwscanf.texi: Likewise.
21536         * doc/posix-functions/getwchar.texi: Likewise.
21537         * doc/posix-functions/getwc.texi: Likewise.
21538         * doc/posix-functions/iswalnum.texi: Likewise.
21539         * doc/posix-functions/iswalpha.texi: Likewise.
21540         * doc/posix-functions/iswblank.texi: Likewise.
21541         * doc/posix-functions/iswcntrl.texi: Likewise.
21542         * doc/posix-functions/iswctype.texi: Likewise.
21543         * doc/posix-functions/iswdigit.texi: Likewise.
21544         * doc/posix-functions/iswgraph.texi: Likewise.
21545         * doc/posix-functions/iswlower.texi: Likewise.
21546         * doc/posix-functions/iswprint.texi: Likewise.
21547         * doc/posix-functions/iswpunct.texi: Likewise.
21548         * doc/posix-functions/iswspace.texi: Likewise.
21549         * doc/posix-functions/iswupper.texi: Likewise.
21550         * doc/posix-functions/iswxdigit.texi: Likewise.
21551         * doc/posix-functions/mbrtowc.texi: Likewise.
21552         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21553         * doc/posix-functions/mbstowcs.texi: Likewise.
21554         * doc/posix-functions/mbtowc.texi: Likewise.
21555         * doc/posix-functions/putwchar.texi: Likewise.
21556         * doc/posix-functions/putwc.texi: Likewise.
21557         * doc/posix-functions/swprintf.texi: Likewise.
21558         * doc/posix-functions/tolower.texi: Likewise.
21559         * doc/posix-functions/toupper.texi: Likewise.
21560         * doc/posix-functions/towctrans.texi: Likewise.
21561         * doc/posix-functions/ungetwc.texi: Likewise.
21562         * doc/posix-functions/vswprintf.texi: Likewise.
21563         * doc/posix-functions/wcrtomb.texi: Likewise.
21564         * doc/posix-functions/wcscat.texi: Likewise.
21565         * doc/posix-functions/wcschr.texi: Likewise.
21566         * doc/posix-functions/wcscmp.texi: Likewise.
21567         * doc/posix-functions/wcscoll.texi: Likewise.
21568         * doc/posix-functions/wcscpy.texi: Likewise.
21569         * doc/posix-functions/wcscspn.texi: Likewise.
21570         * doc/posix-functions/wcsftime.texi: Likewise.
21571         * doc/posix-functions/wcslen.texi: Likewise.
21572         * doc/posix-functions/wcsncat.texi: Likewise.
21573         * doc/posix-functions/wcsncmp.texi: Likewise.
21574         * doc/posix-functions/wcsncpy.texi: Likewise.
21575         * doc/posix-functions/wcspbrk.texi: Likewise.
21576         * doc/posix-functions/wcsrchr.texi: Likewise.
21577         * doc/posix-functions/wcsrtombs.texi: Likewise.
21578         * doc/posix-functions/wcsspn.texi: Likewise.
21579         * doc/posix-functions/wcsstr.texi: Likewise.
21580         * doc/posix-functions/wcstod.texi: Likewise.
21581         * doc/posix-functions/wcstof.texi: Likewise.
21582         * doc/posix-functions/wcstoimax.texi: Likewise.
21583         * doc/posix-functions/wcstok.texi: Likewise.
21584         * doc/posix-functions/wcstold.texi: Likewise.
21585         * doc/posix-functions/wcstoll.texi: Likewise.
21586         * doc/posix-functions/wcstol.texi: Likewise.
21587         * doc/posix-functions/wcstombs.texi: Likewise.
21588         * doc/posix-functions/wcstoull.texi: Likewise.
21589         * doc/posix-functions/wcstoul.texi: Likewise.
21590         * doc/posix-functions/wcstoumax.texi: Likewise.
21591         * doc/posix-functions/wcswidth.texi: Likewise.
21592         * doc/posix-functions/wcsxfrm.texi: Likewise.
21593         * doc/posix-functions/wctob.texi: Likewise.
21594         * doc/posix-functions/wctomb.texi: Likewise.
21595         * doc/posix-functions/wctrans.texi: Likewise.
21596         * doc/posix-functions/wctype.texi: Likewise.
21597         * doc/posix-functions/wcwidth.texi: Likewise.
21598         * doc/posix-functions/wmemchr.texi: Likewise.
21599         * doc/posix-functions/wmemcmp.texi: Likewise.
21600         * doc/posix-functions/wmemcpy.texi: Likewise.
21601         * doc/posix-functions/wmemmove.texi: Likewise.
21602         * doc/posix-functions/wmemset.texi: Likewise.
21603         * doc/posix-functions/wprintf.texi: Likewise.
21604         * doc/posix-functions/wscanf.texi: Likewise.
21605
21606 2008-12-21  Bruno Haible  <bruno@clisp.org>
21607
21608         Update doc for HP-UX 11.11.
21609         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21610         in HP-UX version 11.00, not in all versions of HP-UX 11.
21611         * doc/posix-functions/fwide.texi: Likewise.
21612         * doc/posix-functions/fwprintf.texi: Likewise.
21613         * doc/posix-functions/fwscanf.texi: Likewise.
21614         * doc/posix-functions/inet_ntop.texi: Likewise.
21615         * doc/posix-functions/inet_pton.texi: Likewise.
21616         * doc/posix-functions/mbrlen.texi: Likewise.
21617         * doc/posix-functions/mbrtowc.texi: Likewise.
21618         * doc/posix-functions/mbsinit.texi: Likewise.
21619         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21620         * doc/posix-functions/swprintf.texi: Likewise.
21621         * doc/posix-functions/swscanf.texi: Likewise.
21622         * doc/posix-functions/towctrans.texi: Likewise.
21623         * doc/posix-functions/vfwprintf.texi: Likewise.
21624         * doc/posix-functions/vswprintf.texi: Likewise.
21625         * doc/posix-functions/vwprintf.texi: Likewise.
21626         * doc/posix-functions/wcrtomb.texi: Likewise.
21627         * doc/posix-functions/wcsrtombs.texi: Likewise.
21628         * doc/posix-functions/wcsstr.texi: Likewise.
21629         * doc/posix-functions/wctob.texi: Likewise.
21630         * doc/posix-functions/wctrans.texi: Likewise.
21631         * doc/posix-functions/wmemchr.texi: Likewise.
21632         * doc/posix-functions/wmemcmp.texi: Likewise.
21633         * doc/posix-functions/wmemcpy.texi: Likewise.
21634         * doc/posix-functions/wmemmove.texi: Likewise.
21635         * doc/posix-functions/wmemset.texi: Likewise.
21636         * doc/posix-functions/wprintf.texi: Likewise.
21637         * doc/posix-functions/wscanf.texi: Likewise.
21638
21639 2008-12-21  Bruno Haible  <bruno@clisp.org>
21640
21641         Work around a portability problem.
21642         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21643         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21644
21645 2008-12-20  Bruno Haible  <bruno@clisp.org>
21646
21647         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21648         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21649         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21651         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21652
21653         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21654         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21655         set.
21656         (GNULIB_defined_mbstate_t): New macro.
21657         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21658         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21659         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21660         reuses the system's mbrtowc function but works around the bugs.
21661         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21662         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21663         macros.
21664         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21665         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21666         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21667         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21668         REPLACE_MBSINIT if mbsinit needs to be overridden.
21669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21670         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21671         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21672         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21673         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21674         m4/locale-zh.m4.
21675         (Depends): Add mbsinit.
21676         * modules/mbsinit (Depends): Add mbrtowc.
21677         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21678
21679 2008-12-20  Bruno Haible  <bruno@clisp.org>
21680
21681         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21682         so that there are no conversion errors on AIX.
21683         * tests/test-mbsrtowcs.c (main): LIkewise.
21684
21685 2008-12-20  Bruno Haible  <bruno@clisp.org>
21686
21687         Work around wctob bug on Solaris <= 9.
21688         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21689         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21691         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21692         * modules/wctob (Files): Add m4/locale-fr.m4.
21693         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21694
21695 2008-12-20  Bruno Haible  <bruno@clisp.org>
21696
21697         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21698         /dev/null.
21699         * tests/test-select-in.sh: Likewise.
21700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21701
21702 2008-12-20  Bruno Haible  <bruno@clisp.org>
21703
21704         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21705         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21706         Cygwin 1.5.x.
21707
21708 2008-12-20  Bruno Haible  <bruno@clisp.org>
21709
21710         Ensure mbstate_t is defined on HP-UX 11.11.
21711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
21712         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
21713         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
21714         AC_USE_SYSTEM_EXTENSIONS.
21715         * modules/fnmatch (Depends-on): Add extensions.
21716         * modules/mbrlen (Depends-on): Likewise.
21717         * modules/mbrtowc (Depends-on): Likewise.
21718         * modules/mbsinit (Depends-on): Likewise.
21719         * modules/mbsrtowcs (Depends-on): Likewise.
21720         * modules/mbswidth (Depends-on): Likewise.
21721         * modules/quotearg (Depends-on): Likewise.
21722         * modules/strftime (Depends-on): Likewise.
21723
21724 2008-12-20  Bruno Haible  <bruno@clisp.org>
21725
21726         Ensure wctob is declared on IRIX 6.5.
21727         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
21728         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
21729         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
21730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
21731         of HAVE_WCTOB.
21732         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
21733         HAVE_WCTOB.
21734         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
21735
21736 2008-12-19  Bruno Haible  <bruno@clisp.org>
21737
21738         * modules/mbsrtowcs-tests: New file.
21739         * tests/test-mbsrtowcs1.sh: New file.
21740         * tests/test-mbsrtowcs2.sh: New file.
21741         * tests/test-mbsrtowcs3.sh: New file.
21742         * tests/test-mbsrtowcs4.sh: New file.
21743         * tests/test-mbsrtowcs.c: New file.
21744
21745         New module 'mbsrtowcs'.
21746         * lib/wchar.in.h (mbsrtowcs): New declaration.
21747         * lib/mbsrtowcs.c: New file.
21748         * m4/mbsrtowcs.m4: New file.
21749         * modules/mbsrtowcs: New file.
21750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
21751         HAVE_MBSRTOWCS.
21752         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
21753         HAVE_MBSRTOWCS.
21754         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
21755
21756 2008-12-19  Bruno Haible  <bruno@clisp.org>
21757
21758         New module 'mbrlen'.
21759         * lib/wchar.in.h (mbrlen): New declaration.
21760         * lib/mbrlen.c: New file.
21761         * m4/mbrlen.m4: New file.
21762         * modules/mbrlen: New file.
21763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
21764         HAVE_MBRLEN.
21765         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
21766         HAVE_MBRLEN.
21767         * doc/posix-functions/mbrlen.texi: Document the new module.
21768
21769 2008-12-19  Bruno Haible  <bruno@clisp.org>
21770
21771         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
21772         * modules/mbrtowc (Depends-on): Add verify.
21773         Suggested by Paul Eggert.
21774
21775 2008-12-18  Bruno Haible  <bruno@clisp.org>
21776
21777         * modules/mbsinit-tests: New file.
21778         * tests/test-mbsinit.sh: New file.
21779         * tests/test-mbsinit.c: New file.
21780
21781 2008-12-18  Bruno Haible  <bruno@clisp.org>
21782
21783         * modules/mbrtowc-tests: New file.
21784         * tests/test-mbrtowc1.sh: New file.
21785         * tests/test-mbrtowc2.sh: New file.
21786         * tests/test-mbrtowc3.sh: New file.
21787         * tests/test-mbrtowc4.sh: New file.
21788         * tests/test-mbrtowc.c: New file.
21789
21790         New module 'mbrtowc'.
21791         * lib/wchar.in.h (mbstate_t): Override when the system does not have
21792         mbsinit and mbrtowc.
21793         (mbrtowc): New declaration.
21794         * lib/mbrtowc.c: New file.
21795         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
21796         * modules/mbrtowc: New file.
21797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
21798         HAVE_MBRTOWC.
21799         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
21800         HAVE_MBRTOWC.
21801         * doc/posix-functions/mbrtowc.texi: Document the new module.
21802
21803 2008-12-18  Bruno Haible  <bruno@clisp.org>
21804
21805         New module 'wctob'.
21806         * lib/wchar.in.h (wctob): New declaration.
21807         * lib/wctob.c: New file.
21808         * m4/wctob.m4: New file.
21809         * modules/wctob: New file.
21810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
21811         HAVE_WCTOB.
21812         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
21813         * doc/posix-functions/wctob.texi: Document the new module.
21814
21815 2008-12-18  Bruno Haible  <bruno@clisp.org>
21816
21817         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
21818         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
21819
21820 2008-12-18  Simon Josefsson  <simon@josefsson.org>
21821
21822         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
21823         G. Christensen" <tgc@jupiterrise.com>.
21824
21825         * lib/flock.c: Need to include errno.h.  Reported by "Tom
21826         G. Christensen" <tgc@jupiterrise.com>.
21827
21828         * lib/flock.c: Need to include string.h.  Reported by "Tom
21829         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
21830         <ebb9@byu.net>.
21831
21832 2008-12-18  Bruno Haible  <bruno@clisp.org>
21833
21834         * m4/locale-ja.m4: New file, from GNU gettext.
21835
21836 2008-12-17  Bruno Haible  <bruno@clisp.org>
21837
21838         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
21839         Suggested by Eric Blake.
21840
21841 2008-12-17  Bruno Haible  <bruno@clisp.org>
21842
21843         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
21844
21845 2008-12-17  Bruno Haible  <bruno@clisp.org>
21846
21847         * lib/mbsinit.c: Include verify.h. Verify an assumption.
21848         * modules/mbsinit (Depends-on): Add verify.
21849         Suggested by Paul Eggert.
21850
21851 2008-12-17  Bruno Haible  <bruno@clisp.org>
21852
21853         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
21854         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
21855         gl_FUNC_MBRTOWC.
21856         * m4/mbiter.m4 (gl_MBITER): LIkewise.
21857         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
21858         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
21859         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
21860         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
21861         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
21862         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
21863         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
21864         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
21865         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
21866         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
21867         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
21868         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
21869         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
21870         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
21871         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21872         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
21873         * modules/trim (configure.ac): Likewise.
21874
21875 2008-12-17  Bruno Haible  <bruno@clisp.org>
21876
21877         * modules/btowc-tests: New file.
21878         * tests/test-btowc1.sh: New file.
21879         * tests/test-btowc2.sh: New file.
21880         * tests/test-btowc.c: New file.
21881
21882         New module 'btowc'.
21883         * lib/wchar.in.h (btowc): New declaration.
21884         * lib/btowc.c: New file.
21885         * m4/btowc.m4: New file.
21886         * modules/btowc: New file.
21887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
21888         HAVE_BTOWC.
21889         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
21890         * doc/posix-functions/btowc.texi: Document the new module.
21891
21892 2008-12-17  Bruno Haible  <bruno@clisp.org>
21893
21894         New module 'mbsinit'.
21895         * lib/wchar.in.h (mbsinit): New declaration.
21896         * lib/mbsinit.c: New file.
21897         * m4/mbsinit.m4: New file.
21898         * modules/mbsinit: New file.
21899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
21900         HAVE_MBSINIT.
21901         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
21902         HAVE_MBSINIT.
21903         * doc/posix-functions/mbsinit.texi: Document the new module.
21904
21905 2008-12-16  Bruno Haible  <bruno@clisp.org>
21906
21907         * lib/unistd.in.h: Add comment.
21908         * tests/test-environ.c: Don't include <stdlib.h>.
21909
21910 2008-12-16  Bruno Haible  <bruno@clisp.org>
21911
21912         * lib/parse-duration.h (parse_duration): Document return value
21913         convention.
21914         * lib/parse-duration.c: Include specification header first. Add
21915         comments.
21916         (_): Remove macro.
21917         (parse_year_month_day, parse_hour_minute_second): Move side effects
21918         outside of strchr call.
21919         (parse_non_iso8601): Move side effects outside of isspace call.
21920         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
21921         call.
21922
21923 2008-12-16  Bruno Haible  <bruno@clisp.org>
21924
21925         * tests/test-parse-duration.sh: Produce no output when the test
21926         succeeds.
21927
21928 2008-12-16  Bruno Haible  <bruno@clisp.org>
21929
21930         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
21931         expressions.
21932
21933 2008-12-15  Bruno Haible  <bruno@clisp.org>
21934
21935         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
21936         * doc/glibc-functions/flistxattr.texi: Likewise.
21937         * doc/glibc-functions/fopencookie.texi: Likewise.
21938         * doc/glibc-functions/fremovexattr.texi: Likewise.
21939         * doc/glibc-functions/fsetxattr.texi: Likewise.
21940         * doc/glibc-functions/getxattr.texi: Likewise.
21941         * doc/glibc-functions/lgetxattr.texi: Likewise.
21942         * doc/glibc-functions/listxattr.texi: Likewise.
21943         * doc/glibc-functions/llistxattr.texi: Likewise.
21944         * doc/glibc-functions/lremovexattr.texi: Likewise.
21945         * doc/glibc-functions/lsetxattr.texi: Likewise.
21946         * doc/glibc-functions/removexattr.texi: Likewise.
21947         * doc/glibc-functions/setxattr.texi: Likewise.
21948         * doc/posix-functions/open_memstream.texi: Likewise.
21949
21950 2008-12-15  Eric Blake  <ebb9@byu.net>
21951
21952         Update doc for cygwin 1.7.
21953         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
21954         functions.
21955         * doc/posix-functions/fchmodat.texi: Likewise.
21956         * doc/posix-functions/fchownat.texi: Likewise.
21957         * doc/posix-functions/fdopendir.texi: Likewise.
21958         * doc/posix-functions/fmemopen.texi: Likewise.
21959         * doc/posix-functions/freeaddrinfo.texi: Likewise.
21960         * doc/posix-functions/fstatat.texi: Likewise.
21961         * doc/posix-functions/futimens.texi: Likewise.
21962         * doc/posix-functions/gai_strerror.texi: Likewise.
21963         * doc/posix-functions/getaddrinfo.texi: Likewise.
21964         * doc/posix-functions/getnameinfo.texi: Likewise.
21965         * doc/posix-functions/if_freenameindex.texi: Likewise.
21966         * doc/posix-functions/if_indextoname.texi: Likewise.
21967         * doc/posix-functions/if_nameindex.texi: Likewise.
21968         * doc/posix-functions/if_nametoindex.texi: Likewise.
21969         * doc/posix-functions/insque.texi: Likewise.
21970         * doc/posix-functions/linkat.texi: Likewise.
21971         * doc/posix-functions/llrint.texi: Likewise.
21972         * doc/posix-functions/llrintf.texi: Likewise.
21973         * doc/posix-functions/llrintl.texi: Likewise.
21974         * doc/posix-functions/lockf.texi: Likewise.
21975         * doc/posix-functions/lrintl.texi: Likewise.
21976         * doc/posix-functions/mkdirat.texi: Likewise.
21977         * doc/posix-functions/mkfifoat.texi: Likewise.
21978         * doc/posix-functions/mknodat.texi: Likewise.
21979         * doc/posix-functions/mq_close.texi: Likewise.
21980         * doc/posix-functions/mq_getattr.texi: Likewise.
21981         * doc/posix-functions/mq_notify.texi: Likewise.
21982         * doc/posix-functions/mq_open.texi: Likewise.
21983         * doc/posix-functions/mq_receive.texi: Likewise.
21984         * doc/posix-functions/mq_send.texi: Likewise.
21985         * doc/posix-functions/mq_setattr.texi: Likewise.
21986         * doc/posix-functions/mq_timedreceive.texi: Likewise.
21987         * doc/posix-functions/mq_timedsend.texi: Likewise.
21988         * doc/posix-functions/mq_unlink.texi: Likewise.
21989         * doc/posix-functions/open_memstream.texi: Likewise.
21990         * doc/posix-functions/openat.texi: Likewise.
21991         * doc/posix-functions/posix_fadvise.texi: Likewise.
21992         * doc/posix-functions/posix_fallocate.texi: Likewise.
21993         * doc/posix-functions/posix_madvise.texi: Likewise.
21994         * doc/posix-functions/posix_memalign.texi: Likewise.
21995         * doc/posix-functions/posix_openpt.texi: Likewise.
21996         * doc/posix-functions/readlinkat.texi: Likewise.
21997         * doc/posix-functions/remque.texi: Likewise.
21998         * doc/posix-functions/renameat.texi: Likewise.
21999         * doc/posix-functions/rintl.texi: Likewise.
22000         * doc/posix-functions/sem_unlink.texi: Likewise.
22001         * doc/posix-functions/shm_open.texi: Likewise.
22002         * doc/posix-functions/shm_unlink.texi: Likewise.
22003         * doc/posix-functions/signgam.texi: Likewise.
22004         * doc/posix-functions/sigset.texi: Likewise.
22005         * doc/posix-functions/stpcpy.texi: Likewise.
22006         * doc/posix-functions/stpncpy.texi: Likewise.
22007         * doc/posix-functions/strerror.texi: Likewise.
22008         * doc/posix-functions/strtod.texi: Likewise.
22009         * doc/posix-functions/symlinkat.texi: Likewise.
22010         * doc/posix-functions/unlinkat.texi: Likewise.
22011         * doc/posix-functions/utimensat.texi: Likewise.
22012         * doc/glibc-functions/bindresvport.texi: Likewise.
22013         * doc/glibc-functions/dn_expand.texi: Likewise.
22014         * doc/glibc-functions/exp10.texi: Likewise.
22015         * doc/glibc-functions/exp10f.texi: Likewise.
22016         * doc/glibc-functions/fgetxattr.texi: Likewise.
22017         * doc/glibc-functions/flistxattr.texi: Likewise.
22018         * doc/glibc-functions/fopencookie.texi: Likewise.
22019         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22020         * doc/glibc-functions/fremovexattr.texi: Likewise.
22021         * doc/glibc-functions/fsetxattr.texi: Likewise.
22022         * doc/glibc-functions/getifaddrs.texi: Likewise.
22023         * doc/glibc-functions/getxattr.texi: Likewise.
22024         * doc/glibc-functions/lgetxattr.texi: Likewise.
22025         * doc/glibc-functions/listxattr.texi: Likewise.
22026         * doc/glibc-functions/llistxattr.texi: Likewise.
22027         * doc/glibc-functions/lremovexattr.texi: Likewise.
22028         * doc/glibc-functions/lsetxattr.texi: Likewise.
22029         * doc/glibc-functions/pow10.texi: Likewise.
22030         * doc/glibc-functions/pow10f.texi: Likewise.
22031         * doc/glibc-functions/rcmd_af.texi: Likewise.
22032         * doc/glibc-functions/removexattr.texi: Likewise.
22033         * doc/glibc-functions/res_init.texi: Likewise.
22034         * doc/glibc-functions/res_mkquery.texi: Likewise.
22035         * doc/glibc-functions/res_query.texi: Likewise.
22036         * doc/glibc-functions/res_querydomain.texi: Likewise.
22037         * doc/glibc-functions/res_send.texi: Likewise.
22038         * doc/glibc-functions/rresvport_af.texi: Likewise.
22039         * doc/glibc-functions/setxattr.texi: Likewise.
22040         * doc/glibc-functions/strcasestr.texi: Likewise.
22041
22042 2008-12-15  Bruno Haible  <bruno@clisp.org>
22043
22044         Fix compilation error on OSF/1 4.0.
22045         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22046         <sys/time.h>, simply delegate to the system header.
22047         Reported by Daniel Richard G. <oss@teragram.com>.
22048
22049 2008-12-15  Bruno Haible  <bruno@clisp.org>
22050
22051         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22052         * doc/posix-functions/fchmodat.texi: Likewise.
22053         * doc/posix-functions/fchownat.texi: Likewise.
22054         * doc/posix-functions/fdopendir.texi: Likewise.
22055         * doc/posix-functions/fstatat.texi: Likewise.
22056         * doc/posix-functions/mkdirat.texi: Likewise.
22057         * doc/posix-functions/unlinkat.texi: Likewise.
22058
22059 2008-12-14  Bruno Haible  <bruno@clisp.org>
22060
22061         Update doc for POSIX:2008.
22062         * doc/posix-functions/faccessat.texi: New file.
22063         * doc/posix-functions/fchmodat.texi: New file.
22064         * doc/posix-functions/fchownat.texi: New file.
22065         * doc/posix-functions/fdopendir.texi: New file.
22066         * doc/posix-functions/fstatat.texi: New file.
22067         * doc/posix-functions/futimens.texi: New file.
22068         * doc/posix-functions/linkat.texi: New file.
22069         * doc/posix-functions/mkdirat.texi: New file.
22070         * doc/posix-functions/mkfifoat.texi: New file.
22071         * doc/posix-functions/mknodat.texi: New file.
22072         * doc/posix-functions/open_wmemstream.texi: New file.
22073         * doc/posix-functions/openat.texi: New file.
22074         * doc/posix-functions/psiginfo.texi: New file.
22075         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22076         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22077         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22078         * doc/posix-functions/readlinkat.texi: New file.
22079         * doc/posix-functions/renameat.texi: New file.
22080         * doc/posix-functions/strerror_l.texi: New file.
22081         * doc/posix-functions/symlinkat.texi: New file.
22082         * doc/posix-functions/unlinkat.texi: New file.
22083         * doc/posix-functions/utimensat.texi: New file.
22084         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22085
22086 2008-12-14  Bruno Haible  <bruno@clisp.org>
22087
22088         Update doc for POSIX:2008.
22089         * doc/posix-functions/alphasort.texi: Renamed from
22090         doc/glibc-functions/alphasort.texi.
22091         * doc/posix-functions/dirfd.texi: Renamed from
22092         doc/glibc-functions/dirfd.texi.
22093         * doc/posix-functions/dprintf.texi: Renamed from
22094         doc/glibc-functions/dprintf.texi.
22095         * doc/posix-functions/duplocale.texi: Renamed from
22096         doc/glibc-functions/duplocale.texi.
22097         * doc/posix-functions/fexecve.texi: Renamed from
22098         doc/glibc-functions/fexecve.texi.
22099         * doc/posix-functions/fmemopen.texi: Renamed from
22100         doc/glibc-functions/fmemopen.texi.
22101         * doc/posix-functions/freelocale.texi: Renamed from
22102         doc/glibc-functions/freelocale.texi.
22103         * doc/posix-functions/getdate_err.texi: Renamed from
22104         doc/glibc-functions/getdate_err.texi.
22105         * doc/posix-functions/isalnum_l.texi: Renamed from
22106         doc/glibc-functions/isalnum_l.texi.
22107         * doc/posix-functions/isalpha_l.texi: Renamed from
22108         doc/glibc-functions/isalpha_l.texi.
22109         * doc/posix-functions/isblank_l.texi: Renamed from
22110         doc/glibc-functions/isblank_l.texi.
22111         * doc/posix-functions/iscntrl_l.texi: Renamed from
22112         doc/glibc-functions/iscntrl_l.texi.
22113         * doc/posix-functions/isdigit_l.texi: Renamed from
22114         doc/glibc-functions/isdigit_l.texi.
22115         * doc/posix-functions/isgraph_l.texi: Renamed from
22116         doc/glibc-functions/isgraph_l.texi.
22117         * doc/posix-functions/islower_l.texi: Renamed from
22118         doc/glibc-functions/islower_l.texi.
22119         * doc/posix-functions/isprint_l.texi: Renamed from
22120         doc/glibc-functions/isprint_l.texi.
22121         * doc/posix-functions/ispunct_l.texi: Renamed from
22122         doc/glibc-functions/ispunct_l.texi.
22123         * doc/posix-functions/isspace_l.texi: Renamed from
22124         doc/glibc-functions/isspace_l.texi.
22125         * doc/posix-functions/isupper_l.texi: Renamed from
22126         doc/glibc-functions/isupper_l.texi.
22127         * doc/posix-functions/iswalnum_l.texi: Renamed from
22128         doc/glibc-functions/iswalnum_l.texi.
22129         * doc/posix-functions/iswalpha_l.texi: Renamed from
22130         doc/glibc-functions/iswalpha_l.texi.
22131         * doc/posix-functions/iswblank_l.texi: Renamed from
22132         doc/glibc-functions/iswblank_l.texi.
22133         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22134         doc/glibc-functions/iswcntrl_l.texi.
22135         * doc/posix-functions/iswctype_l.texi: Renamed from
22136         doc/glibc-functions/iswctype_l.texi.
22137         * doc/posix-functions/iswdigit_l.texi: Renamed from
22138         doc/glibc-functions/iswdigit_l.texi.
22139         * doc/posix-functions/iswgraph_l.texi: Renamed from
22140         doc/glibc-functions/iswgraph_l.texi.
22141         * doc/posix-functions/iswlower_l.texi: Renamed from
22142         doc/glibc-functions/iswlower_l.texi.
22143         * doc/posix-functions/iswprint_l.texi: Renamed from
22144         doc/glibc-functions/iswprint_l.texi.
22145         * doc/posix-functions/iswpunct_l.texi: Renamed from
22146         doc/glibc-functions/iswpunct_l.texi.
22147         * doc/posix-functions/iswspace_l.texi: Renamed from
22148         doc/glibc-functions/iswspace_l.texi.
22149         * doc/posix-functions/iswupper_l.texi: Renamed from
22150         doc/glibc-functions/iswupper_l.texi.
22151         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22152         doc/glibc-functions/iswxdigit_l.texi.
22153         * doc/posix-functions/isxdigit_l.texi: Renamed from
22154         doc/glibc-functions/isxdigit_l.texi.
22155         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22156         doc/glibc-functions/mbsnrtowcs.texi.
22157         * doc/posix-functions/mkdtemp.texi: Renamed from
22158         doc/glibc-functions/mkdtemp.texi.
22159         * doc/posix-functions/newlocale.texi: Renamed from
22160         doc/glibc-functions/newlocale.texi.
22161         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22162         doc/glibc-functions/nl_langinfo_l.texi.
22163         * doc/posix-functions/open_memstream.texi: Renamed from
22164         doc/glibc-functions/open_memstream.texi.
22165         * doc/posix-functions/opterr.texi: Renamed from
22166         doc/glibc-functions/opterr.texi.
22167         * doc/posix-functions/optind.texi: Renamed from
22168         doc/glibc-functions/optind.texi.
22169         * doc/posix-functions/optopt.texi: Renamed from
22170         doc/glibc-functions/optopt.texi.
22171         * doc/posix-functions/psignal.texi: Renamed from
22172         doc/glibc-functions/psignal.texi.
22173         * doc/posix-functions/scandir.texi: Renamed from
22174         doc/glibc-functions/scandir.texi.
22175         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22176         doc/glibc-functions/sched_get_priority_min.texi.
22177         * doc/posix-functions/signgam.texi: Renamed from
22178         doc/glibc-functions/signgam.texi.
22179         * doc/posix-functions/stpcpy.texi: Renamed from
22180         doc/glibc-functions/stpcpy.texi.
22181         * doc/posix-functions/stpncpy.texi: Renamed from
22182         doc/glibc-functions/stpncpy.texi.
22183         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22184         doc/glibc-functions/strcasecmp_l.texi.
22185         * doc/posix-functions/strcoll_l.texi: Renamed from
22186         doc/glibc-functions/strcoll_l.texi.
22187         * doc/posix-functions/strfmon_l.texi: Renamed from
22188         doc/glibc-functions/strfmon_l.texi.
22189         * doc/posix-functions/strftime_l.texi: Renamed from
22190         doc/glibc-functions/strftime_l.texi.
22191         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22192         doc/glibc-functions/strncasecmp_l.texi.
22193         * doc/posix-functions/strndup.texi: Renamed from
22194         doc/glibc-functions/strndup.texi.
22195         * doc/posix-functions/strnlen.texi: Renamed from
22196         doc/glibc-functions/strnlen.texi.
22197         * doc/posix-functions/strsignal.texi: Renamed from
22198         doc/glibc-functions/strsignal.texi.
22199         * doc/posix-functions/strxfrm_l.texi: Renamed from
22200         doc/glibc-functions/strxfrm_l.texi.
22201         * doc/posix-functions/timer_gettime.texi: Renamed from
22202         doc/glibc-functions/timer_gettime.texi.
22203         * doc/posix-functions/tolower_l.texi: Renamed from
22204         doc/glibc-functions/tolower_l.texi.
22205         * doc/posix-functions/toupper_l.texi: Renamed from
22206         doc/glibc-functions/toupper_l.texi.
22207         * doc/posix-functions/towctrans_l.texi: Renamed from
22208         doc/glibc-functions/towctrans_l.texi.
22209         * doc/posix-functions/towlower_l.texi: Renamed from
22210         doc/glibc-functions/towlower_l.texi.
22211         * doc/posix-functions/towupper_l.texi: Renamed from
22212         doc/glibc-functions/towupper_l.texi.
22213         * doc/posix-functions/uselocale.texi: Renamed from
22214         doc/glibc-functions/uselocale.texi.
22215         * doc/posix-functions/vdprintf.texi: Renamed from
22216         doc/glibc-functions/vdprintf.texi.
22217         * doc/posix-functions/wcpcpy.texi:
22218         Renamed from doc/glibc-functions/wcpcpy.texi.
22219         * doc/posix-functions/wcpncpy.texi: Renamed from
22220         doc/glibc-functions/wcpncpy.texi.
22221         * doc/posix-functions/wcscasecmp.texi: Renamed from
22222         doc/glibc-functions/wcscasecmp.texi.
22223         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22224         doc/glibc-functions/wcscasecmp_l.texi.
22225         * doc/posix-functions/wcscoll_l.texi: Renamed from
22226         doc/glibc-functions/wcscoll_l.texi.
22227         * doc/posix-functions/wcsdup.texi: Renamed from
22228         doc/glibc-functions/wcsdup.texi.
22229         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22230         doc/glibc-functions/wcsncasecmp.texi.
22231         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22232         doc/glibc-functions/wcsncasecmp_l.texi.
22233         * doc/posix-functions/wcsnlen.texi: Renamed from
22234         doc/glibc-functions/wcsnlen.texi.
22235         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22236         doc/glibc-functions/wcsnrtombs.texi.
22237         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22238         doc/glibc-functions/wcsxfrm_l.texi.
22239         * doc/posix-functions/wctrans_l.texi: Renamed from
22240         doc/glibc-functions/wctrans_l.texi.
22241         * doc/posix-functions/wctype_l.texi: Renamed from
22242         doc/glibc-functions/wctype_l.texi.
22243         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22244         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22245         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22246         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22247         these subsections.
22248         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22249         Remove sections.
22250
22251 2008-12-14  Bruno Haible  <bruno@clisp.org>
22252
22253         Update doc for POSIX:2008.
22254         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22255
22256 2008-12-14  Bruno Haible  <bruno@clisp.org>
22257
22258         Update doc for POSIX:2008.
22259         * doc/pastposix-functions/bcmp.texi: Renamed from
22260         doc/posix-functions/bcmp.texi.
22261         * doc/pastposix-functions/bcopy.texi: Renamed from
22262         doc/posix-functions/bcopy.texi.
22263         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22264         doc/posix-functions/bsd_signal.texi.
22265         * doc/pastposix-functions/bzero.texi: Renamed from
22266         doc/posix-functions/bzero.texi.
22267         * doc/pastposix-functions/ecvt.texi: Renamed from
22268         doc/posix-functions/ecvt.texi.
22269         * doc/pastposix-functions/fcvt.texi: Renamed from
22270         doc/posix-functions/fcvt.texi.
22271         * doc/pastposix-functions/ftime.texi: Renamed from
22272         doc/posix-functions/ftime.texi.
22273         * doc/pastposix-functions/gcvt.texi: Renamed from
22274         doc/posix-functions/gcvt.texi.
22275         * doc/pastposix-functions/getcontext.texi: Renamed from
22276         doc/posix-functions/getcontext.texi.
22277         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22278         doc/posix-functions/gethostbyaddr.texi.
22279         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22280         doc/posix-functions/gethostbyname.texi.
22281         * doc/pastposix-functions/getwd.texi: Renamed from
22282         doc/posix-functions/getwd.texi.
22283         * doc/pastposix-functions/h_errno.texi: Renamed from
22284         doc/posix-functions/h_errno.texi.
22285         * doc/pastposix-functions/index.texi: Renamed from
22286         doc/posix-functions/index.texi.
22287         * doc/pastposix-functions/makecontext.texi: Renamed from
22288         doc/posix-functions/makecontext.texi.
22289         * doc/pastposix-functions/mktemp.texi: Renamed from
22290         doc/posix-functions/mktemp.texi.
22291         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22292         doc/posix-functions/pthread_attr_getstackaddr.texi.
22293         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22294         doc/posix-functions/pthread_attr_setstackaddr.texi.
22295         * doc/pastposix-functions/rindex.texi: Renamed from
22296         doc/posix-functions/rindex.texi.
22297         * doc/pastposix-functions/scalb.texi: Renamed from
22298         doc/posix-functions/scalb.texi.
22299         * doc/pastposix-functions/setcontext.texi: Renamed from
22300         doc/posix-functions/setcontext.texi.
22301         * doc/pastposix-functions/swapcontext.texi: Renamed from
22302         doc/posix-functions/swapcontext.texi.
22303         * doc/pastposix-functions/ualarm.texi: Renamed from
22304         doc/posix-functions/ualarm.texi.
22305         * doc/pastposix-functions/usleep.texi: Renamed from
22306         doc/posix-functions/usleep.texi.
22307         * doc/pastposix-functions/vfork.texi: Renamed from
22308         doc/posix-functions/vfork.texi.
22309         * doc/pastposix-functions/wcswcs.texi: Renamed from
22310         doc/posix-functions/wcswcs.texi.
22311         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22312         (Function Substitutes): Update.
22313
22314 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22315
22316         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22317         m4/strerror.m4.
22318
22319 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22320             Bruno Haible  <bruno@clisp.org>
22321
22322         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22323
22324 2008-12-13  Bruno Haible  <bruno@clisp.org>
22325
22326         * modules/strtoull (Depends-on): Remove unistd.
22327
22328 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22329
22330         * modules/strtoull (Depends-on): Add stdlib.
22331
22332 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22333
22334         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22335
22336 2008-12-10  Jim Meyering  <meyering@redhat.com>
22337
22338         gl_ASSERT: don't say assertions are disabled when they're not
22339         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22340         "checking whether to enable assertions... no", when they are in
22341         fact enabled.  This is solely a bug in the output of configure.
22342         In spite of saying "no", NDEBUG was not defined in that case.
22343         Also, as noted by Eric Blake, leave assertions enabled upon
22344         --enable-assert=INVALID.
22345
22346 2008-12-10  Bruno Haible  <bruno@clisp.org>
22347
22348         Change MODULES.html to refer to POSIX:2008 where possible.
22349         * MODULES.html.sh (POSIX2008_URL): New variable.
22350         (posix_headers): Remove sys/timeb, ucontext.
22351         (posix2001_headers): New variable.
22352         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22353         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22354         index, makecontext, mktemp, pthread_attr_getstackaddr,
22355         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22356         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22357         (posix2001_functions): New variable.
22358         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22359         otherwise.
22360
22361 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22362
22363         add missing include to parse-duration.c
22364         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22365         * modules/parse-duration (Depends-on): Add xalloc.
22366
22367         fix sed script reading maint.mk
22368         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22369         (syntax-check-rules): Use it.
22370
22371 2008-12-09  Bruno Haible  <bruno@clisp.org>
22372
22373         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22374         MacOS X 10.4/PowerPC.
22375         Reported by Simon Josefsson.
22376
22377 2008-12-08  Jim Meyering  <meyering@redhat.com>
22378
22379         work around mingw's lack of some S_IF definitions
22380         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22381         Reported by Simon Josefsson.
22382
22383 2008-12-08  Bruno Haible  <bruno@clisp.org>
22384
22385         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22386         applied to variables. Needed on MacOS X 10.4/PowerPC.
22387         Reported by Simon Josefsson.
22388
22389 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22390         and Eric Blake  <ebb9@byu.net>
22391
22392         assert: honor --enable-assert
22393         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22394         order to honor --enable-assert, rather than treating it as a
22395         synonym for --disable-assert.
22396
22397 2008-12-08  Jim Meyering  <meyering@redhat.com>
22398
22399         * lib/posixtm.c: Remove now-useless declaration of mktime.
22400
22401         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22402
22403 2008-12-07  Bruno Haible  <bruno@clisp.org>
22404
22405         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22406         test_once): Mark functions as static.
22407         * tests/test-tls.c (test_tls): Likewise.
22408
22409 2008-12-07  Bruno Haible  <bruno@clisp.org>
22410
22411         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22412         iconv_register_autodetect.
22413
22414 2008-12-07  Jim Meyering  <meyering@redhat.com>
22415
22416         posixtm.c: avoid a warning
22417         * lib/posixtm.c (posixtime): Don't initialize tm0.
22418         It's no longer needed to placate gcc4's -Wuninitialized,
22419         and the attempt to placate would elicit a new warning.
22420
22421         unicodeio.c: mark unused parameters
22422         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22423         (fallback_failure_callback): Likewise.
22424
22425 2008-12-07  Bruno Haible  <bruno@clisp.org>
22426
22427         * gnulib-tool (func_create_testdir): When building the tests
22428         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22429         Reported by Simon Josefsson.
22430
22431 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22432
22433         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22434
22435 2008-12-06  Bruno Haible  <bruno@clisp.org>
22436
22437         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22438         Suggested by Eric Blake.
22439
22440 2008-12-06  Bruno Haible  <bruno@clisp.org>
22441
22442         Fix a c-stack test failure on MacOS X.
22443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22444         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22445         handler for SIGBUS as well.
22446         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22447         install a signal handler for SIGBUS as well.
22448         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22449
22450 2008-12-06  Bruno Haible  <bruno@clisp.org>
22451
22452         Advocacy documentation.
22453         * doc/gnulib-intro.texi (Benefits): New section.
22454         * doc/gnulib.texi: Update.
22455
22456 2008-12-06  Bruno Haible  <bruno@clisp.org>
22457
22458         Document the 'manywarnings' module.
22459         * doc/manywarnings.texi: New file.
22460         * doc/gnulib.texi: Include it.
22461
22462 2008-12-05  Eric Blake  <ebb9@byu.net>
22463
22464         tests: silence some gcc warnings
22465         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22466         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22467         type mismatches.
22468
22469 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22470             Bruno Haible  <bruno@clisp.org>
22471
22472         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22473
22474 2008-11-29  Jim Meyering  <meyering@redhat.com>
22475
22476         unicodeio.c: mark unused parameters
22477         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22478         (fallback_failure_callback): Likewise.
22479
22480         fts: fix a thinko
22481         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22482         (set_stat_type): Return S_IF*-valued "type" directly.
22483         Prompted by James Youngman's spotting a related bug.
22484         Confirmed by further testing through find.
22485
22486         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22487         * lib/fts.c (D_TYPE): Define.
22488         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22489         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22490         (s_ifmt_shift_bits): New function.
22491         (set_stat_type): New function.
22492         (fts_build): When not calling fts_stat, call set_stat_type
22493         to propagate dirent.d_type info to fts_read caller.
22494         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22495         fts_statp->st_mode type information may be valid.
22496
22497 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22498
22499         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22500         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22501         <sds@gnu.org>.
22502
22503 2008-11-20  Bruno Haible  <bruno@clisp.org>
22504
22505         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22506         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22507         INCLUDE_NEXT.
22508         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22509         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22510         * modules/math (Makefile.am): Substitute
22511         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22512         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22513
22514 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22515             Bruno Haible  <bruno@clisp.org>
22516
22517         * lib/stdint.in.h: Define all type macros so that their expansion is
22518         a single typedef'ed token. Fixes a compilation failure in Boost which
22519         does "using ::int8_t;".
22520
22521 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22522
22523         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22524         gl_MANYWARN_ALL_GCC.
22525         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22526         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22527         * modules/manywarnings: New file.
22528         * MODULES.html.sh: Mention manywarnings module.
22529
22530 2008-11-18  Bruno Haible  <bruno@clisp.org>
22531
22532         * doc/gnulib-tool.texi (Unit tests): New section.
22533
22534 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22535
22536         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22537         paths like 'lib/po/foo.po'.
22538
22539 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22540
22541         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22542         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22543
22544 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22545
22546         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22547         parameter works.
22548
22549 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22550
22551         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22552
22553 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22554
22555         * modules/parse-duration-tests: New file.
22556         * tests/test-parse-duration.sh: New file.
22557         * tests/test-parse-duration.c: New file.
22558
22559         New module 'parse-duration'.
22560         * lib/parse-duration.h: New file.
22561         * lib/parse-duration.c: New file.
22562         * modules/parse-duration: New file.
22563
22564 2008-11-17  Bruno Haible  <bruno@clisp.org>
22565
22566         * tests/test-select-out.sh: Comment out the first pipe test.
22567         Reported by Simon Josefsson.
22568
22569 2008-11-17  Bruno Haible  <bruno@clisp.org>
22570
22571         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22573         gl_HOSTENT.
22574
22575 2008-11-17  Bruno Haible  <bruno@clisp.org>
22576
22577         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22578         -lnetwork and -lnet. Needed for Haiku and BeOS.
22579
22580 2008-11-16  Bruno Haible  <bruno@clisp.org>
22581
22582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22583
22584 2008-11-16  Bruno Haible  <bruno@clisp.org>
22585
22586         Avoid test failure on Haiku.
22587         * tests/test-fsync.c: Include <errno.h>.
22588         (main): Don't require that fsync (0) fails.
22589
22590 2008-11-15  Bruno Haible  <bruno@clisp.org>
22591
22592         New module 'hostent'.
22593         * modules/hostent: New file.
22594         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22595
22596 2008-11-15  Bruno Haible  <bruno@clisp.org>
22597
22598         New module 'servent'.
22599         * modules/servent: New file.
22600         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22601
22602 2008-11-15  Bruno Haible  <bruno@clisp.org>
22603
22604         Avoid generating same test program with two different rules.
22605         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22606         test-frexp to test-frexp-nolibm.
22607         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22608         test-frexpl to test-frexpl-nolibm.
22609
22610 2008-11-15  Bruno Haible  <bruno@clisp.org>
22611
22612         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22613         $(FREXPL_LIBM).
22614
22615 2008-11-15  Bruno Haible  <bruno@clisp.org>
22616
22617         * lib/netdb.in.h: Activate the definitions also when the system's
22618         <netdb.h> has 'struct addrinfo'.
22619         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
22620         EAI_OVERFLOW or AI_NUMERICSERV.
22621         * doc/posix-headers/netdb.texi: Document the problem.
22622
22623 2008-11-15  Bruno Haible  <bruno@clisp.org>
22624
22625         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
22626
22627         Make the 'sched' module work on platforms where <sched.h> exists but
22628         is incomplete (such as Haiku).
22629         * lib/sched.in.h; Include the system's <sched.h> if it exists.
22630         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
22631         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
22632         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
22633         HAVE_STRUCT_SCHED_PARAM.
22634         * modules/sched (Depends-on): Add include_next.
22635         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
22636         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
22637         * doc/posix-headers/sched.texi: Document the issue.
22638
22639 2008-11-13  Jim Meyering  <meyering@redhat.com>
22640
22641         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22642         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22643         test would fail due to the difference in the Report bugs to ...
22644         line.  The expected address is empty, "<>", while the actual
22645         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22646
22647 2008-11-12  Bruno Haible  <bruno@clisp.org>
22648
22649         lstat: don't compile lstat.c on systems lacking lstat
22650         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22651         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22652         Reported by Daniel P. Berrange via Jim Meyering.
22653
22654 2008-11-12  Jim Meyering  <meyering@redhat.com>
22655
22656         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22657
22658 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22659
22660         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22661         instead.
22662
22663 2008-11-12  Bruno Haible  <bruno@clisp.org>
22664
22665         * lib/unicodeio.c: Include unistr.h.
22666         (utf8_wctomb): Remove function.
22667         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22668
22669 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22670
22671         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22672         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22673         <bruno@clisp.org>.
22674         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22675
22676 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22677
22678         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22679         * doc/gnulib.texi: Add section for warnings.
22680
22681 2008-11-11  Bruno Haible  <bruno@clisp.org>
22682
22683         * lib/sockets.h: Add a comment.
22684
22685 2008-11-11  Karl Berry  <karl@gnu.org>
22686
22687         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22688
22689 2008-11-11  Eric Blake  <ebb9@byu.net>
22690
22691         fdl.texi: avoid git symlinks
22692         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22693
22694 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22695
22696         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22697
22698 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22699
22700         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22701         (gl_WARN_ADD): Substitute $2 if literal.
22702
22703 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22704
22705         * m4/warning.m4: Remove.
22706
22707 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22708
22709         * m4/warnings.m4: Almost complete rewrite. :-)
22710
22711 2008-11-10  Simon Josefsson  <simon@josefsson.org>
22712
22713         * modules/warnings: New module.
22714         * m4/warnings.m4: New file.
22715         * MODULES.html.sh: Mention warnings module.
22716         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
22717         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22718
22719 2008-11-10  Eric Blake  <ebb9@byu.net>
22720
22721         fdl.texi: make a symlink to the latest version
22722         * doc/standards.texi: Revert today's earlier change.
22723         * doc/fdl-1.2.texi: Rename from old fdl.texi...
22724         * doc/fdl.texi: ...and replace this with a symlink to the newer
22725         fdl-1.3.texi.
22726
22727 2008-11-10  Bruno Haible  <bruno@clisp.org>
22728
22729         * tests/test-select-fd.c (main): Accept the result file name as fourth
22730         argument.
22731         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
22732         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
22733
22734 2008-11-10  Bruno Haible  <bruno@clisp.org>
22735
22736         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
22737         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
22738         as autoconf-substituted macros.
22739         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
22740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
22741         gl_NETDB_H_DEFAULTS. Set these variables.
22742         * modules/netdb (Makefile.am): Substitute these variables.
22743
22744 2008-11-10  Eric Blake  <ebb9@byu.net>
22745
22746         standards.texi: include correct file for FDL 1.3
22747         * doc/standards.texi (GNU Free Documentation License): Change
22748         include file to pull in FDL 1.3, not 1.2.
22749
22750         fdl.texi: revert accidental change to license
22751         * doc/fdl.texi: This is FDL 1.2, not 1.3.
22752
22753 2008-11-10  Bruno Haible  <bruno@clisp.org>
22754
22755         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
22756         cross-compiling guesses also when the native compile gives no result.
22757
22758 2008-11-10  Bruno Haible  <bruno@clisp.org>
22759
22760         * lib/spawni.c (__spawni): Force variable into the stack.
22761
22762 2008-11-10  Bruno Haible  <bruno@clisp.org>
22763
22764         Add support for Haiku.
22765         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
22766         glibc and BeOS, but also on Haiku.
22767         * lib/fpurge.c (fpurge): Likewise.
22768         * lib/freadable.c (freadable): Likewise.
22769         * lib/freadahead.c (freadahead): Likewise.
22770         * lib/freading.c (freading): Likewise.
22771         * lib/freadptr.c (freadptr): Likewise.
22772         * lib/freadseek.c (freadptrinc): Likewise.
22773         * lib/fseeko.c (rpl_fseeko): Likewise.
22774         * lib/fseterr.c (fseterr): Likewise.
22775         * lib/fwritable.c (fwritable): Likewise.
22776         * lib/fwriting.c (fwriting): Likewise.
22777         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
22778
22779 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22780
22781         * lib/config.charset: Treat Haiku like BeOS.
22782
22783 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22784
22785         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
22786         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
22787
22788 2008-11-08  Bruno Haible  <bruno@clisp.org>
22789
22790         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
22791         AC_CACHE_CHECK.
22792
22793 2008-11-08  Bruno Haible  <bruno@clisp.org>
22794
22795         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
22796
22797 2008-11-08  Bruno Haible  <bruno@clisp.org>
22798
22799         * tests/test-select-fd.c: New file.
22800         * tests/test-select-in.sh: New file.
22801         * tests/test-select-out.sh: New file.
22802         * tests/test-select-stdin.c: New file.
22803         * modules/select-tests (Files): Add the new files.
22804         (Depends-on): Add gettimeofday.
22805         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
22806         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
22807         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
22808
22809 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
22810             Bruno Haible  <bruno@clisp.org>
22811
22812         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
22813
22814 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
22815
22816         * build-aux/pmccabe2html: Added support for C++ source files.
22817
22818 2008-11-05  Ben Pfaff  <blp@gnu.org>
22819
22820         Fix lib/close.c build on Windows.
22821         * modules/close (Files): Add lib/w32sock.h.
22822
22823 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
22824
22825         Accept Bison's NEWS format.
22826         * build-aux/announce-gen (print_news_deltas): Tweak
22827         $re_prefix.
22828
22829 2008-11-04  Bruno Haible  <bruno@clisp.org>
22830
22831         * modules/random_r (Maintainer): Add glibc.
22832
22833 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22834
22835         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
22836         by karl@freefriends.org (Karl Berry).
22837         * doc/alloca.texi: Likewise.
22838         * doc/c-ctype.texi: Likewise.
22839         * doc/c-strcase.texi: Likewise.
22840         * doc/c-strcaseeq.texi: Likewise.
22841         * doc/c-strcasestr.texi: Likewise.
22842         * doc/c-strstr.texi: Likewise.
22843         * doc/c-strtod.texi: Likewise.
22844         * doc/c-strtold.texi: Likewise.
22845         * doc/ctime.texi: Likewise.
22846         * doc/error.texi: Likewise.
22847         * doc/fdl.texi: Likewise.
22848         * doc/gcd.texi: Likewise.
22849         * doc/getdate.texi: Likewise.
22850         * doc/gnulib-intro.texi: Likewise.
22851         * doc/gnulib-tool.texi: Likewise.
22852         * doc/gnulib.texi: Likewise.
22853         * doc/inet_ntoa.texi: Likewise.
22854         * doc/maintain.texi: Likewise.
22855         * doc/make-stds.texi: Likewise.
22856         * doc/quote.texi: Likewise.
22857         * doc/regexprops-generic.texi: Likewise.
22858         * doc/standards.texi: Likewise.
22859         * doc/verify.texi: Likewise.
22860         * doc/visibility.texi: Likewise.
22861         * doc/gnulib.texi (GNU Free Documentation License): Include
22862         fdl-1.3.texi instead of fdl.texi.
22863
22864 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22865
22866         * doc/fdl-1.3.texi: New file, from
22867         <http://www.gnu.org/licenses/fdl-1.3.texi>.
22868         * modules/fdl-1.3: Add.
22869         * MODULES.html.sh: Add fdl-1.3.
22870
22871 2008-11-03  Bruno Haible  <bruno@clisp.org>
22872
22873         Make determination of absolute name of header file work with AIX xlc.
22874         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
22875         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
22876         preprocessing.
22877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22878         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22879
22880 2008-11-03  Simon Josefsson  <simon@josefsson.org>
22881
22882         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
22883         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
22884         <ludo@gnu.org>.
22885
22886 2008-11-02  Bruno Haible  <bruno@clisp.org>
22887
22888         Mark 'strpbrk' obsolete.
22889         * modules/strpbrk (Status, Notice): New sections.
22890         * modules/strtok_r (Depends-on): Add strpbrk.
22891
22892 2008-11-02  Bruno Haible  <bruno@clisp.org>
22893
22894         Mark 'strdup' obsolete.
22895         * modules/strdup (Status, Notice): New sections.
22896         * modules/findprog (Depends-on): Add strdup.
22897         * modules/getaddrinfo (Depends-on): Likewise.
22898         * modules/localename (Depends-on): Likewise.
22899         * modules/relocatable-lib (Depends-on): Likewise.
22900         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
22901         * modules/relocatable-prog (Depends-on): Likewise.
22902         * modules/trim (Depends-on): Likewise.
22903         * modules/unictype/gen-ctype (Depends-on): Likewise.
22904         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
22905
22906 2008-11-02  Bruno Haible  <bruno@clisp.org>
22907
22908         Mark 'strcspn' obsolete.
22909         * modules/strcspn (Status, Notice): New sections.
22910
22911 2008-11-02  Bruno Haible  <bruno@clisp.org>
22912
22913         Mark 'rmdir' obsolete.
22914         * modules/rmdir (Status, Notice): New sections.
22915         * modules/clean-temp (Depends-on): Add rmdir.
22916         * modules/openat (Depends-on): Likewise.
22917
22918 2008-11-02  Bruno Haible  <bruno@clisp.org>
22919
22920         Mark 'raise' obsolete.
22921         * modules/raise (Status, Notice): New sections.
22922         (Include): Specify <signal.h>.
22923         * modules/stdio (Depends-on): Add raise.
22924         * modules/write (Depends-on): Likewise.
22925
22926 2008-11-02  Bruno Haible  <bruno@clisp.org>
22927
22928         Mark 'memset' obsolete.
22929         * modules/memset (Status, Notice): New sections.
22930
22931 2008-11-02  Bruno Haible  <bruno@clisp.org>
22932
22933         Mark 'memmove' obsolete.
22934         * modules/memmove (Status, Notice): New sections.
22935         * modules/argp (Depends-on): Add memmove.
22936         * modules/argz (Depends-on): Likewise.
22937         * modules/canonicalize (Depends-on): Likewise.
22938         * modules/canonicalize-lgpl (Depends-on): Likewise.
22939         * modules/fts (Depends-on): Likewise.
22940         * modules/getcwd (Depends-on): Likewise.
22941         * modules/human (Depends-on): Likewise.
22942         * modules/regex (Depends-on): Likewise.
22943         * modules/striconveh (Depends-on): Likewise.
22944         * modules/trim (Depends-on): Likewise.
22945         * modules/unistr/u8-move (Depends-on): Likewise.
22946         * modules/unistr/u16-move (Depends-on): Likewise.
22947         * modules/unistr/u32-move (Depends-on): Likewise.
22948
22949 2008-11-02  Bruno Haible  <bruno@clisp.org>
22950
22951         Mark 'memcpy' obsolete.
22952         * modules/memcpy (Status, Notice): New sections.
22953
22954 2008-11-02  Bruno Haible  <bruno@clisp.org>
22955
22956         Mark 'memcmp' obsolete.
22957         * modules/memcmp (Status, Notice): New sections.
22958         * modules/argmatch (Depends-on): Add memchr.
22959         * modules/backupfile (Depends-on): Likewise.
22960         * modules/c-strcasestr (Depends-on): Likewise.
22961         * modules/crypto/des (Depends-on): Likewise.
22962         * modules/csharpcomp (Depends-on): Likewise.
22963         * modules/fnmatch (Depends-on): Likewise.
22964         * modules/git-merge-changelog (Depends-on): Likewise.
22965         * modules/isnand (Depends-on): Likewise.
22966         * modules/isnand-nolibm (Depends-on): Likewise.
22967         * modules/isnanf (Depends-on): Likewise.
22968         * modules/isnanf-nolibm (Depends-on): Likewise.
22969         * modules/isnanl (Depends-on): Likewise.
22970         * modules/isnanl-nolibm (Depends-on): Likewise.
22971         * modules/mbchar (Depends-on): Likewise.
22972         * modules/memcoll (Depends-on): Likewise.
22973         * modules/quotearg (Depends-on): Likewise.
22974         * modules/regex (Depends-on): Likewise.
22975         * modules/relocatable-prog (Depends-on): Likewise.
22976         * modules/same (Depends-on): Likewise.
22977         * modules/signbit (Depends-on): Likewise.
22978         * modules/strcasestr-simple (Depends-on): Likewise.
22979         * modules/unictype/gen-ctype (Depends-on): Likewise.
22980         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
22981         * modules/uniname/uniname (Depends-on): Likewise.
22982         * modules/unistr/u8-cmp (Depends-on): Likewise.
22983
22984 2008-11-02  Bruno Haible  <bruno@clisp.org>
22985
22986         Mark 'memchr' obsolete.
22987         * modules/memchr (Status, Notice): New sections.
22988         * modules/argp (Depends-on): Add memchr.
22989         * modules/base64 (Depends-on): Likewise.
22990         * modules/c-strcasestr (Depends-on): Likewise.
22991         * modules/chdir-long (Depends-on): Likewise.
22992         * modules/fnmatch (Depends-on): Likewise.
22993         * modules/getsubopt (Depends-on): Likewise.
22994         * modules/git-merge-changelog (Depends-on): Likewise.
22995         * modules/glob (Depends-on): Likewise.
22996         * modules/strcasestr-simple (Depends-on): Likewise.
22997         * modules/strnlen (Depends-on): Likewise.
22998
22999 2008-11-02  Bruno Haible  <bruno@clisp.org>
23000
23001         Mark 'atexit' obsolete.
23002         * modules/atexit (Status, Notice): New sections.
23003         * modules/chdir-long (Depends-on): Add atexit.
23004         * modules/wait-process (Depends-on): Likewise.
23005
23006 2008-11-02  Bruno Haible  <bruno@clisp.org>
23007
23008         * gnulib-tool: New option --with-obsolete.
23009         (func_usage): Document it.
23010         (func_modules_transitive_closure): Drop obsolete dependencies if
23011         incobsolete is not true.
23012         (func_import): Read and save the incobsolete variable to the cache.
23013
23014 2008-11-02  Bruno Haible  <bruno@clisp.org>
23015
23016         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23017         * gnulib-tool: New option --extract-status.
23018         (func_usage): Document it.
23019         (sed_extract_prog): Recognize it.
23020         (func_get_status): New function.
23021
23022 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23023
23024         * modules/sockets (License): Change from LGPL to LGPLv2+.
23025
23026 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23027
23028         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23029
23030 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23031
23032         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23033         Mention times and sys_times.
23034         * modules/sys_times, modules/sys_times-tests: New modules.
23035         * modules/times, modules/times-tests: Likewise
23036         * m4/sys_times_h.m4: New file.
23037         * lib/sys_times.in.h: Likewise
23038         * lib/times.c: Likewise.
23039         * tests/test-sys_times.c: Likewise.
23040         * tests/test-times.c: Likewise.
23041         * doc/posix-headers/sys_times.texi: Update.
23042         * doc/posix-functions/times.texi: Update.
23043
23044 2008-10-28  Jim Meyering  <meyering@redhat.com>
23045
23046         * modules/tempname (Depends-on): Add lstat.
23047
23048         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23049
23050 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23051
23052         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23053         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23054         using idiom used elsewhere in gnulib.
23055
23056 2008-10-27  Jim Meyering  <meyering@redhat.com>
23057
23058         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23059
23060 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23061
23062         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23063         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23064         programs.
23065         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23066
23067 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23068
23069         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23070
23071 2008-10-27  Bruno Haible  <bruno@clisp.org>
23072
23073         * tests/test-lstat.c: Include <stdio.h>.
23074
23075 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23076
23077         * modules/lstat-tests: New module.
23078         * tests/test-lstat.c: New file.
23079
23080 2008-10-26  Jim Meyering  <meyering@redhat.com>
23081
23082         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23083
23084 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23085             Bruno Haible  <bruno@clisp.org>
23086
23087         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23088         * modules/configmake (Include): Add a note that the include must come
23089         after all system headers.
23090         * lib/javaversion.c: Include configmake.h after all other includes.
23091
23092 2008-10-26  Bruno Haible  <bruno@clisp.org>
23093
23094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23095         HAVE_STRUCT_RANDOM_DATA to 1.
23096         (gl_STDLIB_H): Simplify.
23097
23098 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23099
23100         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23101         substitute HAVE_STRUCT_RANDOM_DATA.
23102         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23103         random_data.
23104         * modules/stdlib (Makefile.am): Substitute
23105         HAVE_STRUCT_RANDOM_DATA.
23106
23107 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23108
23109         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23110         * doc/gnulib-intro.texi (Copyright): Likewise.
23111
23112 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23113
23114         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23115         findings.
23116
23117 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23118             Bruno Haible  <bruno@clisp.org>
23119
23120         * lib/unistd.in.h: Include <winsock2.h>.
23121         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23122         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23123         Provide dummy declarations.
23124         (gethostname): Override.
23125         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23126         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23127         gl_PREREQ_SYS_H_WINSOCK2.
23128         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23129         * doc/posix-functions/gethostname.texi: More details.
23130
23131 2008-10-25  Bruno Haible  <bruno@clisp.org>
23132
23133         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23134         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23135         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23136
23137         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23138         here ...
23139         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23140         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23141         gl_UNISTD_H_DEFAULTS.
23142
23143 2008-10-25  Eric Blake  <ebb9@byu.net>
23144
23145         signbit: avoid spurious compiler failure
23146         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23147         declarations inside function.
23148
23149 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23150             Bruno Haible  <bruno@clisp.org>
23151
23152         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23153         * modules/random_r (Depends-on): Add stdint.
23154
23155 2008-10-24  Bruno Haible  <bruno@clisp.org>
23156
23157         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23158         Eggert.
23159         * modules/strerror (License): Likewise.
23160
23161 2008-10-24  Jim Meyering  <meyering@redhat.com>
23162
23163         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23164         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23165
23166 2008-10-24  Eric Blake  <ebb9@byu.net>
23167
23168         getgroups: fix compilation when getgroups is available
23169         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23170         but with <config.h> override of getgroups disabled.
23171
23172 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23173
23174         * doc/gnulib.texi (Header files): Add note about C++ problems.
23175         Explained by Bruno Haible <bruno@clisp.org>.
23176
23177 2008-10-23  Bruno Haible  <bruno@clisp.org>
23178
23179         Define a dummy SA_NODEFER macro on Interix.
23180         * lib/signal.in.h (SA_NODEFER): Define fallback.
23181         Reported by Aleksey Cheusov <cheusov@tut.by> via
23182         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23183
23184 2008-10-23  Bruno Haible  <bruno@clisp.org>
23185
23186         * modules/freadahead (License): Change to LGPLv2+.
23187         Suggested by Simon Josefsson.
23188
23189 2008-10-23  Jim Meyering  <meyering@redhat.com>
23190
23191         random_r: new module
23192         * modules/random_r: New file.
23193         * m4/random_r.m4: New file.
23194         * lib/random_r.c: New file, from glibc.
23195         * modules/random_r-tests: New file.
23196         * tests/test-random_r.c: New file.
23197         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23198          Declare.
23199         (RAND_MAX): Define.
23200         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23201         * modules/stdlib: Substitute them, too.
23202         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23203         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23204         * doc/glibc-functions/random_r.texi: Likewise.
23205         * doc/glibc-functions/setstate_r.texi: Likewise.
23206         * doc/glibc-functions/srandom_r.texi: Likewise.
23207         * config/srclist.txt: Mention it.
23208
23209 2008-10-23  David Lutterkort  <lutter@redhat.com>
23210
23211         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23212         link requirement
23213
23214 2008-10-23  Jim Meyering  <meyering@redhat.com>
23215
23216         selinux-h: mark parameters of stub functions as intentionally unused
23217         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23218         * lib/se-context.in.h: Likewise.
23219
23220 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23221
23222         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23223
23224 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23225
23226         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23227
23228 2008-10-22  Eric Blake  <ebb9@byu.net>
23229
23230         glthread/thread: avoid compiler warning
23231         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23232         Add unreachable abort to silence compiler.
23233
23234 2008-10-22  Eric Blake  <ebb9@byu.net>
23235
23236         netdb: also supply struct addrinfo for cygwin 1.5.x
23237         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23238         older cygwin.
23239         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23240         cygwin.
23241         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23242
23243 2008-10-22  Bruno Haible  <bruno@clisp.org>
23244
23245         * users.txt: Update entry about pspp.
23246
23247 2008-10-21  Bruno Haible  <bruno@clisp.org>
23248
23249         Simplification.
23250         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23251         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23252
23253         Simplification.
23254         * lib/ioctl.c (ioctl): Don't undefine.
23255         * lib/socket.c (socket): Don't undefine.
23256
23257         Remove unused module indicator macros.
23258         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23259         GNULIB_$1 as a C macro.
23260
23261         * doc/posix-functions/close.texi: Undo last change.
23262         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23263         Windows platforms.
23264
23265 2008-10-21  Bruno Haible  <bruno@clisp.org>
23266
23267         Add gethostname() declaration to <unistd.h>.
23268         * lib/unistd.in.h (gethostname): New declaration.
23269         * lib/gethostname.c: Include <unistd.h>.
23270         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23271         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23273         and HAVE_GETHOSTNAME.
23274         * modules/gethostname (Depends-on): Add unistd.
23275         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23276         (Include): Specify <unistd.h>.
23277         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23278         HAVE_GETHOSTNAME.
23279         * tests/test-gethostname.c: Include <unistd.h> first.
23280
23281 2008-10-21  Bruno Haible  <bruno@clisp.org>
23282
23283         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23284         * modules/select-tests (Depends-on): Likewise.
23285         Reported by Simon Josefsson.
23286
23287 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23288
23289         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23290         * lib/accept.c: New file, based on winsock.c.
23291         * lib/bind.c: New file, based on winsock.c.
23292         * lib/connect.c: New file, based on winsock.c.
23293         * lib/getpeername.c: New file, based on winsock.c.
23294         * lib/getsockname.c: New file, based on winsock.c.
23295         * lib/getsockopt.c: New file, based on winsock.c.
23296         * lib/ioctl.c: New file, based on winsock.c.
23297         * lib/listen.c: New file, based on winsock.c.
23298         * lib/recv.c: New file, based on winsock.c.
23299         * lib/recvfrom.c: New file, based on winsock.c.
23300         * lib/send.c: New file, based on winsock.c.
23301         * lib/sendto.c: New file, based on winsock.c.
23302         * lib/setsockopt.c: New file, based on winsock.c.
23303         * lib/shutdown.c: New file, based on winsock.c.
23304         * lib/socket.c: New file, based on winsock.c.
23305         * lib/w32sock.h: New file, based on winsock.c.
23306         * lib/winsock.c: Remove file.
23307         * modules/accept: Likewise.
23308         * modules/bind: Likewise.
23309         * modules/connect: Likewise.
23310         * modules/getpeername: Likewise.
23311         * modules/getsockname: Likewise.
23312         * modules/getsockopt: Likewise.
23313         * modules/ioctl: Likewise.
23314         * modules/listen: Likewise.
23315         * modules/recv: Likewise.
23316         * modules/recvfrom: Likewise.
23317         * modules/send: Likewise.
23318         * modules/sendto: Likewise.
23319         * modules/setsockopt: Likewise.
23320         * modules/shutdown: Likewise.
23321         * modules/socket: Use socket.c instead of winsock.c.
23322         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23323         * doc/posix-functions/accept.texi: Doc fix.
23324         * doc/posix-functions/bind.texi: Doc fix.
23325         * doc/posix-functions/close.texi: Doc fix.
23326         * doc/posix-functions/connect.texi: Doc fix.
23327         * doc/posix-functions/getpeername.texi: Doc fix.
23328         * doc/posix-functions/getsockname.texi: Doc fix.
23329         * doc/posix-functions/getsockopt.texi: Doc fix.
23330         * doc/posix-functions/ioctl.texi: Doc fix.
23331         * doc/posix-functions/listen.texi: Doc fix.
23332         * doc/posix-functions/recv.texi: Doc fix.
23333         * doc/posix-functions/recvfrom.texi: Doc fix.
23334         * doc/posix-functions/send.texi: Doc fix.
23335         * doc/posix-functions/sendto.texi: Doc fix.
23336         * doc/posix-functions/setsockopt.texi: Doc fix.
23337         * doc/posix-functions/shutdown.texi: Doc fix.
23338         * doc/posix-functions/socket.texi: Doc fix.
23339
23340 2008-10-20  Bruno Haible  <bruno@clisp.org>
23341
23342         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23343         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23344         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23345         as an alias for SIGABRT.
23346         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23347         (sigaction): Map it to SIGABRT.
23348         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23349
23350 2008-10-20  Bruno Haible  <bruno@clisp.org>
23351
23352         * lib/fts.c: Don't include lstat.h.
23353         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23354
23355         Move the lstat() declaration to <sys/stat.h>.
23356         * lib/lstat.h: Remove file.
23357         * lib/sys_stat.in.h: Add special invocation convention.
23358         (lstat): New declaration.
23359         * lib/lstat.c (orig_lstat): New function.
23360         (rpl_lstat): Use orig_lstat instead of lstat.
23361         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23362         AC_C_INLINE. Set REPLACE_LSTAT.
23363         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23364         and REPLACE_LSTAT.
23365         * modules/lstat (Files): Remove lib/lstat.h.
23366         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23367         (Include): Specify <sys/stat.h> instead of lstat.h.
23368         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23369         REPLACE_LSTAT.
23370         * NEWS: Mention the change.
23371
23372 2008-10-20  Bruno Haible  <bruno@clisp.org>
23373
23374         * modules/posix_spawn-tests: New file.
23375         * tests/test-posix_spawn3.c: New file.
23376
23377 2008-10-20  Bruno Haible  <bruno@clisp.org>
23378
23379         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23380         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23381         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23382         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23383         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23384
23385 2008-10-20  Bruno Haible  <bruno@clisp.org>
23386
23387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23388         of posix_spawn on AIX 5.3.
23389
23390 2008-10-20  Bruno Haible  <bruno@clisp.org>
23391
23392         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23393
23394 2008-10-20  Bruno Haible  <bruno@clisp.org>
23395
23396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23397         of AC_LANG_PROGRAM.
23398
23399 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23400
23401         * lib/netdb.in.h: Don't define GNU specific constants until they
23402         are supported or needed.  Reported by Bruno Haible
23403         <bruno@clisp.org>.
23404
23405 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23406
23407         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23408
23409 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23410
23411         * lib/getaddrinfo.h: Remove file.
23412         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23413         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23414         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23415         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23416         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23417         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23418         * tests/test-getaddrinfo.c: Likewise.
23419         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23420         * NEWS: Mention change.
23421
23422 2008-10-19  Bruno Haible  <bruno@clisp.org>
23423
23424         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23425
23426 2008-10-19  Bruno Haible  <bruno@clisp.org>
23427
23428         * lib/wait-process.c: Include simply <sys/wait.h>.
23429         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23430         WIFSTOPPED): Remove fallback definitions.
23431         * modules/wait-process (Depends-on): Add sys_wait.
23432
23433         New module 'sys_wait'.
23434         * modules/sys_wait: New file.
23435         * lib/sys_wait.in.h: New file, partially copied from
23436         lib/wait-process.c.
23437         * m4/sys_wait_h.m4: New file.
23438         * doc/posix-headers/sys_wait.texi: Mention the new module.
23439
23440 2008-10-19  Bruno Haible  <bruno@clisp.org>
23441
23442         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23443
23444 2008-10-19  Bruno Haible  <bruno@clisp.org>
23445
23446         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23447         * lib/wait-process.c (WAIT_T): Remove type.
23448         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23449         (wait_subprocess): Update.
23450
23451 2008-10-19  Bruno Haible  <bruno@clisp.org>
23452
23453         New module 'atoll'.
23454         * modules/atoll: New file.
23455         * lib/stdlib.in.h (atoll): New declaration.
23456         * lib/atoll.c: New file, from glibc with modifications.
23457         * m4/atoll.m4: New file.
23458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23459         HAVE_ATOLL.
23460         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23461         * doc/posix-functions/atoll.texi: Mention the new module.
23462
23463 2008-10-19  Bruno Haible  <bruno@clisp.org>
23464
23465         Add strtoull() declaration to <stdlib.h>.
23466         * lib/stdlib.in.h (strtoull): New declaration.
23467         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23468         Set HAVE_STRTOULL.
23469         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23470         HAVE_STRTOULL.
23471         * modules/strtoull (Depends-on): Add stdlib.
23472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23473         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23474         HAVE_STRTOULL.
23475
23476 2008-10-19  Bruno Haible  <bruno@clisp.org>
23477
23478         Add strtoll() declaration to <stdlib.h>.
23479         * lib/stdlib.in.h (strtoll): New declaration.
23480         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23481         Set HAVE_STRTOLL.
23482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23483         HAVE_STRTOLL.
23484         * modules/strtoll (Depends-on): Add stdlib.
23485         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23486         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23487
23488 2008-10-19  Bruno Haible  <bruno@clisp.org>
23489
23490         * modules/bcopy (Depends-on): Add strings.
23491         (Include): Specify <strings.h>.
23492
23493 2008-10-19  Bruno Haible  <bruno@clisp.org>
23494
23495         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23496
23497 2008-10-19  Bruno Haible  <bruno@clisp.org>
23498
23499         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23500         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23501         mingw.
23502
23503 2008-10-19  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/atanl.c: Don't include isnanl.h.
23506         * lib/cosl.c: Likewise.
23507         * lib/ldexpl.c: Likewise.
23508         * lib/logl.c: Likewise.
23509         * lib/sinl.c: Likewise.
23510         * lib/sqrtl.c: Likewise.
23511         * lib/tanl.c: Likewise.
23512
23513         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23514         * lib/isnanf.h: Remove file.
23515         * lib/isnand.h: Remove file.
23516         * lib/isnanl.h: Remove file.
23517         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23518         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23519         macros.
23520         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23521         HAVE_ISNANF, don't define it as a C macro.
23522         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23523         HAVE_ISNAND, don't define it as a C macro.
23524         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23525         HAVE_ISNANL, don't define it as a C macro.
23526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23527         HAVE_ISNAN[FDL].
23528         * modules/isnanf (Files): Remove lib/isnanf.h.
23529         (Depends-on): Add math.
23530         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23531         (Include): Specify <math.h> instead of isnanf.h.
23532         * modules/isnand (Files): Remove lib/isnand.h.
23533         (Depends-on): Add math.
23534         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23535         (Include): Specify <math.h> instead of isnand.h.
23536         * modules/isnanl (Files): Remove lib/isnanl.h.
23537         (Depends-on): Add math.
23538         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23539         (Include): Specify <math.h> instead of isnanl.h.
23540         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23541         HAVE_ISNAN[FDL].
23542         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23543         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23544         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23545         * NEWS: Mention the change.
23546
23547 2008-10-18  Bruno Haible  <bruno@clisp.org>
23548
23549         Add getusershell(), setusershell(), endusershell() declarations to
23550         <unistd.h>.
23551         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23552         declarations.
23553         * lib/getusershell.c: Include unistd.h.
23554         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23555         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23556         HAVE_GETUSERSHELL.
23557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23558         and HAVE_GETUSERSHELL.
23559         * modules/getusershell (Depends-on): Add unistd, extensions.
23560         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23561         (Include): Specify <unistd.h>.
23562         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23563         HAVE_GETUSERSHELL.
23564
23565 2008-10-18  Bruno Haible  <bruno@clisp.org>
23566
23567         Add a getloadavg() declaration to <stdlib.h>.
23568         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23569         getloadavg declaration.
23570         (getloadavg): New declaration.
23571         * lib/getloadavg.c: Include <stdlib.h> first.
23572         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23573         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23574         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23576         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23577         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23578         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23579         (Include): Specify <stdlib.h>.
23580         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23581         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23582
23583 2008-10-18  Bruno Haible  <bruno@clisp.org>
23584
23585         * lib/dirchownmod.c: Don't include lchmod.h.
23586
23587         Move the lchmod() declaration to <sys/stat.h>.
23588         * lib/lchmod.h: Remove file.
23589         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23590         (lchmod): New declaration, moved here from lib/lchown.h.
23591         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23592         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23593         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23594         and HAVE_LCHMOD.
23595         * modules/lchmod (Files): Remove lib/lchmod.h.
23596         (Depends-on): Add sys_stat, extensions.
23597         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23598         (Include): Specify <sys/stat.h> instead of lchmod.h.
23599         * modules/sys_stat (Depends-on): Add link-warning.
23600         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23601         definition of GL_LINK_WARNING.
23602         * NEWS: Mention the change.
23603
23604 2008-10-18  Bruno Haible  <bruno@clisp.org>
23605
23606         * lib/fchdir.c: Don't include dirfd.h.
23607         * lib/fts.c: Likewise.
23608         * lib/getcwd.c: Likewise.
23609         * lib/glob.c: Likewise.
23610
23611         Move the dirfd() declaration to <dirent.h>.
23612         * lib/dirfd.h: Remove file.
23613         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23614         (dirfd): New declaration.
23615         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
23616         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
23617         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
23618         HAVE_DECL_DIRFD.
23619         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
23620         HAVE_DECL_DIRFD.
23621         * modules/dirfd (Files): Remove lib/dirfd.h.
23622         (Depends-on): Add dirent, extensions.
23623         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
23624         (Include): Specify <dirent.h> instead of dirfd.h.
23625         * modules/dirent (Depends-on): Add link-warning.
23626         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
23627         definition of GL_LINK_WARNING.
23628         * NEWS: Mention the change.
23629
23630 2008-10-18  Bruno Haible  <bruno@clisp.org>
23631
23632         Move the euidaccess() declaration to <unistd.h>.
23633         * lib/euidaccess.h: Remove file.
23634         * lib/unistd.in.h (euidaccess): New declaration.
23635         * lib/euidaccess.c: Don't include euidaccess.h.
23636         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
23637         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
23638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
23639         and HAVE_EUIDACCESS.
23640         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23641         (Depends-on): Add unistd.
23642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23643         (Include): Specify <unistd.h> instead of euidaccess.h.
23644         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23645         HAVE_EUIDACCESS.
23646         * NEWS: Mention the change.
23647
23648 2008-10-18  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23651
23652         Move the getdomainname() declaration to <unistd.h>.
23653         * lib/getdomainname.h: Remove file.
23654         * lib/unistd.in.h (getdomainname): New declaration.
23655         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23656         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23657         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23658         HAVE_GETDOMAINNAME.
23659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23660         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23661         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23662         (Depends-on): Add unistd, extensions.
23663         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23664         (Includes): Specify <unistd.h> instead of getdomainname.h.
23665         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23666         HAVE_GETDOMAINNAME.
23667         * NEWS: Mention the change.
23668
23669 2008-10-18  Bruno Haible  <bruno@clisp.org>
23670
23671         * modules/dirent: New file.
23672         * m4/dirent_h.m4: New file.
23673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23674         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23675         * modules/fchdir (Files): Remove lib/dirent.in.h.
23676         (Depends-on): Add dirent.
23677         (Makefile.am): Move rules to modules/dirent.
23678         * doc/posix-headers/dirent.texi: Mention the new module.
23679
23680 2008-10-18  Bruno Haible  <bruno@clisp.org>
23681
23682         Avoid -Wunused-parameter warnings in public gnulib header files.
23683         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23684         macro.
23685         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23686
23687 2008-10-18  Bruno Haible  <bruno@clisp.org>
23688
23689         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23690         * doc/glibc-functions/error.texi: Mention the module 'error'.
23691         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23692         * doc/glibc-functions/getdomainname.texi: Mention the module
23693         'getdomainname'.
23694         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23695         * doc/glibc-functions/getpagesize.texi: Mention the module
23696         'getpagesize'.
23697         * doc/glibc-functions/getusershell.texi: Mention the module
23698         'getusershell'.
23699         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23700         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23701         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23702         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23703         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23704         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23705         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23706         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23707         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23708         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23709         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
23710         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
23711         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
23712         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
23713
23714 2008-10-17  Bruno Haible  <bruno@clisp.org>
23715
23716         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
23717         HP-UX and IRIX, use -0.0L.
23718         * tests/test-ceill.c (minus_zero): Likewise.
23719         * tests/test-floorl.c (minus_zero): Likewise.
23720         * tests/test-frexpl.c (minus_zero): Likewise.
23721         * tests/test-isnan.c (minus_zerol): Likewise.
23722         * tests/test-isnanl.h (minus_zero): Likewise.
23723         * tests/test-ldexpl.c (minus_zero): Likewise.
23724         * tests/test-roundl.c (minus_zero): Likewise.
23725         * tests/test-signbit.c (minus_zerol): Likewise.
23726         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23727         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23728         * tests/test-truncl.c (minus_zero): Likewise.
23729         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23730         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23731         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
23732         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23733
23734 2008-10-17  Bruno Haible  <bruno@clisp.org>
23735
23736         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
23737         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
23738         that it gets activated only for gcc >= 3.0.
23739         * lib/dirent.in.h: Likewise.
23740         * lib/errno.in.h: Likewise.
23741         * lib/fcntl.in.h: Likewise.
23742         * lib/float.in.h: Likewise.
23743         * lib/iconv.in.h: Likewise.
23744         * lib/inttypes.in.h: Likewise.
23745         * lib/locale.in.h: Likewise.
23746         * lib/math.in.h: Likewise.
23747         * lib/netdb.in.h: Likewise.
23748         * lib/netinet_in.in.h: Likewise.
23749         * lib/search.in.h: Likewise.
23750         * lib/signal.in.h: Likewise.
23751         * lib/spawn.in.h: Likewise.
23752         * lib/stdarg.in.h: Likewise.
23753         * lib/stdint.in.h: Likewise.
23754         * lib/stdio.in.h: Likewise.
23755         * lib/stdlib.in.h: Likewise.
23756         * lib/string.in.h: Likewise.
23757         * lib/strings.in.h: Likewise.
23758         * lib/sys_file.in.h: Likewise.
23759         * lib/sys_ioctl.in.h: Likewise.
23760         * lib/sys_select.in.h: Likewise.
23761         * lib/sys_socket.in.h: Likewise.
23762         * lib/sys_stat.in.h: Likewise.
23763         * lib/sys_time.in.h: Likewise.
23764         * lib/sysexits.in.h: Likewise.
23765         * lib/time.in.h: Likewise.
23766         * lib/unistd.in.h: Likewise.
23767         * lib/wchar.in.h: Likewise.
23768         * lib/wctype.in.h: Likewise.
23769         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23770
23771 2008-10-17  Jim Meyering  <meyering@redhat.com>
23772
23773         ignore-value: don't depend on inline module
23774         * modules/ignore-value (Depends-on): Remove 'inline'.
23775         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
23776         Suggestion from Bruno Haible.
23777
23778 2008-10-17  Bruno Haible  <bruno@clisp.org>
23779
23780         New implementation of condition variables for Win32.
23781         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
23782         (gl_linked_waitqueue_t): New type.
23783         (gl_cond_t): Use it.
23784         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
23785         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
23786         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
23787         (glthread_cond_init_func, glthread_cond_wait_func,
23788         glthread_cond_timedwait_func, glthread_cond_signal_func,
23789         glthread_cond_broadcast_func, glthread_cond_destroy_func):
23790         Reimplemented on the basis of gl_linked_waitqueue_t.
23791         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
23792         gl_waitqueue_t.
23793         (gl_rwlock_t): Update.
23794         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
23795
23796 2008-10-17  Simon Josefsson  <simon@josefsson.org>
23797
23798         * modules/recvfrom (Depends-on): Add dependency on getpeername.
23799         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23800
23801 2008-10-17  Jim Meyering  <meyering@redhat.com>
23802
23803         ignore-value: new module
23804         * modules/ignore-value: New file.
23805         * lib/ignore-value.h: New file.
23806         * MODULES.html.sh (Compiler warning management): New section,
23807         just for this module.  More to come.
23808
23809 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23810
23811         open-safer.c: avoid 'signed and unsigned in conditional...' warning
23812         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
23813         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
23814
23815 2008-10-16  Jim Meyering  <meyering@redhat.com>
23816
23817         openat-die.c: avoid 'no previous prototype' warning
23818         * lib/openat-die.c: Include "openat.h".
23819         Reported by Reuben Thomas <rrt@sc3d.org>.
23820
23821 2008-10-16  Simon Josefsson  <simon@josefsson.org>
23822
23823         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
23824         * lib/netdb.in.h: Fix typo.
23825         Reported by Bruno Haible  <bruno@clisp.org>
23826
23827         * lib/netdb.in.h: Include sys/socket.h for platforms without
23828         netdb.h, to get structures like hostent on MinGW.
23829         * modules/netdb (Depends-on): Add sys_socket.
23830
23831 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23832
23833         * modules/netdb, modules/netdb-tests: New file.
23834         * m4/netdb_h.m4: New file.
23835         * lib/netdb.in.h: Add, currently just an empty file pending
23836         definitions.
23837         * tests/test-netdb.c: New file.
23838         * doc/posix-headers/netdb.texi: Mention that we replace it if
23839         needed.
23840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23841         netdb.
23842
23843 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23844
23845         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
23846         with code.
23847
23848 2008-10-13  Bruno Haible  <bruno@clisp.org>
23849
23850         * lib/glthread/cond.c (glthread_cond_wait_func,
23851         glthread_cond_timedwait_func): Add a comment.
23852
23853 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23854
23855         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
23856         * tests/test-select.c: Likewise,
23857
23858 2008-10-13  Bruno Haible  <bruno@clisp.org>
23859
23860         * lib/glthread/cond.c (glthread_cond_wait_func,
23861         glthread_cond_timedwait_func): Fix variable name.
23862         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23863
23864 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
23865
23866         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
23867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
23868         struct sockaddr.sa_len.
23869         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
23870
23871 2008-10-13  Simon Josefsson  <simon@josefsson.org>
23872
23873         * build-aux/pmccabe2html: Add css and css_url parameters.
23874
23875 2008-10-12  Bruno Haible  <bruno@clisp.org>
23876
23877         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
23878         calling aclx_get.
23879         Reported by Rainer Tammer <tammer@tammer.net>.
23880
23881 2008-10-12  Bruno Haible  <bruno@clisp.org>
23882
23883         Use msvcrt aware primitives for creation/termination of Win32 threads.
23884         * lib/glthread/thread.c: Include <process.h>.
23885         (glthread_create_func): Use _beginthreadex instead of CreateThread.
23886         (wrapper_func): Update signature.
23887         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
23888
23889 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23890             Bruno Haible  <bruno@clisp.org>
23891
23892         Provide a Win32 implementation of the 'cond' module.
23893         * lib/glthread/cond.h [USE_WIN32]: New implementation.
23894         * lib/glthread/cond.c (glthread_cond_init_func,
23895         glthread_cond_wait_func, glthread_cond_timedwait_func,
23896         glthread_cond_signal_func, glthread_cond_broadcast_func,
23897         glthread_cond_destroy_func) [USE_WIN32]: New functions.
23898         * modules/cond (Dependencies): Add gettimeofday.
23899
23900 2008-10-11  Bruno Haible  <bruno@clisp.org>
23901
23902         Make sleep work on older versions of mingw.
23903         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
23904         only whether it exists.
23905         * doc/posix-functions/sleep.texi: Mention the problem with older
23906         versions of mingw.
23907
23908 2008-10-11  Bruno Haible  <bruno@clisp.org>
23909
23910         New module 'shutdown'.
23911         * modules/shutdown: New file.
23912         * lib/sys_socket.in.h (shutdown): New declaration.
23913         * lib/winsock.c (shutdown): New function.
23914         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23915         GNULIB_SHUTDOWN.
23916         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
23917         * doc/posix-functions/shutdown.texi: Document the new module.
23918
23919 2008-10-11  Jim Meyering  <meyering@redhat.com>
23920
23921         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
23922
23923 2008-10-11  Bruno Haible  <bruno@clisp.org>
23924
23925         New module 'fclose'.
23926         * modules/fclose: New file.
23927         * lib/stdio.in.h (fclose): New declaration.
23928         * lib/fclose.c: New file.
23929         * m4/fclose.m4: New file.
23930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
23931         REPLACE_FCLOSE.
23932         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
23933         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
23934         REPLACE_FCLOSE.
23935         * modules/close (Depends-on): fclose.
23936         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
23937
23938 2008-10-11  Bruno Haible  <bruno@clisp.org>
23939
23940         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
23941         set errno and don't call _close.
23942
23943 2008-10-10  Bruno Haible  <bruno@clisp.org>
23944
23945         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
23946         ACL, not afterwards. Fixes test failure on Cygwin.
23947
23948 2008-10-09  Ben Pfaff  <blp@gnu.org>
23949
23950         * build-aux/announce-gen: Fix gnulib version related part of usage
23951         message.  Die with a useful error message if no tarballs are
23952         found.
23953
23954 2008-10-10  Jim Meyering  <meyering@redhat.com>
23955
23956         bootstrap: use git's --depth=N option only if it's supported
23957         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
23958         recognize the --depth option.  Reported by Pádraig Brady.
23959
23960 2008-10-09  Bruno Haible  <bruno@clisp.org>
23961
23962         New module 'ioctl'.
23963         * modules/ioctl: New file.
23964         * lib/sys_socket.in.h (ioctl): Remove declaration.
23965         * lib/winsock.c: Include <sys/ioctl.h>.
23966         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
23967         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23968         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
23969         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
23970         * doc/posix-functions/ioctl.texi: Mention the new module.
23971
23972 2008-10-09  Bruno Haible  <bruno@clisp.org>
23973
23974         New module 'sys_ioctl'.
23975         * lib/sys_ioctl.in.h: New file.
23976         * m4/sys_ioctl_h.m4: New file.
23977         * modules/sys_ioctl: New file.
23978         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
23979
23980 2008-10-09  Bruno Haible  <bruno@clisp.org>
23981
23982         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
23983         * lib/winsock.c: Include <stdarg.h>.
23984         (rpl_ioctl): Change to second argument 'int' and then varargs.
23985
23986 2008-10-09  Bruno Haible  <bruno@clisp.org>
23987
23988         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
23989         when the sys_socket module is present and the system has <winsock2.h>.
23990
23991 2008-10-09  Bruno Haible  <bruno@clisp.org>
23992
23993         * doc/posix-functions/close.texi: Mention module 'close' instead of
23994         module 'sys_socket'.
23995
23996 2008-10-09  Bruno Haible  <bruno@clisp.org>
23997
23998         * doc/glibc-headers/sys_ioctl.texi: New file.
23999         * doc/gnulib.texi: Include it.
24000
24001 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24002             Bruno Haible  <bruno@clisp.org>
24003
24004         Combine the two replacements of 'close'.
24005         * lib/sys_socket.in.h (close): Define to a reminder to include
24006         <unistd.h>.
24007         (_gl_close_fd_maybe_socket): New declaration.
24008         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24009         * lib/winsock.c (close): Remove undefinition.
24010         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24011         needed for the gnulib module 'close'.
24012         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24013         define to an error symbol or to a warning, if suitable.
24014         * lib/close.c: Include <sys/socket.h>.
24015         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24016         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24017         UNISTD_H_HAVE_WINSOCK2_H.
24018         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24020         UNISTD_H_HAVE_WINSOCK2_H.
24021         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24022         (configure.ac): Set a module indicator.
24023         (Makefile.am): Substitute GNULIB_CLOSE.
24024         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24025         * modules/poll-tests (Depends-on): Add close.
24026         * modules/select-tests (Depends-on): Likewise.
24027
24028 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24029             Bruno Haible  <bruno@clisp.org>
24030
24031         New module 'close'.
24032         * modules/close: New file.
24033         * lib/unistd.in.h (close): Move declaration out of the
24034         FCHDIR_REPLACEMENT scope.
24035         (_gl_unregister_fd): New declaration.
24036         * lib/close.c: New file.
24037         * lib/fchdir.c (rpl_close): Remove function.
24038         * m4/close.m4: New file.
24039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24040         close.
24041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24042         REPLACE_CLOSE.
24043         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24044         REPLACE_CLOSE.
24045         * modules/fchdir (Depends-on): Add close.
24046
24047 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24048             Bruno Haible  <bruno@clisp.org>
24049
24050         * lib/fcntl.in.h (open): Simplify conditionals.
24051         (_gl_register_fd): New declaration.
24052         * lib/fchdir.c (rpl_open): Remove function.
24053         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24054         also.
24055         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24057         open.
24058
24059 2008-10-09  Jim Meyering  <meyering@redhat.com>
24060
24061         GNUmakefile: use the more name-space-friendly "_version"
24062         * top/GNUmakefile (_dummy): Update.
24063         (_version): Rename from "version".
24064
24065 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24066             Bruno Haible  <bruno@clisp.org>
24067
24068         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24069         rpl_close.
24070         (_gl_register_fd): New function, extracted from rpl_open.
24071         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24072         (rpl_open, rpl_opendir): Use _gl_register_fd.
24073
24074 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24075
24076         Fix organization of 'open' replacement.
24077         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24078         (gl_FUNC_OPEN): Use it.
24079         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24080
24081 2008-10-08  Bruno Haible  <bruno@clisp.org>
24082
24083         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24084
24085 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24086
24087         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24088         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24089         listen).
24090
24091 2008-10-08  Eric Blake  <ebb9@byu.net>
24092
24093         GNUmakefile: add 'make version' target
24094         * top/GNUmakefile (_curr-ver): Split version update rules...
24095         (version): ...into a target.
24096
24097 2008-10-07  Bruno Haible  <bruno@clisp.org>
24098
24099         Use a more portable replacement expression for -0.0L.
24100         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24101         instead of -0.0L. Fix m4 quotation.
24102
24103         * tests/test-signbit.c: Include <float.h>.
24104         (minus_zero): New variable.
24105         (test_signbitl): Use minus_zero instead of -zero.
24106         * modules/signbit-tests (Depends-on): Add float.
24107
24108         * tests/test-ceill.c: Include <float.h>.
24109         (zero): Remove variable.
24110         (minus_zero): New variable.
24111         (main): Use minus_zero instead of -zero.
24112         * modules/ceill-tests (Depends-on): Add float.
24113
24114         * tests/test-floorl.c: Include <float.h>.
24115         (zero): Remove variable.
24116         (minus_zero): New variable.
24117         (main): Use minus_zero instead of -zero.
24118         * modules/floorl-tests (Depends-on): Add float.
24119
24120         * tests/test-roundl.c: Include <float.h>.
24121         (zero): Remove variable.
24122         (minus_zero): New variable.
24123         (main): Use minus_zero instead of -zero.
24124         * modules/roundl-tests (Depends-on): Add float.
24125
24126         * tests/test-truncl.c: Include <float.h>.
24127         (zero): Remove variable.
24128         (minus_zero): New variable.
24129         (main): Use minus_zero instead of -zero.
24130         * modules/truncl-tests (Depends-on): Add float.
24131
24132         * tests/test-frexpl.c (zero): Remove variable.
24133         (minus_zero): New variable.
24134         (main): Use minus_zero instead of -zero.
24135         * modules/frexpl-tests (Depends-on): Add float.
24136
24137         * tests/test-isnan.c (zerol): Remove variable.
24138         (minus_zerol): New variable.
24139         (test_long_double): Use minus_zerol instead of -zerol.
24140         * modules/isnan-tests (Depends-on): Add float.
24141
24142         * tests/test-isnanl.h (zero): Remove variable.
24143         (minus_zero): New variable.
24144         (main): Use minus_zero instead of -zero.
24145         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24146         * modules/isnanl-tests (Depends-on): Add float.
24147
24148         * tests/test-ldexpl.c (zero): Remove variable.
24149         (minus_zero): New variable.
24150         (main): Use minus_zero instead of -zero.
24151         * modules/ldexpl-tests (Depends-on): Add float.
24152
24153         * tests/test-snprintf-posix.h (zerol): Remove variable.
24154         (minus_zerol): New variable.
24155         (test_function): Use minus_zerol instead of -zerol.
24156         * modules/snprintf-posix-tests (Depends-on): Add float.
24157         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24158
24159         * tests/test-sprintf-posix.h (zerol): Remove variable.
24160         (minus_zerol): New variable.
24161         (test_function): Use minus_zerol instead of -zerol.
24162         * modules/sprintf-posix-tests (Depends-on): Add float.
24163         * modules/vsprintf-posix-tests (Depends-on): Add float.
24164
24165         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24166         (minus_zerol): New variable.
24167         (test_function): Use minus_zerol instead of -zerol.
24168         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24169
24170         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24171         (minus_zerol): New variable.
24172         (test_function): Use minus_zerol instead of -zerol.
24173         * modules/vasprintf-posix-tests (Depends-on): Add float.
24174
24175 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24176
24177         * MODULES.html.sh (Support for building documentation): Mention
24178         pmccabe2html.  Sort entries.
24179
24180         Add pmccabe2html module, from gnupdf.
24181         * build-aux/pmccabe.css: New file.
24182         * build-aux/pmccabe2html: New file.
24183         * m4/pmccabe2html.m4: New file.
24184         * modules/pmccabe2html: New file.
24185
24186 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24187
24188         flock: new module
24189         * MODULES.html.sh: Add to list of modules.
24190         * lib/flock.c: flock implementation for Windows and Unix systems
24191         which have fcntl.
24192         * doc/glibc-functions/flock.texi: Update documentation.
24193         * lib/sys_file.in.h: <sys/file.h> header file.
24194         * m4/flock.m4: M4 macros.
24195         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24196         * modules/flock: flock module.
24197         * modules/flock-tests: flock tests module.
24198         * modules/sys_file: sys/file.h module.
24199         * tests/test-flock.c: test suite for flock.
24200
24201 2008-10-06  Jim Meyering  <meyering@redhat.com>
24202
24203         bootstrap: check for LT_INIT more portably still ;-)
24204         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24205         Spotted by Bruno Haible.
24206
24207 2008-10-06  Eric Blake  <ebb9@byu.net>
24208
24209         test-signbit: avoid tripping Irix cc bug on -0.0L
24210         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24211         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24212         entire testsuite consistent and avoids an Irix 6.2 bug.
24213
24214 2008-10-05  Bruno Haible  <bruno@clisp.org>
24215             Jim Meyering  <jim@meyering.net>
24216
24217         Add an option for ignoring EPIPE during close_stdout.
24218         * lib/closeout.h: Include <stdbool.h>.
24219         (close_stdout_set_ignore_EPIPE): New declaration.
24220         * lib/closeout.c: Include <stdbool.h>.
24221         (ignore_EPIPE): New variable.
24222         (close_stdout_set_ignore_EPIPE): New function.
24223         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24224         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24225         failure.
24226         * modules/closeout (Depends-on): Add stdbool.
24227
24228 2008-10-05  Bruno Haible  <bruno@clisp.org>
24229
24230         * modules/accept: New file.
24231         * modules/bind: New file.
24232         * modules/connect: New file.
24233         * modules/getpeername: New file.
24234         * modules/getsockname: New file.
24235         * modules/getsockopt: New file.
24236         * modules/listen: New file.
24237         * modules/recv: New file.
24238         * modules/recvfrom: New file.
24239         * modules/send: New file.
24240         * modules/sendto: New file.
24241         * modules/setsockopt: New file.
24242         * modules/socket: New file.
24243         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24244         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24245         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24246         the particular module is requested. Add a link warning when the
24247         particular module is not requested.
24248         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24249         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24250         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24251         the particular module is requested.
24252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24253         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24254         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24255         * modules/sys_socket (Depends-on): Add link-warning.
24256         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24257         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24258         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24259         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24260         GL_LINK_WARNING.
24261         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24262         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24263         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24264         * doc/posix-functions/getpeername.texi: Mention the new module
24265         'getpeername'.
24266         * doc/posix-functions/getsockname.texi: Mention the new module
24267         'getsockname'.
24268         * doc/posix-functions/getsockopt.texi: Mention the new module
24269         'getsockopt'.
24270         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24271         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24272         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24273         * doc/posix-functions/send.texi: Mention the new module 'send'.
24274         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24275         * doc/posix-functions/setsockopt.texi: Mention the new module
24276         'setsockopt'.
24277         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24278         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24279         listen, connect, accept.
24280         * modules/select-tests (Depends-on): Likewise.
24281
24282 2008-10-05  Bruno Haible  <bruno@clisp.org>
24283
24284         * lib/winsock.c (strerror): Remove unused #undef.
24285         (rpl_close): Remove unused local variable.
24286
24287         * modules/sys_socket (Depends-on); Add errno.
24288
24289 2008-10-05  Bruno Haible  <bruno@clisp.org>
24290
24291         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24292         (select): Add a link warning when the 'select' module is not used.
24293         * modules/sys_select (Depends-on): Add link-warning.
24294         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24295         Suggested by Paolo Bonzini.
24296
24297 2008-10-05  Jim Meyering  <meyering@redhat.com>
24298
24299         bootstrap: check for LT_INIT more portably
24300         * build-aux/bootstrap: Avoid using grep -E, since it's not
24301         portable enough.  Suggestion from Bruno Haible.
24302
24303 2008-10-05  Bruno Haible  <bruno@clisp.org>
24304
24305         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24306         as being fixed by gnulib.
24307
24308 2008-10-05  Bruno Haible  <bruno@clisp.org>
24309
24310         * modules/select-tests: New file, mostly copied from
24311         modules/sys_select-tests.
24312         * tests/test-select.c: New file, mostly copied from
24313         tests/test-sys_select.c.
24314         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24315         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24316         (Makefile.am): Remove test_sys_select_LDADD.
24317
24318         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24319         to an undefined symbol, for an error message.
24320         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24321         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24322         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24323         winsock-select.c here.
24324         * modules/sys_select (Files): Remove lib/winsock-select.c.
24325         (Depends-on): Remove alloca.
24326         (Makefile.am): Substitute GNULIB_SELECT.
24327         * modules/select: New file.
24328         * doc/posix-functions/select.texi: Update.
24329
24330 2008-10-05  Bruno Haible  <bruno@clisp.org>
24331
24332         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24333         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24334         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24335         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24336         getdtablesize.
24337         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24338         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24339
24340 2008-10-05  Bruno Haible  <bruno@clisp.org>
24341
24342         * modules/getdtablesize-tests: New file.
24343         * tests/test-getdtablesize.c: New file.
24344
24345         New module 'getdtablesize'.
24346         * lib/unistd.in.h (getdtablesize): New declaration.
24347         * lib/getdtablesize.c: New file.
24348         * m4/getdtablesize.m4: New file.
24349         * modules/getdtablesize: New file.
24350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24351         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24352         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24353         HAVE_GETDTABLESIZE.
24354         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24355
24356 2008-10-05  Bruno Haible  <bruno@clisp.org>
24357
24358         * modules/sched (Makefile.am): Fix typo.
24359         Reported by Simon Josefsson.
24360
24361 2008-10-05  Jim Meyering  <meyering@redhat.com>
24362
24363         bootstrap: check for LT_INIT, too
24364         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24365         are deprecated.  Suggestion from Ralf Wildenhues.
24366
24367 2008-10-05  Bruno Haible  <bruno@clisp.org>
24368
24369         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24370         overriding them by ours.
24371         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24372
24373 2008-10-05  Jim Meyering  <meyering@redhat.com>
24374
24375         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24376         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24377         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24378
24379 2008-10-04  Bruno Haible  <bruno@clisp.org>
24380
24381         * modules/dup2 (License): Change to LGPLv2+.
24382         * modules/sleep (License): Likewise.
24383         * modules/perror (License): Likewise.
24384         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24385         Blake.
24386         * modules/signal (License): Likewise.
24387         * modules/sigprocmask (License): Likewise.
24388         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24389         Meyering.
24390
24391 2008-10-04  Bruno Haible  <bruno@clisp.org>
24392
24393         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24394         Reported by Rainer Tammer <tammer@tammer.net>.
24395
24396 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24397             Bruno Haible  <bruno@clisp.org>
24398
24399         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24400         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24401         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24402
24403 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24404
24405         filevercmp: new module
24406         * lib/filevercmp.h: New function filevercmp comparing version strings.
24407         * lib/filevercmp.c: Implementation of filevercmp function.
24408         * modules/filevercmp: Module metadata.
24409         * tests/test-filevercmp.c: Unit test for new module.
24410         * modules/filevercmp-tests: Unit test metadata.
24411         * MODULES.html.sh: Add filevercmp module.
24412
24413 2008-10-03  Bruno Haible  <bruno@clisp.org>
24414
24415         * lib/c-ctype.h: Add comment.
24416         Reported by Jim Meyering.
24417
24418 2008-10-02  Bruno Haible  <bruno@clisp.org>
24419
24420         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24421
24422 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24423
24424         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24425         name of bootstrap.conf accordingly.
24426
24427 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24428
24429         * build-aux/bootstrap: Install git-merge-changelog configuration
24430         items into .gitconfig if needed.
24431
24432 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24433
24434         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24435         git repository, and initialize/update it accordingly.
24436
24437 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24438
24439         * modules/fsync-tests: New file.
24440         * tests/test-fsync.c: New file.
24441
24442         New module 'fsync'.
24443         * lib/fsync.c: New file.
24444         * m4/fsync.m4: New file.
24445         * modules/fsync: New file.
24446         * lib/unistd.in.h (fsync): New declaration.
24447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24448         GNULIB_FSYNC and HAVE_FSYNC.
24449         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24450         * MODULES.html.sh (posix_functions): Add fsync.
24451         * doc/posix-functions/fsync.texi: Mention the new module.
24452
24453 2008-10-02  Jim Meyering  <meyering@redhat.com>
24454
24455         fts.c: sync with similar code from coreutils' remove.c
24456         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24457         Guard also with "#if defined __linux__", since for now at least,
24458         this code is Linux-kernel-specific.
24459
24460 2008-10-02  Jim Meyering  <meyering@redhat.com>
24461
24462         fts: bug fixes
24463         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24464         Include <sys/vfs.h>, not <sys/statfs.h>.
24465
24466         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24467         Include <sys/vfs.h>, not <sys/statfs.h>.
24468
24469 2008-10-01  Bruno Haible  <bruno@clisp.org>
24470
24471         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24473         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24474         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24475         * doc/posix-functions/posix_spawnp.texi: Likewise.
24476         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24477         whether posix_spawn actually works.
24478         * m4/pipe.m4 (gl_PIPE): Likewise.
24479         * modules/execute (Files): Add m4/posix_spawn.m4.
24480         * modules/pipe (Files): Add m4/posix_spawn.m4.
24481         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24482
24483 2008-10-01  Jim Meyering  <meyering@redhat.com>
24484
24485         remove trailing spaces
24486         * NEWS: Likewise.
24487         * lib/poll.c (poll): Likewise.
24488         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24489         * lib/winsock.c (rpl_close): Likewise.
24490         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24491         * modules/yield: Likewise.
24492         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24493         * tests/test-sys_select.c (connect_to_socket): Likewise.
24494
24495         fts.c: adjust a new interface to be more generally useful
24496         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24497         (fts_build): Adjust caller.
24498
24499 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24500
24501         * modules/cond-tests: New file.
24502         * tests/test-cond.c: New file.
24503
24504 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24505             Bruno Haible  <bruno@clisp.org>
24506
24507         * modules/cond (Dependencies): Add errno, time.
24508         * lib/glthread/cond.h: Include <time.h>.
24509         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24510         across platforms.
24511
24512 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24513             Bruno Haible  <bruno@clisp.org>
24514
24515         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24516
24517 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24518             Bruno Haible  <bruno@clisp.org>
24519
24520         * modules/tls-tests (Depends-on): Add thread, yield.
24521         (configure.ac): Remove all checks.
24522         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24523         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24524         gl_thread_self): Remove definitions. Include glthread/thread.h and
24525         glthread/yield.h instead.
24526         (test_tls): Pass an additional NULL argument to gl_thread_join.
24527
24528 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24529             Bruno Haible  <bruno@clisp.org>
24530
24531         * modules/lock-tests (Depends-on): Add thread, yield.
24532         (configure.ac): Remove all checks.
24533         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24534         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24535         gl_thread_self): Remove definitions. Include glthread/thread.h and
24536         glthread/yield.h instead.
24537         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24538         additional NULL argument to gl_thread_join.
24539
24540 2008-09-30  Bruno Haible  <bruno@clisp.org>
24541
24542         Fix the Win32 implementation of the 'thread' module.
24543         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24544         pointer type.
24545         (gl_thread_self): Invoke gl_thread_self_func.
24546         (gl_thread_self_func): New declaration.
24547         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24548         (do_init_self_key, init_self_key): New functions.
24549         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24550         Remove some fields.
24551         (running_threads, running_lock): Remove variables.
24552         (get_current_thread_handle): New function.
24553         (gl_thread_self_func, wrapper_func, glthread_create_func,
24554         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24555         simplified.
24556
24557 2008-09-30  Bruno Haible  <bruno@clisp.org>
24558
24559         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24560         files.
24561
24562 2008-09-30  Jim Meyering  <meyering@redhat.com>
24563
24564         fts.m4: correct the test for statfs.f_type
24565         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24566         when checking for statfs.f_type.
24567
24568 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24569
24570         tests: avoid some compiler warnings
24571         * tests/test-memchr.c (main): Pass NULL indirectly.
24572         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24573
24574 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
24575
24576         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24577         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24578         exactly specified dayshifts.
24579         (dayshift): New rule.
24580         (rel): Add dayshift.
24581         (relative_time_table) [tomorrow, yesterday, today, now]:
24582         Use tDAY_SHIFT in place of tDAY_UNIT.
24583         * tests/test-getdate.c: Add tests for now-disallowed countable
24584         dayshifts, e.g., "4 yesterday ago".
24585
24586 2008-09-29  Bruno Haible  <bruno@clisp.org>
24587
24588         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24589         * tests/test-posix_spawn1.in.sh: Renamed from
24590         tests/test-posix_spawn.in.sh.
24591         * tests/test-posix_spawn2.c: New file.
24592         * tests/test-posix_spawn2.in.sh: New file.
24593         * modules/posix_spawnp-tests (Files): Update.
24594         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24595
24596 2008-09-29  Bruno Haible  <bruno@clisp.org>
24597
24598         Propagate effects of putenv/setenv/unsetenv to child processes.
24599         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24600         * lib/pipe.c (create_pipe): Likewise.
24601
24602 2008-09-29  Bruno Haible  <bruno@clisp.org>
24603
24604         Enable use of shell scripts as executables in mingw.
24605         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24606         run the program as a shell script.
24607         * lib/pipe.c (create_pipe): Likewise.
24608         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24609         resulting array.
24610
24611 2008-09-29  Eric Blake  <ebb9@byu.net>
24612
24613         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24614
24615 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
24616
24617         * doc/posix-functions/accept.texi: Update mingw problems.
24618         * doc/posix-functions/bind.texi: Update mingw problems.
24619         * doc/posix-functions/close.texi: Update mingw problems.
24620         * doc/posix-functions/connect.texi: Update mingw problems.
24621         * doc/posix-functions/getpeername.texi: Update mingw problems.
24622         * doc/posix-functions/getsockname.texi: Update mingw problems.
24623         * doc/posix-functions/getsockopt.texi: Update mingw problems.
24624         * doc/posix-functions/ioctl.texi: Update mingw problems.
24625         * doc/posix-functions/listen.texi: Update mingw problems.
24626         * doc/posix-functions/recv.texi: Update mingw problems.
24627         * doc/posix-functions/recvfrom.texi: Update mingw problems.
24628         * doc/posix-functions/select.texi: Update mingw problems.
24629         * doc/posix-functions/send.texi: Update mingw problems.
24630         * doc/posix-functions/sendto.texi: Update mingw problems.
24631         * doc/posix-functions/setsockopt.texi: Update mingw problems.
24632         * doc/posix-functions/socket.texi: Update mingw problems.
24633
24634 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
24635             Bruno Haible  <bruno@clisp.org>
24636
24637         * lib/sys_select.in.h: Include sys/time.h.
24638         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
24639         * modules/sys_select: Depend on sys_time.
24640         * tests/test-sys_select.c: Test that sys/select.h defines struct
24641         timeval fully.
24642
24643 2008-09-29  Bruno Haible  <bruno@clisp.org>
24644
24645         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24646         * lib/sys_select.in.h: Likewise.
24647
24648 2008-09-29  Bruno Haible  <bruno@clisp.org>
24649
24650         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24651
24652 2008-09-29  Bruno Haible  <bruno@clisp.org>
24653
24654         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24655         Set LIBSOCKET instead of augmenting LIBS.
24656         * modules/sockets (Link): New section.
24657         * modules/sockets-tests (test_sockets_LDADD): New variable.
24658         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24659         * modules/poll-tests (test_poll_LDADD): New variable.
24660         * NEWS: Document the change.
24661
24662 2008-09-29  Bruno Haible  <bruno@clisp.org>
24663
24664         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24665         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24666         ARPA_INET_H directly.
24667         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24668
24669 2008-09-28  Bruno Haible  <bruno@clisp.org>
24670
24671         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24672         from gl_HEADER_SYS_SOCKET.
24673         (gl_HEADER_SYS_SOCKET): Invoke it.
24674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24675
24676 2008-09-28  Bruno Haible  <bruno@clisp.org>
24677
24678         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24679         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24680         Needed on OSF/1 4.0.
24681
24682 2008-09-28  Bruno Haible  <bruno@clisp.org>
24683
24684         Override open more carefully.
24685         * lib/open.c (orig_open): New function.
24686         (rpl_open): Use orig_open instead of open.
24687         * lib/fcntl.in.h: Add special invocation convention.
24688         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24689         (gl_FUNC_OPEN): Invoke it.
24690
24691         Override freopen more carefully.
24692         * lib/freopen.c (orig_freopen): New function.
24693         (rpl_freopen): Use orig_freopen instead of freopen.
24694         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24695         (gl_FUNC_FREOPEN): Invoke it.
24696
24697         Override fopen more carefully.
24698         * lib/fopen.c (orig_fopen): New function.
24699         (rpl_fopen): Use orig_fopen instead of fopen.
24700         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24701         (gl_FUNC_FOPEN): Invoke it.
24702         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24703
24704 2008-09-28  Bruno Haible  <bruno@clisp.org>
24705
24706         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24707         SIGPIPE.
24708
24709 2008-09-28  Bruno Haible  <bruno@clisp.org>
24710
24711         * tests/test-sigaction.c (handler, main): Disable the check whether
24712         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
24713         glibc systems with LinuxThreads.
24714
24715 2008-09-28  Bruno Haible  <bruno@clisp.org>
24716
24717         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
24718
24719         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
24720         with AIX xlc.
24721         * lib/fcntl.in.h (open): Likewise.
24722         Reported by Rainer Tammer <tammer@tammer.net>.
24723
24724 2008-09-28  Bruno Haible  <bruno@clisp.org>
24725
24726         * modules/posix_spawnp-tests: New file.
24727         * tests/test-posix_spawn.c: New file.
24728         * tests/test-posix_spawn.in.sh: New file.
24729
24730         New module 'posix_spawnp'.
24731         * modules/posix_spawnp: New file.
24732         * lib/spawnp.c: New file, from GNU libc with modifications.
24733         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
24734
24735         New module 'posix_spawn'.
24736         * modules/posix_spawn: New file.
24737         * lib/spawn.c: New file, from GNU libc with modifications.
24738         * doc/posix-functions/posix_spawn.texi: Mention the new module.
24739
24740         New module 'posix_spawnattr_destroy'.
24741         * modules/posix_spawnattr_destroy: New file.
24742         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
24743         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
24744         module.
24745
24746         New module 'posix_spawnattr_setsigmask'.
24747         * modules/posix_spawnattr_setsigmask: New file.
24748         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
24749         modifications.
24750         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
24751         new module.
24752
24753         New module 'posix_spawnattr_getsigmask'.
24754         * modules/posix_spawnattr_getsigmask: New file.
24755         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
24756         modifications.
24757         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
24758         new module.
24759
24760         New module 'posix_spawnattr_setsigdefault'.
24761         * modules/posix_spawnattr_setsigdefault: New file.
24762         * lib/spawnattr_setdefault.c: New file, from GNU libc with
24763         modifications.
24764         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
24765         new module.
24766
24767         New module 'posix_spawnattr_getsigdefault'.
24768         * modules/posix_spawnattr_getsigdefault: New file.
24769         * lib/spawnattr_getdefault.c: New file, from GNU libc with
24770         modifications.
24771         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
24772         new module.
24773
24774         New module 'posix_spawnattr_setschedpolicy'.
24775         * modules/posix_spawnattr_setschedpolicy: New file.
24776         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
24777         modifications.
24778         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
24779         new module.
24780
24781         New module 'posix_spawnattr_getschedpolicy'.
24782         * modules/posix_spawnattr_getschedpolicy: New file.
24783         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
24784         modifications.
24785         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
24786         new module.
24787
24788         New module 'posix_spawnattr_setschedparam'.
24789         * modules/posix_spawnattr_setschedparam: New file.
24790         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
24791         modifications.
24792         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
24793         new module.
24794
24795         New module 'posix_spawnattr_getschedparam'.
24796         * modules/posix_spawnattr_getschedparam: New file.
24797         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
24798         modifications.
24799         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
24800         new module.
24801
24802         New module 'posix_spawnattr_setpgroup'.
24803         * modules/posix_spawnattr_setpgroup: New file.
24804         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
24805         modifications.
24806         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
24807         module.
24808
24809         New module 'posix_spawnattr_getpgroup'.
24810         * modules/posix_spawnattr_getpgroup: New file.
24811         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
24812         modifications.
24813         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
24814         module.
24815
24816         New module 'posix_spawnattr_setflags'.
24817         * modules/posix_spawnattr_setflags: New file.
24818         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
24819         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
24820         module.
24821
24822         New module 'posix_spawnattr_getflags'.
24823         * modules/posix_spawnattr_getflags: New file.
24824         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
24825         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
24826         module.
24827
24828         New module 'posix_spawnattr_init'.
24829         * modules/posix_spawnattr_init: New file.
24830         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
24831         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
24832         module.
24833
24834         New module 'posix_spawn_file_actions_destroy'.
24835         * modules/posix_spawn_file_actions_destroy: New file.
24836         * lib/spawn_faction_destroy.c: New file, from GNU libc with
24837         modifications.
24838         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
24839         the new module.
24840
24841         New module 'posix_spawn_file_actions_addopen'.
24842         * modules/posix_spawn_file_actions_addopen: New file.
24843         * lib/spawn_faction_addopen.c: New file, from GNU libc with
24844         modifications.
24845         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24846         the new module.
24847
24848         New module 'posix_spawn_file_actions_adddup2'.
24849         * modules/posix_spawn_file_actions_adddup2: New file.
24850         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
24851         modifications.
24852         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24853         the new module.
24854
24855         New module 'posix_spawn_file_actions_addclose'.
24856         * modules/posix_spawn_file_actions_addclose: New file.
24857         * lib/spawn_faction_addclose.c: New file, from GNU libc with
24858         modifications.
24859         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24860         the new module.
24861
24862         New module 'posix_spawn_file_actions_init'.
24863         * modules/posix_spawn_file_actions_init: New file.
24864         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
24865         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
24866         new module.
24867
24868         New module 'posix_spawn-internal'.
24869         * modules/posix_spawn-internal: New file.
24870         * lib/spawn_int.h: New file, from GNU libc with modifications.
24871         * lib/spawni.c: New file, from GNU libc with modifications.
24872         * m4/posix_spawn.m4: New file.
24873
24874         New module 'spawn'.
24875         * modules/spawn: New file.
24876         * lib/spawn.in.h: New file, from GNU libc with modifications.
24877         * m4/spawn_h.m4: New file.
24878         * doc/posix-headers/spawn.texi: Mention the new module.
24879
24880 2008-09-28  Bruno Haible  <bruno@clisp.org>
24881
24882         * modules/sched-tests: New file.
24883         * tests/test-sched.c: New file.
24884
24885         New module 'sched'.
24886         * modules/sched: New file.
24887         * lib/sched.in.h: New file.
24888         * m4/sched_h.m4: New file.
24889         * doc/posix-headers/sched.texi: Mention the new module.
24890
24891 2008-09-27  Eric Blake  <ebb9@byu.net>
24892
24893         Fix previous patch, and tweak references to $0.
24894         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
24895         (func_version, func_gnulib_dir): Don't call this program
24896         gnulib-tool.
24897         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
24898         with using $0 in function.
24899         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
24900         (func_fatal_error): Reuse the name the user invoked us with.
24901
24902 2008-09-27  Bruno Haible  <bruno@clisp.org>
24903
24904         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
24905         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
24906         (gl_ICONV_H): Not here.
24907         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24908         instead of assigning ICONV_H directly.
24909
24910         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
24911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
24912         WCHAR_H directly.
24913
24914 2008-09-27  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
24917         * modules/arpa_inet (Depends-on): Add link-warning.
24918         (Makefile.am): Insert the definition of GL_LINK-WARNING.
24919         * modules/unistd (Makefile.am): Likewise.
24920
24921 2008-09-26  Bruno Haible  <bruno@clisp.org>
24922
24923         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
24924         variables.
24925         (func_version): Essentially copied from gnulib-tool.
24926         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
24927         func_readlink): Copied from gnulib-tool.
24928
24929 2008-09-26  Bruno Haible  <bruno@clisp.org>
24930
24931         * gnulib-tool (func_version): Change directory to $gnulib_dir before
24932         invoking git-version-gen.
24933
24934 2008-09-26  Bruno Haible  <bruno@clisp.org>
24935
24936         * posix-modules: Update to directory names changed on 2008-01-19.
24937         Remove commas in output before splitting into words. No more need to
24938         avoid 'ftruncate' since 2007-02-19.
24939
24940 2008-09-26  Bruno Haible  <bruno@clisp.org>
24941
24942         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
24943
24944 2008-09-26  Bruno Haible  <bruno@clisp.org>
24945
24946         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
24947         * modules/fwriteerror (Depends-on): Add errno.
24948
24949 2008-09-26  Bruno Haible  <bruno@clisp.org>
24950
24951         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
24952         * tests/test-vc-list-files-cvs.sh: Likewise.
24953
24954 2008-09-26  Bruno Haible  <bruno@clisp.org>
24955
24956         * doc/posix-headers/sys_resource.texi: Reorder items.
24957
24958 2008-09-26  Jim Meyering  <meyering@redhat.com>
24959
24960         fts: tweak inode comparison function
24961         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
24962         inode numbers, as documented.
24963
24964         fts: sort dirent entries on inode number before traversing
24965         This avoids a quadratic, seek-related performance penalty when
24966         operating on a directory containing many entries (measurable at 10k;
24967         3.5 hours at 2 million entries with a cold cache) on certain types
24968         of file systems, including ext3 and ext4, but not tmpfs.
24969         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
24970         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
24971         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
24972         (fs_handles_readdir_ordered_dirents_efficiently): New function.
24973         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
24974         (fts_build): Set the stat.st_ino member from D_INO.
24975         If it is likely to be useful, sort dirent entries on inode number.
24976
24977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
24978         and the struct statfs.f_type member.
24979         * modules/fts (Depends-on): Add d-ino.
24980
24981 2008-09-26  Bruno Haible  <bruno@clisp.org>
24982
24983         * modules/sigpipe-die (Depends-on): Add sigpipe.
24984
24985         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
24986         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
24987         and GNULIB_STDIO_H_SIGPIPE are set.
24988         * lib/stdio-write.c: New file.
24989         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
24990         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24991         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24992         REPLACE_STDIO_WRITE_FUNCS.
24993         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
24994         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
24995         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
24996         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
24997         * modules/stdio (Files): Add lib/stdio-write.c.
24998         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
24999         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25000         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25001         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25002         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25003         REPLACE_FPRINTF_POSIX.
25004         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25005         REPLACE_PRINTF_POSIX.
25006         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25007         REPLACE_VFPRINTF_POSIX.
25008         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25009         REPLACE_VPRINTF_POSIX.
25010         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25011         SIGPIPE issue.
25012         * doc/posix-functions/fputc.texi: Likewise.
25013         * doc/posix-functions/fputs.texi: Likewise.
25014         * doc/posix-functions/fwrite.texi: Likewise.
25015         * doc/posix-functions/printf.texi: Likewise.
25016         * doc/posix-functions/putc.texi: Likewise.
25017         * doc/posix-functions/putchar.texi: Likewise.
25018         * doc/posix-functions/puts.texi: Likewise.
25019         * doc/posix-functions/vfprintf.texi: Likewise.
25020         * doc/posix-functions/vprintf.texi: Likewise.
25021
25022         * modules/safe-write (Depends-on): Add write.
25023
25024         * modules/sigpipe-tests: New file.
25025         * tests/test-sigpipe.c: New file.
25026         * tests/test-sigpipe.sh: New file.
25027
25028         * modules/write: New file.
25029         * lib/unistd.in.h: Include <sys/types.h>.
25030         (write): New declaration.
25031         * lib/write.c: New file.
25032         * m4/write.m4: New file.
25033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25034         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25035         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25036         GNULIB_WRITE, REPLACE_WRITE.
25037         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25038         and the SIGPIPE issue.
25039
25040         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25041         (raise): New declaration.
25042         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25043         (ext_signal): New function.
25044         (rpl_raise): New function.
25045         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25046         GNULIB_SIGNAL_H_SIGPIPE.
25047         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25048         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25049
25050         * modules/sigpipe: New file.
25051         * m4/sigpipe.m4: New file.
25052
25053 2008-09-25  Derek Price  <derek@ximbiot.com>
25054             Bruno Haible  <bruno@clisp.org>
25055
25056         * gnulib-tool (func_import): Report all license incompatibilities, not
25057         just the first one.
25058
25059 2008-09-25  Bruno Haible  <bruno@clisp.org>
25060
25061         * gnulib-tool (func_import): When computing the edits, consider not
25062         only the Makefile.ams that exist but also those that will be generated.
25063
25064 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25065
25066         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25067         fixes gnulib-tool --test warning about duplicate dependency.
25068
25069 2008-09-25  Bruno Haible  <bruno@clisp.org>
25070
25071         * gnulib-tool: Don't ask the user to perform edits in the generated
25072         Makefile.ams.
25073         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25074         apply to the Makefile.am being generated.
25075         (func_emit_tests_Makefile_am): Execute edits that apply to the
25076         Makefile.am being generated.
25077         (func_import): Setup list of Makefile.am edits before emitting the
25078         Makefile.ams, not at the end.
25079         (func_create_testdir): Update.
25080         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25081
25082 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25083
25084         * gnulib-tool (func_import): Store the --tests-base option in the
25085         comment in gnulib-cache.m4.
25086
25087 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25088
25089         * NEWS: Document increased portability that sys_select now provides.
25090
25091         * lib/sys_select.in.h: Install select wrapper.
25092         * lib/sys_socket.in.h: Use more descriptive name when there is no
25093         select wrapper.
25094         * lib/winsock-select.c: New.
25095         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25096         Require gl_HEADER_SYS_SOCKET.
25097         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25098         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25099         * tests/test-sys_select.c: Add functional tests.
25100
25101 2008-09-24  Eric Blake  <ebb9@byu.net>
25102
25103         open, fopen: close fd leak in last patch
25104         * lib/open.c (rpl_open): Close fd before returning error.
25105         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25106         * doc/posix-functions/open.texi (open): Document that Irix also
25107         has the bug.
25108         * doc/posix-functions/fopen.texi (fopen): Likewise.
25109         Reported by Paolo Bonzini.
25110
25111 2008-09-24  Bruno Haible  <bruno@clisp.org>
25112
25113         Ensure that a filename ending in a slash cannot be used to access a
25114         non-directory.
25115         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25116         to check whether it's really a directory.
25117         * lib/fopen.c: Include fcntl.h, unistd.h.
25118         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25119         and fdopen().
25120         * modules/fopen (Depends-on): Add unistd.
25121         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25122         * tests/test-fopen.c (main): Likewise.
25123         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25124         * doc/posix-functions/fopen.texi: Likewise.
25125         Reported by Eric Blake.
25126
25127 2008-09-23  Eric Blake  <ebb9@byu.net>
25128
25129         c-stack: avoid compiler optimizations when provoking overflow
25130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25131         recursion harder to optimize, to ensure a stack overflow occurs.
25132         * tests/test-c-stack.c (recurse): Likewise.
25133         Borrowed from libsigsegv.
25134
25135         c-stack: work around Irix sigaltstack bug
25136         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25137         whether sigaltstack uses wrong end of stack_t (copied in part from
25138         libsigsegv).
25139         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25140         Irix bug, without requiring an over-allocation.
25141         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25142         bug.
25143
25144         fopen: document mingw bug on directories
25145         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25146         not allowing a stream visiting a directory, even though reading
25147         from such a stream is not portable.
25148
25149 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25150
25151         * lib/poll.c: Rewrite.
25152         * modules/poll: Depend on alloca.
25153
25154 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25155
25156         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25157         instead define prototypes for a full set of wrappers.  Ensure
25158         that Cygwin does not use the compatibility code, which is only
25159         for MinGW.
25160         * lib/winsock.c: New.
25161         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25162         * modules/sys_socket: Add lib/winsock.c.
25163
25164         * modules/poll-tests: Add errno and perror.
25165         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25166
25167 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25168
25169         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25170
25171 2008-09-23  Bruno Haible  <bruno@clisp.org>
25172
25173         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25174         * doc/glibc-functions/*: Likewise.
25175
25176 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25177
25178         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25179         success.
25180
25181 2008-09-22  Eric Blake  <ebb9@byu.net>
25182             Bruno Haible  <bruno@clisp.org>
25183
25184         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25185         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25186         supply %A but mishandle pseudo-NaN.
25187         Reported by Simon Josefsson.
25188
25189 2008-09-21  Bruno Haible  <bruno@clisp.org>
25190
25191         * tests/test-lock.c (main): Tweak skip message.
25192         * tests/test-tls.c (main): Likewise.
25193
25194 2008-09-21  Bruno Haible  <bruno@clisp.org>
25195
25196         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25197         whether 'struct sigaction' has sa_sigaction here...
25198         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25199         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25200
25201 2008-09-21  Bruno Haible  <bruno@clisp.org>
25202
25203         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25204         section.
25205         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25206         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25207         the new section.
25208         (Support for obsolete systems lacking POSIX:2001): New section.
25209         (String handling <string.h>): Move strdup to the new section.
25210         Suggested by Simon Josefsson and Paolo Bonzini.
25211
25212 2008-09-21  Bruno Haible  <bruno@clisp.org>
25213
25214         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25215         exponents in %e and %g results on 'long double'. Needed for mingw's
25216         improved *printf functions.
25217         * tests/test-vasprintf-posix.c (test_function): Likewise.
25218         * tests/test-snprintf-posix.h (test_function): Likewise.
25219         * tests/test-sprintf-posix.h (test_function): Likewise.
25220         Reported by Eric Blake.
25221
25222 2008-09-21  Bruno Haible  <bruno@clisp.org>
25223
25224         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25225         * tests/test-sprintf-posix.h (test_function): Likewise.
25226
25227 2008-09-21  Bruno Haible  <bruno@clisp.org>
25228
25229         * modules/getpass (Depends-on): Add strdup-posix.
25230
25231         New module 'strdup-posix'.
25232         * modules/strdup-posix: New file.
25233         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25234         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25236         REPLACE_STRDUP.
25237         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25238         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25239         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25240         strdup-posix.
25241
25242         * modules/strdup (Depends-on): Remove malloc-posix.
25243
25244 2008-09-20  Bruno Haible  <bruno@clisp.org>
25245
25246         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25247         Wildenhues.
25248
25249 2008-09-20  Bruno Haible  <bruno@clisp.org>
25250
25251         Ensure that wint_t gets defined on IRIX 5.3.
25252         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25253         * lib/wctype.in.h (wint_t): Likewise.
25254         (__wctype_wint_t): Remove type.
25255         (isw*): Use wint_t instead of __wctype_wint_t.
25256         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25257         * modules/wchar (Files): Add m4/wint_t.m4.
25258         (Makefile.am): Substitute HAVE_WINT_T.
25259         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25260         * tests/test-wctype.c: Check that wint_t is defined.
25261         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25262         * doc/posix-headers/wctype.texi: Likewise.
25263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25264
25265 2008-09-18  Bruno Haible  <bruno@clisp.org>
25266
25267         * gnulib-tool (func_exit): Update comment.
25268
25269 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25270
25271         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25272         assumes strdup exists and does not depend on strdup to return
25273         ENOMEM on out of memory conditions.
25274
25275 2008-09-18  Bruno Haible  <bruno@clisp.org>
25276
25277         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
25278         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25279         digits for the exponent.
25280
25281 2008-09-18  Jim Meyering  <meyering@redhat.com>
25282             Bruno Haible  <bruno@clisp.org>
25283
25284         * lib/vasnprintf.c (decimal_point_char): Define also if
25285         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25286
25287 2008-09-16  Bruno Haible  <bruno@clisp.org>
25288         and Eric Blake  <ebb9@byu.net>
25289
25290         vasnprintf: support Irix 5.3
25291         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25292         that mishandle long double infinity.
25293         Reported by Tom G. Christensen.
25294
25295 2008-09-16  Bruno Haible  <bruno@clisp.org>
25296
25297         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25298         Solaris 9.
25299         * doc/glibc-functions/alphasort.texi: Likewise.
25300         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25301
25302 2008-09-16  Jim Meyering  <meyering@redhat.com>
25303
25304         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25305         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25306         a umask modification leak out of a subshell.  Otherwise, the
25307         opensolaris /bin/sh would be accepted and thus cause unwarranted
25308         failures in the coreutils test suite.
25309
25310 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25311
25312         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25313         to succeed.
25314
25315 2008-09-16  Jim Meyering  <meyering@redhat.com>
25316
25317         avoid spurious test failure when library is built without ACL support
25318         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25319         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25320         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25321         * tests/test-copy-acl.sh: Likewise.
25322
25323 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25324
25325         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25326         based on character occurrence counts.
25327
25328 2008-09-15  Eric Blake  <ebb9@byu.net>
25329
25330         tests: avoid some compiler warnings
25331         * tests/test-memchr.c (main): Pass NULL indirectly.
25332         * tests/test-closein.c (main): Avoid unused variable.
25333
25334 2008-09-15  Bruno Haible  <bruno@clisp.org>
25335
25336         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25337         are missing on OpenBSD 4.0 individually.
25338         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25339
25340 2008-09-15  Bruno Haible  <bruno@clisp.org>
25341
25342         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25343         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25344         * doc/posix-functions/perror.texi: Likewise.
25345         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25346         is missing.
25347         Reported by Eric Blake.
25348
25349         * lib/errno.in.h: Use replacement values >= 2000.
25350         Reported by Eric Blake.
25351
25352 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25353
25354         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25355         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25356         limit.
25357         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25358         compareseq was aborted.
25359
25360 2008-09-14  Bruno Haible  <bruno@clisp.org>
25361
25362         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25363         yvec_edit_count.
25364         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25365         (fstrcmp_bounded): Simplify result computation accordingly.
25366
25367 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25368
25369         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25370         (fstrcmp): Define in terms of fstrcmp_bounded.
25371         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25372         lower_bound argument.
25373         Return quickly if the result is certainly < lower_bound.
25374         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25375
25376 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25377
25378         * lib/diffseq.h (EARLY_ABORT): New macro.
25379         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25380         evaluates to true.
25381
25382 2008-09-14  Bruno Haible  <bruno@clisp.org>
25383
25384         * modules/perror-tests: New file.
25385         * tests/test-perror.sh: New file.
25386         * tests/test-perror.c: New file.
25387
25388         New module 'perror'.
25389         * lib/stdio.in.h (perror): New declaration.
25390         * lib/perror.c: New file.
25391         * m4/perror.m4: New file.
25392         * modules/perror: New file.
25393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25394         * doc/posix-functions/perror.texi: Mention the perror module.
25395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25396         REPLACE_PERROR.
25397         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25398         REPLACE_PERROR.
25399
25400 2008-09-14  Bruno Haible  <bruno@clisp.org>
25401
25402         * modules/stdio (Makefile.am): Reorder to match the order in
25403         lib/stdio.in.h.
25404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25405
25406 2008-09-13  Bruno Haible  <bruno@clisp.org>
25407
25408         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25409
25410 2008-09-13  Bruno Haible  <bruno@clisp.org>
25411
25412         Extend strerror to cover the added errno values.
25413         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25414         (rpl_strerror): Provide error messages for the added errno values and
25415         for the WSA* values.
25416         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25417         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25418         strerror.
25419         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25420         * modules/strerror (Depends-on): Add errno.
25421         * doc/posix-functions/strerror.texi: Document the change.
25422         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25423         and EOVERFLOW.
25424
25425 2008-09-13  Bruno Haible  <bruno@clisp.org>
25426
25427         * modules/EOVERFLOW: Remove file.
25428         * m4/eoverflow.m4: Remove file.
25429         * modules/EOVERFLOW-tests: Remove file.
25430         * tests/test-EOVERFLOW.c: Remove file.
25431         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25432         * modules/ftell (Depends-on): Likewise.
25433         * modules/getdelim (Depends-on): Likewise.
25434         * modules/getugroups (Depends-on): Likewise.
25435         * modules/poll (Depends-on): Likewise.
25436         * modules/snprintf (Depends-on): Likewise.
25437         * modules/sprintf-posix (Depends-on): Likewise.
25438         * modules/vasnprintf (Depends-on): Likewise.
25439         * modules/vasprintf (Depends-on): Likewise.
25440         * modules/vfprintf-posix (Depends-on): Likewise.
25441         * modules/vsnprintf (Depends-on): Likewise.
25442         * modules/vsprintf-posix (Depends-on): Likewise.
25443         * modules/xvasprintf (Depends-on): Likewise.
25444         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25445         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25446         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25447         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25448         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25449         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25450         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25451         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25452         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25453         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25454         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25455         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25456         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25457         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25458         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25459         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25460         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25461         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25462         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25463         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25464         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25465         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25466         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25467         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25468         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25469         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25470         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25471         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25472         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25473         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25474         * MODULES.html.sh: Remove EOVERFLOW.
25475         * NEWS: Mention the change.
25476
25477 2008-09-13  Bruno Haible  <bruno@clisp.org>
25478
25479         * modules/errno-tests: New file.
25480         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25481
25482         * lib/errno.in.h: New file.
25483         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25484         * modules/errno: New file.
25485         * doc/posix-headers/errno.texi: Update documentation.
25486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25487
25488 2008-09-13  Bruno Haible  <bruno@clisp.org>
25489
25490         * tests/test-poll.c: Use #if for native Windows, rather than testing
25491         __MSVCRT__.
25492
25493 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25494             Bruno Haible  <bruno@clisp.org>
25495
25496         * lib/glob.c: Don't include <pwd.h> on native Windows.
25497         (WINDOWS32): New macro.
25498         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25499
25500 2008-09-13  Bruno Haible  <bruno@clisp.org>
25501
25502         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25503         (ETIMEDOUT): Remove macro.
25504         (glthread_cond_timedwait_multithreaded): New declaration.
25505         (glthread_cond_timedwait): Use it.
25506         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25507         (glthread_cond_timedwait_multithreaded): New function.
25508
25509 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25510
25511         * modules/poll-tests: Do not check for io.h.
25512         * tests/test-poll.c: Check for __MSVCRT__ instead.
25513
25514 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25515
25516         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25517         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25518         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25519
25520 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25521
25522         * modules/poll-tests: New.
25523         * tests/test-poll.c: New.
25524
25525 2008-09-12  Eric Blake  <ebb9@byu.net>
25526
25527         frexp: test for NetBSD failure on -0.0
25528         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25529         not all, bugs from NetBSD 3.0 have been fixed.
25530         * doc/posix-functions/frexp.texi (frexp): Document bug.
25531         Reported by Thomas Klausner.
25532
25533         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25534         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25535         literal -0.0.
25536         Reported by Jonathan C. Patschke <jp@centtech.com>.
25537
25538 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25539
25540         * lib/glthread/cond.h: Use dummy implementation also if
25541         USE_WIN32_THREADS.
25542
25543 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25544
25545         * modules/fnmatch-posix (License): Change to LGPLv2+.
25546         * modules/fnmatch-gnu (License): Likewise.
25547
25548 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25549
25550         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25551
25552 2008-09-11  Jim Meyering  <meyering@redhat.com>
25553
25554         * users.txt: Add gtk-vnc.
25555
25556 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25557
25558         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25559         rotate amounts.
25560
25561         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25562         required for 16-bit and 8-bit rotates.
25563         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25564         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25565         UINT8_MAX instead of hard-coded constants.
25566         Suggested by Paul Eggert.
25567
25568 2008-09-07  Bruno Haible  <bruno@clisp.org>
25569
25570         * tests/test-striconveh.c (main): Check behaviour when converting from
25571         UTF-7.
25572
25573         Make striconveh work better with stateful encodings.
25574         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25575         that iconv does not increment the inptr when returning -1/EINVAL.
25576
25577 2008-09-07  Bruno Haible  <bruno@clisp.org>
25578
25579         * build-aux/config.rpath: Update according to libtool-2.2.6.
25580         * build-aux/config.libpath: Likewise.
25581
25582 2008-09-06  Bruno Haible  <bruno@clisp.org>
25583
25584         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25585         * lib/freadptr.c (freadptr): Likewise.
25586         * lib/freadseek.c (freadptrinc): Likewise.
25587         Reported by Simon Josefsson.
25588
25589 2008-09-06  Bruno Haible  <bruno@clisp.org>
25590
25591         * modules/freadptr (License): Change to LGPLv2+.
25592         * modules/freadseek (License): Likewise.
25593         Suggested by Eric Blake.
25594
25595         * modules/memchr2 (License): Change to LGPLv2+.
25596         Approved by Eric Blake.
25597
25598 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25599             Bruno Haible  <bruno@clisp.org>
25600
25601         Make gnulib-tool work with native 'sed' on AIX.
25602         * gnulib-tool (sed_noop): New variable.
25603         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25604         func_add_or_update, func_create_testdir): Use it to initialize sed
25605         script variables.
25606         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25607
25608 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25609             Bruno Haible  <bruno@clisp.org>
25610
25611         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25612         also works after #include directives.
25613
25614 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
25615
25616         getdate.y: reject an out-of-range timezone value
25617         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
25618         the range [-24...+24].  When specified with only one or two digits,
25619         * tests/test-getdate.c: Tests for the fix.
25620         * doc/getdate.texi: Document this change.
25621
25622 2008-09-03  Bruno Haible  <bruno@clisp.org>
25623
25624         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
25625
25626 2008-09-02  Simon Josefsson  <simon@josefsson.org>
25627
25628         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
25629         <bruce.korb@gmail.com> with ideas from Ben Pfaff
25630         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
25631         Blake <ebb9@byu.net>.
25632
25633         * tests/test-bitrotate.c: Add more test vectors.
25634
25635 2008-09-02  Eric Blake  <ebb9@byu.net>
25636
25637         vasnprintf-posix: handle large precision via %.*d
25638         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
25639         when handling it ourselves.
25640         * tests/test-vasnprintf-posix.c (test_function): Add test.
25641         * tests/test-snprintf-posix.h (test_function): Likewise.
25642         * tests/test-sprintf-posix.h (test_function): Likewise.
25643         * tests/test-vasprintf-posix.c (test_function): Likewise.
25644         Reported by Alain Guibert.
25645
25646 2008-09-01  Eric Blake  <ebb9@byu.net>
25647
25648         c-stack: make configure-time check more robust
25649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25650         successful sigaction call.
25651         Reported by Tom G. Christensen.
25652
25653 2008-09-01  Bruno Haible  <bruno@clisp.org>
25654
25655         New module 'findprog-lgpl'.
25656         * modules/findprog-lgpl: New file.
25657         * lib/findprog-lgpl.c: New file.
25658         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25659         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25660         to decide whether to use strdup or xstrdup, concatenated_filename or
25661         xconcatenated_filename.
25662
25663 2008-09-01  Bruno Haible  <bruno@clisp.org>
25664
25665         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25666         'xconcat-filename' (GPL).
25667         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25668         (License): Change to LGPLv2+.
25669         * modules/xconcat-filename: New file.
25670         * lib/concat-filename.h (concatenated_filename): Change specification.
25671         (xconcatenated_filename): New declaration.
25672         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25673         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25674         memory situations.
25675         * lib/xconcat-filename.c: New file.
25676         * NEWS: Mention the change.
25677         * lib/findprog.c: Include concat-filename.h, not filename.h.
25678         (find_in_path): Use xconcatenated_filename instead of
25679         concatenated_filename.
25680         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25681         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25682         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25683         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25684         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25685         instead of concatenated_filename.
25686         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25687         (execute_java_class): Use xconcatenated_filename instead of
25688         concatenated_filename.
25689         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25690         * modules/javacomp (Depends-on): Likewise.
25691         * modules/javaexec (Depends-on): Likewise.
25692
25693 2008-09-01  Bruno Haible  <bruno@clisp.org>
25694
25695         Split module 'filename' into 'filename' and 'concat-filename'.
25696         * modules/filename: Keep only lib/filename.h.
25697         (License): Change to LGPLv2+.
25698         * modules/concat-filename: New file, extracted from modules/filename.
25699         * lib/filename.h (concatenated_filename): Remove declaration.
25700         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25701         * lib/concat-filename.c: Include concat-filename.h.
25702         * NEWS: Mention the change.
25703
25704 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25705
25706         * lib/bitrotate.h (rotl8, rotr8): Add.
25707
25708         * modules/bitrotate (configure.ac): Need
25709         AC_REQUIRE([AC_C_INLINE]).
25710         (Description): Mention stdint.h.  Reported by Bruno Haible
25711         <bruno@clisp.org>.
25712
25713         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
25714         Paolo Bonzini <bonzini@gnu.org>.
25715
25716 2008-08-31  Bruno Haible  <bruno@clisp.org>
25717
25718         Assume Solaris specific bi-arch conventions on Solaris systems.
25719         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
25720         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
25721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
25722         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
25723         like acl_libdirstem.
25724         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
25725         acl_libdirstem.
25726         * NEWS: Mention the change.
25727         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
25728
25729 2008-08-31  Jim Meyering  <meyering@redhat.com>
25730
25731         * lib/strftime.h: Add comments describing the two added arguments.
25732
25733         remove duplicate #include directives
25734         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
25735         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
25736
25737 2008-08-31  Bruno Haible  <bruno@clisp.org>
25738
25739         New module 'sigpipe-die'.
25740         * modules/sigpipe-die: New file.
25741         * lib/sigpipe-die.h: New file.
25742         * lib/sigpipe-die.c: New file.
25743         * MODULES.html.sh (Signal handling): Add sigpipe-die.
25744
25745 2008-08-31  Bruno Haible  <bruno@clisp.org>
25746
25747         Don't override previously installed signal handlers.
25748         * lib/fatal-signal.c (saved_sigactions): New variable.
25749         (uninstall_handlers): Reset the signal to the saved handler, not
25750         to SIG_DFL (except when ignored).
25751         (install_handlers): Save the previous handlers.
25752
25753 2008-08-30  Bruno Haible  <bruno@clisp.org>
25754
25755         * gnulib-tool (func_reset_sigpipe): New function.
25756         (func_get_automake_snippet, func_modules_transitive_closure,
25757         func_import): Invoke it before a join command that reads from stdin,
25758         to avoid "echo: write error: Broken pipe" error messages on stderr.
25759         Reported by Sam Steingold <sds@gnu.org>.
25760
25761 2008-08-30  Bruno Haible  <bruno@clisp.org>
25762
25763         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
25764         Code copied from m4/open.m4.
25765         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
25766         access and the filename ends in a slash. Code copied from lib/open.c.
25767         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
25768         * tests/test-fopen.c (main): Check against bug with trailing slash.
25769
25770 2008-08-29  Bruno Haible  <bruno@clisp.org>
25771
25772         Avoid some "gcc -pedantic" warnings.
25773         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
25774         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
25775         * lib/dirent.in.h: Likewise.
25776         * lib/fcntl.in.h: Likewise.
25777         * lib/float.in.h: Likewise.
25778         * lib/iconv.in.h: Likewise.
25779         * lib/inttypes.in.h: Likewise.
25780         * lib/locale.in.h: Likewise.
25781         * lib/math.in.h: Likewise.
25782         * lib/netinet_in.in.h: Likewise.
25783         * lib/search.in.h: Likewise.
25784         * lib/signal.in.h: Likewise.
25785         * lib/stdarg.in.h: Likewise.
25786         * lib/stdint.in.h: Likewise.
25787         * lib/stdio.in.h: Likewise.
25788         * lib/stdlib.in.h: Likewise.
25789         * lib/string.in.h: Likewise.
25790         * lib/strings.in.h: Likewise.
25791         * lib/sys_select.in.h: Likewise.
25792         * lib/sys_socket.in.h: Likewise.
25793         * lib/sys_stat.in.h: Likewise.
25794         * lib/sys_time.in.h: Likewise.
25795         * lib/sysexits.in.h: Likewise.
25796         * lib/time.in.h: Likewise.
25797         * lib/unistd.in.h: Likewise.
25798         * lib/wchar.in.h: Likewise.
25799         * lib/wctype.in.h: Likewise.
25800         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
25801         * modules/fchdir (Makefile.am): Likewise.
25802         * modules/fcntl (Makefile.am): Likewise.
25803         * modules/float (Makefile.am): Likewise.
25804         * modules/iconv_open (Makefile.am): Likewise.
25805         * modules/inttypes (Makefile.am): Likewise.
25806         * modules/locale (Makefile.am): Likewise.
25807         * modules/math (Makefile.am): Likewise.
25808         * modules/netinet_in (Makefile.am): Likewise.
25809         * modules/search (Makefile.am): Likewise.
25810         * modules/signal (Makefile.am): Likewise.
25811         * modules/stdarg (Makefile.am): Likewise.
25812         * modules/stdint (Makefile.am): Likewise.
25813         * modules/stdio (Makefile.am): Likewise.
25814         * modules/stdlib (Makefile.am): Likewise.
25815         * modules/string (Makefile.am): Likewise.
25816         * modules/strings (Makefile.am): Likewise.
25817         * modules/sys_select (Makefile.am): Likewise.
25818         * modules/sys_socket (Makefile.am): Likewise.
25819         * modules/sys_stat (Makefile.am): Likewise.
25820         * modules/sys_time (Makefile.am): Likewise.
25821         * modules/sysexits (Makefile.am): Likewise.
25822         * modules/time (Makefile.am): Likewise.
25823         * modules/unistd (Makefile.am): Likewise.
25824         * modules/wchar (Makefile.am): Likewise.
25825         * modules/wctype (Makefile.am): Likewise.
25826         Reported by Reuben Thomas <rrt@sc3d.org>.
25827
25828 2008-08-29  Bruno Haible  <bruno@clisp.org>
25829
25830         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
25831         any more.
25832
25833 2008-08-29  Simon Josefsson  <simon@josefsson.org>
25834
25835         * MODULES.html.sh (Misc): Add bitrotate.
25836
25837         * modules/bitrotate: New file.
25838
25839         * lib/bitrotate.h: New file.
25840
25841         * modules/bitrotate-tests: New file.
25842
25843         * tests/test-bitrotate.c: New file.
25844
25845         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
25846         on the bitrotate module.
25847
25848         * lib/arctwo.c: Use new bitrotate module.
25849
25850 2008-08-29  Jim Meyering  <meyering@redhat.com>
25851
25852         bootstrap: merge changes from coreutils
25853         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
25854         of copied files.  Remove a kludge, now that this is fixed.
25855         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
25856         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
25857         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
25858
25859 2008-08-29  Bruno Haible  <bruno@clisp.org>
25860
25861         * MODULES.html.sh: Remove --cvs-urls option.
25862
25863 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
25864
25865         maint.mk: adjust to file name change
25866         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
25867
25868 2008-08-28  Jim Meyering  <meyering@redhat.com>
25869
25870         * modules/getndelim2 (License): Relicense to LGPLv2+.
25871         Approved by Richard Stallman for the version of 1995, and by
25872         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
25873
25874 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
25875
25876         * lib/getdelim.c (flockfile, funlockfile): Make all of them
25877         dummy if one is not available.  Do not touch them if
25878         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
25879         (getc_maybe_unlocked): New.
25880         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
25881
25882 2008-08-26  Eric Blake  <ebb9@byu.net>
25883
25884         doc/INSTALL: resync from autoconf
25885         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
25886         (INSTALL_PRELUDE): Delete; this is done more efficiently by
25887         moving...
25888         * install.texi [!autoconf]: ...here.  Resync from autoconf.
25889         * INSTALL: Regenerate.
25890         * INSTALL.ISO: New file.
25891         * INSTALL.UTF-8: Likewise.
25892
25893 2008-08-26  Jim Meyering  <meyering@redhat.com>
25894
25895         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
25896         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
25897         these definitions conditional, so that they may be overridden, too.
25898
25899 2008-08-26  Bruno Haible  <bruno@clisp.org>
25900
25901         Generate INSTALL file variants with prettier quotes.
25902         * doc/Makefile (INSTALL_PRELUDE): New macro.
25903         (INSTALL): Use it.
25904         (INSTALL.ISO, INSTALL.UTF-8): New rules.
25905
25906 2008-08-26  Bruno Haible  <bruno@clisp.org>
25907
25908         Run makeinfo in an English locale.
25909         * doc/Makefile (MAKEINFO): New variable.
25910
25911 2008-08-26  Bruno Haible  <bruno@clisp.org>
25912
25913         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
25914         Suggested by Eric Blake.
25915
25916 2008-08-25  Bruno Haible  <bruno@clisp.org>
25917
25918         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
25919
25920 2008-08-25  Eric Blake  <ebb9@byu.net>
25921
25922         c-stack: test that stack overflow can be caught
25923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
25924         that platform allows handling stack overflow; at least OS/2 EMX
25925         has sigaltstack, but crashes before transferring control to
25926         handler on stack overflow.
25927         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
25928         check for HAVE_STACK_OVERFLOW_HANDLING.
25929         Reported by Elbert Pol.
25930
25931 2008-08-25  Bruno Haible  <bruno@clisp.org>
25932
25933         * doc/posix-functions/strftime.texi: Fix description of strftime
25934         module.
25935
25936 2008-08-24  Bruno Haible  <bruno@clisp.org>
25937
25938         * tests/uniwidth/test-uc_width2.c: New file.
25939         * tests/uniwidth/test-uc_width2.sh: New file.
25940         * modules/uniwidth/width-tests (Files): Add the new files.
25941         (TESTS): Add uniwidth/test-uc_width2.sh.
25942         (TESTS_ENVIRONMENT): New variable.
25943         (check_PROGRAMS): Add test-uc_width2.
25944         (test_uc_width2_SOURCES): New variable.
25945
25946         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
25947         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
25948         not 0x00AB.
25949         Reported by Alexander V. Lukyanov <lav@netis.ru>.
25950
25951 2008-08-22  Eric Blake  <ebb9@byu.net>
25952
25953         test-lock, test-tls: mention why a test is skipped
25954         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
25955         skipped.
25956         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
25957
25958         count-one-bits: relax license
25959         * modules/count-one-bits (License): Relicense to LGPLv2+.
25960         Suggested by Ludovic Courtès, approved by Ben Pfaff.
25961
25962 2008-08-22  Andreas Schwab  <schwab@suse.de>
25963
25964         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25965         Remove spurious space in assignment.
25966
25967 2008-08-21  Simon Josefsson  <simon@josefsson.org>
25968
25969         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
25970         Paul Eggert <eggert@CS.UCLA.EDU>.
25971
25972 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
25973
25974         * modules/gettext: Add m4/threadlib.m4.
25975
25976 2008-08-19  Eric Blake  <ebb9@byu.net>
25977
25978         test-c-stack: fix compilation failure on FreeBSD 5.0
25979         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
25980         headers before <sys/resource.h>.
25981         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
25982         the bug.
25983         Reported by Nelson H. F. Beebe.
25984
25985         strverscmp: migrate from "strverscmp.h" to <string.h>
25986         * modules/string (Makefile.am): Add new hooks.
25987         * modules/strverscmp (Files): Remove strverscmp.h.
25988         (Depends-on): Add string.
25989         (configure.ac): Add indicator.
25990         (Include): Mention new header.
25991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
25992         defaults.
25993         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
25994         results.
25995         * lib/strverscmp.h: Delete.
25996         * lib/string.in.h (strverscmp): Provide declaration, when needed.
25997         * tests/test-strverscmp.c (includes): Adjust client.
25998         * lib/check-version.c (includes): Likewise.
25999         * NEWS: Document the change.
26000
26001         strverscmp: add unit test
26002         * modules/strverscmp-tests: New file.
26003         * tests/test-strverscmp.c: Likewise.
26004
26005 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26006
26007         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26008         regarding Windows crypto stuff, from Mono.
26009
26010 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26011
26012         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26013         if present, for intel RND.  Return error on failures.
26014
26015 2008-08-18  Ben Pfaff  <blp@gnu.org>
26016
26017         gitlog-to-changelog: give better diagnostic for failed pipe-open
26018         * build-aux/gitlog-to-changelog: Improve error message: suggest
26019         that the version of Git may be too old.
26020
26021 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26022
26023         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26024         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26025
26026 2008-08-18  Bruno Haible  <bruno@clisp.org>
26027
26028         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26029         pthread_in_use().
26030
26031 2008-08-18  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/glthread/threadlib.c: Include <pthread.h>.
26034
26035 2008-08-18  Bruno Haible  <bruno@clisp.org>
26036
26037         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26038         glthread_recursive_lock_* macros.
26039         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26040         Fix syntax error.
26041
26042 2008-08-18  Bruno Haible  <bruno@clisp.org>
26043
26044         * lib/glthread/thread.c: Avoid forcing a context switch right after
26045         thread creation.
26046
26047 2008-08-17  Bruno Haible  <bruno@clisp.org>
26048
26049         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26050         * lib/glthread/thread.h: Provide Win32 specific implementation.
26051         * modules/thread (Files): Add lib/glthread/thread.c.
26052         (Depends-on): Add lock.
26053         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26054
26055 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26056
26057         New module 'yield'.
26058         * modules/yield: New file.
26059         * lib/glthread/yield.h: New file.
26060         * m4/yield.m4: New file.
26061         * MODULES.html.sh (Multithreading): Add yield.
26062
26063 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26064
26065         New module 'thread'.
26066         * modules/thread: New file.
26067         * lib/glthread/thread.h: New file.
26068         * m4/thread.m4: New file.
26069         * MODULES.html.sh (Multithreading): Add thread.
26070
26071 2008-08-17  Bruno Haible  <bruno@clisp.org>
26072
26073         * lib/glthread/lock.h: Include <stdlib.h> always.
26074         * lib/glthread/tls.h: Likewise.
26075         * lib/glthread/cond.h: Likewise.
26076
26077 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26078
26079         New module 'cond'.
26080         * modules/cond: New file.
26081         * lib/glthread/cond.h: New file.
26082         * lib/glthread/cond.c: New file.
26083         * m4/cond.m4: New file.
26084         * MODULES.html.sh (Multithreading): Add cond.
26085
26086 2008-08-16  Eric Blake  <ebb9@byu.net>
26087
26088         c-stack: fix regression on Irix 5.3 from 2008-06-21
26089         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26090         sa_sigaction...
26091         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26092         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26093         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26094         * modules/signal (Makefile.am): Use the value.
26095         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26096         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26097         * doc/posix-headers/signal.texi (signal.h): Document this
26098         portability issue.
26099         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26100         Reported by Tom G. Christensen.
26101
26102 2008-08-17  Bruno Haible  <bruno@clisp.org>
26103
26104         New module 'threadlib'.
26105         * modules/threadlib: New file.
26106         * lib/glthread/threadlib.c: New file, extracted from
26107         lib/glthread/lock.c.
26108         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26109         functions.
26110         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26111         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26112         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26113         macros.
26114         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26115         (gl_DISABLE_THREADS): Remove macro.
26116         * modules/lock (Files): Remove build-aux/config.rpath.
26117         (Depends-on): Remove havelib. Add threadlib.
26118         (configure.ac-early): Remove section.
26119         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26120         * modules/tls (Depends-on): Remove lock. Add threadlib.
26121         (Link): New section, copied from threadlib.
26122         * MODULES.html.sh (Multithreading): Add threadlib.
26123
26124 2008-08-14  Bruno Haible  <bruno@clisp.org>
26125
26126         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26127         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26128         glthread_rwlock_unlock, glthread_rwlock_destroy,
26129         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26130         glthread_recursive_lock_destroy): Define as macros always.
26131         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26132         glthread_lock_lock.
26133         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26134         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26135         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26136         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26137         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26138         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26139         (glthread_recursive_lock_lock_func): Renamed from
26140         glthread_recursive_lock_lock.
26141         (glthread_recursive_lock_unlock_func): Renamed from
26142         glthread_recursive_lock_unlock.
26143         (glthread_recursive_lock_destroy_func): Renamed from
26144         glthread_recursive_lock_destroy.
26145
26146 2008-08-14  Bruno Haible  <bruno@clisp.org>
26147
26148         * lib/glthread/lock.h: Renamed from lib/lock.h.
26149         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26150         * lib/glthread/tls.h: Renamed from lib/tls.h.
26151         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26152         * lib/fstrcmp.c: Update includes.
26153         * lib/strsignal.c: Update includes.
26154         * modules/lock (Files, Makefile.am): Update.
26155         (Include): Change to "glthread/lock.h".
26156         * modules/tls (Files, Makefile.am): Update.
26157         (Include): Change to "glthread/tls.h".
26158         * tests/test-lock.c: Update includes.
26159         * tests/test-tls.c: Update includes.
26160         * NEWS: Mention the renamed header files.
26161
26162 2008-08-11  Jim Meyering  <meyering@redhat.com>
26163
26164         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26165
26166 2008-08-11  Eric Blake  <ebb9@byu.net>
26167
26168         test-c-stack: avoid C99-ism
26169         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26170         before statement.
26171         Reported by Alain Guibert.
26172
26173 2008-08-10  Jim Meyering  <meyering@redhat.com>
26174
26175         ensure that return value of uinttostr et al are not ignored
26176         * lib/inttostr.h (__GNUC_PREREQ): Define.
26177         (__attribute_warn_unused_result__): Define.
26178         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26179
26180 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26181
26182         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26183         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26184
26185 2008-08-07  Jim Meyering  <meyering@redhat.com>
26186
26187         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26188
26189         * modules/mkstemp (License): Relicense under LGPLv2+.
26190         * modules/tempname (License): Likewise.
26191
26192 2008-08-06  Bruno Haible  <bruno@clisp.org>
26193
26194         * lib/poll.c (poll): Further micro-optimization.
26195
26196 2008-08-06  Jim Meyering  <meyering@redhat.com>
26197
26198         inet_pton.c: use locale-independent tolower
26199         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26200         (inet_pton6): Use c_tolower rather than tolower.
26201         * modules/inet_pton (Depends-on): Add c-ctype.
26202
26203 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26204
26205         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26206         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26207
26208 2008-08-06  Jim Meyering  <meyering@redhat.com>
26209
26210         * modules/inet_pton (License): Relicense under LGPLv2+.
26211
26212 2008-08-03  Bruno Haible  <bruno@clisp.org>
26213
26214         Additional non-aborting API for lock and tls.
26215         * lib/lock.h: Include <errno.h>.
26216         (glthread_lock_init): New macro/function.
26217         (gl_lock_init): Define as wrapper around glthread_lock_init.
26218         (glthread_lock_lock): New macro/function.
26219         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26220         (glthread_lock_unlock): New macro/function.
26221         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26222         (glthread_lock_destroy): New macro/function.
26223         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26224         (glthread_rwlock_init): New macro/function.
26225         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26226         (glthread_rwlock_rdlock): New macro/function.
26227         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26228         (glthread_rwlock_wrlock): New macro/function.
26229         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26230         (glthread_rwlock_unlock): New macro/function.
26231         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26232         (glthread_rwlock_destroy): New macro/function.
26233         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26234         (glthread_recursive_lock_init): New macro/function.
26235         (gl_recursive_lock_init): Define as wrapper around
26236         glthread_recursive_lock_init.
26237         (glthread_recursive_lock_lock): New macro/function.
26238         (gl_recursive_lock_lock): Define as wrapper around
26239         glthread_recursive_lock_lock.
26240         (glthread_recursive_lock_unlock): New macro/function.
26241         (gl_recursive_lock_unlock): Define as wrapper around
26242         glthread_recursive_lock_unlock.
26243         (glthread_recursive_lock_destroy): New macro/function.
26244         (gl_recursive_lock_destroy): Define as wrapper around
26245         glthread_recursive_lock_destroy.
26246         (glthread_once): New macro/function.
26247         (gl_once): Define as wrapper around glthread_once.
26248         Update function declarations.
26249         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26250         glthread_rwlock_init. Return error code.
26251         (glthread_rwlock_rdlock_multithreaded): Renamed from
26252         glthread_rwlock_rdlock. Return error code.
26253         (glthread_rwlock_wrlock_multithreaded): Renamed from
26254         glthread_rwlock_wrlock. Return error code.
26255         (glthread_rwlock_unlock_multithreaded): Renamed from
26256         glthread_rwlock_unlock. Return error code.
26257         (glthread_rwlock_destroy_multithreaded): Renamed from
26258         glthread_rwlock_destroy. Return error code.
26259         (glthread_recursive_lock_init_multithreaded): Renamed from
26260         glthread_recursive_lock_init. Return error code.
26261         (glthread_recursive_lock_lock_multithreaded): Renamed from
26262         glthread_recursive_lock_lock. Return error code.
26263         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26264         glthread_recursive_lock_unlock. Return error code.
26265         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26266         glthread_recursive_lock_destroy. Return error code.
26267         (glthread_once_call): Make static.
26268         (glthread_once_multithreaded): Renamed from glthread_once.
26269         * lib/tls.h: Include <errno.h>.
26270         (glthread_tls_key_init): New macro/function.
26271         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26272         (glthread_tls_set): New macro/function.
26273         (gl_tls_set): Define as wrapper around glthread_tls_set.
26274         (glthread_tls_key_destroy): New macro/function.
26275         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26276         Update function declarations.
26277         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26278         glthread_tls_get.
26279         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26280
26281 2008-08-04  Eric Blake  <ebb9@byu.net>
26282
26283         gnumakefile: use space, not TAB, outside of targets
26284         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26285
26286 2008-08-02  Jim Meyering  <meyering@redhat.com>
26287
26288         getdate.y: avoid locale-dependent date parsing failure
26289         In Turkish locales, getdate would fail to recognize keywords
26290         containing a lowercase "i".  The solution is not to rely on
26291         locale-sensitive case-conversion.
26292         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26293         (lookup_word): Use c_toupper in place of toupper.
26294         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26295         Reported by Vefa Bicakci <bicave@superonline.com> in
26296         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26297         * modules/getdate (Depends-on): Add c-ctype.
26298
26299 2008-08-02  Bruno Haible  <bruno@clisp.org>
26300
26301         * gnulib-tool (func_import): When updating or creating a .gitignore
26302         file, prepend each added line with a slash, and ignore leading slashes
26303         from the existing lines.
26304         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26305
26306 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26307
26308         Portability fix for GNU make 3.79.1.
26309         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26310         versions do not understand.
26311
26312 2008-08-01  Bruno Haible  <bruno@clisp.org>
26313
26314         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26315         * tests/test-isnanf.h (zero): New variable.
26316         (main): Avoid literal -0.0f.
26317         * tests/test-isnand.h (zero): New variable.
26318         (main): Avoid literal -0.0.
26319         * tests/test-isnanl.h (zero): New variable.
26320         (main): Avoid literal -0.0L.
26321         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26322         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26323         -0.0, -0.0L.
26324         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26325         (test_signbitd): Avoid literal -0.0.
26326         (test_signbitl): Avoid literal -0.0L.
26327         * tests/test-ceilf1.c (zero): New variable.
26328         (main): Avoid literal -0.0f.
26329         * tests/test-ceill.c (zero): New variable.
26330         (main): Avoid literal -0.0L.
26331         * tests/test-floorf1.c (zero): New variable.
26332         (main): Avoid literal -0.0f.
26333         * tests/test-floorl.c (zero): New variable.
26334         (main): Avoid literal -0.0L.
26335         * tests/test-roundf1.c (zero): New variable.
26336         (main): Avoid literal -0.0f.
26337         * tests/test-round1.c (zero): New variable.
26338         (main): Avoid literal -0.0.
26339         * tests/test-roundl.c (zero): New variable.
26340         (main): Avoid literal -0.0L.
26341         * tests/test-truncf1.c (zero): New variable.
26342         (main): Avoid literal -0.0f.
26343         * tests/test-trunc1.c (zero): New variable.
26344         (main): Avoid literal -0.0.
26345         * tests/test-truncl.c (zero): New variable.
26346         (main): Avoid literal -0.0L.
26347         * tests/test-frexp.c (zero): New variable.
26348         (main): Avoid literal -0.0.
26349         * tests/test-frexpl.c (zero): New variable.
26350         (main): Avoid literal -0.0L.
26351         * tests/test-ldexpl.c (zero): New variable.
26352         (main): Avoid literal -0.0L.
26353         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26354         (zerod, zerol): New variables.
26355         (test_function): Avoid literals -0.0, -0.0L.
26356         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26357         (zerod, zerol): New variables.
26358         (test_function): Avoid literals -0.0, -0.0L.
26359         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26360         (zerod, zerol): New variables.
26361         (test_function): Avoid literals -0.0, -0.0L.
26362         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26363         (zerod, zerol): New variables.
26364         (test_function): Avoid literals -0.0, -0.0L.
26365         * tests/test-strtod.c (zero): New variable.
26366         (main): Avoid literal -0.0.
26367         Reported by Jonathan C. Patschke <jp@centtech.com>.
26368
26369 2008-07-31  Jim Meyering  <meyering@redhat.com>
26370
26371         sha256.h: correct definition of SHA224_DIGEST_SIZE
26372         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26373         Reported by Paulie Pena IV <paulie4@gmail.com>.
26374         Define as 224 / 8, rather than as a literal.
26375         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26376         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26377         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26378
26379 2008-07-31  Bruno Haible  <bruno@clisp.org>
26380
26381         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26382         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26383         Reported by Jonathan Patschke <jp@centtech.com>.
26384
26385 2008-07-31  Bruno Haible  <bruno@clisp.org>
26386
26387         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26388         Reported by Paolo Bonzini <bonzini@gnu.org>.
26389
26390 2008-07-30  Eric Blake  <ebb9@byu.net>
26391
26392         test-strtod: allow compilation without -lm
26393         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26394         Reported by Dennis Clarke <blastwave@gmail.com>.
26395
26396 2008-07-28  Jim Meyering  <meyering@redhat.com>
26397
26398         bootstrap: work also when there are no .po files in po/
26399         * build-aux/bootstrap (update_po_files): Complete the change
26400         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26401
26402 2008-07-27  Jim Meyering  <meyering@redhat.com>
26403
26404         * users.txt: Add zile.
26405
26406 2008-07-26  Ben Pfaff  <blp@gnu.org>
26407
26408         Add missing dependencies on new m4/exponent[fdl].m4 files.
26409         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26410         * modules/isnand-nolibm: Add m4/exponentd.m4.
26411         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26412         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26413         m4/isnan[fdl].m4, because the macros actually used moved.
26414         Reported by Jim Meyering.
26415
26416 2008-07-14  Ben Pfaff  <blp@gnu.org>
26417
26418         Add isinf module.
26419         * lib/isinf.c: New file.
26420         * lib/math.in.h: Define isinf macro if we have decided to replace
26421         it.
26422         * m4/isinf.m4: New file.
26423         * m4/math_h.m4: Initialize and substitute variables for isinf
26424         module.
26425         * modules/isinf: New file.
26426         * modules/isinf-tests: New file.
26427         * modules/math: Add substitutions for new module.
26428         * tests/test-isinf.c: New file.
26429         * doc/posix-functions/isinf.texi: Mention new module.
26430         * MODULES.html.sh: Mention new module.
26431
26432 2008-07-14  Ben Pfaff  <blp@gnu.org>
26433
26434         Factor out some macros for use by additional modules.
26435         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26436         exponentf.m4.
26437         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26438         exponentd.m4.
26439         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26440         file exponentl.m4.
26441         * m4/exponentf.m4: New file.
26442         * m4/exponentd.m4: New file.
26443         * m4/exponentl.m4: New file.
26444         * modules/isnanf: Use new file m4/exponentf.m4.
26445         * modules/isnand: Use new file m4/exponentd.m4.
26446         * modules/isnanl: Use new file m4/exponentl.m4.
26447
26448 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26449
26450         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26451         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26452         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26453         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26454
26455         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26456         readlink on platforms without PATH_MAX.
26457
26458 2008-07-21  Eric Blake  <ebb9@byu.net>
26459
26460         Warn, not fail, on stale version.
26461         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26462
26463         Don't allow installation with stale devel version number.
26464         * top/GNUmakefile (_is-install-target): New macro.
26465         (_curr-ver): Forbid installation with stale version number.
26466
26467 2008-07-20  Bruno Haible  <bruno@clisp.org>
26468
26469         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26470         TESTS_ENVIRONMENT.
26471         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26472
26473 2008-07-20  Bruno Haible  <bruno@clisp.org>
26474
26475         * lib/c-stack.h (c_stack_action): Add documentation.
26476         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26477
26478 2008-07-20  Bruno Haible  <bruno@clisp.org>
26479
26480         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26481         * modules/readlink (License): Likewise.
26482
26483 2008-07-17  Eric Blake  <ebb9@byu.net>
26484
26485         * modules/c-stack (Link): Fix typo.
26486
26487         Make c-stack use libsigsegv, when available.
26488         * modules/c-stack (Depends-on): Add libsigsegv.
26489         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26490         needed.
26491         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26492         (segv_handler, overflow_handler, c_stack_action)
26493         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26494         implementation when libsigsegv is available, but only when using
26495         the library is necessary.
26496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26497         comment, explaining why XSI check fails on Linux.
26498         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26499         * tests/test-c-stack2.sh: Tweak skip message.
26500         * NEWS: Document new link-time requirements.
26501
26502 2008-07-16  Eric Blake  <ebb9@byu.net>
26503
26504         c-stack: Expose false positives when not using libsigsegv.
26505         * modules/c-stack-tests (Files): Expand test.
26506         * tests/test-c-stack.c (main): Add means to conditionally trigger
26507         non-overflow SIGSEGV.
26508         * tests/test-c-stack2.sh: New file.
26509
26510 2008-07-14  Bruno Haible  <bruno@clisp.org>
26511
26512         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26513         Reported by Eric Blake.
26514
26515 2008-07-14  Sam Steingold  <sds@gnu.org>
26516             Bruno Haible  <bruno@clisp.org>
26517
26518         New module libsigsegv.
26519         * modules/libsigsegv: New file.
26520         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26521         modifications.
26522         * MODULES.html.sh (Signal handling): New section.
26523
26524 2008-07-14  Bruno Haible  <bruno@clisp.org>
26525
26526         * modules/unictype/ctype-* (Description): Add the word "function".
26527         Improves the resulting doc in MODULES.html.
26528
26529 2008-07-12  Ben Pfaff  <blp@gnu.org>
26530
26531         Add longlong module.
26532         * modules/longlong: New file.
26533
26534 2008-07-12  Bruno Haible  <bruno@clisp.org>
26535
26536         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26537         to empty.
26538
26539 2008-07-10  Ben Pfaff  <blp@gnu.org>
26540
26541         Add isnan module.
26542         * doc/posix-functions/isnan.texi: Mention new module.
26543         * lib/math.in.h: Define isnan macro if we have decided to replace
26544         it.
26545         * m4/isnan.m4: New file.
26546         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26547         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26548         also.
26549         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26550         redundancy.
26551         * m4/math_h.m4: Initialize and substitute variables for isnan
26552         module.
26553         * modules/isnan: New file.
26554         * modules/isnan-tests: New file.
26555         * modules/math: Add substitutions for new module.
26556         * tests/test-isnan.c: New file.
26557         * MODULES.html.sh: Mention new module.
26558
26559 2008-07-10  Ben Pfaff  <blp@gnu.org>
26560
26561         Add isnanf module.
26562         * lib/isnanf.m4: New file.
26563         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26564         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26565         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26566         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26567         * modules/isnanf: New file.
26568         * modules/isnanf-tests: New file.
26569         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26570         files.
26571         * tests/test-isnanf-nolibm.c: factored most of its contents into
26572         new file tests/test-isnanf.h.
26573         * tests/test-isnanf.h: New file.
26574         * tests/test-isnanf.c: New file.
26575         * MODULES.html.sh: Mention new module.
26576         * doc/glibc-functions/isnanf.texi: Mention new module.
26577
26578 2008-07-10  Ben Pfaff  <blp@gnu.org>
26579
26580         Add isnand module.
26581         * lib/isnand.h: New file.
26582         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26583         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26584         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26585         functionality also.
26586         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26587         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26588         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26589         * modules/isnand: New file.
26590         * modules/isnand-tests: New file.
26591         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26592         files.
26593         * tests/test-isnand-nolibm.c: factored most of its contents into
26594         new file tests/test-isnand.h.
26595         * tests/test-isnand.h: New file.
26596         * tests/test-isnand.c: New file.
26597         * MODULES.html.sh: Mention new module.
26598
26599 2008-07-10  Ben Pfaff  <blp@gnu.org>
26600
26601         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26602         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26603         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26604         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26605         * modules/isnanf-nolibm: Update references to renamed files.
26606         * modules/isnand-nolibm: Likewise.
26607         * modules/isnanf-nolibm-tests: Likewise.
26608         * modules/isnand-nolibm-tests: Likewise.
26609         * lib/frexp.c: Likewise.
26610         * lib/isfinite.c: Likewise.
26611         * lib/signbitd.c: Likewise.
26612         * lib/signbitf.c: Likewise.
26613         * lib/vasnprintf.c: Likewise.
26614         * tests/test-ceilf1.c: Likewise.
26615         * tests/test-ceilf2.c: Likewise.
26616         * tests/test-floorf1.c: Likewise.
26617         * tests/test-floorf2.c: Likewise.
26618         * tests/test-frexp.c: Likewise.
26619         * tests/test-round1.c: Likewise.
26620         * tests/test-round2.c: Likewise.
26621         * tests/test-roundf1.c: Likewise.
26622         * tests/test-strtod.c: Likewise.
26623         * tests/test-trunc1.c: Likewise.
26624         * tests/test-trunc2.c: Likewise.
26625         * tests/test-truncf1.c: Likewise.
26626         * tests/test-truncf2.c: Likewise.
26627         * NEWS: Mention the renamed header files.
26628
26629 2008-07-11  Jim Meyering  <meyering@redhat.com>
26630
26631         vc-list-files: make the last-resort awk code more portable
26632         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
26633         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
26634         does not support it.
26635
26636 2008-07-10  Eric Blake  <ebb9@byu.net>
26637
26638         Work with tar's bootstrap.
26639         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
26640         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26641         an m4 comment.
26642
26643 2008-07-09  Jim Meyering  <meyering@redhat.com>
26644
26645         posix-shell.m4: fix typo that made this test malfunction
26646         * m4/posix-shell.m4: Remove capitalization in variable name.
26647
26648 2008-07-08  Bruno Haible  <bruno@clisp.org>
26649
26650         * m4/onceonly.m4: Update comments.
26651         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26652
26653 2008-07-04  Jim Meyering  <meyering@redhat.com>
26654
26655         * users.txt: Add vc-dwim.
26656         (bison, coreutils): Use the gitweb URL.
26657
26658 2008-07-03  Jim Meyering  <meyering@redhat.com>
26659
26660         * users.txt: Add libffcall.  From Sam Steingold.
26661
26662 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
26663
26664         getdate.y: do not ignore TZ with relative day, month or year offset
26665         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26666         relative-date-handling, since otherwise, the latter would clobber the
26667         sole output (an updated Start value) of the tz-handling block.
26668         * tests/test-getdate.c: Tests for the fix
26669
26670 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26671
26672         Recognize 'foo_LIBRARIES += libgnu.a'.
26673         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26674         makefile snippet has already specified an installation location,
26675         also using '+='.
26676
26677 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
26678
26679         getdate.y: factor out common actions
26680         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26681         Use them in place of open-coded actions.
26682
26683 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26684
26685         Add self-test for getdate module.
26686         * modules/getdate-tests: New file.
26687         * tests/test-getdate.c: New file.
26688
26689 2008-06-29  Bruno Haible  <bruno@clisp.org>
26690
26691         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26692         .gitignore.
26693         Reported by Sylvain Beucler <beuc@beuc.net>.
26694
26695 2008-06-29  Bruno Haible  <bruno@clisp.org>
26696
26697         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26698         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26699
26700 2008-06-29  Bruno Haible  <bruno@clisp.org>
26701
26702         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26703         EXTRA_DIST.
26704         Reported by Sylvain Beucler <beuc@beuc.net>.
26705
26706 2008-06-26  Jim Meyering  <meyering@redhat.com>
26707
26708         make several modules depend on the "open" module
26709         This provides slightly increased consistency when opening-for-write
26710         the name of a non-directory spelled with a trailing slash.
26711         * modules/chdir-safer: Likewise.
26712         * modules/chown: Likewise.
26713         * modules/clean-temp: Likewise.
26714         * modules/copy-file: Likewise.
26715         * modules/fchdir: Likewise.
26716         * modules/fcntl-safer: Likewise.
26717         * modules/pipe: Likewise.
26718         * modules/utime: Likewise.
26719         Prompted by Eric Blake and Bruno Haible.
26720
26721 2008-06-24  Andreas Schwab  <schwab@suse.de>
26722
26723         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
26724         literals can be used as initializers for global variables.
26725
26726 2008-06-23  Eric Blake  <ebb9@byu.net>
26727
26728         Make gnulib-cache.m4 easier to diff.
26729         * gnulib-tool (func_import): Allow newlines when reading cached
26730         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
26731
26732 2008-06-23  Bruno Haible  <bruno@clisp.org>
26733
26734         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
26735         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
26736         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
26737         m4/signalblocking.m4.
26738         (gl_PREREQ_SIGACTION): Don't invoke it.
26739         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
26740         gl_PREREQ_SIG_HANDLER_H.
26741         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26742         Don't check for sigaction here.
26743
26744 2008-06-23  Bruno Haible  <bruno@clisp.org>
26745
26746         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
26747         (install_handlers): Don't set the SA_RESETHAND flag.
26748
26749 2008-06-23  Bruno Haible  <bruno@clisp.org>
26750
26751         * m4/sigaction.m4: Comment fixes.
26752         * lib/signal.in.h: Likewise.
26753
26754 2008-06-23  Eric Blake  <ebb9@byu.net>
26755
26756         Fix typo.
26757         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
26758
26759         Avoid SA_ namespace.
26760         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
26761         Reported by Ralf Wildenhues.
26762
26763         Avoid test failure due to SA_RESTORER.
26764         * tests/test-sigaction.c (SA_MASK): New macro.
26765         (main): Avoid failing due to extension flags being set.
26766         Reported by Jim Meyering.
26767
26768         Revert use of sig-handler.h in sigprocmask.c.
26769         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
26770         it requires the existence of struct sigaction.
26771         * lib/sigprocmask.c (handler_t): Restore typedef.
26772         (rpl_signal, old_handlers): Use local type.
26773
26774 2008-06-22  Bruno Haible  <bruno@clisp.org>
26775
26776         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
26777         conditionally.
26778         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26779
26780 2008-06-22  Bruno Haible  <bruno@clisp.org>
26781
26782         * doc/posix-functions/siginterrupt.texi: Move note.
26783
26784         * lib/signal.in.h (SA_RESTART): New macro.
26785         * lib/sigaction.c: Update comment.
26786
26787         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
26788
26789         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
26790         (gl_PREREQ_SIGPROCMASK): Invoke it.
26791         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
26792
26793         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
26794
26795         * lib/sigprocmask.c: Update a comment.
26796
26797 2008-06-21  Eric Blake  <ebb9@byu.net>
26798
26799         Use sigaction module rather than signal().
26800         * modules/c-stack (Depends-on): Add sigaction.
26801         * modules/fatal-signal (Depends-on): Likewise.
26802         * modules/nanosleep (Depends-on): Likewise.
26803         * modules/sigprocmask (Files): Add sig-handler.h.
26804         * modules/sigaction (Files): Likewise.
26805         * lib/sig-handler.h (get_handler): New file, suggested by Paul
26806         Eggert.
26807         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
26808         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
26809         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26810         (init_fatal_signals): Likewise.
26811         * lib/nanosleep.c (rpl_nanosleep): Likewise.
26812         (siginterrupt): Delete fallback.
26813         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
26814         instead.
26815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
26816         siginterrupt.
26817
26818         New module sigaction, for mingw.
26819         * modules/sigaction: New module...
26820         * modules/sigaction-tests: ...and its test.
26821         * m4/sigaction.m4: New file.
26822         * lib/sigaction.c: Likewise.
26823         * tests/test-sigaction.c: Likewise.
26824         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
26825         * modules/signal (Makefile.am): Likewise.
26826         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
26827         needed.
26828         * doc/posix-headers/signal.texi (signal.h): Mention provided
26829         types.
26830         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
26831         that sigaction is preferable.
26832         * doc/posix-functions/sigaction.texi (sigaction): Mention new
26833         module.
26834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26835         sigaction.
26836
26837         Improve robustness of sigprocmask by overriding signal.
26838         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
26839         is in use.
26840         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
26841         (SIGKILL, SIGSTOP): Provide fallbacks.
26842         (rpl_signal): Implement.
26843         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
26844         signal can be called inside handlers.
26845
26846         Fix nanosleep module on mingw.
26847         * modules/nanosleep (Depends-on): Add sys_select.
26848         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
26849
26850         Fix licensing of sigprocmask.
26851         * modules/raise (License): Relicense as LGPL.
26852
26853 2008-06-21  Bruno Haible  <bruno@clisp.org>
26854
26855         * lib/propername.c (proper_name_utf8): Don't use the transliterated
26856         result if it contains question marks.
26857         Reported by Michael Geng <linux@michaelgeng.de>.
26858
26859 2008-06-19  Bruno Haible  <bruno@clisp.org>
26860
26861         Fix CVS-ism.
26862         * doc/gnulib.texi: Include updated-stamp.texi.
26863         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
26864         (updated-stamp.texi): New rule.
26865         (gnulib.info): Depend on it.
26866         * doc/.gitignore: Add updated-stamp.texi.
26867         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
26868
26869 2008-06-19  Bruno Haible  <bruno@clisp.org>
26870
26871         * doc/Makefile (gnulib.info): Update and simplify dependencies.
26872         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26873
26874 2008-06-19  Eric Blake  <ebb9@byu.net>
26875
26876         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
26877         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
26878         Reported by Stepan Kasal.
26879
26880 2008-06-18  Bruno Haible  <bruno@clisp.org>
26881
26882         * lib/fatal-signal.c (init_fatal_signals): Add comment.
26883         Reported by Eric Blake.
26884
26885 2008-06-18  Eric Blake  <ebb9@byu.net>
26886
26887         Work around cygwin 1.5.25 strsignal bug.
26888         * tests/test-strsignal.c: Allow for const char *.
26889         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
26890
26891 2008-06-18  Simon Josefsson  <simon@josefsson.org>
26892
26893         * users.txt: Update URL to article and add author/date
26894         information.
26895
26896 2008-06-17  Bruno Haible  <bruno@clisp.org>
26897
26898         New macro gl_DISABLE_THREADS.
26899         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
26900         if the user did not pass --enable-threads or --disable-threads option.
26901         (gl_DISABLE_THREADS): New macro.
26902         Reported by Eric Blake <ebb9@byu.net>.
26903
26904 2008-06-17  Bruno Haible  <bruno@clisp.org>
26905
26906         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
26907         when the macro ignores it.
26908         Based on a patch by Eric Blake <ebb9@byu.net>.
26909
26910 2008-06-17  Bruno Haible  <bruno@clisp.org>
26911
26912         * modules/tls (License): Change to LGPLv2+.
26913         Reported by Eric Blake.
26914
26915 2008-06-17  Eric Blake  <ebb9@byu.net>
26916
26917         Simplify c-stack prerequisites.
26918         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
26919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
26920         no longer requires <ucontext.h> to exist.  Optimize setrlimit
26921         check.
26922         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
26923         <sys/resource.h>.
26924
26925         Move c-stack test into testsuite.
26926         * modules/c-stack-tests: New file.
26927         * lib/c-stack.c [DEBUG]: Move test program...
26928         * tests/test-c-stack.c: ...into this new file.  Skip rather than
26929         fail test if sigaltstack is lacking.
26930         * tests/test-c-stack.sh: New driver file.
26931
26932 2008-06-16  Eric Blake  <ebb9@byu.net>
26933
26934         Use raise module consistently.
26935         * modules/fatal-signal (Depends-on): Add raise.
26936         * modules/sigprocmask (Depends-on): Likewise.
26937         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
26938         * lib/sigprocmask.c (sigprocmask): Likewise.
26939         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26940         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
26941
26942         Fix compliance bug in sigpending.
26943         * lib/sigprocmask.c (sigpending): Return pending array via
26944         parameter, not return value.
26945
26946 2008-06-14  Eric Blake  <ebb9@byu.net>
26947
26948         Improve obstack-printf test code.
26949         * tests/test-obstack-printf.c (test_function): Fix comment, and
26950         simplify usage of obstack_* in macros.  Add a test for coverage.
26951         Reported by Bruno Haible.
26952
26953 2008-06-14  Bruno Haible  <bruno@clisp.org>
26954
26955         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
26956         array size as a constant, not as a const variable.
26957         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
26958         AC_USE_SYSTEM_EXTENSIONS.
26959         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
26960         Test whether the obstack_printf function actually exists.
26961         * modules/obstack-printf (Depends-on): Add extensions.
26962         (Include): Remove obstack.h.
26963         * modules/obstack-printf-posix (Depends-on): Add extensions.
26964         (Include): Remove obstack.h.
26965
26966 2008-06-13  Eric Blake  <ebb9@byu.net>
26967
26968         Add obstack-printf and obstack-printf-posix modules.
26969         * modules/obstack-printf: New file.
26970         * modules/obstack-printf-posix: Likewise.
26971         * MODULES.html.sh (Misc): Mention them.
26972         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
26973         Likewise.
26974         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
26975         Likewise.
26976         * modules/stdio (Makefile.am): Accomodate new modules.
26977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26978         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
26979         Declare.
26980         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
26981         functions.
26982         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
26983         (gl_REPLACE_OBSTACK_PRINTF): New macros
26984         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
26985         * tests/test-obstack-printf.c: New file.
26986         * modules/obstack-printf-tests: Likewise.
26987         * modules/obstack-printf-posix-tests: Likewise.
26988
26989 2008-06-11  Bruno Haible  <bruno@clisp.org>
26990
26991         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
26992         * lib/open.c: Include errno.h.
26993         (open): Fail when attempting to write to a file that has a trailing
26994         slash.
26995         * tests/test-open.c (main): Test against trailing slash bug.
26996         * doc/posix-functions/open.texi: Mention the trailing slash bug.
26997
26998 2008-06-10  Bruno Haible  <bruno@clisp.org>
26999
27000         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27001         for $? to work inside the trap command, with various /bin/sh-s.
27002         * tests/test-vc-list-files-cvs.sh: Likewise.
27003
27004 2008-06-10  Bruno Haible  <bruno@clisp.org>
27005
27006         * lib/acl-internal.h: Don't include gettext.h here.
27007         * lib/set-mode-acl.c: Include gettext.h here.
27008         * lib/copy-acl.c: Likewise.
27009
27010 2008-06-10  Bruno Haible  <bruno@clisp.org>
27011
27012         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27013         * lib/wait-process.c (wait_subprocess): Likewise.
27014         * lib/execute.h (execute): Add termsigp argument.
27015         * lib/execute.c (execute): Likewise.
27016         * lib/csharpcomp.c (compile_csharp_using_pnet,
27017         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27018         * lib/csharpexec.c (execute_csharp_using_pnet,
27019         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27020         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27021         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27022         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27023         is_jikes_present): Update.
27024         * lib/javaexec.c (execute_java_class): Update.
27025         * lib/javaversion.c (execute_and_read_line): Update.
27026         * NEWS: Document the changes.
27027         Reported by Eric Blake.
27028
27029 2008-06-10  Eric Blake  <ebb9@byu.net>
27030
27031         Add missing include.
27032         * tests/test-strstr.c (includes): Add <signal.h>.
27033         * tests/test-strcasestr.c (includes): Likewise.
27034         * tests/test-memmem.c (includes): Likewise.
27035
27036 2008-06-10  Bruno Haible  <bruno@clisp.org>
27037
27038         * lib/wait-process.c (wait_subprocess): Add an assertion.
27039
27040 2008-06-10  Bruno Haible  <bruno@clisp.org>
27041
27042         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27043
27044 2008-06-10  Bruno Haible  <bruno@clisp.org>
27045
27046         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27047         using alarm().
27048         * tests/test-strcasestr.c (main): Likewise.
27049         * tests/test-strstr.c (main): Likewise.
27050
27051 2008-06-09  Bruno Haible  <bruno@clisp.org>
27052
27053         Work around the Solaris 10 ACE ACLs ABI change.
27054         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27055         declare if ACL_NO_TRIVIAL is present.
27056         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27057         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27058         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27059         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27060         define if ACL_NO_TRIVIAL is present.
27061         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27062         and use the current ABI.
27063         (file_has_acl): Use same #if condition as elsewhere.
27064         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27065         in use, and use the current ABI.
27066         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27067         Reported by Jim Meyering.
27068
27069 2008-06-09  Eric Blake  <ebb9@byu.net>
27070
27071         Work around environments that (stupidly) ignore SIGALRM.
27072         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27073         before using alarm().
27074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27076         Reported by Ian Beckwith <ianb@erislabs.net>.
27077
27078         Produce autobuild blurb earlier in log.
27079         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27080
27081 2008-06-09  Jim Meyering  <meyering@redhat.com>
27082         and Ondřej Vašík  <ovasik@redhat.com>
27083
27084         utimens.c: correct kernel bug work-around
27085         Ondřej Vašík found that the invalid return value of 280 indicates
27086         failure, not success, and the kernel bug we're trying to work
27087         around affects not just the utimensat call, but also the fallback
27088         futimens call.
27089         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27090         not success.
27091         [HAVE_FUTIMENS]: Use the same work-around, here.
27092
27093 2008-06-09  Jim Meyering  <meyering@redhat.com>
27094
27095         add more guards around definition of ACE_-related code
27096         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27097         ALLOW and ACE_OWNER are also defined.
27098
27099 2008-06-08  Bruno Haible  <bruno@clisp.org>
27100
27101         * lib/acl-internal.h: Add me as co-author.
27102         * lib/file-has-acl.c: Likewise.
27103         * lib/set-mode-acl.c: Likewise.
27104         * lib/copy-acl.c: Likewise.
27105
27106 2008-06-08  Bruno Haible  <bruno@clisp.org>
27107
27108         Add support for AIX ACLs.
27109         * lib/acl-internal.h (acl_nontrivial): New declaration.
27110         * lib/file-has-acl.c (acl_nontrivial): New function.
27111         (file_has_acl): Add implementation using AIX 4 ACL API.
27112         * lib/set-mode-acl.c (qset_acl): Likewise.
27113         * lib/copy-acl.c (qcopy_acl): Likewise.
27114
27115 2008-06-08  Bruno Haible  <bruno@clisp.org>
27116
27117         Add support for HP-UX ACLs.
27118         * lib/acl-internal.h (acl_nontrivial): New declaration.
27119         * lib/file-has-acl.c (acl_nontrivial): New function.
27120         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27121         * lib/set-mode-acl.c (qset_acl): Likewise.
27122         * lib/copy-acl.c (qcopy_acl): Likewise.
27123
27124 2008-06-08  Bruno Haible  <bruno@clisp.org>
27125
27126         Add support for Cygwin ACLs.
27127         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27128         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27129         the chmod_or_fchmod call.
27130         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27131
27132 2008-06-08  Bruno Haible  <bruno@clisp.org>
27133
27134         Fix bug with setuid modes in Solaris 10+ code.
27135         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27136         succeeded, when the mode contains some special bits.
27137
27138 2008-06-08  Bruno Haible  <bruno@clisp.org>
27139
27140         Add support for Solaris 7..10 ACLs.
27141         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27142         declarations.
27143         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27144         functions.
27145         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27146         * lib/set-mode-acl.c (qset_acl): Likewise.
27147         * lib/copy-acl.c (qcopy_acl): Likewise.
27148
27149 2008-06-08  Bruno Haible  <bruno@clisp.org>
27150
27151         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27152         declaration.
27153         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27154         (acl_access_nontrivial): Remove MacOS X case.
27155         (file_has_acl): Use acl_extended_nontrivial.
27156         * lib/copy-acl.c (qcopy_acl): Likewise.
27157
27158 2008-06-08  Bruno Haible  <bruno@clisp.org>
27159
27160         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27161
27162 2008-06-08  Jim Meyering  <meyering@redhat.com>
27163
27164         * modules/acl (Maintainer): Add Bruno Haible.
27165
27166 2008-06-07  Bruno Haible  <bruno@clisp.org>
27167
27168         Improve support for Tru64 ACLs.
27169         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27170         ACL on OSF/1.
27171
27172 2008-06-07  Bruno Haible  <bruno@clisp.org>
27173
27174         Add support for MacOS X ACLs.
27175         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27176         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27177         * lib/set-mode-acl.c (qset_acl): Likewise.
27178         * lib/copy-acl.c (qcopy_acl): Likewise.
27179
27180 2008-06-07  Bruno Haible  <bruno@clisp.org>
27181
27182         Fix memory leak introduced on 2008-05-22.
27183         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27184         use.
27185
27186 2008-06-07  Bruno Haible  <bruno@clisp.org>
27187
27188         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27189         to construct an empty ACL.
27190
27191 2008-06-07  Bruno Haible  <bruno@clisp.org>
27192
27193         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27194         precisely.
27195         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27196
27197 2008-06-07  Bruno Haible  <bruno@clisp.org>
27198
27199         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27200         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27201
27202 2008-06-07  Bruno Haible  <bruno@clisp.org>
27203
27204         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27205         regardless of POSIX.
27206         * doc/posix-functions/_longjmp.texi: Likewise.
27207         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27208         SystemV platform in this case.
27209
27210 2008-06-06  Eric Blake  <ebb9@byu.net>
27211
27212         Document abort() bugs.
27213         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27214
27215         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27216         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27217         sigsetjmp.
27218         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27219         siglongjmp, but only as a macro.
27220         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27221         is obsolete.
27222         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27223
27224         Tweak documentation to cover cygwin argz bugs.
27225         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27226         argz bug fix; no code change needed since no cygwin releases
27227         occurred between the last fix and the bug being tested.
27228         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27229         module and recently fixed cygwin bugs.
27230         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27231         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27232         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27233         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27234         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27235         Likewise.
27236         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27237         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27238         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27239         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27240         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27241         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27242         Likewise.
27243
27244         Avoid gcc warning on cygwin.
27245         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27246         !ACL_NO_TRIVIAL]: Avoid unused variable.
27247
27248 2008-06-05  Eric Blake  <ebb9@byu.net>
27249
27250         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27251         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27252         git-version-gen fails to come up with a version.
27253         Reported by Simon Josefsson.
27254
27255 2008-06-05  Jim Meyering  <meyering@redhat.com>
27256             Paul Eggert  <eggert@cs.ucla.edu>
27257
27258         utimens.c: work around a probable Linux kernel bug
27259         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27260         appears to be a kernel bug that causes utimensat to return 280
27261         instead of 0, indicating success.
27262
27263 2008-06-04  Bruno Haible  <bruno@clisp.org>
27264
27265         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27266         2008-06-01 commit.
27267
27268 2008-06-04  Bruno Haible  <bruno@clisp.org>
27269
27270         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27271         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27272         (file_has_acl): Use it. Save errno afterwards.
27273         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27274
27275 2008-06-03  Bruno Haible  <bruno@clisp.org>
27276
27277         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27278         draft code. Simplify #ifs.
27279         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27280         Put Solaris code after POSIX-draft code. Fix comments regarding
27281         Solaris 10, HP-UX. Mention Cygwin.
27282         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27283
27284 2008-06-03  Eric Blake  <ebb9@byu.net>
27285
27286         Provide fallback for older kernels.
27287         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27288         Provide runtime fallback if kernel lacks support.
27289         Reported by Mike Frysinger.
27290
27291 2008-06-02  Bruno Haible  <bruno@clisp.org>
27292
27293         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27294         it exists.
27295
27296 2008-06-02  Bruno Haible  <bruno@clisp.org>
27297
27298         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27299         * lib/copy-acl.c (qcopy_acl): Update comment.
27300
27301 2008-06-02  Bruno Haible  <bruno@clisp.org>
27302
27303         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27304         like ACL APIs.
27305
27306 2008-06-02  Bruno Haible  <bruno@clisp.org>
27307
27308         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27309         * tests/test-set-mode-acl.sh: Likewise.
27310         * tests/test-copy-acl.sh: Likewise.
27311         * tests/test-copy-file.sh: Likewise.
27312
27313 2008-06-02  Bruno Haible  <bruno@clisp.org>
27314
27315         * tests/test-file-has-acl.sh: Remove unused code.
27316
27317 2008-06-01  Bruno Haible  <bruno@clisp.org>
27318
27319         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27320         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27321         messages.
27322         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27323
27324 2008-06-01  Bruno Haible  <bruno@clisp.org>
27325
27326         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27327         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27328         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27329         APIs.
27330         * modules/acl-tests (configure.ac): Remove tests now contained in
27331         m4/acl.m4.
27332
27333 2008-06-02  Jim Meyering  <meyering@redhat.com>
27334
27335         announce-gen: use a better key-server host name
27336         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27337         it may be more consistently reliable.  Suggested by Werner Koch
27338         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27339
27340 2008-06-01  Bruno Haible  <bruno@clisp.org>
27341
27342         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27343         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27344
27345 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27346
27347         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27348
27349 2008-06-01  Bruno Haible  <bruno@clisp.org>
27350
27351         New ACL tests.
27352         * tests/test-file-has-acl.sh: New file.
27353         * tests/test-file-has-acl.c: New file.
27354         * tests/test-set-mode-acl.sh: New file.
27355         * tests/test-set-mode-acl.c: New file.
27356         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27357         * tests/test-copy-acl.c: New file.
27358         * modules/acl-tests: New file, based on modules/copy-file-tests.
27359         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27360         (Depends-on): Add acl-tests.
27361         (configure.ac): Remove checks.
27362         (Makefile.am): Don't create test-sameacls program here any more.
27363
27364 2008-06-01  Bruno Haible  <bruno@clisp.org>
27365
27366         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27367         * tests/test-sameacls.c: Include progname.h.
27368         (main): Invoke set_program_name. Portability fixes for MacOS X,
27369         Solaris, HP-UX.
27370
27371 2008-06-01  Bruno Haible  <bruno@clisp.org>
27372
27373         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27374         function.
27375         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27376
27377 2008-06-01  Bruno Haible  <bruno@clisp.org>
27378
27379         * modules/rpmatch (Depends-on): Add strdup.
27380
27381 2008-06-01  Bruno Haible  <bruno@clisp.org>
27382
27383         * lib/pipe.c: Include unistd-safer.h.
27384         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27385         * modules/pipe (Depends-on): Add unistd-safer.
27386
27387 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27388
27389         * modules/autobuild (configure.ac): Call AB_INIT.
27390
27391 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27392
27393         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27394         Suggested by Bruno Haible <bruno@clisp.org>.
27395
27396 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27397
27398         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27399         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27400         <bruno@clisp.org>.
27401
27402 2008-05-29  Eric Blake  <ebb9@byu.net>
27403
27404         Prefer new POSIX 200x interfaces over futimesat.
27405         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27406         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27407         when available.
27408         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27409
27410 2008-05-28  Bruno Haible  <bruno@clisp.org>
27411
27412         * modules/stpcpy (License): Change to LGPLv2+.
27413         Requested by David Lutterkort <dlutter@redhat.com>.
27414
27415 2008-05-27  Bruno Haible  <bruno@clisp.org>
27416
27417         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27418         current mingw.
27419         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27420
27421 2008-05-27  Bruno Haible  <bruno@clisp.org>
27422
27423         * modules/iconv_open (Link): New section, from module 'iconv'.
27424         * modules/striconv (Link): Likewise.
27425         * modules/striconveh (Link): Likewise.
27426         * modules/xstriconv (Link): Likewise.
27427         * modules/unicodeio (Link): Likewise.
27428         * modules/propername (Link): Likewise.
27429         Reported by Jim Meyering.
27430
27431 2008-05-26  Jim Meyering  <meyering@redhat.com>
27432
27433         sha256: do not artificially restrict buffer length to be < 2^32
27434         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27435         uint32_t to size_t.
27436         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27437         to match.
27438
27439         avoid unaligned access errors, e.g., on sparc
27440         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27441         direct access through a possibly-unaligned uint64* pointer.
27442         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27443         direct access through a possibly-unaligned uint32* pointer.
27444         Prompted by this patch from Tom "spot" Callaway:
27445         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27446
27447         sha512.c: fix typo in comment
27448         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27449
27450 2008-05-25  Bruno Haible  <bruno@clisp.org>
27451
27452         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27453         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27454         (Makefile.am): Update lib_SOURCES.
27455
27456 2008-05-25  Bruno Haible  <bruno@clisp.org>
27457
27458         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27459
27460 2008-05-25  Jim Meyering  <meyering@redhat.com>
27461
27462         useless-if-before-free: freed expr may have white-space differences
27463         * build-aux/useless-if-before-free: Recognize cases in which the
27464         freed expression differs from the tested one in embedded white
27465         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27466         $1 was used, so we can't make any regexp shy.  Improved tests now
27467         detect this.
27468
27469         useless-if-before-free: accept white space in the expression.
27470         * build-aux/useless-if-before-free: For now, any white space
27471         in the expression must be identical in the free argument.
27472
27473         useless-if-before-free: efficiency tweak
27474         * build-aux/useless-if-before-free: Make the expression-matching
27475         regexp "shy".
27476         Make the *outer* regexp shy, not the expr-matching one.
27477
27478         update code-in-comment to accept cast of free arg
27479         * build-aux/useless-if-before-free: Update regexp.
27480
27481 2008-05-25  Bruno Haible  <bruno@clisp.org>
27482
27483         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27484         * modules/copy-file-tests (Files, Makefile.am): Update.
27485         * tests/test-copy-file.c (func_test_copy): Update.
27486
27487 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27488
27489         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27490
27491 2008-05-23  Bruno Haible  <bruno@clisp.org>
27492
27493         Improve support for ACLs on OSF/1.
27494         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27495         Remove fallback for unknown flavors of ACLs.
27496
27497 2008-05-22  Bruno Haible  <bruno@clisp.org>
27498
27499         Add support for ACLs on OSF/1.
27500         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27501         replacements.
27502         (acl_free_text): New macro fallback.
27503         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27504         acl_free.
27505         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27506         acl_free_text function. Require AC_C_INLINE.
27507
27508 2008-05-22  Bruno Haible  <bruno@clisp.org>
27509
27510         Make copy_acl work on MacOS X 10.5.
27511         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27512         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27513         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27514         If MODE_INSIDE_ACL, don't assume that every system has the same text
27515         representation for ACLs as FreeBSD.
27516         * lib/copy-acl.c (copy_acl): Add support for platforms with
27517         !MODE_INSIDE_ACL.
27518         * lib/file-has-acl.c (file_has_acl): Likewise.
27519         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27520         FreeBSD, MacOS X, or IRIX, respectively.
27521
27522 2008-05-22  Bruno Haible  <bruno@clisp.org>
27523
27524         * lib/acl.h: Don't include <sys/acl.h>.
27525         (GETACLCNT): Move fallback to lib/acl-internal.h.
27526         * lib/acl-internal.h: Include <sys/acl.h> here.
27527         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27528
27529 2008-05-22  Bruno Haible  <bruno@clisp.org>
27530
27531         Split off copy_acl function to separate file.
27532         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27533         * lib/acl.c (copy_acl): Moved function to separate file.
27534         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27535         * modules/acl (Files): Add lib/copy-acl.c.
27536         (Makefiles.am): Augment lib_SOURCES.
27537
27538 2008-05-22  Bruno Haible  <bruno@clisp.org>
27539
27540         * modules/copy-file-tests: New file.
27541         * tests/test-copy-file.sh: New file.
27542         * tests/test-copy-file.c: New file.
27543         * tests/test-copy-file-sameacls.c: New file.
27544
27545 2008-05-22  Eric Blake  <ebb9@byu.net>
27546
27547         Avoid gcc warning.
27548         * tests/test-memcmp.c (main): Pass NULL indirectly.
27549
27550 2008-05-21  Bruno Haible  <bruno@clisp.org>
27551
27552         Add reference doc about ACLs.
27553         * doc/acl-resources.txt: New file.
27554         * doc/acl-cygwin.txt: New file.
27555
27556 2008-05-21  Bruno Haible  <bruno@clisp.org>
27557
27558         Avoid one more warning from gcc.
27559         * lib/vasnprintf.c (IF_LINT): Update comments.
27560         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27561
27562 2008-05-21  Jim Meyering  <meyering@redhat.com>
27563
27564         avoid a warning from gcc
27565         * lib/vasnprintf.c (IF_LINT): Define.
27566         (scale10_round_decimal_long_double):
27567         Use it to avoid a "may be used uninitialized" warning.
27568         (scale10_round_decimal_double): Likewise.
27569
27570 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27571
27572         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27573         declared.
27574
27575 2008-05-20  Bruno Haible  <bruno@clisp.org>
27576
27577         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27578         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27579
27580 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27581
27582         * modules/memcmp-tests: New file.
27583         * tests/test-memcmp.c: New file.
27584
27585 2008-05-19  Bruno Haible  <bruno@clisp.org>
27586
27587         * modules/propername (Notice, configure.ac): Put quoted "..." into
27588         --keyword option.
27589         * lib/propername.h: Update comments accordingly.
27590         Reported by Eric Blake.
27591
27592 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27593
27594         * modules/getpass-gnu (Depends-on): Add fseeko.
27595
27596 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27597
27598         * modules/base64-tests: New file.
27599
27600 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27601
27602         * lib/base64.c (base64_decode_ctx): If a decode context structure
27603         was passed in use it to ignore newlines.  If a context structure
27604         was _not_ passed in, continue to treat newlines as garbage (this
27605         is the historical behavior).  Formerly base64_decode.
27606         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27607         takes a decode context structure.
27608         * lib/base64.h (base64_decode): Macro for four-argument calls.
27609         (base64_decode_alloc): Likewise.
27610         * lib/base64.c (base64_decode_ctx): If a decode context structure
27611         was passed in use it to ignore newlines.  If a context structure
27612         was _not_ passed in, continue to treat newlines as garbage (this
27613         is the historical behavior).  Formerly base64_decode.
27614         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27615         takes a decode context structure.
27616         * lib/base64.h (base64_decode): Macro for four-argument calls.
27617         (base64_decode_alloc): Likewise.
27618
27619 2008-05-19  Jim Meyering  <meyering@redhat.com>
27620
27621         avoid a warning from gcc
27622         * lib/trim.c (IF_LINT): Define.
27623         (trim2): Use it to avoid a "may be used uninitialized" warning.
27624
27625         Fix doc typo.
27626         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
27627
27628 2008-05-19  Bruno Haible  <bruno@clisp.org>
27629
27630         * doc/glibc-functions/getpass.texi: Document limits of other
27631         implementations.
27632
27633 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27634             Bruno Haible <bruno@clisp.org>
27635
27636         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
27637
27638 2008-05-18  Bruno Haible  <bruno@clisp.org>
27639
27640         * modules/propername: New file, from GNU gettext.
27641         * lib/propername.h: New file, from GNU gettext.
27642         * lib/propername.c: New file, from GNU gettext.
27643         * MODULES.html.sh (Internationalization functions): Add propername.
27644
27645 2008-05-16  Jim Meyering  <meyering@redhat.com>
27646             Bruno Haible  <bruno@clisp.org>
27647
27648         Avoid some warnings from "gcc -Wshadow".
27649         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27650
27651 2008-05-15  Eric Blake  <ebb9@byu.net>
27652
27653         Extend previous patch to cygwin 1.7.0.
27654         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27655         fast implementation in cygwin >= 1.7.0.
27656         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27657         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27658
27659 2008-05-15  Bruno Haible  <bruno@clisp.org>
27660
27661         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27662         implementation in glibc >= 2.9.
27663         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27665
27666 2008-05-15  Bruno Haible  <bruno@clisp.org>
27667
27668         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27669         (Unicode string functions): Add unilbrk/*.
27670         Reported by Karl Berry.
27671
27672 2008-05-15  Eric Blake  <ebb9@byu.net>
27673
27674         Fix violation of <stdbool.h> replacement in regex.
27675         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27676         * lib/regexec.c (re_search_internal): Likewise.
27677         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27678
27679 2008-05-15  Jim Meyering  <meyering@redhat.com>
27680
27681         avoid distracting test output when git or cvs is not found
27682         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27683         * tests/test-vc-list-files-git.sh: Likewise.
27684
27685 2008-05-15  Eric Blake  <ebb9@byu.net>
27686
27687         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27688         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27689         glibc version.
27690         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27691         * doc/posix-functions/strstr.texi (strstr): Likewise.
27692         * lib/str-two-way.h (MAX): Sychronize with glibc.
27693
27694 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27695
27696         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27697         opr.ctx_type.
27698         (calc_first): Initialize constraint field.
27699         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27700         Fix grammar.
27701         (duplicate_node): Merge constraint field for all node types.
27702         (calc_eclosure_iter): Look at constraint field for all node types.
27703         * lib/regex_internal.c (create_cd_newstate): Don't look at
27704         opr.ctx_type.
27705
27706 2008-05-14  Bruno Haible  <bruno@clisp.org>
27707
27708         Help GCC to do better code generation.
27709         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
27710         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27711         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
27712         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
27713         Declare with attribute 'malloc' if supported.
27714
27715 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
27716
27717         use "echo STR|wc -c" rather than unportable "expr length STR"
27718         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
27719         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
27720
27721 2008-05-14  Jim Meyering  <meyering@redhat.com>
27722
27723         use dd ibs=$n count=1 ... rather than less-portable head -c$n
27724         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
27725         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
27726         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
27727         via Collin Lasse.
27728
27729 2008-05-14  Eric Blake  <ebb9@byu.net>
27730
27731         Avoid quadratic growth in gl_LIBSOURCES.
27732         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
27733         Suggested by Bruno Haible.
27734
27735         Test xmemdup0.
27736         * modules/xmemdup0-tests: New file.
27737         * tests/test-xmemdup0.c: Likewise.
27738
27739 2008-05-13  Eric Blake  <ebb9@byu.net>
27740
27741         Split xmemdup0 into its own module.
27742         * modules/xmemdup0: New file.
27743         * lib/xmemdup0.h: Likewise.
27744         * lib/xmemdup0.c: Likewise.
27745         * MODULES.html.sh (Memory management functions): Add xmemdup0.
27746         * lib/xalloc.h (xmemdup0): Remove.
27747         * lib/xmalloc.c (xmemdup0): Likewise.
27748
27749 2008-05-13  Eric Blake  <ebb9@byu.net>
27750             Bruno Haible  <bruno@clisp.org>
27751
27752         Reduce number of forks required during autoconf.
27753         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
27754         and gl_LIBSOURCES_DIR.
27755         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
27756         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
27757         m4_syscmd per file.
27758         <m4_foreach_w>: Move...
27759         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
27760
27761 2008-05-13  Eric Blake  <ebb9@byu.net>
27762
27763         * gnulib-tool: Fix various comment typos.
27764
27765 2008-05-12  Bruno Haible  <bruno@clisp.org>
27766
27767         Tailor the linebreaking algorithm.
27768         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
27769
27770 2008-05-12  Bruno Haible  <bruno@clisp.org>
27771
27772         Update to Unicode 5.0.0.
27773         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27774         LBP_JV, LBP_JT. Redistribute values.
27775         (unilbrk_table): Change size.
27776         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
27777         Unicode TR#14 rev. 22.
27778         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27779         LBP_JV, LBP_JT. Redistribute values.
27780         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
27781         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
27782         Update.
27783         * lib/unilbrk/lbrkprop1.h: Regenerated.
27784         * lib/unilbrk/lbrkprop2.h: Regenerated.
27785         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
27786         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
27787         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
27788         Likewise.
27789         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
27790         Likewise.
27791         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
27792         result.
27793         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27794         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27795         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27796         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
27797         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
27798         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
27799
27800 2008-05-11  Bruno Haible  <bruno@clisp.org>
27801
27802         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
27803
27804 2008-05-11  Bruno Haible  <bruno@clisp.org>
27805
27806         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
27807         * modules/unilbrk/gen-lbrk: New file.
27808
27809 2008-05-11  Bruno Haible  <bruno@clisp.org>
27810
27811         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
27812         * m4/sha512.m4 (gl_SHA512): Likewise.
27813
27814 2008-05-11  Jim Meyering  <meyering@redhat.com>
27815
27816         New modules: crypto/sha256, crypto/sha512 (from coreutils)
27817         * modules/crypto/sha256: New file.
27818         * modules/crypto/sha512: Likewise.
27819         * lib/sha256.c: Likewise.
27820         * lib/sha256.h: Likewise.
27821         * lib/sha512.c: Likewise.
27822         * lib/sha512.h: Likewise.
27823         * lib/u64.h: Likewise.
27824         * m4/sha256.m4: Likewise.
27825         * m4/sha512.m4: Likewise.
27826         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
27827
27828 2008-05-10  Bruno Haible  <bruno@clisp.org>
27829
27830         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
27831         (Input/Output <stdio.h>): Add xprintf.
27832         (Signal handling <signal.h>): Add strsignal.
27833         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
27834         (Core language properties): Add func.
27835         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
27836         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
27837         strings.
27838         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
27839         (Input/output): New section.
27840         (File system functions): Add openat-die, stat-macros.
27841         (Networking functions): Add sockets.
27842         (Unicode string functions): Add unictype/*.
27843         (Support for building libraries and executables): Add gperf.
27844         (Support for building documentation): Add agpl-3.0.
27845         (Misc): Add nocrash.
27846
27847 2008-05-10  Bruno Haible  <bruno@clisp.org>
27848
27849         * modules/unictype/gen-ctype: New file.
27850
27851 2008-05-10  Jim Meyering  <meyering@redhat.com>
27852
27853         Make chdir-safer.c more efficient on a system with no symlinks.
27854         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
27855         also if ELOOP is zero.  Suggested by Bruno Haible.
27856
27857         Make chdir-safer.c slightly safer.
27858         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
27859         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
27860
27861         Avoid compile failure on systems without ELOOP (like mingw).
27862         * lib/chdir-safer.c (ELOOP): Define if not already defined.
27863         Reported by Bruno Haible.
27864
27865 2008-05-10  Bruno Haible  <bruno@clisp.org>
27866
27867         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
27868         (is_utf8_encoding): Use a case-insensitive comparison.
27869         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
27870         streq.
27871
27872 2008-05-10  Bruno Haible  <bruno@clisp.org>
27873
27874         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
27875         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
27876         * lib/unilbrk/ulc-common.h (iconv_string_length,
27877         iconv_string_keeping_offsets): Remove declarations.
27878         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
27879         Don't include <iconv.h>, streq.h, xsize.h.
27880         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
27881         conversion.
27882         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
27883         <iconv.h>, streq.h, xsize.h.
27884         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
27885         conversion.
27886         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
27887         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
27888         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
27889         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
27890
27891 2008-05-10  Bruno Haible  <bruno@clisp.org>
27892
27893         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
27894         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
27895
27896         * modules/unilbrk/u32-width-linebreaks-tests: New file.
27897         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
27898
27899         * modules/unilbrk/u16-width-linebreaks-tests: New file.
27900         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
27901
27902         * modules/unilbrk/u8-width-linebreaks-tests: New file.
27903         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
27904
27905         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
27906         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
27907
27908         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
27909         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
27910
27911         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
27912         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
27913
27914         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
27915         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
27916
27917 2008-05-10  Bruno Haible  <bruno@clisp.org>
27918
27919         Split up 'linebreak' module.
27920         * lib/unilbrk.h: New file, based on lib/linebreak.h.
27921         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
27922         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
27923         modifications.
27924         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
27925         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
27926         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
27927         lib/linebreak.c.
27928         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
27929         lib/linebreak.c.
27930         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
27931         lib/linebreak.c.
27932         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
27933         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
27934         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
27935         lib/linebreak.c.
27936         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
27937         lib/linebreak.c.
27938         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
27939         lib/linebreak.c.
27940         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
27941         lib/linebreak.c.
27942         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
27943         lib/linebreak.c.
27944         * modules/unilbrk/base: New file.
27945         * modules/unilbrk/tables: New file.
27946         * modules/unilbrk/u8-possible-linebreaks: New file.
27947         * modules/unilbrk/u16-possible-linebreaks: New file.
27948         * modules/unilbrk/u32-possible-linebreaks: New file.
27949         * modules/unilbrk/ulc-common: New file.
27950         * modules/unilbrk/ulc-possible-linebreaks: New file.
27951         * modules/unilbrk/u8-width-linebreaks: New file.
27952         * modules/unilbrk/u16-width-linebreaks: New file.
27953         * modules/unilbrk/u32-width-linebreaks: New file.
27954         * modules/unilbrk/ulc-width-linebreaks: New file.
27955         * lib/linebreak.h: Remove file.
27956         * lib/linebreak.c: Remove file.
27957         * m4/linebreak.m4: Remove file.
27958         * modules/linebreak: Remove file.
27959         * NEWS: Mention the changes.
27960
27961 2008-05-09  Eric Blake  <ebb9@byu.net>
27962
27963         Add xmemdup0.
27964         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
27965         implementation.
27966         * lib/xmalloc.c (xmemdup0): New C implementation.
27967
27968 2008-05-08  Bruno Haible  <bruno@clisp.org>
27969
27970         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
27971
27972 2008-05-07  Eric Blake  <ebb9@byu.net>
27973
27974         Support cross-compilation of <wctype.h>.
27975         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
27976         AC_CACHE_CHECK.
27977
27978 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
27979
27980         * build-aux/vc-list-files: Add support for bzr.
27981
27982 2008-05-03  Jim Meyering  <meyering@redhat.com>
27983
27984         avoid failed assertion with tight malloc
27985         * tests/test-getndelim2.c: Correct an off-by-one assertion.
27986
27987 2008-05-03  Simon Josefsson  <simon@josefsson.org>
27988
27989         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
27990         are needed from arpa/inet.h.
27991         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
27992         Reported by Bruno Haible.
27993
27994 2008-05-02  Jim Meyering  <meyering@redhat.com>
27995
27996         avoid compilation error on FreeBSD 6
27997         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
27998
27999 2008-05-01  Jim Meyering  <meyering@redhat.com>
28000
28001         useless-if-before-free: correct --help's exit status description
28002         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28003         for one or more matches, etc.  Reported by Bruno Haible.
28004
28005         vc-list-files: make the stand-alone gnulib test work
28006         * modules/vc-list-files-tests (configure.ac):
28007         Define and AC_SUBST abs_aux_dir.
28008         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28009         $(abs_top_srcdir) to each script and having each of them
28010         duplicate the work of setting PATH, set PATH here, using
28011         the new variable, abs_aux_dir instead.
28012         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28013         * tests/test-vc-list-files-git.sh: Likewise.
28014         Reported by Bruno Haible.
28015
28016 2008-05-01  Bruno Haible  <bruno@clisp.org>
28017
28018         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28019         reallocation. Rename 'done' to 'found_delimiter'.
28020
28021 2008-05-01  Jim Meyering  <meyering@redhat.com>
28022
28023         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28024         * build-aux/vc-list-files: Use `...`, not $(...).
28025
28026 2008-04-30  Jim Meyering  <meyering@redhat.com>
28027
28028         add tests for vc-list-files
28029         * modules/vc-list-files-tests: New module.
28030         * tests/test-vc-list-files-cvs.sh: New file.
28031         * tests/test-vc-list-files-git.sh: New file.
28032
28033         avoid a warning from gcc
28034         * lib/getndelim2.c (IF_LINT): Define.
28035         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28036
28037         vc-list-files: work properly with build-aux/cvsu, too
28038         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28039         to all cvs-based clauses.
28040
28041         vc-list-files: work properly in the CVS+awk case, too
28042         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28043
28044         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28045         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28046         take more than one file argument, so .  Add quotes, just in case $dir
28047         ever contains a shell meta-character.  Prompted by Soren Hansen in
28048         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28049
28050 2008-04-29  Eric Blake  <ebb9@byu.net>
28051
28052         Optimize getndelim2 to use block operations when possible.
28053         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28054         freadseek, and memchr2.
28055         * lib/getndelim2.c (getndelim2): Use them for block reads.
28056
28057 2008-04-29  Bruno Haible  <bruno@clisp.org>
28058
28059         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28060         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28061         * modules/inet_ntop (Depends-on): Add extensions.
28062         * modules/inet_pton (Depends-on): Likewise.
28063         Reported by Simon Josefsson.
28064
28065 2008-04-29  Jim Meyering  <meyering@redhat.com>
28066
28067         When the is more than one match in a block, match all of them.
28068         * build-aux/useless-if-before-free: Iterate through each block
28069         until there are no more matches.
28070
28071         Fix broken useless-if-before-free script.
28072         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28073         the expression to match cast of argument to free-like function.
28074
28075 2008-04-29  Eric Blake  <ebb9@byu.net>
28076
28077         Use new header.
28078         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28079
28080 2008-04-29  Jim Meyering  <meyering@redhat.com>
28081
28082         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28083         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28084         by gnulib to exist and to declare e.g., inet_ntop.
28085         Don't include "inet_ntop.h", now removed.
28086
28087         * m4/arpa_inet_h.m4: Remove trailing blanks.
28088
28089 2008-04-29  Eric Blake  <ebb9@byu.net>
28090
28091         Silence valgrind on safe reads beyond potential array bounds.
28092         * lib/rawmemchr.valgrind: New file.
28093         * lib/strchrnul.valgrind: Likewise.
28094         * modules/rawmemchr (Files): Distribute new file.
28095         * modules/strchrnul (Files): Likewise.
28096         Suggested by Bruno Haible.
28097
28098 2008-04-29  Bruno Haible  <bruno@clisp.org>
28099
28100         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28101         (inet_ntop, inet_pton): Change portability warning's wording.
28102         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28103         Invoke gl_CHECK_NEXT_HEADERS.
28104         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28105         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28106         set ARPA_INET_H.
28107         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28108         * modules/arpa_inet (Description): No longer only for systems that
28109         lack it.
28110         (Depends-on): Add include_next.
28111         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28112         HAVE_ARPA_INET_H.
28113
28114 2008-04-29  Jim Meyering  <meyering@redhat.com>
28115
28116         * modules/mkdir (License): Re-license as LGPLv2+.
28117
28118 2008-04-29  Bruno Haible  <bruno@clisp.org>
28119
28120         * modules/rawmemchr (Maintainer): Set to Eric.
28121         * modules/strchrnul (Maintainer): Likewise.
28122
28123 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28124
28125         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28126         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28127
28128         * modules/arpa_inet (arpa/inet.h): Use them.
28129
28130 2008-04-28  Eric Blake  <ebb9@byu.net>
28131
28132         Test getndelim2.
28133         * modules/getndelim2-tests: New file.
28134         * tests/test-getndelim2.c: Likewise.
28135         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28136         stream.
28137         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28138
28139         * MODULES.html.sh: Document new module.
28140
28141 2008-04-20  Bruno Haible  <bruno@clisp.org>
28142
28143         * lib/c-stack.c (die): Use raise.
28144         * modules/c-stack (Depends-on): Add raise.
28145
28146 2008-04-28  Bruno Haible  <bruno@clisp.org>
28147
28148         Expect rpmatch to be declared.
28149         * lib/yesno.c (rpmatch): Remove declaration.
28150
28151         Declare rpmatch.
28152         * lib/stdlib.in.h (rpmatch): New declaration.
28153         * lib/rpmatch.c: Include <stdlib.h> first.
28154         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28155         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28157         HAVE_RPMATCH.
28158         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28159         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28160         (Include): Set to <stdlib.h>.
28161         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28162         HAVE_RPMATCH.
28163         * NEWS: Document the change.
28164
28165 2008-04-28  Bruno Haible  <bruno@clisp.org>
28166
28167         Change rpmatch to use nl_langinfo when appropriate.
28168         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28169         (N_): New macro.
28170         (localized_pattern): New function/macro.
28171         (try): Remove match, nomatch arguments. Copy the pattern into safe
28172         memory before caching it.
28173         (rpmatch): Use localized_pattern. Add translator comments.
28174         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28175         Suggested by Eric Blake.
28176         * modules/rpmatch (Depends-on): Add stdbool.
28177
28178 2008-04-28  Eric Blake  <ebb9@byu.net>
28179
28180         Add rawmemchr module, matching glibc.
28181         * modules/string (Makefile.am): New indicator.
28182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28183         * lib/string.in.h (rawmemchr): Declare when appropriate.
28184         * modules/rawmemchr: New file.
28185         * m4/rawmemchr.m4: Likewise.
28186         * lib/rawmemchr.c: Likewise.
28187         * modules/rawmemchr-tests: Likewise.
28188         * tests/test-rawmemchr.c: Likewise.
28189         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28190         module.
28191         * modules/strchrnul (Depends-on): Add rawmemchr.
28192         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28193
28194         Whitespace cleanup.
28195         * tests/test-strchrnul.c: Reindent.
28196         * lib/strchrnul.c: Likewise.
28197
28198         Optimize and test strchrnul.
28199         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28200         * modules/strchrnul-tests: New file.
28201         * tests/test-strchrnul.c: Likewise.
28202
28203         Remove intprops dependency.
28204         * modules/memchr (Depends-on): Remove intprops.
28205         * modules/memrchr (Depends-on): Likewise.
28206         * modules/memchr2 (Depends-on): Likewise.
28207         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28208         * lib/memrchr.c (__memrchr): Likewise.
28209         * lib/memrchr2.c (memchr2): Likewise.
28210         Reported by Simon Josefsson.
28211
28212 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28213
28214         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28215         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28216
28217 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28218
28219         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28220
28221         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28222
28223         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28224
28225         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28226         declarations.
28227         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28228
28229         * m4/inet_pton.m4: Don't check for header files.
28230
28231         * m4/inet_ntop.m4: Don't check for header files.
28232
28233 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28234
28235         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28236         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28237         trigger for cygwin).
28238         Reported by Bruno Haible  <bruno@clisp.org>.
28239
28240 2008-04-28  Bruno Haible  <bruno@clisp.org>
28241
28242         * doc/posix-functions/strdup.texi: Mention mingw problem.
28243
28244 2008-04-27  Bruno Haible  <bruno@clisp.org>
28245
28246         * modules/stat-time-tests (Depends-on): Add sleep.
28247         * tests/test-stat-time.c (force_unlink): New function.
28248         (cleanup): Use it.
28249         (test_mtime): Remove the ctime related tests.
28250         (test_ctime): New function, containing the ctime related tests.
28251         (main): Call test_ctime, except on native Windows platforms.
28252
28253 2008-04-27  Bruno Haible  <bruno@clisp.org>
28254
28255         * lib/rpmatch.c (rpmatch): Add some comments.
28256         Reported by James Youngman <jay@gnu.org>.
28257
28258 2008-04-27  Bruno Haible  <bruno@clisp.org>
28259
28260         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28261         quiet NaNs.
28262
28263 2008-04-27  Bruno Haible  <bruno@clisp.org>
28264
28265         Make test-yesno.sh work on mingw.
28266         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28267         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28268         (main): Set stdin to binary mode.
28269         * modules/yesno-tests (Depends-on): Add binary-io.
28270
28271 2008-04-27  Bruno Haible  <bruno@clisp.org>
28272
28273         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28274         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28275         argument that lie outside the IEEE 854 domain.
28276         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28277         (gl_ISFINITE): Use it.
28278         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28279
28280 2008-04-27  Bruno Haible  <bruno@clisp.org>
28281
28282         Allow local renaming in config.h.
28283         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28284
28285 2008-04-27  Bruno Haible  <bruno@clisp.org>
28286
28287         * lib/memchr.c (__memchr): Change type of 'i'.
28288         * lib/memchr2.c (memchr2): Likewise.
28289
28290 2008-04-26  Eric Blake  <ebb9@byu.net>
28291         and Bruno Haible  <bruno@clisp.org>
28292
28293         Optimize and test memrchr.
28294         * modules/memrchr (Depends-on): Add intprops.
28295         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28296         * modules/memrchr-tests: New file.
28297         * tests/test-memrchr.c: New file.
28298
28299 2008-04-26  Bruno Haible  <bruno@clisp.org>
28300
28301         Add tentative support for DragonFly BSD.
28302         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28303         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28304         fp.
28305         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28306         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28307         * lib/fpurge.c (fpurge): Likewise.
28308         * lib/freadable.c (freaadable): Likewise.
28309         * lib/freadahead.c (freadahead): Likewise.
28310         * lib/freading.c (freading): Likewise.
28311         * lib/freadptr.c (freadptr): Likewise.
28312         * lib/freadseek.c (freadptrinc): Likewise.
28313         * lib/fseeko.c (fseeko): Likewise.
28314         * lib/fseterr.c (fseterr): Likewise.
28315         * lib/fwritable.c (fwritable): Likewise.
28316         * lib/fwriting.c (fwriting): Likewise.
28317
28318 2008-04-26  Bruno Haible  <bruno@clisp.org>
28319
28320         * lib/stdio-impl.h: New file.
28321         * lib/fbufmode.c: Include stdio-impl.h.
28322         (fbufmode): Use fp_, remove redundant #defines.
28323         * lib/fflush.c: Include stdio-impl.h.
28324         (clear_ungetc_buffer): Remove redundant #defines.
28325         * lib/fpurge.c: Include stdio-impl.h.
28326         (fpurge): Remove redundant #defines.
28327         * lib/freadable.c: Include stdio-impl.h.
28328         (freadable): Remove redundant #defines.
28329         * lib/freadahead.c: Include stdio-impl.h.
28330         (freadahead): Remove redundant #defines.
28331         * lib/freading.c: Include stdio-impl.h.
28332         (freading): Remove redundant #defines.
28333         * lib/freadptr.c: Include stdio-impl.h.
28334         (freadptr): Remove redundant #defines.
28335         * lib/freadseek.c: Include stdio-impl.h.
28336         (freadptrinc): Remove redundant #defines.
28337         * lib/fseeko.c: Include stdio-impl.h.
28338         (rpl_fseeko): Remove redundant #defines.
28339         * lib/fseterr.c: Include stdio-impl.h.
28340         (fseterr): Remove redundant #defines.
28341         * lib/fwritable.c: Include stdio-impl.h.
28342         (fwritable: Remove redundant #defines.
28343         * lib/fwriting.c: Include stdio-impl.h.
28344         (fwriting): Remove redundant #defines.
28345         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28346         * modules/fflush (Files): Likewise.
28347         * modules/fpurge (Files): Likewise.
28348         * modules/freadable (Files): Likewise.
28349         * modules/freadahead (Files): Likewise.
28350         * modules/freading (Files): Likewise.
28351         * modules/freadptr (Files): Likewise.
28352         * modules/freadseek (Files): Likewise.
28353         * modules/fseeko (Files): Likewise.
28354         * modules/fseterr (Files): Likewise.
28355         * modules/fwritable (Files): Likewise.
28356         * modules/fwriting (Files): Likewise.
28357
28358 2008-04-26  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28361         restore_seek_optimization, update_fpos_cache): New functions, extracted
28362         from rpl_fflush.
28363         (rpl_fflush): Use them.
28364         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28365         (gl_REPLACE_FFLUSH): Use it.
28366
28367 2008-04-26  Bruno Haible  <bruno@clisp.org>
28368
28369         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28370         on Solaris.
28371         * tests/test-xstrtoimax.sh: Likewise.
28372         * tests/test-xstrtoumax.sh: Likewise.
28373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28374
28375 2008-04-26  Bruno Haible  <bruno@clisp.org>
28376
28377         * modules/memchr-tests: New file.
28378         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28379
28380 2008-04-26  Eric Blake  <ebb9@byu.net>
28381             Bruno Haible  <bruno@clisp.org>
28382
28383         * lib/memchr.c: Include intprops.h.
28384         (__memchr): Optimize parallel detection of matching bytes. Rename local
28385         variables. Add explanatory comments.
28386
28387 2008-04-26  Bruno Haible  <bruno@clisp.org>
28388
28389         Fix module 'memchr', broken since 2000-10-28.
28390         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28391
28392 2008-04-26  Bruno Haible  <bruno@clisp.org>
28393
28394         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28395         comments.
28396
28397 2008-04-25  Eric Blake  <ebb9@byu.net>
28398
28399         Use native fstatat on cygwin 1.7.0.
28400         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28401         first.
28402
28403 2008-04-23  Eric Blake  <ebb9@byu.net>
28404
28405         Improve memchr2 performance.
28406         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28407         NUL bytes.
28408         * modules/memchr2 (Depends-on): Use intprops.h.
28409
28410 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28411
28412         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28413         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28414         <blp@cs.stanford.edu>.
28415
28416 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28417
28418         * lib/arpa_inet.in.h: New file.
28419
28420         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28421         (Makefile.am): Sed in substitute header file.
28422
28423         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28424         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28425
28426         * modules/inet_ntop (configure.ac): Use
28427         gl_ARPA_INET_MODULE_INDICATOR.
28428
28429         * modules/inet_pton (configure.ac): Use
28430         gl_ARPA_INET_MODULE_INDICATOR.
28431
28432 2008-04-22  Jim Meyering  <meyering@redhat.com>
28433
28434         * modules/verify (License): Re-license as LGPLv2+.
28435
28436 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28437
28438         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28439         parameter to void* as per POSIX standard (MinGW uses char*).
28440
28441 2008-04-21  Bruno Haible  <bruno@clisp.org>
28442
28443         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28444         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28445         Define to replacements if REPLACE_ISWCNTRL is 1.
28446         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28447         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28448         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28449         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28450         what it fixes.
28451         * doc/posix-functions/iswalpha.texi: Likewise.
28452         * doc/posix-functions/iswblank.texi: Likewise.
28453         * doc/posix-functions/iswcntrl.texi: Likewise.
28454         * doc/posix-functions/iswdigit.texi: Likewise.
28455         * doc/posix-functions/iswgraph.texi: Likewise.
28456         * doc/posix-functions/iswlower.texi: Likewise.
28457         * doc/posix-functions/iswprint.texi: Likewise.
28458         * doc/posix-functions/iswpunct.texi: Likewise.
28459         * doc/posix-functions/iswspace.texi: Likewise.
28460         * doc/posix-functions/iswupper.texi: Likewise.
28461         * doc/posix-functions/iswxdigit.texi: Likewise.
28462         Reported by Alain Guibert.
28463
28464 2008-04-21  Bruno Haible  <bruno@clisp.org>
28465
28466         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28467         Patch by Alain Guibert.
28468
28469 2008-04-21  Bruno Haible  <bruno@clisp.org>
28470
28471         Fix test failures on mingw.
28472         * tests/test-xstrtol.c (print_no_progname): New function.
28473         (main): Install it in error_print_progname hook.
28474         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28475         * tests/test-xstrtoimax.sh: Likewise.
28476         * tests/test-xstrtoumax.sh: Likewise.
28477
28478 2008-04-21  Bruno Haible  <bruno@clisp.org>
28479
28480         Fix test failure on mingw.
28481         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28482
28483 2008-04-21  Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28486         Actually assign a value.
28487
28488 2008-04-20  Bruno Haible  <bruno@clisp.org>
28489
28490         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28491         take 2.
28492         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28493         'canonicalize-lgpl' module is also used.
28494         * lib/canonicalize-lgpl.c: Undo last change.
28495         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28496
28497 2008-04-20  Bruno Haible  <bruno@clisp.org>
28498
28499         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28500         config.h. Provide _mkdir based fallback for mingw.
28501         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28502         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28503         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28504         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28505         rather than defining mkdir in config.h.
28506         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28507         (gl_SYS_STAT_H_DEFAULTS): New macro.
28508         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28509         HAVE_IO_H any more.
28510         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28511         HAVE_DECL_MKDIR and HAVE_IO_H.
28512
28513 2008-04-20  Bruno Haible  <bruno@clisp.org>
28514
28515         * lib/isapipe.c: Port to native Windows platforms.
28516
28517 2008-04-20  Bruno Haible  <bruno@clisp.org>
28518
28519         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28520
28521 2008-04-21  Eric Blake  <ebb9@byu.net>
28522
28523         Work around preprocessors that don't handle UINTMAX_MAX.
28524         * lib/memchr2.c (memchr2): Avoid embedded #if.
28525         Reported by Alain Guibert, fix suggested by Bruno Haible.
28526
28527 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28528
28529         * doc/posix-functions/strftime.texi (strftime): Explain better
28530         Windows incompatibility.  Suggested by Micah Cowan
28531         <micah@cowan.name>.
28532
28533 2008-04-20  Bruno Haible  <bruno@clisp.org>
28534
28535         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28536         unistr/u8-mblen.
28537
28538 2008-04-20  Bruno Haible  <bruno@clisp.org>
28539
28540         Fix test failure on platforms with non-GNU iconv.
28541         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28542         (U_TO_U8): Use it, rather than u16_to_u8.
28543         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28544         units at the end of the input string.
28545         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28546
28547 2008-04-20  Bruno Haible  <bruno@clisp.org>
28548
28549         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28550         when the resulting length is 0.
28551         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28552
28553 2008-04-20  Bruno Haible  <bruno@clisp.org>
28554
28555         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28556         works.
28557         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28558
28559 2008-04-20  Bruno Haible  <bruno@clisp.org>
28560
28561         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28562         * modules/tsearch-tests (configure.ac): Test for initstate function.
28563
28564 2008-04-20  Bruno Haible  <bruno@clisp.org>
28565
28566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28567         for nlink_t if missing.
28568         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28569
28570 2008-04-19  Bruno Haible  <bruno@clisp.org>
28571
28572         Work around snprintf bug on Linux libc5.
28573         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28575         gl_SNPRINTF_SIZE1.
28576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28577         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28578         that test failed.
28579         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28580         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28581         * modules/snprintf (Files): Add m4/printf.m4.
28582         * modules/vsnprintf (Files): Likewise.
28583         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28584         * doc/posix-functions/vsnprintf.texi: Likewise.
28585
28586 2008-04-19  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28589         from 0.0058 to less than 10^-7.
28590
28591 2008-04-19  Bruno Haible  <bruno@clisp.org>
28592
28593         Fix rounding when a precision is given.
28594         * lib/vasnprintf.c (is_borderline): New function.
28595         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28596         9...9x.
28597         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28598         %e, %g.
28599         * tests/test-vasprintf-posix.c (test_function): Likewise.
28600         * tests/test-snprintf-posix.h (test_function): Likewise.
28601         * tests/test-sprintf-posix.h (test_function): Likewise.
28602         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28603         * tests/test-printf-posix.h (test_function): Likewise.
28604         * tests/test-printf-posix.output: Update.
28605         Reported by John Darrington <john@darrington.wattle.id.au> via
28606         Ben Pfaff <blp@cs.stanford.edu>.
28607
28608 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28609
28610         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28611         Suggested by Bruno Haible <bruno@clisp.org>.
28612
28613 2008-04-17  Bruno Haible  <bruno@clisp.org>
28614
28615         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
28616         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
28617         implementation.
28618         Patch by Bruce Merry <bmerry@gmail.com>.
28619
28620 2008-04-17  Simon Josefsson  <simon@josefsson.org>
28621
28622         * doc/posix-functions/strftime.texi (strftime): Mention that %e
28623         doesn't work under Windows.
28624
28625 2008-04-16  Bruno Haible  <bruno@clisp.org>
28626
28627         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
28628         New macros.
28629         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
28630         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
28631         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
28632         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
28633         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
28634         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
28635         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
28636         macros.
28637         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
28638         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
28639         Northern Sotho, Uighur.
28640
28641 2008-04-16  Bruno Haible  <bruno@clisp.org>
28642
28643         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28644         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28645         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28646         Reported by Daniel Bergström <daniel@octocode.com>.
28647
28648 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28649             Bruno Haible  <bruno@clisp.org>
28650
28651         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28652         function.
28653         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28654         New functions, mostly extracted from gl_locale_name_default.
28655         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28656
28657 2008-04-16  Eric Blake  <ebb9@byu.net>
28658
28659         Adjust strtod detection to catch glibc 2.7 bug.
28660         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28661         Reported by John Gatewood Ham.
28662
28663 2008-04-16  Bruno Haible  <bruno@clisp.org>
28664
28665         Add tentative support for Linux libc5.
28666         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28667         * lib/fpurge.c (fpurge): Likewise.
28668         * lib/freadable.c (freadable): Likewise.
28669         * lib/freadahead.c (freadahead): Likewise.
28670         * lib/freading.c (freading): Likewise.
28671         * lib/freadptr.c (freadptr): Likewise.
28672         * lib/freadseek.c (freadptrinc): Likewise.
28673         * lib/fseeko.c (rpl_fseeko): Likewise.
28674         * lib/fseterr.c (fseterr): Likewise.
28675         * lib/fwritable.c (fwritable): Likewise.
28676         * lib/fwriting.c (fwriting): Likewise.
28677         Reported by Alain Guibert <alguibert+bts@free.fr>.
28678
28679 2008-04-15  Bruno Haible  <bruno@clisp.org>
28680
28681         * modules/mathl (configure.ac): Define module indicator.
28682
28683 2008-04-15  Bruno Haible  <bruno@clisp.org>
28684
28685         * lib/logl.c (logl): Remove unused variables.
28686
28687 2008-04-15  Bruno Haible  <bruno@clisp.org>
28688
28689         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28690         fails.
28691
28692 2008-04-15  Bruno Haible  <bruno@clisp.org>
28693
28694         * lib/trim.c (trim2): Fix argument of isspace() macro.
28695
28696 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28697
28698         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28699         to 0.
28700         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28701
28702 2008-04-14  Bruno Haible  <bruno@clisp.org>
28703
28704         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28705         AC_LANG_PROGRAM argument.
28706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28707         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28709         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28710         * m4/math_h.m4 (gl_MATH_H): Likewise.
28711         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28713         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28714         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
28715         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28716         * m4/regex.m4 (gl_REGEX): Likewise.
28717         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
28718         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
28719         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28720         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
28721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28722         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28723         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28724         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28725
28726 2008-04-14  Jim Meyering  <meyering@redhat.com>
28727
28728         test-strtod: fix typos: s/abs/fabs/
28729         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
28730
28731 2008-04-13  Bruno Haible  <bruno@clisp.org>
28732
28733         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
28734         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
28735         module is also used and while not building the reloc-wrapper.
28736
28737 2008-04-13  Bruno Haible  <bruno@clisp.org>
28738
28739         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
28740
28741 2008-04-13  Bruno Haible  <bruno@clisp.org>
28742
28743         Fix AIX compilation failure introduced on 2008-04-02.
28744         * tests/test-frexp.c (exp): Undefine before redefining.
28745         * tests/test-frexpl.c (exp): Likewise.
28746
28747 2008-04-13  Bruno Haible  <bruno@clisp.org>
28748
28749         Work around a HP-UX stdio bug.
28750         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
28751         * tests/test-ftello.c (main): Likewise.
28752         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
28753         * doc/posix-functions/ftello.texi: Likewise.
28754
28755 2008-04-13  Bruno Haible  <bruno@clisp.org>
28756
28757         Make test-signbit pass on HP-UX/hppa.
28758         * tests/test-signbit.c (minus_zerol): New variable.
28759         (test_signbitl): Use it.
28760
28761 2008-04-13  Bruno Haible  <bruno@clisp.org>
28762
28763         Make truncl work on OSF/1 4.0.
28764         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
28765         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28766         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
28768         HAVE_DECL_TRUNCL.
28769         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
28770         HAVE_DECL_TRUNCL.
28771         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
28772
28773 2008-04-13  Bruno Haible  <bruno@clisp.org>
28774
28775         * lib/unictype.h: Remove trailing comma from enumeration definitions.
28776
28777 2008-04-13  Bruno Haible  <bruno@clisp.org>
28778
28779         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
28780         expression, so as to avoid HP-UX 11 cc compiler bug.
28781
28782 2008-04-13  Bruno Haible  <bruno@clisp.org>
28783
28784         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
28785
28786 2008-04-13  Bruno Haible  <bruno@clisp.org>
28787
28788         * lib/git-merge-changelog.c: Remove empty declaration outside of
28789         functions.
28790
28791 2008-04-13  Bruno Haible  <bruno@clisp.org>
28792
28793         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
28794
28795 2008-04-13  Bruno Haible  <bruno@clisp.org>
28796
28797         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
28798         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
28799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
28800         also if it exists but lacks definitions of the SHUT_* macros.
28801         * modules/sys_socket (Description): Update.
28802         Reported by Elbert Pol <e.pol@chello.nl>.
28803
28804 2008-04-13  Bruno Haible  <bruno@clisp.org>
28805
28806         * lib/localcharset.c (OS2): Don't redefine if already defined.
28807         Reported by Elbert Pol <e.pol@chello.nl>.
28808
28809 2008-04-13  Bruno Haible  <bruno@clisp.org>
28810
28811         * lib/binary-io.h [__EMX__]: Include <io.h>.
28812         Reported by Elbert Pol <e.pol@chello.nl>.
28813
28814 2008-04-12  Bruno Haible  <bruno@clisp.org>
28815
28816         * lib/fpucw.h: Enable the definitions also for x86_64.
28817         Needed for NetBSD/x86_64.
28818         Reported by Thomas Klausner <tk@giga.or.at>.
28819
28820 2008-04-12  Bruno Haible  <bruno@clisp.org>
28821
28822         * tests/test-strtod.c: Include isnand.h.
28823         (main): Use isnand instead of isnan.
28824         Reported by Jim Meyering.
28825
28826 2008-04-12  Bruno Haible  <bruno@clisp.org>
28827
28828         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
28829         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28830
28831 2008-04-12  Jim Meyering  <meyering@redhat.com>
28832
28833         * m4/math_h.m4 (gl_MATH_H): Fix typos.
28834
28835 2008-04-12  Bruno Haible  <bruno@clisp.org>
28836
28837         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
28838         Reported by Elbert Pol <e.pol@chello.nl>.
28839
28840 2008-04-12  Eric Blake  <ebb9@byu.net>
28841
28842         Work around Solaris 10 math.h bug.
28843         * m4/math_h.m4 (gl_MATH_H): Check for bug.
28844         (gl_MATH_H_DEFAULTS): Set up default.
28845         * modules/math (Makefile.am): Replace new indicators.
28846         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
28847         * tests/test-math.c (main): Test this.
28848         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
28849         * doc/posix-headers/math.texi (math.h): Mention bug.
28850         Reported by Nelson H. F. Beebe and Jim Meyering.
28851
28852 2008-04-11  Bruno Haible  <bruno@clisp.org>
28853
28854         Adapt to future versions of Apple GCC.
28855         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
28856         Reported by Peter O'Gorman <peter@pogma.com>.
28857
28858 2008-04-11  Bruno Haible  <bruno@clisp.org>
28859
28860         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
28861
28862 2008-04-11  Bruno Haible  <bruno@clisp.org>
28863
28864         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
28865
28866         * modules/getaddrinfo-tests (Makefile.am): Define
28867         test_getaddrinfo_LDADD.
28868
28869 2008-04-11  Bruno Haible  <bruno@clisp.org>
28870
28871         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
28872         (init): Fix syntax error.
28873         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
28874         is declared.
28875
28876 2008-04-11  Bruno Haible  <bruno@clisp.org>
28877
28878         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
28879         * modules/glob (Depends-on): Add stdbool.
28880
28881 2008-04-11  Bruno Haible  <bruno@clisp.org>
28882
28883         * lib/trim.c: Include <string.h>.
28884
28885 2008-04-11  Eric Blake  <ebb9@byu.net>
28886
28887         Avoid compile failure on OS/2.
28888         * lib/regex_internal.h (internal_function): Disable optimization
28889         on OS/2 (__EMX__), where it caused compiler error.
28890         Reported by Elbert Pol.
28891
28892 2008-04-11  Bruno Haible  <bruno@clisp.org>
28893
28894         Flush the standard error stream before aborting. Needed on mingw.
28895         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
28896         * tests/test-array_list.c (ASSERT): Likewise.
28897         * tests/test-array_oset.c (ASSERT): Likewise.
28898         * tests/test-avltree_list.c (ASSERT): Likewise.
28899         * tests/test-avltree_oset.c (ASSERT): Likewise.
28900         * tests/test-avltreehash_list.c (ASSERT): Likewise.
28901         * tests/test-binary-io.c (ASSERT): Likewise.
28902         * tests/test-byteswap.c (ASSERT): Likewise.
28903         * tests/test-c-ctype.c (ASSERT): Likewise.
28904         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
28905         * tests/test-c-strcasestr.c (ASSERT): Likewise.
28906         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
28907         * tests/test-c-strstr.c (ASSERT): Likewise.
28908         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
28909         * tests/test-canonicalize.c (ASSERT): Likewise.
28910         * tests/test-carray_list.c (ASSERT): Likewise.
28911         * tests/test-ceilf1.c (ASSERT): Likewise.
28912         * tests/test-ceilf2.c (ASSERT): Likewise.
28913         * tests/test-ceill.c (ASSERT): Likewise.
28914         * tests/test-count-one-bits.c (ASSERT): Likewise.
28915         * tests/test-fbufmode.c (ASSERT): Likewise.
28916         * tests/test-fflush2.c (ASSERT): Likewise.
28917         * tests/test-floorf1.c (ASSERT): Likewise.
28918         * tests/test-floorf2.c (ASSERT): Likewise.
28919         * tests/test-floorl.c (ASSERT): Likewise.
28920         * tests/test-fopen.c (ASSERT): Likewise.
28921         * tests/test-fpending.c (ASSERT): Likewise.
28922         * tests/test-fprintf-posix.c (ASSERT): Likewise.
28923         * tests/test-fpurge.c (ASSERT): Likewise.
28924         * tests/test-freadable.c (ASSERT): Likewise.
28925         * tests/test-freadahead.c (ASSERT): Likewise.
28926         * tests/test-freading.c (ASSERT): Likewise.
28927         * tests/test-freadptr.c (ASSERT): Likewise.
28928         * tests/test-freadptr2.c (ASSERT): Likewise.
28929         * tests/test-freadseek.c (ASSERT): Likewise.
28930         * tests/test-freopen.c (ASSERT): Likewise.
28931         * tests/test-frexp.c (ASSERT): Likewise.
28932         * tests/test-frexpl.c (ASSERT): Likewise.
28933         * tests/test-fseek.c (ASSERT): Likewise.
28934         * tests/test-fseeko.c (ASSERT): Likewise.
28935         * tests/test-fstrcmp.c (ASSERT): Likewise.
28936         * tests/test-ftell.c (ASSERT): Likewise.
28937         * tests/test-ftello.c (ASSERT): Likewise.
28938         * tests/test-func.c (ASSERT): Likewise.
28939         * tests/test-fwritable.c (ASSERT): Likewise.
28940         * tests/test-fwriting.c (ASSERT): Likewise.
28941         * tests/test-getdelim.c (ASSERT): Likewise.
28942         * tests/test-getline.c (ASSERT): Likewise.
28943         * tests/test-i-ring.c (ASSERT): Likewise.
28944         * tests/test-iconv-utf.c (ASSERT): Likewise.
28945         * tests/test-iconv.c (ASSERT): Likewise.
28946         * tests/test-isfinite.c (ASSERT): Likewise.
28947         * tests/test-isnand.c (ASSERT): Likewise.
28948         * tests/test-isnanf.c (ASSERT): Likewise.
28949         * tests/test-isnanl.h (ASSERT): Likewise.
28950         * tests/test-ldexpl.c (ASSERT): Likewise.
28951         * tests/test-linked_list.c (ASSERT): Likewise.
28952         * tests/test-linkedhash_list.c (ASSERT): Likewise.
28953         * tests/test-localename.c (ASSERT): Likewise.
28954         * tests/test-lseek.c (ASSERT): Likewise.
28955         * tests/test-mbscasecmp.c (ASSERT): Likewise.
28956         * tests/test-mbscasestr1.c (ASSERT): Likewise.
28957         * tests/test-mbscasestr2.c (ASSERT): Likewise.
28958         * tests/test-mbscasestr3.c (ASSERT): Likewise.
28959         * tests/test-mbscasestr4.c (ASSERT): Likewise.
28960         * tests/test-mbschr.c (ASSERT): Likewise.
28961         * tests/test-mbscspn.c (ASSERT): Likewise.
28962         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
28963         * tests/test-mbspbrk.c (ASSERT): Likewise.
28964         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
28965         * tests/test-mbsrchr.c (ASSERT): Likewise.
28966         * tests/test-mbsspn.c (ASSERT): Likewise.
28967         * tests/test-mbsstr1.c (ASSERT): Likewise.
28968         * tests/test-mbsstr2.c (ASSERT): Likewise.
28969         * tests/test-mbsstr3.c (ASSERT): Likewise.
28970         * tests/test-memchr2.c (ASSERT): Likewise.
28971         * tests/test-memmem.c (ASSERT): Likewise.
28972         * tests/test-open.c (ASSERT): Likewise.
28973         * tests/test-printf-frexp.c (ASSERT): Likewise.
28974         * tests/test-printf-frexpl.c (ASSERT): Likewise.
28975         * tests/test-printf-posix.c (ASSERT): Likewise.
28976         * tests/test-quotearg.c (ASSERT): Likewise.
28977         * tests/test-rbtree_list.c (ASSERT): Likewise.
28978         * tests/test-rbtree_oset.c (ASSERT): Likewise.
28979         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
28980         * tests/test-round1.c (ASSERT): Likewise.
28981         * tests/test-roundf1.c (ASSERT): Likewise.
28982         * tests/test-roundl.c (ASSERT): Likewise.
28983         * tests/test-signbit.c (ASSERT): Likewise.
28984         * tests/test-sleep.c (ASSERT): Likewise.
28985         * tests/test-snprintf-posix.c (ASSERT): Likewise.
28986         * tests/test-snprintf.c (ASSERT): Likewise.
28987         * tests/test-sprintf-posix.c (ASSERT): Likewise.
28988         * tests/test-stat-time.c (ASSERT): Likewise.
28989         * tests/test-strcasestr.c (ASSERT): Likewise.
28990         * tests/test-strerror.c (ASSERT): Likewise.
28991         * tests/test-striconv.c (ASSERT): Likewise.
28992         * tests/test-striconveh.c (ASSERT): Likewise.
28993         * tests/test-striconveha.c (ASSERT): Likewise.
28994         * tests/test-strsignal.c (ASSERT): Likewise.
28995         * tests/test-strstr.c (ASSERT): Likewise.
28996         * tests/test-strtod.c (ASSERT): Likewise.
28997         * tests/test-trunc1.c (ASSERT): Likewise.
28998         * tests/test-trunc2.c (ASSERT): Likewise.
28999         * tests/test-truncf1.c (ASSERT): Likewise.
29000         * tests/test-truncf2.c (ASSERT): Likewise.
29001         * tests/test-truncl.c (ASSERT): Likewise.
29002         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29003         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29004         * tests/test-vasnprintf.c (ASSERT): Likewise.
29005         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29006         * tests/test-vasprintf.c (ASSERT): Likewise.
29007         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29008         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29009         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29010         * tests/test-vsnprintf.c (ASSERT): Likewise.
29011         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29012         * tests/test-wcwidth.c (ASSERT): Likewise.
29013         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29014         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29015         * tests/test-xvasprintf.c (ASSERT): Likewise.
29016         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29017         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29018         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29019         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29020         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29021         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29022         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29023         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29024         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29025         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29026         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29027         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29028         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29029         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29030         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29031         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29032         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29033         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29034         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29035         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29036         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29037         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29038         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29039         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29040         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29041         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29042         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29043         * tests/unictype/test-combining.c (ASSERT): Likewise.
29044         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29045         * tests/unictype/test-digit.c (ASSERT): Likewise.
29046         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29047         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29048         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29049         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29050         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29051         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29052         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29053         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29054         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29055         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29056         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29057         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29058         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29059         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29060         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29061         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29062         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29063         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29064         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29065         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29066         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29067         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29068         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29069         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29070         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29071         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29072         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29073         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29074         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29075         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29076         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29077         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29078         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29079         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29080         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29081         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29082         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29083         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29084         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29085         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29086         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29087         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29088         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29089         Reported by Eric Blake.
29090
29091 2008-04-11  Bruno Haible  <bruno@clisp.org>
29092
29093         * lib/wchar.in.h: Tweak comment.
29094
29095 2008-04-11  Bruno Haible  <bruno@clisp.org>
29096
29097         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29098         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29099         gl_COMMON.
29100         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29101
29102 2008-04-11  Bruno Haible  <bruno@clisp.org>
29103
29104         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29105
29106 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29107
29108         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29109         of attempting to use non-existing /dev/*random.  Based on patch
29110         from Adam Strzelecki <ono@java.pl> in
29111         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29112
29113 2008-04-08  Bruno Haible  <bruno@clisp.org>
29114
29115         Add tentative support for emx+gcc.
29116         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29117         * lib/fpurge.c (fpurge): Likewise.
29118         * lib/freadable.c (freadable): Likewise.
29119         * lib/freadahead.c (freadahead): Likewise.
29120         * lib/freading.c (freading): Likewise.
29121         * lib/freadptr.c (freadptr): Likewise.
29122         * lib/freadseek.c (freadptrinc): Likewise.
29123         * lib/fseeko.c (rpl_fseeko): Likewise.
29124         * lib/fseterr.c (fseterr): Likewise.
29125         * lib/fwritable.c (fwritable): Likewise.
29126         * lib/fwriting.c (fwriting): Likewise.
29127         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29128
29129 2008-04-09  Eric Blake  <ebb9@byu.net>
29130
29131         Avoid some autoconf warnings.
29132         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29133         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29134         * m4/afs.m4 (gl_AFS): Likewise.
29135         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29136         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29137         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29138         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29139         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29140         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29141         (AC_CHECK_DECLS_ONCE): Likewise.
29142         Rename file...
29143         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29144         gnulib-tool requires autoconf 2.59 or better.
29145         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29146
29147 2008-04-08  Eric Blake  <ebb9@byu.net>
29148
29149         Use 'git describe --match' if present (added in git 1.5.5).
29150         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29151         if possible.
29152
29153 2008-04-08  Bruno Haible  <bruno@clisp.org>
29154
29155         Add tentative support for OpenServer.
29156         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29157         _ptr, _cnt.
29158         * lib/fpurge.c (fpurge): Likewise.
29159         * lib/freadable.c (freadable): Likewise.
29160         * lib/freadahead.c (freadahead): Likewise.
29161         * lib/freading.c (freading): Likewise.
29162         * lib/freadptr.c (freadptr): Likewise.
29163         * lib/freadseek.c (freadptrinc): Likewise.
29164         * lib/fseeko.c (rpl_fseeko): Likewise.
29165         * lib/fseterr.c (fseterr): Likewise.
29166         * lib/fwritable.c (fwritable): Likewise.
29167         * lib/fwriting.c (fwriting): Likewise.
29168         Reported by Roger Cornelius <rac@tenzing.org> and
29169         Brian K. White <brian@aljex.com>.
29170
29171 2008-04-06  Jim Meyering  <meyering@redhat.com>
29172
29173         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29174
29175 2008-04-06  Bruno Haible  <bruno@clisp.org>
29176
29177         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29178         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29179         * tests/test-printf-posix.sh: Likewise.
29180         * tests/test-vfprintf-posix.sh: Likewise.
29181         * tests/test-vprintf-posix.sh: Likewise.
29182         * tests/test-xprintf-posix.sh: Likewise.
29183
29184 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29185
29186         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29187         hide error from 'ls', needed on OS/2.
29188         Report by Elbert Pol <elbert.pol@gmail.com>.
29189
29190 2008-04-04  Eric Blake  <ebb9@byu.net>
29191
29192         Make test-fseeko.c failures meaningful.
29193         * tests/test-fseeko.c: Print line number on failure.
29194         * tests/test-fseek.c: Likewise.
29195         Reported by Nelson H. F. Beebe.
29196
29197         Improve strtod bug detection check.
29198         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29199         required for Solaris 10.
29200         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29201
29202 2008-04-04  Bruno Haible  <bruno@clisp.org>
29203
29204         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29205         by m4/setenv.m4.
29206
29207 2008-04-03  Eric Blake  <ebb9@byu.net>
29208
29209         Ensure sane .version contents.
29210         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29211         version string.
29212         * build-aux/git-version-gen: Improve documentation.
29213
29214         Make GNU make output nicer.
29215         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29216         MAKECMDGOALS to enforce message for all command line targets.  Set
29217         srcdir for use in maint.mk.
29218
29219         Another maintainer tweak.
29220         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29221         a target that regenerates version.
29222
29223 2008-04-03  Jim Meyering  <meyering@redhat.com>
29224
29225         vc-list-files: don't cause coreutils "make po-check" failure
29226         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29227
29228 2008-04-03  Eric Blake  <ebb9@byu.net>
29229
29230         Allow VPATH usage of vc-list-files.
29231         * build-aux/vc-list-files (scriptversion): Add timestamp.
29232         (options): Add --help, --version, -C.
29233         (CVS): Support installed cvsu.
29234
29235 2008-04-02  Bruno Haible  <bruno@clisp.org>
29236
29237         Avoid some "statement with no effect" warnings from gcc.
29238         * tests/test-wctype.c (main): Explicitly ignore unused values.
29239         Reported by Jim Meyering.
29240
29241 2008-04-02  Jim Meyering  <meyering@redhat.com>
29242
29243         Avoid some warnings from "gcc -Wshadow".
29244         * tests/test-frexp.c (exp): Define to a different identifier.
29245         * tests/test-frexpl.c (exp): Likewise.
29246
29247 2008-04-03  Jim Meyering  <meyering@redhat.com>
29248
29249         bootstrap: remove dangling *.[ch] symlinks from lib
29250         * build-aux/bootstrap [dangling symlink removal]: Move find's
29251         -depth option to precede all others, to avoid a warning.
29252         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29253
29254 2008-04-02  Bruno Haible  <bruno@clisp.org>
29255
29256         Avoid some warnings from "gcc -Wshadow".
29257         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29258         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29259         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29260         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29261         Reported by Jim Meyering.
29262
29263 2008-04-01  Bruno Haible  <bruno@clisp.org>
29264
29265         Fix test to work on IRIX 6.5 with cc.
29266         * tests/test-math.c (numeric_equal): New function.
29267         (main): Use it.
29268
29269 2008-04-01  Bruno Haible  <bruno@clisp.org>
29270
29271         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29272
29273 2008-04-01  Bruno Haible  <bruno@clisp.org>
29274
29275         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29276         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29277         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29278         (Depends-on): Remove math.
29279
29280         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29281         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29282         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29283         (Depends-on): Remove math.
29284
29285         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29286         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29287         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29288         (Depends-on): Remove math.
29289         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29290         (Depends-on): Remove math.
29291
29292         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29293         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29294         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29295         (Depends-on): Remove math.
29296         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29297         (Depends-on): Remove math.
29298
29299         * tests/test-round1.c: Include nan.h.
29300         (main): Use NaNd instead of NAN.
29301         * modules/round-tests (Files): Add tests/nan.h.
29302
29303         * tests/test-trunc1.c: Include nan.h.
29304         (main): Use NaNd instead of NAN.
29305         * modules/trunc-tests (Files): Add tests/nan.h.
29306
29307         * tests/test-roundf1.c: Include nan.h.
29308         (main): Use NaNf instead of NAN.
29309         * modules/roundf-tests (Files): Add tests/nan.h.
29310
29311         * tests/test-truncf1.c: Include nan.h.
29312         (main): Use NaNf instead of NAN.
29313         * modules/truncf-tests (Files): Add tests/nan.h.
29314
29315         * tests/test-ceilf1.c: Include nan.h.
29316         (main): Use NaNf instead of NAN.
29317         * modules/ceilf-tests (Files): Add tests/nan.h.
29318
29319         * tests/test-floorf1.c: Include nan.h.
29320         (main): Use NaNf instead of NAN.
29321         * modules/floorf-tests (Files): Add tests/nan.h.
29322
29323         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29324         (main): Use NaNf instead of NAN.
29325         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29326
29327         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29328         (main): Use NaNd instead of NAN.
29329         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29330
29331         * tests/test-frexp.c: Include nan.h.
29332         (main): Use NaNd instead of NAN.
29333         * modules/frexp-tests (Files): Add tests/nan.h.
29334
29335         * lib/isnan.c: Don't include <math.h>.
29336         (FUNC): Don't use NAN macro.
29337         * modules/isnand-nolibm (Depends-on): Remove math.
29338         * modules/isnanf-nolibm (Depends-on): Remove math.
29339         * modules/isnanl (Depends-on): Remove math.
29340         * modules/isnanl-nolibm (Depends-on): Remove math.
29341
29342         * tests/nan.h: New file.
29343
29344 2008-04-01  Eric Blake  <ebb9@byu.net>
29345
29346         Fix typos.
29347         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29348         values to be the right type.
29349
29350         For now, cater to gnulib strtod inaccuracies.
29351         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29352         fractional results.  While not as nice from a QoI perspective, it
29353         is a quicker patch than correctly implementing decimal to binary
29354         rounding.
29355
29356 2008-03-31  Eric Blake  <ebb9@byu.net>
29357
29358         Guarantee a definition of NAN.
29359         * lib/math.in.h (NAN): Define if missing.
29360         * tests/test-math.c (main): Test it.
29361         * doc/posix-headers/math.texi (math.h): Document this.
29362         * lib/isnan.c (rpl_isnand): Use it.
29363         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29364         * tests/test-floorf1.c (NaN): Likewise.
29365         * tests/test-frexp.c (NaN): Likewise.
29366         * tests/test-isnand.c (NaN): Likewise.
29367         * tests/test-isnanf.c (NaN): Likewise.
29368         * tests/test-round1.c (NaN): Likewise.
29369         * tests/test-roundf1.c (NaN): Likewise.
29370         * tests/test-snprintf-posix.h (NaN): Likewise.
29371         * tests/test-sprintf-posix.h (NaN): Likewise.
29372         * tests/test-trunc1.c (NaN): Likewise.
29373         * tests/test-truncf1.c (NaN): Likewise.
29374         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29375         * tests/test-vasprintf-posix.c (NaN): Likewise.
29376         * modules/isnand-nolibm (Depends-on): Add math.
29377         * modules/isnanf-nolibm (Depends-on): Likewise.
29378         * modules/isnanl (Depends-on): Likewise.
29379         * modules/isnanl-nolibm (Depends-on): Likewise.
29380         * modules/snprintf-posix-tests (Depends-on): Likewise.
29381         * modules/sprintf-posix-tests (Depends-on): Likewise.
29382         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29383         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29384         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29385         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29386
29387 2008-03-31  Bruno Haible  <bruno@clisp.org>
29388
29389         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29390         * doc/posix-functions/strtod.texi: Likewise.
29391
29392 2008-03-31  Bruno Haible  <bruno@clisp.org>
29393
29394         * tests/test-strtod.c (main): Don't use C99 syntax.
29395
29396 2008-03-31  Bruno Haible  <bruno@clisp.org>
29397
29398         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29399         Reported by Eric Blake.
29400
29401 2008-03-31  Jim Meyering  <meyering@redhat.com>
29402
29403         Don't compare actual signbit return values.
29404         * tests/test-strtod.c (main): Rather, compare only their
29405         zero/non-zero nature.
29406
29407 2008-03-31  Eric Blake  <ebb9@byu.net>
29408
29409         More strtod documentation.
29410         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29411         failures as distinct bugs.
29412
29413 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29414
29415         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29416         Problem reported by Erik Benada in
29417         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29418
29419 2008-03-30  Bruno Haible  <bruno@clisp.org>
29420
29421         * tests/test-strtod.c: Add comments about which assertion fails on which
29422         platform.
29423         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29424
29425 2008-03-30  Eric Blake  <ebb9@byu.net>
29426
29427         Test signbit behavior on zeros.
29428         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29429         (test_signbitd, test_signbitl): Likewise.
29430
29431         More strtod touchups.
29432         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29433         sign of negative underflow, for now.  Use .5, not .1.
29434         * doc/posix-functions/strtod.texi (strtod): Mention these
29435         limitations.
29436         Reported by Jim Meyering.
29437
29438 2008-03-30  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29441         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29442
29443 2008-03-30  Bruno Haible  <bruno@clisp.org>
29444
29445         Avoid failure when attempting to return empty iconv results on some
29446         platforms.
29447         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29448         allocation, don't report ENOMEM when the resulting string is empty.
29449
29450 2008-03-30  Bruno Haible  <bruno@clisp.org>
29451
29452         Fix buffer overrun.
29453         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29454         Don't consider the width for tmp_length. Check count against tmp_length
29455         before doing the padding. Ensure enough allocation during padding.
29456
29457 2008-03-30  Eric Blake  <ebb9@byu.net>
29458
29459         strtod touchups.
29460         * lib/strtod.c (strtod): Avoid compiler warnings.
29461         Reported by Jim Meyering.
29462
29463 2008-03-30  Bruno Haible  <bruno@clisp.org>
29464
29465         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29466         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29467         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29468         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29469         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29470         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29471         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29472         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29473
29474         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29475         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29476         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29477         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29478         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29479         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29480         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29481         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29482
29483         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29484         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29485         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29486         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29487         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29488         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29489         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29490         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29491
29492         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29493         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29494
29495         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29496         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29497
29498         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29499         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29500
29501         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29503         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29504
29505         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29507         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29508
29509         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29511         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29512
29513         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29515         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29516
29517         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29518         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29520         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29521         (Depends-on): Add EOVERFLOW.
29522         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29523         (Depends-on): Add EOVERFLOW.
29524         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29525         (Depends-on): Add EOVERFLOW.
29526         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29527         (Depends-on): Add EOVERFLOW.
29528         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29529         (Depends-on): Add EOVERFLOW.
29530         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29531         (Depends-on): Add EOVERFLOW.
29532         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29533         (Depends-on): Add EOVERFLOW.
29534         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29535         (Depends-on): Add EOVERFLOW.
29536
29537         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29538         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29539         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29540
29541         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29543         * modules/snprintf (Depends-on): Add EOVERFLOW.
29544
29545         * lib/poll.c (EOVERFLOW): Remove fallback.
29546         * modules/poll (Depends-on): Add EOVERFLOW.
29547
29548         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29549         * modules/getugroups (Depends-on): Add EOVERFLOW.
29550
29551         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29552         * modules/getdelim (Depends-on): Add EOVERFLOW.
29553
29554         * lib/ftell.c (EOVERFLOW): Remove fallback.
29555         * modules/ftell (Depends-on): Add EOVERFLOW.
29556
29557         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29559         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29560
29561         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29562
29563         * modules/EOVERFLOW-tests: New file.
29564         * tests/test-EOVERFLOW.c: New file.
29565
29566         * modules/EOVERFLOW: New file.
29567         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29568
29569 2008-03-30  Bruno Haible  <bruno@clisp.org>
29570
29571         Fix bug introduced on 2007-06-10.
29572         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29573         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29574
29575 2008-03-30  Bruno Haible  <bruno@clisp.org>
29576
29577         Improve freadseek's efficiency after ungetc.
29578         * lib/freadseek.c: Include freadahead.h.
29579         (freadptrinc): New function, extracted from freadseek.
29580         (freadseek): Use it in a loop. Use freadahead to determine the number
29581         of loop iterations.
29582         * modules/freadseek (Depends-on): Add freadahead.
29583         (configure.ac): Require AC_C_INLINE.
29584
29585 2008-03-30  Bruno Haible  <bruno@clisp.org>
29586
29587         * lib/freadseek.c (freadseek): Don't ignore the return value of
29588         freadptr.
29589
29590 2008-03-29  Eric Blake  <ebb9@byu.net>
29591
29592         Add hex float support.
29593         * modules/strtod (Depends-on): Add c-ctype.
29594         (Link): Mention POW_LIB.
29595         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29596         whitespace between 'e' and exponent.
29597         * tests/test-strtod.c (main): Enable hex float tests.
29598         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29599         now provides.
29600
29601         Document various strtod bugs, with some fixes.
29602         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29603         "-0x", "inf", "nan", and hex constants.
29604         * doc/posix-functions/atof.texi (atof): Likewise.
29605         * modules/stdlib (Makefile.am): Support strtod.
29606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29607         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29608         detect additional strtod bugs.
29609         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29610         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29611         bool where appropriate.  Parse 'inf' and 'nan'.
29612         * tests/test-strtod.c: New file.
29613         * modules/strtod (Depends-on): Add stdbool, stdlib.
29614         (configure.ac): Turn on module indicator.
29615         * modules/strtod-tests: New module.
29616
29617 2008-03-29  Eric Blake  <ebb9@byu.net>
29618
29619         Fix ftell on mingw.
29620         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
29621         * modules/ftell-tests (Depends-on): Add binary-io.
29622         * modules/ftello-tests (Depends-on): Likewise.
29623         * tests/test-ftell.c (main): Enhance test to cover behavior after
29624         ungetc.  Enforce binary mode.
29625         * tests/test-ftello.c (main): Likewise.
29626
29627         Pass test-freadseek on cygwin.
29628         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
29629         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
29630         ungetc buffer.
29631
29632         * tests/test-fflush2.c (main): Fix typo.
29633
29634 2008-03-29  Bruno Haible  <bruno@clisp.org>
29635
29636         * tests/test-fflush2.c (main): Temporarily disable the contents of
29637         this test.
29638         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
29639         Reported by Eric Blake.
29640
29641 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29642
29643         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29644         (GC_SHA224_DIGEST_SIZE): Add.
29645
29646         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29647         (gc_hash_digest_length): Likewise.
29648         (gc_hash_buffer): Likewise.
29649
29650 2008-03-25  Bruno Haible  <bruno@clisp.org>
29651
29652         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29653         detail which gettext release to use.
29654         Reported by Simon Josefsson.
29655
29656 2008-03-26  Jim Meyering  <meyering@redhat.com>
29657
29658         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29659         * modules/gnumakefile (clean-GNUmakefile): Also, use
29660         test ... && ... || : syntax rather than if-then ... fi.
29661
29662         gnumakefile: Don't double-quote-expand $(VPATH) value.
29663         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29664
29665 2008-03-24  Eric Blake  <ebb9@byu.net>
29666
29667         Alter GNUmakefile to install into top directory.
29668         * modules/maintainer-makefile: Split, and add dependency...
29669         * modules/gnumakefile: to this new module.
29670         * build-aux/GNUmakefile: Move...
29671         * top/GNUmakefile: ...here.
29672         * build-aux/maint.mk: Move...
29673         * top/maint.mk: ...here.
29674         * MODULES.html.sh (Support for maintaining...): Document new
29675         module.
29676
29677 2008-03-23  Bruno Haible  <bruno@clisp.org>
29678
29679         * gnulib-tool: New options --vc-files, --no-vc-files.
29680         (func_usage): Document them.
29681         (vc_files): New variable.
29682         (func_import): Consider vc_files.
29683         (func_create_testdir): Set vc_files to empty.
29684         Suggested by Jim Meyering and Karl Berry.
29685
29686 2008-03-23  Bruno Haible  <bruno@clisp.org>
29687
29688         Fix regex compilation error on HP-UX 11.
29689         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29690         * modules/regex (Files): Add m4/mbstate_t.m4.
29691         Reported by Ton Voon <ton.voon@altinity.com>.
29692
29693 2008-03-23  Bruno Haible  <bruno@clisp.org>
29694
29695         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29696
29697 2008-03-23  Eric Blake  <ebb9@byu.net>
29698             Bruno Haible  <bruno@clisp.org>
29699
29700         Install files from top/ in the destination directory.
29701         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29702         augmentation also for the files from top/.
29703         (func_import, func_create_testdir): Rewrite file names:
29704         top/filename -> filename.
29705
29706 2008-03-23  Bruno Haible  <bruno@clisp.org>
29707
29708         Tweak "gnulib --version" output.
29709         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
29710
29711 2008-03-23  Bruno Haible  <bruno@clisp.org>
29712
29713         Tweak "gnulib --version" output.
29714         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
29715         rather than contents of ChangeLog, when possible.
29716
29717 2008-03-21  Eric Blake  <ebb9@byu.net>
29718
29719         More --version tweaks.
29720         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
29721         date of last ChangeLog entry.
29722
29723 2008-03-21  Jim Meyering  <meyering@redhat.com>
29724
29725         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
29726
29727 2008-03-20  Eric Blake  <ebb9@byu.net>
29728
29729         VPATH fix.
29730         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
29731
29732 2008-03-20  Simon Josefsson  <simon@josefsson.org>
29733
29734         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
29735         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
29736
29737 2008-03-20  Eric Blake  <ebb9@byu.net>
29738
29739         Sync GNUmakefile with coreutils.
29740         * build-aux/GNUmakefile (have-Makefile): Rename...
29741         (_have-Makefile): ...to this, for namespace consideration.
29742         (GNUmakefile.cfg): Include, if present.
29743         (_autoreconf): Define a default.
29744         (_is-dist-target): New rule for rebuilds to pick up intra-release
29745         version.
29746         (maint-cfg.mk): Rename...
29747         (cfg.mk): ...to this.
29748
29749 2008-03-18  Jim Meyering  <meyering@redhat.com>
29750
29751         New script and module: mktempd
29752         * MODULES.html.sh (maint+release support): Add mktempd.
29753         * build-aux/mktempd: New file.
29754         * modules/mktempd: New file.
29755
29756 2008-03-15  Jim Meyering  <meyering@redhat.com>
29757
29758         Undo last change.
29759         * lib/sha1.c, lib/md5.c: 63 != ~63.
29760         Reported by Andreas Schwab.
29761
29762         sha1.c, md5.c: Hoist a redundant expression.
29763         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
29764         "ctx->buflen" only once, before calling *_process_block.
29765         * lib/md5.c (md5_process_bytes): Likewise.
29766
29767 2008-03-14  Eric Blake  <ebb9@byu.net>
29768
29769         Bump copyright year in files generated by gnulib-tool.
29770         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
29771         gnulib-tool, rather than hard-coding it.
29772
29773         Fix 'gnulib-tool --version' output to work with git.
29774         * gnulib-tool (func_gnulib_dir): New function, extracted from...
29775         (startup): ...here.
29776         (func_version): Use it to invoke git-version-gen, rather than
29777         relying on CVS keyword expansion.  Modernize wording.
29778         (cvsdatestamp, last_checkin_date, version): Kill unused
29779         variables.
29780
29781 2008-03-12  Jim Meyering  <meyering@redhat.com>
29782
29783         Recognize optional cast of the argument to free.
29784         * build-aux/useless-if-before-free: Update regexps.
29785
29786         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
29787
29788 2008-03-11  Bruno Haible  <bruno@clisp.org>
29789
29790         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
29791         by a single package.
29792         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
29793         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
29794         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
29795         Reported by Sam Steingold <sds@gnu.org>.
29796
29797 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29798
29799         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
29800         repositories.
29801
29802 2008-03-11  Bruno Haible  <bruno@clisp.org>
29803
29804         Avoid conflicts between local macro definitions.
29805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29806         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
29807
29808 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
29809             Bruno Haible  <bruno@clisp.org>
29810
29811         Make va_copy work with some version of xlc on AIX 5.1.
29812         * lib/stdarg.in.h: New file.
29813         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
29814         On AIX, use a <stdarg.h> file substitute.
29815         * modules/stdarg (Files): Add lib/stdarg.in.h.
29816         (Depends-on): Add include_next.
29817         (Makefile.am): Build a stdarg.h substitute if requested.
29818         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
29819
29820 2008-03-10  Bruno Haible  <bruno@clisp.org>
29821
29822         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
29823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29824         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29825
29826 2008-03-10  Bruno Haible  <bruno@clisp.org>
29827
29828         * modules/stdlib (Depends-on): Add include_next, remove
29829         absolute-header.
29830
29831 2008-03-09  Bruno Haible  <bruno@clisp.org>
29832
29833         * lib/freadahead.h (freadahead): Document more precisely.
29834         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
29835         the sum of both buffer sizes.
29836         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
29837         * NEWS: Document the change.
29838
29839 2008-03-09  Bruno Haible  <bruno@clisp.org>
29840
29841         Extend freadptr to return also the buffer size.
29842         * lib/freadptr.h (freadptr): Add sizep argument.
29843         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
29844         (freadptr): Add sizep argument. Determine buffer size like freadahead
29845         does.
29846         * tests/test-freadptr.c: Don't include freadahead.h.
29847         (main): Adapt for new calling convention of freadptr.
29848         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
29849         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
29850         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
29851         tests/test-freadptr2.sh.
29852         (Depends): Remove freadahead.
29853         (TESTS): Add test-freadptr2.sh.
29854         (check_PROGRAMS): Add test-freadptr2.
29855
29856 2008-03-09  Bruno Haible  <bruno@clisp.org>
29857
29858         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
29859         Report and solution by Simon Josefsson.
29860
29861 2008-03-06  Bruno Haible  <bruno@clisp.org>
29862
29863         Make fflush after ungetc work on BSD platforms.
29864         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
29865         * tests/test-fflush2.c: New file.
29866         * tests/test-fflush2.sh: New file.
29867         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
29868         tests/test-fflush2.c.
29869         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
29870         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
29871
29872 2008-03-06  Eric Blake  <ebb9@byu.net>
29873
29874         Likewise for ftello.
29875         * modules/ftello (Dependencies): Add extensions.
29876         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
29877
29878 2008-03-06  Bruno Haible  <bruno@clisp.org>
29879
29880         * modules/fseeko (Dependencies): Add extensions.
29881         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
29882         Needed on glibc systems.
29883
29884 2008-03-06  Bruno Haible  <bruno@clisp.org>
29885
29886         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
29887         email address.
29888         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29889
29890 2008-03-06  Bruno Haible  <bruno@clisp.org>
29891
29892         * users.txt: Add libgnupdf.
29893
29894 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29895
29896         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
29897         (Header File Substitutes, Function Substitutes,
29898         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
29899         (Build robot for gnulib): Fix typo.
29900
29901 2008-03-06  Bruno Haible  <bruno@clisp.org>
29902
29903         * doc/gnulib-tool.texi (VCS Issues): Small updates.
29904         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29905
29906 2008-03-06  Bruno Haible  <bruno@clisp.org>
29907
29908         * doc/func.texi: New file, extracted from doc/gnulib.texi.
29909         * doc/gnulib.texi: Include it.
29910
29911 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29912
29913         * modules/func (License): Change license to unlimited; there was
29914         no LGPL parts in the module anyway.
29915
29916 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29917
29918         * modules/__func__: Renamed to modules/func.
29919         * modules/__func__-tests: Renamed to modules/func-tests.
29920         * tests/test-__func__.c: Renamed to tests/test-func.c.
29921         * m4/__func__.m4: Renamed to m4/func.m4.
29922         * doc/gnulib.texi (__func__): Section renamed to func.
29923         Suggested by Eric Blake <ebb9@byu.net>.
29924
29925 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29926
29927         * doc/gnulib.texi (__func__): Use C99 terminology when talking
29928         about __func__.  Make example self-contained.  Suggested by Eric
29929         Blake <ebb9@byu.net>.
29930
29931         * tests/test-__func__.c (main): Avoid extraneous () around __func.
29932         Suggested by Eric Blake <ebb9@byu.net>.
29933
29934 2008-03-06  Simon Josefsson  <simon@josefsson.org>
29935
29936         * modules/__func__: New file.
29937         * modules/__func__-tests: New file.
29938         * tests/test-__func__.c: New file.
29939         * m4/__func__.m4: New file.
29940         * doc/gnulib.texi (__func__): Document __func__ module.
29941
29942 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29943
29944         * modules/byteswap (License): Re-license as LGPLv2+.
29945
29946 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29947
29948         * doc/Makefile: Add pdf target.
29949
29950 2008-03-05  Simon Josefsson  <simon@josefsson.org>
29951
29952         * modules/inline (License): Use 'unlimited', since there are only
29953         *.m4 files in this module.
29954
29955 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
29956             Bruno Haible  <bruno@clisp.org>
29957
29958         Add support for HP C 7.1 on OpenVMS 8.3.
29959         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
29960
29961 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
29962
29963         Update VMS specifics.
29964         * lib/getopt.c [VMS]: Remove include of unixlib.h.
29965
29966 2008-03-02  Jim Meyering  <meyering@redhat.com>
29967
29968         Remove the last dependency on the "free" module.
29969         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
29970         Reported by Bob Proulx.
29971
29972         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
29973
29974         Remove useless "if" tests before free.  Deprecate "free" module.
29975         * doc/posix-functions/free.texi: Mention that this
29976         module is no longer useful.
29977         * modules/free (Notice): Say this module is obsolete.
29978         * modules/readutmp (Depends-on): Remove free.
29979         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
29980         * lib/putenv.c (putenv): Likewise.
29981         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
29982         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
29983         * tests/test-c-strcasestr.c (main): Likewise.
29984         * tests/test-c-strstr.c (main): Likewise.
29985         * tests/test-mbscasestr1.c (main): Likewise.
29986         * tests/test-mbscasestr2.c (main): Likewise.
29987         * tests/test-mbsstr1.c (main): Likewise.
29988         * tests/test-mbsstr2.c (main): Likewise.
29989         * tests/test-memmem.c (main): Likewise.
29990         * tests/test-strcasestr.c (main): Likewise.
29991         * tests/test-striconv.c (main): Likewise.
29992         * tests/test-striconveh.c (main): Likewise.
29993         * tests/test-striconveha.c (main): Likewise.
29994         * tests/test-strstr.c (main): Likewise.
29995
29996         * build-aux/git-version-gen: Adjust a comment and the Usage string.
29997
29998         bootstrap: sync from coreutils again
29999         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30000
30001 2008-03-01  Jim Meyering  <meyering@redhat.com>
30002
30003         bootstrap: sync from coreutils
30004         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30005         also when the target doesn't exist.
30006
30007 2008-03-01  Eric Blake  <ebb9@byu.net>
30008
30009         Fix bugs in last patch.
30010         * lib/memchr2.c (memchr2): Fix typo.
30011         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30012         extension.
30013         Reported by Bruce Korb.
30014
30015         New module 'memchr2'.
30016         * modules/memchr2: New file.
30017         * modules/memchr2-tests: Likewise.
30018         * lib/memchr2.h: Likewise.
30019         * lib/memchr2.c: Likewise, based on memchr.c.
30020         * tests/test-memchr2.c: New test.
30021         * MODULES.html.sh (String handling): Add memchr2.
30022
30023 2008-02-29  Bruno Haible  <bruno@clisp.org>
30024
30025         * modules/freadseek-tests: New file.
30026         * tests/test-freadseek.sh: New file.
30027         * tests/test-freadseek.c: New file.
30028
30029         New module 'freadseek'.
30030         * modules/freadseek: New file.
30031         * lib/freadseek.h: New file.
30032         * lib/freadseek.c: New file.
30033         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30034
30035 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30036
30037         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30038         wydawca.
30039
30040         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30041         program_invocation_name and program_invocation_short_name are
30042         present.
30043
30044 2008-02-28  Bruno Haible  <bruno@clisp.org>
30045
30046         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30047         * tests/test-freadptr.sh: Also test non-seekable stdin.
30048
30049 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30050
30051         * build-aux/bootstrap (source_base, m4_base)
30052         (doc_base, tests_base): New variables.
30053         (gnulib_tool_options): Do not hardcode base directories, use
30054         the above variables instead.
30055
30056 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30057
30058         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30059
30060 2008-02-28  Bruno Haible  <bruno@clisp.org>
30061
30062         * modules/freadptr-tests: New file.
30063         * tests/test-freadptr.sh: New file.
30064         * tests/test-freadptr.c: New file.
30065
30066         New module 'freadptr'.
30067         * modules/freadptr: New file.
30068         * lib/freadptr.h: New file.
30069         * lib/freadptr.c: New file.
30070         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30071
30072 2008-02-26  Karl Berry  <karl@freefriends.org>
30073
30074         Sync from Libtool:
30075         * libltdl/argz.c (argz_add, argz_count): New functions.
30076         * libltdl/argz.in.h: Declare them.
30077         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30078
30079 2008-02-22  Bruno Haible  <bruno@clisp.org>
30080
30081         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30082         is a pointer type.  Needed for HP-UX 10.
30083         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30084         * doc/posix-functions/gmtime_r.texi: Likewise.
30085         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30086
30087 2008-02-24  Bruno Haible  <bruno@clisp.org>
30088
30089         * modules/environ-tests: New file.
30090         * tests/test-environ.c: New file.
30091
30092         New module 'environ'.
30093         * modules/environ: New file.
30094         * lib/unistd.in.h (environ): New declaration.
30095         * m4/environ.m4: New file.
30096         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30097         after use.
30098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30099         HAVE_DECL_ENVIRON.
30100         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30101         HAVE_DECL_ENVIRON.
30102         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30103         wrong claim that 'environ' is missing on some systems.
30104         * modules/execute (Depends-on): Add environ.
30105         * lib/execute.c (environ): Remove fallback declaration.
30106         * modules/pipe (Depends-on): Add environ.
30107         * lib/pipe.c (environ): Remove fallback declaration.
30108         * modules/setenv (Depends-on): Add environ.
30109         * lib/setenv.c (environ): Remove fallback declaration.
30110         * modules/unsetenv (Depends-on): Add environ.
30111         * lib/unsetenv.c (environ): Remove fallback declaration.
30112         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30113         m4/environ.m4.
30114         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30115         (gl_PREREQ_UNSETENV): Likewise.
30116
30117 2008-02-24  Bruno Haible  <bruno@clisp.org>
30118
30119         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30120
30121 2008-02-20  Bob Proulx  <bob@proulx.com>
30122
30123         Enable use of older two part flavor 'git describe'.
30124         * build-aux/git-version-gen: If using the older two part flavor of
30125         git version then recreate the third part now present in the
30126         newer three part flavor of git describe.
30127
30128 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30129
30130         * lib/fts.c (fts_build): Typo correction to comment.
30131
30132 2008-02-17  Bruno Haible  <bruno@clisp.org>
30133
30134         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30135         generating no-op conflicts.
30136
30137 2008-02-17  Bruno Haible  <bruno@clisp.org>
30138
30139         Speed up by 10%.
30140         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30141         result_entries, rather than an index-based loop.
30142
30143 2008-02-17  Bruno Haible  <bruno@clisp.org>
30144
30145         Speed up by 25%.
30146         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30147         'hashcode_cached'.
30148         (entry_create): New function.
30149         (entry_hashcode): Use the cached hashcode if possible.
30150         (read_changelog_file, try_split_merged_entry): Use entry_create.
30151
30152 2008-02-17  Bruno Haible  <bruno@clisp.org>
30153
30154         Speed up from O(n^2) to O(n) for long ChangeLog files.
30155         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30156         (read_changelog_file): Change implementation of entries_reversed list
30157         to rbtreehash.
30158         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30159
30160 2008-02-17  Bruno Haible  <bruno@clisp.org>
30161
30162         New option --split-merged-entry.
30163         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30164         (find_paragraph_end, try_split_merged_entry): New functions.
30165         (long_options): Add option --split-merged-entry.
30166         (usage): Document option --split-merged-entry.
30167         (main): Implement option --split-merged-entry.
30168         Reported by Eric Blake.
30169
30170 2008-02-17  Bruno Haible  <bruno@clisp.org>
30171
30172         * lib/git-merge-changelog.c: Include c-strstr.h.
30173         (main): Support the "git pull --rebase" situation.
30174         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30175         Reported by Eric Blake.
30176
30177 2008-02-16  Eric Blake  <ebb9@byu.net>
30178
30179         Avoid doubling \ in common case of "c-maybe" quoting style.
30180         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30181         eliding outer quotes.
30182         * lib/quotearg.h: Document this.
30183         * tests/test-quotearg.c (result_strings, inputs, results_g)
30184         (flag_results, locale_results): Test it by adding a new string to
30185         each test group.
30186         (compare_strings): Test new string.
30187
30188 2008-02-13  Eric Blake  <ebb9@byu.net>
30189
30190         Avoid trigraph quoting in default output.
30191         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30192         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30193         unless explicitly requested.
30194         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30195
30196 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30197
30198         Don't rely on signed integer overflowing to negative value.
30199         * lib/getugroups.c (getugroups): Include <limits.h>.
30200         Instead, compare against INT_MAX, and increment only if the test passes.
30201
30202 2008-02-13  Jim Meyering  <meyering@redhat.com>
30203         and Eric Blake  <ebb9@byu.net>
30204
30205         Avoid shadowing warning and compile errors on Linux.
30206         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30207         forwarding macros on Linux.
30208         (dcgettext): Define a stub, for Linux.
30209         (results_g, main): Avoid warnings.
30210
30211 2008-02-12  Eric Blake  <ebb9@byu.net>
30212
30213         Silence warning in last patch.
30214         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30215
30216         Quotearg part 4: add tests, fix c-maybe colon quoting.
30217         * lib/quotearg.h: Improve documentation.
30218         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30219         escapes when adding outer quotes.  When quoting trigraphs, use
30220         valid C notation.  When quoting NUL, omit extra characters if next
30221         character is not digit.  Alter prototype.
30222         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30223         callers.
30224         * modules/quotearg-tests: New module.
30225         * tests/test-quotearg.c: New test.
30226
30227 2008-02-07  Eric Blake  <ebb9@byu.net>
30228
30229         Quotearg part 3: add flag to control outer quote elision.
30230         * lib/quotearg.h (c_maybe_quoting_style): New style.
30231         (enum quoting_flags): Better documentation of flags.
30232         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30233         c-maybe style.
30234         (quotearg_buffer_restyled): Handle new flag to elide outer
30235         quotes.
30236
30237         Quotearg part 2: add flag that can control NUL elision.
30238         * lib/quotearg.h (set_quoting_flags): New prototype.
30239         * lib/quotearg.c (struct quoting_options): Add flag field.
30240         (set_quoting_flags): New function.
30241         (quotearg_buffer_restyled): Add flags parameter.
30242         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30243         (quotearg_n_options): Set the flag, since length cannot be
30244         returned.
30245         (quoting_options_from_style): Default flags correctly.
30246
30247         Quotearg part 1: more wrappers, restore quotearg_char state.
30248         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30249         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30250         (quotearg_colon_mem): New wrappers.
30251         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30252         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30253         functions.
30254         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30255         (quotearg_colon_mem): New functions.
30256
30257 2008-02-11  Bruno Haible  <bruno@clisp.org>
30258
30259         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30260         library in the current directory: it does not work with parallel make.
30261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30262
30263 2008-02-11  Bruno Haible  <bruno@clisp.org>
30264
30265         * .gitattributes: New file.
30266
30267 2008-02-11  Jim Meyering  <meyering@redhat.com>
30268
30269         useless-if-before-free: Fix reversed exit values.
30270         * build-aux/useless-if-before-free: Use correct values
30271         for EXIT_MATCH and EXIT_NO_MATCH.
30272
30273         * build-aux/useless-if-before-free: Close stdout carefully.
30274
30275 2008-02-10  Bruno Haible  <bruno@clisp.org>
30276
30277         New module 'git-merge-changelog'.
30278         * modules/git-merge-changelog: New file.
30279         * lib/git-merge-changelog.c: New file.
30280
30281 2008-02-10  Jim Meyering  <meyering@redhat.com>
30282
30283         useless-if-before-free: New option: --list (-l).
30284
30285         useless-if-before-free: Don't exit immediately upon open failure.
30286         * build-aux/useless-if-before-free: Exit 2 for errors.
30287         Upon failure to open a file, don't exit immediately.
30288         Rather, just warn and continue with any remaining files.
30289
30290 2008-02-10  Bruno Haible  <bruno@clisp.org>
30291
30292         New abstract list operation 'node_set_value'.
30293         * lib/gl_list.h (gl_list_node_set_value): New function.
30294         (struct gl_list_implementation): New field node_set_value.
30295         * lib/gl_list.c (gl_list_node_set_value): New function.
30296         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30297         (gl_array_list_implementation): Update.
30298         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30299         (gl_carray_list_implementation): Update.
30300         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30301         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30302         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30303         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30304         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30305         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30306         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30307         Update.
30308         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30309         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30310         (gl_sublist_list_implementation): Update.
30311
30312 2008-02-10  Bruno Haible  <bruno@clisp.org>
30313
30314         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30315         Needed when ELEMENT is #defined to 'some_type *'.
30316
30317 2008-02-10  Jim Meyering  <meyering@redhat.com>
30318
30319         New script and module: useless-if-before-free
30320         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30321         * build-aux/useless-if-before-free: New file.
30322         * modules/useless-if-before-free: New file.
30323
30324         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30325
30326         xstrtol_error: Fix typo.
30327         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30328         s/exit_failure/exit_status/.
30329
30330 2008-02-09  Jim Meyering  <meyering@redhat.com>
30331
30332         New script and module: gitlog-to-changelog
30333         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30334         * modules/gitlog-to-changelog: New file.
30335         * build-aux/gitlog-to-changelog: New file.
30336
30337 2008-02-08  Jim Meyering  <meyering@redhat.com>
30338
30339         Avoid two "parameter unused" warnings.
30340         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30341         Mark "st" as used.
30342
30343         Use "git COMMAND", not "git-COMMAND".
30344         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30345         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30346         * build-aux/git-version-gen: Use "git status", not "git-status".
30347
30348 2008-02-07  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30351         Avoids a crash on Windows Vista.
30352         Reported by Adam Strzelecki <ono@java.pl> via
30353         Simon Josefsson <simon@josefsson.org>.
30354
30355 2008-02-06  Bruno Haible  <bruno@clisp.org>
30356
30357         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30358         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30359         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30361         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30362         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30363         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30364         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30365         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30368         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30372         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30373         left-adjust flag.
30374         * tests/test-snprintf-posix.h (test_function): Likewise.
30375         * tests/test-sprintf-posix.h (test_function): Likewise.
30376         * tests/test-vasprintf-posix.c (test_function): Likewise.
30377         * doc/posix-functions/fprintf.texi: Update.
30378         * doc/posix-functions/printf.texi: Update.
30379         * doc/posix-functions/snprintf.texi: Update.
30380         * doc/posix-functions/sprintf.texi: Update.
30381         * doc/posix-functions/vfprintf.texi: Update.
30382         * doc/posix-functions/vprintf.texi: Update.
30383         * doc/posix-functions/vsnprintf.texi: Update.
30384         * doc/posix-functions/vsprintf.texi: Update.
30385         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30386
30387 2008-02-06  Bruno Haible  <bruno@clisp.org>
30388
30389         Fix bug introduced on 2008-01-26.
30390         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30391
30392 2008-02-06  Bruno Haible  <bruno@clisp.org>
30393
30394         Fix bug introduced on 2007-06-10.
30395         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30396         !NEED_PRINTF_FLAG_ZERO.
30397
30398 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30399
30400         getloadavg: use libperfstat on AIX5
30401         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30402
30403 2008-02-03  Bruno Haible  <bruno@clisp.org>
30404
30405         * lib/diffseq.h: Add comments about required #includes.
30406         Reported by Michael Biggs <gnulib@doubleplum.net>.
30407
30408 2008-02-01  Bruno Haible  <bruno@clisp.org>
30409
30410         * users.txt: Add gnuit.
30411
30412 2008-01-31  Bruno Haible  <bruno@clisp.org>
30413
30414         * lib/md4.c (set_uint32): Mark as inline.
30415         * lib/md5.c (set_uint32): Likewise.
30416         * lib/sha1.c (set_uint32): Likewise.
30417         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30418         * m4/md5.m4 (gl_MD5): Likewise.
30419         * m4/sha1.m4 (gl_SHA1): Likewise.
30420
30421 2008-01-31  Jim Meyering  <meyering@redhat.com>
30422
30423         Use "sizeof VAR", rather than a literal "4".
30424         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30425         * lib/md4.c (md4_read_ctx): Likewise.
30426         * lib/sha1.c (sha1_read_ctx): Likewise.
30427
30428 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30429
30430         * tests/test-sha1.c: New file, based on test-md5.c.
30431
30432         * modules/crypto/sha1-tests: New file.
30433
30434 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30435
30436         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30437
30438 2008-01-31  Jim Meyering  <meyering@redhat.com>
30439
30440         Prefer "sizeof v" over the equivalent "4".
30441         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30442         * lib/md5.c (set_uint32): Likewise.
30443         * lib/sha1.c (set_uint32): Likewise.
30444
30445 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30446
30447         * lib/sha1.c (set_uint32): Mark function as static.
30448
30449 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30450
30451         md2: clarify comments to say that alignment is not required.
30452         * lib/md2.h: Remove warning about alignment in comment.
30453         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30454         never been required.
30455
30456 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30457
30458         md4: adapt alignment constraint fix from sha1.
30459         * lib/md4.c (set_uint32): New function, from sha1.c
30460         (md4_read_ctx): Use it.
30461         (md4_finish_ctx): Doc fix.
30462         * lib/md4.h: Doc fix.
30463
30464 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30465
30466         md5: adapt alignment constraint fix from sha1.
30467         * lib/md5.c (set_uint32): New function, from sha1.c
30468         (md5_read_ctx): Use it.
30469         (md5_finish_ctx): Doc fix.
30470         * lib/md5.h: Doc fix.
30471
30472 2008-01-30  Peter Palfrader  <weasel@debian.org>
30473
30474         sha1: remove the result buffer alignment constraint
30475         * lib/sha1.c (set_uint32): New function.
30476         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30477         constraint.
30478         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30479         * lib/sha1.h: Likewise.
30480
30481 2008-01-30  Andreas Schwab  <schwab@suse.de>
30482             Bruno Haible  <bruno@clisp.org>
30483
30484         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30485         correct definition of LDBL_MIN_EXP.
30486
30487 2008-01-30  Karl Berry  <karl@gnu.org>
30488
30489         * config/srclist-update: try to preserve x bit on updates.
30490         * config/srclistvars.sh: update for karl.
30491
30492 2008-01-29  Jim Meyering  <meyering@redhat.com>
30493
30494         vasnprintf.c: Avoid warning about unused label
30495         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30496         "overflow" label definition and associated code with the
30497         same cpp condition that guards the sole use of that label.
30498
30499 2008-01-26  Bruno Haible  <bruno@clisp.org>
30500
30501         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30502         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30503         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30504         * lib/isnanl-nolibm.h (isnanl): Likewise.
30505         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30506
30507 2008-01-26  Bruno Haible  <bruno@clisp.org>
30508
30509         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30510         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30511
30512 2008-01-26  Bruno Haible  <bruno@clisp.org>
30513
30514         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30515         GCC >= 4.0 built-in.
30516         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30517
30518 2008-01-26  Bruno Haible  <bruno@clisp.org>
30519
30520         Rename isnan, applicable to 'double' only, to isnand.
30521         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30522         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30523         (configure.ac): Update.
30524         (Include): Replace "isnan.h" with "isnand.h".
30525         * m4/isnand.m4: Renamed from m4/isnan.m4.
30526         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30527         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30528         instead of isnan.c.
30529         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30530         instead of HAVE_ISNAN_IN_LIBC.
30531         (isnand): Renamed from isnan.
30532         * lib/isnand.c: New file.
30533         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30534         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30535         (Makefile.am): Update.
30536         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30537         Include isnand.h instead of isnan.h.
30538         (main): Test isnand instead of isnan.
30539         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30540         isnan-nolibm.
30541         * modules/frexp (Depends-on): Likewise.
30542         * modules/frexp-tests (Depends-on): Likewise.
30543         * modules/frexp-nolibm (Depends-on): Likewise.
30544         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30545         * modules/isfinite (Depends-on): Likewise.
30546         * modules/round-tests (Depends-on): Likewise.
30547         * modules/signbit (Depends-on): Likewise.
30548         * modules/signbit-tests (Depends-on): Likewise.
30549         * modules/snprintf-posix (Depends-on): Likewise.
30550         * modules/sprintf-posix (Depends-on): Likewise.
30551         * modules/trunc-tests (Depends-on): Likewise.
30552         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30553         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30554         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30555         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30556         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30557         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30558         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30559         * modules/vasnprintf-posix (Depends-on): Likewise.
30560         * modules/vasprintf-posix (Depends-on): Likewise.
30561         * modules/vfprintf-posix (Depends-on): Likewise.
30562         * modules/vsnprintf-posix (Depends-on): Likewise.
30563         * modules/vsprintf-posix (Depends-on): Likewise.
30564         * lib/frexp.c: Include isnand.h instead of isnan.h.
30565         (ISNAN): Set to isnand instead of isnan.
30566         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30567         (gl_isfinited): Use isnand instead of isnan.
30568         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30569         (gl_signbitd): Use isnand instead of isnan.
30570         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30571         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30572         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30573         (main): Use isnand instead of isnan.
30574         * tests/test-round1.c: Include isnand.h.
30575         (main): Use isnand instead of isnan.
30576         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30577         (ISNAN): Set to isnand instead of isnan.
30578         * tests/test-trunc1.c: Include isnand.h.
30579         (main): Use isnand instead of isnan.
30580         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30581         (equal): Use isnand instead of isnan.
30582         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30583         isnand-nolibm.
30584         * NEWS: Mention the change.
30585
30586 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30587             Bruno Haible  <bruno@clisp.org>
30588
30589         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30590         the GCC builtins for signbits are present and set
30591         REPLACE_SIGNBIT_USING_GCC if so.
30592         * lib/math.in.h (signbit): Define using GCC builtins if
30593         REPLACE_SIGNBIT_USING_GCC is set.
30594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30595         REPLACE_SIGNBIT_USING_GCC.
30596         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30597
30598 2008-01-25  Jim Meyering  <meyering@redhat.com>
30599
30600         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30601         * lib/poll.c: Include <config.h>, not "config.h".
30602         * tests/test-getaddrinfo.c: Likewise.
30603
30604 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30605
30606         * modules/sockets-tests: New file.
30607
30608 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30609
30610         * modules/sockets: New module, can be used to call WSA_Startup and
30611         WSA_Cleanup when needed.
30612
30613         * lib/sockets.h, lib/sockets.c: New files.
30614
30615         * m4/sockets.m4: New file.
30616
30617         * tests/test-sockets.c: New file.
30618
30619 2008-01-19  Bruno Haible  <bruno@clisp.org>
30620
30621         * doc/posix-headers: Renamed from doc/headers.
30622         * doc/posix-functions: Renamed from doc/functions.
30623         * doc/gnulib.texi: Update.
30624
30625 2008-01-19  Bruno Haible  <bruno@clisp.org>
30626
30627         * doc/glibc-functions/strcasestr.texi: Include contents of
30628         doc/functions/strcasestr.texi, fixing the list of platforms.
30629         * doc/functions/strcasestr.texi: Remove file.
30630
30631 2008-01-19  Bruno Haible  <bruno@clisp.org>
30632
30633         * doc/glibc-functions/memmem.texi: Include contents of
30634         doc/functions/memmem.texi.
30635         * doc/functions/memmem.texi: Remove file.
30636
30637 2008-01-18  Bruno Haible  <bruno@clisp.org>
30638
30639         * doc/glibc-functions/*.texi: New files.
30640         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30641         to use the new files.
30642
30643 2008-01-17  Bruno Haible  <bruno@clisp.org>
30644
30645         * tests/test-gethostname.c (main): Fix printf statement.
30646
30647 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30648
30649         * modules/gethostname-tests: New file.
30650
30651         * tests/test-gethostname.c: New file.
30652
30653 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30654
30655         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30656         used by the UNAME case.  Reported by Bruno Haible
30657         <bruno@clisp.org>.
30658
30659 2008-01-17  Eric Blake  <ebb9@byu.net>
30660
30661         Convert c-strcasestr to be more efficient.
30662         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30663         (Depends-on): Add c-strcase, remove malloca, strnlen.
30664         * tests/test-c-strcasestr.c (main): Enhance test.
30665         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30666
30667 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30668
30669         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30670         Use it in creating po/Makevars.
30671
30672 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30673
30674         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30675         Applications that requires it should initialize libgcrypt
30676         manually.
30677
30678 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30679
30680         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30681
30682 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30683
30684         Fix problem with getdate on mingw32 reported by Simon Josefsson
30685         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30686         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30687         tzname", when deciding whether to declare tzname.
30688         * lib/strftime.c (tzname): Likewise.
30689
30690 2008-01-15  Bruno Haible  <bruno@clisp.org>
30691
30692         Work around a MacOS X 10.5 bug in frexpl().
30693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30694         * doc/functions/frexpl.texi: Document the bug.
30695         Reported by Elias Pipping <pipping@gentoo.org>.
30696
30697 2008-01-14  Eric Blake  <ebb9@byu.net>
30698
30699         Touch up previous patch.
30700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30701         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30702
30703         Convert strcasestr module to use Two-Way algorithm.
30704         * modules/strcasestr-simple: New module, based on the old
30705         strcasestr, but with Two-Way rather than KMP.
30706         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30707         * lib/string.in.h (rpl_strcasestr): Declare.
30708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30709         performance.
30710         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30711         * modules/string (Makefile.am): Support strcasestr.
30712         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30713         * modules/strcasestr-tests (Depends-on): Check for alarm.
30714         * tests/test-strcasestr.c: Augment test.
30715         * lib/str-two-way.h: Clean up stray macro.
30716         * NEWS: Document new module.
30717         * MODULES.html.sh (string handling): Likewise.
30718         * doc/functions/strcasestr.texi: New file.
30719         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
30720         here, since it is not a POSIX function.
30721
30722 2008-01-14  Colin Watson  <cjwatson@debian.org>
30723             Bruno Haible  <bruno@clisp.org>
30724
30725         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
30726         works fine; if not, set REPLACE_STRSIGNAL.
30727         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
30728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30729         REPLACE_STRSIGNAL.
30730         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
30731         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
30732         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
30733
30734 2008-01-14  Bruno Haible  <bruno@clisp.org>
30735
30736         * modules/strsignal (Include): Change to <string.h>.
30737
30738 2008-01-14  Colin Watson  <cjwatson@debian.org>
30739
30740         * modules/argp (Notice): Add a notice recommending to change
30741         XGETTEXT_OPTIONS.
30742         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
30743
30744 2008-01-13  Colin Watson  <cjwatson@debian.org>
30745
30746         * modules/strsignal-tests: New file.
30747         * tests/test-strsignal.c: New file.
30748
30749         * lib/strsignal.c: New file, from glibc with modifications.
30750         * lib/siglist.h: New file, from glibc with modifications.
30751         * lib/string.in.h (strsignal): New declaration.
30752         * m4/strsignal.m4: New file.
30753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30754         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
30755         * modules/strsignal: New file.
30756         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
30757         HAVE_DECL_STRSIGNAL.
30758
30759 2008-01-13  Bruno Haible  <bruno@clisp.org>
30760
30761         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
30762         locale encoding is not ASCII. Needed for OpenBSD 4.0.
30763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30765
30766 2008-01-13  Bruno Haible  <bruno@clisp.org>
30767
30768         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
30769         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
30770         * lib/argp.h (__attribute__): Likewise.
30771         * lib/c-stack.c (__attribute__): Likewise.
30772         * lib/error.h (__attribute__): Likewise.
30773         * lib/fts.c (__attribute__): Likewise.
30774         * lib/openat.h (__attribute__): Likewise.
30775         * lib/stdio.in.h (__attribute__): Likewise.
30776         * lib/string.in.h (__attribute__): Likewise.
30777         * lib/utimens.c (__attribute__): Likewise.
30778         * lib/vasnprintf.h (__attribute__): Likewise.
30779         * lib/xalloc.h (__attribute__): Likewise.
30780         * lib/xprintf.h (__attribute__): Likewise.
30781         * lib/xstrtol.h (__attribute__): Likewise.
30782         * lib/xvasprintf.h (__attribute__): Likewise.
30783
30784 2008-01-12  Bruno Haible  <bruno@clisp.org>
30785
30786         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
30787         * doc/glibc-headers/a.out.texi: New file.
30788         * doc/glibc-headers/aliases.texi: New file.
30789         * doc/glibc-headers/alloca.texi: New file.
30790         * doc/glibc-headers/ar.texi: New file.
30791         * doc/glibc-headers/argp.texi: New file.
30792         * doc/glibc-headers/argz.texi: New file.
30793         * doc/glibc-headers/byteswap.texi: New file.
30794         * doc/glibc-headers/crypt.texi: New file.
30795         * doc/glibc-headers/endian.texi: New file.
30796         * doc/glibc-headers/envz.texi: New file.
30797         * doc/glibc-headers/err.texi: New file.
30798         * doc/glibc-headers/error.texi: New file.
30799         * doc/glibc-headers/execinfo.texi: New file.
30800         * doc/glibc-headers/fpu_control.texi: New file.
30801         * doc/glibc-headers/fstab.texi: New file.
30802         * doc/glibc-headers/fts.texi: New file.
30803         * doc/glibc-headers/getopt.texi: New file.
30804         * doc/glibc-headers/ieee754.texi: New file.
30805         * doc/glibc-headers/ifaddrs.texi: New file.
30806         * doc/glibc-headers/libintl.texi: New file.
30807         * doc/glibc-headers/mcheck.texi: New file.
30808         * doc/glibc-headers/mntent.texi: New file.
30809         * doc/glibc-headers/obstack.texi: New file.
30810         * doc/glibc-headers/paths.texi: New file.
30811         * doc/glibc-headers/printf.texi: New file.
30812         * doc/glibc-headers/pty.texi: New file.
30813         * doc/glibc-headers/resolv.texi: New file.
30814         * doc/glibc-headers/shadow.texi: New file.
30815         * doc/glibc-headers/sysexits.texi: New file.
30816         * doc/glibc-headers/ttyent.texi: New file.
30817
30818 2008-01-12  Jim Meyering  <meyering@redhat.com>
30819
30820         announce-gen: emit Gnulib's git-based version string.
30821         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
30822         New option --gnulib-version=V, where V is expected to be
30823         the output of running git describe in the gnulib directory.
30824         (get_tool_versions): Request feedback on xdelta.  I suspect it's
30825         not useful, and plan to stop publishing an xdelta file with each
30826         coreutils release.
30827
30828         * build-aux/announce-gen: Also check for lzma-compressed files.
30829
30830 2008-01-11  Bruno Haible  <bruno@clisp.org>
30831
30832         * tests/test-memmem.c (main): Increase maximum allowed time.
30833         * tests/test-strstr.c (main): Likewise.
30834
30835 2008-01-11  Bruno Haible  <bruno@clisp.org>
30836
30837         * doc/functions/memmem.texi: Add more precisions about platforms.
30838         * doc/functions/strstr.texi: Likewise.
30839
30840 2008-01-10  Eric Blake  <ebb9@byu.net>
30841
30842         * m4/strstr.m4: Delete cruft from copy-n-paste.
30843         Reported by Bruno Haible.
30844
30845 2008-01-10  Bruno Haible  <bruno@clisp.org>
30846
30847         Make c-strstr rely on strstr.
30848         * lib/c-strstr.c: Don't include str-kmp.h.
30849         (c_strstr): Define in terms of strstr.
30850         * modules/c-strstr (Files): Remove lib/str-kmp.h.
30851         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
30852
30853 2008-01-10  Bruno Haible  <bruno@clisp.org>
30854
30855         * doc/gnulib.texi (String Functions in C Locale): New section.
30856         * doc/c-ctype.texi: New file.
30857         * doc/c-strcase.texi: New file.
30858         * doc/c-strcaseeq.texi: New file.
30859         * doc/c-strcasestr.texi: New file.
30860         * doc/c-strstr.texi: New file.
30861         * doc/c-strtod.texi: New file.
30862         * doc/c-strtold.texi: New file.
30863
30864 2008-01-10  Eric Blake  <ebb9@byu.net>
30865
30866         * lib/relocatable.h: Fix a comment.
30867
30868 2008-01-10  Eric Blake  <ebb9@byu.net>
30869
30870         Share two-way algorithm.
30871         * lib/str-two-way.h: New file, merged from...
30872         * lib/memmem.c: ...here...
30873         * lib/strstr.c: ...and here.
30874         * modules/memmem (Files): Use it.
30875         * modules/strstr (Files): Likewise.
30876
30877         Avoid quadratic strstr implementations.
30878         * lib/strstr.c: New file.
30879         * m4/strstr.m4: Likewise.
30880         * modules/strstr: Likewise.
30881         * modules/strstr-tests: Likewise.
30882         * tests/test-strstr.c: Likewise.
30883         * lib/string.in.h (rpl_strstr): Declare.
30884         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
30885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
30886         * modules/string (Makefile.am): Likewise.
30887         * MODULES.html.sh (string handling): Mention new module.
30888         * doc/functions/strstr.texi (strstr): Document the bug.
30889
30890 2008-01-10  Bruno Haible  <bruno@clisp.org>
30891
30892         * lib/relocatable.h (relocate): State whether result is freshly
30893         allocated or not.
30894         * lib/relocatable.c (relocate): Return a freshly allocated string
30895         instead of a pointer to a privately held string.
30896         Reported by Sylvain Beucler <beuc@gnu.org>.
30897
30898 2008-01-10  Colin Watson  <cjwatson@debian.org>
30899
30900         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
30901         s/S_ISNLK/S_ISLNK/.
30902
30903 2008-01-09  Bruno Haible  <bruno@clisp.org>
30904
30905         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
30906         and other files.
30907         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
30908         if it's only a guess.
30909         * modules/memmem: Simplify by depending on memmem-simple.
30910
30911 2008-01-09  Bruno Haible  <bruno@clisp.org>
30912
30913         Work around OpenBSD 4.0 tdelete() bug.
30914         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
30915         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
30916         macros and don't redefine the enum values.
30917         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
30918         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
30919         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
30920
30921 2008-01-09  Bruno Haible  <bruno@clisp.org>
30922
30923         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
30924         (main): Don't perform the tests if setlocale did not install a UTF-8
30925         locale. Needed on OpenBSD 4.0.
30926         * modules/wcwidth-tests (Depends-on): Add localcharset.
30927
30928 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
30929
30930         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
30931         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
30932         * NEWS: announce this.
30933         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
30934
30935 2008-01-09  Simon Josefsson  <simon@josefsson.org>
30936         and Eric Blake  <ebb9@byu.net>
30937
30938         Add memmem-simple module.
30939         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
30940         (gl_FUNC_MEMMEM): Separate performance from presence checks.
30941         * modules/memmem-simple: New file.
30942         * modules/memmem (Description): Tweak.
30943         * MODULES.html.sh (string handling): Mention new module.
30944         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
30945         addressed by memmem-simple.
30946         * NEWS: Document the difference.
30947
30948 2008-01-09  Eric Blake  <ebb9@byu.net>
30949
30950         Give gcc some memmem optimization hints.
30951         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
30952         (strcasestr): Declare as pure.
30953         * modules/memmem (Maintainer): Claim my implementation.
30954
30955 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30956
30957         Support AIX 6.1 and higher.
30958         * build-aux/config.libpath: Likewise.
30959         * build-aux/config.rpath: Likewise.
30960
30961 2008-01-08  Jim Meyering  <meyering@redhat.com>
30962             Bruno Haible  <bruno@clisp.org>
30963
30964         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
30965         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
30966         Reported by Peter Fales in
30967         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
30968
30969 2008-01-08  Bruno Haible  <bruno@clisp.org>
30970
30971         * modules/unictype/category-of (Depends-on): Add
30972         unictype/category-none.
30973         * modules/unictype/category-and-tests (Depends-on): Add
30974         unictype/category-{L,N,Lu,Nd}.
30975         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
30976         * modules/unictype/category-or-tests (Depends-on): Add
30977         unictype/category-{L,N}.
30978         * modules/unictype/category-name-tests (Depends-on): Add
30979         unictype/category-{Z,Nl}.
30980         Reported by Simon Josefsson.
30981
30982 2008-01-08  Bruno Haible  <bruno@clisp.org>
30983
30984         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
30985         convention better.
30986         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
30987         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
30988         Reported by Peter Miller <millerp@canb.auug.org.au>.
30989
30990 2008-01-08  Eric Blake  <ebb9@byu.net>
30991
30992         Rewrite memmem to guarantee linear complexity without malloc.
30993         * lib/memmem.c (memmem): Use Two-Way rather than
30994         Knuth-Morris-Pratt, to allow O(1) space usage.
30995         (critical_factorization, two_way_short_needle)
30996         (two_way_long_needle): New functions.
30997         (knuth_morris_pratt): Delete.
30998         * modules/memmem (Depends-on): No longer need malloca or stdbool.
30999         Add stdint.
31000         * tests/test-memmem.c (main): Add tests for periodic needle and
31001         sublinear performance.
31002         * doc/functions/memmem.texi (memmem): Document other deficiencies
31003         in cygwin and older glibc.
31004
31005 2008-01-08  Bruno Haible  <bruno@clisp.org>
31006
31007         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31008         augmentation.
31009
31010 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31011
31012         Add a configure time option: --disable-acl.
31013         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31014         AC_ARG_ENABLE(acl).
31015
31016 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31017
31018         * tests/test-localename.c: Don't include obsolete "setenv.h".
31019
31020         * modules/localename-tests (Depends-on): Need unsetenv.
31021
31022 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31023
31024         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31025
31026 2008-01-06  Colin Watson  <cjwatson@debian.org>
31027
31028         * users.txt: Add man-db.
31029
31030 2008-01-07  Bruno Haible  <bruno@clisp.org>
31031
31032         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31033         previous section name.
31034
31035 2008-01-07  Bruno Haible  <bruno@clisp.org>
31036
31037         * lib/progname.c (set_program_name): Don't strip off a leading
31038         "lt-" prefix outside a .libs directory.
31039         Suggested by Paul Eggert.
31040
31041 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31042             Bruno Haible  <bruno@clisp.org>
31043
31044         Improve memory cleanup in 'relocatable' module.
31045         * lib/relocatable.h (compute_curr_prefix): Change return type to
31046         'char *'.
31047         * lib/relocatable.c (compute_curr_prefix): Change return type to
31048         'char *'. Free curr_installdir after use.
31049         (relocate): Free curr_prefix_better after use.
31050         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31051
31052 2008-01-01  Bruno Haible  <bruno@clisp.org>
31053
31054         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31055         failure on older glibc systems.
31056         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31057
31058 2008-01-05  Eric Blake  <ebb9@byu.net>
31059
31060         Avoid quadratic system memmem.
31061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31062         Reported by Ralf Wildenhues.
31063
31064         Fix memmem test for mingw.
31065         * modules/memmem-tests (configure.ac): Check for alarm.
31066         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31067         it.
31068         * doc/functions/memmem.texi: New file.
31069         * doc/gnulib.texi (Function Substitutes): Add memmem.
31070         Reported by Bruno Haible.
31071
31072 2008-01-04  Bruno Haible  <bruno@clisp.org>
31073
31074         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31075         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31076         gl_HEADER_STRING_H_DEFAULTS.
31077
31078 2008-01-04  Eric Blake  <ebb9@byu.net>
31079
31080         Shorten duration of memmem test.
31081         * tests/test-memmem.c (main): Use alarm to declare failure if test
31082         is taking too long.
31083         Reported by Ralf Wildenhues.
31084
31085 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31086
31087         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31088         string, needed by strerror.
31089
31090 2008-01-03  Colin Watson  <cjwatson@debian.org>
31091             Bruno Haible  <bruno@clisp.org>
31092
31093         * doc/gnulib-tool.texi (Localization): New section.
31094
31095 2008-01-02  Bruno Haible  <bruno@clisp.org>
31096
31097         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31098         variables to 'unsigned char *' type.
31099         Reported by Paul Eggert.
31100
31101 2008-01-02  Jim Meyering  <jim@meyering.net>
31102
31103         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31104
31105 2007-12-31  Jim Meyering  <jim@meyering.net>
31106
31107         Avoid use of private FTS type name.
31108         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31109
31110 2007-12-30  Karl Berry  <karl@gnu.org>
31111
31112         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31113         work around defect in Texinfo and/or the standalone Info browser.
31114
31115 2007-12-30  Bruno Haible  <bruno@clisp.org>
31116
31117         Unify 5 copies of the KMP code.
31118         * lib/str-kmp.h: New file.
31119         * lib/c-strcasestr.c: Include str-kmp.h.
31120         (knuth_morris_pratt): Remove function.
31121         (c_strcasestr): Update.
31122         * lib/c-strstr.c: Include str-kmp.h.
31123         (knuth_morris_pratt): Remove function.
31124         (c_strcasestr): Update.
31125         * lib/mbscasestr.c: Include str-kmp.h.
31126         (knuth_morris_pratt_unibyte): Remove function.
31127         * lib/mbsstr.c: Include str-kmp.h.
31128         (knuth_morris_pratt_unibyte): Remove function.
31129         * lib/strcasestr.c: Include str-kmp.h.
31130         (knuth_morris_pratt): Remove function.
31131         (strcasestr): Update.
31132         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31133         * modules/c-strstr (Files): Likewise.
31134         * modules/mbscasestr (Files): Likewise.
31135         * modules/mbsstr (Files): Likewise.
31136         * modules/strcasestr (Files): Likewise.
31137         Suggested by Paul Eggert.
31138
31139 2007-12-30  Bruno Haible  <bruno@clisp.org>
31140
31141         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31142         defined.
31143
31144 2007-12-30  Bruno Haible  <bruno@clisp.org>
31145
31146         * lib/xmalloca.h: Include xalloc.h.
31147         (xnmalloca): New macro.
31148
31149 2007-12-30  Bruno Haible  <bruno@clisp.org>
31150
31151         * lib/malloca.h (nmalloca): New macro.
31152         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31153         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31154         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31155         knuth_morris_pratt_multibyte): Likewise.
31156         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31157         knuth_morris_pratt_multibyte): Likewise.
31158         * lib/memmem.c (knuth_morris_pratt): Likewise.
31159         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31160
31161 2007-12-25  Bruno Haible  <bruno@clisp.org>
31162
31163         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31164         * lib/glob.c: Don't include openat.h.
31165         (link_exists2_p): Add back the code that deals with the
31166         !GLOB_ALTDIRFUNC case.
31167         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31168         let it do the filename concatenation.
31169         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31170         * modules/glob (Depends-on): Remove openat.
31171
31172 2007-12-31  Bruno Haible  <bruno@clisp.org>
31173
31174         * modules/dirfd (License): Change to LGPLv2+.
31175         Approved by Jim Meyering.
31176
31177 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31178
31179         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31180         when multiplying M by sizeof (size_t).
31181
31182 2007-12-10  Martin Lambers  <marlam@marlam.de>
31183
31184         Override getpagesize on mingw.
31185         * lib/getpagesize.c: New file.
31186         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31187         * modules/getpagesize (Files): Add lib/getpagesize.c.
31188         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31190         REPLACE_GETPAGESIZE.
31191         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31192
31193 2007-12-25  Bruno Haible  <bruno@clisp.org>
31194
31195         * modules/localcharset (Notice): New field.
31196         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31197         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31198
31199 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31200             Bruno Haible  <bruno@clisp.org>
31201
31202         Avoid using the syntax symbol() in formatted documentation.
31203         * MODULES.html.sh (func_module): When replacing symbol() with a
31204         hyperlink, remove the parentheses. Show an error if some remain.
31205         Recognize and render the '...' syntax.
31206         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31207         Rework. Add paragraph about GCC's inlining.
31208         * doc/alloca.texi: Likewise.
31209         * doc/error.texi: Remove parentheses from symbol reference.
31210         * doc/gnulib-intro.texi: Likewise.
31211         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31212         * modules/fnmatch (Description): Reword to say "the ... function".
31213         * modules/full-read (Description): Likewise.
31214         * modules/full-write (Description): Likewise.
31215         * modules/safe-read (Description): Likewise.
31216         * modules/safe-write (Description): Likewise.
31217         * modules/strchrnul (Description): Likewise.
31218         * modules/trim (Description): Likewise.
31219         * modules/error (Description): Remove parentheses from symbol
31220         references.
31221         * modules/verror (Description): Likewise.
31222         Reported by Karl Berry.
31223
31224 2007-12-25  Bruno Haible  <bruno@clisp.org>
31225
31226         Fixup after 2007-10-16 commit.
31227         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31228
31229 2007-12-24  Bruno Haible  <bruno@clisp.org>
31230
31231         Make --enable-relocatable work with DESTDIR.
31232         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31233         to compute installdir from destprog.
31234         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31235         also set the RELOC_DESTDIR variable.
31236         Reported by Левашев Иван <octagram@bluebottle.com>.
31237
31238 2007-12-24  Bruno Haible  <bruno@clisp.org>
31239
31240         Fix link error due to xalloc_die().
31241         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31242         of xreadlink.
31243         * lib/relocwrapper.c: Update comments.
31244         * build-aux/install-reloc: Remove xreadlink.c from file list.
31245         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31246         xreadlink.c.
31247         Reported by Левашев Иван <octagram@bluebottle.com>.
31248
31249 2007-12-24  Bruno Haible  <bruno@clisp.org>
31250
31251         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31252         * lib/setenv.h: Remove file.
31253         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31254         lib/setenv.h.
31255         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31256         (Depends-on): Add stdlib.
31257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31258         gl_FUNC_UNSETENV.
31259         (Include): Replace setenv.h with <stdlib.h>.
31260         * modules/unsetenv: New file.
31261         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31262         * lib/unsetenv.c: Include <stdlib.h> first.
31263         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31264         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31265         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31266         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31267         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31268         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31270         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31271         * doc/functions/unsetenv.texi: Update.
31272         * modules/xsetenv (Depends-on): Add unsetenv.
31273         * modules/getdate (Depends-on): Likewise.
31274         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31275         * lib/xsetenv.c: Don't include setenv.h.
31276         * lib/getdate.y: Likewise.
31277         * lib/relocwrapper.c: Likewise.
31278         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31279         (Depends-on): Add stdlib.
31280         * NEWS: Mention the changes.
31281         Reported by Левашев Иван <octagram@bluebottle.com>.
31282
31283 2007-12-23  Bruno Haible  <bruno@clisp.org>
31284
31285         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31286         indentation.
31287
31288 2007-12-23  Bruno Haible  <bruno@clisp.org>
31289
31290         * lib/c-strcasestr.c: Add more comments.
31291         * lib/c-strstr.c: Likewise.
31292         * lib/mbscasestr.c: Likewise.
31293         * lib/mbsstr.c: Likewise.
31294         * lib/strcasestr.c: Likewise.
31295         * lib/memmem.c: Likewise.
31296
31297 2007-12-23  Bruno Haible  <bruno@clisp.org>
31298
31299         * tests/test-memmem.c: Include <string.h> first.
31300
31301 2007-12-22  Bruno Haible  <bruno@clisp.org>
31302
31303         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31304         the contents of $testsbase.
31305         Reported by Ralf Wildenhues.
31306
31307 2007-12-22  Bruno Haible  <bruno@clisp.org>
31308
31309         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31310         two variables local_ldadd_before, local_ldadd_last.
31311
31312 2007-12-20  Eric Blake  <ebb9@byu.net>
31313
31314         Work around circular library issue when cross-compiling.
31315         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31316         that progname.o does not need to pull in rpl_memcmp.
31317
31318 2007-12-19  Eric Blake  <ebb9@byu.net>
31319
31320         Fix memmem to avoid O(n^2) worst-case complexity.
31321         * lib/memmem.c (knuth_morris_pratt): New function.
31322         (memmem): Use it if first few naive iterations fail.
31323         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31324         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31325         * modules/memchr (License): Likewise.
31326         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31327         malloca.
31328         * tests/test-memmem.c: Rewrite, borrowing ideas from
31329         test-mbsstr1.c; the old version wouldn't even compile!
31330         * modules/memmem-tests: New file.
31331         * lib/string.in.h (rpl_memmem): Add declaration.
31332         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31334         REPLACE_MEMMEM.
31335
31336 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31337
31338         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31339         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31340         before any system include files, and undef after them all.  This
31341         should fix a problem on VMS reported by John E. Malmberg in
31342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31343
31344 2007-12-17  Eric Blake  <ebb9@byu.net>
31345
31346         Revert addition of verify, for BSD/OS.
31347         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31348         can't handle large files, for the sake of obsolete platforms.
31349         * modules/fseeko (Depends-on): Remove verify.
31350         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31351         * doc/functions/ftello.texi (ftello): Likewise.
31352         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31353         Reported by Larry Jones.
31354
31355 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31356
31357         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31358         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31359
31360 2007-12-17  Jim Meyering  <meyering@redhat.com>
31361
31362         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31363         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31364         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31365         * modules/getcwd (Depends-on): Add openat.
31366         Reported by Petr Salinger.
31367
31368 2007-12-17  Bruno Haible  <bruno@clisp.org>
31369
31370         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31371         avoid a segmentation fault of the configure test on x86_64 systems.
31372
31373 2007-12-15  Jim Meyering  <meyering@redhat.com>
31374
31375         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31376
31377 2007-12-13  Eric Blake  <ebb9@byu.net>
31378
31379         Another fseek test.
31380         * tests/test-fseek.c (main): Also test ungetc handling.
31381         * tests/test-fseeko.c (main): Likewise.
31382         * modules/fseeko (Depends-on): Add verify.
31383         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31384         large.
31385         Reported by Larry Jones.
31386
31387         Fix fseeko on mingw.
31388         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31389         seek.
31390
31391         Beef up fseek tests.
31392         * tests/test-fseek.c (main): Also test eof handling.
31393         * tests/test-fseeko.c (main): Likewise.
31394         Reported by Larry Jones.
31395
31396 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31397
31398         Fix fseeko on BSD-based platforms.
31399         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31400         successful seek.
31401
31402 2007-12-12  Eric Blake  <ebb9@byu.net>
31403
31404         Allow circular dependency of separate libtests.a
31405         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31406         when use_libtests.
31407
31408 2007-12-11  Eric Blake  <ebb9@byu.net>
31409
31410         Fix bug with -0.0L in previous patch.
31411         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31412         * tests/test-isnan.c (main): Also test on zeroes.
31413         * tests/test-isnanf.c (main): Likewise.
31414         * tests/test-isnanl.h (main): Likewise.
31415
31416         Detect pseudo-denormals on x86 even when cross-compiling.
31417         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31418         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31419         invalid bit patterns that happen to satisfy ==.
31420
31421         Avoid link failures with separate libtests.a.
31422         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31423         last, to satisfy circular dependencies.
31424
31425 2007-12-11  Eric Blake  <ebb9@byu.net>
31426         and Bruno Haible  <bruno@clisp.org>
31427
31428         Fix OpenBSD 4.0 <float.h> handling of long double.
31429         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31430         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31431         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31432
31433 2007-12-11  Jim Meyering  <meyering@redhat.com>
31434
31435         * users.txt: Add libvirt.
31436
31437         Support versions of autoconf prior to 2.59c.
31438         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31439         if it is not already defined.
31440
31441 2007-12-09  Bruno Haible  <bruno@clisp.org>
31442
31443         Let 'gnulib-tool --import' collect sources needed for the tests in
31444         tests/ rather than in lib/.
31445         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31446         argument. If true, add rules to generate libtests.a, and put libtests.a
31447         into $(LDADD). Consider source files in subdirectories and set
31448         uses_subdirs.
31449         (func_emit_initmacro_start, func_emit_initmacro_end,
31450         func_emit_initmacro_done): Pass all arguments explicitly.
31451         (func_import): Determine two module lists main_modules,
31452         testsrelated_modules. Determine use_libtests. Determine two variables
31453         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31454         instead of just sed_transform_lib_file. Determine two variables
31455         main_files and testsrelated_files. Compute 'files' as the union of
31456         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31457         func_add_or_update. In the generated gnulib-comp.m4, collect the
31458         object files for tests/ in different variables than those for lib/.
31459         Substitute LIBTESTS_LIBDEPS.
31460         (func_create_testdir): Combine the uses_subdirs results from
31461         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31462
31463 2007-12-09  Bruno Haible  <bruno@clisp.org>
31464
31465         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31466         the build-aux directory.
31467
31468 2007-12-09  Bruno Haible  <bruno@clisp.org>
31469
31470         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31471         introduced on 2006-09-09.
31472
31473 2007-12-07  Jim Meyering  <meyering@redhat.com>
31474
31475         Let these macros work also with autoconf-2.59.
31476         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31477         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31479
31480 2007-12-06  Jim Meyering  <meyering@redhat.com>
31481
31482         Avoid a configure-time syntax error in gl_FUNC_ACL.
31483         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31484         function in each branch, before testing the cache variable.
31485
31486 2007-12-04  Eric Blake  <ebb9@byu.net>
31487
31488         Make scripts executable.
31489         * build-aux/config.guess: Add execute permissions.
31490         * build-aux/config.sub: Likewise.
31491         * build-aux/gendocs.sh: Likewise.
31492
31493         Fix frexp on mingw.
31494         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31495         cross-compiling.
31496         * doc/functions/frexp.texi (frexp): Document the bug.
31497
31498         Make cygwin fseeko check more reliable.
31499         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31500         version numbers, rather than unrelated feature check.
31501         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31502         * doc/functions/ftello.texi (ftello): Likewise.
31503         Reported by Bruno Haible.
31504
31505         * m4/strerror.m4: Bump version number.
31506
31507 2007-12-03  Bruno Haible  <bruno@clisp.org>
31508
31509         * doc/functions/mprotect.texi: Mention the mingw problem.
31510
31511 2007-12-03  Eric Blake  <ebb9@byu.net>
31512
31513         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31514         REPLACE_STRERROR is initialized before this macro.
31515
31516 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31517
31518         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31519         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31520         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31521         put -lsec in even for programs other than 'ls'.  This fixes a problem
31522         for gettext reported by Bruno Haible in
31523         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31524         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31525         Add support for Solaris 10.  This isn't efficient, but should get the
31526         job done for now.
31527
31528 2007-12-03  James Youngman  <jay@gnu.org>
31529
31530         * doc/regexprops-generic.texi: change "an close-group" to "a
31531         close-group" and "illegal" to "not allowed".
31532
31533 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31534
31535         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31536         pr_byname.h. Needed for the rare case when the maintainer has done
31537         "make maintainer-clean" in the source directory and then attempts a
31538         build outside the source directory.
31539         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31540         scripts_byname.h.
31541
31542 2007-12-02  Martin Lambers <marlam@marlam.de>
31543             Bruno Haible  <bruno@clisp.org>
31544
31545         * lib/getpagesize.h: Remove file.
31546         * lib/unistd.in.h: Include declaration of getpagesize here.
31547         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31548         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31549         HAVE_SYS_PARAM_H.
31550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31551         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31552         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31553         (Depends-on): Add unistd.
31554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31555         (Include): Use <unistd.h> instead of getpagesize.h.
31556         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31557         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31558         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31559         gl_GETPAGESIZE invocation, already handled by module dependency.
31560         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31561
31562 2007-12-02  Bruno Haible  <bruno@clisp.org>
31563
31564         * modules/strings-tests: New file.
31565         * tests/test-strings.c: New file.
31566
31567         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31568         * lib/strings.in.h: New file.
31569         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31570         * m4/strings_h.m4: New file.
31571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31572         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31573         * modules/strings: New file.
31574         * modules/string (Makefile.am): Update.
31575         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31576         Reported by Karl Berry.
31577
31578 2007-12-01  Eric Blake  <ebb9@byu.net>
31579
31580         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31581         accomodate fix in cygwin 1.5.25.
31582
31583 2007-12-01  Jim Meyering  <meyering@redhat.com>
31584
31585         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31586         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31587         that would inhibit utf8-optimization of a regexp containing line-
31588         or buffer-anchors, e.g., `^', `$'.
31589
31590 2007-11-30  Bruno Haible  <bruno@clisp.org>
31591
31592         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31593         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31594         glthread_recursive_lock_init.
31595         * lib/lock.c (glthread_recursive_lock_init)
31596         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31597         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31598
31599 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31600
31601         New function qset_acl, like set_acl but with syscall semantics.
31602         * lib/acl.h (qset_acl): New decl.
31603         * lib/acl.c (qset_acl): New function.
31604         (set_acl): Use new function.  Use more-consistent diagnostics.
31605
31606 2007-11-28  Jim Meyering  <meyering@redhat.com>
31607
31608         * modules/physmem (License): Change from GPL to LGPLv2+.
31609
31610 2007-11-26  Bruno Haible  <bruno@clisp.org>
31611
31612         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31613         'long double' type has excess precision.
31614         Reported by Jim Meyering in
31615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
31616
31617 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31618
31619         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
31620         Sync from <http://gnu.org/licenses>.
31621         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
31622         with license text from same location.
31623         * doc/maintain.texi, doc/standards.texi:  Sync from
31624         <http://savannah.gnu.org/projects/gnustandards>.
31625
31626 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
31627         and Jim Meyering  <meyering@redhat.com>
31628
31629         Adjust getdate' grammar to accept a slightly more regular language.
31630         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
31631         Before, the former was rejected.
31632         * lib/getdate.y (digits_to_date_time): New function, factored
31633         out of ...
31634         (number): ...here.  Just call digits_to_date_time.
31635         (hybrid): New non-terminal to handle an <unsigned number,
31636         signed relative offset> sequence consistently.
31637
31638 2007-11-18  Jim Meyering  <meyering@redhat.com>
31639
31640         Pull my changes from coreutils:
31641         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31642         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31643         use of $gnulib_tool_option_extras, so that it's separated from the
31644         preceding argument.
31645
31646         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31647         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31648         parent destination directories before copying a file into place.
31649
31650 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31651
31652         bootstrap: work also with 4-argument variant of AC_INIT
31653         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31654
31655 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31656
31657         Port test-getaddrinfo to Solaris.
31658         Problem reported by Bruno Haible in
31659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31660         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31661         explanation of setting 'hints'.
31662         Don't reject an implementation merely because it returns EAI_SERVICE.
31663         (EAI_SERVICE): Define to 0 if not defined.
31664
31665 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31666
31667         The license of gnu-make and posix-shell is now "GPLed build tool".
31668         * modules/gnu-make (License): Likewise.
31669         * modules/posix-shell (License): Likewise.
31670
31671         New module posix-shell, for determining a POSIX shell
31672         or perhaps something that is close enough to a POSIX shell.
31673         * m4/posix-shell.m4: New file.
31674         * modules/posix-shell: New file.
31675
31676         * MODULES.html.sh: Mention new module.
31677
31678         New module gnu-make, for determining whether we're using GNU Make.
31679         * m4/gnu-make.m4: New file.
31680         * modules/gnu-make: New file.
31681         * MODULES.html.sh: Mention new module.
31682
31683 2007-11-14  Jim Meyering  <meyering@redhat.com>
31684
31685         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31686         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31687         use this macro to create a function _definition_.
31688         Remove useless "#undef ARGMATCH_DIE".
31689
31690 2007-11-14  Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/config.charset: Update for OpenBSD 4.1.
31693         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31694
31695 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31696
31697         Document 64-bit #if problems in stdint.texi.
31698         * doc/headers/stdint.texi (stdint.h): Mention problems with
31699         64-bit-#if, and how to work around them.
31700
31701         Don't insist on 'long long int' support in the preprocessor.  It
31702         breaks too many things.  For example, PRIdMAX still uses a 'long
31703         long int' format with the latest Sun compiler, even though
31704         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31705         preprocessor problem.  This causes the latest coreutils to dump
31706         core on Solaris 10 sparc with the Sun C compiler.
31707         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31708         the troublesome expressions at configure-time, not at #if-time.
31709         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
31710         preprocessor.
31711         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
31712         compile-time C checks, done at 'configure'-time.
31713         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
31714         * modules/inttypes (Makefile): Substitute the new symbols that
31715         gl_INTTYPES_H now generates.
31716         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
31717
31718 2007-11-12  Bruno Haible  <bruno@clisp.org>
31719
31720         Tests for Unicode character classification functions.
31721
31722         * modules/unictype/bidicategory-byname-tests: New file.
31723         * modules/unictype/bidicategory-name-tests: New file.
31724         * modules/unictype/bidicategory-of-tests: New file.
31725         * modules/unictype/bidicategory-test-tests: New file.
31726         * modules/unictype/block-list-tests: New file.
31727         * modules/unictype/block-of-tests: New file.
31728         * modules/unictype/block-test-tests: New file.
31729         * modules/unictype/category-C-tests: New file.
31730         * modules/unictype/category-Cc-tests: New file.
31731         * modules/unictype/category-Cf-tests: New file.
31732         * modules/unictype/category-Cn-tests: New file.
31733         * modules/unictype/category-Co-tests: New file.
31734         * modules/unictype/category-Cs-tests: New file.
31735         * modules/unictype/category-L-tests: New file.
31736         * modules/unictype/category-Ll-tests: New file.
31737         * modules/unictype/category-Lm-tests: New file.
31738         * modules/unictype/category-Lo-tests: New file.
31739         * modules/unictype/category-Lt-tests: New file.
31740         * modules/unictype/category-Lu-tests: New file.
31741         * modules/unictype/category-M-tests: New file.
31742         * modules/unictype/category-Mc-tests: New file.
31743         * modules/unictype/category-Me-tests: New file.
31744         * modules/unictype/category-Mn-tests: New file.
31745         * modules/unictype/category-N-tests: New file.
31746         * modules/unictype/category-Nd-tests: New file.
31747         * modules/unictype/category-Nl-tests: New file.
31748         * modules/unictype/category-No-tests: New file.
31749         * modules/unictype/category-P-tests: New file.
31750         * modules/unictype/category-Pc-tests: New file.
31751         * modules/unictype/category-Pd-tests: New file.
31752         * modules/unictype/category-Pe-tests: New file.
31753         * modules/unictype/category-Pf-tests: New file.
31754         * modules/unictype/category-Pi-tests: New file.
31755         * modules/unictype/category-Po-tests: New file.
31756         * modules/unictype/category-Ps-tests: New file.
31757         * modules/unictype/category-S-tests: New file.
31758         * modules/unictype/category-Sc-tests: New file.
31759         * modules/unictype/category-Sk-tests: New file.
31760         * modules/unictype/category-Sm-tests: New file.
31761         * modules/unictype/category-So-tests: New file.
31762         * modules/unictype/category-Z-tests: New file.
31763         * modules/unictype/category-Zl-tests: New file.
31764         * modules/unictype/category-Zp-tests: New file.
31765         * modules/unictype/category-Zs-tests: New file.
31766         * modules/unictype/category-and-not-tests: New file.
31767         * modules/unictype/category-and-tests: New file.
31768         * modules/unictype/category-byname-tests: New file.
31769         * modules/unictype/category-name-tests: New file.
31770         * modules/unictype/category-none-tests: New file.
31771         * modules/unictype/category-of-tests: New file.
31772         * modules/unictype/category-or-tests: New file.
31773         * modules/unictype/category-test-withtable-tests: New file.
31774         * modules/unictype/combining-class-tests: New file.
31775         * modules/unictype/ctype-alnum-tests: New file.
31776         * modules/unictype/ctype-alpha-tests: New file.
31777         * modules/unictype/ctype-blank-tests: New file.
31778         * modules/unictype/ctype-cntrl-tests: New file.
31779         * modules/unictype/ctype-digit-tests: New file.
31780         * modules/unictype/ctype-graph-tests: New file.
31781         * modules/unictype/ctype-lower-tests: New file.
31782         * modules/unictype/ctype-print-tests: New file.
31783         * modules/unictype/ctype-punct-tests: New file.
31784         * modules/unictype/ctype-space-tests: New file.
31785         * modules/unictype/ctype-upper-tests: New file.
31786         * modules/unictype/ctype-xdigit-tests: New file.
31787         * modules/unictype/decimal-digit-tests: New file.
31788         * modules/unictype/digit-tests: New file.
31789         * modules/unictype/mirror-tests: New file.
31790         * modules/unictype/numeric-tests: New file.
31791         * modules/unictype/property-alphabetic-tests: New file.
31792         * modules/unictype/property-ascii-hex-digit-tests: New file.
31793         * modules/unictype/property-bidi-arabic-digit-tests: New file.
31794         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
31795         * modules/unictype/property-bidi-block-separator-tests: New file.
31796         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
31797         * modules/unictype/property-bidi-common-separator-tests: New file.
31798         * modules/unictype/property-bidi-control-tests: New file.
31799         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
31800         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
31801         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
31802         * modules/unictype/property-bidi-european-digit-tests: New file.
31803         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
31804         * modules/unictype/property-bidi-left-to-right-tests: New file.
31805         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
31806         * modules/unictype/property-bidi-other-neutral-tests: New file.
31807         * modules/unictype/property-bidi-pdf-tests: New file.
31808         * modules/unictype/property-bidi-segment-separator-tests: New file.
31809         * modules/unictype/property-bidi-whitespace-tests: New file.
31810         * modules/unictype/property-byname-tests: New file.
31811         * modules/unictype/property-combining-tests: New file.
31812         * modules/unictype/property-composite-tests: New file.
31813         * modules/unictype/property-currency-symbol-tests: New file.
31814         * modules/unictype/property-dash-tests: New file.
31815         * modules/unictype/property-decimal-digit-tests: New file.
31816         * modules/unictype/property-default-ignorable-code-point-tests: New file.
31817         * modules/unictype/property-deprecated-tests: New file.
31818         * modules/unictype/property-diacritic-tests: New file.
31819         * modules/unictype/property-extender-tests: New file.
31820         * modules/unictype/property-format-control-tests: New file.
31821         * modules/unictype/property-grapheme-base-tests: New file.
31822         * modules/unictype/property-grapheme-extend-tests: New file.
31823         * modules/unictype/property-grapheme-link-tests: New file.
31824         * modules/unictype/property-hex-digit-tests: New file.
31825         * modules/unictype/property-hyphen-tests: New file.
31826         * modules/unictype/property-id-continue-tests: New file.
31827         * modules/unictype/property-id-start-tests: New file.
31828         * modules/unictype/property-ideographic-tests: New file.
31829         * modules/unictype/property-ids-binary-operator-tests: New file.
31830         * modules/unictype/property-ids-trinary-operator-tests: New file.
31831         * modules/unictype/property-ignorable-control-tests: New file.
31832         * modules/unictype/property-iso-control-tests: New file.
31833         * modules/unictype/property-join-control-tests: New file.
31834         * modules/unictype/property-left-of-pair-tests: New file.
31835         * modules/unictype/property-line-separator-tests: New file.
31836         * modules/unictype/property-logical-order-exception-tests: New file.
31837         * modules/unictype/property-lowercase-tests: New file.
31838         * modules/unictype/property-math-tests: New file.
31839         * modules/unictype/property-non-break-tests: New file.
31840         * modules/unictype/property-not-a-character-tests: New file.
31841         * modules/unictype/property-numeric-tests: New file.
31842         * modules/unictype/property-other-alphabetic-tests: New file.
31843         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
31844         * modules/unictype/property-other-grapheme-extend-tests: New file.
31845         * modules/unictype/property-other-id-continue-tests: New file.
31846         * modules/unictype/property-other-id-start-tests: New file.
31847         * modules/unictype/property-other-lowercase-tests: New file.
31848         * modules/unictype/property-other-math-tests: New file.
31849         * modules/unictype/property-other-uppercase-tests: New file.
31850         * modules/unictype/property-paired-punctuation-tests: New file.
31851         * modules/unictype/property-paragraph-separator-tests: New file.
31852         * modules/unictype/property-pattern-syntax-tests: New file.
31853         * modules/unictype/property-pattern-white-space-tests: New file.
31854         * modules/unictype/property-private-use-tests: New file.
31855         * modules/unictype/property-punctuation-tests: New file.
31856         * modules/unictype/property-quotation-mark-tests: New file.
31857         * modules/unictype/property-radical-tests: New file.
31858         * modules/unictype/property-sentence-terminal-tests: New file.
31859         * modules/unictype/property-soft-dotted-tests: New file.
31860         * modules/unictype/property-space-tests: New file.
31861         * modules/unictype/property-terminal-punctuation-tests: New file.
31862         * modules/unictype/property-test-tests: New file.
31863         * modules/unictype/property-titlecase-tests: New file.
31864         * modules/unictype/property-unassigned-code-value-tests: New file.
31865         * modules/unictype/property-unified-ideograph-tests: New file.
31866         * modules/unictype/property-uppercase-tests: New file.
31867         * modules/unictype/property-variation-selector-tests: New file.
31868         * modules/unictype/property-white-space-tests: New file.
31869         * modules/unictype/property-xid-continue-tests: New file.
31870         * modules/unictype/property-xid-start-tests: New file.
31871         * modules/unictype/property-zero-width-tests: New file.
31872         * modules/unictype/scripts-tests: New file.
31873         * modules/unictype/syntax-c-ident-tests: New file.
31874         * modules/unictype/syntax-c-whitespace-tests: New file.
31875         * modules/unictype/syntax-java-ident-tests: New file.
31876         * modules/unictype/syntax-java-whitespace-tests: New file.
31877         * tests/unictype/test-bidi_byname.c: New file.
31878         * tests/unictype/test-bidi_name.c: New file.
31879         * tests/unictype/test-bidi_of.c: New file.
31880         * tests/unictype/test-bidi_test.c: New file.
31881         * tests/unictype/test-block_list.c: New file.
31882         * tests/unictype/test-block_of.c: New file.
31883         * tests/unictype/test-block_test.c: New file.
31884         * tests/unictype/test-categ_and.c: New file.
31885         * tests/unictype/test-categ_and_not.c: New file.
31886         * tests/unictype/test-categ_byname.c: New file.
31887         * tests/unictype/test-categ_name.c: New file.
31888         * tests/unictype/test-categ_none.c: New file.
31889         * tests/unictype/test-categ_of.c: New file.
31890         * tests/unictype/test-categ_or.c: New file.
31891         * tests/unictype/test-categ_test_withtable.c: New file.
31892         * tests/unictype/test-combining.c: New file.
31893         * tests/unictype/test-decdigit.c: New file.
31894         * tests/unictype/test-digit.c: New file.
31895         * tests/unictype/test-mirror.c: New file.
31896         * tests/unictype/test-numeric.c: New file.
31897         * tests/unictype/test-pr_byname.c: New file.
31898         * tests/unictype/test-pr_test.c: New file.
31899         * tests/unictype/test-predicate-part1.h: New file.
31900         * tests/unictype/test-predicate-part2.h: New file.
31901         * tests/unictype/test-scripts.c: New file.
31902         * tests/unictype/test-sy_c_ident.c: New file.
31903         * tests/unictype/test-sy_java_ident.c: New file.
31904
31905         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
31906         for Unicode 5.0.0.
31907         * tests/unictype/test-categ_Cc.c: Likewise.
31908         * tests/unictype/test-categ_Cf.c: Likewise.
31909         * tests/unictype/test-categ_Cn.c: Likewise.
31910         * tests/unictype/test-categ_Co.c: Likewise.
31911         * tests/unictype/test-categ_Cs.c: Likewise.
31912         * tests/unictype/test-categ_L.c: Likewise.
31913         * tests/unictype/test-categ_Ll.c: Likewise.
31914         * tests/unictype/test-categ_Lm.c: Likewise.
31915         * tests/unictype/test-categ_Lo.c: Likewise.
31916         * tests/unictype/test-categ_Lt.c: Likewise.
31917         * tests/unictype/test-categ_Lu.c: Likewise.
31918         * tests/unictype/test-categ_M.c: Likewise.
31919         * tests/unictype/test-categ_Mc.c: Likewise.
31920         * tests/unictype/test-categ_Me.c: Likewise.
31921         * tests/unictype/test-categ_Mn.c: Likewise.
31922         * tests/unictype/test-categ_N.c: Likewise.
31923         * tests/unictype/test-categ_Nd.c: Likewise.
31924         * tests/unictype/test-categ_Nl.c: Likewise.
31925         * tests/unictype/test-categ_No.c: Likewise.
31926         * tests/unictype/test-categ_P.c: Likewise.
31927         * tests/unictype/test-categ_Pc.c: Likewise.
31928         * tests/unictype/test-categ_Pd.c: Likewise.
31929         * tests/unictype/test-categ_Pe.c: Likewise.
31930         * tests/unictype/test-categ_Pf.c: Likewise.
31931         * tests/unictype/test-categ_Pi.c: Likewise.
31932         * tests/unictype/test-categ_Po.c: Likewise.
31933         * tests/unictype/test-categ_Ps.c: Likewise.
31934         * tests/unictype/test-categ_S.c: Likewise.
31935         * tests/unictype/test-categ_Sc.c: Likewise.
31936         * tests/unictype/test-categ_Sk.c: Likewise.
31937         * tests/unictype/test-categ_Sm.c: Likewise.
31938         * tests/unictype/test-categ_So.c: Likewise.
31939         * tests/unictype/test-categ_Z.c: Likewise.
31940         * tests/unictype/test-categ_Zl.c: Likewise.
31941         * tests/unictype/test-categ_Zp.c: Likewise.
31942         * tests/unictype/test-categ_Zs.c: Likewise.
31943         * tests/unictype/test-ctype_alnum.c: Likewise.
31944         * tests/unictype/test-ctype_alpha.c: Likewise.
31945         * tests/unictype/test-ctype_blank.c: Likewise.
31946         * tests/unictype/test-ctype_cntrl.c: Likewise.
31947         * tests/unictype/test-ctype_digit.c: Likewise.
31948         * tests/unictype/test-ctype_graph.c: Likewise.
31949         * tests/unictype/test-ctype_lower.c: Likewise.
31950         * tests/unictype/test-ctype_print.c: Likewise.
31951         * tests/unictype/test-ctype_punct.c: Likewise.
31952         * tests/unictype/test-ctype_space.c: Likewise.
31953         * tests/unictype/test-ctype_upper.c: Likewise.
31954         * tests/unictype/test-ctype_xdigit.c: Likewise.
31955         * tests/unictype/test-decdigit.h: Likewise.
31956         * tests/unictype/test-digit.h: Likewise.
31957         * tests/unictype/test-numeric.h: Likewise.
31958         * tests/unictype/test-pr_alphabetic.c: Likewise.
31959         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
31960         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
31961         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
31962         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
31963         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
31964         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
31965         * tests/unictype/test-pr_bidi_control.c: Likewise.
31966         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
31967         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
31968         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
31969         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
31970         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
31971         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
31972         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
31973         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
31974         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
31975         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
31976         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
31977         * tests/unictype/test-pr_combining.c: Likewise.
31978         * tests/unictype/test-pr_composite.c: Likewise.
31979         * tests/unictype/test-pr_currency_symbol.c: Likewise.
31980         * tests/unictype/test-pr_dash.c: Likewise.
31981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
31982         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
31983         * tests/unictype/test-pr_deprecated.c: Likewise.
31984         * tests/unictype/test-pr_diacritic.c: Likewise.
31985         * tests/unictype/test-pr_extender.c: Likewise.
31986         * tests/unictype/test-pr_format_control.c: Likewise.
31987         * tests/unictype/test-pr_grapheme_base.c: Likewise.
31988         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
31989         * tests/unictype/test-pr_grapheme_link.c: Likewise.
31990         * tests/unictype/test-pr_hex_digit.c: Likewise.
31991         * tests/unictype/test-pr_hyphen.c: Likewise.
31992         * tests/unictype/test-pr_id_continue.c: Likewise.
31993         * tests/unictype/test-pr_id_start.c: Likewise.
31994         * tests/unictype/test-pr_ideographic.c: Likewise.
31995         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
31996         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
31997         * tests/unictype/test-pr_ignorable_control.c: Likewise.
31998         * tests/unictype/test-pr_iso_control.c: Likewise.
31999         * tests/unictype/test-pr_join_control.c: Likewise.
32000         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32001         * tests/unictype/test-pr_line_separator.c: Likewise.
32002         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32003         * tests/unictype/test-pr_lowercase.c: Likewise.
32004         * tests/unictype/test-pr_math.c: Likewise.
32005         * tests/unictype/test-pr_non_break.c: Likewise.
32006         * tests/unictype/test-pr_not_a_character.c: Likewise.
32007         * tests/unictype/test-pr_numeric.c: Likewise.
32008         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32009         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32010         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32011         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32012         * tests/unictype/test-pr_other_id_start.c: Likewise.
32013         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32014         * tests/unictype/test-pr_other_math.c: Likewise.
32015         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32016         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32017         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32018         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32019         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32020         * tests/unictype/test-pr_private_use.c: Likewise.
32021         * tests/unictype/test-pr_punctuation.c: Likewise.
32022         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32023         * tests/unictype/test-pr_radical.c: Likewise.
32024         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32025         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32026         * tests/unictype/test-pr_space.c: Likewise.
32027         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32028         * tests/unictype/test-pr_titlecase.c: Likewise.
32029         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32030         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32031         * tests/unictype/test-pr_uppercase.c: Likewise.
32032         * tests/unictype/test-pr_variation_selector.c: Likewise.
32033         * tests/unictype/test-pr_white_space.c: Likewise.
32034         * tests/unictype/test-pr_xid_continue.c: Likewise.
32035         * tests/unictype/test-pr_xid_start.c: Likewise.
32036         * tests/unictype/test-pr_zero_width.c: Likewise.
32037         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32038         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32039
32040 2007-11-12  Bruno Haible  <bruno@clisp.org>
32041
32042         Unicode character classification functions.
32043         * lib/unictype.h: New file.
32044         * modules/unictype/base: New file.
32045         * modules/unictype/category-L: New file.
32046         * modules/unictype/category-Lu: New file.
32047         * modules/unictype/category-Ll: New file.
32048         * modules/unictype/category-Lt: New file.
32049         * modules/unictype/category-Lm: New file.
32050         * modules/unictype/category-Lo: New file.
32051         * modules/unictype/category-M: New file.
32052         * modules/unictype/category-Mn: New file.
32053         * modules/unictype/category-Mc: New file.
32054         * modules/unictype/category-Me: New file.
32055         * modules/unictype/category-N: New file.
32056         * modules/unictype/category-Nd: New file.
32057         * modules/unictype/category-Nl: New file.
32058         * modules/unictype/category-No: New file.
32059         * modules/unictype/category-P: New file.
32060         * modules/unictype/category-Pc: New file.
32061         * modules/unictype/category-Pd: New file.
32062         * modules/unictype/category-Ps: New file.
32063         * modules/unictype/category-Pe: New file.
32064         * modules/unictype/category-Pi: New file.
32065         * modules/unictype/category-Pf: New file.
32066         * modules/unictype/category-Po: New file.
32067         * modules/unictype/category-S: New file.
32068         * modules/unictype/category-Sm: New file.
32069         * modules/unictype/category-Sc: New file.
32070         * modules/unictype/category-Sk: New file.
32071         * modules/unictype/category-So: New file.
32072         * modules/unictype/category-Z: New file.
32073         * modules/unictype/category-Zs: New file.
32074         * modules/unictype/category-Zl: New file.
32075         * modules/unictype/category-Zp: New file.
32076         * modules/unictype/category-C: New file.
32077         * modules/unictype/category-Cc: New file.
32078         * modules/unictype/category-Cf: New file.
32079         * modules/unictype/category-Cs: New file.
32080         * modules/unictype/category-Co: New file.
32081         * modules/unictype/category-Cn: New file.
32082         * modules/unictype/category-or: New file.
32083         * modules/unictype/category-of: New file.
32084         * modules/unictype/category-test: New file.
32085         * modules/unictype/category-test-withtable: New file.
32086         * modules/unictype/category-byname: New file.
32087         * modules/unictype/category-none: New file.
32088         * modules/unictype/category-and: New file.
32089         * modules/unictype/category-and-not: New file.
32090         * modules/unictype/category-name: New file.
32091         * modules/unictype/combining-class: New file.
32092         * modules/unictype/category-all: New file.
32093         * modules/unictype/bidicategory-all: New file.
32094         * modules/unictype/bidicategory-byname: New file.
32095         * modules/unictype/bidicategory-name: New file.
32096         * modules/unictype/bidicategory-of: New file.
32097         * modules/unictype/bidicategory-test: New file.
32098         * modules/unictype/decimal-digit: New file.
32099         * modules/unictype/digit: New file.
32100         * modules/unictype/numeric: New file.
32101         * modules/unictype/mirror: New file.
32102         * modules/unictype/property-white-space: New file.
32103         * modules/unictype/property-alphabetic: New file.
32104         * modules/unictype/property-other-alphabetic: New file.
32105         * modules/unictype/property-not-a-character: New file.
32106         * modules/unictype/property-default-ignorable-code-point: New file.
32107         * modules/unictype/property-other-default-ignorable-code-point: New
32108         file.
32109         * modules/unictype/property-deprecated: New file.
32110         * modules/unictype/property-logical-order-exception: New file.
32111         * modules/unictype/property-variation-selector: New file.
32112         * modules/unictype/property-private-use: New file.
32113         * modules/unictype/property-unassigned-code-value: New file.
32114         * modules/unictype/property-uppercase: New file.
32115         * modules/unictype/property-other-uppercase: New file.
32116         * modules/unictype/property-lowercase: New file.
32117         * modules/unictype/property-other-lowercase: New file.
32118         * modules/unictype/property-titlecase: New file.
32119         * modules/unictype/property-soft-dotted: New file.
32120         * modules/unictype/property-id-start: New file.
32121         * modules/unictype/property-other-id-start: New file.
32122         * modules/unictype/property-id-continue: New file.
32123         * modules/unictype/property-other-id-continue: New file.
32124         * modules/unictype/property-xid-start: New file.
32125         * modules/unictype/property-xid-continue: New file.
32126         * modules/unictype/property-pattern-white-space: New file.
32127         * modules/unictype/property-pattern-syntax: New file.
32128         * modules/unictype/property-join-control: New file.
32129         * modules/unictype/property-grapheme-base: New file.
32130         * modules/unictype/property-grapheme-extend: New file.
32131         * modules/unictype/property-other-grapheme-extend: New file.
32132         * modules/unictype/property-grapheme-link: New file.
32133         * modules/unictype/property-bidi-control: New file.
32134         * modules/unictype/property-bidi-left-to-right: New file.
32135         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32136         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32137         * modules/unictype/property-bidi-european-digit: New file.
32138         * modules/unictype/property-bidi-eur-num-separator: New file.
32139         * modules/unictype/property-bidi-eur-num-terminator: New file.
32140         * modules/unictype/property-bidi-arabic-digit: New file.
32141         * modules/unictype/property-bidi-common-separator: New file.
32142         * modules/unictype/property-bidi-block-separator: New file.
32143         * modules/unictype/property-bidi-segment-separator: New file.
32144         * modules/unictype/property-bidi-whitespace: New file.
32145         * modules/unictype/property-bidi-non-spacing-mark: New file.
32146         * modules/unictype/property-bidi-boundary-neutral: New file.
32147         * modules/unictype/property-bidi-pdf: New file.
32148         * modules/unictype/property-bidi-embedding-or-override: New file.
32149         * modules/unictype/property-bidi-other-neutral: New file.
32150         * modules/unictype/property-hex-digit: New file.
32151         * modules/unictype/property-ascii-hex-digit: New file.
32152         * modules/unictype/property-ideographic: New file.
32153         * modules/unictype/property-unified-ideograph: New file.
32154         * modules/unictype/property-radical: New file.
32155         * modules/unictype/property-ids-binary-operator: New file.
32156         * modules/unictype/property-ids-trinary-operator: New file.
32157         * modules/unictype/property-zero-width: New file.
32158         * modules/unictype/property-space: New file.
32159         * modules/unictype/property-non-break: New file.
32160         * modules/unictype/property-iso-control: New file.
32161         * modules/unictype/property-format-control: New file.
32162         * modules/unictype/property-dash: New file.
32163         * modules/unictype/property-hyphen: New file.
32164         * modules/unictype/property-punctuation: New file.
32165         * modules/unictype/property-line-separator: New file.
32166         * modules/unictype/property-paragraph-separator: New file.
32167         * modules/unictype/property-quotation-mark: New file.
32168         * modules/unictype/property-sentence-terminal: New file.
32169         * modules/unictype/property-terminal-punctuation: New file.
32170         * modules/unictype/property-currency-symbol: New file.
32171         * modules/unictype/property-math: New file.
32172         * modules/unictype/property-other-math: New file.
32173         * modules/unictype/property-paired-punctuation: New file.
32174         * modules/unictype/property-left-of-pair: New file.
32175         * modules/unictype/property-combining: New file.
32176         * modules/unictype/property-composite: New file.
32177         * modules/unictype/property-decimal-digit: New file.
32178         * modules/unictype/property-numeric: New file.
32179         * modules/unictype/property-diacritic: New file.
32180         * modules/unictype/property-extender: New file.
32181         * modules/unictype/property-ignorable-control: New file.
32182         * modules/unictype/property-test: New file.
32183         * modules/unictype/property-byname: New file.
32184         * modules/unictype/property-all: New file.
32185         * modules/unictype/scripts: New file.
32186         * modules/unictype/scripts-all: New file.
32187         * modules/unictype/block-of: New file.
32188         * modules/unictype/block-test: New file.
32189         * modules/unictype/block-list: New file.
32190         * modules/unictype/block-all: New file.
32191         * modules/unictype/syntax-c-whitespace: New file.
32192         * modules/unictype/syntax-java-whitespace: New file.
32193         * modules/unictype/syntax-c-ident: New file.
32194         * modules/unictype/syntax-java-ident: New file.
32195         * modules/unictype/ctype-alnum: New file.
32196         * modules/unictype/ctype-alpha: New file.
32197         * modules/unictype/ctype-cntrl: New file.
32198         * modules/unictype/ctype-digit: New file.
32199         * modules/unictype/ctype-graph: New file.
32200         * modules/unictype/ctype-lower: New file.
32201         * modules/unictype/ctype-print: New file.
32202         * modules/unictype/ctype-punct: New file.
32203         * modules/unictype/ctype-space: New file.
32204         * modules/unictype/ctype-upper: New file.
32205         * modules/unictype/ctype-xdigit: New file.
32206         * modules/unictype/ctype-blank: New file.
32207         * lib/unictype/bidi_byname.c: New file.
32208         * lib/unictype/bidi_name.c: New file.
32209         * lib/unictype/bidi_of.c: New file.
32210         * lib/unictype/bidi_test.c: New file.
32211         * lib/unictype/bitmap.h: New file.
32212         * lib/unictype/block_test.c: New file.
32213         * lib/unictype/blocks.c: New file.
32214         * lib/unictype/categ_C.c: New file.
32215         * lib/unictype/categ_Cc.c: New file.
32216         * lib/unictype/categ_Cf.c: New file.
32217         * lib/unictype/categ_Cn.c: New file.
32218         * lib/unictype/categ_Co.c: New file.
32219         * lib/unictype/categ_Cs.c: New file.
32220         * lib/unictype/categ_L.c: New file.
32221         * lib/unictype/categ_Ll.c: New file.
32222         * lib/unictype/categ_Lm.c: New file.
32223         * lib/unictype/categ_Lo.c: New file.
32224         * lib/unictype/categ_Lt.c: New file.
32225         * lib/unictype/categ_Lu.c: New file.
32226         * lib/unictype/categ_M.c: New file.
32227         * lib/unictype/categ_Mc.c: New file.
32228         * lib/unictype/categ_Me.c: New file.
32229         * lib/unictype/categ_Mn.c: New file.
32230         * lib/unictype/categ_N.c: New file.
32231         * lib/unictype/categ_Nd.c: New file.
32232         * lib/unictype/categ_Nl.c: New file.
32233         * lib/unictype/categ_No.c: New file.
32234         * lib/unictype/categ_P.c: New file.
32235         * lib/unictype/categ_Pc.c: New file.
32236         * lib/unictype/categ_Pd.c: New file.
32237         * lib/unictype/categ_Pe.c: New file.
32238         * lib/unictype/categ_Pf.c: New file.
32239         * lib/unictype/categ_Pi.c: New file.
32240         * lib/unictype/categ_Po.c: New file.
32241         * lib/unictype/categ_Ps.c: New file.
32242         * lib/unictype/categ_S.c: New file.
32243         * lib/unictype/categ_Sc.c: New file.
32244         * lib/unictype/categ_Sk.c: New file.
32245         * lib/unictype/categ_Sm.c: New file.
32246         * lib/unictype/categ_So.c: New file.
32247         * lib/unictype/categ_Z.c: New file.
32248         * lib/unictype/categ_Zl.c: New file.
32249         * lib/unictype/categ_Zp.c: New file.
32250         * lib/unictype/categ_Zs.c: New file.
32251         * lib/unictype/categ_and.c: New file.
32252         * lib/unictype/categ_and_not.c: New file.
32253         * lib/unictype/categ_byname.c: New file.
32254         * lib/unictype/categ_name.c: New file.
32255         * lib/unictype/categ_none.c: New file.
32256         * lib/unictype/categ_of.c: New file.
32257         * lib/unictype/categ_or.c: New file.
32258         * lib/unictype/categ_test.c: New file.
32259         * lib/unictype/combining.c: New file.
32260         * lib/unictype/ctype_alnum.c: New file.
32261         * lib/unictype/ctype_alpha.c: New file.
32262         * lib/unictype/ctype_blank.c: New file.
32263         * lib/unictype/ctype_cntrl.c: New file.
32264         * lib/unictype/ctype_digit.c: New file.
32265         * lib/unictype/ctype_graph.c: New file.
32266         * lib/unictype/ctype_lower.c: New file.
32267         * lib/unictype/ctype_print.c: New file.
32268         * lib/unictype/ctype_punct.c: New file.
32269         * lib/unictype/ctype_space.c: New file.
32270         * lib/unictype/ctype_upper.c: New file.
32271         * lib/unictype/ctype_xdigit.c: New file.
32272         * lib/unictype/decdigit.c: New file.
32273         * lib/unictype/digit.c: New file.
32274         * lib/unictype/identsyntaxmap.h: New file.
32275         * lib/unictype/mirror.c: New file.
32276         * lib/unictype/numeric.c: New file.
32277         * lib/unictype/pr_alphabetic.c: New file.
32278         * lib/unictype/pr_ascii_hex_digit.c: New file.
32279         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32280         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32281         * lib/unictype/pr_bidi_block_separator.c: New file.
32282         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32283         * lib/unictype/pr_bidi_common_separator.c: New file.
32284         * lib/unictype/pr_bidi_control.c: New file.
32285         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32286         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32287         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32288         * lib/unictype/pr_bidi_european_digit.c: New file.
32289         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32290         * lib/unictype/pr_bidi_left_to_right.c: New file.
32291         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32292         * lib/unictype/pr_bidi_other_neutral.c: New file.
32293         * lib/unictype/pr_bidi_pdf.c: New file.
32294         * lib/unictype/pr_bidi_segment_separator.c: New file.
32295         * lib/unictype/pr_bidi_whitespace.c: New file.
32296         * lib/unictype/pr_byname.c: New file.
32297         * lib/unictype/pr_byname.gperf: New file.
32298         * lib/unictype/pr_combining.c: New file.
32299         * lib/unictype/pr_composite.c: New file.
32300         * lib/unictype/pr_currency_symbol.c: New file.
32301         * lib/unictype/pr_dash.c: New file.
32302         * lib/unictype/pr_decimal_digit.c: New file.
32303         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32304         * lib/unictype/pr_deprecated.c: New file.
32305         * lib/unictype/pr_diacritic.c: New file.
32306         * lib/unictype/pr_extender.c: New file.
32307         * lib/unictype/pr_format_control.c: New file.
32308         * lib/unictype/pr_grapheme_base.c: New file.
32309         * lib/unictype/pr_grapheme_extend.c: New file.
32310         * lib/unictype/pr_grapheme_link.c: New file.
32311         * lib/unictype/pr_hex_digit.c: New file.
32312         * lib/unictype/pr_hyphen.c: New file.
32313         * lib/unictype/pr_id_continue.c: New file.
32314         * lib/unictype/pr_id_start.c: New file.
32315         * lib/unictype/pr_ideographic.c: New file.
32316         * lib/unictype/pr_ids_binary_operator.c: New file.
32317         * lib/unictype/pr_ids_trinary_operator.c: New file.
32318         * lib/unictype/pr_ignorable_control.c: New file.
32319         * lib/unictype/pr_iso_control.c: New file.
32320         * lib/unictype/pr_join_control.c: New file.
32321         * lib/unictype/pr_left_of_pair.c: New file.
32322         * lib/unictype/pr_line_separator.c: New file.
32323         * lib/unictype/pr_logical_order_exception.c: New file.
32324         * lib/unictype/pr_lowercase.c: New file.
32325         * lib/unictype/pr_math.c: New file.
32326         * lib/unictype/pr_non_break.c: New file.
32327         * lib/unictype/pr_not_a_character.c: New file.
32328         * lib/unictype/pr_numeric.c: New file.
32329         * lib/unictype/pr_other_alphabetic.c: New file.
32330         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32331         * lib/unictype/pr_other_grapheme_extend.c: New file.
32332         * lib/unictype/pr_other_id_continue.c: New file.
32333         * lib/unictype/pr_other_id_start.c: New file.
32334         * lib/unictype/pr_other_lowercase.c: New file.
32335         * lib/unictype/pr_other_math.c: New file.
32336         * lib/unictype/pr_other_uppercase.c: New file.
32337         * lib/unictype/pr_paired_punctuation.c: New file.
32338         * lib/unictype/pr_paragraph_separator.c: New file.
32339         * lib/unictype/pr_pattern_syntax.c: New file.
32340         * lib/unictype/pr_pattern_white_space.c: New file.
32341         * lib/unictype/pr_private_use.c: New file.
32342         * lib/unictype/pr_punctuation.c: New file.
32343         * lib/unictype/pr_quotation_mark.c: New file.
32344         * lib/unictype/pr_radical.c: New file.
32345         * lib/unictype/pr_sentence_terminal.c: New file.
32346         * lib/unictype/pr_soft_dotted.c: New file.
32347         * lib/unictype/pr_space.c: New file.
32348         * lib/unictype/pr_terminal_punctuation.c: New file.
32349         * lib/unictype/pr_test.c: New file.
32350         * lib/unictype/pr_titlecase.c: New file.
32351         * lib/unictype/pr_unassigned_code_value.c: New file.
32352         * lib/unictype/pr_unified_ideograph.c: New file.
32353         * lib/unictype/pr_uppercase.c: New file.
32354         * lib/unictype/pr_variation_selector.c: New file.
32355         * lib/unictype/pr_white_space.c: New file.
32356         * lib/unictype/pr_xid_continue.c: New file.
32357         * lib/unictype/pr_xid_start.c: New file.
32358         * lib/unictype/pr_zero_width.c: New file.
32359         * lib/unictype/scripts.c: New file.
32360         * lib/unictype/sy_c_ident.c: New file.
32361         * lib/unictype/sy_c_whitespace.c: New file.
32362         * lib/unictype/sy_java_ident.c: New file.
32363         * lib/unictype/sy_java_whitespace.c: New file.
32364
32365         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32366         Unicode 5.0.0.
32367         * lib/unictype/blocks.h: Likewise.
32368         * lib/unictype/categ_C.h: Likewise.
32369         * lib/unictype/categ_Cc.h: Likewise.
32370         * lib/unictype/categ_Cf.h: Likewise.
32371         * lib/unictype/categ_Cn.h: Likewise.
32372         * lib/unictype/categ_Co.h: Likewise.
32373         * lib/unictype/categ_Cs.h: Likewise.
32374         * lib/unictype/categ_L.h: Likewise.
32375         * lib/unictype/categ_Ll.h: Likewise.
32376         * lib/unictype/categ_Lm.h: Likewise.
32377         * lib/unictype/categ_Lo.h: Likewise.
32378         * lib/unictype/categ_Lt.h: Likewise.
32379         * lib/unictype/categ_Lu.h: Likewise.
32380         * lib/unictype/categ_M.h: Likewise.
32381         * lib/unictype/categ_Mc.h: Likewise.
32382         * lib/unictype/categ_Me.h: Likewise.
32383         * lib/unictype/categ_Mn.h: Likewise.
32384         * lib/unictype/categ_N.h: Likewise.
32385         * lib/unictype/categ_Nd.h: Likewise.
32386         * lib/unictype/categ_Nl.h: Likewise.
32387         * lib/unictype/categ_No.h: Likewise.
32388         * lib/unictype/categ_P.h: Likewise.
32389         * lib/unictype/categ_Pc.h: Likewise.
32390         * lib/unictype/categ_Pd.h: Likewise.
32391         * lib/unictype/categ_Pe.h: Likewise.
32392         * lib/unictype/categ_Pf.h: Likewise.
32393         * lib/unictype/categ_Pi.h: Likewise.
32394         * lib/unictype/categ_Po.h: Likewise.
32395         * lib/unictype/categ_Ps.h: Likewise.
32396         * lib/unictype/categ_S.h: Likewise.
32397         * lib/unictype/categ_Sc.h: Likewise.
32398         * lib/unictype/categ_Sk.h: Likewise.
32399         * lib/unictype/categ_Sm.h: Likewise.
32400         * lib/unictype/categ_So.h: Likewise.
32401         * lib/unictype/categ_Z.h: Likewise.
32402         * lib/unictype/categ_Zl.h: Likewise.
32403         * lib/unictype/categ_Zp.h: Likewise.
32404         * lib/unictype/categ_Zs.h: Likewise.
32405         * lib/unictype/categ_of.h: Likewise.
32406         * lib/unictype/combining.h: Likewise.
32407         * lib/unictype/ctype_alnum.h: Likewise.
32408         * lib/unictype/ctype_alpha.h: Likewise.
32409         * lib/unictype/ctype_blank.h: Likewise.
32410         * lib/unictype/ctype_cntrl.h: Likewise.
32411         * lib/unictype/ctype_digit.h: Likewise.
32412         * lib/unictype/ctype_graph.h: Likewise.
32413         * lib/unictype/ctype_lower.h: Likewise.
32414         * lib/unictype/ctype_print.h: Likewise.
32415         * lib/unictype/ctype_punct.h: Likewise.
32416         * lib/unictype/ctype_space.h: Likewise.
32417         * lib/unictype/ctype_upper.h: Likewise.
32418         * lib/unictype/ctype_xdigit.h: Likewise.
32419         * lib/unictype/decdigit.h: Likewise.
32420         * lib/unictype/digit.h: Likewise.
32421         * lib/unictype/mirror.h: Likewise.
32422         * lib/unictype/numeric.h: Likewise.
32423         * lib/unictype/pr_alphabetic.h: Likewise.
32424         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32425         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32426         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32427         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32428         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32429         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32430         * lib/unictype/pr_bidi_control.h: Likewise.
32431         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32432         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32433         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32434         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32435         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32436         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32437         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32438         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32439         * lib/unictype/pr_bidi_pdf.h: Likewise.
32440         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32441         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32442         * lib/unictype/pr_combining.h: Likewise.
32443         * lib/unictype/pr_composite.h: Likewise.
32444         * lib/unictype/pr_currency_symbol.h: Likewise.
32445         * lib/unictype/pr_dash.h: Likewise.
32446         * lib/unictype/pr_decimal_digit.h: Likewise.
32447         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32448         * lib/unictype/pr_deprecated.h: Likewise.
32449         * lib/unictype/pr_diacritic.h: Likewise.
32450         * lib/unictype/pr_extender.h: Likewise.
32451         * lib/unictype/pr_format_control.h: Likewise.
32452         * lib/unictype/pr_grapheme_base.h: Likewise.
32453         * lib/unictype/pr_grapheme_extend.h: Likewise.
32454         * lib/unictype/pr_grapheme_link.h: Likewise.
32455         * lib/unictype/pr_hex_digit.h: Likewise.
32456         * lib/unictype/pr_hyphen.h: Likewise.
32457         * lib/unictype/pr_id_continue.h: Likewise.
32458         * lib/unictype/pr_id_start.h: Likewise.
32459         * lib/unictype/pr_ideographic.h: Likewise.
32460         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32461         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32462         * lib/unictype/pr_ignorable_control.h: Likewise.
32463         * lib/unictype/pr_iso_control.h: Likewise.
32464         * lib/unictype/pr_join_control.h: Likewise.
32465         * lib/unictype/pr_left_of_pair.h: Likewise.
32466         * lib/unictype/pr_line_separator.h: Likewise.
32467         * lib/unictype/pr_logical_order_exception.h: Likewise.
32468         * lib/unictype/pr_lowercase.h: Likewise.
32469         * lib/unictype/pr_math.h: Likewise.
32470         * lib/unictype/pr_non_break.h: Likewise.
32471         * lib/unictype/pr_not_a_character.h: Likewise.
32472         * lib/unictype/pr_numeric.h: Likewise.
32473         * lib/unictype/pr_other_alphabetic.h: Likewise.
32474         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32475         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32476         * lib/unictype/pr_other_id_continue.h: Likewise.
32477         * lib/unictype/pr_other_id_start.h: Likewise.
32478         * lib/unictype/pr_other_lowercase.h: Likewise.
32479         * lib/unictype/pr_other_math.h: Likewise.
32480         * lib/unictype/pr_other_uppercase.h: Likewise.
32481         * lib/unictype/pr_paired_punctuation.h: Likewise.
32482         * lib/unictype/pr_paragraph_separator.h: Likewise.
32483         * lib/unictype/pr_pattern_syntax.h: Likewise.
32484         * lib/unictype/pr_pattern_white_space.h: Likewise.
32485         * lib/unictype/pr_private_use.h: Likewise.
32486         * lib/unictype/pr_punctuation.h: Likewise.
32487         * lib/unictype/pr_quotation_mark.h: Likewise.
32488         * lib/unictype/pr_radical.h: Likewise.
32489         * lib/unictype/pr_sentence_terminal.h: Likewise.
32490         * lib/unictype/pr_soft_dotted.h: Likewise.
32491         * lib/unictype/pr_space.h: Likewise.
32492         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32493         * lib/unictype/pr_titlecase.h: Likewise.
32494         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32495         * lib/unictype/pr_unified_ideograph.h: Likewise.
32496         * lib/unictype/pr_uppercase.h: Likewise.
32497         * lib/unictype/pr_variation_selector.h: Likewise.
32498         * lib/unictype/pr_white_space.h: Likewise.
32499         * lib/unictype/pr_xid_continue.h: Likewise.
32500         * lib/unictype/pr_xid_start.h: Likewise.
32501         * lib/unictype/pr_zero_width.h: Likewise.
32502         * lib/unictype/scripts.h: Likewise.
32503         * lib/unictype/scripts_byname.gperf: Likewise.
32504         * lib/unictype/sy_c_ident.h: Likewise.
32505         * lib/unictype/sy_c_whitespace.h: Likewise.
32506         * lib/unictype/sy_java_ident.h: Likewise.
32507         * lib/unictype/sy_java_whitespace.h: Likewise.
32508
32509         * lib/unictype/Makefile: New file.
32510         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32511         glibc.
32512         * lib/unictype/3level.h: New file, copied from glibc.
32513         * lib/unictype/3levelbit.h: New file.
32514
32515 2007-11-11  Bruno Haible  <bruno@clisp.org>
32516
32517         * modules/gperf: New file.
32518         * modules/iconv_open (Depends-on): Add it.
32519         (Makefile.am): Remove the GPERF definition.
32520
32521 2007-11-11  Bruno Haible  <bruno@clisp.org>
32522
32523         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32524         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32525
32526 2007-11-11  Bruno Haible  <bruno@clisp.org>
32527
32528         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32529         (usage): Remove function.
32530
32531 2007-11-11  Bruno Haible  <bruno@clisp.org>
32532
32533         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32534         gl_FUNC_CEILF_LIBS.
32535         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32536         gl_FUNC_CEIL_LIBS.
32537         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32538         gl_FUNC_CEILL_LIBS.
32539         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32540         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32541         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32542
32543 2007-11-11  Bruno Haible  <bruno@clisp.org>
32544
32545         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32546         roundf were declared but do not exist on functions.
32547         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32548         roundl were declared but do not exist on functions.
32549         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32550         HAVE_FLOORL_AND_CEILL, respectively.
32551         Needed for Sun C on Solaris 10.
32552
32553 2007-11-11  Bruno Haible  <bruno@clisp.org>
32554
32555         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32556         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32557         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32558         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32559         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32560         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32561         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32562         HAVE_DECL_ROUNDF.
32563         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32564         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32566         of HAVE_DECL_ROUND*.
32567         * modules/math (Makefile.am): Update.
32568
32569 2007-11-10  Bruno Haible  <bruno@clisp.org>
32570
32571         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32572         ptrdiff_t as m4/intl.m4.
32573
32574 2007-11-10  Jim Meyering  <meyering@redhat.com>
32575
32576         Avoid link failure for the argmatch test.
32577         * tests/test-argmatch.c (usage): Define function to avoid a link
32578         failure: argmatch_die requires a usage function.
32579
32580 2007-11-09  Bruno Haible  <bruno@clisp.org>
32581
32582         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32583         * doc/functions/vsnprintf.texi: Likewise.
32584         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32585         with a size argument < 2.
32586
32587 2007-11-09  Bruno Haible  <bruno@clisp.org>
32588
32589         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32590         buffer. Fixes an inefficiency introduced on 2007-11-03.
32591
32592 2007-11-09  Bruno Haible  <bruno@clisp.org>
32593
32594         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32595         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32596
32597 2007-11-08  Jim Meyering  <meyering@redhat.com>
32598
32599         Change cache variable name prefix "jm_" to "gl_" everywhere.
32600         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32601         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32602         * m4/uptime.m4: s/gl_/jm_/
32603
32604 2007-11-07  Bruno Haible  <bruno@clisp.org>
32605
32606         Update to GNU gettext 0.17.
32607         * m4/intl.m4: Update to GNU gettext 0.17.
32608         * m4/po.m4: Likewise.
32609         * modules/gettext (Files): Remove m4/ulonglong.m4.
32610         (configure.ac): Require gettext infrastructure from version 0.17.
32611
32612 2007-11-06  Bruno Haible  <bruno@clisp.org>
32613
32614         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
32615         symbolic values are not defined in a public header.
32616         * lib/freadable.c (freadable) [QNX]: Likewise.
32617         * lib/freadahead.c (freadahead) [QNX]: Likewise.
32618         * lib/freading.c (freading) [QNX]: Likewise.
32619         * lib/fseterr.c (fseterr) [QNX]: Likewise.
32620         * lib/fwritable.c (fwritable) [QNX]: Likewise.
32621         * lib/fwriting.c (fwriting) [QNX]: Likewise.
32622         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
32623         Reported by Alain Magloire.
32624
32625         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
32626
32627 2007-11-05  Bruno Haible  <bruno@clisp.org>
32628
32629         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
32630         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
32631         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
32632         Reported by Eric Blake.
32633
32634 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32635             Bruno Haible  <bruno@clisp.org>
32636
32637         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
32638         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
32639         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
32640         (malloc): Undefine also before including <stdlib.h>.
32641         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32642         Needed on OSF/1 4.0.
32643
32644 2007-11-05  Jim Meyering  <meyering@redhat.com>
32645
32646         git-version-gen: sync from coreutils.
32647         * build-aux/git-version-gen: Add comments.
32648         Change the first '-' to '.' in the snapshot version string,
32649         e.g., 6.9-377-08144 -> 6.9.377-08144
32650         Remove first parameter.
32651         Don't declare a version "-dirty" merely because a time
32652         stamp has changed.
32653
32654 2007-11-04  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/lock.h: Protect all macro definitions containing an 'if'
32657         statement through a "do { ... } while (0)".
32658         * lib/tls.h: Likewise.
32659
32660 2007-11-04  Bruno Haible  <bruno@clisp.org>
32661
32662         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32663
32664 2007-11-04  Bruno Haible  <bruno@clisp.org>
32665
32666         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32667         * modules/fprintf-posix (Depends-on): Add nocrash.
32668         * modules/snprintf-posix (Depends-on): Likewise.
32669         * modules/sprintf-posix (Depends-on): Likewise.
32670         * modules/vasnprintf-posix (Depends-on): Likewise.
32671         * modules/vasprintf-posix (Depends-on): Likewise.
32672         * modules/vfprintf-posix (Depends-on): Likewise.
32673         * modules/vsnprintf-posix (Depends-on): Likewise.
32674         * modules/vsprintf-posix (Depends-on): Likewise.
32675         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32676         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32677         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32678         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32679         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32680         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32681         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32682
32683 2007-11-04  Bruno Haible  <bruno@clisp.org>
32684
32685         * modules/nocrash: New file.
32686         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32687         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32688
32689 2007-11-04  Bruno Haible  <bruno@clisp.org>
32690
32691         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32692         precision handling.
32693         * tests/test-vasprintf-posix.c (test_function): Likewise.
32694         * tests/test-snprintf-posix.h (test_function): Likewise.
32695         * tests/test-sprintf-posix.h (test_function): Likewise.
32696
32697         Fix *printf behaviour for large precisions on mingw and BeOS.
32698         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32699         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32701         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32702         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32703         gl_PRINTF_PRECISION and test its result. Invoke
32704         gl_PREREQ_VASNPRINTF_PRECISION.
32705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32706         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32707         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32708         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32709         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32712         * doc/functions/fprintf.texi: Update.
32713         * doc/functions/printf.texi: Update.
32714         * doc/functions/snprintf.texi: Update.
32715         * doc/functions/sprintf.texi: Update.
32716         * doc/functions/vfprintf.texi: Update.
32717         * doc/functions/vprintf.texi: Update.
32718         * doc/functions/vsnprintf.texi: Update.
32719         * doc/functions/vsprintf.texi: Update.
32720
32721 2007-11-04  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
32724
32725 2007-11-04  Bruno Haible  <bruno@clisp.org>
32726
32727         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
32728         Reported by Sylvain Beucler <beuc@gnu.org>.
32729
32730 2007-11-03  Bruno Haible  <bruno@clisp.org>
32731
32732         * tests/test-fprintf-posix2.sh: New file.
32733         * tests/test-fprintf-posix2.c: New file.
32734         * modules/fprintf-posix-tests (Files): Add them.
32735         (TESTS): Add test-fprintf-posix2.sh.
32736         (configure.ac): Check for getrlimit and setrlimit.
32737         (check_PROGRAMS): Add test-fprintf-posix2.
32738
32739         * tests/test-printf-posix2.sh: New file.
32740         * tests/test-printf-posix2.c: New file.
32741         * modules/printf-posix-tests (Files): Add them.
32742         (TESTS): Add test-printf-posix2.sh.
32743         (configure.ac): Check for getrlimit and setrlimit.
32744         (check_PROGRAMS): Add test-printf-posix2.
32745
32746         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
32747         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
32748         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
32749         (decode_double): New function, copied from decode_long_double.
32750         (scale10_round_decimal_decoded): New function, extracted from
32751         scale10_round_decimal_long_double.
32752         (scale10_round_decimal_long_double): Use it.
32753         (scale10_round_decimal_double): New function.
32754         (floorlog10): New function.
32755         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
32756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
32757         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32758         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32759         gl_PRINTF_ENOMEM and test its result. Invoke
32760         gl_PREREQ_VASNPRINTF_ENOMEM.
32761         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32768         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
32769         * modules/snprintf-posix (Depends-on): Likewise.
32770         * modules/sprintf-posix (Depends-on): Likewise.
32771         * modules/vasnprintf-posix (Depends-on): Likewise.
32772         * modules/vasprintf-posix (Depends-on): Likewise.
32773         * modules/vfprintf-posix (Depends-on): Likewise.
32774         * modules/vsnprintf-posix (Depends-on): Likewise.
32775         * modules/vsprintf-posix (Depends-on): Likewise.
32776         * doc/functions/fprintf.texi: Update.
32777         * doc/functions/printf.texi: Update.
32778         * doc/functions/snprintf.texi: Update.
32779         * doc/functions/sprintf.texi: Update.
32780         * doc/functions/vfprintf.texi: Update.
32781         * doc/functions/vprintf.texi: Update.
32782         * doc/functions/vsnprintf.texi: Update.
32783         * doc/functions/vsprintf.texi: Update.
32784
32785 2007-11-03  Bruno Haible  <bruno@clisp.org>
32786
32787         * modules/frexp-nolibm-tests: New file.
32788
32789         * modules/frexp-nolibm: New file.
32790         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
32791
32792 2007-11-03  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
32795         value is C99 compliant.
32796         Needed for OSF/1 5.1.
32797
32798 2007-11-03  Bruno Haible  <bruno@clisp.org>
32799
32800         Fix out-of-memory handling of vasnprintf.
32801         * lib/printf-parse.c: Include <errno.h>.
32802         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
32803         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
32804         is already set.
32805
32806 2007-11-02  Eric Blake  <ebb9@byu.net>
32807
32808         Fix tests on cygwin.
32809         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
32810
32811 2007-11-01  Bruno Haible  <bruno@clisp.org>
32812
32813         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
32814         warning.
32815         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
32816         needed for POSIX compatibility.
32817
32818 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32819
32820         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
32821         for compatibility with GNU.
32822
32823 2007-11-01  Bruno Haible  <bruno@clisp.org>
32824
32825         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
32826         (putenv): Renamed from rpl_putenv. Change argument type from
32827         'const char *' to 'char *'.
32828         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
32829         of defining putenv in config.h, just set REPLACE_PUTENV.
32830         * modules/putenv (Depends-on): Add stdlib.
32831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32832         (Include): Use <stdlib.h>.
32833         * lib/stdlib.in.h (putenv): New declaration.
32834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
32835         REPLACE_PUTENV.
32836         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
32837         REPLACE_PUTENV.
32838         Needed for MacOS X 10.5.0.
32839         Reported by Peter O'Gorman <peter@pogma.com>.
32840
32841 2007-11-01  Jim Meyering  <meyering@redhat.com>
32842
32843         Treat an empty date string exactly like "0".
32844         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
32845         if the remaining date string (to be parsed) is empty, use "0".
32846         Reported by Mischa Molhoek and discussed in this thread:
32847         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
32848
32849 2007-10-31  Bruno Haible  <bruno@clisp.org>
32850
32851         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
32852         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
32853         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
32854         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
32855         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
32856         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
32857
32858 2007-10-31  Bruno Haible  <bruno@clisp.org>
32859
32860         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
32861         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
32862         (AC_TYPE_LONG_LONG_INT): Use it.
32863         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
32864         it as well.
32865         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
32866         to m4/longlong.m4.
32867         * modules/stdint (Files): Remove m4/ulonglong.m4.
32868         * modules/strtoull (Files): Use m4/longlong.m4 instead of
32869         m4/ulonglong.m4.
32870         * modules/strtoumax (Files): Likewise.
32871
32872 2007-10-30  Bruno Haible  <bruno@clisp.org>
32873
32874         * modules/xvasprintf-posix: New file.
32875         Suggested by Eric Blake.
32876
32877 2007-10-30  Bruno Haible  <bruno@clisp.org>
32878
32879         * modules/xprintf-posix-tests: New file.
32880         * tests/test-xprintf-posix.sh: New file.
32881         * tests/test-xprintf-posix.c: New file.
32882         * tests/test-xfprintf-posix.c: New file.
32883
32884         * modules/xprintf-posix: New file.
32885
32886 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32887
32888         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
32889         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
32890         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
32891
32892 2007-10-29  Bruno Haible  <bruno@clisp.org>
32893
32894         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
32895         contain the special marker '_cv_'.
32896         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32897         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32898         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32899         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32900         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32901         Reported by Ralf Wildenhues.
32902
32903 2007-10-29  Bruno Haible  <bruno@clisp.org>
32904
32905         * gnulib-tool (func_import): When --lgpl is not specified, set
32906         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
32907         GPLv3.
32908         Reported by Simon Josefsson.
32909
32910 2007-10-28  Bruno Haible  <bruno@clisp.org>
32911
32912         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
32913         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
32914         HAVE_DECL_ISFINITE.
32915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
32916         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
32917         HAVE_DECL_ISFINITE.
32918
32919 2007-10-28  Bruno Haible  <bruno@clisp.org>
32920
32921         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
32922         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
32923
32924 2007-10-28  Bruno Haible  <bruno@clisp.org>
32925
32926         Fix link errors with Sun C 5.0 on Solaris 10.
32927         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
32928         function is declared but not present in the compiler's libm.
32929         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32930         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32931         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
32932         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
32933         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
32934         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
32935         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
32936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
32937         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
32938         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
32939         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
32940         HAVE_DECL_FLOORL.
32941
32942 2007-10-28  Bruno Haible  <bruno@clisp.org>
32943
32944         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
32945         gl_FUNC_FLOORL. Cache the result.
32946         (gl_FUNC_FLOORL): Use it.
32947         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
32948         gl_FUNC_CEILL. Cache the result.
32949         (gl_FUNC_CEILL): Use it.
32950
32951         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
32952         gl_FUNC_FLOOR. Cache the result.
32953         (gl_FUNC_FLOOR): Use it.
32954         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
32955         gl_FUNC_CEIL. Cache the result.
32956         (gl_FUNC_CEIL): Use it.
32957
32958         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
32959         gl_FUNC_FLOORF. Cache the result.
32960         (gl_FUNC_FLOORF): Use it.
32961         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
32962         gl_FUNC_CEILF. Cache the result.
32963         (gl_FUNC_CEILF): Use it.
32964
32965 2007-10-28  Bruno Haible  <bruno@clisp.org>
32966
32967         * gnulib-tool: Allow specifying the LGPL version number through
32968         --lgpl=2 or --lgpl=3.
32969         (func_usage): Document --lgpl with argument.
32970         Handle --lgpl=... arguments.
32971         (func_import): Recognize also gl_LGPL calls with an argument. When
32972         --lgpl=2 is used and the module's license is just LGPL, report an
32973         error. Set sed_transform_lib_file according to the lgpl variable. In
32974         the generated files, use --lgpl or gl_LGPL invocations with argument,
32975         if necessary.
32976         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
32977         an LGPv2+ license.
32978         * doc/gnulib-tool.texi (Modified imports): Update explanation of
32979         gl_LGPL macro.
32980
32981 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32982             Bruno Haible  <bruno@clisp.org>
32983
32984         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
32985         (u16_uctomb_aux): Likewise.
32986         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
32987         !HAVE_INLINE.
32988         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
32989
32990 2007-10-28  Bruno Haible  <bruno@clisp.org>
32991
32992         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
32993         Invoke AM_GETTEXT_OPTION if it exists.
32994         * modules/vasprintf: Likewise.
32995         * modules/verror: Likewise.
32996         * modules/xprintf: Likewise.
32997         * modules/xvasprintf: Likewise.
32998
32999 2007-10-27  Ben Pfaff  <blp@gnu.org>
33000
33001         * lib/math.in.h: Define isfinite macro and prototypes for
33002         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33003         implementations.
33004         * m4/math_h.m4: New substitutions for isfinite module.
33005         * lib/isfinite.c: New file.
33006         * m4/isfinite.m4: New file.
33007         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33008         * modules/isfinite: New file.
33009         * modules/isfinite-tests: New file.
33010         * tests/tests-isfinite.c: New file.
33011         * doc/functions/isfinite.texi: Mention isfinite module.
33012         * MODULES.html.sh: Mention new module.
33013
33014 2007-10-27  Ben Pfaff  <blp@gnu.org>
33015
33016         Ralf Wildenhues reported that Tru64 4.0D declares the round
33017         functions but does not have definitions.
33018         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33019         cannot be found in any library, set the output variable to
33020         "missing" instead of "".
33021         * m4/round.m4: Also use our substitute if we cannot find round in
33022         any library, even if it is declared.
33023         * m4/roundf.m4: Likewise for roundf.
33024         * m4/roundl.m4: Likewise for roundl.
33025         * lib/math.in.h: Undefine roundf, round, roundl before defining
33026         their replacements, to allow for hypothetical systems where these
33027         may be defined as macros but not available in libraries.
33028
33029 2007-10-27  Bruno Haible  <bruno@clisp.org>
33030
33031         * doc/gnulib.texi: Invoke @firstparagraphindent.
33032         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33033         changes in gnulib.
33034         (Source changes): New section.
33035
33036 2007-10-26  Bruno Haible  <bruno@clisp.org>
33037
33038         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33039         borrowed from autoconf.
33040
33041 2007-10-26  Bruno Haible  <bruno@clisp.org>
33042
33043         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33044         strerror returned the empty string. Needed on HP-UX 11.00.
33045
33046 2007-10-24  Micah Cowan  <micah@cowan.name>
33047
33048         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33049         * build-aux/bootstrap: Remove support for now-unnecessary option,
33050         --cvs-user, and envvars CVS_USER, CVS_RSH.
33051
33052 2007-10-24  Jim Meyering  <meyering@redhat.com>
33053
33054         Avoid diagnostics from sha1sum when there is no cached checksum.
33055         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33056         if the po.s1 file hasn't been created yet.
33057
33058         * build-aux/bootstrap: Sync from coreutils:
33059         2007-10-24  Jim Meyering  <meyering@redhat.com>
33060         Get gnulib from the git repository, not from an obsolete cvs one.
33061         * build-aux/bootstrap: Suggestion from Micah Cowan.
33062         2007-10-04  Jim Meyering  <jim@meyering.net>
33063         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33064         (update_po_files): Work also when there are no .po files in po/.
33065
33066 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33067
33068         * README: Append ".git" to git and cg examples.
33069         Problem reported by Benoit Sigoure.
33070
33071 2007-10-23  Micah Cowan  <micah@cowan.name>
33072
33073         * users.txt: Add wget.
33074
33075 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33076
33077         Fix linking of some unistdio tests on FreeBSD.
33078         * modules/unistdio/u16-vsnprintf-tests
33079         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33080         * modules/unistdio/u16-vsprintf-tests
33081         (test_u16_vsnprintf1_LDADD): Likewise.
33082         * modules/unistdio/u32-vsnprintf-tests
33083         (test_u32_vsnprintf1_LDADD): Likewise.
33084         * modules/unistdio/u32-vsprintf-tests
33085         (test_u32_vsprintf1_LDADD): Likewise.
33086         * modules/unistdio/u8-vsnprintf-tests
33087         (test_u8_vsnprintf1_LDADD): Likewise.
33088         * modules/unistdio/u8-vsprintf-tests
33089         (test_u8_vsprintf1_LDADD): Likewise.
33090         * modules/unistdio/ulc-vsnprintf-tests
33091         (test_ulc_vsnprintf1_LDADD): Likewise.
33092         * modules/unistdio/ulc-vsprintf-tests
33093         (test_ulc_vsprintf1_LDADD): Likewise.
33094
33095         Fix linking of some uniconv tests on FreeBSD.
33096         * modules/uniconv/u16-conv-from-enc-tests
33097         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33098         * modules/uniconv/u16-conv-to-enc-tests
33099         (test_u16_conv_to_enc_LDADD): Likewise.
33100         * modules/uniconv/u16-strconv-from-enc-tests
33101         (test_u16_strconv_from_enc_LDADD): Likewise.
33102         * modules/uniconv/u16-strconv-to-enc-tests
33103         (test_u16_strconv_to_enc_LDADD): Likewise.
33104         * modules/uniconv/u32-conv-from-enc-tests
33105         (test_u32_conv_from_enc_LDADD): Likewise.
33106         * modules/uniconv/u32-conv-to-enc-tests
33107         (test_u32_conv_to_enc_LDADD): Likewise.
33108         * modules/uniconv/u32-strconv-from-enc-tests
33109         (test_u32_strconv_from_enc_LDADD): Likewise.
33110         * modules/uniconv/u32-strconv-to-enc-tests
33111         (test_u32_strconv_to_enc_LDADD): Likewise.
33112         * modules/uniconv/u8-conv-from-enc-tests
33113         (test_u8_conv_from_enc_LDADD): Likewise.
33114         * modules/uniconv/u8-conv-to-enc-tests
33115         (test_u8_conv_to_enc_LDADD): Likewise.
33116         * modules/uniconv/u8-strconv-from-enc-tests
33117         (test_u8_strconv_from_enc_LDADD): Likewise.
33118         * modules/uniconv/u8-strconv-to-enc-tests
33119         (test_u8_strconv_to_enc_LDADD): Likewise.
33120
33121 2007-10-22  Bruno Haible  <bruno@clisp.org>
33122
33123         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33124         size.
33125
33126 2007-10-22  Eric Blake  <ebb9@byu.net>
33127
33128         Tweak x*printf documentation.
33129         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33130         variable name and comments.
33131         Suggested by Bruno Haible.
33132
33133 2007-10-22  Bruno Haible  <bruno@clisp.org>
33134
33135         * lib/acl.c (copy_acl): Fix file name in comment.
33136
33137 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33138
33139         Fix Tru64 problem with stdbool.h.
33140         * lib/stdbool.in.h (false, true):
33141         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33142         Don't declare as an enum in this situation; it runs afoul of Tru64.
33143         Problem reported by Steven M. Schweda in
33144         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33145
33146 2007-10-22  Eric Blake  <ebb9@byu.net>
33147
33148         Also wrap vf?printf.
33149         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33150         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33151         (xvprintf, xvfprintf): New functions.
33152
33153 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33154
33155         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33156         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33157
33158         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33159         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33160
33161 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33162
33163         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33164         by Bruno Haible.
33165
33166 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33167
33168         * lib/getloadavg.c
33169         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33170         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33171
33172         * tests/test-i-ring.c: Work for C89.
33173
33174 2007-10-22  Bruno Haible  <bruno@clisp.org>
33175
33176         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33177         -1u, in preprocessor expression, so that we don't test for the bug
33178         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33180
33181 2007-10-22  Eric Blake  <ebb9@byu.net>
33182
33183         * tests/test-yesno.sh: Silence stderr during test.
33184
33185 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33186
33187         * modules/crypto/gc-camellia: New file.
33188
33189         * m4/gc-camellia.m4: New file.
33190
33191         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33192
33193         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33194
33195 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33196
33197         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33198         --help to stdout.  Reported by sms@antinode.org (Steven
33199         M. Schweda).
33200
33201 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33202
33203         * users.txt: Fix link to libksba.
33204
33205 2007-10-21  Ben Pfaff  <blp@gnu.org>
33206
33207         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33208         round.c roundf implementation that depends on floorf and ceilf to
33209         be tested unconditionally.
33210
33211 2007-10-21  Ben Pfaff  <blp@gnu.org>
33212
33213         * m4/check-libm-func.m4: Removed.
33214         * m4/check-math-lib.m4: New file.
33215         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33216         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33217         definition and lack of AC_LIBOBJ([roundf]).
33218         * m4/roundl.m4: Ditto, and similarly for roundl.
33219         * modules/round: Reference new m4 file.
33220         * modules/roundf: Ditto.
33221         * modules/roundl: Ditto.
33222         * tests/test-round2.c (main): Use ROUND instead of round.
33223         Bug report from Bruno Haible.
33224
33225 2007-10-21  Bruno Haible  <bruno@clisp.org>
33226
33227         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33228         context.
33229
33230 2007-10-21  Bruno Haible  <bruno@clisp.org>
33231
33232         * tests/test-wcwidth.c (main): Allow negative result for some control
33233         characters.
33234
33235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33236         Needed on OSF/1 5.1.
33237
33238 2007-10-21  Bruno Haible  <bruno@clisp.org>
33239
33240         * tests/test-floorf1.c: Include isnanf.h.
33241         (main): Use isnanf() instead of isnan().
33242         * tests/test-ceilf1.c: Include isnanf.h.
33243         (main): Use isnanf() instead of isnan().
33244         * tests/test-truncf1.c: Include isnanf.h.
33245         (main): Use isnanf() instead of isnan().
33246         * tests/test-roundf1.c: Include isnanf.h.
33247         (main): Use isnanf() instead of isnan().
33248
33249 2007-10-21  Eric Blake  <ebb9@byu.net>
33250
33251         * users.txt: Update URL for m4.
33252
33253 2007-10-21  Bruno Haible  <bruno@clisp.org>
33254
33255         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33256
33257 2007-10-21  Bruno Haible  <bruno@clisp.org>
33258
33259         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33260         Git's management files if the CVS files are not present.
33261
33262 2007-10-20  Bruno Haible  <bruno@clisp.org>
33263
33264         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33265         gcc-3.4.x.
33266
33267 2007-10-20  Ben Pfaff  <blp@gnu.org>
33268
33269         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33270         implementations.
33271         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33272         * lib/round.c: New file.
33273         * lib/roundf.c: New file.
33274         * lib/roundl.c: New file.
33275         * m4/round.m4: New file.
33276         * m4/roundf.m4: New file.
33277         * m4/roundl.m4: New file.
33278         * m4/check-libm-func-m4: New file.
33279         * modules/math: Replace round, roundf, roundl related @VARS@ in
33280         math.in.h.
33281         * modules/round: New file.
33282         * modules/round-tests: New file.
33283         * modules/roundf: New file.
33284         * modules/roundf-tests: New file.
33285         * modules/roundl: New file.
33286         * modules/roundl-tests: New file.
33287         * tests/test-round1.c: New file.
33288         * tests/test-round2.c: New file.
33289         * tests/test-roundf1.c: New file.
33290         * tests/test-roundf2.c: New file.
33291         * tests/test-roundl.c: New file.
33292         * doc/functions/round.texi: Mention round module.
33293         * doc/functions/roundf.texi: Mention roundf module.
33294         * doc/functions/roundl.texi: Mention roundl module.
33295         * MODULES.html.sh: Mention new modules.
33296         Thanks to Bruno Haible for suggestions.
33297
33298 2007-10-20  Jim Meyering  <meyering@redhat.com>
33299
33300         * lib/xprintf.c: Include <config.h> unconditionally.
33301
33302         Change xprintf's license to GPL.
33303         * modules/xprintf (License): s/LGPL/GPL/, since this module
33304         depends on modules (exit and exitfail) which are GPL.
33305         Suggestion from Bruno Haible.
33306
33307         xprintf fixes.
33308         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33309         Use a clearer diagnostic.
33310         Patch from Bruno Haible.
33311
33312 2007-10-20  Bruno Haible  <bruno@clisp.org>
33313
33314         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33315         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33317
33318 2007-10-20  Bruno Haible  <bruno@clisp.org>
33319
33320         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33321         precision in the comparison result > x - 1 or similar.
33322         * tests/test-ceilf2.c (correct_result_p): Likewise.
33323         * tests/test-truncf2.c (correct_result_p): Likewise.
33324         * tests/test-trunc2.c (correct_result_p): Likewise.
33325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33326
33327 2007-10-20  Bruno Haible  <bruno@clisp.org>
33328
33329         * modules/ceil: New file.
33330         * m4/ceil.m4: New file.
33331         * doc/functions/ceil.texi: Mention the 'ceil' module.
33332
33333 2007-10-20  Bruno Haible  <bruno@clisp.org>
33334
33335         * modules/floor: New file.
33336         * m4/floor.m4: New file.
33337         * doc/functions/floor.texi: Mention the 'floor' module.
33338
33339 2007-10-20  Bruno Haible  <bruno@clisp.org>
33340
33341         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33342         of %a.
33343         * modules/floorf-tests (Depends-on): Likewise.
33344         * modules/truncf-tests (Depends-on): Likewise.
33345         * modules/trunc-tests (Depends-on): Likewise.
33346         Reported by Ben Pfaff.
33347
33348 2007-10-19  Jim Meyering  <meyering@redhat.com>
33349
33350         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33351         Don't bother testing specific errno values.  Just test ferror.
33352
33353         New module: xprintf
33354         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33355
33356 2007-10-19  Bruno Haible  <bruno@clisp.org>
33357
33358         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33359         syntax.
33360         * modules/javaexec (Makefile.am): Likewise.
33361         * modules/relocatable-prog (Makefile.am): Likewise.
33362         Suggested by Jim Meyering.
33363
33364 2007-10-18  Bruno Haible  <bruno@clisp.org>
33365
33366         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33367         Reported by Jim Meyering.
33368
33369 2007-10-18  Eric Blake  <ebb9@byu.net>
33370
33371         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33372
33373 2007-10-18  Bruno Haible  <bruno@clisp.org>
33374
33375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33376         the format string into writable memory. Needed in Fortify conditions.
33377
33378 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33379             Bruno Haible  <bruno@clisp.org>
33380
33381         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33382         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33383         * modules/trim (Depends-on): Add mbchar.
33384         (configure.ac): Add gl_FUNC_MBRTOWC.
33385         (Makefile.am): Augment lib_SOURCES.
33386
33387 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33388
33389         Modify glob.c to use fstatat and dirfd, to simplify it.
33390         Suggested by Eric Blake.
33391         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33392         Don't include <stdbool.h>; not used.
33393         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33394         (link_exists_p): Simplify implementation, since we can now assume
33395         dirfd and fstatat.
33396         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33397
33398 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33399
33400         * gnulib-tool (func_get_dependencies): Fix sed script to
33401         match only tests.
33402
33403 2007-10-17  Bruno Haible  <bruno@clisp.org>
33404
33405         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33406         allow locale names without encoding suffix.
33407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33408         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33409
33410 2007-10-16  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33413         * lib/getgroups.c (getgroups): Likewise.
33414         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33415
33416 2007-10-16  Bruno Haible  <bruno@clisp.org>
33417
33418         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33419         * modules/malloc-posix (License): Likewise.
33420         * modules/realloc-posix (License): Likewise.
33421         * modules/calloc-posix (License): Likewise.
33422         * modules/intprops (License): Change from GPL to LGPL, with
33423         Paul Eggert's approval.
33424
33425 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33426
33427         Merge glibc changes into lib/glob.c.
33428
33429         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33430         2007-10-15 04:59:03 UTC.  Here are the changes:
33431
33432         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33433
33434         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33435
33436         * lib/glob.c: Add some branch prediction throughout.
33437
33438         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33439
33440         [BZ #5103]
33441         * lib/glob.c (glob): Recognize patterns starting \/.
33442
33443         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33444
33445         [BZ #3996]
33446         * lib/glob.c (attribute_hidden): Define if not defined.
33447         (glob): Unescape dirname, filename or username when needed and not
33448         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33449         is NULL.  Handle unescaped [ in pattern without closing ].
33450         Don't pass GLOB_CHECK down to recursive glob for directories.
33451         (__glob_pattern_type): New function.
33452         (__glob_pattern_p): Implement using __glob_pattern_type.
33453         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33454         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33455         Remove unreachable code.
33456
33457         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33458
33459         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33460         explain why there are no leaks.
33461
33462         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33463
33464         [BZ #3253]
33465         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33466         time, rather allocate increasingly bigger arrays of pointers, if
33467         possible with alloca, if too large with malloc.
33468
33469 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33470
33471         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33472         Problem reported by H.Merijn Brand in
33473         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33474         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33475         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33476
33477 2007-10-15  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33480         with explicit rpl_ prefix.
33481         * lib/fopen.c (fopen): Likewise.
33482         * lib/freopen.c (freopen): Likewise.
33483         * lib/iconv.c (iconv): Likewise.
33484         * lib/iconv_close.c (iconv_close): Likewise.
33485
33486 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33487
33488         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33489
33490 2007-10-15  Bruno Haible  <bruno@clisp.org>
33491
33492         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33493         <stddef.h> instead of <stdlib.h> since we only need NULL.
33494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33495
33496 2007-10-15  Bruno Haible  <bruno@clisp.org>
33497
33498         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33499         Replace paragraph talking about LIBOBJS.
33500         Reported by Colin Watson <cjwatson@debian.org>.
33501
33502 2007-10-15  Bruno Haible  <bruno@clisp.org>
33503
33504         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33505         <stdlib.h> before using NULL.
33506
33507 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33508
33509         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33510         Reported by Albert Chin <china@thewrittenword.com>.
33511
33512 2007-10-14  Bruno Haible  <bruno@clisp.org>
33513
33514         * modules/iconv_open-utf-tests: New file.
33515         * tests/test-iconv-utf.c: New file.
33516
33517         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33518         * modules/iconv_open-utf: New file.
33519         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33520         (iconv, iconv_close): New declarations.
33521         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33522         be defined.
33523         (iconv_open): Add special handling of conversion between UTF-8 and
33524         UTF-{16,32}{BE,LE}.
33525         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33526         * lib/iconv_close.c: New file.
33527         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33528         gl_FUNC_ICONV_OPEN.
33529         (gl_FUNC_ICONV_OPEN): Use it.
33530         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33531         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33532         and REPLACE_ICONV_UTF.
33533         * modules/iconv_open (Depends-on): Add c-strcase.
33534         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33535         ICONV_CONST.
33536         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33537
33538 2007-10-13  Albert Chin  <china@thewrittenword.com>
33539             Bruno Haible  <bruno@clisp.org>
33540
33541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33542         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33543
33544 2007-10-13  Bruno Haible  <bruno@clisp.org>
33545
33546         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33547         defined, use the ISO C99 inline semantics.
33548         * lib/argp.h (ARGP_EI): Likewise.
33549
33550 2007-10-13  Bruno Haible  <bruno@clisp.org>
33551
33552         Handle 'inline' change in gcc 4.3.0.
33553         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33554         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33555         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33556         argp_fmtstream_point): Disable 'extern' declaration if the function
33557         definition is going to be provided inline.
33558         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33559         semantics, not the ISO C99 inline semantics.
33560         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33561         'extern' declaration if the function definition is going to be provided
33562         inline.
33563         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33564         the GNU C inline semantics, not the ISO C99 inline semantics. With
33565         GCC 4.2, avoid a warning.
33566
33567 2007-10-13  Bruno Haible  <bruno@clisp.org>
33568
33569         * lib/freading.h (freading): Enable the use of __freading for
33570         glibc >= 2.7.
33571         * lib/freading.c (freading): Likewise.
33572
33573 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33574
33575         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33576         "warning: C99 inline functions are not supported; using GNU89".
33577
33578 2007-10-12  Bruno Haible  <bruno@clisp.org>
33579
33580         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33581         of 2.
33582         * tests/test-ceilf2.c: New file.
33583         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33584
33585         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33586         * modules/ceilf-tests: Update.
33587
33588 2007-10-12  Bruno Haible  <bruno@clisp.org>
33589
33590         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33591         of 2.
33592         * tests/test-floorf2.c: New file.
33593         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33594
33595         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33596         * modules/floorf-tests: Update.
33597
33598 2007-10-12  Bruno Haible  <bruno@clisp.org>
33599
33600         * tests/test-trunc2.c: New file.
33601         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33602
33603         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33604         * modules/trunc-tests: Update.
33605
33606 2007-10-12  Bruno Haible  <bruno@clisp.org>
33607
33608         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33609         of 2.
33610         * tests/test-truncf2.c: New file.
33611         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33612
33613         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33614         * modules/truncf-tests: Update.
33615
33616 2007-10-11  Eric Blake  <ebb9@byu.net>
33617
33618         Don't claim strerror is broken on Interix.
33619         * doc/functions/strerror.texi (strerror): Known broken systems are
33620         now Solaris 8, and not Interix.
33621         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
33622         Interix on cross-compile.
33623         Reported by Martin Koeppe in
33624         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
33625
33626 2007-10-11  Bruno Haible  <bruno@clisp.org>
33627
33628         * modules/i-ring-tests: New file.
33629         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
33630         instead of assert.
33631
33632 2007-10-11  Bruno Haible  <bruno@clisp.org>
33633
33634         * modules/filenamecat-tests: New file.
33635         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
33636         * lib/filenamecat.c: Remove test code.
33637
33638 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33639
33640         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33641
33642         * lib/strerror.c: Include <string.h> always, to test interface,
33643         and to remove the need for the dummy.
33644         Include intprops.h to compute width instead of doing it ourselves
33645         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33646         (strerror): Define it to return NULL if there's no system strerror.
33647         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33648         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33649         ancient pre-strerror Unix systems well any more.  Saying "unknown
33650         system error" is enough.
33651         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33652         simpler strerror.c implementation.
33653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33654         Simplify the tests to reflect the simpler strerror implementation.
33655         * modules/strerror (Depends-on): Add intprops.
33656
33657 2007-10-09  Eric Blake  <ebb9@byu.net>
33658
33659         Silence test-fpending.
33660         * modules/fpending-tests (Files): Add wrapper script.
33661         * tests/test-fpending.sh: New file.
33662
33663 2007-10-09  Bruno Haible  <bruno@clisp.org>
33664
33665         * MODULES.html.sh (func_module): Don't create a hyperlink for
33666         function names like 'printf_frexp'.
33667         (Misc): Add crc, memxor.
33668         (Characteristics of floating types): New section.
33669         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33670         isnanf-nolibm, signbit, trunc, truncf, truncl.
33671         (Enhancements for ISO C 99 functions): New subsection Input/output.
33672         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33673         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33674         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33675         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33676         (Enhancements for POSIX:2001 functions): Add chdir-long.
33677         (File system functions): Add areadlink, chdir-safer, read-file.
33678         Remove cycle-check.
33679         (File system as inode set): New section.
33680         (Date and time): Add gethrxtime.
33681         (Multithreading): Add openmp.
33682         (Internationalization functions): Add localename.
33683         (Unicode string functions): Add unistr/u*-mbsnlen.
33684         (Support for maintaining and releasing projects): Add git-version-gen.
33685         (Lone files): Remove directories.
33686
33687 2007-10-08  Ben Pfaff  <blp@gnu.org>
33688
33689         * lib/xmalloca.h: Fix typo in comment.
33690
33691 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33692
33693         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33694         when avoiding problems with integer overflow.  Use a portable test
33695         instead.
33696
33697 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33698
33699         * modules/dummy (License): Change to LGPLv2+.
33700         * modules/float (License): Likewise
33701         * modules/realloc (License): Likewise
33702         * modules/stdlib (License): Likewise
33703
33704 2007-10-07  Bruno Haible  <bruno@clisp.org>
33705
33706         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33707         * floor.c (TWO_MANT_DIG): Likewise.
33708         * ceil.c (TWO_MANT_DIG): Likewise.
33709         Reported by Ben Pfaff.
33710
33711 2007-10-07  Bruno Haible  <bruno@clisp.org>
33712
33713         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
33714         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
33715         * lib/frexp.c (FUNC): Likewise.
33716         * lib/printf-frexp.h (printf_frexp): Likewise.
33717         * lib/printf-frexpl.h (printf_frexpl): Likewise.
33718         * lib/printf-frexp.c (FUNC): Likewise.
33719         Suggested by Jim Meyering.
33720
33721 2007-10-07  Jim Meyering  <meyering@redhat.com>
33722
33723         Make xnanosleep's integer overflow test more robust.
33724         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
33725         so that gcc-4.3.0 doesn't optimize away this test for overflow.
33726
33727 2007-10-07  Bruno Haible  <bruno@clisp.org>
33728
33729         * NEWS: Mention the license change.
33730
33731         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
33732         abbreviations in the modules files.
33733
33734         Change copyright notice from GPLv2+ to GPLv3+.
33735         * README: Change copyright notice.
33736         * MODULES.html.sh: Likewise.
33737         * build-aux/bootstrap.conf: Likewise.
33738         * build-aux/config.libpath: Likewise.
33739         * build-aux/csharpcomp.sh.in: Likewise.
33740         * build-aux/csharpexec.sh.in: Likewise.
33741         * build-aux/install-reloc: Likewise.
33742         * build-aux/javacomp.sh.in: Likewise.
33743         * build-aux/javaexec.sh.in: Likewise.
33744         * build-aux/ldd.sh.in: Likewise.
33745         * build-aux/reloc-ldflags: Likewise.
33746         * build-aux/relocatable.sh.in: Likewise.
33747         * build-aux/x-to-1.in: Likewise.
33748         * check-module: Likewise.
33749         * config/srclistvars.sh: Likewise.
33750         * gnulib-tool: Likewise.
33751         * lib/acl-internal.h: Likewise.
33752         * lib/acl.c: Likewise.
33753         * lib/acl.h: Likewise.
33754         * lib/acl_entries.c: Likewise.
33755         * lib/areadlink-with-size.c: Likewise.
33756         * lib/areadlink.c: Likewise.
33757         * lib/areadlink.h: Likewise.
33758         * lib/argmatch.c: Likewise.
33759         * lib/argmatch.h: Likewise.
33760         * lib/argp-ba.c: Likewise.
33761         * lib/argp-eexst.c: Likewise.
33762         * lib/argp-fmtstream.c: Likewise.
33763         * lib/argp-fmtstream.h: Likewise.
33764         * lib/argp-fs-xinl.c: Likewise.
33765         * lib/argp-help.c: Likewise.
33766         * lib/argp-namefrob.h: Likewise.
33767         * lib/argp-parse.c: Likewise.
33768         * lib/argp-pin.c: Likewise.
33769         * lib/argp-pv.c: Likewise.
33770         * lib/argp-pvh.c: Likewise.
33771         * lib/argp-xinl.c: Likewise.
33772         * lib/argp.h: Likewise.
33773         * lib/at-func.c: Likewise.
33774         * lib/atanl.c: Likewise.
33775         * lib/backupfile.c: Likewise.
33776         * lib/backupfile.h: Likewise.
33777         * lib/basename.c: Likewise.
33778         * lib/binary-io.h: Likewise.
33779         * lib/byteswap.in.h: Likewise.
33780         * lib/c-stack.c: Likewise.
33781         * lib/c-stack.h: Likewise.
33782         * lib/c-strcasestr.c: Likewise.
33783         * lib/c-strcasestr.h: Likewise.
33784         * lib/c-strstr.c: Likewise.
33785         * lib/c-strstr.h: Likewise.
33786         * lib/c-strtod.c: Likewise.
33787         * lib/calloc.c: Likewise.
33788         * lib/canon-host.c: Likewise.
33789         * lib/canon-host.h: Likewise.
33790         * lib/canonicalize-lgpl.c: Likewise.
33791         * lib/canonicalize.c: Likewise.
33792         * lib/canonicalize.h: Likewise.
33793         * lib/ceil.c: Likewise.
33794         * lib/ceilf.c: Likewise.
33795         * lib/ceill.c: Likewise.
33796         * lib/chdir-long.c: Likewise.
33797         * lib/chdir-long.h: Likewise.
33798         * lib/chdir-safer.c: Likewise.
33799         * lib/chdir-safer.h: Likewise.
33800         * lib/chown.c: Likewise.
33801         * lib/classpath.c: Likewise.
33802         * lib/classpath.h: Likewise.
33803         * lib/clean-temp.c: Likewise.
33804         * lib/clean-temp.h: Likewise.
33805         * lib/cloexec.c: Likewise.
33806         * lib/close-stream.c: Likewise.
33807         * lib/closein.c: Likewise.
33808         * lib/closein.h: Likewise.
33809         * lib/closeout.c: Likewise.
33810         * lib/closeout.h: Likewise.
33811         * lib/concat-filename.c: Likewise.
33812         * lib/copy-file.c: Likewise.
33813         * lib/copy-file.h: Likewise.
33814         * lib/count-one-bits.h: Likewise.
33815         * lib/crc.c: Likewise.
33816         * lib/crc.h: Likewise.
33817         * lib/creat-safer.c: Likewise.
33818         * lib/csharpcomp.c: Likewise.
33819         * lib/csharpcomp.h: Likewise.
33820         * lib/csharpexec.c: Likewise.
33821         * lib/csharpexec.h: Likewise.
33822         * lib/cycle-check.c: Likewise.
33823         * lib/cycle-check.h: Likewise.
33824         * lib/diacrit.c: Likewise.
33825         * lib/diacrit.h: Likewise.
33826         * lib/diffseq.h: Likewise.
33827         * lib/dirchownmod.c: Likewise.
33828         * lib/dirent.in.h: Likewise.
33829         * lib/dirfd.c: Likewise.
33830         * lib/dirfd.h: Likewise.
33831         * lib/dirname.c: Likewise.
33832         * lib/dirname.h: Likewise.
33833         * lib/dummy.c: Likewise.
33834         * lib/dup-safer.c: Likewise.
33835         * lib/dup2.c: Likewise.
33836         * lib/eealloc.h: Likewise.
33837         * lib/error.c: Likewise.
33838         * lib/error.h: Likewise.
33839         * lib/euidaccess.c: Likewise.
33840         * lib/exclude.c: Likewise.
33841         * lib/exclude.h: Likewise.
33842         * lib/execute.c: Likewise.
33843         * lib/execute.h: Likewise.
33844         * lib/exitfail.c: Likewise.
33845         * lib/exitfail.h: Likewise.
33846         * lib/expl.c: Likewise.
33847         * lib/fatal-signal.c: Likewise.
33848         * lib/fatal-signal.h: Likewise.
33849         * lib/fbufmode.c: Likewise.
33850         * lib/fbufmode.h: Likewise.
33851         * lib/fchdir.c: Likewise.
33852         * lib/fchmodat.c: Likewise.
33853         * lib/fchownat.c: Likewise.
33854         * lib/fcntl--.h: Likewise.
33855         * lib/fcntl-safer.h: Likewise.
33856         * lib/fcntl.in.h: Likewise.
33857         * lib/fd-safer.c: Likewise.
33858         * lib/fflush.c: Likewise.
33859         * lib/file-has-acl.c: Likewise.
33860         * lib/file-set.c: Likewise.
33861         * lib/file-type.c: Likewise.
33862         * lib/file-type.h: Likewise.
33863         * lib/fileblocks.c: Likewise.
33864         * lib/filemode.c: Likewise.
33865         * lib/filemode.h: Likewise.
33866         * lib/filename.h: Likewise.
33867         * lib/filenamecat.c: Likewise.
33868         * lib/filenamecat.h: Likewise.
33869         * lib/findprog.c: Likewise.
33870         * lib/findprog.h: Likewise.
33871         * lib/float.in.h: Likewise.
33872         * lib/floor.c: Likewise.
33873         * lib/floorf.c: Likewise.
33874         * lib/floorl.c: Likewise.
33875         * lib/fopen-safer.c: Likewise.
33876         * lib/fopen.c: Likewise.
33877         * lib/fpending.c: Likewise.
33878         * lib/fpending.h: Likewise.
33879         * lib/fprintf.c: Likewise.
33880         * lib/fprintftime.h: Likewise.
33881         * lib/fpucw.h: Likewise.
33882         * lib/fpurge.c: Likewise.
33883         * lib/fpurge.h: Likewise.
33884         * lib/freadable.c: Likewise.
33885         * lib/freadable.h: Likewise.
33886         * lib/freadahead.c: Likewise.
33887         * lib/freadahead.h: Likewise.
33888         * lib/freading.c: Likewise.
33889         * lib/freading.h: Likewise.
33890         * lib/free.c: Likewise.
33891         * lib/freopen.c: Likewise.
33892         * lib/frexp.c: Likewise.
33893         * lib/frexpl.c: Likewise.
33894         * lib/fseek.c: Likewise.
33895         * lib/fseterr.c: Likewise.
33896         * lib/fseterr.h: Likewise.
33897         * lib/fstatat.c: Likewise.
33898         * lib/fstrcmp.c: Likewise.
33899         * lib/fstrcmp.h: Likewise.
33900         * lib/fsusage.c: Likewise.
33901         * lib/fsusage.h: Likewise.
33902         * lib/ftell.c: Likewise.
33903         * lib/ftello.c: Likewise.
33904         * lib/fts-cycle.c: Likewise.
33905         * lib/fts.c: Likewise.
33906         * lib/fts_.h: Likewise.
33907         * lib/full-read.c: Likewise.
33908         * lib/full-read.h: Likewise.
33909         * lib/full-write.c: Likewise.
33910         * lib/full-write.h: Likewise.
33911         * lib/fwritable.c: Likewise.
33912         * lib/fwritable.h: Likewise.
33913         * lib/fwriteerror.c: Likewise.
33914         * lib/fwriteerror.h: Likewise.
33915         * lib/fwriting.c: Likewise.
33916         * lib/fwriting.h: Likewise.
33917         * lib/gcd.c: Likewise.
33918         * lib/gcd.h: Likewise.
33919         * lib/getcwd.c: Likewise.
33920         * lib/getdate.h: Likewise.
33921         * lib/getdate.y: Likewise.
33922         * lib/getdomainname.c: Likewise.
33923         * lib/getdomainname.h: Likewise.
33924         * lib/getgroups.c: Likewise.
33925         * lib/gethostname.c: Likewise.
33926         * lib/gethrxtime.c: Likewise.
33927         * lib/gethrxtime.h: Likewise.
33928         * lib/getloadavg.c: Likewise.
33929         * lib/getndelim2.c: Likewise.
33930         * lib/getndelim2.h: Likewise.
33931         * lib/getnline.c: Likewise.
33932         * lib/getnline.h: Likewise.
33933         * lib/getopt.c: Likewise.
33934         * lib/getopt.in.h: Likewise.
33935         * lib/getopt1.c: Likewise.
33936         * lib/getopt_int.h: Likewise.
33937         * lib/getpagesize.h: Likewise.
33938         * lib/getsubopt.c: Likewise.
33939         * lib/gettime.c: Likewise.
33940         * lib/getugroups.c: Likewise.
33941         * lib/getugroups.h: Likewise.
33942         * lib/getusershell.c: Likewise.
33943         * lib/gl_anyavltree_list1.h: Likewise.
33944         * lib/gl_anyavltree_list2.h: Likewise.
33945         * lib/gl_anyhash_list1.h: Likewise.
33946         * lib/gl_anyhash_list2.h: Likewise.
33947         * lib/gl_anylinked_list1.h: Likewise.
33948         * lib/gl_anylinked_list2.h: Likewise.
33949         * lib/gl_anyrbtree_list1.h: Likewise.
33950         * lib/gl_anyrbtree_list2.h: Likewise.
33951         * lib/gl_anytree_list1.h: Likewise.
33952         * lib/gl_anytree_list2.h: Likewise.
33953         * lib/gl_anytree_oset.h: Likewise.
33954         * lib/gl_anytreehash_list1.h: Likewise.
33955         * lib/gl_anytreehash_list2.h: Likewise.
33956         * lib/gl_array_list.c: Likewise.
33957         * lib/gl_array_list.h: Likewise.
33958         * lib/gl_array_oset.c: Likewise.
33959         * lib/gl_array_oset.h: Likewise.
33960         * lib/gl_avltree_list.c: Likewise.
33961         * lib/gl_avltree_list.h: Likewise.
33962         * lib/gl_avltree_oset.c: Likewise.
33963         * lib/gl_avltree_oset.h: Likewise.
33964         * lib/gl_avltreehash_list.c: Likewise.
33965         * lib/gl_avltreehash_list.h: Likewise.
33966         * lib/gl_carray_list.c: Likewise.
33967         * lib/gl_carray_list.h: Likewise.
33968         * lib/gl_linked_list.c: Likewise.
33969         * lib/gl_linked_list.h: Likewise.
33970         * lib/gl_linkedhash_list.c: Likewise.
33971         * lib/gl_linkedhash_list.h: Likewise.
33972         * lib/gl_list.c: Likewise.
33973         * lib/gl_list.h: Likewise.
33974         * lib/gl_oset.c: Likewise.
33975         * lib/gl_oset.h: Likewise.
33976         * lib/gl_rbtree_list.c: Likewise.
33977         * lib/gl_rbtree_list.h: Likewise.
33978         * lib/gl_rbtree_oset.c: Likewise.
33979         * lib/gl_rbtree_oset.h: Likewise.
33980         * lib/gl_rbtreehash_list.c: Likewise.
33981         * lib/gl_rbtreehash_list.h: Likewise.
33982         * lib/gl_sublist.c: Likewise.
33983         * lib/gl_sublist.h: Likewise.
33984         * lib/group-member.c: Likewise.
33985         * lib/group-member.h: Likewise.
33986         * lib/hard-locale.c: Likewise.
33987         * lib/hard-locale.h: Likewise.
33988         * lib/hash-pjw.c: Likewise.
33989         * lib/hash-pjw.h: Likewise.
33990         * lib/hash-triple.c: Likewise.
33991         * lib/hash.c: Likewise.
33992         * lib/hash.h: Likewise.
33993         * lib/human.c: Likewise.
33994         * lib/human.h: Likewise.
33995         * lib/i-ring.c: Likewise.
33996         * lib/i-ring.h: Likewise.
33997         * lib/idcache.c: Likewise.
33998         * lib/imaxabs.c: Likewise.
33999         * lib/imaxdiv.c: Likewise.
34000         * lib/inet_pton.c: Likewise.
34001         * lib/inet_pton.h: Likewise.
34002         * lib/intprops.h: Likewise.
34003         * lib/inttostr.c: Likewise.
34004         * lib/inttostr.h: Likewise.
34005         * lib/inttypes.in.h: Likewise.
34006         * lib/isapipe.c: Likewise.
34007         * lib/isdir.c: Likewise.
34008         * lib/isnan.c: Likewise.
34009         * lib/isnan.h: Likewise.
34010         * lib/isnanf.c: Likewise.
34011         * lib/isnanf.h: Likewise.
34012         * lib/isnanl-nolibm.h: Likewise.
34013         * lib/isnanl.c: Likewise.
34014         * lib/isnanl.h: Likewise.
34015         * lib/javacomp.c: Likewise.
34016         * lib/javacomp.h: Likewise.
34017         * lib/javaexec.c: Likewise.
34018         * lib/javaexec.h: Likewise.
34019         * lib/javaversion.c: Likewise.
34020         * lib/javaversion.h: Likewise.
34021         * lib/javaversion.java: Likewise.
34022         * lib/lbrkprop.h: Likewise.
34023         * lib/lchmod.h: Likewise.
34024         * lib/lchown.c: Likewise.
34025         * lib/ldexpl.c: Likewise.
34026         * lib/linebreak.c: Likewise.
34027         * lib/linebreak.h: Likewise.
34028         * lib/linebuffer.c: Likewise.
34029         * lib/linebuffer.h: Likewise.
34030         * lib/locale.in.h: Likewise.
34031         * lib/logl.c: Likewise.
34032         * lib/long-options.c: Likewise.
34033         * lib/long-options.h: Likewise.
34034         * lib/lstat.c: Likewise.
34035         * lib/lstat.h: Likewise.
34036         * lib/math.in.h: Likewise.
34037         * lib/mbchar.c: Likewise.
34038         * lib/mbchar.h: Likewise.
34039         * lib/mbfile.h: Likewise.
34040         * lib/mbiter.h: Likewise.
34041         * lib/mbscasecmp.c: Likewise.
34042         * lib/mbscasestr.c: Likewise.
34043         * lib/mbschr.c: Likewise.
34044         * lib/mbscspn.c: Likewise.
34045         * lib/mbslen.c: Likewise.
34046         * lib/mbsncasecmp.c: Likewise.
34047         * lib/mbsnlen.c: Likewise.
34048         * lib/mbspbrk.c: Likewise.
34049         * lib/mbspcasecmp.c: Likewise.
34050         * lib/mbsrchr.c: Likewise.
34051         * lib/mbssep.c: Likewise.
34052         * lib/mbsspn.c: Likewise.
34053         * lib/mbsstr.c: Likewise.
34054         * lib/mbstok_r.c: Likewise.
34055         * lib/mbswidth.c: Likewise.
34056         * lib/mbswidth.h: Likewise.
34057         * lib/mbuiter.h: Likewise.
34058         * lib/memcasecmp.c: Likewise.
34059         * lib/memcasecmp.h: Likewise.
34060         * lib/memchr.c: Likewise.
34061         * lib/memcmp.c: Likewise.
34062         * lib/memcoll.c: Likewise.
34063         * lib/memcoll.h: Likewise.
34064         * lib/memcpy.c: Likewise.
34065         * lib/memrchr.c: Likewise.
34066         * lib/mkancesdirs.c: Likewise.
34067         * lib/mkdir-p.c: Likewise.
34068         * lib/mkdir-p.h: Likewise.
34069         * lib/mkdir.c: Likewise.
34070         * lib/mkdirat.c: Likewise.
34071         * lib/mkdtemp.c: Likewise.
34072         * lib/mkstemp-safer.c: Likewise.
34073         * lib/mkstemp.c: Likewise.
34074         * lib/modechange.c: Likewise.
34075         * lib/modechange.h: Likewise.
34076         * lib/mountlist.c: Likewise.
34077         * lib/mountlist.h: Likewise.
34078         * lib/mpsort.c: Likewise.
34079         * lib/nanosleep.c: Likewise.
34080         * lib/obstack.c: Likewise.
34081         * lib/obstack.h: Likewise.
34082         * lib/open-safer.c: Likewise.
34083         * lib/open.c: Likewise.
34084         * lib/openat-die.c: Likewise.
34085         * lib/openat-priv.h: Likewise.
34086         * lib/openat-proc.c: Likewise.
34087         * lib/openat.c: Likewise.
34088         * lib/openat.h: Likewise.
34089         * lib/pagealign_alloc.c: Likewise.
34090         * lib/pagealign_alloc.h: Likewise.
34091         * lib/physmem.c: Likewise.
34092         * lib/physmem.h: Likewise.
34093         * lib/pipe-safer.c: Likewise.
34094         * lib/pipe.c: Likewise.
34095         * lib/pipe.h: Likewise.
34096         * lib/posixtm.c: Likewise.
34097         * lib/posixtm.h: Likewise.
34098         * lib/posixver.c: Likewise.
34099         * lib/printf-frexp.c: Likewise.
34100         * lib/printf-frexp.h: Likewise.
34101         * lib/printf-frexpl.c: Likewise.
34102         * lib/printf-frexpl.h: Likewise.
34103         * lib/printf.c: Likewise.
34104         * lib/progname.c: Likewise.
34105         * lib/progname.h: Likewise.
34106         * lib/progreloc.c: Likewise.
34107         * lib/putenv.c: Likewise.
34108         * lib/quote.c: Likewise.
34109         * lib/quote.h: Likewise.
34110         * lib/quotearg.c: Likewise.
34111         * lib/quotearg.h: Likewise.
34112         * lib/raise.c: Likewise.
34113         * lib/readline.c: Likewise.
34114         * lib/readline.h: Likewise.
34115         * lib/readlink.c: Likewise.
34116         * lib/readtokens.c: Likewise.
34117         * lib/readtokens.h: Likewise.
34118         * lib/readtokens0.c: Likewise.
34119         * lib/readtokens0.h: Likewise.
34120         * lib/readutmp.c: Likewise.
34121         * lib/readutmp.h: Likewise.
34122         * lib/realloc.c: Likewise.
34123         * lib/relocwrapper.c: Likewise.
34124         * lib/rename-dest-slash.c: Likewise.
34125         * lib/rename.c: Likewise.
34126         * lib/rmdir.c: Likewise.
34127         * lib/rpmatch.c: Likewise.
34128         * lib/safe-read.c: Likewise.
34129         * lib/safe-read.h: Likewise.
34130         * lib/safe-write.c: Likewise.
34131         * lib/safe-write.h: Likewise.
34132         * lib/same-inode.h: Likewise.
34133         * lib/same.c: Likewise.
34134         * lib/same.h: Likewise.
34135         * lib/save-cwd.c: Likewise.
34136         * lib/save-cwd.h: Likewise.
34137         * lib/savedir.c: Likewise.
34138         * lib/savedir.h: Likewise.
34139         * lib/savewd.c: Likewise.
34140         * lib/savewd.h: Likewise.
34141         * lib/search.in.h: Likewise.
34142         * lib/setenv.c: Likewise.
34143         * lib/setenv.h: Likewise.
34144         * lib/settime.c: Likewise.
34145         * lib/sh-quote.c: Likewise.
34146         * lib/sh-quote.h: Likewise.
34147         * lib/sig2str.c: Likewise.
34148         * lib/sig2str.h: Likewise.
34149         * lib/signal.in.h: Likewise.
34150         * lib/signbitd.c: Likewise.
34151         * lib/signbitf.c: Likewise.
34152         * lib/signbitl.c: Likewise.
34153         * lib/sigprocmask.c: Likewise.
34154         * lib/sincosl.c: Likewise.
34155         * lib/sleep.c: Likewise.
34156         * lib/sprintf.c: Likewise.
34157         * lib/sqrtl.c: Likewise.
34158         * lib/stat-time.h: Likewise.
34159         * lib/stdio--.h: Likewise.
34160         * lib/stdio-safer.h: Likewise.
34161         * lib/stdlib--.h: Likewise.
34162         * lib/stdlib-safer.h: Likewise.
34163         * lib/stdlib.in.h: Likewise.
34164         * lib/stpcpy.c: Likewise.
34165         * lib/stpncpy.c: Likewise.
34166         * lib/strchrnul.c: Likewise.
34167         * lib/strcspn.c: Likewise.
34168         * lib/strerror.c: Likewise.
34169         * lib/strftime.c: Likewise.
34170         * lib/strftime.h: Likewise.
34171         * lib/striconveh.c: Likewise.
34172         * lib/striconveh.h: Likewise.
34173         * lib/striconveha.c: Likewise.
34174         * lib/striconveha.h: Likewise.
34175         * lib/stripslash.c: Likewise.
34176         * lib/strnlen1.c: Likewise.
34177         * lib/strnlen1.h: Likewise.
34178         * lib/strtod.c: Likewise.
34179         * lib/strtoimax.c: Likewise.
34180         * lib/strtok_r.c: Likewise.
34181         * lib/strtol.c: Likewise.
34182         * lib/strtoll.c: Likewise.
34183         * lib/strtoul.c: Likewise.
34184         * lib/strtoull.c: Likewise.
34185         * lib/sysexits.in.h: Likewise.
34186         * lib/tempname.c: Likewise.
34187         * lib/tempname.h: Likewise.
34188         * lib/timespec.h: Likewise.
34189         * lib/tls.c: Likewise.
34190         * lib/tls.h: Likewise.
34191         * lib/tmpdir.c: Likewise.
34192         * lib/tmpdir.h: Likewise.
34193         * lib/tmpfile-safer.c: Likewise.
34194         * lib/tmpfile.c: Likewise.
34195         * lib/trigl.c: Likewise.
34196         * lib/trigl.h: Likewise.
34197         * lib/trim.c: Likewise.
34198         * lib/trim.h: Likewise.
34199         * lib/trunc.c: Likewise.
34200         * lib/truncf.c: Likewise.
34201         * lib/truncl.c: Likewise.
34202         * lib/tsearch.c: Likewise.
34203         * lib/unicodeio.c: Likewise.
34204         * lib/unicodeio.h: Likewise.
34205         * lib/unistd--.h: Likewise.
34206         * lib/unistd-safer.h: Likewise.
34207         * lib/unistdio/ulc-fprintf.c: Likewise.
34208         * lib/unistdio/ulc-vfprintf.c: Likewise.
34209         * lib/unlinkdir.c: Likewise.
34210         * lib/unlinkdir.h: Likewise.
34211         * lib/unlocked-io.h: Likewise.
34212         * lib/unsetenv.c: Likewise.
34213         * lib/userspec.c: Likewise.
34214         * lib/utime.c: Likewise.
34215         * lib/utimecmp.c: Likewise.
34216         * lib/utimecmp.h: Likewise.
34217         * lib/utimens.c: Likewise.
34218         * lib/verify.h: Likewise.
34219         * lib/verror.c: Likewise.
34220         * lib/verror.h: Likewise.
34221         * lib/version-etc-fsf.c: Likewise.
34222         * lib/version-etc.c: Likewise.
34223         * lib/version-etc.h: Likewise.
34224         * lib/vfprintf.c: Likewise.
34225         * lib/vprintf.c: Likewise.
34226         * lib/vsprintf.c: Likewise.
34227         * lib/w32spawn.h: Likewise.
34228         * lib/wait-process.c: Likewise.
34229         * lib/wait-process.h: Likewise.
34230         * lib/wcwidth.c: Likewise.
34231         * lib/write-any-file.c: Likewise.
34232         * lib/xalloc-die.c: Likewise.
34233         * lib/xalloc.h: Likewise.
34234         * lib/xasprintf.c: Likewise.
34235         * lib/xgetcwd.c: Likewise.
34236         * lib/xgetcwd.h: Likewise.
34237         * lib/xgetdomainname.c: Likewise.
34238         * lib/xgetdomainname.h: Likewise.
34239         * lib/xgethostname.c: Likewise.
34240         * lib/xmalloc.c: Likewise.
34241         * lib/xmalloca.c: Likewise.
34242         * lib/xmalloca.h: Likewise.
34243         * lib/xmemcoll.c: Likewise.
34244         * lib/xnanosleep.c: Likewise.
34245         * lib/xreadlink.c: Likewise.
34246         * lib/xreadlink.h: Likewise.
34247         * lib/xsetenv.c: Likewise.
34248         * lib/xsetenv.h: Likewise.
34249         * lib/xstriconv.c: Likewise.
34250         * lib/xstriconv.h: Likewise.
34251         * lib/xstrndup.c: Likewise.
34252         * lib/xstrndup.h: Likewise.
34253         * lib/xstrtod.c: Likewise.
34254         * lib/xstrtod.h: Likewise.
34255         * lib/xstrtol-error.c: Likewise.
34256         * lib/xstrtol.c: Likewise.
34257         * lib/xstrtol.h: Likewise.
34258         * lib/xtime.h: Likewise.
34259         * lib/xvasprintf.c: Likewise.
34260         * lib/xvasprintf.h: Likewise.
34261         * lib/yesno.c: Likewise.
34262         * lib/yesno.h: Likewise.
34263         * posix-modules: Likewise.
34264         * tests/test-alloca-opt.c: Likewise.
34265         * tests/test-arcfour.c: Likewise.
34266         * tests/test-arctwo.c: Likewise.
34267         * tests/test-argmatch.c: Likewise.
34268         * tests/test-argp-2.sh: Likewise.
34269         * tests/test-argp.c: Likewise.
34270         * tests/test-arpa_inet.c: Likewise.
34271         * tests/test-array_list.c: Likewise.
34272         * tests/test-array_oset.c: Likewise.
34273         * tests/test-atexit.c: Likewise.
34274         * tests/test-avltree_list.c: Likewise.
34275         * tests/test-avltree_oset.c: Likewise.
34276         * tests/test-avltreehash_list.c: Likewise.
34277         * tests/test-base64.c: Likewise.
34278         * tests/test-binary-io.c: Likewise.
34279         * tests/test-byteswap.c: Likewise.
34280         * tests/test-c-ctype.c: Likewise.
34281         * tests/test-c-strcasecmp.c: Likewise.
34282         * tests/test-c-strcasestr.c: Likewise.
34283         * tests/test-c-strncasecmp.c: Likewise.
34284         * tests/test-c-strstr.c: Likewise.
34285         * tests/test-canonicalize-lgpl.c: Likewise.
34286         * tests/test-canonicalize.c: Likewise.
34287         * tests/test-carray_list.c: Likewise.
34288         * tests/test-ceilf.c: Likewise.
34289         * tests/test-ceill.c: Likewise.
34290         * tests/test-count-one-bits.c: Likewise.
34291         * tests/test-crc.c: Likewise.
34292         * tests/test-dirname.c: Likewise.
34293         * tests/test-fbufmode.c: Likewise.
34294         * tests/test-fcntl.c: Likewise.
34295         * tests/test-fflush.c: Likewise.
34296         * tests/test-floorf.c: Likewise.
34297         * tests/test-floorl.c: Likewise.
34298         * tests/test-fopen.c: Likewise.
34299         * tests/test-fprintf-posix.c: Likewise.
34300         * tests/test-fprintf-posix.h: Likewise.
34301         * tests/test-fpurge.c: Likewise.
34302         * tests/test-freadable.c: Likewise.
34303         * tests/test-freadahead.c: Likewise.
34304         * tests/test-freading.c: Likewise.
34305         * tests/test-freopen.c: Likewise.
34306         * tests/test-frexp.c: Likewise.
34307         * tests/test-frexpl.c: Likewise.
34308         * tests/test-fseek.c: Likewise.
34309         * tests/test-fseeko.c: Likewise.
34310         * tests/test-fseterr.c: Likewise.
34311         * tests/test-fstrcmp.c: Likewise.
34312         * tests/test-ftell.c: Likewise.
34313         * tests/test-ftello.c: Likewise.
34314         * tests/test-fwritable.c: Likewise.
34315         * tests/test-fwriting.c: Likewise.
34316         * tests/test-getaddrinfo.c: Likewise.
34317         * tests/test-getpass.c: Likewise.
34318         * tests/test-gettimeofday.c: Likewise.
34319         * tests/test-hmac-md5.c: Likewise.
34320         * tests/test-hmac-sha1.c: Likewise.
34321         * tests/test-iconv.c: Likewise.
34322         * tests/test-iconvme.c: Likewise.
34323         * tests/test-inttypes.c: Likewise.
34324         * tests/test-isnan.c: Likewise.
34325         * tests/test-isnanf.c: Likewise.
34326         * tests/test-isnanl-nolibm.c: Likewise.
34327         * tests/test-isnanl.c: Likewise.
34328         * tests/test-isnanl.h: Likewise.
34329         * tests/test-ldexpl.c: Likewise.
34330         * tests/test-linked_list.c: Likewise.
34331         * tests/test-linkedhash_list.c: Likewise.
34332         * tests/test-locale.c: Likewise.
34333         * tests/test-localename.c: Likewise.
34334         * tests/test-lock.c: Likewise.
34335         * tests/test-lseek.c: Likewise.
34336         * tests/test-malloca.c: Likewise.
34337         * tests/test-math.c: Likewise.
34338         * tests/test-mbscasecmp.c: Likewise.
34339         * tests/test-mbscasestr1.c: Likewise.
34340         * tests/test-mbscasestr2.c: Likewise.
34341         * tests/test-mbscasestr3.c: Likewise.
34342         * tests/test-mbscasestr4.c: Likewise.
34343         * tests/test-mbschr.c: Likewise.
34344         * tests/test-mbscspn.c: Likewise.
34345         * tests/test-mbsncasecmp.c: Likewise.
34346         * tests/test-mbspbrk.c: Likewise.
34347         * tests/test-mbspcasecmp.c: Likewise.
34348         * tests/test-mbsrchr.c: Likewise.
34349         * tests/test-mbsspn.c: Likewise.
34350         * tests/test-mbsstr1.c: Likewise.
34351         * tests/test-mbsstr2.c: Likewise.
34352         * tests/test-mbsstr3.c: Likewise.
34353         * tests/test-md5.c: Likewise.
34354         * tests/test-memmem.c: Likewise.
34355         * tests/test-netinet_in.c: Likewise.
34356         * tests/test-open.c: Likewise.
34357         * tests/test-printf-frexp.c: Likewise.
34358         * tests/test-printf-frexpl.c: Likewise.
34359         * tests/test-printf-posix.c: Likewise.
34360         * tests/test-printf-posix.h: Likewise.
34361         * tests/test-rbtree_list.c: Likewise.
34362         * tests/test-rbtree_oset.c: Likewise.
34363         * tests/test-rbtreehash_list.c: Likewise.
34364         * tests/test-read-file.c: Likewise.
34365         * tests/test-rijndael.c: Likewise.
34366         * tests/test-search.c: Likewise.
34367         * tests/test-signbit.c: Likewise.
34368         * tests/test-sleep.c: Likewise.
34369         * tests/test-snprintf-posix.c: Likewise.
34370         * tests/test-snprintf-posix.h: Likewise.
34371         * tests/test-snprintf.c: Likewise.
34372         * tests/test-sprintf-posix.c: Likewise.
34373         * tests/test-sprintf-posix.h: Likewise.
34374         * tests/test-stat-time.c: Likewise.
34375         * tests/test-stdbool.c: Likewise.
34376         * tests/test-stdint.c: Likewise.
34377         * tests/test-stdio.c: Likewise.
34378         * tests/test-stdlib.c: Likewise.
34379         * tests/test-stpncpy.c: Likewise.
34380         * tests/test-strcasestr.c: Likewise.
34381         * tests/test-striconv.c: Likewise.
34382         * tests/test-striconveh.c: Likewise.
34383         * tests/test-striconveha.c: Likewise.
34384         * tests/test-string.c: Likewise.
34385         * tests/test-sys_select.c: Likewise.
34386         * tests/test-sys_socket.c: Likewise.
34387         * tests/test-sys_stat.c: Likewise.
34388         * tests/test-sys_time.c: Likewise.
34389         * tests/test-sysexits.c: Likewise.
34390         * tests/test-time.c: Likewise.
34391         * tests/test-tls.c: Likewise.
34392         * tests/test-trunc.c: Likewise.
34393         * tests/test-truncf.c: Likewise.
34394         * tests/test-truncl.c: Likewise.
34395         * tests/test-unistd.c: Likewise.
34396         * tests/test-vasnprintf-posix.c: Likewise.
34397         * tests/test-vasnprintf-posix2.c: Likewise.
34398         * tests/test-vasnprintf.c: Likewise.
34399         * tests/test-vasprintf-posix.c: Likewise.
34400         * tests/test-vasprintf.c: Likewise.
34401         * tests/test-verify.c: Likewise.
34402         * tests/test-vfprintf-posix.c: Likewise.
34403         * tests/test-vprintf-posix.c: Likewise.
34404         * tests/test-vsnprintf-posix.c: Likewise.
34405         * tests/test-vsnprintf.c: Likewise.
34406         * tests/test-vsprintf-posix.c: Likewise.
34407         * tests/test-wchar.c: Likewise.
34408         * tests/test-wctype.c: Likewise.
34409         * tests/test-wcwidth.c: Likewise.
34410         * tests/test-xstrtol.c: Likewise.
34411         * tests/test-xvasprintf.c: Likewise.
34412         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34413         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34414         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34415         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34416         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34417         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34418         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34419         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34420         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34421         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34422         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34423         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34424         * tests/uniname/test-uninames.c: Likewise.
34425         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34426         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34427         * tests/unistdio/test-u16-printf1.h: Likewise.
34428         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34429         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34430         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34431         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34432         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34433         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34434         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34435         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34436         * tests/unistdio/test-u32-printf1.h: Likewise.
34437         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34438         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34439         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34440         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34441         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34442         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34443         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34444         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34445         * tests/unistdio/test-u8-printf1.h: Likewise.
34446         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34447         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34448         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34449         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34450         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34451         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34452         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34453         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34454         * tests/unistdio/test-ulc-printf1.h: Likewise.
34455         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34456         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34457         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34458         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34459         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34460         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34461         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34462         * tests/uniwidth/test-u16-width.c: Likewise.
34463         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34464         * tests/uniwidth/test-u32-width.c: Likewise.
34465         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34466         * tests/uniwidth/test-u8-width.c: Likewise.
34467         * tests/uniwidth/test-uc_width.c: Likewise.
34468         * config/srclist-update: Likewise.
34469         (fixlicense): Update to GPLv3+.
34470
34471         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34472         * tests/test-tsearch.c: Change copyright notice.
34473
34474         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34475         * lib/c-strcaseeq.h: Change copyright notice.
34476         * lib/streq.h: Likewise.
34477         * lib/uniconv.h: Likewise.
34478         * lib/uniconv/u-conv-from-enc.h: Likewise.
34479         * lib/uniconv/u-conv-to-enc.h: Likewise.
34480         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34481         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34482         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34483         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34484         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34485         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34486         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34487         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34488         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34489         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34490         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34491         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34492         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34493         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34494         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34495         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34496         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34497         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34498         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34499         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34500         * lib/uniname.h: Likewise.
34501         * lib/uniname/uniname.c: Likewise.
34502         * lib/unistdio.h: Likewise.
34503         * lib/unistdio/u-asnprintf.h: Likewise.
34504         * lib/unistdio/u-asprintf.h: Likewise.
34505         * lib/unistdio/u-printf-args.c: Likewise.
34506         * lib/unistdio/u-printf-args.h: Likewise.
34507         * lib/unistdio/u-printf-parse.h: Likewise.
34508         * lib/unistdio/u-snprintf.h: Likewise.
34509         * lib/unistdio/u-sprintf.h: Likewise.
34510         * lib/unistdio/u-vasprintf.h: Likewise.
34511         * lib/unistdio/u-vsnprintf.h: Likewise.
34512         * lib/unistdio/u-vsprintf.h: Likewise.
34513         * lib/unistdio/u16-asnprintf.c: Likewise.
34514         * lib/unistdio/u16-asprintf.c: Likewise.
34515         * lib/unistdio/u16-printf-parse.c: Likewise.
34516         * lib/unistdio/u16-snprintf.c: Likewise.
34517         * lib/unistdio/u16-sprintf.c: Likewise.
34518         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34519         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34520         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34521         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34522         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34523         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34524         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34525         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34526         * lib/unistdio/u16-vasnprintf.c: Likewise.
34527         * lib/unistdio/u16-vasprintf.c: Likewise.
34528         * lib/unistdio/u16-vsnprintf.c: Likewise.
34529         * lib/unistdio/u16-vsprintf.c: Likewise.
34530         * lib/unistdio/u32-asnprintf.c: Likewise.
34531         * lib/unistdio/u32-asprintf.c: Likewise.
34532         * lib/unistdio/u32-printf-parse.c: Likewise.
34533         * lib/unistdio/u32-snprintf.c: Likewise.
34534         * lib/unistdio/u32-sprintf.c: Likewise.
34535         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34536         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34537         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34538         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34539         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34540         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34541         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34542         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34543         * lib/unistdio/u32-vasnprintf.c: Likewise.
34544         * lib/unistdio/u32-vasprintf.c: Likewise.
34545         * lib/unistdio/u32-vsnprintf.c: Likewise.
34546         * lib/unistdio/u32-vsprintf.c: Likewise.
34547         * lib/unistdio/u8-asnprintf.c: Likewise.
34548         * lib/unistdio/u8-asprintf.c: Likewise.
34549         * lib/unistdio/u8-printf-parse.c: Likewise.
34550         * lib/unistdio/u8-snprintf.c: Likewise.
34551         * lib/unistdio/u8-sprintf.c: Likewise.
34552         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34553         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34554         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34555         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34556         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34557         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34558         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34559         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34560         * lib/unistdio/u8-vasnprintf.c: Likewise.
34561         * lib/unistdio/u8-vasprintf.c: Likewise.
34562         * lib/unistdio/u8-vsnprintf.c: Likewise.
34563         * lib/unistdio/u8-vsprintf.c: Likewise.
34564         * lib/unistdio/ulc-asnprintf.c: Likewise.
34565         * lib/unistdio/ulc-asprintf.c: Likewise.
34566         * lib/unistdio/ulc-printf-parse.c: Likewise.
34567         * lib/unistdio/ulc-snprintf.c: Likewise.
34568         * lib/unistdio/ulc-sprintf.c: Likewise.
34569         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34570         * lib/unistdio/ulc-vasprintf.c: Likewise.
34571         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34572         * lib/unistdio/ulc-vsprintf.c: Likewise.
34573         * lib/unistr.h: Likewise.
34574         * lib/unistr/u-cpy-alloc.h: Likewise.
34575         * lib/unistr/u-cpy.h: Likewise.
34576         * lib/unistr/u-endswith.h: Likewise.
34577         * lib/unistr/u-move.h: Likewise.
34578         * lib/unistr/u-set.h: Likewise.
34579         * lib/unistr/u-startswith.h: Likewise.
34580         * lib/unistr/u-stpcpy.h: Likewise.
34581         * lib/unistr/u-stpncpy.h: Likewise.
34582         * lib/unistr/u-strcat.h: Likewise.
34583         * lib/unistr/u-strcpy.h: Likewise.
34584         * lib/unistr/u-strcspn.h: Likewise.
34585         * lib/unistr/u-strdup.h: Likewise.
34586         * lib/unistr/u-strlen.h: Likewise.
34587         * lib/unistr/u-strncat.h: Likewise.
34588         * lib/unistr/u-strncpy.h: Likewise.
34589         * lib/unistr/u-strnlen.h: Likewise.
34590         * lib/unistr/u-strpbrk.h: Likewise.
34591         * lib/unistr/u-strspn.h: Likewise.
34592         * lib/unistr/u-strstr.h: Likewise.
34593         * lib/unistr/u-strtok.h: Likewise.
34594         * lib/unistr/u16-check.c: Likewise.
34595         * lib/unistr/u16-chr.c: Likewise.
34596         * lib/unistr/u16-cmp.c: Likewise.
34597         * lib/unistr/u16-cpy-alloc.c: Likewise.
34598         * lib/unistr/u16-cpy.c: Likewise.
34599         * lib/unistr/u16-endswith.c: Likewise.
34600         * lib/unistr/u16-mblen.c: Likewise.
34601         * lib/unistr/u16-mbsnlen.c: Likewise.
34602         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34603         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34604         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34605         * lib/unistr/u16-mbtouc.c: Likewise.
34606         * lib/unistr/u16-mbtoucr.c: Likewise.
34607         * lib/unistr/u16-move.c: Likewise.
34608         * lib/unistr/u16-next.c: Likewise.
34609         * lib/unistr/u16-prev.c: Likewise.
34610         * lib/unistr/u16-set.c: Likewise.
34611         * lib/unistr/u16-startswith.c: Likewise.
34612         * lib/unistr/u16-stpcpy.c: Likewise.
34613         * lib/unistr/u16-stpncpy.c: Likewise.
34614         * lib/unistr/u16-strcat.c: Likewise.
34615         * lib/unistr/u16-strchr.c: Likewise.
34616         * lib/unistr/u16-strcmp.c: Likewise.
34617         * lib/unistr/u16-strcpy.c: Likewise.
34618         * lib/unistr/u16-strcspn.c: Likewise.
34619         * lib/unistr/u16-strdup.c: Likewise.
34620         * lib/unistr/u16-strlen.c: Likewise.
34621         * lib/unistr/u16-strmblen.c: Likewise.
34622         * lib/unistr/u16-strmbtouc.c: Likewise.
34623         * lib/unistr/u16-strncat.c: Likewise.
34624         * lib/unistr/u16-strncmp.c: Likewise.
34625         * lib/unistr/u16-strncpy.c: Likewise.
34626         * lib/unistr/u16-strnlen.c: Likewise.
34627         * lib/unistr/u16-strpbrk.c: Likewise.
34628         * lib/unistr/u16-strrchr.c: Likewise.
34629         * lib/unistr/u16-strspn.c: Likewise.
34630         * lib/unistr/u16-strstr.c: Likewise.
34631         * lib/unistr/u16-strtok.c: Likewise.
34632         * lib/unistr/u16-to-u32.c: Likewise.
34633         * lib/unistr/u16-to-u8.c: Likewise.
34634         * lib/unistr/u16-uctomb-aux.c: Likewise.
34635         * lib/unistr/u16-uctomb.c: Likewise.
34636         * lib/unistr/u32-check.c: Likewise.
34637         * lib/unistr/u32-chr.c: Likewise.
34638         * lib/unistr/u32-cmp.c: Likewise.
34639         * lib/unistr/u32-cpy-alloc.c: Likewise.
34640         * lib/unistr/u32-cpy.c: Likewise.
34641         * lib/unistr/u32-endswith.c: Likewise.
34642         * lib/unistr/u32-mblen.c: Likewise.
34643         * lib/unistr/u32-mbsnlen.c: Likewise.
34644         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34645         * lib/unistr/u32-mbtouc.c: Likewise.
34646         * lib/unistr/u32-mbtoucr.c: Likewise.
34647         * lib/unistr/u32-move.c: Likewise.
34648         * lib/unistr/u32-next.c: Likewise.
34649         * lib/unistr/u32-prev.c: Likewise.
34650         * lib/unistr/u32-set.c: Likewise.
34651         * lib/unistr/u32-startswith.c: Likewise.
34652         * lib/unistr/u32-stpcpy.c: Likewise.
34653         * lib/unistr/u32-stpncpy.c: Likewise.
34654         * lib/unistr/u32-strcat.c: Likewise.
34655         * lib/unistr/u32-strchr.c: Likewise.
34656         * lib/unistr/u32-strcmp.c: Likewise.
34657         * lib/unistr/u32-strcpy.c: Likewise.
34658         * lib/unistr/u32-strcspn.c: Likewise.
34659         * lib/unistr/u32-strdup.c: Likewise.
34660         * lib/unistr/u32-strlen.c: Likewise.
34661         * lib/unistr/u32-strmblen.c: Likewise.
34662         * lib/unistr/u32-strmbtouc.c: Likewise.
34663         * lib/unistr/u32-strncat.c: Likewise.
34664         * lib/unistr/u32-strncmp.c: Likewise.
34665         * lib/unistr/u32-strncpy.c: Likewise.
34666         * lib/unistr/u32-strnlen.c: Likewise.
34667         * lib/unistr/u32-strpbrk.c: Likewise.
34668         * lib/unistr/u32-strrchr.c: Likewise.
34669         * lib/unistr/u32-strspn.c: Likewise.
34670         * lib/unistr/u32-strstr.c: Likewise.
34671         * lib/unistr/u32-strtok.c: Likewise.
34672         * lib/unistr/u32-to-u16.c: Likewise.
34673         * lib/unistr/u32-to-u8.c: Likewise.
34674         * lib/unistr/u32-uctomb.c: Likewise.
34675         * lib/unistr/u8-check.c: Likewise.
34676         * lib/unistr/u8-chr.c: Likewise.
34677         * lib/unistr/u8-cmp.c: Likewise.
34678         * lib/unistr/u8-cpy-alloc.c: Likewise.
34679         * lib/unistr/u8-cpy.c: Likewise.
34680         * lib/unistr/u8-endswith.c: Likewise.
34681         * lib/unistr/u8-mblen.c: Likewise.
34682         * lib/unistr/u8-mbsnlen.c: Likewise.
34683         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34684         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34685         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34686         * lib/unistr/u8-mbtouc.c: Likewise.
34687         * lib/unistr/u8-mbtoucr.c: Likewise.
34688         * lib/unistr/u8-move.c: Likewise.
34689         * lib/unistr/u8-next.c: Likewise.
34690         * lib/unistr/u8-prev.c: Likewise.
34691         * lib/unistr/u8-set.c: Likewise.
34692         * lib/unistr/u8-startswith.c: Likewise.
34693         * lib/unistr/u8-stpcpy.c: Likewise.
34694         * lib/unistr/u8-stpncpy.c: Likewise.
34695         * lib/unistr/u8-strcat.c: Likewise.
34696         * lib/unistr/u8-strchr.c: Likewise.
34697         * lib/unistr/u8-strcmp.c: Likewise.
34698         * lib/unistr/u8-strcpy.c: Likewise.
34699         * lib/unistr/u8-strcspn.c: Likewise.
34700         * lib/unistr/u8-strdup.c: Likewise.
34701         * lib/unistr/u8-strlen.c: Likewise.
34702         * lib/unistr/u8-strmblen.c: Likewise.
34703         * lib/unistr/u8-strmbtouc.c: Likewise.
34704         * lib/unistr/u8-strncat.c: Likewise.
34705         * lib/unistr/u8-strncmp.c: Likewise.
34706         * lib/unistr/u8-strncpy.c: Likewise.
34707         * lib/unistr/u8-strnlen.c: Likewise.
34708         * lib/unistr/u8-strpbrk.c: Likewise.
34709         * lib/unistr/u8-strrchr.c: Likewise.
34710         * lib/unistr/u8-strspn.c: Likewise.
34711         * lib/unistr/u8-strstr.c: Likewise.
34712         * lib/unistr/u8-strtok.c: Likewise.
34713         * lib/unistr/u8-to-u16.c: Likewise.
34714         * lib/unistr/u8-to-u32.c: Likewise.
34715         * lib/unistr/u8-uctomb-aux.c: Likewise.
34716         * lib/unistr/u8-uctomb.c: Likewise.
34717         * lib/unitypes.h: Likewise.
34718         * lib/uniwidth.h: Likewise.
34719         * lib/uniwidth/cjk.h: Likewise.
34720         * lib/uniwidth/u16-strwidth.c: Likewise.
34721         * lib/uniwidth/u16-width.c: Likewise.
34722         * lib/uniwidth/u32-strwidth.c: Likewise.
34723         * lib/uniwidth/u32-width.c: Likewise.
34724         * lib/uniwidth/u8-strwidth.c: Likewise.
34725         * lib/uniwidth/u8-width.c: Likewise.
34726         * lib/uniwidth/width.c: Likewise.
34727
34728 2007-10-07  Bruno Haible  <bruno@clisp.org>
34729
34730         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
34731         The file is still under LGPL (see modules/inttypes).
34732
34733 2007-10-06  Bruno Haible  <bruno@clisp.org>
34734
34735         * modules/trunc (Dependencies): Add 'extensions'.
34736         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
34737         Reported by Ben Pfaff <blp@gnu.org>.
34738
34739 2007-10-06  Bruno Haible  <bruno@clisp.org>
34740
34741         * modules/freopen-tests: New file.
34742         * tests/test-freopen.c: New file.
34743
34744         * modules/fopen-tests: New file.
34745         * tests/test-fopen.c: New file.
34746
34747         * modules/fopen: New file.
34748         * lib/fopen.c: New file.
34749         * m4/fopen.m4: New file.
34750         * modules/freopen: New file.
34751         * lib/freopen.c: New file.
34752         * m4/freopen.m4: New file.
34753         * lib/stdio.in.h (fopen, freopen): New declarations.
34754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
34755         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34756         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
34757         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34758         * doc/functions/fopen.texi: Mention the 'fopen' module.
34759         * doc/functions/freopen.texi: Mention the 'freopen' module.
34760
34761 2007-10-06  Bruno Haible  <bruno@clisp.org>
34762
34763         * modules/open-tests: New file.
34764         * tests/test-open.c: New file.
34765
34766         * modules/open: New file.
34767         * lib/open.c: New file.
34768         * m4/open.m4: New file.
34769         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
34770         lib/open.c does.
34771         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
34772         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
34773         macros.
34774         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
34775         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
34776         REPLACE_OPEN.
34777         * doc/functions/open.texi: Mention the 'open' module.
34778
34779 2007-10-04  Bruno Haible  <bruno@clisp.org>
34780
34781         * modules/ceill-tests: New file.
34782         * tests/test-ceill.c: New file.
34783
34784         * modules/ceill: New file.
34785         * lib/ceill.c: Replace entire file.
34786         * m4/ceill.m4: New file.
34787         * lib/math.in.h (ceill): Replace declaration.
34788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
34789         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
34790         * doc/functions/ceill.texi: Mention the 'ceill' module.
34791         * modules/mathl (Files): Remove lib/ceill.c.
34792         (Depends-on): Add ceill.
34793
34794 2007-10-04  Bruno Haible  <bruno@clisp.org>
34795
34796         * modules/ceilf-tests: New file.
34797         * tests/test-ceilf.c: New file.
34798
34799         * modules/ceilf: New file.
34800         * lib/ceil.c: New file.
34801         * lib/ceilf.c: New file.
34802         * m4/ceilf.m4: New file.
34803         * lib/math.in.h (ceilf): New declaration.
34804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
34805         HAVE_DECL_CEILF.
34806         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
34807         HAVE_DECL_CEILF.
34808         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
34809
34810 2007-10-04  Bruno Haible  <bruno@clisp.org>
34811
34812         * modules/floorl-tests: New file.
34813         * tests/test-floorl.c: New file.
34814
34815         * modules/floorl: New file.
34816         * lib/floorl.c: Replace entire file.
34817         * m4/floorl.m4: New file.
34818         * lib/math.in.h (floorl): Replace declaration.
34819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
34820         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
34821         * doc/functions/floorl.texi: Mention the 'floorl' module.
34822         * modules/mathl (Files): Remove lib/floorl.c.
34823         (Depends-on): Add floorl.
34824
34825 2007-10-04  Bruno Haible  <bruno@clisp.org>
34826
34827         * modules/floorf-tests: New file.
34828         * tests/test-floorf.c: New file.
34829
34830         * modules/floorf: New file.
34831         * lib/floor.c: New file.
34832         * lib/floorf.c: New file.
34833         * m4/floorf.m4: New file.
34834         * lib/math.in.h (floorf): New declaration.
34835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
34836         HAVE_DECL_FLOORF.
34837         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
34838         HAVE_DECL_FLOORF.
34839         * doc/functions/floorf.texi: Mention the 'floorf' module.
34840
34841 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
34842             Bruno Haible  <bruno@clisp.org>
34843
34844         Advertise for the Git server instead of the CVS server.
34845         * doc/gnulib-intro.texi (Steady Development): Mention the Git
34846         repository instead of the CVS one.
34847         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
34848         about all VCS systems generically.
34849         * doc/gnulib.texi (Introduction): Capitalize `Git'.
34850
34851 2007-10-04  Bruno Haible  <bruno@clisp.org>
34852
34853         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
34854         means.
34855         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
34856
34857 2007-10-04  Bruno Haible  <bruno@clisp.org>
34858
34859         * modules/truncl-tests: New file.
34860         * tests/test-truncl.c: New file.
34861
34862         * modules/truncl: New file.
34863         * lib/truncl.c: New file.
34864         * m4/truncl.m4: New file.
34865         * lib/math.in.h (truncl): New declaration.
34866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
34867         HAVE_DECL_TRUNCL.
34868         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
34869         HAVE_DECL_TRUNCL.
34870         * doc/functions/truncl.texi: Mention the 'truncl' module.
34871
34872 2007-10-04  Bruno Haible  <bruno@clisp.org>
34873
34874         * modules/truncf-tests: New file.
34875         * tests/test-truncf.c: New file.
34876
34877         * modules/truncf: New file.
34878         * lib/trunc.c: Make paramerizable through USE_* macros.
34879         * lib/truncf.c: New file.
34880         * m4/truncf.m4: New file.
34881         * lib/math.in.h (truncf): New declaration.
34882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
34883         HAVE_DECL_TRUNCF.
34884         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
34885         HAVE_DECL_TRUNCF.
34886         * doc/functions/truncf.texi: Mention the 'truncf' module.
34887
34888 2007-10-03  Bruno Haible  <bruno@clisp.org>
34889
34890         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34891         augmentation also for tests modules.
34892         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
34893         * modules/atexit-tests (Makefile.am): Likewise.
34894         * modules/binary-io-tests (Makefile.am): Likewise.
34895         * modules/c-strcase-tests (Makefile.am): Likewise.
34896         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
34897         * modules/canonicalize-tests (Makefile.am): Likewise.
34898         * modules/closein-tests (Makefile.am): Likewise.
34899         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34900         * modules/freadahead-tests (Makefile.am): Likewise.
34901         * modules/fseek-tests (Makefile.am): Likewise.
34902         * modules/fseeko-tests (Makefile.am): Likewise.
34903         * modules/ftell-tests (Makefile.am): Likewise.
34904         * modules/ftello-tests (Makefile.am): Likewise.
34905         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
34906         * modules/isnanl-tests (Makefile.am): Likewise.
34907         * modules/lseek-tests (Makefile.am): Likewise.
34908         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34909         * modules/mbscasestr-tests (Makefile.am): Likewise.
34910         * modules/mbschr-tests (Makefile.am): Likewise.
34911         * modules/mbscspn-tests (Makefile.am): Likewise.
34912         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34913         * modules/mbspbrk-tests (Makefile.am): Likewise.
34914         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34915         * modules/mbsrchr-tests (Makefile.am): Likewise.
34916         * modules/mbsspn-tests (Makefile.am): Likewise.
34917         * modules/mbsstr-tests (Makefile.am): Likewise.
34918         * modules/printf-posix-tests (Makefile.am): Likewise.
34919         * modules/snprintf-posix-tests (Makefile.am): Likewise.
34920         * modules/sprintf-posix-tests (Makefile.am): Likewise.
34921         * modules/tsearch-tests (Makefile.am): Likewise.
34922         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34923         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34924         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34925         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34926         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34927         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34928         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34929         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34930         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
34931         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
34932         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34933         * modules/xstrtol-tests (Makefile.am): Likewise.
34934         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34935         * modules/yesno-tests (Makefile.am): Likewise.
34936
34937 2007-10-03  Bruno Haible  <bruno@clisp.org>
34938
34939         * modules/trunc-tests: New file.
34940         * tests/test-trunc.c: New file.
34941
34942         * modules/trunc: New file.
34943         * lib/trunc.c: New file.
34944         * m4/trunc.m4: New file.
34945         * lib/math.in.h (trunc): New declaration.
34946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
34947         HAVE_DECL_TRUNC.
34948         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
34949         HAVE_DECL_TRUNC.
34950         * doc/functions/trunc.texi: Mention the 'trunc' module.
34951
34952 2007-10-03  Bruno Haible  <bruno@clisp.org>
34953
34954         * tests/test-fpending.c: New file, mostly copied
34955         from coreutils/lib/t-fpending.c.
34956         * modules/fpending-tests: New file.
34957
34958 2007-10-03  Bruno Haible  <bruno@clisp.org>
34959
34960         Port the stdio extensions to QNX (untested).
34961         * lib/fseterr.c (fseterr): Add support for QNX.
34962         * lib/fbufmode.c (fbufmode): Likewise.
34963         * lib/freadable.c (freadable): Likewise.
34964         * lib/fwritable.c (fwritable): Likewise.
34965         * lib/freading.c (freading): Likewise.
34966         * lib/fwriting.c (fwriting): Likewise.
34967         * lib/freadahead.c (freadahed): Likewise.
34968         * lib/fpurge.c (fpurge): Likewise.
34969         * lib/fseeko.c (rpl_fseeko): Likewise.
34970
34971 2007-10-03  Bruno Haible  <bruno@clisp.org>
34972             Jim Meyering  <jim@meyering.net>
34973             Eric Blake  <ebb9@byu.net>
34974
34975         * doc/relocatable.texi: Use @command instead of @program.
34976
34977 2007-10-02  Jim Meyering  <jim@meyering.net>
34978
34979         Perform one more "_.h" -> ".in.h" substitution.
34980         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
34981         instead of unistd_.h here, too.
34982
34983 2007-10-01  Bruno Haible  <bruno@clisp.org>
34984
34985         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
34986         Needed for the alloca-opt module.
34987
34988 2007-09-30  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/alloca.in.h: Renamed from lib/alloca_.h.
34991         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
34992         alloca_.h.
34993         * lib/argz.in.h: Renamed from lib/argz_.h.
34994         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
34995         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
34996         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
34997         byteswap_.h.
34998         * lib/dirent.in.h: Renamed from lib/dirent_.h.
34999         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35000         dirent_.h.
35001         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35002         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35003         fcntl_.h.
35004         * lib/float.in.h: Renamed from lib/float_.h.
35005         * modules/float (Files, Makefile.am): Use float.in.h instead of
35006         float_.h.
35007         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35008         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35009         fnmatch_.h.
35010         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35011         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35012         getopt_.h.
35013         * lib/glob.in.h: Renamed from lib/glob_.h.
35014         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35015         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35016         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35017         iconv_.h.
35018         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35019         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35020         inttypes_.h.
35021         * lib/locale.in.h: Renamed from lib/locale_.h.
35022         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35023         locale_.h.
35024         * lib/math.in.h: Renamed from lib/math_.h.
35025         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35026         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35027         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35028         of netinet_in_.h. Add dependency.
35029         * lib/poll.in.h: Renamed from lib/poll_.h.
35030         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35031         * lib/search.in.h: Renamed from lib/search_.h.
35032         * modules/search (Files, Makefile.am): Use search.in.h instead of
35033         search_.h.
35034         * lib/signal.in.h: Renamed from lib/signal_.h.
35035         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35036         _signal.h.
35037         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35038         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35039         stdbool_.h.
35040         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35041         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35042         stdint_.h.
35043         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35044         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35045         stdio_.h.
35046         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35047         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35048         stdlib_.h.
35049         * lib/string.in.h: Renamed from lib/string_.h.
35050         * modules/string (Files, Makefile.am): Use string.in.h instead of
35051         string_.h.
35052         * doc/gnulib-tool.texi (Initial import): Update.
35053         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35054         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35055         of sys_select_.h. Add dependency.
35056         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35057         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35058         of sys_socket_.h.
35059         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35060         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35061         sys_stat_.h.
35062         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35063         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35064         sys_time_.h.
35065         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35066         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35067         sysexits_.h.
35068         * lib/time.in.h: Renamed from lib/time_.h.
35069         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35070         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35071         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35072         unistd_.h.
35073         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35074         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35075         wchar_.h.
35076         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35077         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35078         wctype_.h.
35079         * build-aux/bootstrap (slurp): Update.
35080         * lib/.cppi-disable: Update.
35081
35082 2007-09-30  Bruno Haible  <bruno@clisp.org>
35083
35084         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35085         Needed on BeOS.
35086
35087 2007-09-30  Bruno Haible  <bruno@clisp.org>
35088
35089         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35090
35091 2007-09-29  Bruno Haible  <bruno@clisp.org>
35092
35093         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35094
35095 2007-09-29  Bruno Haible  <bruno@clisp.org>
35096
35097         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35098         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35099         * build-aux/install-reloc: Compile also areadlink.c.
35100         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35101
35102 2007-09-29  Bruno Haible  <bruno@clisp.org>
35103
35104         * gnulib-tool (func_emit_initmacro_done): Indentation.
35105
35106 2007-09-29  Bruno Haible  <bruno@clisp.org>
35107
35108         * README: Add CVS checkout update instructions.
35109         Info from Bob Proulx <bob@proulx.com>.
35110
35111 2007-09-28  Eric Blake  <ebb9@byu.net>
35112
35113         Provide move-if-change.
35114         * build-aux/move-if-change: New file, based on best practice
35115         rather than any canonical upstream location.
35116
35117 2007-09-28  Jim Meyering  <jim@meyering.net>
35118
35119         Fix canonicalize loop-detection corner case.
35120         Do not attempt to stat the symlink values stored via seen_triple.
35121         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35122         on linux-2.6.18, (but not 2.6.22).
35123         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35124         triple_compare.  The former compares dev,ino,filename, while the latter
35125         would actually stat dirname(filename) when dev and ino were equal.
35126         * lib/hash-triple.c: Install <string.h>.
35127         (STREQ): Define.
35128         (triple_compare_ino_str): New function.
35129         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35130
35131 2007-09-28  Eric Blake  <ebb9@byu.net>
35132
35133         Enforce that AC_REPLACE_FUNCS files exist.
35134         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35135         override check for typos.
35136
35137         Fix test-closein on Solaris 10.
35138         * tests/test-closein.c (main): Don't assume stdin can be inherited
35139         closed on all systems.
35140         * tests/test-closein.sh: Likewise.
35141         Reported by Piotr Tarnowski.
35142
35143 2007-09-28  Jim Meyering  <jim@meyering.net>
35144
35145         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35146
35147 2007-09-27  Jim Meyering  <jim@meyering.net>
35148
35149         canonicalize: Avoid a false-positive cycle failure.
35150         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35151         Sort.  Remove cycle-check.
35152         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35153         not cycle-check.h.
35154         (seen_triple): New function.
35155         (canonicalize_filename_mode): Use it instead of cycle-check.
35156         * tests/test-canonicalize.c: Add a test for this bug.
35157         * tests/test-canonicalize.sh: Set up and run the test.
35158
35159         New module, file-set, from coreutils.
35160         * modules/file-set: Define it.
35161         * lib/file-set.c, lib/file-set.h: Implement.
35162
35163         New module, hash-triple, from coreutils.
35164         * modules/hash-triple: Define it.
35165         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35166
35167 2007-09-25  Eric Blake  <ebb9@byu.net>
35168
35169         Fix strerror on Interix.
35170         * lib/string_.h (strerror): Declare replacement.
35171         * doc/functions/strerror.texi (strerror): Document the Interix
35172         shortcoming.
35173         * modules/string (Makefile.am): Support new hooks.
35174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35175         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35176         gl_FUNC_STRERROR_SEPARATE.
35177         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35178         * lib/strerror.c (rpl_strerror): Provide replacement.
35179         * modules/strerror (Depends-on): Add string.
35180         (configure.ac): Detect use of module.
35181         * tests/test-strerror.c: New file.
35182         * modules/strerror-tests: New test module.
35183         * modules/argp (Depends-on): Add strerror.
35184         * modules/error (Depends-on): Likewise.
35185         Reported by Martin Koeppe.
35186
35187 2007-09-24  Bruno Haible  <bruno@clisp.org>
35188
35189         * README: Update git instructions.
35190
35191 2007-09-24  Eric Blake  <ebb9@byu.net>
35192
35193         Revert fpending breakage from 2007-09-08.
35194         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35195         __fpending.c.
35196
35197 2007-09-24  Jim Meyering  <jim@meyering.net>
35198
35199         filenamecat.c: Add a test.
35200         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35201         showing how the function works when DIR is the empty string.
35202
35203 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35204
35205         * tests/test-canonicalize.sh: Turn on executable bit.
35206
35207 2007-09-19  Eric Blake  <ebb9@byu.net>
35208
35209         * README: Update CVS instructions.
35210
35211 2007-09-18  Bruno Haible  <bruno@clisp.org>
35212
35213         * modules/areadlink: New file.
35214         * lib/areadlink.h (areadlink): New declaration.
35215         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35216
35217 2007-09-17  Jim Meyering  <jim@meyering.net>
35218
35219         * lib/savewd.c (ESTALE) [!defined]: Define.
35220         Reported to be required on Interix by Martin Koeppe.
35221
35222 2007-09-17  Bruno Haible  <bruno@clisp.org>
35223
35224         * gnulib-tool (func_version): Use $version.
35225
35226 2007-09-16  Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35229         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35230         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35231         Reported by Greg Schafer <gschafer@zip.com.au>.
35232
35233 2007-09-15  Bruno Haible  <bruno@clisp.org>
35234
35235         * gnulib-tool (sed): Try a little harder to make bash understand the
35236         alias.
35237         Reported by Bruce Korb <bruce.korb@gmail.com>.
35238
35239 2007-09-13  Eric Blake  <ebb9@byu.net>
35240
35241         * ChangeLog: Remove conflict markers.
35242
35243 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35244
35245         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35246         Reported by Bruno Haible <bruno@clisp.org>.
35247
35248 2007-09-12  Bruno Haible  <bruno@clisp.org>
35249
35250         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35251         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35252         is not defined.
35253
35254 2007-09-12  Eric Blake  <ebb9@byu.net>
35255
35256         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35257         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35258         Autoconf definition.
35259         * modules/euidaccess (Depends-on): Add extensions, for
35260         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35261         * modules/fnmatch (Depends-on): Likewise.
35262         * modules/getaddrinfo (Depends-on): Likewise.
35263         * modules/getdelim (Depends-on): Likewise.
35264         * modules/getline (Depends-on): Likewise.
35265         * modules/getsubopt (Depends-on): Likewise.
35266         * modules/gettext (Depends-on): Likewise.
35267         * modules/group-member (Depends-on): Likewise.
35268         * modules/mbchar (Depends-on): Likewise.
35269         * modules/memmem (Depends-on): Likewise.
35270         * modules/mempcpy (Depends-on): Likewise.
35271         * modules/memrchr (Depends-on): Likewise.
35272         * modules/pagealign_alloc (Depends-on): Likewise.
35273         * modules/readutmp (Depends-on): Likewise.
35274         * modules/stpcpy (Depends-on): Likewise.
35275         * modules/stpncpy (Depends-on): Likewise.
35276         * modules/strchrnul (Depends-on): Likewise.
35277         * modules/strndup (Depends-on): Likewise.
35278         * modules/strsep (Depends-on): Likewise.
35279         * modules/strverscmp (Depends-on): Likewise.
35280         * modules/vasprintf (Depends-on): Likewise.
35281         * modules/wcwidth (Depends-on): Likewise.
35282         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35283         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35284         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35286         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35287         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35288         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35289         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35290         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35291         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35293         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35294         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35296         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35297         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35298         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35299         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35300         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35301         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35302         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35303         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35304         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35305         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35306         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35308         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35309         so that lock.m4 can be used in gettext without extensions module.
35310
35311 2007-09-11  Bruno Haible  <bruno@clisp.org>
35312
35313         * m4/isc-posix.m4: Remove file.
35314         Suggested by Eric Blake.
35315
35316 2007-09-11  Eric Blake  <ebb9@byu.net>
35317
35318         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35319
35320 2007-09-10  Bruno Haible  <bruno@clisp.org>
35321
35322         * posix-modules: Fix typo in error message.
35323         Reported by Matt <mkraai@beckman.com>.
35324
35325 2007-09-09  Bruno Haible  <bruno@clisp.org>
35326
35327         * doc/functions/getdelim.texi: Update list of platforms lacking the
35328         function.
35329         * doc/functions/getline.texi: Likewise.
35330
35331 2007-09-09  Jim Meyering  <jim@meyering.net>
35332
35333         * lib/hash.c (hash_initialize): Detect calloc failure.
35334         Reported by Bruno Haible.
35335
35336 2007-09-09  Bruno Haible  <bruno@clisp.org>
35337
35338         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35339         malloc or realloc fails.
35340
35341 2007-09-09  Bruno Haible  <bruno@clisp.org>
35342
35343         * modules/getcwd (Depends-on): Add malloc-posix.
35344         * modules/glob (Depends-on): Likewise.
35345         * modules/putenv (Depends-on): Likewise.
35346         * modules/strdup (Depends-on): Likewise.
35347         * modules/getdelim (Depends-on): Add realloc-posix.
35348         * modules/read-file (Depends-on): Likewise.
35349
35350 2007-09-09  Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35353         (gl_FUNC_MALLOC_POSIX): Require it.
35354         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35355         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35356         * modules/realloc (Files): Add m4/malloc.m4.
35357         * modules/calloc (Files): Likewise.
35358
35359 2007-09-09  Bruno Haible  <bruno@clisp.org>
35360
35361         * modules/malloc-posix: New file.
35362         * modules/malloc (Depends-on): Add malloc-posix.
35363         * lib/malloc.c: Include errno.h.
35364         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35365         and a POSIX-compatible malloc into a single function. Set ENOMEM
35366         when returning NULL.
35367         * m4/malloc.m4: New file.
35368         * doc/functions/malloc.texi: Mention the malloc-posix module.
35369         * lib/stdlib_.h (malloc): New declaration.
35370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35371         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35372         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35373         and HAVE_MALLOC_POSIX.
35374
35375 2007-09-09  Bruno Haible  <bruno@clisp.org>
35376
35377         * modules/realloc-posix: New file.
35378         * modules/realloc (Depends-on): Add realloc-posix.
35379         * lib/realloc.c: Include errno.h.
35380         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35381         and a POSIX-compatible realloc into a single function. Set ENOMEM
35382         when returning NULL.
35383         * m4/realloc.m4: New file.
35384         * doc/functions/realloc.texi: Mention the realloc-posix module.
35385         * lib/stdlib_.h (realloc): New declaration.
35386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35387         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35388         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35389         and HAVE_REALLOC_POSIX.
35390
35391 2007-09-09  Bruno Haible  <bruno@clisp.org>
35392
35393         * modules/calloc-posix: New file.
35394         * modules/calloc (Depends-on): Add calloc-posix.
35395         * lib/calloc.c: Include errno.h.
35396         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35397         and a POSIX-compatible calloc into a single function. Set ENOMEM
35398         when returning NULL.
35399         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35400         * doc/functions/calloc.texi: Mention the calloc-posix module.
35401         * lib/stdlib_.h (calloc): New declaration.
35402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35403         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35404         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35405         and HAVE_CALLOC_POSIX.
35406
35407 2007-09-09  Bruno Haible  <bruno@clisp.org>
35408
35409         Allow for modules to show an arbitrary notice.
35410         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35411         * gnulib-tool: New option --extract-notice.
35412         (func_usage): Document it.
35413         (sed_extract_prog): Update.
35414         (func_get_notice): New function.
35415         (func_modules_notice): New function.
35416         (func_import, func_create_testdir): Invoke it.
35417         Suggested by Jim Meyering.
35418
35419 2007-09-09  Bruno Haible  <bruno@clisp.org>
35420
35421         * gnulib-tool: New options --verbose, --quiet.
35422         (func_usage): Document them.
35423         (verbose): New variable.
35424         (func_execute_command): New function.
35425         (func_import): Don't show the module list and the file list if
35426         $verbose < 0.
35427         (func_create_testdir): Likewise. Use func_execute_command.
35428         (func_create_megatestdir): Use func_execute_command.
35429
35430 2007-09-08  Bruno Haible  <bruno@clisp.org>
35431
35432         * gnulib-tool (func_import): Prefer rsync over wget when available,
35433         for fetching the PO files.
35434
35435 2007-09-08  Bruno Haible  <bruno@clisp.org>
35436
35437         * posix-modules: New file. Portions copied from gnulib-tool.
35438         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35439
35440 2007-09-08  Jim Meyering  <jim@meyering.net>
35441
35442         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35443         * lib/fpending.h: Rename from __fpending.h.
35444         * lib/fpending.c: Rename from __fpending.c.
35445         Include "fpending.h", not "__fpending.h".
35446         * lib/__fpending.h, lib/__fpending.c: Remove files.
35447         * modules/fpending (Files): Reflect new file names.
35448         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35449
35450 2007-09-08  Bruno Haible  <bruno@clisp.org>
35451
35452         * m4/inttypes-h.m4: Remove stub file.
35453
35454 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35455
35456         * doc/headers/stdint.texi: Discuss #include_next issue.
35457
35458 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35459
35460         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35461
35462 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35463
35464         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35465         in variable name.
35466
35467 2007-09-03  Jim Meyering  <jim@meyering.net>
35468
35469         New module: git-version-gen.
35470         * modules/git-version-gen: New file.
35471
35472         Import changes from coreutils for bootstrap script.
35473
35474         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35475
35476         bootstrap: uses rsync to download the .po files
35477         * build-aux/bootstrap (po_download_command_format): New global.
35478         (download_po_files): Use rsync.
35479         (update_po_files): Don't remove .po files after download,
35480         so future rsync runs can take advantage of the copies.
35481
35482         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35483
35484         Solve the unnecessary-.po-file-regeneration problem once and for all.
35485         * build-aux/bootstrap (download_po_files): New function, renamed from
35486         get_translations.  Now, downloads, but doesn't update LINGUAS.
35487         (update_po_files): New function.
35488
35489         bootstrap: Ignore more.
35490         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35491         uniwidth to e.g., lib/.gitignore.
35492         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35493
35494         * build-aux/bootstrap: New setting: vc_ignore.
35495         (insert_sorted_if_absent): Create $file if absent.
35496         Adapt to new, possibly empty, list: $vc_ignore.
35497
35498         bootstrap: generate more ignorable names
35499         * build-aux/bootstrap (slurp): When generating ignorable names,
35500         also map .sin to .sed, .gperf to .c, and .y to .c.
35501
35502 2007-09-03  Jim Meyering  <jim@meyering.net>
35503
35504         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35505         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35506
35507 2007-09-02  Bruno Haible  <bruno@clisp.org>
35508
35509         Fix mis-recognition of 'mcs' on QNX 6.
35510         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35511         output contains the string "Mono".
35512         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35513         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35514
35515 2007-09-01  Bruno Haible  <bruno@clisp.org>
35516
35517         Fix collision between uniwidth/* and linebreak modules.
35518         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35519         u32_width): Remove declarations.
35520         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35521         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35522         streq3, streq2, streq1, streq0): Remove functions.
35523         (STREQ): Remove macro.
35524         (is_cjk_encoding): Remove function.
35525         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35526         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35527         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35528         * NEWS: Document the change.
35529
35530 2007-09-01  Bruno Haible  <bruno@clisp.org>
35531
35532         * lib/streq.h: Add double-inclusion guard.
35533
35534 2007-09-01  Karl Berry  <karl@gnu.org>
35535
35536         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35537
35538 2007-08-28  Jim Meyering  <jim@meyering.net>
35539
35540         Rename mreadlink_with_size to areadlink_with_size.
35541         * NEWS: Document the change.
35542         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35543         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35544         * lib/mreadlink.h: Rename this to...
35545         * lib/areadlink.h: ...this.
35546         * modules/mreadlink-with-size: Rename this to...
35547         * modules/areadlink-with-size: ...this.
35548         * lib/canonicalize.c: Reflect the renaming.
35549         * modules/canonicalize: Likewise.
35550
35551 2007-08-26  Bruno Haible  <bruno@clisp.org>
35552
35553         * gnulib-tool (func_import): When deciding which files to remove,
35554         consider also dangling symbolic links.
35555         Reported by Eric Blake.
35556
35557 2007-08-26  Bruno Haible  <bruno@clisp.org>
35558
35559         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35560
35561 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35562
35563         * lib/readline.c: Don't include getline.h, the prototype is now
35564         found in stdio.h.
35565
35566 2007-08-23  Jim Meyering  <jim@meyering.net>
35567
35568         Getdelim touchup.
35569         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35570         around the funlockfile call, since funlockfile never sets errno.
35571         Don't set errno upon failed realloc.
35572
35573 2007-08-22  Eric Blake  <ebb9@byu.net>
35574
35575         Getline touchups.
35576         * lib/getdelim.c (getdelim): Revert regression that required *n to
35577         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35578         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35579         getdelim, rather than whether implementation is missing.
35580         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35581         * lib/stdio_.h (getline): Also declare if replacement is
35582         required.
35583         * doc/functions/getdelim.texi: New file.
35584         * doc/functions/getline.texi: Likewise.
35585         * doc/gnulib.texi (Function Substitutes): Add new files.
35586         Reported by Bruno Haible.
35587
35588 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35589
35590         * users.txt: Add Guile.
35591
35592 2007-08-22  Eric Blake  <ebb9@byu.net>
35593
35594         * tests/test-getdelim.c (main): Use remove, not unlink.
35595         * tests/test-getline.c (main): Likewise.
35596
35597         Move getline and getdelim into stdio.h, per POSIX 200x.
35598         * modules/getline (Files): Remove getline.h.
35599         (Depends-on): Add stdio.
35600         (configure.ac): Add module indicator.
35601         * modules/getdelim (Files): Remove getdelim.h.
35602         (Depends-on): Add stdio.
35603         (configure.ac): Add module indicator.
35604         * modules/stdio (Makefile.am): Work with new indicators.
35605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35606         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35607         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35608         * lib/getdelim.h: Delete.
35609         * lib/getline.h: Delete.
35610         * lib/stdio_.h (getdelim, getline): Declare.
35611         * modules/getdelim-tests: New module.
35612         * modules/getline-tests: Likewise.
35613         * tests/test-getdelim.c: New file.
35614         * tests/test-getline.c: Likewise.
35615         * NEWS: Document the change.
35616         * lib/getline.c: Update choice of header.
35617         * lib/csharpcomp.c: Likewise.
35618         * lib/getpass.c: Likewise.
35619         * lib/javacomp.c: Likewise.
35620         * lib/javaversion.c: Likewise.
35621         * lib/yesno.c: Likewise.
35622         * lib/getdelim.c: Likewise.
35623         (getdelim): Set errno on failure, and avoid memory leak.
35624
35625 2007-08-19  Bruno Haible  <bruno@clisp.org>
35626
35627         * modules/closein (Depends-on): Add freadahead.
35628         * lib/closein.c: Include freadahead.h.
35629         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
35630         is zero.
35631
35632 2007-08-19  Bruno Haible  <bruno@clisp.org>
35633
35634         * modules/freadahead-tests: New file.
35635         * tests/test-freadahead.sh: New file.
35636         * tests/test-freadahead.c: New file.
35637
35638         * modules/freadahead: New file.
35639         * lib/freadahead.h: New file.
35640         * lib/freadahead.c: New file.
35641         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35642         fbufmode, fpurge, freadable, fwritable.
35643
35644 2007-08-19  Eric Blake  <ebb9@byu.net>
35645
35646         Test yesno in combination with closein.
35647         * lib/yesno.c (yesno): Document use of stdin.
35648         * modules/yesno-tests (Files): New module.
35649         * tests/test-yesno.c (main): New file.
35650         * tests/test-yesno.sh: Likewise.
35651
35652 2007-08-19  Bruno Haible  <bruno@clisp.org>
35653
35654         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35655         * lib/fseeko.c (rpl_fseeko): Likewise.
35656         * lib/fseterr.c (fseterr): Likewise.
35657
35658 2007-08-19  Bruno Haible  <bruno@clisp.org>
35659
35660         * tests/test-lseek.c (main): Disable a test for BeOS.
35661         * doc/functions/lseek.texi: Document the BeOS bug.
35662
35663 2007-08-19  Bruno Haible  <bruno@clisp.org>
35664             Eric Blake  <ebb9@byu.net>
35665
35666         * lib/lseek.c: Include <sys/stat.h>.
35667         (rpl_lseek): Add workaround code also for Unix platforms.
35668         Needed for BeOS.
35669         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35670         * doc/functions/lseek.texi: Document BeOS definiency.
35671
35672 2007-08-18  Bruno Haible  <bruno@clisp.org>
35673
35674         * modules/fstrcmp-tests: New file.
35675         * tests/test-fstrcmp.c: New file.
35676
35677 2007-08-18  Bruno Haible  <bruno@clisp.org>
35678
35679         * modules/fstrcmp: New file, from GNU gettext with modifications.
35680         * lib/fstrcmp.h: New file, from GNU gettext.
35681         * lib/fstrcmp.c: New file, from GNU gettext.
35682         * MODULES.html.sh (String handling): Add fstrcmp.
35683
35684 2007-08-18  Bruno Haible  <bruno@clisp.org>
35685
35686         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35687         'bool'.
35688         (diag, compareseq): Remove const from the ctxt argument.
35689         (USE_HEURISTIC): Undefine at the end.
35690
35691 2007-08-18  Jim Meyering  <jim@meyering.net>
35692
35693         New file: lib/idcache.h
35694         * NEWS: Mention the addition.
35695         * modules/idcache (Files): Add lib/idcache.h
35696         * lib/idcache.c: Include "idcache.h".
35697         Don't include <sys/types.h>.
35698         Add a FIXME comment.
35699         Move file-scoped "static" declarations to the top.
35700         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35701
35702 2007-08-17  Bruno Haible  <bruno@clisp.org>
35703         and Paul Eggert  <eggert@cs.ucla.edu>
35704
35705         * MODULES.html.sh: Add diffseq.
35706         * modules/diffseq: New file.
35707         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35708         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35709
35710 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35711
35712         Import changes from coreutils for bootstrap script.
35713
35714         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
35715
35716         * build-aux/bootstrap (slurp): Work even in environments where
35717         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
35718         current code does not slurp files whose names start with ".", and
35719         this looks like it might be a troublesome area.
35720
35721         2007-07-11  Jim Meyering  <jim@meyering.net>
35722
35723         If there's a GPL vN copyright comment, require that N == 3.
35724
35725         2007-07-08  Jim Meyering  <jim@meyering.net>
35726
35727         Run the coreutils-specific code only if tests/Makefile.am.in exists.
35728         * build-aux/bootstrap (mam_template): Move definition out of loop.
35729
35730         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
35731
35732         * build-aux/bootstrap (symlink_to_dir): Rename function from
35733         symlink_to_gnulib.  Add a directory parameter.  Update all
35734         callers.
35735         (cp_mark_as_generated): Also check for -- and link to -- files in
35736         gl/.
35737
35738         2007-07-08  Jim Meyering  <jim@meyering.net>
35739
35740         Adapt to deeper hierarchy in gnulib.
35741         * build-aux/bootstrap (symlink_to_dir): If the destination
35742         directory doesn't exist, create it. This is required at least for
35743         "lib/uniwidth/cjk.h".
35744
35745         2007-05-15  Jim Meyering  <jim@meyering.net>
35746
35747         * build-aux/bootstrap: Now that generated Makefile.am files
35748         are no longer under version control, they must be created at
35749         bootstrap time.
35750
35751 2007-08-14  Ben Pfaff  <blp@gnu.org>
35752
35753         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
35754
35755 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35756
35757         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
35758         given the changes below.
35759         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
35760         even on hosts that have padding bits beyond the supported 64.
35761
35762 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35763
35764         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
35765         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
35766         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
35767         depends on it.
35768         (xstrtol_error): Remove.
35769         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
35770         but with a different signature.
35771         (ATTRIBUTE_NORETURN, __attribute__): New macros.
35772         * lib/xstrtol-error.c: Include exitfail.h.
35773         (xstrtol_fatal): New function, with a different signature from the
35774         old xstrtol_error, so that the caller need not worry about passing
35775         in an exit status, or about storage management of the option argument.
35776         (xstrtol_error): Now a static function.  Redo signature to
35777         implement xstrtol_fatal.  Output the correct number of hyphens in
35778         front of the option so that the caller need not worry about
35779         storage management.
35780         (N_): New macro.
35781         (_): Remove; not used now.
35782         * modules/xstrtol: Depend on getopt.
35783         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
35784         of old STRTOL_FATAL_ERROR macro.
35785         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
35786         of test program.
35787         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
35788         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
35789
35790 2007-08-08  Eric Blake  <ebb9@byu.net>
35791
35792         * lib/xstrtol-error.c: Add missing include.
35793
35794         Move xstrtol messages into gnulib domain, when --pobase is used.
35795         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
35796         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
35797         * modules/xstrtol (Files): Distribute new file.
35798         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
35799         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
35800         * tests/test-xstrtol.c: ...into new file.
35801         * tests/test-xstrtoul.c: Also test xstrtoul.
35802         * tests/test-xstrtoimax.c: Also test xstrtoimax.
35803         * tests/test-xstrtoumax.c: Also test xstrtoumax.
35804         * tests/test-xstrtol.sh: Drive the tests.
35805         * tests/test-xstrtoimax.sh: Likewise.
35806         * tests/test-xstrtoumax.sh: Likewise.
35807         * modules/xstrtol-tests: New module.
35808         * modules/xstrtoimax-tests: Likewise.
35809         * modules/xstrtoumax-tests: Likewise.
35810
35811 2007-08-08  Jim Meyering  <jim@meyering.net>
35812
35813         New function: mfile_name_concat.
35814         * lib/filenamecat.c (mfile_name_concat): New function, just like
35815         file_name_concat, but return NULL upon failure rather than exiting
35816         with a diagnostic.
35817         * lib/filenamecat.h: Declare it.
35818
35819 2007-08-07  Bruno Haible  <bruno@clisp.org>
35820
35821         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
35822         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
35823         warning from gcc.
35824         Reported by Eric Blake.
35825
35826 2007-08-07  Simon Josefsson  <simon@josefsson.org>
35827
35828         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
35829         * modules/crypto/arcfour (License): Likewise.
35830         * modules/crypto/des-tests (License): Likewise.
35831         * modules/crypto/gc-arctwo-tests (License): Likewise.
35832         * modules/crypto/gc-des-tests (License): Likewise.
35833         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
35834         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
35835         * modules/crypto/gc-md2-tests (License): Likewise.
35836         * modules/crypto/gc-md4-tests (License): Likewise.
35837         * modules/crypto/gc-md5-tests (License): Likewise.
35838         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
35839         * modules/crypto/gc-rijndael-tests (License): Likewise.
35840         * modules/crypto/gc-sha1-tests (License): Likewise.
35841         * modules/crypto/gc-tests (License): Likewise.
35842         * modules/crypto/hmac-md5 (License): Likewise.
35843         * modules/crypto/hmac-sha1 (License): Likewise.
35844         * modules/crypto/md2-tests (License): Likewise.
35845         * modules/crypto/md4-tests (License): Likewise.
35846         * modules/crypto/md5 (License): Likewise.
35847         * modules/crypto/rijndael (License): Likewise.
35848         * modules/crypto/sha1 (License): Likewise.
35849         * modules/memxor (License): Likewise.
35850
35851 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35852         and Bruno Haible  <bruno@clisp.org>
35853
35854         * NEWS: Describe interface changes to human, xstrtol.
35855         * lib/human.h: Include <xstrtol.h>.
35856         (human_options): Return enum strtol_error, not int.  Remove
35857         bool arg; take int * instead.
35858         * lib/human.c: Don't include "gettext.h".
35859         (_): Remove; no longer used.
35860         Don't include <xstrtol.h>, since human.h does it.
35861         (human_options): Adjust to abovementioned interface changes.
35862         Do not report error to stderr; that's now the caller's
35863         responsibility.
35864         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
35865         interface change.
35866         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
35867         Str, Argument_type_string.  All uses changed.  Put " argument"
35868         in diagnostics to make them clearer.  Change wording of suffix
35869         message for clarity.
35870         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
35871         Argument_type_string.
35872         (STRTOL_FATAL_WARN): Remove; no longer used.
35873         * modules/human (Depends-on): Remove gettext-h.
35874
35875 2007-08-06  Simon Josefsson  <simon@josefsson.org>
35876
35877         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
35878
35879 2007-07-31  Bruno Haible  <bruno@clisp.org>
35880
35881         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
35882         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
35883         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
35884
35885 2007-07-31  Bruno Haible  <bruno@clisp.org>
35886
35887         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
35888         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
35889
35890 2007-07-30  Bruno Haible  <bruno@clisp.org>
35891
35892         * modules/base64 (License): Use the synonymous term "LGPLv2+".
35893         * modules/c-ctype (License): Likewise.
35894         * modules/c-strcase (License): Likewise.
35895         * modules/check-version (License): Likewise.
35896         * modules/iconv (License): Likewise.
35897         * modules/iconv_open (License): Likewise.
35898         * modules/read-file (License): Likewise.
35899         * modules/striconv (License): Likewise.
35900         * modules/strverscmp (License): Likewise.
35901         * modules/vasprintf (License): Likewise.
35902         * modules/crypto/des (License): Likewise.
35903         * modules/crypto/gc (License): Likewise.
35904         * modules/crypto/gc-arcfour (License): Likewise.
35905         * modules/crypto/gc-arctwo (License): Likewise.
35906         * modules/crypto/gc-des (License): Likewise.
35907         * modules/crypto/gc-hmac-md5 (License): Likewise.
35908         * modules/crypto/gc-hmac-sha1 (License): Likewise.
35909         * modules/crypto/gc-md2 (License): Likewise.
35910         * modules/crypto/gc-md4 (License): Likewise.
35911         * modules/crypto/gc-md5 (License): Likewise.
35912         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
35913         * modules/crypto/gc-random (License): Likewise.
35914         * modules/crypto/gc-rijndael (License): Likewise.
35915         * modules/crypto/gc-sha1 (License): Likewise.
35916         * modules/crypto/md2 (License): Likewise.
35917         * modules/crypto/md4 (License): Likewise.
35918
35919 2007-07-30  Jim Meyering  <jim@meyering.net>
35920
35921         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
35922         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
35923         it has valid stat data.  This bug would cause du not to count the
35924         sizes of inaccessible directories.
35925         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
35926         in <http://bugzilla.redhat.com/250077>.
35927
35928 2007-07-25  Peter O'Gorman  <peter@pogma.com>
35929             Bruno Haible  <bruno@clisp.org>
35930
35931         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
35932         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
35933         #include_next, gives a diagnostic about it, but reports no error in
35934         the exit code.
35935         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35936
35937 2007-07-24  Ben Pfaff  <blp@gnu.org>
35938
35939         Improve name: "count-one-bits" is better than "popcount".
35940         * MODULES.html.sh: Update name.
35941         * lib/popcount.h: Renamed lib/count-one-bits.h.
35942         (popcount): Renamed count_one_bits.
35943         (popcountl): Renamed count_one_bits_l.
35944         (popcountll): Renamed count_one_bits_ll.
35945         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
35946         * modules/popcount: Renamed module/count-one-bits.
35947         * modules/popcount-tests: Renamed module/count-one-bits-tests.
35948         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
35949
35950 2007-07-23  Ben Pfaff  <blp@gnu.org>
35951
35952         * lib/popcount.h (popcount32): Reduce size of constants, to allow
35953         better code generation, and add U to large constants to avoid
35954         warnings, in non-GCC case.
35955         Suggested by Bruno Haible.
35956
35957 2007-07-23  Ben Pfaff  <blp@gnu.org>
35958
35959         * lib/popcount.h: Use verify_true instead of if...abort.
35960         * modules/popcount: Depend on verify module.
35961         Suggested by Jim Meyering.
35962
35963 2007-07-23  Bruno Haible  <bruno@clisp.org>
35964
35965         * gnulib-tool (func_import): Create a .cvsignore file also when the
35966         directory is not yet in CVS but the toplevel directory is. When
35967         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
35968         Reported by Karl Berry.
35969
35970 2007-07-22  Ben Pfaff  <blp@gnu.org>
35971
35972         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
35973         case.
35974         Suggested by Eric Blake.
35975
35976 2007-07-22  Ben Pfaff  <blp@gnu.org>
35977
35978         New module: popcount.
35979         * MODULES.html.sh: Add popcount.
35980         * modules/popcount: New file.
35981         * modules/popcount-tests: New file.
35982         * tests/test-popcount.c: New file.
35983         * lib/popcount.h: New file.
35984         * m4/popcount.m4: New file.
35985
35986 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
35987
35988         * build-aux/announce-gen: Update to GPLv3.
35989
35990         * build-aux/config.guess: Update from config.
35991
35992 2007-07-21  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
35995         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
35996
35997 2007-07-20  Jim Meyering  <jim@meyering.net>
35998
35999         * check-module: Diagnose a self-dependency.
36000
36001 2007-07-19  Bruno Haible  <bruno@clisp.org>
36002
36003         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36004         empty.
36005         Reported by Eric Blake.
36006
36007 2007-07-18  Bruno Haible  <bruno@clisp.org>
36008
36009         * gnulib-tool: New options --po-base, --po-domain.
36010         (func_usage): Document them.
36011         (pobase, po_domain): New variables.
36012         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36013         DEFAULT_TEXT_DOMAIN.
36014         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36015         (func_import): Consider pobase and po_domain. Create a po/ directory.
36016         (func_create_testdir): Set pobase and po_domain to empty.
36017         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36018         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36019
36020 2007-07-18  Bruno Haible  <bruno@clisp.org>
36021
36022         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36023         EXTRA_DIST augmentation for files in build-aux/.
36024
36025 2007-07-16  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36028         * modules/getdelim (License): Likewise.
36029
36030 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36031
36032         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36033         * modules/d-type (License): Likewise.
36034         * modules/extensions (License): Likewise.
36035         * modules/fnmatch (License): Likewise.
36036         * modules/fseeko (License): Likewise.
36037         * modules/getaddrinfo (License): Likewise.
36038         * modules/getline (License): Likewise.
36039         * modules/getlogin_r (License): Likewise.
36040         * modules/getpass (License): Likewise.
36041         * modules/gettimeofday (License): Likewise.
36042         * modules/glob (License): Likewise.
36043         * modules/inet_ntop (License): Likewise.
36044         * modules/malloc (License): Likewise.
36045         * modules/malloca (License): Likewise.
36046         * modules/memmem (License): Likewise.
36047         * modules/mempcpy (License): Likewise.
36048         * modules/memset (License): Likewise.
36049         * modules/minmax (License): Likewise.
36050         * modules/mktime (License): Likewise.
36051         * modules/netinet_in (License): Likewise.
36052         * modules/pathmax (License): Likewise.
36053         * modules/poll (License): Likewise.
36054         * modules/regex (License): Likewise.
36055         * modules/snprintf (License): Likewise.
36056         * modules/stdbool (License): Likewise.
36057         * modules/stdint (License): Likewise.
36058         * modules/stdio (License): Likewise.
36059         * modules/strcase (License): Likewise.
36060         * modules/strcasestr (License): Likewise.
36061         * modules/strdup (License): Likewise.
36062         * modules/string (License): Likewise.
36063         * modules/strndup (License): Likewise.
36064         * modules/strnlen (License): Likewise.
36065         * modules/strpbrk (License): Likewise.
36066         * modules/strptime (License): Likewise.
36067         * modules/strsep (License): Likewise.
36068         * modules/sys_select (License): Likewise.
36069         * modules/sys_socket (License): Likewise.
36070         * modules/sys_stat (License): Likewise.
36071         * modules/sys_time (License): Likewise.
36072         * modules/time (License): Likewise.
36073         * modules/time_r (License): Likewise.
36074         * modules/timegm (License): Likewise.
36075         * modules/unistd (License): Likewise.
36076         * modules/vsnprintf (License): Likewise.
36077         * modules/wctype (License): Likewise.
36078
36079 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36080
36081         * modules/argz (License): LGPLv2+.
36082
36083 2007-07-15  Karl Berry  <karl@gnu.org>
36084
36085         * doc/gnulib.texi: revise node structure per new fdl.texi.
36086
36087 2007-07-14  Bruno Haible  <bruno@clisp.org>
36088
36089         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36090         the output file.
36091         * lib/uniname/uninames.h: Regenerated.
36092
36093 2007-07-14  Karl Berry  <karl@gnu.org>
36094
36095         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36096         omitting sectioning and index commands.
36097
36098 2007-07-13  Bruno Haible  <bruno@clisp.org>
36099
36100         New gnulib-tool option --more-symlinks.
36101         * gnulib-tool (func_usage): Document --more-symlinks.
36102         (do_copyrights): New variable.
36103         Recognize option --more-symlinks.
36104         (func_import): Don't add a copyright notice transform to
36105         sed_transform_lib_file if do_copyrights is empty.
36106
36107 2007-07-13  Bruno Haible  <bruno@clisp.org>
36108
36109         * lib/vasnprintf.c (decimal_point_char): Define also if
36110         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36111         && !NEED_PRINTF_DIRECTIVE_A.
36112         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36113         Gary V. Vaughan <gary@gnu.org>.
36114
36115 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36116
36117         * lib/inttypes_.h: Undo previous change, since it was fixed
36118         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36119
36120 2007-07-13  Bruno Haible  <bruno@clisp.org>
36121
36122         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36123         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36124
36125 2007-07-13  Jim Meyering  <jim@meyering.net>
36126
36127         df: Don't fail for Tru64's "file-on-file mount".
36128         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36129         so we fall through and use statfs instead.  Details here:
36130         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36131         Reported by Albert Chin.
36132
36133 2007-07-13  Bruno Haible  <bruno@clisp.org>
36134
36135         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36136         * modules/configmake (License): Likewise.
36137         * modules/gettext (License): Likewise.
36138         * modules/gettext-h (License): Likewise.
36139         * modules/include_next (License): Likewise.
36140         * modules/link-warning (License): Likewise.
36141         * modules/localcharset (License): Likewise.
36142         * modules/localename (License): Likewise.
36143         * modules/lock (License): Likewise.
36144         * modules/relocatable-lib-lgpl (License): Likewise.
36145         * modules/size_max (License): Likewise.
36146         * modules/vasnprintf (License): Likewise.
36147         * modules/wchar (License): Likewise.
36148         * modules/xsize (License): Likewise.
36149
36150 2007-07-13  Bruno Haible  <bruno@clisp.org>
36151
36152         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36153         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36154
36155 2007-07-12  Bruno Haible  <bruno@clisp.org>
36156
36157         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36158         in the modules files.
36159
36160 2007-07-11  Karl Berry  <karl@gnu.org>
36161
36162         * MODULES.html.sh (func_module): use
36163          sed -e '\|^'"${includefile}"'$|d'
36164          instead of /.../d, to avoid errors on $includefile's containing /.
36165
36166 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36167
36168         * gnulib-tool (func_import): Avoid duplication of --avoid
36169         statements
36170         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36171         names to `_' in variable names.
36172
36173 2007-07-10  Eric Blake  <ebb9@byu.net>
36174
36175         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36176         * NEWS: Document this change.
36177
36178 2007-07-08  Bruno Haible  <bruno@clisp.org>
36179
36180         Update to Unicode 5.0.
36181         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36182         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36183         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36184         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36185         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36186         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36187         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36188         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36189         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36190         U+10A3F, U+1D242..U+1D244.
36191         (nonspacing_table_ind): Update.
36192         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36193         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36194
36195 2007-07-08  Bruno Haible  <bruno@clisp.org>
36196
36197         Update to Unicode 5.0.
36198         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36199         code transform. Extend the name index field of unicode_name_to_code and
36200         unicode_code_to_name from 16 to 24 bits.
36201         * lib/uniname/uniname.c (unicode_character_name,
36202         unicode_name_character): Add the range 0x12xxx to the code transform.
36203         * lib/uniname/uninames.h: Regenerated.
36204         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36205
36206 2007-07-07  Bruno Haible  <bruno@clisp.org>
36207
36208         * modules/wcwidth-tests: New file.
36209         * tests/test-wcwidth.c: New file.
36210
36211         Work around MacOS X wcwidth() bug.
36212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36213         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36214         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36215         original wcwidth in non-UTF-8 locales.
36216         * modules/wcwidth (Depends-on): Add localcharset, streq,
36217         uniwidth/width.
36218         * doc/functions/wcwidth.texi: Update.
36219
36220 2007-07-07  Bruno Haible  <bruno@clisp.org>
36221
36222         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36223         (wcwidth): New declaration.
36224         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36225         macros.
36226         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36227         here. Prepare for creating <wchar.h> unconditionally.
36228         * modules/wchar (Depends-on): Add link-warning.
36229         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36230         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36231         * lib/wcwidth.h: Remove file.
36232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36233         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36234         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36235         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36236         (Include): Replace wcwidth.h with <wchar.h>.
36237         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36238         * lib/mbchar.h: Don't include wcwidth.h.
36239         * lib/mbswidth.c: Likewise.
36240         * NEWS: Mention the change.
36241
36242 2007-07-07  Bruno Haible  <bruno@clisp.org>
36243
36244         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36245         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36246         definition with an external declaration.
36247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36248         defined as a function. Remove AC_C_INLINE requirement.
36249         * modules/wcwidth (Files): Add lib/wcwidth.c.
36250         (Makefile.am): Remove redundant statement.
36251
36252 2007-07-07  Bruno Haible  <bruno@clisp.org>
36253
36254         * MODULES.html.sh (Unicode string functions): Add the new modules.
36255
36256         * tests/uniwidth/test-u32-strwidth.c: New file.
36257         * modules/uniwidth/u32-strwidth-tests: New file.
36258
36259         * lib/uniwidth/u32-strwidth.c: New file.
36260         * modules/uniwidth/u32-strwidth: New file.
36261
36262         * tests/uniwidth/test-u16-strwidth.c: New file.
36263         * modules/uniwidth/u16-strwidth-tests: New file.
36264
36265         * lib/uniwidth/u16-strwidth.c: New file.
36266         * modules/uniwidth/u16-strwidth: New file.
36267
36268         * tests/uniwidth/test-u8-strwidth.c: New file.
36269         * modules/uniwidth/u8-strwidth-tests: New file.
36270
36271         * lib/uniwidth/u8-strwidth.c: New file.
36272         * modules/uniwidth/u8-strwidth: New file.
36273
36274         * tests/uniwidth/test-u32-width.c: New file.
36275         * modules/uniwidth/u32-width-tests: New file.
36276
36277         * lib/uniwidth/u32-width.c: New file.
36278         * modules/uniwidth/u32-width: New file.
36279
36280         * tests/uniwidth/test-u16-width.c: New file.
36281         * modules/uniwidth/u16-width-tests: New file.
36282
36283         * lib/uniwidth/u16-width.c: New file.
36284         * modules/uniwidth/u16-width: New file.
36285
36286         * tests/uniwidth/test-u8-width.c: New file.
36287         * modules/uniwidth/u8-width-tests: New file.
36288
36289         * lib/uniwidth/u8-width.c: New file.
36290         * modules/uniwidth/u8-width: New file.
36291
36292         * tests/uniwidth/test-uc_width.c: New file.
36293         * modules/uniwidth/width-tests: New file.
36294
36295         * lib/uniwidth/width.c: New file, from GNU libiconv.
36296         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36297         * modules/uniwidth/width: New file.
36298
36299         * lib/uniwidth.h: New file, from GNU libiconv.
36300         * modules/uniwidth/base: New file.
36301
36302 2007-07-07  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/uniname.h: New file, from GNU gettext.
36305         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36306         * lib/uniname/uninames.h: New file, from GNU gettext.
36307         * lib/uniname/uniname.c: New file, from GNU gettext.
36308         * tests/uniname/test-uninames.sh: New file.
36309         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36310         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36311         * modules/uniname/base: New file.
36312         * modules/uniname/uniname: New file.
36313         * modules/uniname/uniname-tests: New file.
36314         * MODULES.html.sh (Unicode string functions): Add the new modules.
36315
36316 2007-07-06  Bruno Haible  <bruno@clisp.org>
36317
36318         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36319
36320 2007-07-06  Bruno Haible  <bruno@clisp.org>
36321
36322         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36323         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36324         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36325         include <sys/time.h>.
36326         Reported by Eric Blake.
36327
36328 2007-07-06  Eric Blake  <ebb9@byu.net>
36329
36330         Fix testing canonicalize on cygwin.
36331         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36332         Revert patch from 2007-06-19.
36333         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36334         canonicalize module is also in use.
36335         * tests/test-canonicalize.c: New file.
36336         * tests/test-canonicalize.sh: Likewise.
36337         * modules/canonicalize-tests: Likewise.
36338
36339 2007-07-06  Jim Meyering  <jim@meyering.net>
36340
36341         * lib/getugroups.c (getugroups): Detect getgrent failure.
36342         Adjust comment to reflect reality: this function may return -1.
36343
36344 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36345
36346         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36347         the new TP address.
36348         (usage): Fix typo
36349         (gnulib_mk): New variable.
36350
36351 2007-07-05  Jim Meyering  <jim@meyering.net>
36352
36353         Don't let endgrent clobber errno, no matter how improbable.
36354         * lib/getugroups.c (getugroups): Save and restore errno around
36355         endgrent call.
36356
36357         Close the group DB even when failing with 2^31 or more members.
36358         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36359
36360 2007-07-04  Jim Meyering  <jim@meyering.net>
36361
36362         * lib/getugroups.h: New file.
36363         * lib/getugroups.c: Include "getugroups.h".
36364         Remove uses of "register" keyword.
36365         Move local variable, "cp", down into scope where used.
36366         Give "username" parameter the "const" attribute.
36367         * modules/getugroups (Files): Add lib/getugroups.h
36368
36369 2007-07-04  Karl Berry  <karl@gnu.org>
36370
36371         * MODULES.html.sh (func_all_modules): Complete rename of
36372         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36373
36374 2007-07-02  Bruno Haible  <bruno@clisp.org>
36375
36376         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36377         mode, when inttypes.h comes from gnulib.
36378         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36379
36380 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36381
36382         * NEWS: Mention lgpl module name change.
36383
36384         * modules/lgpl-2.1: Renamed from lgpl.
36385
36386         * NEWS: Mention gpl module name change.
36387
36388         * modules/gpl-3.0: New file, based on gpl-2.0.
36389
36390         * modules/gpl-2.0: Renamed from gpl.
36391
36392         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36393         doc/gpl-2.0.texi.
36394
36395 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36396
36397         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36398         #define __STDC_LIMIT_MACROS temporarily while including
36399         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36400         Problem reported by Joel E. Denny in
36401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36402
36403 2007-07-01  Bruno Haible  <bruno@clisp.org>
36404
36405         * lib/unistdio.h: New file.
36406         * lib/unistdio/u-asnprintf.h: New file.
36407         * lib/unistdio/u-asprintf.h: New file.
36408         * lib/unistdio/u-printf-args.c: New file.
36409         * lib/unistdio/u-printf-args.h: New file.
36410         * lib/unistdio/u-printf-parse.h: New file.
36411         * lib/unistdio/u-snprintf.h: New file.
36412         * lib/unistdio/u-sprintf.h: New file.
36413         * lib/unistdio/u-vasprintf.h: New file.
36414         * lib/unistdio/u-vsnprintf.h: New file.
36415         * lib/unistdio/u-vsprintf.h: New file.
36416         * lib/unistdio/ulc-asnprintf.c: New file.
36417         * lib/unistdio/ulc-asprintf.c: New file.
36418         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36419         * lib/unistdio/ulc-printf-parse.c: New file.
36420         * lib/unistdio/ulc-snprintf.c: New file.
36421         * lib/unistdio/ulc-sprintf.c: New file.
36422         * lib/unistdio/ulc-vasnprintf.c: New file.
36423         * lib/unistdio/ulc-vasprintf.c: New file.
36424         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36425         * lib/unistdio/ulc-vsnprintf.c: New file.
36426         * lib/unistdio/ulc-vsprintf.c: New file.
36427         * lib/unistdio/u8-asnprintf.c: New file.
36428         * lib/unistdio/u8-asprintf.c: New file.
36429         * lib/unistdio/u8-printf-parse.c: New file.
36430         * lib/unistdio/u8-snprintf.c: New file.
36431         * lib/unistdio/u8-sprintf.c: New file.
36432         * lib/unistdio/u8-vasnprintf.c: New file.
36433         * lib/unistdio/u8-vasprintf.c: New file.
36434         * lib/unistdio/u8-vsnprintf.c: New file.
36435         * lib/unistdio/u8-vsprintf.c: New file.
36436         * lib/unistdio/u8-u8-asnprintf.c: New file.
36437         * lib/unistdio/u8-u8-asprintf.c: New file.
36438         * lib/unistdio/u8-u8-snprintf.c: New file.
36439         * lib/unistdio/u8-u8-sprintf.c: New file.
36440         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36441         * lib/unistdio/u8-u8-vasprintf.c: New file.
36442         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36443         * lib/unistdio/u8-u8-vsprintf.c: New file.
36444         * lib/unistdio/u16-asnprintf.c: New file.
36445         * lib/unistdio/u16-asprintf.c: New file.
36446         * lib/unistdio/u16-printf-parse.c: New file.
36447         * lib/unistdio/u16-snprintf.c: New file.
36448         * lib/unistdio/u16-sprintf.c: New file.
36449         * lib/unistdio/u16-vasnprintf.c: New file.
36450         * lib/unistdio/u16-vasprintf.c: New file.
36451         * lib/unistdio/u16-vsnprintf.c: New file.
36452         * lib/unistdio/u16-vsprintf.c: New file.
36453         * lib/unistdio/u16-u16-asnprintf.c: New file.
36454         * lib/unistdio/u16-u16-asprintf.c: New file.
36455         * lib/unistdio/u16-u16-snprintf.c: New file.
36456         * lib/unistdio/u16-u16-sprintf.c: New file.
36457         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36458         * lib/unistdio/u16-u16-vasprintf.c: New file.
36459         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36460         * lib/unistdio/u16-u16-vsprintf.c: New file.
36461         * lib/unistdio/u32-asnprintf.c: New file.
36462         * lib/unistdio/u32-asprintf.c: New file.
36463         * lib/unistdio/u32-printf-parse.c: New file.
36464         * lib/unistdio/u32-snprintf.c: New file.
36465         * lib/unistdio/u32-sprintf.c: New file.
36466         * lib/unistdio/u32-vasnprintf.c: New file.
36467         * lib/unistdio/u32-vasprintf.c: New file.
36468         * lib/unistdio/u32-vsnprintf.c: New file.
36469         * lib/unistdio/u32-vsprintf.c: New file.
36470         * lib/unistdio/u32-u32-asnprintf.c: New file.
36471         * lib/unistdio/u32-u32-asprintf.c: New file.
36472         * lib/unistdio/u32-u32-snprintf.c: New file.
36473         * lib/unistdio/u32-u32-sprintf.c: New file.
36474         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36475         * lib/unistdio/u32-u32-vasprintf.c: New file.
36476         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36477         * lib/unistdio/u32-u32-vsprintf.c: New file.
36478         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36479         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36480         * tests/unistdio/test-ulc-printf1.h: New file.
36481         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36482         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36483         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36484         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36485         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36486         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36487         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36488         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36489         * tests/unistdio/test-u8-asnprintf1.c: New file.
36490         * tests/unistdio/test-u8-asnprintf1.h: New file.
36491         * tests/unistdio/test-u8-printf1.h: New file.
36492         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36493         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36494         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36495         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36496         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36497         * tests/unistdio/test-u8-vasprintf1.c: New file.
36498         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36499         * tests/unistdio/test-u8-vsprintf1.c: New file.
36500         * tests/unistdio/test-u16-asnprintf1.c: New file.
36501         * tests/unistdio/test-u16-asnprintf1.h: New file.
36502         * tests/unistdio/test-u16-printf1.h: New file.
36503         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36504         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36505         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36506         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36507         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36508         * tests/unistdio/test-u16-vasprintf1.c: New file.
36509         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36510         * tests/unistdio/test-u16-vsprintf1.c: New file.
36511         * tests/unistdio/test-u32-asnprintf1.c: New file.
36512         * tests/unistdio/test-u32-asnprintf1.h: New file.
36513         * tests/unistdio/test-u32-printf1.h: New file.
36514         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36515         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36516         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36517         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36518         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36519         * tests/unistdio/test-u32-vasprintf1.c: New file.
36520         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36521         * tests/unistdio/test-u32-vsprintf1.c: New file.
36522         * modules/unistdio/base: New file.
36523         * modules/unistdio/u-printf-args: New file.
36524         * modules/unistdio/ulc-asnprintf: New file.
36525         * modules/unistdio/ulc-asprintf: New file.
36526         * modules/unistdio/ulc-fprintf: New file.
36527         * modules/unistdio/ulc-printf-parse: New file.
36528         * modules/unistdio/ulc-snprintf: New file.
36529         * modules/unistdio/ulc-sprintf: New file.
36530         * modules/unistdio/ulc-vasnprintf: New file.
36531         * modules/unistdio/ulc-vasprintf: New file.
36532         * modules/unistdio/ulc-vfprintf: New file.
36533         * modules/unistdio/ulc-vsnprintf: New file.
36534         * modules/unistdio/ulc-vsprintf: New file.
36535         * modules/unistdio/u8-asnprintf: New file.
36536         * modules/unistdio/u8-asprintf: New file.
36537         * modules/unistdio/u8-printf-parse: New file.
36538         * modules/unistdio/u8-snprintf: New file.
36539         * modules/unistdio/u8-sprintf: New file.
36540         * modules/unistdio/u8-vasnprintf: New file.
36541         * modules/unistdio/u8-vasprintf: New file.
36542         * modules/unistdio/u8-vsnprintf: New file.
36543         * modules/unistdio/u8-vsprintf: New file.
36544         * modules/unistdio/u8-u8-asnprintf: New file.
36545         * modules/unistdio/u8-u8-asprintf: New file.
36546         * modules/unistdio/u8-u8-snprintf: New file.
36547         * modules/unistdio/u8-u8-sprintf: New file.
36548         * modules/unistdio/u8-u8-vasnprintf: New file.
36549         * modules/unistdio/u8-u8-vasprintf: New file.
36550         * modules/unistdio/u8-u8-vsnprintf: New file.
36551         * modules/unistdio/u8-u8-vsprintf: New file.
36552         * modules/unistdio/u16-asnprintf: New file.
36553         * modules/unistdio/u16-asprintf: New file.
36554         * modules/unistdio/u16-printf-parse: New file.
36555         * modules/unistdio/u16-snprintf: New file.
36556         * modules/unistdio/u16-sprintf: New file.
36557         * modules/unistdio/u16-vasnprintf: New file.
36558         * modules/unistdio/u16-vasprintf: New file.
36559         * modules/unistdio/u16-vsnprintf: New file.
36560         * modules/unistdio/u16-vsprintf: New file.
36561         * modules/unistdio/u16-u16-asnprintf: New file.
36562         * modules/unistdio/u16-u16-asprintf: New file.
36563         * modules/unistdio/u16-u16-snprintf: New file.
36564         * modules/unistdio/u16-u16-sprintf: New file.
36565         * modules/unistdio/u16-u16-vasnprintf: New file.
36566         * modules/unistdio/u16-u16-vasprintf: New file.
36567         * modules/unistdio/u16-u16-vsnprintf: New file.
36568         * modules/unistdio/u16-u16-vsprintf: New file.
36569         * modules/unistdio/u32-asnprintf: New file.
36570         * modules/unistdio/u32-asprintf: New file.
36571         * modules/unistdio/u32-printf-parse: New file.
36572         * modules/unistdio/u32-snprintf: New file.
36573         * modules/unistdio/u32-sprintf: New file.
36574         * modules/unistdio/u32-vasnprintf: New file.
36575         * modules/unistdio/u32-vasprintf: New file.
36576         * modules/unistdio/u32-vsnprintf: New file.
36577         * modules/unistdio/u32-vsprintf: New file.
36578         * modules/unistdio/u32-u32-asnprintf: New file.
36579         * modules/unistdio/u32-u32-asprintf: New file.
36580         * modules/unistdio/u32-u32-snprintf: New file.
36581         * modules/unistdio/u32-u32-sprintf: New file.
36582         * modules/unistdio/u32-u32-vasnprintf: New file.
36583         * modules/unistdio/u32-u32-vasprintf: New file.
36584         * modules/unistdio/u32-u32-vsnprintf: New file.
36585         * modules/unistdio/u32-u32-vsprintf: New file.
36586         * modules/unistdio/ulc-asnprintf-tests: New file.
36587         * modules/unistdio/ulc-vasnprintf-tests: New file.
36588         * modules/unistdio/ulc-vasprintf-tests: New file.
36589         * modules/unistdio/ulc-vsnprintf-tests: New file.
36590         * modules/unistdio/ulc-vsprintf-tests: New file.
36591         * modules/unistdio/u8-asnprintf-tests: New file.
36592         * modules/unistdio/u8-vasnprintf-tests: New file.
36593         * modules/unistdio/u8-vasprintf-tests: New file.
36594         * modules/unistdio/u8-vsnprintf-tests: New file.
36595         * modules/unistdio/u8-vsprintf-tests: New file.
36596         * modules/unistdio/u16-asnprintf-tests: New file.
36597         * modules/unistdio/u16-vasnprintf-tests: New file.
36598         * modules/unistdio/u16-vasprintf-tests: New file.
36599         * modules/unistdio/u16-vsnprintf-tests: New file.
36600         * modules/unistdio/u16-vsprintf-tests: New file.
36601         * modules/unistdio/u32-asnprintf-tests: New file.
36602         * modules/unistdio/u32-vasnprintf-tests: New file.
36603         * modules/unistdio/u32-vasprintf-tests: New file.
36604         * modules/unistdio/u32-vsnprintf-tests: New file.
36605         * modules/unistdio/u32-vsprintf-tests: New file.
36606         * MODULES.html.sh (Unicode string functions): Add the new modules.
36607
36608 2007-07-01  Bruno Haible  <bruno@clisp.org>
36609
36610         * lib/sprintf.c (sprintf): Limit the available length estimation,
36611         to avoid address wraparound.
36612         * lib/vsprintf.c (vsprintf): Likewise.
36613         * modules/sprintf-posix (Dependencies): Add stdint.
36614         * modules/vsprintf-posix (Dependencies): Likewise.
36615
36616 2007-07-01  Bruno Haible  <bruno@clisp.org>
36617
36618         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
36619         Windows PATH as well. Conservative double-quoting. Comments.
36620
36621 2007-07-01  Bruno Haible  <bruno@clisp.org>
36622             Eric Blake  <ebb9@byu.net>
36623             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36624
36625         * gnulib-tool (self_abspathname): Fix algorithm to cope with
36626         empty components in $PATH, denoting '.'.
36627
36628 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36629
36630         * gnulib-tool: Fix indentation.
36631         (func_create_megatestdir): Likewise.
36632         Report by Bruno Haible.
36633
36634 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36635
36636         Sync from Automake.
36637         * build-aux/gnupload: Fix shell portability issues with for loops.
36638         Report by Karl Berry.
36639
36640 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36641
36642         * build-aux/maint.mk (POURL): Use translationproject.org.
36643
36644 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36645             Bruno Haible  <bruno@clisp.org>
36646
36647         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36648         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36649         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36650         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36651         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36652
36653 2007-06-27  Bruno Haible  <bruno@clisp.org>
36654
36655         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36656         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36657
36658 2007-06-26  Karl Berry  <karl@gnu.org>
36659
36660         * MODULES.html.sh: remove xreadlink-with-size.
36661
36662 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36663
36664         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36665         method that I hope also handles the double-include problem noted
36666         by Bruno Haible in
36667         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36668
36669 2007-06-23  Bruno Haible  <bruno@clisp.org>
36670
36671         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36672         Don't let the 'mostlyclean' target fail if the last subdirectory could
36673         not be removed.
36674         Reported by Karl Berry.
36675
36676 2007-06-23  Bruno Haible  <bruno@clisp.org>
36677
36678         * gnulib-tool (echo): Add a speedier workaround for ksh.
36679         * tests/test-echo.sh: Likewise.
36680
36681 2007-06-23  Bruno Haible  <bruno@clisp.org>
36682
36683         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36684         * tests/test-echo.sh: Likewise.
36685
36686 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36687
36688         * gnulib-tool (IFS): Initialize early, so we don't set it to
36689         empty later.
36690         (self_abspathname): Rewrite algorithm to set it, reindent.
36691         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36692         (func_create_megatestdir): Merge some sed scripts.
36693
36694 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36695
36696         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36697         exposed by Sun Studio 11 cc on Solaris 8.
36698
36699 2007-06-22  Bruno Haible  <bruno@clisp.org>
36700
36701         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36702         backslashes.
36703         * tests/test-echo.sh: New file.
36704
36705 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36706
36707         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36708         simplify `sed_replace_build_aux' scripts, they are portable but
36709         echoing them with `echo' is not.
36710         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
36711
36712 2007-06-21  Karl Berry  <karl@gnu.org>
36713
36714         * config/srclist.txt: guess we can't handle the licenses via
36715         srclist at the moment.
36716
36717 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36718
36719         * MODULES.html.sh: Add include_next.
36720         * modules/include_next: New file.
36721
36722 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36723
36724         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
36725         INCLUDE_NEXT.
36726         (gl_CHECK_NEXT_HEADERS): New macro.
36727         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
36728         the obsolescent gl_ABSOLUTE_HEADER.
36729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
36730         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
36731         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36732         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36733         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36734         * m4/math_h.m4 (gl_MATH_H): Likewise.
36735         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36736         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36737         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36738         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36739         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36740         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36741         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36742         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36743         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36745         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36746         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36747         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
36748         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36749         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36750         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36751         * m4/inttypes.m4 (gl_INTTYPES_H): Define
36752         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
36753         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
36754         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
36755         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
36756         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
36757         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
36758         * lib/float_.h: Likewise.
36759         * lib/inttypes_.h: Likewise.
36760         * lib/math_.h: Likewise.
36761         * lib/search_.h: Likewise.
36762         * lib/signal_.h: Likewise.
36763         * lib/stdint_.h: Likewise.
36764         * lib/stdio_.h: Likewise.
36765         * lib/stdlib_.h: Likewise.
36766         * lib/string_.h: Likewise.
36767         * lib/sys_stat_.h: Likewise.
36768         * lib/sys_time_.h: Likewise.
36769         * lib/time_.h: Likewise.
36770         * lib/unistd_.h: Likewise.
36771         * lib/wchar_.h: Likewise.
36772         * lib/wctype_.h: Likewise.
36773         * lib/dirent_.h: Likewise.
36774         * lib/iconv_.h: Likewise.
36775         * lib/locale_.h: Likewise.
36776         * lib/netinet_in_.h: Likewise.
36777         * lib/sys_select_.h: Likewise.
36778         * lib/sys_socket_.h: Likewise.
36779         * lib/sysexits_.h: Likewise.
36780         * modules/fcntl (Depends-on): Depend on include_next, not
36781         absolute_header.
36782         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
36783         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
36784         * modules/fchdir: Likewise.
36785         * modules/float: Likewise.
36786         * modules/iconv_open: Likewise.
36787         * modules/inttypes: Likewise.
36788         * modules/locale: Likewise.
36789         * modules/math: Likewise.
36790         * modules/netinet_in: Likewise.
36791         * modules/search: Likewise.
36792         * modules/signal: Likewise.
36793         * modules/stdint: Likewise.
36794         * modules/stdio: Likewise.
36795         * modules/stdlib: Likewise.
36796         * modules/string: Likewise.
36797         * modules/sys_select: Likewise.
36798         * modules/sys_socket: Likewise.
36799         * modules/sys_stat: Likewise.
36800         * modules/sys_time: Likewise.
36801         * modules/sysexits: Likewise.
36802         * modules/time: Likewise.
36803         * modules/unistd: Likewise.
36804         * modules/wchar: Likewise.
36805         * modules/wctype: Likewise.
36806         * modules/sys_stat: Change maintainer to "all".
36807         * modules/unistd: Likewise.
36808
36809 2007-06-20  Karl Berry  <karl@gnu.org>
36810
36811         * config/srclist.txt: track www changes in license files.
36812
36813 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
36814
36815         * build-aux/bootstrap: Remove stray dot.
36816         Make sure build_aux settings are honored when linking
36817         gnulib_extra_files.
36818
36819 2007-06-19  Eric Blake  <ebb9@byu.net>
36820
36821         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36822         Allow compilation on cygwin.
36823
36824 2007-06-19  Jim Meyering  <jim@meyering.net>
36825
36826         xreadlink-with-size: Remove module.  No longer used.
36827         Ex-callers now use xreadlink or mreadlink-with-size.
36828         * modules/xreadlink-with-size: Remove module.
36829         * lib/xreadlink-with-size.c: Remove file.
36830         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
36831         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
36832         just before the function definition *is* accurate.
36833
36834         Eliminate one way canonicalize_filename_mode could exit.
36835         * lib/canonicalize.c (canonicalize_filename_mode):
36836         Use mreadlink_with_size, not xreadlink_with_size.
36837
36838 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
36839
36840         Detect porting problems to FreeBSD/arm, which has time_t wider than
36841         long int.  Original problem reported for GNU diff by Xin Li in
36842         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
36843         * modules/getdate (Depends-on): Add intprops, verify.
36844         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
36845         is an integer type no wider than long int.
36846
36847 2007-06-18  Jim Meyering  <jim@meyering.net>
36848
36849         New module: mreadlink-with-size.
36850         * MODULES.html.sh: Add mreadlink-with-size.
36851         * modules/mreadlink-with-size: New module
36852         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
36853         not xreadlink-with-size.
36854         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
36855
36856 2007-06-16  Bruno Haible  <bruno@clisp.org>
36857
36858         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
36859         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
36860         Reported by Gary V. Vaughan <gary@gnu.org>.
36861
36862 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36863
36864         Revamp lchown so that it lives in unistd.h where it belongs.
36865         * lib/lchown.h: Remove.
36866         * lib/dirchownmod.c: Don't include lib/lchown.h.
36867         * lib/fchownat.c: Likewise.
36868         * lib/openat.c: Likewise.
36869         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
36870         does not follow symlinks.
36871         (EOPNOTSUPP): Define if not defined.
36872         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
36873         is defined to 0.
36874         (lchown): New decl.
36875         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
36876         Do not check for lchown decl.
36877         Set REPLACE_LCHOWN.
36878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
36879         REPLACE_LCHOWN.
36880         * modules/chown: Make it clear it follows symlinks.
36881         * modules/lchown: Make it clear it doesn't follow symlinks.
36882         (Files): Remove lib/lchown.h
36883         (Depends-on): Add unistd.
36884         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
36885         (Include): Include <unistd.h>, not "lchown.h".
36886         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
36887         REPLACE_LCHOWN.
36888
36889 2007-06-15  Jim Meyering  <jim@meyering.net>
36890
36891         Change license (GPL to LGPL) of fsusage and dependents.
36892         * modules/fsusage (License): Change to LGPL.
36893         * modules/full-read (License): Likewise.
36894         * modules/full-write (License): Likewise.
36895         * modules/safe-read (License): Likewise.
36896         * modules/safe-write (License): Likewise.
36897
36898 2007-06-14  Ben Pfaff  <blp@gnu.org>
36899
36900         Missing part of allocsa -> malloca transition.
36901         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
36902         gl_MALLOCA.
36903
36904 2007-06-12  Bruno Haible  <bruno@clisp.org>
36905
36906         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
36907         to ia64, x86_64, i386.
36908         Reported by Eric Blake.
36909
36910 2007-06-12  Bruno Haible  <bruno@clisp.org>
36911
36912         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
36913         cross-compiling to x86_64.
36914
36915 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
36916
36917         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
36918         glitch reported by Ralf Wildenhues in
36919         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
36920
36921         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
36922         Vin Shelton.
36923
36924 2007-06-11  Bruno Haible  <bruno@clisp.org>
36925
36926         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
36927         replacement string.
36928         Reported by Eric Blake.
36929
36930 2007-06-10  Bruno Haible  <bruno@clisp.org>
36931
36932         Prepare vasnprintf code for use with Unicode strings.
36933         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
36934         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
36935         TYPE_U32_STRING.
36936         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
36937         a_u32_string variants.
36938         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
36939         * lib/printf-args.c: Don't include config.h and the specification
36940         header if PRINTF_FETCHARGS is already defined.
36941         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
36942         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
36943         TYPE_U16_STRING, TYPE_U32_STRING.
36944         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
36945         u16_directive, u16_directives, u32_directive, u32_directives): New
36946         types.
36947         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
36948         New declarations.
36949         * lib/printf-parse.c: Don't include config.h and the specification
36950         header if PRINTF_PARSE is already defined. Eliminate the set of
36951         parameters for WIDE_CHAR_VERSION; the user of this file must provide
36952         them now. Include c-ctype.h.
36953         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
36954         directive and CHAR_T_ONLY_ASCII.
36955         * lib/vasnprintf.c: Don't include config.h and the specification header
36956         if VASNPRINTF is already defined.
36957         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
36958         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
36959         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
36960         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
36961         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
36962         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
36963         code accordingly.
36964         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
36965         pad_ourselves also in this case, with the 'c' and 's' directives, and
36966         with a different notion of "width".
36967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
36968
36969 2007-06-10  Bruno Haible  <bruno@clisp.org>
36970
36971         * modules/unistr/u32-mbsnlen: New file.
36972         * lib/unistr/u32-mbsnlen.c: New file.
36973
36974         * modules/unistr/u16-mbsnlen: New file.
36975         * lib/unistr/u16-mbsnlen.c: New file.
36976
36977         * modules/unistr/u8-mbsnlen: New file.
36978         * lib/unistr/u8-mbsnlen.c: New file.
36979
36980         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
36981         declarations.
36982
36983 2007-06-10  Bruno Haible  <bruno@clisp.org>
36984
36985         * lib/string_.h (mbsnlen): New declaration.
36986         * lib/mbsnlen.c: New file.
36987         * m4/mbsnlen.m4: New file.
36988         * modules/mbsnlen: New file.
36989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
36990         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
36991         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
36992
36993 2007-06-10  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
36996
36997 2007-06-10  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37000         * lib/mbuiter.h: Likewise.
37001
37002 2007-06-10  Bruno Haible  <bruno@clisp.org>
37003
37004         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37005         declaration.
37006
37007 2007-06-10  Karl Berry  <karl@gnu.org>
37008
37009         * config/srclist.txt: remove gettext entries, Bruno prefers
37010         to update individually.
37011
37012 2007-06-10  Bruno Haible  <bruno@clisp.org>
37013
37014         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37015         'maxlen'. Ensure only length + width bytes are allocated, not
37016         length + 1 + width.
37017
37018 2007-06-09  Bruno Haible  <bruno@clisp.org>
37019
37020         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37021         (CHAR_T): Remove macro.
37022         (VASNPRINTF): Update.
37023
37024 2007-06-09  Bruno Haible  <bruno@clisp.org>
37025
37026         * MODULES.html.sh (Unicode string functions): Add the new modules.
37027
37028         * modules/uniconv/u32-conv-to-enc: New file.
37029         * lib/uniconv/u32-conv-to-enc.c: New file.
37030         * modules/uniconv/u32-conv-to-enc-tests: New file.
37031         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37032
37033         * modules/uniconv/u16-conv-to-enc: New file.
37034         * lib/uniconv/u16-conv-to-enc.c: New file.
37035         * lib/uniconv/u-conv-to-enc.h: New file.
37036         * modules/uniconv/u16-conv-to-enc-tests: New file.
37037         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37038
37039         * modules/uniconv/u8-conv-to-enc: New file.
37040         * lib/uniconv/u8-conv-to-enc.c: New file.
37041         * modules/uniconv/u8-conv-to-enc-tests: New file.
37042         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37043
37044         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37045         u32_conv_to_encoding): New declarations.
37046
37047 2007-06-09  Bruno Haible  <bruno@clisp.org>
37048
37049         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37050
37051 2007-06-09  Bruno Haible  <bruno@clisp.org>
37052
37053         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37054         * modules/malloca: Renamed from modules/allocsa, updated.
37055         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37056         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37057         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37058         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37059         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37060         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37061         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37062         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37063         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37064         * modules/c-strcasestr (Depends-on): Update.
37065         * lib/c-strcasestr.c: Update.
37066         * modules/c-strstr (Depends-on): Update.
37067         * lib/c-strstr.c: Update.
37068         * modules/canonicalize-lgpl (Depends-on): Update.
37069         * lib/canonicalize-lgpl.c: Update.
37070         * modules/clean-temp (Depends-on): Update.
37071         * lib/clean-temp.c: Update.
37072         * modules/csharpcomp (Depends-on): Update.
37073         * lib/csharpcomp.c: Update.
37074         * modules/csharpexec (Depends-on): Update.
37075         * lib/csharpexec.c: Update.
37076         * modules/javacomp (Depends-on): Update.
37077         * lib/javacomp.c: Update.
37078         * modules/javaexec (Depends-on): Update.
37079         * lib/javaexec.c: Update.
37080         * modules/mbscasestr (Depends-on): Update.
37081         * lib/mbscasestr.c: Update.
37082         * modules/mbsstr (Depends-on): Update.
37083         * lib/mbsstr.c: Update.
37084         * modules/setenv (Depends-on): Update.
37085         * lib/setenv.c: Update.
37086         * modules/strcasestr (Depends-on): Update.
37087         * lib/strcasestr.c: Update.
37088         * modules/striconveha (Depends-on): Update.
37089         * lib/striconveha.c: Update.
37090         * modules/relocatable-prog-wrapper (Files): Update.
37091         * lib/relocwrapper.c: Update.
37092         * build-aux/install-reloc: Update.
37093         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37094
37095 2007-06-08  Bruno Haible  <bruno@clisp.org>
37096
37097         Port to uClibc.
37098         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37099         * lib/fpurge.c (fpurge): Likewise.
37100         * lib/freading.c (freading): Likewise.
37101         * lib/fseeko.c (rpl_fseeko): Likewise.
37102         * lib/fseterr.c (fseterr): Likewise.
37103         * lib/fwriting.c (fwriting): Likewise.
37104         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37105
37106 2007-06-08  Bruno Haible  <bruno@clisp.org>
37107
37108         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37109         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37110         * modules/gettext (Files): Add m4/intlmacosx.m4.
37111
37112 2007-06-07  Bruno Haible  <bruno@clisp.org>
37113
37114         * modules/localename-tests: New file.
37115         * tests/test-localename.c: New file.
37116
37117         New module 'localename'.
37118         * lib/localename.h: New file.
37119         * lib/localename.c: New file, from GNU gettext.
37120         * m4/localename.m4: New file.
37121         * modules/localename: New file.
37122
37123 2007-06-07  Bruno Haible  <bruno@clisp.org>
37124
37125         Work around the lack of <wchar.h> on some builds of uClibc.
37126         * doc/headers/wchar.texi: Update.
37127         * lib/wchar_.h: Include <wchar.h> only if it exists.
37128         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37129         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37130         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37131         doesn't exist.
37132         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37133         * modules/mbfile (Depends-on): Add wchar.
37134         * modules/mbiter (Depends-on): Likewise.
37135         * modules/mbuiter (Depends-on): Likewise.
37136         Reported by Simon Josefsson.
37137
37138 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37139
37140         Work around problem reported by Steven M. Schweda in
37141         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37142         Tru64 5.1B with the Compaq compiler environment installed declares
37143         an 'isblank' function but does not define it in the C library.
37144         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37145         * lib/regex_internal.h (isblank): Likewise.
37146         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37147         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37148
37149 2007-06-05  Bruno Haible  <bruno@clisp.org>
37150
37151         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37152         ia64.
37153         * modules/printf-safe: New file.
37154         * modules/fprintf-posix (Depends-on): Add printf-safe.
37155         * modules/printf-posix (Depends-on): Likewise.
37156         * modules/snprintf-posix (Depends-on): Likewise.
37157         * modules/sprintf-posix (Depends-on): Likewise.
37158         * modules/vasnprintf-posix (Depends-on): Likewise.
37159         * modules/vasprintf-posix (Depends-on): Likewise.
37160         * modules/vfprintf-posix (Depends-on): Likewise.
37161         * modules/vprintf-posix (Depends-on): Likewise.
37162         * modules/vsnprintf-posix (Depends-on): Likewise.
37163         * modules/vsprintf-posix (Depends-on): Likewise.
37164         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37165         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37166         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37167         "no" on i386, x86_64, ia64.
37168         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37169         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37170         on i386, x86_64, ia64.
37171         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37172         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37173         on i386, x86_64, ia64.
37174         * tests/test-vasnprintf-posix.c: Include float.h.
37175         (LDBL80_WORDS): New macro.
37176         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37177         on i386, x86_64, ia64.
37178         * tests/test-vasprintf-posix.c: Include float.h.
37179         (LDBL80_WORDS): New macro.
37180         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37181         on i386, x86_64, ia64.
37182         * tests/test-snprintf-posix.c: Include float.h.
37183         * tests/test-sprintf-posix.c: Likewise.
37184         * tests/test-vsnprintf-posix.c: Likewise.
37185         * tests/test-vsprintf-posix.c: Likewise.
37186
37187 2007-06-05  Bruno Haible  <bruno@clisp.org>
37188
37189         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37190         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37191         non-IEEE numbers on i386, x86_64, ia64.
37192         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37193         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37194         * tests/test-isnanl.h: Include float.h.
37195         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37196
37197 2007-06-05  Bruno Haible  <bruno@clisp.org>
37198
37199         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37200         also the %a / %A. Handle the %a / %A code before this extra handling.
37201
37202 2007-06-05  Bruno Haible  <bruno@clisp.org>
37203
37204         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37205         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37206
37207 2007-06-05  Bruno Haible  <bruno@clisp.org>
37208
37209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37210         typo in variable name.
37211
37212 2007-06-05  Eric Blake  <ebb9@byu.net>
37213
37214         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37215         Reported by Simon Josefsson.
37216
37217 2007-06-04  Bruno Haible  <bruno@clisp.org>
37218
37219         Avoid test failures on some PowerPC platforms.
37220         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37221         Define differently for PowerPC.
37222         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37223         Reported by Gary V. Vaughan <gary@gnu.org>.
37224
37225 2007-06-02  Bruno Haible  <bruno@clisp.org>
37226
37227         Fix test-stdint failure on FreeBSD/ia64.
37228         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37229         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37230         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37231         * doc/headers/stdint.texi: Update.
37232
37233 2007-06-01  Bruno Haible  <bruno@clisp.org>
37234
37235         * tests/test-binary-io.c (main): Pass a third argument to open().
37236         Reported by Gary V. Vaughan <gary@gnu.org>.
37237
37238 2007-06-01  Bruno Haible  <bruno@clisp.org>
37239
37240         * doc/functions/frexpl.texi: Update for mingw.
37241
37242 2007-06-01  Bruno Haible  <bruno@clisp.org>
37243
37244         * tests/test-lseek.c (main): Disable test of errno for invalid third
37245         argument.
37246         * doc/functions/lseek.texi: Update.
37247         Reported by Gary V. Vaughan <gary@gnu.org>.
37248
37249 2007-05-28  Bruno Haible  <bruno@clisp.org>
37250
37251         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37252
37253 2007-05-31  Eric Blake  <ebb9@byu.net>
37254
37255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37256         cross compiling.
37257
37258 2007-05-30  Eric Blake  <ebb9@byu.net>
37259         and Bruno Haible  <bruno@clisp.org>
37260
37261         Work around mingw test failures exposed by m4-1.4.9b.
37262         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37263         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37264         moment.
37265
37266 2007-05-30  Bruno Haible  <bruno@clisp.org>
37267
37268         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37269         assuming that they are closed. Needed on HP-UX 11.
37270
37271 2007-05-29  Bruno Haible  <bruno@clisp.org>
37272
37273         Fix a problem with #include_next.
37274         * lib/dirent_.h: Split the double-inclusion guard.
37275         * lib/fcntl_.h: Likewise.
37276         * lib/float_.h: Likewise.
37277         * lib/iconv_.h: Likewise.
37278         * lib/inttypes_.h: Likewise.
37279         * lib/locale_.h: Likewise.
37280         * lib/math_.h: Likewise.
37281         * lib/netinet_in_.h: Likewise.
37282         * lib/search_.h: Likewise.
37283         * lib/signal_.h: Likewise.
37284         * lib/stdint_.h: Likewise.
37285         * lib/stdio_.h: Likewise.
37286         * lib/stdlib_.h: Likewise.
37287         * lib/string_.h: Likewise.
37288         * lib/sys_select_.h: Likewise.
37289         * lib/sys_socket_.h: Likewise.
37290         * lib/sys_stat_.h: Likewise.
37291         * lib/sys_time_.h: Likewise.
37292         * lib/sysexits_.h: Likewise.
37293         * lib/time_.h: Likewise.
37294         * lib/unistd_.h: Likewise.
37295         * lib/wchar_.h: Likewise.
37296         * lib/wctype_.h: Likewise.
37297
37298 2007-05-29  Bruno Haible  <bruno@clisp.org>
37299
37300         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37301         for the moment.
37302
37303 2007-05-29  Bruno Haible  <bruno@clisp.org>
37304
37305         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37306         invocation.
37307         Reported by Eric Blake.
37308
37309 2007-05-29  Bruno Haible  <bruno@clisp.org>
37310
37311         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37312         compiling case.
37313
37314 2007-05-29  Eric Blake  <ebb9@byu.net>
37315             Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37318         cross compiles.
37319
37320 2007-05-28  Eric Blake  <ebb9@byu.net>
37321
37322         * modules/closein-tests (test_closein_LDADD): Support test on
37323         cygwin with libtool.
37324
37325 2007-05-28  Bruno Haible  <bruno@clisp.org>
37326
37327         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37328         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37329         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37330         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37331         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37332         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37333         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37334         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37335         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37336
37337 2007-05-28  Eric Blake  <ebb9@byu.net>
37338
37339         Unconditionally include <config.h> in unit tests.
37340         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37341         * tests/test-allocsa.c, tests/test-arcfour.c,
37342         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37343         tests/test-array_list.c, tests/test-array_oset.c,
37344         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37345         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37346         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37347         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37348         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37349         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37350         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37351         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37352         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37353         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37354         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37355         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37356         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37357         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37358         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37359         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37360         test-md5.c, test-memmem.c, test-printf-posix.c,
37361         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37362         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37363         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37364         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37365         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37366         test-vasnprintf-posix2.c, test-vasnprintf.c,
37367         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37368         test-vfprintf-posix.c, test-vprintf-posix.c,
37369         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37370         test-xvasprintf.c: Likewise.
37371
37372 2007-05-28  Bruno Haible  <bruno@clisp.org>
37373
37374         * gnulib-tool (func_import): Remember the --with-tests command-line
37375         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37376         Reported by Eric Blake.
37377
37378 2007-05-28  Bruno Haible  <bruno@clisp.org>
37379
37380         * modules/ftell-tests: New file.
37381         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37382         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37383
37384         * lib/ftell.c: New file.
37385         * modules/ftell: New file.
37386         * m4/ftell.m4: New file.
37387         * doc/functions/ftell.texi: Update.
37388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37389         REPLACE_FTELL.
37390         * lib/stdio_.h (rpl_ftell): New declaration.
37391         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37392         REPLACE_FTELL.
37393
37394 2007-05-28  Eric Blake  <ebb9@byu.net>
37395
37396         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37397
37398 2007-05-28  Bruno Haible  <bruno@clisp.org>
37399
37400         * modules/fseek-tests: New file.
37401         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37402         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37403
37404         * lib/fseek.c: New file.
37405         * modules/fseek: New file.
37406         * m4/fseek.m4: New file.
37407         * doc/functions/fseek.texi: Update.
37408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37409         REPLACE_FSEEK.
37410         * lib/stdio_.h (rpl_fseek): New declaration.
37411         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37412         REPLACE_FSEEK.
37413
37414 2007-05-28  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/stdio_.h (fflush): More comments.
37417
37418 2007-05-28  Bruno Haible  <bruno@clisp.org>
37419
37420         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37421         runtime test.
37422
37423 2007-05-28  Eric Blake  <ebb9@byu.net>
37424
37425         Improve lseek module.
37426         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37427         * lib/unistd_.h (lseek): Scale back link warning message.
37428         * tests/test-lseek.c: Beef up test.
37429         * tests/test-lseek.sh: Exercise more facets of lseek.
37430         Reported by Bruno Haible.
37431
37432 2007-05-28  Bruno Haible  <bruno@clisp.org>
37433
37434         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37435         to define.
37436
37437 2007-05-27  Bruno Haible  <bruno@clisp.org>
37438
37439         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37440
37441 2007-05-27  Bruno Haible  <bruno@clisp.org>
37442
37443         * modules/openmp: New file.
37444         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37445         Noah Misch.
37446
37447 2007-05-26  Bruno Haible  <bruno@clisp.org>
37448
37449         * modules/chdir-long (Depends-on): Add fchdir.
37450         * modules/chdir-safer (Depends-on): Likewise.
37451         * modules/fts (Depends-on): Likewise.
37452         * modules/fts-lgpl (Depends-on): Likewise.
37453         * modules/openat (Depends-on): Likewise.
37454         * modules/savewd (Depends-on): Likewise.
37455
37456 2007-05-24  Eric Blake  <ebb9@byu.net>
37457
37458         Fix lseek on mingw.
37459         * modules/lseek: New module.
37460         * m4/lseek.m4: New file.
37461         * lib/lseek.c: New file.
37462         * modules/lseek-tests: New file.
37463         * tests/test-lseek.c: New file.
37464         * tests/test-lseek.sh: New file.
37465         * MODULES.html.sh: Document lseek module.
37466         * modules/fflush (Depends-on): Add lseek, fseeko.
37467         * modules/fseeko (Depends-on): Likewise.
37468         * modules/ftello (Depends-on): Likewise.
37469         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37470         broken.
37471         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37472         broken.
37473         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37474         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37475         * lib/ftello.c (rpl_ftello): Likewise.
37476         * tests/test-fseeko.c (main): Test this.
37477         * tests/test-fseeko.sh: Likewise.
37478         * tests/test-ftello.c (main): Likewise.
37479         * tests/test-ftello.sh: Likewise.
37480         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37481         implies replacing fseek.
37482         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37483         HAVE_FTELLO.
37484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37485         * modules/unistd (Makefile.am): Likewise.
37486         * lib/unistd_.h (lseek): Declare a replacement.
37487         * doc/functions/lseek.texi (lseek): Document this fix.
37488         * doc/functions/fseek.texi (fseek): Likewise.
37489         * doc/functions/ftell.texi (ftell): Likewise.
37490
37491 2007-05-24  Bruno Haible  <bruno@clisp.org>
37492
37493         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37494         in the printed representation of a NaN.
37495         * tests/test-vasprintf-posix.c (test_function): Likewise.
37496         * tests/test-snprintf-posix.h (test_function): Likewise.
37497         * tests/test-sprintf-posix.h (test_function): Likewise.
37498         Reported by Eric Blake.
37499
37500 2007-05-23  Eric Blake  <ebb9@byu.net>
37501
37502         Fix fseeko/ftello on cygwin 1.5.24.
37503         * doc/functions/fseeko.texi (fseeko): Document the fix.
37504         * doc/functions/ftello.texi (ftello): Document the fix.
37505         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37506         * doc/functions/stdout.text (stdout): New file.
37507         * doc/functions/stderr.text (stderr): New file.
37508         * doc/gnulib.texi (Function Substitutes): Use new files.
37509         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37510         prior to 1.7.0.
37511         * tests/test-ftello.c (main): Likewise for ftello.
37512         * tests/test-fseeko.sh: New file.
37513         * tests/test-ftello.sh: New file.
37514         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37515         with seekable stdin.
37516         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37517         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37518         (gl_REPLACE_FSEEKO): New macro.
37519         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37520         * modules/fseeko (Files): Distribute fseeko.c.
37521         * modules/ftello (Files): Distribute ftello.c.
37522         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37523         mode.
37524         * lib/ftello.c (rpl_ftello): New file.
37525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37526         fseeko, ftello.
37527         (gl_STDIN_LARGE_OFFSET): New macro.
37528         * modules/stdio (Makefile.am): Perform the replacement.
37529         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37530
37531 2007-05-23  Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37534         GNULIB_POSIXCHECK is defined.
37535
37536 2007-05-21  Bruno Haible  <bruno@clisp.org>
37537
37538         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37539         Check also the output for NaN arguments. When cross-compiling, guess
37540         no on IRIX.
37541         * lib/vasnprintf.c: Update comments.
37542         * tests/test-vasnprintf-posix.c (strisnan): New function.
37543         (test_function): Use it.
37544         * tests/test-vasprintf-posix.c (strisnan): New function.
37545         (test_function): Use it.
37546         * tests/test-snprintf-posix.h (strisnan): New function.
37547         (test_function): Use it.
37548         * tests/test-sprintf-posix.h (strisnan): New function.
37549         (test_function): Use it.
37550         Reported by Eric Blake.
37551
37552 2007-05-20  Bruno Haible  <bruno@clisp.org>
37553
37554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37555         numbers that fails on BeOS.
37556         * doc/functions/frexpl.texi: Update.
37557
37558 2007-05-20  Jim Meyering  <jim@meyering.net>
37559
37560         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37561         forced upon us by glibc-2.6.
37562
37563 2007-05-20  Bruno Haible  <bruno@clisp.org>
37564
37565         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37566         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37567         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37568         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37569         NEED_PRINTF_INFINITE.
37570         (is_infinitel): New function.
37571         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37573         gl_PREREQ_VASNPRINTF_INFINITE.
37574         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37575         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37576         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37577         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37578         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37579         gl_PREREQ_VASNPRINTF_INFINITE.
37580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37587         * doc/functions/fprintf.texi: Update.
37588         * doc/functions/printf.texi: Update.
37589         * doc/functions/snprintf.texi: Update.
37590         * doc/functions/sprintf.texi: Update.
37591         * doc/functions/vfprintf.texi: Update.
37592         * doc/functions/vprintf.texi: Update.
37593         * doc/functions/vsnprintf.texi: Update.
37594         * doc/functions/vsprintf.texi: Update.
37595
37596 2007-05-20  Bruno Haible  <bruno@clisp.org>
37597
37598         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37599         was not found in libc.
37600         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37601
37602 2007-05-20  Bruno Haible  <bruno@clisp.org>
37603
37604         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37605         printed as "-nan" instead of "nan".
37606         * tests/test-vasprintf-posix.c (test_function): Likewise.
37607         * tests/test-snprintf-posix.h (test_function): Likewise.
37608         * tests/test-sprintf-posix.h (test_function): Likewise.
37609         Needed for HP-UX 11.
37610
37611 2007-05-20  Jim Meyering  <jim@meyering.net>
37612
37613         Fix buggy test for the fchownat-deref bug.
37614         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
37615         symlink required for the run-test.  Without it, this test would
37616         always declare that fchownat doesn't work, and client code would
37617         unnecessarily use the replacement function with fixed libc.
37618         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
37619         Reported by Greg Schafer.
37620
37621 2007-05-19  Bruno Haible  <bruno@clisp.org>
37622
37623         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
37624         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
37625         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
37626         Needed for IRIX 6.5 and Solaris 2.5.1.
37627
37628 2007-05-19  Bruno Haible  <bruno@clisp.org>
37629
37630         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
37631         (test_function): Skip tests involving -0.0 on platforms where
37632         -0.0 = 0.0.
37633         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
37634         (test_function): Skip tests involving -0.0 on platforms where
37635         -0.0 = 0.0.
37636         * tests/test-snprintf-posix.h (have_minus_zero): New function.
37637         (test_function): Skip tests involving -0.0 on platforms where
37638         -0.0 = 0.0.
37639         * tests/test-sprintf-posix.h (have_minus_zero): New function.
37640         (test_function): Skip tests involving -0.0 on platforms where
37641         -0.0 = 0.0.
37642         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37643         tests.
37644         * tests/test-printf-posix.h (test_function): Likewise.
37645         * tests/test-printf-posix.output: Remove all -0.0 related results.
37646         Needed for IRIX 6.5.
37647
37648 2007-05-19  Bruno Haible  <bruno@clisp.org>
37649
37650         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37651         printed as "nan0x7fffffff" instead of "nan".
37652         * tests/test-vasprintf-posix.c (test_function): Likewise.
37653         * tests/test-snprintf-posix.h (test_function): Likewise.
37654         * tests/test-sprintf-posix.h (test_function): Likewise.
37655         * tests/test-fprintf-posix.h (NaN): Remove macro.
37656         (test_function): Remove all NaN related tests.
37657         * tests/test-printf-posix.h (NaN): Remove macro.
37658         (test_function): Remove all NaN related tests.
37659         * tests/test-printf-posix.output: Remove all NaN related results.
37660         Needed for IRIX 6.5.
37661
37662 2007-05-19  Bruno Haible  <bruno@clisp.org>
37663
37664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37666
37667 2007-05-19  Bruno Haible  <bruno@clisp.org>
37668
37669         * lib/float_.h: New file.
37670         * m4/float_h.m4: New file.
37671         * modules/float: New file.
37672         * modules/isnanl (Dependencies): Add float.
37673         * modules/isnanl-nolibm (Dependencies): Likewise.
37674         * modules/mathl (Dependencies): Likewise.
37675         * modules/printf-frexpl (Dependencies): Likewise.
37676         * modules/signbit (Dependencies): Likewise.
37677         * modules/vasnprintf (Dependencies): Likewise.
37678         * doc/headers/float.texi: Update.
37679
37680 2007-05-19  Jim Meyering  <jim@meyering.net>
37681
37682         * lib/utimens.c (gl_futimens): Rename from futimens,
37683         now that glibc-2.6 declares futimens.
37684         * lib/utimens.h: Likewise.
37685
37686 2007-05-19  Bruno Haible  <bruno@clisp.org>
37687
37688         Avoid test failures on mingw.
37689         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37690         * tests/test-printf-posix.sh: Likewise.
37691         * tests/test-vfprintf-posix.sh: Likewise.
37692         * tests/test-vprintf-posix.sh: Likewise.
37693
37694 2007-05-19  Bruno Haible  <bruno@clisp.org>
37695
37696         Fix *printf result for NaN, Inf, -0.0 on mingw.
37697         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37698         * lib/vasnprintf.c: Include math.h and isnan.h.
37699         (is_infinite_or_zero): New function.
37700         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37701         values in the %f, %F, %e, %E, %g, %G directives.
37702         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37704         gl_PRINTF_INFINITE and test its result. Invoke
37705         gl_PREREQ_VASNPRINTF_INFINITE.
37706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37713         * doc/functions/fprintf.texi: Update.
37714         * doc/functions/printf.texi: Update.
37715         * doc/functions/snprintf.texi: Update.
37716         * doc/functions/sprintf.texi: Update.
37717         * doc/functions/vfprintf.texi: Update.
37718         * doc/functions/vprintf.texi: Update.
37719         * doc/functions/vsnprintf.texi: Update.
37720         * doc/functions/vsprintf.texi: Update.
37721
37722 2007-05-19  Bruno Haible  <bruno@clisp.org>
37723
37724         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
37725         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
37726         Instead of multiplying with 10^k, set extra_zeroes to k.
37727         (scale10_round_long_double): Remove function.
37728
37729 2007-05-18  Bruno Haible  <bruno@clisp.org>
37730
37731         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
37732         introduced on 2007-05-06.
37733
37734 2007-05-18  Bruno Haible  <bruno@clisp.org>
37735
37736         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
37737         %g directives.
37738         * tests/test-vasprintf-posix.c (test_function): Likewise.
37739         * tests/test-snprintf-posix.h (test_function): Likewise.
37740         * tests/test-sprintf-posix.h (test_function): Likewise.
37741
37742 2007-05-18  Bruno Haible  <bruno@clisp.org>
37743
37744         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
37745         (strmatch): New function.
37746         (test_function): Test the %f directive on numbers of various exponents.
37747         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
37748         (strmatch): New function.
37749         (test_function): Test the %f directive on numbers of various exponents.
37750         * tests/test-snprintf-posix.h (strmatch): New function.
37751         (test_function): Test the %f directive on numbers of various exponents.
37752         * tests/test-sprintf-posix.h (strmatch): New function.
37753         (test_function): Test the %f directive on numbers of various exponents.
37754         * tests/test-snprintf-posix.c (SIZEOF): New macro.
37755         * tests/test-sprintf-posix.c (SIZEOF): New macro.
37756         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
37757         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
37758
37759 2007-05-18  Bruno Haible  <bruno@clisp.org>
37760
37761         Add support for 'long double' number output.
37762         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
37763         * lib/vasnprintf.c: Include math.h and float+.h.
37764         (mp_limb_t): New type.
37765         (GMP_LIMB_BITS): New macro.
37766         (mp_twolimb_t): New type.
37767         (GMP_TWOLIMB_BITS): New macro.
37768         (mpn_t): New type.
37769         (multiply, divide, convert_to_decimal, decode_long_double,
37770         scale10_round_long_double, scale10_round_decimal_long_double,
37771         floorlog10l): New functions.
37772         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
37773         for the %f, %F, %e, %E, %g, %G directives.
37774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
37775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37776         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
37777         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
37778         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37779         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37781         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37782         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37785         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
37786         * modules/snprintf-posix (Depends-on): Likewise.
37787         * modules/sprintf-posix (Depends-on): Likewise.
37788         * modules/vasnprintf-posix (Depends-on): Likewise.
37789         * modules/vasprintf-posix (Depends-on): Likewise.
37790         * modules/vfprintf-posix (Depends-on): Likewise.
37791         * modules/vsnprintf-posix (Depends-on): Likewise.
37792         * modules/vsprintf-posix (Depends-on): Likewise.
37793         * modules/vasnprintf (Files): Add lib/float+.h.
37794         * doc/functions/fprintf.texi: Update.
37795         * doc/functions/printf.texi: Update.
37796         * doc/functions/snprintf.texi: Update.
37797         * doc/functions/sprintf.texi: Update.
37798         * doc/functions/vfprintf.texi: Update.
37799         * doc/functions/vprintf.texi: Update.
37800         * doc/functions/vsnprintf.texi: Update.
37801         * doc/functions/vsprintf.texi: Update.
37802
37803 2007-05-18  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
37806
37807 2007-05-18  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
37810         for printing 64-bit integers. Needed for mingw.
37811
37812 2007-05-18  Bruno Haible  <bruno@clisp.org>
37813
37814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37815         gl_FUNC_FREXPL_WORKS.
37816         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
37817
37818 2007-05-18  Bruno Haible  <bruno@clisp.org>
37819
37820         * modules/frexpl-nolibm-tests: New file.
37821
37822         * modules/frexpl-nolibm: New file.
37823         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
37824
37825 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37826
37827         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
37828         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37829         GCC 4.2, which otherwise issues a lot of warnings.
37830         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
37831         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
37832         Likewise.
37833         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
37834         * modules/iconv_open (iconv.h): Likewise.
37835         * modules/locale (locale.h): Likewise.
37836         * modules/netinet_in (netinet/in.h): Likewise.
37837         * modules/sys_select (sys_select.h): Likewise.
37838         * modules/sys_socket (sys/socket.h): Likewise.
37839         * modules/sys_stat (sys/stat.h): Likewise.
37840         * modules/sysexits (sysexits.h): Likewise.
37841         * modules/unistd (unistd.h): Likewise.
37842
37843 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37844
37845         * modules/closein-tests (Makefile.am): Distribute
37846         `test-closein.sh'.
37847
37848 2007-05-17  Bruno Haible  <bruno@clisp.org>
37849
37850         * tests/test-printf-posix.output: Renamed from
37851         tests/test-fprintf-posix.out.
37852         * modules/fprintf-posix-tests: Update.
37853         * modules/printf-posix-tests: Update.
37854         * modules/vfprintf-posix-tests: Update.
37855         * modules/vprintf-posix-tests: Update.
37856         * tests/test-fprintf-posix.sh: Update.
37857         * tests/test-printf-posix.sh: Update.
37858         * tests/test-vfprintf-posix.sh: Update.
37859         * tests/test-vprintf-posix.sh: Update.
37860         Reported by Ralf Wildenhues.
37861
37862 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37863
37864         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
37865         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37866         GCC 4.2, which otherwise issues a lot of warnings.
37867         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
37868         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
37869         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
37870         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
37871         it should no longer be needed.
37872         * lib/string_.h: Likewise.
37873         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
37874         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
37875         * modules/inttypes (inttypes.h): Likewise.
37876         * modules/math (math.h): Likewise.
37877         * modules/search (search.h): Likewise.
37878         * modules/signal (signal.h): Likewise.
37879         * modules/stdint (stdint.h): Likewise.
37880         * modules/stdio (stdio.h): Likewise.
37881         * modules/stdlib (stdlib.h): Likewise.
37882         * modules/string (string.h): Likewise.
37883         * modules/sys_time (sys/time.h): Likewise.
37884         * modules/time (time.h): Likewise.
37885         * modules/wchar (wchar.h): Likewise.
37886         * modules/wctype (wtype.h): Likewise.
37887
37888 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37889
37890         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
37891
37892 2007-05-13  Bruno Haible  <bruno@clisp.org>
37893
37894         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
37895         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37896         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
37897         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37898         (gl_PREREQ_STRTOK_R): Don't require it here.
37899
37900 2007-05-13  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
37903         when used in C++ mode.
37904
37905 2007-05-12  Bruno Haible  <bruno@clisp.org>
37906
37907         * lib/linebuffer.h: Tweak doc.
37908         * lib/linebuffer.c: Likewise.
37909
37910 2007-05-12  James Youngman  <jay@gnu.org>
37911
37912         * lib/linebuffer.c (readlinebuffer_delim): New function,
37913         like readlinebuffer, but use a caller-specified delimiter.
37914         (readlinebuffer): Just call readlinebuffer_delim with '\n'
37915         as the delimiter.
37916         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
37917
37918 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37919
37920         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
37921         * modules/openat (Files): Remove openat-die.c.
37922         (Depends-on): Add openat-die.
37923         * modules/openat-die: New module.
37924
37925 2007-05-06  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
37928         Update with info about Cygwin.
37929         * doc/functions/fprintf.texi: Update.
37930         * doc/functions/printf.texi: Update.
37931         * doc/functions/snprintf.texi: Update.
37932         * doc/functions/sprintf.texi: Update.
37933         * doc/functions/vfprintf.texi: Update.
37934         * doc/functions/vprintf.texi: Update.
37935         * doc/functions/vsnprintf.texi: Update.
37936         * doc/functions/vsprintf.texi: Update.
37937         Reported by Eric Blake.
37938
37939 2007-05-06  Bruno Haible  <bruno@clisp.org>
37940
37941         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
37942         padding ourselves for the floating-point directives.
37943         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
37944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
37945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37946         gl_PRINTF_FLAG_ZERO and test its result. Invoke
37947         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
37948         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37949         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
37950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37951         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37952         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37953         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37954         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37955         * tests/test-snprintf-posix.h (test_function): Also check the width
37956         and some flags in the %f directive.
37957         * tests/test-sprintf-posix.h (test_function): Likewise.
37958         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37959         * tests/test-vasprintf-posix.c (test_function): Likewise.
37960         * doc/functions/fprintf.texi: Update.
37961         * doc/functions/printf.texi: Update.
37962         * doc/functions/snprintf.texi: Update.
37963         * doc/functions/sprintf.texi: Update.
37964         * doc/functions/vfprintf.texi: Update.
37965         * doc/functions/vprintf.texi: Update.
37966         * doc/functions/vsnprintf.texi: Update.
37967         * doc/functions/vsprintf.texi: Update.
37968
37969 2007-05-06  Bruno Haible  <bruno@clisp.org>
37970
37971         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
37972         pass the ' flag character to sprintf or snprintf.
37973         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
37974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
37975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
37976         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
37977         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
37978         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
37980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37985         * tests/test-snprintf-posix.h (test_function): Also check the grouping
37986         flag.
37987         * tests/test-sprintf-posix.h (test_function): Likewise.
37988         * tests/test-vasnprintf-posix.c (test_function): Likewise.
37989         * tests/test-vasprintf-posix.c (test_function): Likewise.
37990         * doc/functions/fprintf.texi: Update.
37991         * doc/functions/printf.texi: Update.
37992         * doc/functions/snprintf.texi: Update.
37993         * doc/functions/sprintf.texi: Update.
37994         * doc/functions/vfprintf.texi: Update.
37995         * doc/functions/vprintf.texi: Update.
37996         * doc/functions/vsnprintf.texi: Update.
37997         * doc/functions/vsprintf.texi: Update.
37998
37999 2007-05-01  Bruno Haible  <bruno@clisp.org>
38000
38001         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38002
38003 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38004
38005         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38006         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38007
38008 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38009
38010         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38011         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38012         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38013
38014 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38015
38016         * lib/argp-help.c (struct hol_entry): New member `ord'.
38017         (HOL_ENTRY_PTRCMP): Use ord for comparison
38018         (hol_sort): Initialize ord.
38019
38020 2007-05-01  Bruno Haible  <bruno@clisp.org>
38021
38022         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38023         Reported by Eric Blake.
38024         * doc/gnulib.texi (Function Substitutes): Update.
38025
38026 2007-05-01  Bruno Haible  <bruno@clisp.org>
38027
38028         * doc/functions.texi: Remove file, now redundant through
38029         doc/functions/*.texi.
38030
38031 2007-05-01  Bruno Haible  <bruno@clisp.org>
38032
38033         * modules/argp (Depends-on): Add sleep.
38034
38035 2007-05-01  Bruno Haible  <bruno@clisp.org>
38036
38037         * modules/sleep-tests: New file.
38038         * tests/test-sleep.c: New file.
38039
38040         * modules/sleep: New file.
38041         * lib/sleep.c: New file.
38042         * m4/sleep.m4: New file.
38043         * lib/unistd_.h (sleep): New declaration.
38044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38045         HAVE_SLEEP.
38046         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38047         * doc/functions/sleep.texi: Document the sleep module.
38048
38049 2007-05-01  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/sigprocmask.h: Remove file.
38052         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38053         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38054         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38055         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38056         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38057         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38058         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38059         HAVE_SIGSET_T as a shell variable.
38060         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38061         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38062         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38063         (Depends-on): Add signal. Remove verify.
38064         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38065         (Include): Mention <signal.h> instead of sigprocmask.h.
38066         * NEWS: Mention the change.
38067         * lib/fatal-signal.c: Don't include sigprocmask.h.
38068
38069 2007-05-01  Bruno Haible  <bruno@clisp.org>
38070
38071         * modules/signal: New file.
38072         * lib/signal_.h: New file.
38073         * m4/signal_h.m4: New file.
38074
38075 2007-05-01  Bruno Haible  <bruno@clisp.org>
38076
38077         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38078         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38079         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38080         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38081
38082 2007-05-01  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38085         configure time.
38086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38087         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38088         * modules/sys_stat (Makefile.am): Substitute their values into
38089         sys/stat.h.
38090
38091 2007-05-01  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38094         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38095         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38096
38097 2007-05-01  Bruno Haible  <bruno@clisp.org>
38098
38099         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38100         'assert' module here.
38101
38102 2007-05-01  Bruno Haible  <bruno@clisp.org>
38103
38104         * doc/functions/*.texi: New files.
38105         * doc/functions/google-ranking.txt: New file.
38106         * doc/gnulib.texi (Function Substitutes): New chapter.
38107         (ctime, inet_ntoa): Remove sections.
38108         * doc/ctime.texi: Remove file.
38109         * doc/inet_ntoa.texi: Remove file.
38110         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38111         dependencies.
38112         (%.info): New rule, specifying a --reference-limit.
38113
38114 2007-05-01  Bruno Haible  <bruno@clisp.org>
38115
38116         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38117
38118 2007-05-01  Bruno Haible  <bruno@clisp.org>
38119
38120         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38121         the portability of 'mkdir' to mingw systems.
38122
38123 2007-05-01  Bruno Haible  <bruno@clisp.org>
38124
38125         * doc/headers/google-ranking.txt: New file.
38126
38127 2007-04-30  Eric Blake  <ebb9@byu.net>
38128
38129         Prefer fseeko to fseek.
38130         * modules/getpass (Depends-on): Add fseeko.
38131         * lib/getpass.c (getpass): Use fseeko, not fseek.
38132
38133 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38134
38135         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38136         assumes the sorting is stable, while most qsort implementations
38137         are not.  Use argument addresses to ensure they never compare as
38138         equal.
38139
38140         * tests/test-argp-2.sh (usage-indent test): Fix output
38141         (func_compare): Restore diff options
38142         * tests/test-argp.c: Restore #include "progname.h"
38143
38144 2007-04-29  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38148         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38150         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38151         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38152         (TESTS, check_PROGRAMS): Add test-snprintf.
38153         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38154         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38155         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38156         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38157         assertions that fail on HP-UX, OSF/1, or IRIX.
38158         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38159
38160 2007-04-29  Bruno Haible  <bruno@clisp.org>
38161
38162         * MODULES.html.sh (posix_functions): Remove 'contents'.
38163
38164 2007-04-29  Karl Berry  <karl@gnu.org>
38165
38166         * config/srclist.txt (gendocs_template_min): new entry.
38167
38168 2007-04-29  Bruno Haible  <bruno@clisp.org>
38169
38170         Work around fpurge bug on BSD systems.
38171         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38172         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38173         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38174         fpurge to rpl_fpurge if the system already has this function.
38175         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38176         the case where the system already has this function. Correct invariants
38177         on BSD systems.
38178         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38179         BSD systems.
38180
38181 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38182
38183         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38184         proposed by Sven Verdoolaege.
38185
38186         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38187         options.
38188         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38189         (usage and help tests): Update
38190
38191 2007-04-29  Bruno Haible  <bruno@clisp.org>
38192
38193         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38194         Print more information in case of failure. Disable a test on BeOS.
38195
38196 2007-04-29  Bruno Haible  <bruno@clisp.org>
38197
38198         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38199         This helps debugging on systems on which no gdb is available.
38200
38201 2007-04-29  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/freading.h: Improve comments.
38204         * lib/fwriting.h: Likewise.
38205         * tests/test-freading.c (main): Don't check freading immediately after
38206         repositioning. Needed for glibc.
38207
38208 2007-04-29  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/freading.c (freading): Trivial simplification.
38211
38212 2007-04-28  Bruno Haible  <bruno@clisp.org>
38213
38214         * tests/test-fwriting.c (main): Also test the interaction between
38215         fflush and fwriting.
38216         * modules/fwriting-tests (Depends-on): Add fflush.
38217
38218         * tests/test-freading.c (main): Also test the interaction between
38219         fflush and freading.
38220         * modules/freading-tests (Depends-on): Add fflush.
38221
38222 2007-04-28  Bruno Haible  <bruno@clisp.org>
38223
38224         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38225         fseeko and ftello.
38226         Suggested by Eric Blake.
38227
38228 2007-04-28  Jim Meyering  <jim@meyering.net>
38229
38230         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38231         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38232         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38233
38234 2007-04-27  Eric Blake  <ebb9@byu.net>
38235
38236         * doc/headers/assert.texi (assert.h): Document assert module use.
38237
38238 2007-04-27  Bruno Haible  <bruno@clisp.org>
38239
38240         * doc/headers/*.texi: New files.
38241         * doc/gnulib.texi (Header File Substitutes): New chapter.
38242         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38243         dependencies.
38244         (standards.info ,standards.html, standards.dvi): Update dependencies.
38245         (mostlyclean, clean): New targets.
38246
38247 2007-04-27  Bruno Haible  <bruno@clisp.org>
38248
38249         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38250         * modules/sysexits (Files, Makefile.am): Update.
38251
38252         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38253         * modules/sys_socket (Files, Makefile.am): Update.
38254
38255         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38256         * modules/sys_stat (Files, Makefile.am): Update.
38257
38258 2007-04-27  Eric Blake  <ebb9@byu.net>
38259
38260         * lib/freading.h: Improve comments.
38261         * lib/fwriting.h: Likewise.
38262         * lib/fflush.c: Likewise.
38263
38264         Fix closein for mingw.
38265         * modules/closein-tests: Add tests for closein.
38266         * tests/test-closein.c: New file.
38267         * tests/test-closein.sh: Likewise.
38268         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38269         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38270
38271 2007-04-27  Bruno Haible  <bruno@clisp.org>
38272
38273         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38274         version is < 6.
38275         * lib/math_.h [__DECC]: Likewise.
38276         * lib/stdio_.h [__DECC]: Likewise.
38277         * lib/stdlib_.h [__DECC]: Likewise.
38278         * lib/string_.h [__DECC]: Likewise.
38279         * lib/time_.h [__DECC]: Likewise.
38280         * lib/wchar_.h [__DECC]: Likewise.
38281         * lib/wctype_.h [__DECC]: Likewise.
38282
38283 2007-04-27  Bruno Haible  <bruno@clisp.org>
38284
38285         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38286
38287 2007-04-27  Bruno Haible  <bruno@clisp.org>
38288
38289         * lib/fflush.c: Add comments.
38290         * modules/fpurge-tests (Depends-on): Add fflush.
38291         * modules/freadable-tests (Depends-on): Likewise.
38292         * modules/fwritable-tests (Depends-on): Likewise.
38293
38294 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38295
38296         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38297         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38298         Report by Bruno Haible <bruno@clisp.org>.
38299
38300 2007-04-26  Eric Blake  <ebb9@byu.net>
38301
38302         Fix fflush on mingw.
38303         * modules/fflush (Depends-on): Add freading.
38304         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38305         but unread data.
38306
38307 2007-04-26  Eric Blake  <ebb9@byu.net>
38308         and Bruno Haible  <bruno@clisp.org>
38309
38310         Implement freading and fwriting.
38311         * lib/freading.c: New file.
38312         * lib/freading.h: Likewise.
38313         * m4/freading.m4: Likewise.
38314         * modules/freading: Likewise.
38315         * modules/freading-tests: Likewise.
38316         * tests/test-freading.c: Likewise.
38317         * lib/fwriting.c: New file.
38318         * lib/fwriting.h: Likewise.
38319         * m4/fwriting.m4: Likewise.
38320         * modules/fwriting: Likewise.
38321         * modules/fwriting-tests: Likewise.
38322         * tests/test-fwriting.c: Likewise.
38323         * MODULES.html.sh (File stream based Input/Output): Mention them.
38324
38325 2007-04-26  Bruno Haible  <bruno@clisp.org>
38326
38327         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38328         'long' when we assume it.
38329         Suggested by Eric Blake.
38330
38331 2007-04-26  Bruno Haible  <bruno@clisp.org>
38332
38333         Ensure fseeko, ftello are declared on glibc systems.
38334         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38335         * modules/fseeko (configure.ac-early): Likewise.
38336         * modules/ftello (configure.ac-early): Likewise.
38337         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38338         AC_FUNC_FSEEKO for this.
38339         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38340         (gl_CHECK_FSEEKO): Remove macro.
38341
38342 2007-04-26  Bruno Haible  <bruno@clisp.org>
38343
38344         * tests/test-fflush.c (main): Also check the ftell result after
38345         fflush and fseek/fseeko.
38346         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38347         file descriptor position cache in the stream.
38348         * lib/fseeko.c (rpl_fseeko): Likewise.
38349
38350 2007-04-26  Bruno Haible  <bruno@clisp.org>
38351
38352         * modules/fflush-tests (Depends-on): Add fseeko.
38353
38354 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38355             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38356
38357         * lib/argz_.h: ensure error_t definition is obtained in same
38358         mechanism system argz.h would have.
38359         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38360         argz facilities are known bad.  Err on the side of caution if
38361         cross-compiling.
38362
38363 2007-04-25  Eric Blake  <ebb9@byu.net>
38364
38365         * lib/fpurge.c (includes): Use stdlib.h for free.
38366         * tests/test-fflush.c (main): Also test fflush-fseeko.
38367
38368 2007-04-25  Bruno Haible  <bruno@clisp.org>
38369
38370         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38371         * lib/fseeko.c: New file.
38372         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38373         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38374         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38375         gl_FUNC_FSEEKO.
38376         (gl_FUNC_FSEEKO): Invoke it.
38377         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38378         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38379         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38380
38381 2007-04-25  Bruno Haible  <bruno@clisp.org>
38382
38383         * modules/fflush (Depends-on): Add ftello.
38384
38385 2007-04-25  Bruno Haible  <bruno@clisp.org>
38386
38387         * modules/ftello-tests: New file.
38388         * tests/test-ftello.c: New file.
38389
38390         * modules/ftello: New file.
38391         * m4/ftello.m4: New file.
38392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38393         HAVE_FTELLO.
38394         * lib/stdio_.h (ftello): New declaration.
38395         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38396         HAVE_FTELLO.
38397
38398 2007-04-25  Bruno Haible  <bruno@clisp.org>
38399
38400         * modules/fseeko-tests: New file.
38401         * tests/test-fseeko.c: New file.
38402
38403         * modules/fseeko: New file.
38404         * m4/fseeko.m4: New file.
38405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38406         HAVE_FSEEKO.
38407         * lib/stdio_.h (fseeko): New declaration.
38408         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38409         HAVE_FSEEKO.
38410
38411 2007-04-25  Bruno Haible  <bruno@clisp.org>
38412
38413         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38414
38415 2007-04-25  Bruno Haible  <bruno@clisp.org>
38416
38417         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38418         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38419         * tests/test-unistd.c: Likewise.
38420         * tests/test-fcntl.c: Likewise.
38421
38422 2007-04-23  Eric Blake  <ebb9@byu.net>
38423
38424         * lib/fflush.c: Fix missing include.
38425         Reported by Bruno Haible.
38426
38427 2007-04-23  Bruno Haible  <bruno@clisp.org>
38428
38429         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38430         Reported by Eric Blake.
38431
38432 2007-04-23  Bruno Haible  <bruno@clisp.org>
38433
38434         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38435
38436 2007-04-23  Bruno Haible  <bruno@clisp.org>
38437
38438         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38439
38440 2007-04-23  Bruno Haible  <bruno@clisp.org>
38441
38442         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38443         Needed on HP-UX 11.
38444
38445 2007-04-16  Eric Blake  <ebb9@byu.net>
38446
38447         Make fflush rely on fpurge.
38448         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38449         open coding all variants.
38450         * modules/fflush (Depends-on): Add fpurge and unistd.
38451         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38452         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38453
38454         Fix --with-tests compilation on cygwin.
38455         * modules/argmatch-tests (Makefile.am): List gnulib library first
38456         in LDADD.
38457         * modules/argp-tests (Makefile.am): Likewise.
38458         * modules/array-list-tests (Makefile.am): Likewise.
38459         * modules/array-oset-tests (Makefile.am): Likewise.
38460         * modules/avltree-list-tests (Makefile.am): Likewise.
38461         * modules/avltree-oset-tests (Makefile.am): Likewise.
38462         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38463         * modules/carray-list-tests (Makefile.am): Likewise.
38464         * modules/dirname-tests (Makefile.am): Likewise.
38465         * modules/frexp-tests (Makefile.am): Likewise.
38466         * modules/isnanl-tests (Makefile.am): Likewise.
38467         * modules/linked-list-tests (Makefile.am): Likewise.
38468         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38469         * modules/lock-tests (Makefile.am): Likewise.
38470         * modules/rbtree-list-tests (Makefile.am): Likewise.
38471         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38472         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38473         * modules/tls-tests (Makefile.am): Likewise.
38474         * modules/tsearch-tests (Makefile.am): Likewise.
38475         * modules/xvasprintf-tests (Makefile.am): Likewise.
38476
38477         Fix fpurge for cygwin.
38478         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38479         value.
38480         * modules/fpurge-tests (Depends-on): Clean up trash.
38481
38482 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38483
38484         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38485
38486         * m4/autobuild.m4: Re-indent.
38487
38488 2007-04-13  Bruno Haible  <bruno@clisp.org>
38489
38490         * modules/fpurge-tests: New file.
38491         * tests/test-fpurge.c: New file.
38492
38493         * modules/fpurge: New file.
38494         * lib/fpurge.h: New file.
38495         * lib/fpurge.c: New file.
38496         * m4/fpurge.m4: New file.
38497
38498 2007-04-13  Bruno Haible  <bruno@clisp.org>
38499
38500         * modules/fbufmode-tests: New file.
38501         * tests/test-fbufmode.c: New file.
38502
38503         * modules/fbufmode: New file.
38504         * lib/fbufmode.h: New file.
38505         * lib/fbufmode.c: New file.
38506         * m4/fbufmode.m4: New file.
38507
38508 2007-04-13  Bruno Haible  <bruno@clisp.org>
38509
38510         * modules/fwritable-tests: New file.
38511         * tests/test-fwritable.c: New file.
38512
38513         * modules/fwritable: New file.
38514         * lib/fwritable.h: New file.
38515         * lib/fwritable.c: New file.
38516         * m4/fwritable.m4: New file.
38517
38518 2007-04-13  Bruno Haible  <bruno@clisp.org>
38519
38520         * modules/freadable-tests: New file.
38521         * tests/test-freadable.c: New file.
38522
38523         * modules/freadable: New file.
38524         * lib/freadable.h: New file.
38525         * lib/freadable.c: New file.
38526         * m4/freadable.m4: New file.
38527
38528 2007-04-13  Bruno Haible  <bruno@clisp.org>
38529
38530         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38531         MOSTLYCLEANFILES.
38532
38533 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38534
38535         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38536         gzip bootstrap.conf to avoid dragging in i18n machinery.
38537         (gnulib_tool_option): Use it.
38538
38539 2007-04-13  Bruno Haible  <bruno@clisp.org>
38540
38541         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38542         %F directives.
38543         * tests/test-vasprintf-posix.c (test_function): Likewise.
38544         * tests/test-snprintf-posix.h (test_function): Likewise.
38545         * tests/test-sprintf-posix.h (test_function): Likewise.
38546         * tests/test-fprintf-posix.h (test_function): Likewise.
38547         * tests/test-printf-posix.h (test_function): Likewise.
38548         * tests/test-fprintf-posix.out: Likewise.
38549
38550 2007-04-13  Bruno Haible  <bruno@clisp.org>
38551
38552         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38553         * modules/tls-tests (configure.ac): Likewise.
38554         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38555
38556 2007-04-13  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/tls.c (glthread_tls_get): Fix return type.
38559         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38560
38561 2007-04-12  Eric Blake  <ebb9@byu.net>
38562
38563         * modules/gettime (Depends-on): Remove gettime.
38564         Reported by Dmitry V. Levin.
38565
38566 2007-04-12  Bruno Haible  <bruno@clisp.org>
38567
38568         * modules/fflush (Include): Mention <stdio.h>.
38569         * modules/strtoimax (Include): Mention <inttypes.h>.
38570         * modules/strtoumax (Include): Likewise.
38571
38572 2007-04-12  Eric Blake  <ebb9@byu.net>
38573
38574         * .cvsignore: New file.
38575         * .gitignore: Likewise.
38576
38577 2007-04-12  Bruno Haible  <bruno@clisp.org>
38578
38579         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38580         not before, since $(LDADD) often contains libgnu.a.
38581         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38582         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38583         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38584         Needed on Cygwin.
38585
38586 2007-04-12  Eric Blake  <ebb9@byu.net>
38587
38588         Work around glibc's failure to flush stdin on fclose.
38589         * lib/closein.c (close_stdin): Flush stdin before closing.
38590
38591         Work around glibc's failure to reset seekable stdin on exit.
38592         * modules/closein: New module.
38593         * lib/closein.c: New file.
38594         * lib/closein.h: Likewise.
38595         * m4/closein.m4: Likewise.
38596         * MODULES.html.sh (File stream based Input/Output): Document it.
38597
38598 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38599
38600         * gnulib-tool: Rename generated 'autobuild' script to
38601         'do-autobuild' in --create-megatestdir output.
38602
38603         * doc/gnulib.texi (Build robot for gnulib): Fix.
38604
38605 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38606
38607         * modules/sysexits (Depends-on): Add absolute-header.
38608
38609 2007-04-12  Eric Blake  <ebb9@byu.net>
38610
38611         No need to preserve errno on success.
38612         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38613         Reported by Bruno Haible.
38614
38615 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38616
38617         * MODULES.html.sh (Support for maintaining and releasing
38618         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
38619
38620 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38621
38622         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
38623
38624 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38625
38626         * modules/autobuild: New module.
38627
38628         * m4/autobuild.m4: New file.
38629
38630 2007-04-11  Bruno Haible  <bruno@clisp.org>
38631
38632         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
38633         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
38634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
38635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
38636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38637         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38638         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38640         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38641         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38643         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38644         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38646         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38647         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38649         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38650         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38651         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38652         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38653         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38655         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38656         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38658         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38659         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38660         Reported by Eric Blake.
38661
38662 2007-04-11  Bruno Haible  <bruno@clisp.org>
38663
38664         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38665
38666 2007-04-10  Bruno Haible  <bruno@clisp.org>
38667
38668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38669         for NaN and Infinity. Needed on FreeBSD 6.1.
38670         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38671         regarding results for "%010a" of Infinity and NaN.
38672         * tests/test-vasprintf-posix.c (test_function): Likewise.
38673         * tests/test-snprintf-posix.h (test_function): Likewise.
38674         * tests/test-sprintf-posix.h (test_function): Likewise.
38675         * tests/test-fprintf-posix.h (test_function): Likewise.
38676         * tests/test-printf-posix.h (test_function): Likewise.
38677         * tests/test-fprintf-posix.out: Likewise.
38678
38679 2007-04-10  Bruno Haible  <bruno@clisp.org>
38680
38681         * modules/locale-tests: New file.
38682         * tests/test-locale.c: New file.
38683
38684         * modules/locale: New file.
38685         * lib/locale_.h: New file.
38686         * m4/locale_h.m4: New file.
38687
38688 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38689             Bruno Haible  <bruno@clisp.org>
38690
38691         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38692         be determined, test for availability of the copysignf, copysign,
38693         copysignl functions.
38694         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38695         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38696         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38697
38698 2007-04-09  Eric Blake  <ebb9@byu.net>
38699
38700         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38701         * modules/stdio (Makefile.am): Support fflush.
38702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38703         * modules/fflush: New file.
38704         * lib/fflush.c: Likewise.
38705         * m4/fflush.m4: Likewise.
38706         * modules/fflush-tests: New test.
38707         * tests/test-fflush.c: Likewise.
38708         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38709
38710 2007-04-06  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
38713         (VASNPRINTF): Use signbit for faster determination whether to print a
38714         minus sign.
38715         * modules/vasnprintf (Files): Remove lib/float+.h.
38716         * modules/fprintf-posix (Depends-on): Add signbit.
38717         * modules/snprintf-posix (Depends-on): Likewise.
38718         * modules/sprintf-posix (Depends-on): Likewise.
38719         * modules/vasnprintf-posix (Depends-on): Likewise.
38720         * modules/vasprintf-posix (Depends-on): Likewise.
38721         * modules/vfprintf-posix (Depends-on): Likewise.
38722         * modules/vsnprintf-posix (Depends-on): Likewise.
38723         * modules/vsprintf-posix (Depends-on): Likewise.
38724
38725 2007-04-06  Bruno Haible  <bruno@clisp.org>
38726
38727         * tests/test-frexp.c (main): Test also the sign bit of zero results.
38728         * tests/test-frexpl.c (main): Likewise.
38729         * tests/test-ldexpl.c (main): Likewise.
38730         * modules/frexp-tests (Depends-on): Add signbit.
38731         * modules/frexpl-tests (Depdends-on): Likewise.
38732         * modules/ldexpl-tests (Depdends-on): Likewise.
38733
38734 2007-04-06  Bruno Haible  <bruno@clisp.org>
38735
38736         * modules/signbit-tests: New file.
38737         * tests/test-signbit.c: New file.
38738
38739         * modules/signbit: New file.
38740         * lib/signbitf.c: New file.
38741         * lib/signbitd.c: New file.
38742         * lib/signbitl.c: New file.
38743         * m4/signbit.m4: New file.
38744         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
38745         (signbit): New macro.
38746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
38747         REPLACE_SIGNBIT.
38748         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
38749         REPLACE_FREXPL into math.h.
38750
38751 2007-04-06  Bruno Haible  <bruno@clisp.org>
38752
38753         * modules/isnanf-nolibm-tests: New file.
38754         * tests/test-isnanf.c: New file.
38755
38756         * modules/isnanf-nolibm: New file.
38757         * lib/isnanf.h: New file.
38758         * lib/isnanf.c: New file.
38759         * lib/isnan.c: Consider the USE_FLOAT macro.
38760         * m4/isnanf.m4: New file.
38761
38762 2007-04-06  Bruno Haible  <bruno@clisp.org>
38763
38764         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
38765         (Link): New section.
38766
38767         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
38768
38769 2007-04-06  Bruno Haible  <bruno@clisp.org>
38770
38771         Assume the 'long double' type.
38772         * m4/longdouble.m4: Remove file.
38773         * config/srclist.txt: Don't mention longdouble.m4.
38774         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
38775         * lib/float+.h: Likewise.
38776         * lib/frexp.c: Likewise.
38777         * lib/printf-args.h: Likewise.
38778         * lib/printf-args.c: Likewise.
38779         * lib/printf-frexp.c: Likewise.
38780         * lib/printf-parse.c: Likewise.
38781         * lib/vasnprintf.c: Likewise.
38782         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
38783         * m4/intl.m4: Likewise.
38784         * m4/isnanl.m4: Likewise.
38785         * m4/printf.m4: Likewise.
38786         * m4/printf-frexpl.m4: Likewise.
38787         * m4/vasnprintf.m4: Likewise.
38788         * modules/allocsa (Files): Remove m4/longdouble.m4.
38789         * modules/gettext (Files): Likewise.
38790         * modules/relocatable-prog-wrapper (Files): Likewise.
38791         * modules/vasnprintf (Files): Likewise.
38792         * modules/isnanl (Files): Likewise.
38793         (Include): Simplify.
38794         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
38795         (Include): Simplify.
38796         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
38797         (Include): Simplify.
38798         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
38799         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38800         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
38801         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38802         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38803         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38804         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
38805         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38806         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38807         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38808         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
38809         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38810         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
38811         * tests/test-isnanl.c: Likewise.
38812         * tests/test-snprintf-posix.h: Likewise.
38813         * tests/test-sprintf-posix.h: Likewise.
38814         * tests/test-vasnprintf-posix.c: Likewise.
38815         * tests/test-vasnprintf-posix2.c: Likewise.
38816         * tests/test-vasprintf-posix.c: Likewise.
38817
38818 2007-04-06  Bruno Haible  <bruno@clisp.org>
38819
38820         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
38821         * lib/math_.h [__DECC]: Include the overridden include file through
38822         #include_next, outside the double-inclusion guard.
38823         * lib/stdio_.h [__DECC]: Likewise.
38824         * lib/stdlib_.h [__DECC]: Likewise.
38825         * lib/string_.h [__DECC]: Likewise.
38826         * lib/time_.h [__DECC]: Likewise.
38827         * lib/wchar_.h [__DECC]: Likewise.
38828         * lib/wctype_.h [__DECC]: Likewise.
38829         * lib/inttypes_.h [__DECC]: Likewise.
38830         Reported by Albert Chin <china@thewrittenword.com> in
38831         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
38832
38833 2007-04-04  Eric Blake  <ebb9@byu.net>
38834
38835         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
38836         1.5.x.
38837
38838 2007-04-04  Bruno Haible  <bruno@clisp.org>
38839
38840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
38841         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
38842
38843 2007-04-04  Bruno Haible  <bruno@clisp.org>
38844
38845         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
38846         results for "%010a" of Infinity and NaN.
38847         * tests/test-vasprintf-posix.c (test_function): Likewise.
38848         * tests/test-snprintf-posix.h (test_function): Likewise.
38849         * tests/test-sprintf-posix.h (test_function): Likewise.
38850         * tests/test-fprintf-posix.h (test_function): Remove these tests.
38851         * tests/test-printf-posix.h (test_function): Likewise.
38852         * tests/test-fprintf-posix.out: Update.
38853         Needed for FreeBSD 6.1.
38854
38855 2007-04-04  Bruno Haible  <bruno@clisp.org>
38856
38857         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
38858         directly used by the gnulib modules nor by gnulib-tool.
38859
38860 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38861
38862         * DEPENDENCIES: Give overall description of version dependency
38863         desirability.  Use more-typical names for apps.
38864         Add shell, coreutils, diffutils, grep, tar, gzip.
38865
38866 2007-04-04  Simon Josefsson  <simon@josefsson.org>
38867
38868         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
38869
38870 2007-04-04  Karl Berry  <karl@gnu.org>
38871
38872         * MODULES.html.sh (func_module): missing '.
38873
38874 2007-04-03  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/argmatch-tests (Makefile.am): New variable
38877         test_argmatch_LDADD.
38878         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
38879         * modules/array-list-tests (Makefile.am): New variable
38880         test_array_list_LDADD.
38881         * modules/array-oset-tests (Makefile.am): New variable
38882         test_array_oset_LDADD.
38883         * modules/avltree-list-tests (Makefile.am): New variable
38884         test_avltree_list_LDADD.
38885         * modules/avltree-oset-tests (Makefile.am): New variable
38886         test_avltree_oset_LDADD.
38887         * modules/avltreehash-list-tests (Makefile.am): New variable
38888         test_avltreehash_list_LDADD.
38889         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
38890         test_canonicalize_lgpl_LDADD.
38891         * modules/carray-list-tests (Makefile.am): New variable
38892         test_carray_list_LDADD.
38893         * modules/dirname-tests (Makefile.am): New variable
38894         test_dirname_LDADD.
38895         * modules/linked-list-tests (Makefile.am): New variable
38896         test_linked_list_LDADD.
38897         * modules/linkedhash-list-tests (Makefile.am): New variable
38898         test_linkedhash_list_LDADD.
38899         * modules/rbtree-list-tests (Makefile.am): New variable
38900         test_rbtree_list_LDADD.
38901         * modules/rbtree-oset-tests (Makefile.am): New variable
38902         test_rbtree_oset_LDADD.
38903         * modules/rbtreehash-list-tests (Makefile.am): New variable
38904         test_rbtreehash_list_LDADD.
38905         * modules/xvasprintf-tests (Makefile.am): New variable
38906         test_xvasprintf_LDADD.
38907         Reported by Eric Blake.
38908
38909 2007-04-03  Eric Blake  <ebb9@byu.net>
38910
38911         * DEPENDENCIES: Weaken m4 requirements.
38912
38913 2007-04-03  Bruno Haible  <bruno@clisp.org>
38914
38915         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
38916         * modules/isnanl-tests (configure.ac): Likewise.
38917
38918 2007-04-03  Ben Pfaff  <blp@gnu.org>
38919
38920         * modules/iconv_open: Add $(srcdir)/ to source directory
38921         references in Makefile fragments that call gperf, to fix VPATH
38922         builds.
38923
38924 2007-04-03  Bruno Haible  <bruno@clisp.org>
38925
38926         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
38927         * lib/ldexpl.c: Undo last change.
38928
38929 2007-04-03  Bruno Haible  <bruno@clisp.org>
38930
38931         * modules/printf-frexpl (Depends-on): Undo last change.
38932         (Files): Add m4/ldexpl.m4.
38933
38934 2007-04-03  Bruno Haible  <bruno@clisp.org>
38935
38936         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
38937         * modules/isnanl (Link): New section.
38938
38939         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
38940         * modules/frexp (Link): New section.
38941
38942         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
38943         * modules/frexpl (Link): New section.
38944
38945         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
38946         * modules/ldexpl (Link): New section.
38947
38948 2007-04-03  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/TEMPLATE-EXTENDED: New file.
38951         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
38952
38953 2007-04-03  Bruno Haible  <bruno@clisp.org>
38954
38955         * DEPENDENCIES: New file.
38956         Suggested by Simon Josefsson.
38957
38958 2007-04-03  Bruno Haible  <bruno@clisp.org>
38959
38960         * doc/gnulib.texi: Escape @.
38961
38962 2007-04-03  James Youngman  <jay@gnu.org>
38963         and Paul Eggert  <eggert@cs.ucla.edu>
38964
38965         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
38966         birthtime on all systems that have birthtime, not just those which
38967         use st_birthtimensec rather than st_birthtim.  Putting zero in
38968         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
38969         that the birth time is not available for files on an NFS mount.
38970
38971 2007-04-03  Simon Josefsson  <simon@josefsson.org>
38972
38973         * modules/memxor: Move back from crypto/, suggested by Bruno.
38974         * modules/crypto/hmac-sha1: Fix memxor dependency.
38975
38976         * modules/crypto/gc: Moved from ../.
38977
38978 2007-04-02  Eric Blake  <ebb9@byu.net>
38979
38980         * lib/ldexpl.c (includes): Avoid libm.
38981
38982         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
38983
38984 2007-04-02  Bruno Haible  <bruno@clisp.org>
38985
38986         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
38987         on IRIX.
38988
38989 2007-04-02  Bruno Haible  <bruno@clisp.org>
38990
38991         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
38992         x86 or x86_64 platforms running MacOS X.
38993         Reported by Ryan Schmidt <@ryandesign.com>.
38994
38995 2007-04-02  Bruno Haible  <bruno@clisp.org>
38996
38997         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
38998         i386.
38999
39000 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39001
39002         * modules/crypto/arcfour: Moved from ../.
39003         * modules/crypto/arcfour-tests: Moved from ../.
39004         * modules/crypto/arctwo: Moved from ../.
39005         * modules/crypto/arctwo-tests: Moved from ../.
39006         * modules/crypto/des: Moved from ../.
39007         * modules/crypto/des-tests: Moved from ../.
39008         * modules/crypto/gc-arcfour: Moved from ../.
39009         * modules/crypto/gc-arcfour-tests: Moved from ../.
39010         * modules/crypto/gc-arctwo: Moved from ../.
39011         * modules/crypto/gc-arctwo-tests: Moved from ../.
39012         * modules/crypto/gc-des: Moved from ../.
39013         * modules/crypto/gc-des-tests: Moved from ../.
39014         * modules/crypto/gc-hmac-md5: Moved from ../.
39015         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39016         * modules/crypto/gc-hmac-sha1: Moved from ../.
39017         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39018         * modules/crypto/gc-md2: Moved from ../.
39019         * modules/crypto/gc-md2-tests: Moved from ../.
39020         * modules/crypto/gc-md4: Moved from ../.
39021         * modules/crypto/gc-md4-tests: Moved from ../.
39022         * modules/crypto/gc-md5: Moved from ../.
39023         * modules/crypto/gc-md5-tests: Moved from ../.
39024         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39025         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39026         * modules/crypto/gc-random: Moved from ../.
39027         * modules/crypto/gc-rijndael: Moved from ../.
39028         * modules/crypto/gc-rijndael-tests: Moved from ../.
39029         * modules/crypto/gc-sha1: Moved from ../.
39030         * modules/crypto/gc-sha1-tests: Moved from ../.
39031         * modules/crypto/gc-tests: Moved from ../.
39032         * modules/crypto/hmac-md5: Moved from ../.
39033         * modules/crypto/hmac-md5-tests: Moved from ../.
39034         * modules/crypto/hmac-sha1: Moved from ../.
39035         * modules/crypto/hmac-sha1-tests: Moved from ../.
39036         * modules/crypto/md2: Moved from ../.
39037         * modules/crypto/md2-tests: Moved from ../.
39038         * modules/crypto/md4: Moved from ../.
39039         * modules/crypto/md4-tests: Moved from ../.
39040         * modules/crypto/md5: Moved from ../.
39041         * modules/crypto/md5-tests: Moved from ../.
39042         * modules/crypto/memxor: Moved from ../.
39043         * modules/crypto/rijndael: Moved from ../.
39044         * modules/crypto/rijndael-tests: Moved from ../.
39045         * modules/crypto/sha1: Moved from ../.
39046
39047 2007-03-30  James Youngman  <jay@gnu.org>
39048
39049         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39050         rename() to change the ctime of a file (because ctime is unaffected
39051         by rename on jfs2 on AIX 5.1).
39052         (main): Start by doing cleanup, in case a previous run failed leaving
39053         test files behind.
39054
39055 2007-03-31  Bruno Haible  <bruno@clisp.org>
39056
39057         Support old proprietary implementations of iconv.
39058         * modules/iconv_open: New file.
39059         * lib/iconv_.h: New file.
39060         * m4/iconv_h.m4: New file.
39061         * lib/iconv_open.c: New file.
39062         * lib/iconv_open-aix.gperf: New file.
39063         * lib/iconv_open-hpux.gperf: New file.
39064         * lib/iconv_open-irix.gperf: New file.
39065         * lib/iconv_open-osf.gperf: New file.
39066         * m4/iconv_open.m4: New file.
39067         * modules/linebreak (Depends-on): Add iconv_open.
39068         * modules/striconv (Depends-on): Likewise.
39069         * modules/striconveh (Depends-on): Likewise.
39070         * modules/unicodeio (Depends-on): Likewise.
39071         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39072         (iconv_t)(-1).
39073         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39074         conversion if cd is (iconv_t)(-1).
39075         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39076         is not possible.
39077
39078 2007-03-31  Bruno Haible  <bruno@clisp.org>
39079
39080         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39081         work on Solaris either. Protect also second use of "autodetect_jp".
39082
39083 2007-03-31  Bruno Haible  <bruno@clisp.org>
39084
39085         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39086         the function is not present.
39087
39088 2007-03-31  Bruno Haible  <bruno@clisp.org>
39089
39090         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39091         the function is not present.
39092
39093 2007-03-31  Bruno Haible  <bruno@clisp.org>
39094
39095         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39096         a bug in HP-UX iconv_open().
39097
39098 2007-03-31  Bruno Haible  <bruno@clisp.org>
39099
39100         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39101         (Mathematics <math.h>): New section, add fpieee.
39102         (Input/output <stdio.h>): Add fseterr.
39103         (Mathematics <math.h>): New section, add printf-frexp.
39104         (Container data structures): Add sublist.
39105         (Core language properties): Add fpucw, inline.
39106         (Functions for greatest-width integer types <inttypes.h>): Add
39107         imaxabs, imaxdiv, inttypes.
39108         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39109         isnanl-nolibm, ldexp.
39110         (Mathematics <math.h>): New section, add printf-frexpl.
39111         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39112         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39113         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39114         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39115         (Unicode string functions): Add unistr/u*-mbtoucr.
39116         (Java): Add javacomp-script, javaexec-script.
39117         (C#): Add csharpcomp-script, csharpexec-script.
39118         (Support for building libraries and executables): Add havelib,
39119         relocatable-*.
39120         (Support for maintaining and releasing projects): Renamed from
39121         'Support for maintaining and release projects'. Add announce-gen.
39122
39123 2007-03-31  Bruno Haible  <bruno@clisp.org>
39124
39125         * README: Talk primarily about git.
39126         (git and CVS): Renamed from CVS.
39127         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39128         gnulib is available through git.
39129         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39130
39131 2007-03-30  Bruno Haible  <bruno@clisp.org>
39132
39133         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39134         * lib/poll_.h: Likewise.
39135         * lib/stat_.h: Likewise.
39136         * lib/sys_time_.h: Likewise.
39137         * lib/sysexit_.h: Likewise.
39138         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39139         * lib/stdbool_.h: Likewise.
39140         * lib/byteswap_.h: Add double-inclusion guard.
39141
39142 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39143
39144         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39145
39146 2007-03-30  Karl Berry  <karl@gnu.org>
39147
39148         * config/srclist-update: double space after USA in the license
39149         substitution, since that's how it's usually (?) written.
39150
39151 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39152
39153         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39154         reported by Bruno Haible.
39155
39156 2007-03-29  Bruno Haible  <bruno@clisp.org>
39157
39158         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39159         a bug in AIX iconv().
39160
39161 2007-03-29  Bruno Haible  <bruno@clisp.org>
39162
39163         * modules/ldexpl-tests: New file.
39164         * tests/test-ldexpl.c: New file.
39165
39166 2007-03-29  Bruno Haible  <bruno@clisp.org>
39167
39168         * lib/ldexpl.c: Include fpucw.h.
39169         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39170         multiplication.
39171         * modules/ldexpl (Depends-on): Add fpucw.
39172
39173 2007-03-29  Bruno Haible  <bruno@clisp.org>
39174
39175         * modules/ldexpl: New file.
39176         * m4/ldexpl.m4: New file.
39177         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39178         set.
39179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39180         REPLACE_LDEXPL.
39181         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39182         REPLACE_LDEXPL.
39183         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39184         gl_FUNC_LDEXPL_WORKS.
39185         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39186         * modules/mathl (Files): Remove lib/ldexpl.c.
39187         (Depends-on): Add ldexpl.
39188
39189 2007-03-29  Bruno Haible  <bruno@clisp.org>
39190
39191         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39192
39193 2007-03-29  Bruno Haible  <bruno@clisp.org>
39194
39195         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39196         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39197         and possibly also HP-UX.
39198         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39199         work on AIX, IRIX, HP-UX, OSF/1.
39200         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39201         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39202         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39203         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39204         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39205         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39206
39207 2007-03-29  Bruno Haible  <bruno@clisp.org>
39208
39209         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39210
39211 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39212
39213         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39214         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39215
39216 2007-03-29  Eric Blake  <ebb9@byu.net>
39217
39218         * lib/acl-internal.h: Remove redundant include.
39219         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39220         Cygwin when a file is locked.
39221
39222 2007-03-29  Bruno Haible  <bruno@clisp.org>
39223
39224         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39225         file.
39226         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39227
39228 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39229
39230         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39231         try to remove a parent directory if the child couldn't be removed
39232         (except for the first rmdir, which could fail because the child
39233         doesn't exist).  Problem reported by Jeff Blaine in
39234         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39235
39236 2007-03-28  Bruno Haible  <bruno@clisp.org>
39237
39238         * lib/striconveh.c (utf8conv_carefully): New function.
39239         (mem_cd_iconveh_internal): Invoke it.
39240
39241 2007-03-28  Bruno Haible  <bruno@clisp.org>
39242
39243         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39244         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39245         input.
39246         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39247         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39248         unistr/u8-uctomb.
39249
39250 2007-03-28  Bruno Haible  <bruno@clisp.org>
39251
39252         * modules/unistr/u8-mbtoucr: New file.
39253         * lib/unistr/u8-mbtoucr.c: New file.
39254         * modules/unistr/u16-mbtoucr: New file.
39255         * lib/unistr/u16-mbtoucr.c: New file.
39256         * modules/unistr/u16-mbtoucr: New file.
39257         * lib/unistr/u16-mbtoucr.c: New file.
39258         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39259
39260 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39261             Bruno Haible  <bruno@clisp.org>
39262
39263         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39264         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39265         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39266
39267         * m4/stdio_h.m4: Add stubs for vasprintf too.
39268
39269         * modules/stdio: Support vasprintf in sed command.
39270
39271         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39272         vasprintf.h.  Add stdio module indicator.
39273
39274         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39275         vasprintf.h.
39276
39277         * lib/vasprintf.h: File removed.
39278
39279         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39280         * lib/vasprintf.c: Ditto.
39281         * lib/xvasprintf.c: Ditto.
39282         * tests/test-vasprintf-posix.c: Ditto.
39283         * tests/test-vasprintf.c: Ditto.
39284
39285 2007-03-27  Bruno Haible  <bruno@clisp.org>
39286
39287         Make vasnprintf multithread-safe.
39288         * lib/vasnprintf.c (decimal_point_char): New function.
39289         (VASNPRINTF): Use it.
39290         Suggested by Simon Josefsson.
39291
39292 2007-03-27  Eric Blake  <ebb9@byu.net>
39293
39294         Support sub-second birthtime on cygwin.
39295         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39296         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39297         (get_stat_birthtime): Also work with st_birthtim.
39298
39299 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39300
39301         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39302         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39303         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39304         (get_stat_birthtime_ns): Simplify compile-time tests.
39305         (get_stat_birthtime): Change the API to look like
39306         get_stat_mtime etc., except return a negative tv_nsec on error.
39307         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39308         Don't check for "spare" fields.
39309         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39310         or for struct stat.st_birthtime, as these tests aren't used.
39311         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39312
39313 2007-03-27  Bruno Haible  <bruno@clisp.org>
39314
39315         * lib/stat-time.h: Include <sys/stat.h>.
39316
39317 2007-03-27  James Youngman  <jay@gnu.org>
39318
39319         * lib/stat-time.h (get_stat_birthtime): New function for
39320           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39321         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39322           and its variants.
39323         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39324         * modules/stat-time-test: New file.
39325         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39326
39327 2007-03-26  Bruno Haible  <bruno@clisp.org>
39328
39329         Better support of signalling NaNs.
39330         * lib/atanl.c: Include isnanl.h.
39331         (atanl): Perform test for NaN at the beginning of the function and
39332         through a call to isnanl.
39333         * lib/cosl.c: Include isnanl.h.
39334         (cosl): Perform test for NaN at the beginning of the function and
39335         through a call to isnanl.
39336         * lib/ldexpl.c: Include isnanl.h.
39337         (ldexpl): Perform test for NaN through a call to isnanl.
39338         * lib/logl.c: Include isnanl.h.
39339         (logl): Perform test for NaN at the beginning of the function and
39340         through a call to isnanl.
39341         * lib/sinl.c: Include isnanl.h.
39342         (sinl): Perform test for NaN at the beginning of the function and
39343         through a call to isnanl.
39344         * lib/sqrtl.c: Include isnanl.h.
39345         (sqrtl): Perform test for NaN at the beginning of the function and
39346         through a call to isnanl.
39347         * lib/tanl.c: Include isnanl.h.
39348         (tanl): Perform test for NaN at the beginning of the function and
39349         through a call to isnanl.
39350         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39351         * modules/mathl (Depends-on): Add isnanl.
39352
39353 2007-03-26  Eric Blake  <ebb9@byu.net>
39354
39355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39356         regression in logic sense of previous patch.
39357
39358 2007-03-26  Bruno Haible  <bruno@clisp.org>
39359
39360         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39361         unportable shell command "if ! ...".
39362         Reported by Ralf Wildenhues.
39363
39364 2007-03-25  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39367         <sysexits.h> file, and only add EX_CONFIG.
39368         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39369         absolute file name and whether it is sufficient. Substitute also
39370         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39371         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39372         ABSOLUTE_SYSEXITS_H into sysexits.h.
39373
39374 2007-03-25  Bruno Haible  <bruno@clisp.org>
39375
39376         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39377         hints is NULL.
39378
39379 2007-03-25  Bruno Haible  <bruno@clisp.org>
39380
39381         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39382         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39383
39384 2007-03-25  Bruno Haible  <bruno@clisp.org>
39385
39386         * lib/vasnprintf.c: Include langinfo.h.
39387         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39388         multithread-safe.
39389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39398         Reported by Simon Josefsson.
39399
39400 2007-03-25  Bruno Haible  <bruno@clisp.org>
39401
39402         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39403         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39404         * modules/vasnprintf (Depends-on): Add stdint.
39405
39406 2007-03-25  Bruno Haible  <bruno@clisp.org>
39407
39408         * modules/fpieee: New file.
39409         * m4/fpieee.m4: New file.
39410         * modules/isnan-nolibm (Depends-on): Add fpieee.
39411         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39412         * modules/isnanl (Depends-on): Add fpieee.
39413
39414 2007-03-25  Bruno Haible  <bruno@clisp.org>
39415
39416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39417
39418 2007-03-25  Bruno Haible  <bruno@clisp.org>
39419
39420         Avoid test failures on IRIX 6.5.
39421         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39422         (main): Use it.
39423         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39424         macros.
39425         (main): Use them.
39426
39427 2007-03-25  Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39430         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39431         exists but doesn't work.
39432         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39433         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39435         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39436
39437 2007-03-25  Bruno Haible  <bruno@clisp.org>
39438
39439         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39440         returns inf. Needed on IRIX 6.5.
39441
39442 2007-03-25  Bruno Haible  <bruno@clisp.org>
39443
39444         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39445         (main): Use isnanl instead of x != x idiom.
39446         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39447
39448         * tests/test-frexp.c: Include isnan.h.
39449         (main): Use isnan instead of x != x idiom.
39450         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39451
39452 2007-03-25  Bruno Haible  <bruno@clisp.org>
39453
39454         * tests/test-frexp.c (NaN): New function/macro.
39455         (main): Use it instead of 0.0 / 0.0.
39456         * tests/test-isnan.c (NaN): New function/macro.
39457         (main): Use it instead of 0.0 / 0.0.
39458         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39459         (test_function): Use it instead of 0.0 / 0.0.
39460         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39461         (test_function): Use it instead of 0.0 / 0.0.
39462         * tests/test-snprintf-posix.h (NaN): New function/macro.
39463         (test_function): Use it instead of 0.0 / 0.0.
39464         * tests/test-sprintf-posix.h (NaN): New function/macro.
39465         (test_function): Use it instead of 0.0 / 0.0.
39466         * tests/test-fprintf-posix.h (NaN): New function/macro.
39467         (test_function): Use it instead of 0.0 / 0.0.
39468         * tests/test-printf-posix.h (NaN): New function/macro.
39469         (test_function): Use it instead of 0.0 / 0.0.
39470
39471         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39472
39473 2007-03-25  Bruno Haible  <bruno@clisp.org>
39474
39475         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39476
39477 2007-03-25  Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/regexec.c (merge_state_with_log): Make static.
39480
39481 2007-03-25  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/trigl.c (kernel_rem_pio2): Make static.
39484
39485 2007-03-25  Bruno Haible  <bruno@clisp.org>
39486
39487         * lib/sincosl.c (sincosl_table): Make static.
39488
39489 2007-03-25  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39492         if the compiler does not support C99.
39493
39494 2007-03-25  Bruno Haible  <bruno@clisp.org>
39495
39496         * modules/time (Makefile.am): Ensure all rule action lines start with a
39497         tab.
39498
39499 2007-03-24  Bruno Haible  <bruno@clisp.org>
39500
39501         * modules/tsearch-tests: New file.
39502         * tests/test-tsearch.sh: New file.
39503         * tests/test-tsearch.c: New file, mostly copied from glibc.
39504
39505         * modules/search-tests: New file.
39506         * tests/test-search.c: New file.
39507
39508         * modules/search: New file.
39509         * lib/search_.h: New file, incorporating lib/tsearch.h.
39510         * m4/search_h.m4: New file.
39511         * lib/tsearch.h: Remove file.
39512         * lib/tsearch.c: Include search.h instead of tsearch.h.
39513         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39514         HAVE_TSEARCH.
39515         * modules/tsearch (Files): Remove lib/tsearch.h.
39516         (Depends-on): Add search.
39517         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39518         (Include): Change tsearch.h into search.h.
39519
39520 2007-03-24  Bruno Haible  <bruno@clisp.org>
39521
39522         * modules/fpucw: New file.
39523         * lib/fpucw.h: New file.
39524         * lib/frexp.c: Include fpucw.h.
39525         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39526         (FUNC): Use them.
39527         * lib/printf-frexp.c: Include fpucw.h.
39528         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39529         (FUNC): Use them.
39530         * lib/vasnprintf.c: Include fpucw.h.
39531         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39532         'long double' calculations.
39533         * tests/test-frexpl.c: Include fpucw.h.
39534         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39535         * tests/test-printf-frexpl.c: Include fpucw.h.
39536         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39537         * modules/frexpl (Depends-on): Add fpucw.
39538         * modules/printf-frexpl (Depends-on): Likewise.
39539         * modules/fprintf-posix (Depends-on): Likewise.
39540         * modules/snprintf-posix (Depends-on): Likewise.
39541         * modules/sprintf-posix (Depends-on): Likewise.
39542         * modules/vasnprintf-posix (Depends-on): Likewise.
39543         * modules/vasprintf-posix (Depends-on): Likewise.
39544         * modules/vfprintf-posix (Depends-on): Likewise.
39545         * modules/vsnprintf-posix (Depends-on): Likewise.
39546         * modules/vsprintf-posix (Depends-on): Likewise.
39547         * modules/frexpl-tests (Depends-on): Likewise.
39548         * modules/printf-frexpl-tests (Depends-on): Likewise.
39549
39550 2007-03-24  Bruno Haible  <bruno@clisp.org>
39551
39552         * lib/float+.h: New file.
39553         * lib/isnan.c: Include float+.h.
39554         (SIZE): New macro.
39555         (FUNC): Compare only SIZE bytes of the value.
39556         * lib/vasnprintf.c: Include float+.h.
39557         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39558         SIZEOF_LDBL or SIZEOF_DBL bytes.
39559         * modules/isnan-nolibm (Files): Add lib/float+.h.
39560         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39561         * modules/isnanl (Files): Add lib/float+.h.
39562         * modules/vasnprintf (Files): Add lib/float+.h.
39563
39564 2007-03-24  Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39567         include isnanl-nolibm.h.
39568
39569 2007-03-24  Bruno Haible  <bruno@clisp.org>
39570
39571         * tests/test-read-file.c (main): Don't produce spurious output for
39572         expected situations. Make the test fail if it encountered unexpected
39573         results.
39574
39575 2007-03-24  Bruno Haible  <bruno@clisp.org>
39576
39577         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39578         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39579
39580 2007-03-24  Bruno Haible  <bruno@clisp.org>
39581
39582         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39583
39584 2007-03-24  Bruno Haible  <bruno@clisp.org>
39585
39586         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39587         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39588
39589         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39590         * modules/utf8-ucs4: Turn into a symbolic link to module
39591         unistr/u8-mbtouc.
39592
39593         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39594         utf8-ucs4-unsafe.
39595         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39596         unistr/u8-mbtouc-unsafe.
39597
39598         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39599         * modules/utf16-ucs4: Turn into a symbolic link to module
39600         unistr/u16-mbtouc.
39601
39602         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39603         utf16-ucs4-unsafe.
39604         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39605         unistr/u16-mbtouc-unsafe.
39606
39607         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39608         * modules/ucs4-utf8: Turn into a symbolic link to module
39609         unistr/u8-ubtomb.
39610
39611         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39612         * modules/ucs4-utf16: Turn into a symbolic link to module
39613         unistr/u16-ubtomb.
39614
39615 2007-03-24  Bruno Haible  <bruno@clisp.org>
39616
39617         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
39618         Enable the function only if HAVE_INLINE.
39619         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
39620         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39621         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
39622         Enable the function only if HAVE_INLINE.
39623         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
39624         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39625         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
39626         Enable the function only if HAVE_INLINE.
39627         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
39628         Enable the function only if HAVE_INLINE.
39629         * modules/utf8-ucs4: Update.
39630         * modules/utf8-ucs4-unsafe: Update.
39631         * modules/utf16-ucs4: Update.
39632         * modules/utf16-ucs4-unsafe: Update.
39633         * modules/ucs4-utf8: Update.
39634         * modules/ucs4-utf16: Update.
39635
39636 2007-03-24  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/utf8-ucs4.h: Remove file.
39639         * lib/utf8-ucs4-unsafe.h: Remove file.
39640         * lib/utf16-ucs4.h: Remove file.
39641         * lib/utf16-ucs4-unsafe.h: Remove file.
39642         * lib/ucs4-utf8.h: Remove file.
39643         * lib/ucs4-utf16.h: Remove file.
39644         * lib/unistr.h: Include their previous contents.
39645         * m4/utf-ucs4.m4: Remove file.
39646         * m4/ucs4-utf.m4: Remove file.
39647         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39648         (Depends-on): Add unistr/base.
39649         (configure.ac): Remove gl_UTF_UCS4.
39650         (Makefile.am): Update.
39651         (Include): Change to unistr.h.
39652         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39653         (Depends-on): Add unistr/base.
39654         (configure.ac): Remove gl_UTF_UCS4.
39655         (Makefile.am): Update.
39656         (Include): Change to unistr.h.
39657         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39658         (Depends-on): Add unistr/base.
39659         (configure.ac): Remove gl_UTF_UCS4.
39660         (Makefile.am): Update.
39661         (Include): Change to unistr.h.
39662         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39663         (Depends-on): Add unistr/base.
39664         (configure.ac): Remove gl_UTF_UCS4.
39665         (Makefile.am): Update.
39666         (Include): Change to unistr.h.
39667         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39668         (Depends-on): Add unistr/base.
39669         (configure.ac): Remove gl_UCS4_UTF.
39670         (Makefile.am): Update.
39671         (Include): Change to unistr.h.
39672         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39673         (Depends-on): Add unistr/base.
39674         (configure.ac): Remove gl_UCS4_UTF.
39675         (Makefile.am): Update.
39676         (Include): Change to unistr.h.
39677         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39678         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39679         utf8-ucs4-unsafe.h.
39680         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39681         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39682         utf16-ucs4-unsafe.h.
39683         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39684         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39685         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39686         * lib/unistr/u8-strchr.c: Likewise.
39687         * lib/unistr/u8-strrchr.c: Likewise.
39688         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39689         * lib/unistr/u16-strchr.c: Likewise.
39690         * lib/unistr/u16-strrchr.c: Likewise.
39691         * lib/striconveh.c: Update.
39692         * lib/linebreak.c: Update.
39693
39694 2007-03-24  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39697         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39698
39699 2007-03-22  Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39702
39703 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39704
39705         * MODULES.html.sh (File system functions): New module write-any-file.
39706         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39707         * m4/write-any-file.m4: New files.
39708
39709 2007-03-23  Eric Blake  <ebb9@byu.net>
39710
39711         * gnulib-tool: Rearrange space-tab sequences, since some editors
39712         like to eat them.
39713
39714 2007-03-23  Eric Blake  <ebb9@byu.net>
39715
39716         * lib/version-etc.c (version_etc_va): Update license wording to
39717         be more concise.  Recommended by Richard Stallman.
39718
39719 2007-03-22  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/poll.c (MSG_PEEK): New fallback definition.
39722
39723 2007-03-22  Bruno Haible  <bruno@clisp.org>
39724
39725         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
39726         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
39727         (main): Update.
39728         Fixes a compilation error on BeOS.
39729
39730 2007-03-22  Bruno Haible  <bruno@clisp.org>
39731
39732         * modules/frexpl-tests: New file.
39733         * tests/test-frexpl.c: New file.
39734
39735         * modules/frexpl: New file.
39736         * m4/frexpl.m4: New file.
39737         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
39738         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
39739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
39740         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
39741         (Depends-on): Add frexpl. Remove isnanl-nolibm.
39742         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
39743
39744 2007-03-22  Bruno Haible  <bruno@clisp.org>
39745
39746         * lib/frexpl.c: Share code with lib/frexp.c.
39747         * modules/mathl (Files): Add lib/frexp.c.
39748         (Depends-on): Add isnanl-nolibm.
39749
39750 2007-03-22  Bruno Haible  <bruno@clisp.org>
39751
39752         * modules/printf-frexp (Files): Add m4/frexp.m4.
39753         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
39754         only if the found frexp function actually works.
39755
39756 2007-03-22  Bruno Haible  <bruno@clisp.org>
39757
39758         * lib/frexp.c: Remove older implementation that uses divisions.
39759
39760 2007-03-21  Bruno Haible  <bruno@clisp.org>
39761
39762         * modules/frexp-tests: New file.
39763         * tests/test-frexp.c: New file.
39764
39765         * modules/frexp: New file.
39766         * lib/frexp.c: New file.
39767         * m4/frexp.m4: New file.
39768         * lib/math_.h (frexp): New declaration.
39769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
39770         REPLACE_FREXP.
39771         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
39772
39773 2007-03-21  Bruno Haible  <bruno@clisp.org>
39774
39775         * modules/isnanl-tests: New file.
39776         * tests/test-isnanl.c: New file.
39777
39778         * modules/isnanl: New file.
39779         * lib/isnanl.h: New file.
39780         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
39781         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
39782         gl_FUNC_ISNANL_WORKS.
39783         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
39784         New macros.
39785
39786 2007-03-21  Bruno Haible  <bruno@clisp.org>
39787
39788         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
39789         lib/isnanl.h.
39790         (Include): Update.
39791         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
39792         * lib/vasnprintf.c: Update.
39793         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
39794         tests/test-isnanl.h, remove tests/test-isnanl.c.
39795         (Makefile.am): Update.
39796         * tests/test-isnanl-nolibm.c: New file.
39797         * tests/test-isnanl.h: New file.
39798         * tests/test-isnanl.c: Remove file.
39799
39800 2007-03-21  Jim Meyering  <jim@meyering.net>
39801
39802         When trying to open ".", treat ESTALE like EACCES.
39803         * lib/savewd.c (savewd_save): Resort to forking not just upon
39804         failure with EACCES, but also when errno is ESTALE.
39805
39806 2007-03-20  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
39809         Needed on AIX 5.1. Reported by Matthew Woehlke.
39810
39811 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39812
39813         Suggestions by Bruno Haible:
39814         * lib/acl-internal.h: Include "gettext.h" rather than rolling
39815         our own.
39816         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
39817         * modules/acl (Depends-on): Add gettext.
39818
39819 2007-03-19  Bruno Haible  <bruno@clisp.org>
39820
39821         * modules/iconvme: Remove file.
39822         * lib/iconvme.h: Remove file.
39823         * lib/iconvme.c: Remove file.
39824         * m4/iconvme.m4: Remove file.
39825
39826 2007-03-19  Bruno Haible  <bruno@clisp.org>
39827
39828         * doc/relocatable-maint.texi: Break long shell script line.
39829         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39830
39831 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39832
39833         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
39834         handle file_has_acl.
39835         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
39836         * lib/acl.c: Move header inclusions and related macro defns into
39837         lib/acl-internal.h.
39838         (S_ISLNK): Remove defn, since that's now done for us.
39839         (file_has_acl): Move to lib/file-has-acl.c.
39840         Call acl_trivial if available.  This is the crucial part of the fix.
39841         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
39842         shared within the library.  Rewrite a bit, partly to make it compatible
39843         with the GNU coding style.
39844         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
39845         Remove unnecessary double-quotes.
39846         Don't test for acl_to_text; the build will catch that.
39847         Replace acl_entries if it doesn't exist and it is needed.
39848         Check for -lsec and acl_trivial (as used on Solaris 10).
39849         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
39850         lib/file-has-acl.c.
39851         (Depends-on): Add sys_stat, for S_ISLNK.
39852
39853 2007-03-19  Ben Pfaff  <blp@gnu.org>
39854
39855         * doc/gnulib.texi: Fix typos.
39856         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39857
39858 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39859
39860         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
39861         If size is zero here, buf must be zero.
39862
39863 2007-03-19  Simon Josefsson  <simon@josefsson.org>
39864
39865         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
39866         <bruno@clisp.org>.
39867
39868 2007-03-18  Bruno Haible  <bruno@clisp.org>
39869
39870         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
39871         Suggested by Eric Blake.
39872
39873 2007-03-18  Ben Pfaff  <blp@gnu.org>
39874
39875         * doc/relocatable.texi: Recommend using as prefix a directory
39876         that does not exist and will never be created.  Based on
39877         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
39878         and others.
39879
39880 2007-03-17  Bruno Haible  <bruno@clisp.org>
39881
39882         * lib/fchownat.c: Include lchown.h.
39883
39884 2007-03-17  Bruno Haible  <bruno@clisp.org>
39885
39886         Fix endless loop when the given allocated size was > INT_MAX.
39887         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
39888         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
39889         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
39890         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
39891         * lib/sprintf.c (sprintf): Likewise.
39892
39893 2007-03-17  Bruno Haible  <bruno@clisp.org>
39894
39895         * tests/test-argp-2.sh (func_compare): Output a context diff.
39896
39897 2007-03-17  Bruno Haible  <bruno@clisp.org>
39898
39899         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
39900         locale's decimal-point character.
39901
39902 2007-03-17  Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
39905         before comparing it. Needed because on some platforms (e.g. x86) a
39906         'long double' occupies less bytes than sizeof (long double).
39907
39908 2007-03-17  Bruno Haible  <bruno@clisp.org>
39909
39910         * tests/test-crc.c (main): Make printf statements 64-bit clean.
39911         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
39912         * tests/test-getaddrinfo.c (simple): Likewise.
39913         * tests/test-read-file.c (main): Likewise.
39914
39915 2007-03-17  Bruno Haible  <bruno@clisp.org>
39916
39917         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
39918
39919 2007-03-17  Bruno Haible  <bruno@clisp.org>
39920
39921         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
39922         unused variable.
39923
39924 2007-03-17  Bruno Haible  <bruno@clisp.org>
39925
39926         * tests/test-c-strcasecmp.c: Include c-strcase.h.
39927         * tests/test-c-strncasecmp.c: Likewise.
39928
39929 2007-03-17  Bruno Haible  <bruno@clisp.org>
39930
39931         * modules/stdlib (Depends-on): Add unistd.
39932         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
39933         Needed for MacOS X 10.3.
39934
39935 2007-03-17  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/unistr/u-strdup.h: Include <stdlib.h>.
39938
39939 2007-03-17  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
39942
39943 2007-03-17  Bruno Haible  <bruno@clisp.org>
39944
39945         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
39946         to reflect files copied from gnulib (with or without modifications).
39947         Suggested by Jim Meyering.
39948
39949 2007-03-17  Eric Blake  <ebb9@byu.net>
39950
39951         * NEWS: Document stdlib change from 2007-02-18.
39952
39953 2007-03-17  Jim Meyering  <jim@meyering.net>
39954
39955         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
39956         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
39957         someone uses a name containing shell meta-characters.
39958         Reported by Alfred M. Szmidt.
39959
39960         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
39961
39962 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
39963
39964         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
39965         and copy gettext configuration files only if configure.ac contains
39966         a use of AM_GNU_GETTEXT_VERSION.
39967
39968 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
39969
39970         * build-aux/bootstrap (gnulib_name): New variable.
39971         (gnulib_tool_options): Use it.
39972
39973 2007-03-13  Simon Josefsson  <simon@josefsson.org>
39974
39975         * tests/test-des.c: Use new namespace.
39976
39977 2007-03-15  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
39980         Reported by James Youngman <jay@gnu.org>.
39981
39982 2007-03-15  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
39985         declared prototype. Needed with cc on OSF/1 5.1.
39986
39987 2007-03-15  Bruno Haible  <bruno@clisp.org>
39988
39989         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
39990         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
39991         (struct gl_list_implementation): Add dispose_fn argument to the
39992         'create_empty', 'create' methods.
39993         (struct gl_list_impl_base): Add field 'dispose_fn'.
39994         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
39995         argument.
39996         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
39997         dispose_fn argument.
39998         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
39999         dispose_fn on the dropped values.
40000         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40001         dispose_fn argument.
40002         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40003         dropped values.
40004         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40005         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40006         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40007         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40008         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40009         argument.
40010         (gl_tree_list_free): Call dispose_fn on the dropped values.
40011         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40012         the dropped values.
40013         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40014         Add dispose_fn argument.
40015         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40016         Call dispose_fn on the dropped values.
40017         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40018         Add dispose_fn argument.
40019         (gl_sublist_create): Initialize the 'dispose_fn' field.
40020         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40021         * tests/test-array_list.c (main): Update.
40022         * tests/test-carray_list.c (main): Update.
40023         * tests/test-avltree_list.c (main): Update.
40024         * tests/test-rbtree_list.c (main): Update.
40025         * tests/test-avltreehash_list.c (main): Update.
40026         * tests/test-rbtreehash_list.c (main): Update.
40027         * tests/test-linked_list.c (main): Update.
40028         * tests/test-linkedhash_list.c (main): Update.
40029         * tests/test-array_oset.c (main): Update.
40030
40031 2007-03-15  Bruno Haible  <bruno@clisp.org>
40032
40033         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40034         (gl_oset_create_empty): Add dispose_fn argument.
40035         (struct gl_oset_implementation): Add dispose_fn argument to
40036         'create_empty' method.
40037         (struct gl_oset_impl_base): Add dispose_fn field.
40038         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40039         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40040         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40041         values.
40042         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40043         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40044         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40045         dropped value.
40046         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40047         dropped value.
40048         * tests/test-array_oset.c (main): Update.
40049         * tests/test-avltree_oset.c (main): Update.
40050         * tests/test-rbtree_oset.c (main): Update.
40051         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40052
40053 2007-03-13  Bruno Haible  <bruno@clisp.org>
40054
40055         * tests/test-stdbool.c (i): Update after last patch.
40056
40057 2007-03-12  Bruno Haible  <bruno@clisp.org>
40058
40059         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40060         the iswprint macro. Needed on Solaris 2.5.1.
40061
40062 2007-03-12  Bruno Haible  <bruno@clisp.org>
40063
40064         * tests/test-printf-frexp.c (main): Declare x as volatile.
40065
40066 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40067
40068         * doc/gnulib.texi (Build robot for gnulib): New section.
40069
40070 2007-03-12  Jim Meyering  <jim@meyering.net>
40071
40072         * build-aux/bootstrap: New file.
40073         * build-aux/bootstrap.conf: New file, from coreutils.
40074
40075 2007-03-11  Bruno Haible  <bruno@clisp.org>
40076
40077         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40078
40079 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40080
40081         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40082         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40083         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40084
40085 2007-03-11  Bruno Haible  <bruno@clisp.org>
40086
40087         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40088         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40089
40090 2007-03-11  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40093         formula. Needed for SunPRO C 5.0.
40094
40095 2007-03-11  Bruno Haible  <bruno@clisp.org>
40096
40097         * modules/long-options (Depends-on): Add getopt.
40098
40099 2007-03-11  Bruno Haible  <bruno@clisp.org>
40100
40101         * modules/modechange (Depends-on): Add stdbool.
40102
40103 2007-03-11  Bruno Haible  <bruno@clisp.org>
40104
40105         * modules/i-ring (Depends-on): Add stdbool.
40106
40107 2007-03-11  Bruno Haible  <bruno@clisp.org>
40108
40109         * modules/gc-des (Depends-on): Add stdbool.
40110
40111 2007-03-11  Bruno Haible  <bruno@clisp.org>
40112
40113         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40114
40115 2007-03-11  Bruno Haible  <bruno@clisp.org>
40116
40117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40118
40119 2007-03-11  Bruno Haible  <bruno@clisp.org>
40120
40121         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40122
40123 2007-03-11  Bruno Haible  <bruno@clisp.org>
40124
40125         * lib/vasnprintf.c (sprintf): Undefine.
40126
40127 2007-03-11  Bruno Haible  <bruno@clisp.org>
40128
40129         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40130         initializers in SunPRO C and Compaq C compilers.
40131
40132 2007-03-11  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40135         decrementing code ANSI C compliant.
40136
40137 2007-03-11  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40140         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40141
40142 2007-03-11  Bruno Haible  <bruno@clisp.org>
40143
40144         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40145         <stdbool.h> substitute doesn't pass.
40146
40147 2007-03-11  Bruno Haible  <bruno@clisp.org>
40148
40149         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40150
40151 2007-03-11  Bruno Haible  <bruno@clisp.org>
40152
40153         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40154         script, for submission to autobuild.josefsson.org.
40155
40156 2007-03-10  Bruno Haible  <bruno@clisp.org>
40157
40158         * modules/canonicalize-lgpl-tests: New file.
40159         * tests/test-canonicalize-lgpl.sh: New file.
40160         * tests/test-canonicalize-lgpl.c: New file.
40161
40162         * modules/c-strcase-tests: New file.
40163         * tests/test-c-strcase.sh: New file.
40164         * tests/test-c-strcasecmp.c: New file.
40165         * tests/test-c-strncasecmp.c: New file.
40166
40167         * modules/atexit-tests: New file.
40168         * tests/test-atexit.sh: New file.
40169         * tests/test-atexit.c: New file.
40170
40171 2007-03-10  Bruno Haible  <bruno@clisp.org>
40172
40173         * tests/test-binary-io.sh: Use temporary filenames that are not so
40174         likely to clash with those of other tests (in a parallel make).
40175         * tests/test-binary-io.c: Likewise.
40176
40177 2007-03-10  Bruno Haible  <bruno@clisp.org>
40178
40179         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40180         fallback; use #error instead.
40181         Suggested by Simon Josefsson.
40182
40183 2007-03-10  Bruno Haible  <bruno@clisp.org>
40184
40185         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40186         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40187         first and the last.
40188
40189 2007-03-10  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40192
40193 2007-03-10  Bruno Haible  <bruno@clisp.org>
40194
40195         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40196         "make distcheck".
40197         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40198         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40199         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40200
40201 2007-03-10  Bruno Haible  <bruno@clisp.org>
40202
40203         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40204         variable.
40205         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40206         variable.
40207
40208 2007-03-09  Eric Blake  <ebb9@byu.net>
40209         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40210
40211         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40212         types are not being provided by gnulib.
40213         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40214         types are supported.
40215
40216 2007-03-10  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/stdio_.h (__attribute__): New macro.
40219         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40220         vsprintf): Specify __attribute__ __format__ for GCC.
40221         Suggested by Eric Blake.
40222
40223 2007-03-09  Bruno Haible  <bruno@clisp.org>
40224
40225         * modules/printf-posix-tests: New file.
40226         * tests/test-printf-posix.sh: New file.
40227         * tests/test-printf-posix.c: New file.
40228
40229         * modules/printf-posix: New file.
40230         * lib/printf.c: New file.
40231         * m4/printf-posix-rpl.m4: New file.
40232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40233         REPLACE_PRINTF.
40234         * lib/stdio_.h (printf): New declaration.
40235         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40236         ____strfmon____): New macros.
40237         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40238         REPLACE_PRINTF.
40239
40240 2007-03-09  Bruno Haible  <bruno@clisp.org>
40241
40242         * tests/test-vasnprintf-posix2.sh: New file.
40243         * tests/test-vasnprintf-posix2.c: New file.
40244         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40245         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40246         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40247
40248         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40249         a locale dependent decimal point, rather than always '.'.
40250
40251 2007-03-09  Eric Blake  <ebb9@byu.net>
40252
40253         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40254         spite of platforms like Tandem/NSK that define it to -1.
40255
40256 2007-03-08  Bruno Haible  <bruno@clisp.org>
40257
40258         * modules/vprintf-posix-tests: New file.
40259         * tests/test-vprintf-posix.sh: New file.
40260         * tests/test-vprintf-posix.c: New file.
40261         * tests/test-printf-posix.h: New file.
40262
40263         * modules/vprintf-posix: New file.
40264         * lib/vprintf.c: New file.
40265         * m4/vprintf-posix.m4: New file.
40266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40267         REPLACE_VPRINTF.
40268         * lib/stdio_.h (vprintf): New declaration.
40269         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40270         REPLACE_VPRINTF.
40271
40272 2007-03-08  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/fprintf-posix-tests: New file.
40275         * tests/test-fprintf-posix.sh: New file.
40276         * tests/test-fprintf-posix.c: New file.
40277
40278         * modules/fprintf-posix: New file.
40279         * lib/fprintf.c: New file.
40280         * m4/fprintf-posix.m4: New file.
40281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40282         REPLACE_FPRINTF.
40283         * lib/stdio_.h (fprintf): New declaration.
40284         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40285         REPLACE_FPRINTF.
40286
40287 2007-03-08  Bruno Haible  <bruno@clisp.org>
40288
40289         * modules/vfprintf-posix-tests: New file.
40290         * tests/test-vfprintf-posix.sh: New file.
40291         * tests/test-vfprintf-posix.c: New file.
40292         * tests/test-fprintf-posix.h: New file.
40293         * tests/test-fprintf-posix.out: New file.
40294
40295         * modules/vfprintf-posix: New file.
40296         * lib/vfprintf.c: New file.
40297         * m4/vfprintf-posix.m4: New file.
40298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40299         REPLACE_VFPRINTF.
40300         * lib/stdio_.h (vfprintf): New declaration.
40301         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40302         REPLACE_VFPRINTF.
40303
40304 2007-03-08  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40307
40308 2007-03-08  Bruno Haible  <bruno@clisp.org>
40309
40310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40311         instead of 'expr' invocations.
40312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40317         Suggested by Paul Eggert.
40318
40319 2007-03-08  Bruno Haible  <bruno@clisp.org>
40320
40321         * modules/fseterr-tests: New file.
40322         * tests/test-fseterr.c: New file.
40323
40324         * modules/fseterr: New file.
40325         * lib/fseterr.h: New file.
40326         * lib/fseterr.c: New file.
40327
40328 2007-03-08  Bruno Haible  <bruno@clisp.org>
40329
40330         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40331         * lib/getopt_.h: Likewise.
40332         * lib/mbswidth.h: Likewise.
40333         * lib/setenv.h: Likewise.
40334         * lib/vasnprintf.h: Likewise.
40335         * lib/vasprintf.h: Likewise.
40336         * lib/verror.h: Likewise.
40337         * lib/xsetenv.h: Likewise.
40338         * lib/xvasprintf.h: Likewise.
40339
40340 2007-03-08  Jim Meyering  <jim@meyering.net>
40341
40342         * users.txt: Add parted.
40343
40344         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40345
40346 2007-03-07  Bruno Haible  <bruno@clisp.org>
40347
40348         * m4/printf.m4: Make the shell script snippets copy&pastable.
40349
40350 2007-03-02  Bruno Haible  <bruno@clisp.org>
40351
40352         * lib/netinet_in_.h: New file.
40353         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40354         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40355         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40356         (Depends-on): Add absolute-header.
40357         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40358         into netinet/in.h.
40359
40360 2007-03-03  Bruno Haible  <bruno@clisp.org>
40361
40362         * lib/sys_select_.h: New file.
40363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40364         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40365         * modules/sys_select (Files): Add lib/sys_select_.h.
40366         (Depends-on): Add absolute-header.
40367         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40368         into sys/select.h.
40369
40370 2007-03-02  Bruno Haible  <bruno@clisp.org>
40371
40372         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40373         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40374         values.
40375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40376         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40377         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40378         * modules/sys_socket (Depends-on): Add absolute-header.
40379         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40380         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40381         (Include): Remove requirement of inclusion of <sys/types.h>.
40382
40383 2007-03-02  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/byteswap_.h (bswap_32): Fix formula.
40386
40387 2007-03-06  Bruno Haible  <bruno@clisp.org>
40388
40389         * modules/sprintf-posix-tests: New file.
40390         * tests/test-sprintf-posix.c: New file.
40391
40392         * modules/sprintf-posix: New file.
40393         * lib/sprintf.c: New file.
40394         * m4/sprintf-posix.m4: New file.
40395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40396         REPLACE_SPRINTF.
40397         * lib/stdio_.h (sprintf): New declaration.
40398         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40399         REPLACE_SPRINTF.
40400
40401 2007-03-06  Bruno Haible  <bruno@clisp.org>
40402
40403         * modules/vsprintf-posix-tests: New file.
40404         * tests/test-vsprintf-posix.c: New file.
40405         * tests/test-sprintf-posix.h: New file.
40406
40407         * modules/vsprintf-posix: New file.
40408         * lib/vsprintf.c: New file.
40409         * m4/vsprintf-posix.m4: New file.
40410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40411         REPLACE_VSPRINTF.
40412         * lib/stdio_.h (vsprintf): New declaration.
40413         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40414         REPLACE_VSPRINTF.
40415
40416 2007-03-06  Bruno Haible  <bruno@clisp.org>
40417
40418         * modules/vsnprintf (Depend-on): Remove minmax.
40419
40420 2007-03-06  Bruno Haible  <bruno@clisp.org>
40421
40422         * modules/snprintf-posix-tests: New file.
40423         * tests/test-snprintf-posix.c: New file.
40424
40425         * modules/snprintf-posix: New file.
40426         * m4/snprintf-posix.m4: New file.
40427         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40428         gl_FUNC_SNPRINTF.
40429         (gl_FUNC_SNPRINTF): Invoke it.
40430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40431         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40432         is set.
40433         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40434
40435 2007-03-06  Bruno Haible  <bruno@clisp.org>
40436
40437         * modules/vsnprintf-posix-tests: New file.
40438         * tests/test-vsnprintf-posix.c: New file.
40439         * tests/test-snprintf-posix.h: New file.
40440
40441         * modules/vsnprintf-posix: New file.
40442         * m4/vsnprintf-posix.m4: New file.
40443         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40444         gl_FUNC_VSNPRINTF.
40445         (gl_FUNC_VSNPRINTF): Invoke it.
40446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40447         * lib/stdio_.h (vsnprintf): Define as a replacement if
40448         REPLACE_VSNPRINTF is set.
40449         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40450
40451 2007-03-06  Bruno Haible  <bruno@clisp.org>
40452
40453         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40455
40456 2007-03-06  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40459         (asinl): Declare also if HAVE_DECL_ASINL is set.
40460         (atanl): Declare also if HAVE_DECL_ATANL is set.
40461         (ceill): Declare also if HAVE_DECL_CEILL is set.
40462         (cosl): Declare also if HAVE_DECL_COSL is set.
40463         (expl): Declare also if HAVE_DECL_EXPL is set.
40464         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40465         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40466         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40467         (logl): Declare also if HAVE_DECL_LOGL is set.
40468         (sinl): Declare also if HAVE_DECL_SINL is set.
40469         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40470         (tanl): Declare also if HAVE_DECL_TANL is set.
40471         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40473         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40474         declaration of frexpl, ldexpl.
40475         * modules/printf-frexpl (Depends-on): Add math.
40476         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40477
40478 2007-03-05  Bruno Haible  <bruno@clisp.org>
40479
40480         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40481         frexpl and ldexpl are declared.
40482         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40483
40484 2007-03-05  Bruno Haible  <bruno@clisp.org>
40485
40486         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40487         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40488
40489 2007-03-05  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/stdio_.h: Include <stddef.h>.
40492
40493 2007-03-05  Bruno Haible  <bruno@clisp.org>
40494
40495         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40496
40497 2007-03-05  Bruno Haible  <bruno@clisp.org>
40498
40499         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40500         NetBSD 4, from Ralf Wildenhues.
40501
40502 2007-03-04  Bruno Haible  <bruno@clisp.org>
40503
40504         * lib/vasprintf.h: Update #if logic for the case when the functions
40505         exist but are overridden.
40506
40507 2007-03-04  Bruno Haible  <bruno@clisp.org>
40508
40509         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40510         implementations: glibc-2.4 and MacOS X 10.3.
40511         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40512         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40513         * tests/test-vasprintf-posix.c (test_function): Likewise.
40514
40515 2007-03-04  Bruno Haible  <bruno@clisp.org>
40516
40517         * modules/vasprintf-posix-tests: New file.
40518         * tests/test-vasprintf-posix.c: New file.
40519
40520         * modules/vasprintf-posix: New file.
40521         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40522         defined.
40523         * m4/vasprintf-posix.m4: New file.
40524         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40525         gl_FUNC_VASPRINTF.
40526         (gl_FUNC_VASPRINTF): Invoke it.
40527         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40528         here.
40529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40530
40531 2007-03-04  Bruno Haible  <bruno@clisp.org>
40532
40533         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40534         REPLACE_GETTIMEOFDAY.
40535         * modules/sys_time (Makefile.am): Likewise.
40536         * m4/sys_time_h.m4: Likewise.
40537         * m4/gettimeofday.m4: Likewise.
40538
40539 2007-03-04  Bruno Haible  <bruno@clisp.org>
40540
40541         * modules/vasnprintf-posix-tests: New file.
40542         * tests/test-vasnprintf-posix.c: New file.
40543
40544         * modules/vasnprintf-posix: New file.
40545         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40546         printf-frexpl.h.
40547         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40548         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40549         REPLACE_VASNPRINTF is defined.
40550         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40551         gl_FUNC_VASNPRINTF.
40552         (gl_FUNC_VASNPRINTF): Invoke it.
40553         * m4/vasnprintf-posix.m4: New file.
40554         * m4/printf.m4: New file.
40555
40556 2007-03-04  Bruno Haible  <bruno@clisp.org>
40557
40558         Compile progreloc.c only if --enable-relocatable is specified.
40559         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40560         if --enable-relocatable was specified.
40561         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40562         lib_SOURCES.
40563
40564 2007-03-04  Jim Meyering  <jim@meyering.net>
40565
40566         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40567         Use it consistently, rather than enumerating errno constants.
40568
40569 2007-03-04  Bruno Haible  <bruno@clisp.org>
40570
40571         * modules/xvasprintf-tests: New file.
40572         * tests/test-xvasprintf.c: New file.
40573
40574         * modules/vasprintf-tests: New file.
40575         * tests/test-vasprintf.c: New file.
40576
40577         * modules/vasnprintf-tests: New file.
40578         * tests/test-vasnprintf.c: New file.
40579
40580         * modules/vsnprintf-tests: New file.
40581         * tests/test-vsnprintf.c: New file.
40582
40583         * modules/snprintf-tests: New file.
40584         * tests/test-snprintf.c: New file.
40585
40586 2007-03-04  Bruno Haible  <bruno@clisp.org>
40587
40588         Compile relocatable.c only if --enable-relocatable is specified.
40589         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40590         gl_RELOCATABLE_LIBRARY.
40591         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40592         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40593         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40594         gl_RELOCATABLE_LIBRARY.
40595         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40596         (Makefile.am): Remove lib_SOURCES.
40597         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40598         gl_RELOCATABLE_LIBRARY.
40599         (Makefile.am): Remove lib_SOURCES.
40600         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40601         always.
40602         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40603         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40604
40605 2007-03-04  Bruno Haible  <bruno@clisp.org>
40606
40607         * modules/argmatch-tests: New file.
40608         * tests/test-argmatch.c: New file.
40609
40610         * tests/test-allocsa.c (main): Halve the number of loop runs.
40611
40612         * modules/alloca-opt-tests: New file.
40613         * tests/test-alloca-opt.c: New file.
40614
40615 2007-03-04  Jim Meyering  <jim@meyering.net>
40616
40617         Work around difference between Linux ACLs and Solaris 10 ZFS.
40618         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
40619         for EINVAL.
40620
40621 2007-03-03  Bruno Haible  <bruno@clisp.org>
40622
40623         * modules/relocatable-prog (Depends-on): Add back progreloc's
40624         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
40625
40626 2007-03-03  Bruno Haible  <bruno@clisp.org>
40627
40628         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
40629         * modules/relocatable-lib: New file.
40630
40631 2007-03-03  Bruno Haible  <bruno@clisp.org>
40632
40633         * modules/relocatable-prog: Renamed from modules/relocatable.
40634         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
40635
40636 2007-03-03  Bruno Haible  <bruno@clisp.org>
40637
40638         * modules/relocatable-script (Files): Add doc/relocatable.texi,
40639         m4/relocatable-lib.m4.
40640         (Depends-on): Remove 'relocatable'.
40641         (configure.ac): Add gl_RELOCATABLE_NOP.
40642
40643 2007-03-03  Bruno Haible  <bruno@clisp.org>
40644
40645         * modules/relocatable-prog-wrapper: New file.
40646         * modules/relocatable (Depends-on): Add it. Remove all other
40647         dependencies except progname.
40648         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40649
40650         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40651         (gl_FUNC_STRERROR): Nop.
40652         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40653
40654         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40655         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40656
40657         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40658         (gl_FUNC_READLINK): Update.
40659
40660         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40661
40662 2007-03-03  Bruno Haible  <bruno@clisp.org>
40663
40664         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40665         * modules/xreadlink (Depends-on): Add unistd.
40666         * modules/xreadlink-with-size (Depends-on): Likewise.
40667
40668 2007-03-03  Bruno Haible  <bruno@clisp.org>
40669
40670         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40671         extracted from gt_FUNC_SETENV.
40672         (gt_FUNC_SETENV): Remove macro.
40673         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40674         remove gt_FUNC_SETENV.
40675
40676 2007-03-03  Bruno Haible  <bruno@clisp.org>
40677
40678         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40679         ENABLE_RELOCATABLE here.
40680         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40681
40682 2007-03-03  Bruno Haible  <bruno@clisp.org>
40683
40684         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40685         * tests/test-rbtreehash_list.c: Include progname.h.
40686         (main): Call set_program_name.
40687
40688         * modules/rbtree-oset-tests (Depends-on): Add progname.
40689         * tests/test-rbtree_oset.c: Include progname.h.
40690         (main): Call set_program_name.
40691
40692         * modules/rbtree-list-tests (Depends-on): Add progname.
40693         * tests/test-rbtree_list.c: Include progname.h.
40694         (main): Call set_program_name.
40695
40696         * modules/linked-list-tests (Depends-on): Add progname.
40697         * tests/test-linked_list.c: Include progname.h.
40698         (main): Call set_program_name.
40699
40700 2007-03-03  Bruno Haible  <bruno@clisp.org>
40701
40702         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40703         All uses of __restrict changed to _Restrict_.
40704         * lib/glob_.h (__restrict): Remove macro.
40705
40706 2007-03-02  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/gettext (configure.ac): Require gettext infrastructure
40709         from version 0.16.1.
40710
40711 2007-03-02  Bruno Haible  <bruno@clisp.org>
40712
40713         * modules/linkedhash-list-tests (Depends-on): Add progname.
40714         * tests/test-linkedhash_list.c: Include progname.h.
40715         (main): Call set_program_name.
40716
40717         * modules/carray-list-tests (Depends-on): Add progname.
40718         * tests/test-carray_list.c: Include progname.h.
40719         (main): Call set_program_name.
40720
40721         * modules/avltreehash-list-tests (Depends-on): Add progname.
40722         * tests/test-avltreehash_list.c: Include progname.h.
40723         (main): Call set_program_name.
40724
40725         * modules/avltree-oset-tests (Depends-on): Add progname.
40726         * tests/test-avltree_oset.c: Include progname.h.
40727         (main): Call set_program_name.
40728
40729         * modules/avltree-list-tests (Depends-on): Add progname.
40730         * tests/test-avltree_list.c: Include progname.h.
40731         (main): Call set_program_name.
40732
40733         * modules/array-oset-tests (Depends-on): Add progname.
40734         * tests/test-array_oset.c: Include progname.h.
40735         (main): Call set_program_name.
40736
40737         * modules/array-list-tests (Depends-on): Add progname.
40738         * tests/test-array_list.c: Include progname.h.
40739         (main): Call set_program_name.
40740
40741         * modules/argp-tests (Depends-on): Add progname.
40742         * tests/test-argp.c: Include argp.h first. Include progname.h.
40743         (main): Call set_program_name.
40744
40745 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
40746
40747         * doc/gnulib-tool.texi (Initial import): Reword description of
40748         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
40749         limited effect even if defined after the first system include.
40750
40751 2007-03-01  Bruno Haible  <bruno@clisp.org>
40752
40753         * build-aux/config.libpath: Update to libtool-1.5.22.
40754         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40755
40756 2007-03-01  Bruno Haible  <bruno@clisp.org>
40757
40758         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
40759         foo_CFLAGS.
40760         Reported by Ralf Wildenhues.
40761
40762 2007-03-01  Bruno Haible  <bruno@clisp.org>
40763
40764         * build-aux/install-reloc: Remove object files left over by some
40765         compilers.
40766         Reported by Ralf Wildenhues.
40767
40768 2007-03-01  Bruno Haible  <bruno@clisp.org>
40769
40770         * build-aux/install-reloc: Break long lines.
40771
40772 2007-03-01  Bruno Haible  <bruno@clisp.org>
40773
40774         * doc/relocatable.texi: Document that it may not work on OpenBSD.
40775         Reported by Ralf Wildenhues.
40776
40777 2007-03-01  Bruno Haible  <bruno@clisp.org>
40778
40779         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
40780         include ordering constraints.
40781
40782 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40783
40784         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
40785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
40786         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
40787         as another example.
40788         * lib/time_.h: Fix misspelling.
40789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40790         Require gl_HEADER_TIME_H_DEFAULTS.
40791         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
40792         * m4/time_r.m4 (gl_TIME_R): Likewise.
40793         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
40794
40795 2007-03-01  Bruno Haible  <bruno@clisp.org>
40796
40797         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
40798         * m4/utimens.m4 (gl_UTIMENS): Likewise.
40799
40800 2007-03-01  Jim Meyering  <jim@meyering.net>
40801
40802         * modules/xreadlink (Maintainer): Add my name.
40803         * modules/xreadlink-with-size (Depends-on): Alphabetize.
40804
40805 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
40806             Bruno Haible  <bruno@clisp.org>
40807
40808         * build-aux/install-reloc: Compile also c-ctype.c.
40809         * build-aux/relocatable.sh.in: New file.
40810         * doc/relocatable.texi: New file.
40811         * doc/relocatable-maint.texi: New file.
40812         * doc/gnulib.texi: Include relocatable-maint.texi.
40813         * lib/progreloc.c: Include unistd.h unconditionally.
40814         * lib/relocwrapper.c: Include unistd.h unconditionally.
40815         Include c-ctype.h.
40816         (add_dotbin): Use c_tolower.
40817         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
40818         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
40819         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
40820         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
40821         to m4/relocatable-lib.m4.
40822         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
40823         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
40824         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
40825         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
40826         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
40827         * modules/relocatable: New file.
40828         * modules/relocatable-lib: New file.
40829         * modules/relocatable-script: New file.
40830
40831 2007-02-28  Bruno Haible  <bruno@clisp.org>
40832
40833         Import --enable-relocatable infrastructure.
40834         * build-aux/config.libpath: New file, from GNU gettext.
40835         * build-aux/install-reloc: New file, from GNU gettext.
40836         * build-aux/reloc-ldflags: New file, from GNU gettext.
40837         * lib/relocatable.h: New file, from GNU gettext.
40838         * lib/relocatable.c: New file, from GNU gettext.
40839         * lib/relocwrapper.c: New file, from GNU gettext.
40840         * m4/relocatable.m4: New file, from GNU gettext.
40841
40842 2007-02-28  Bruno Haible  <bruno@clisp.org>
40843
40844         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
40845
40846         * modules/xreadlink: New file, from GNU gettext with modifications.
40847         * lib/xreadlink.c: New file, from GNU gettext.
40848         * lib/xreadlink.h: Add comments.
40849         (xreadlink): New declaration.
40850
40851         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
40852         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
40853         lib/xreadlink-with-size.c.
40854         (configure.ac): Remove gl_XREADLINK invocation.
40855         (Makefile.am): Augment lib_SOURCES.
40856         * m4/xreadlink.m4: Remove file.
40857         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
40858         (xreadlink_with_size): Renamed from xreadink.
40859         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
40860         * modules/canonicalize (Depends-on): Replace xreadlink with
40861         xreadlink-with-size.
40862         * lib/canonicalize.c (canonicalize_filename_mode): Update.
40863
40864 2007-02-25  Jim Meyering  <jim@meyering.net>
40865
40866         * build-aux/announce-gen: When complaining about excess arguments,
40867         list them.
40868
40869 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40870
40871         * README: Document signed integer overflow situation more
40872         accurately.
40873
40874 2007-02-25  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
40877         'a' or 'A' conversion.
40878
40879 2007-02-25  Bruno Haible  <bruno@clisp.org>
40880
40881         * modules/filename: Renamed from modules/pathname.
40882         (Files): Replace lib/pathname.h with lib/filename.h. Replace
40883         lib/concatpath.c with lib/concat-filename.c.
40884         (Makefile.am): Update.
40885         (Include): Replace pathname.h with filename.h.
40886         * lib/filename.h: Renamed from lib/pathname.h.
40887         (concatenated_filename): Renamed from concatenated_pathname.
40888         * lib/concat-filename.c: Renamed from lib/concatpath.c.
40889         (concatenated_filename): Renamed from concatenated_pathname.
40890         * lib/findprog.c: Include filename.h instead of pathname.h.
40891         (find_in_path): Update.
40892         * lib/javacomp.c: Include filename.h instead of pathname.h.
40893         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40894         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40895         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40896         is_oldgcj_14_13_usable, is_javac_usable): Update.
40897         * lib/javaexec.c: Include filename.h instead of pathname.h.
40898         (execute_java_class): Update.
40899         * modules/findprog: Update.
40900         * modules/javacomp: Update.
40901         * modules/javaexec: Update.
40902         * MODULES.html.sh (File system functions): Add 'filename', remove
40903         'pathname'.
40904
40905 2007-02-25  Bruno Haible  <bruno@clisp.org>
40906
40907         * modules/printf-frexpl-tests: New file.
40908         * tests/test-printf-frexpl.c: New file.
40909
40910         * modules/printf-frexpl: New file.
40911         * lib/printf-frexpl.h: New file.
40912         * lib/printf-frexpl.c: New file.
40913         * m4/printf-frexpl.m4: New file.
40914
40915 2007-02-25  Bruno Haible  <bruno@clisp.org>
40916
40917         * modules/printf-frexp-tests: New file.
40918         * tests/test-printf-frexp.c: New file.
40919
40920         * modules/printf-frexp: New file.
40921         * lib/printf-frexp.h: New file.
40922         * lib/printf-frexp.c: New file.
40923         * m4/printf-frexp.m4: New file.
40924
40925 2007-02-25  Bruno Haible  <bruno@clisp.org>
40926
40927         Assume automake >= 1.10 for the tests.
40928         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
40929         * modules/arctwo-tests: Likewise.
40930         * modules/argp-tests: Likewise.
40931         * modules/avltree-list-tests: Likewise.
40932         * modules/avltree-oset-tests: Likewise.
40933         * modules/avltreehash-list-tests: Likewise.
40934         * modules/carray-list-tests: Likewise.
40935         * modules/crc-tests: Likewise.
40936         * modules/des-tests: Likewise.
40937         * modules/gc-arcfour-tests: Likewise.
40938         * modules/gc-arctwo-tests: Likewise.
40939         * modules/gc-des-tests: Likewise.
40940         * modules/gc-hmac-md5-tests: Likewise.
40941         * modules/gc-hmac-sha1-tests: Likewise.
40942         * modules/gc-md2-tests: Likewise.
40943         * modules/gc-md4-tests: Likewise.
40944         * modules/gc-md5-tests: Likewise.
40945         * modules/gc-pbkdf2-sha1-tests: Likewise.
40946         * modules/gc-rijndael-tests: Likewise.
40947         * modules/gc-sha1-tests: Likewise.
40948         * modules/gc-tests: Likewise.
40949         * modules/getaddrinfo-tests: Likewise.
40950         * modules/hmac-md5-tests: Likewise.
40951         * modules/hmac-sha1-tests: Likewise.
40952         * modules/linked-list-tests: Likewise.
40953         * modules/linkedhash-list-tests: Likewise.
40954         * modules/lock-tests: Likewise.
40955         * modules/md2-tests: Likewise.
40956         * modules/md4-tests: Likewise.
40957         * modules/md5-tests: Likewise.
40958         * modules/rbtree-list-tests: Likewise.
40959         * modules/rbtree-oset-tests: Likewise.
40960         * modules/rbtreehash-list-tests: Likewise.
40961         * modules/read-file-tests: Likewise.
40962         * modules/rijndael-tests: Likewise.
40963         * modules/stdint-tests: Likewise.
40964         * modules/tls-tests: Likewise.
40965
40966 2007-02-24  Bruno Haible  <bruno@clisp.org>
40967
40968         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
40969         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
40970         function; instead check whether isnan with a double argument links.
40971         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
40972         function; instead check whether isnan with a 'long double' argument
40973         links.
40974         Reported by Eric Blake <ebb9@byu.net>.
40975
40976 2007-02-24  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
40979         defined.
40980         * lib/isnanl.c: Remove all code. Just include isnan.c.
40981         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
40982
40983 2007-02-25  Jim Meyering  <jim@meyering.net>
40984
40985         Avoid conflicting types for 'unsetenv' on FreeBSD.
40986         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
40987         conflicting with FreeBSD's (5.0 and 6.1) function declaration
40988         in stdlib.h.
40989
40990 2007-02-24  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/isnanl-nolibm-tests: New file.
40993         * tests/test-isnanl.c: New file.
40994
40995         * modules/isnanl-nolibm: New file.
40996         * lib/isnanl.h: New file.
40997         * lib/isnanl.c: New file.
40998         * m4/isnanl.m4: New file.
40999
41000 2007-02-24  Bruno Haible  <bruno@clisp.org>
41001
41002         * modules/isnan-nolibm-tests: New file.
41003         * tests/test-isnan.c: New file.
41004
41005         * modules/isnan-nolibm: New file.
41006         * lib/isnan.h: New file.
41007         * lib/isnan.c: New file.
41008         * m4/isnan.m4: New file.
41009
41010 2007-02-24  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41013         assume that an exponent fits in 20 bits.
41014
41015 2007-02-24  Jim Meyering  <jim@meyering.net>
41016
41017         * m4/regex.m4: Update the description of the configure-time option,
41018         --without-included-regex, to state accurately what the defaults are,
41019         and perhaps to give people an idea why using this option is risky.
41020
41021 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41022
41023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41024         loops on small arguments.  This attempts to avoid the problem
41025         Bruno Haible reported for AIX 4.3.2 in
41026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41027
41028 2007-02-23  Bruno Haible  <bruno@clisp.org>
41029
41030         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41031         Needed for help2man.
41032
41033 2007-02-23  Karl Berry  <karl@gnu.org>
41034
41035         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41036         exists, foo.h should be cvs-ignored, not committed.
41037
41038 2007-02-23  Eric Blake  <ebb9@byu.net>
41039
41040         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41041         * lib/stat-time.h (includes): Likewise.
41042         * lib/utimecmp.c (includes): Likewise.
41043         * lib/utimens.h (includes): Likewise.
41044         * lib/getdate.y (includes): Also include "timespec.h" for use
41045         internal to the module.
41046         * modules/utimens (Depends-on): Revert yesterday's patch.
41047         * modules/nanosleep (Depends-on): Add missing dependency.
41048
41049 2007-02-22  Bruno Haible  <bruno@clisp.org>
41050
41051         * lib/glob.c: Don't include getlogin_r.h.
41052
41053 2007-02-22  Jim Meyering  <jim@meyering.net>
41054
41055         * modules/utimens (Depends-on): Add timespec, required for
41056         utimens.h's inclusion of timespec.h.
41057
41058 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41059
41060         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41061         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41062         Schwab in
41063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41064         I'll try to think of a better way to fix the Solaris problem.
41065
41066         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41067         like glibc; on Solaris 10, it fails with errno == EINVAL.
41068         POSIX says the behavior is unspecified if the first argument is NULL,
41069         so play it safe and never pass NULL to the system getcwd.
41070
41071 2007-02-21  Jim Meyering  <jim@meyering.net>
41072
41073         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41074         of gettimeofday.  It would conflict with the one now always
41075         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41076         an IRIX 6.5 build failure.
41077
41078 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41079
41080         Minor fixups to port to Solaris 10 with Sun C 5.8.
41081         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41082         * modules/getcwd (Depends-on): Add dirfd.
41083         * lib/putenv.c (putenv): #undef it.
41084         (rpl_putenv): New decl.
41085         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41086
41087 2007-02-20  Bruno Haible  <bruno@clisp.org>
41088
41089         * modules/stdio-tests: New file.
41090         * tests/test-stdio.c: New file.
41091
41092         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41093         (Depends-on): Add stdio.
41094         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41095         (Include): Use <stdio.h> instead of vsnprintf.h.
41096         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41097         HAVE_DECL_VSNPRINTF.
41098         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41099
41100         * modules/snprintf (Files): Remove lib/snprintf.h.
41101         (Depends-on): Add stdio.
41102         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41103         (Include): Use <stdio.h> instead of snprintf.h.
41104         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41105         HAVE_DECL_SNPRINTF.
41106         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41107         * lib/getaddrinfo.c: Likewise.
41108
41109         * modules/stdio: New file.
41110         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41111         * lib/snprintf.h: Remove file.
41112         * lib/vsnprintf.h: Remove file.
41113         * lib/.cppi-disable: Remove snprintf.h.
41114         * m4/stdio_h.m4: New file.
41115         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41116
41117 2007-02-20  Jim Meyering  <jim@meyering.net>
41118
41119         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41120         used by e.g., mingw.  From Bruno Haible.
41121
41122 2007-02-19  Bruno Haible  <bruno@clisp.org>
41123
41124         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41125         warnings.
41126         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41127
41128 2007-02-19  Bruno Haible  <bruno@clisp.org>
41129
41130         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41131         from mingw users.
41132
41133 2007-02-19  Bruno Haible  <bruno@clisp.org>
41134
41135         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41136         warnings.
41137         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41138
41139 2007-02-19  Jim Meyering  <jim@meyering.net>
41140
41141         Don't use FD after a successful "fdopendir (fd)".
41142         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41143         Reset it by calling dirfd on the just-obtained DIR*.
41144
41145         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41146         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41147
41148 2007-02-18  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/readlink.c: Include <unistd.h>.
41151         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41152         HAVE_READLINK.
41153         * modules/readlink (Depends-on): Add unistd.
41154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41155         (Include): Add <unistd.h>.
41156
41157         * lib/getlogin_r.h: Remove file.
41158         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41159         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41160         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41161         HAVE_DECL_GETLOGIN_R.
41162         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41164         (Include): Use <unistd.h> instead of getlogin_r.h.
41165
41166         * lib/getcwd.h: Remove file.
41167         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41168         * lib/xgetcwd.c: Likewise.
41169         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41170         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41171         * modules/getcwd (Files): Remove lib/getcwd.h.
41172         (Depends-on): Add unistd.
41173         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41174         (Include): Use <unistd.h> instad of getcwd.h.
41175
41176         * lib/ftruncate.c: Include <unistd.h> first.
41177         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41178         Set HAVE_FTRUNCATE.
41179         * modules/ftruncate (Depends-on): Add unistd.
41180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41181
41182         * lib/fchdir.c: Include <unistd.h> first.
41183         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41185         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41186         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41187         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41188
41189         * lib/dup2.c: Include <unistd.h> first.
41190         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41191         HAVE_DUP2.
41192         * modules/dup2 (Depends-on): Add unistd.
41193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41194
41195         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41196         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41197         REPLACE_CHOWN. Don't define chown as a macro here.
41198         * modules/chown (Depends-on): Add unistd.
41199         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41200
41201         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41202         Add definition for GL_LINK_WARNING.
41203         (chown, dup2): New declarations.
41204         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41205         link warning.
41206         (ftruncate): New declaration.
41207         (getcwd): New declaration, taken from old getcwd.h.
41208         (getlogin_r): New declaration, taken from old getlogin_r.h.
41209         (readlink): New declaration.
41210         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41211         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41212         (gl_PREREQ_UNISTD): Remove macro.
41213         (gl_UNISTD_MODULE_INDICATOR): New macro.
41214         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41215         many new variables. Don't set UNISTD_H.
41216         * modules/unistd (Description): Change.
41217         (Depends-on): Add link-warning.
41218         (configure.ac): Update.
41219         (Makefile.am): Create unistd.h always. Substitute many new variables
41220         into it.
41221
41222 2007-02-18  Bruno Haible  <bruno@clisp.org>
41223
41224         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41225         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41226         HAVE_GETSUBOPT.
41227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41228         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41229         * lib/getsubopt.h: Remove file.
41230         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41231         (Depends-on): Add stdlib.
41232         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41233         (Includes): Use <stdlib.h> instead of getsubopt.h.
41234         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41235         Set HAVE_GETSUBOPT.
41236         * lib/getsubopt.c: Don't include getsubopt.h.
41237
41238 2007-02-18  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/fchdir (Depends-on): Add dup2.
41241
41242 2007-02-18  Bruno Haible  <bruno@clisp.org>
41243
41244         * lib/stdlib_.h: Handle glibc's special invocation convention
41245         specially.
41246
41247 2007-02-18  Bruno Haible  <bruno@clisp.org>
41248
41249         * modules/stdlib-tests: New file.
41250         * tests/test-stdlib.c: New file.
41251
41252         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41253         (Depends-on): Add stdlib.
41254         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41255         (Includes): Use <stdlib.h> instead of mkstemp.h.
41256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41257         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41258         * lib/mkstemp.c: Don't include mkstemp.h.
41259         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41260         * lib/stdlib--.h: Don't include mkstemp.h.
41261
41262         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41263         (Depends-on): Add stdlib.
41264         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41265         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41266         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41267         HAVE_MKDTEMP.
41268         * lib/mkdtemp.c: Don't include mkdtemp.h.
41269         * lib/clean-temp.c: Don't include mkdtemp.h.
41270
41271         * modules/exit (Files): Remove lib/exit.h.
41272         (Depends-on): Add stdlib.
41273         (Makefile.am): Remove lib_SOURCES.
41274         (Include): Use <stdlib.h> instead of exit.h.
41275         * lib/argmatch.c: Don't include exit.h.
41276         * lib/execute.c: Likewise.
41277         * lib/pagealign_alloc.c: Likewise.
41278         * lib/pipe.c: Likewise.
41279         * lib/wait-process.c: Likewise.
41280         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41281         * lib/exitfail.c: Likewise.
41282         * lib/savewd.c: Likewise.
41283         * lib/xsetenv.c: Likewise.
41284
41285         * modules/stdlib: New file.
41286         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41287         and extra comments about mkstemp().
41288         * lib/exit.h: Remove file.
41289         * lib/mkdtemp.h: Remove file.
41290         * lib/mkstemp.h: Remove file.
41291         * m4/stdlib_h.m4: New file.
41292         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41293
41294 2007-02-18  Bruno Haible  <bruno@clisp.org>
41295
41296         * modules/math-tests: New file.
41297         * tests/test-math.c: New file.
41298
41299         * modules/math: New file.
41300         * modules/mathl (Files): Remove lib/mathl.h.
41301         (Depends-on): Add math.
41302         (Makefile.am): Don't mention mathl.h.
41303         (Include): Use <math.h> instead of mathl.h.
41304         * lib/math_.h: New file.
41305         * lib/mathl.h: Remove file.
41306         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41307         mathl.h.
41308         * lib/asinl.c: Likewise.
41309         * lib/atanl.c: Likewise.
41310         * lib/ceill.c: Likewise.
41311         * lib/cosl.c: Likewise.
41312         * lib/expl.c: Likewise.
41313         * lib/floorl.c: Likewise.
41314         * lib/frexpl.c: Likewise.
41315         * lib/ldexpl.c: Likewise.
41316         * lib/logl.c: Likewise.
41317         * lib/sincosl.c: Likewise.
41318         * lib/sinl.c: Likewise.
41319         * lib/sqrtl.c: Likewise.
41320         * lib/tanl.c: Likewise.
41321         * lib/trigl.c: Likewise.
41322         * m4/math_h.m4: New file.
41323         * MODULES.html.sh (Mathematics): Add math.
41324
41325 2007-02-17  Bruno Haible  <bruno@clisp.org>
41326
41327         * modules/wctype-tests: New file.
41328         * tests/test-wctype.c: New file.
41329
41330         * modules/wchar-tests: New file.
41331         * tests/test-wchar.c: New file.
41332
41333         * modules/unistd-tests: New file.
41334         * tests/test-unistd.c: New file.
41335
41336         * modules/time-tests: New file.
41337         * tests/test-time.c: New file.
41338
41339         * modules/sysexits-tests: New file.
41340         * tests/test-sysexits.c: New file.
41341
41342         * modules/sys_time-tests: New file.
41343         * tests/test-sys_time.c: New file.
41344
41345         * modules/sys_stat-tests: New file.
41346         * tests/test-sys_stat.c: New file.
41347
41348         * modules/sys_socket-tests: New file.
41349         * tests/test-sys_socket.c: New file.
41350
41351         * modules/sys_select-tests: New file.
41352         * tests/test-sys_select.c: New file.
41353
41354         * modules/string-tests: New file.
41355         * tests/test-string.c: New file.
41356
41357         * modules/stdbool-tests: New file.
41358         * tests/test-stdbool.c: New file.
41359
41360         * modules/netinet_in-tests: New file.
41361         * tests/test-netinet_in.c: New file.
41362
41363         * modules/inttypes-tests: New file.
41364         * tests/test-inttypes.c: New file.
41365
41366         * modules/fcntl-tests: New file.
41367         * tests/test-fcntl.c: New file.
41368
41369         * modules/byteswap-tests: New file.
41370         * tests/test-byteswap.c: New file.
41371
41372         * modules/arpa_inet-tests: New file.
41373         * tests/test-arpa_inet.c: New file.
41374
41375 2007-02-17  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41378         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41379         if the corresponding module is not enabled. Emit link warnings if
41380         the function is used nevertheless.
41381         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41382         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41383         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41384         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41385         * modules/inttypes (Depends-on): Add link-warning.
41386         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41387         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41388         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41389         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41390         * modules/imaxdiv (configure.ac): Likewise.
41391         * modules/strtoimax (configure.ac): Likewise.
41392         * modules/strtoumax (configure.ac): Likewise.
41393
41394 2007-02-17  Bruno Haible  <bruno@clisp.org>
41395
41396         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41397         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41398         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41399         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41400
41401 2007-02-17  Bruno Haible  <bruno@clisp.org>
41402
41403         * modules/link-warning: New file.
41404         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41405         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41406         * modules/string (Depends-on): Add link-warning.
41407         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41408         string.h.
41409         * MODULES.html.sh (Support for building libraries and executables): Add
41410         link-warning.
41411
41412 2007-02-17  Bruno Haible  <bruno@clisp.org>
41413
41414         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41415         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41416         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41417         long lines.
41418
41419 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41420             Bruno Haible  <bruno@clisp.org>
41421
41422         * modules/tmpfile: New file.
41423         * lib/tmpfile.c: New file.
41424         * m4/tmpfile.m4: New file.
41425         * MODULES.html.sh (func_all_modules): New section "Input/output".
41426
41427 2007-02-15  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41430         (supports_delete_on_close): New function.
41431         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41432
41433 2007-02-14  Bruno Haible  <bruno@clisp.org>
41434
41435         * modules/mbspcasecmp-tests: New file.
41436         * tests/test-mbspcasecmp.sh: New file.
41437         * tests/test-mbspcasecmp.c: New file.
41438
41439         New module mbspcasecmp.
41440         * modules/mbspcasecmp: New file.
41441         * lib/mbspcasecmp.c: New file.
41442         * lib/string_.h (strncasecmp): Change warning message.
41443         (mbspcasecmp): New declaration.
41444         * m4/mbspcasecmp.m4: New file.
41445         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41446         GNULIB_MBSPCASECMP.
41447         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41448         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41449
41450 2007-02-14  Bruno Haible  <bruno@clisp.org>
41451
41452         * modules/mbsncasecmp-tests: New file.
41453         * tests/test-mbsncasecmp.sh: New file.
41454         * tests/test-mbsncasecmp.c: New file.
41455
41456         New module mbsncasecmp.
41457         * modules/mbsncasecmp: New file.
41458         * lib/mbsncasecmp.c: New file.
41459         * lib/string_.h (mbsncasecmp): New declaration.
41460         * m4/mbsncasecmp.m4: New file.
41461         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41462         GNULIB_MBSNCASECMP.
41463         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41464         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41465
41466 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41467
41468         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41469         Verify that it doesn't overlap with our flags.
41470         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41471         do not have the desired effect in multibyte locales; instead, use
41472         mbscasecmp.
41473         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41474         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41475         we don't require GNU fnmatch ourselves (if our users require it, they
41476         should do so explicitly).
41477
41478         Fix regex code so it doesn't rely on strcasecmp.
41479         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41480         Otherwise, include gnulib's langinfo.h.
41481         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41482         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41483         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41484         * modules/regex (FILES): Remove m4/codeset.m4.
41485         (Depends-on): Add localcharset.  Remove strcase.
41486
41487 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41488
41489         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41490         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41491
41492 2007-02-13  Bruno Haible  <bruno@clisp.org>
41493
41494         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41496
41497 2007-02-12  Bruno Haible  <bruno@clisp.org>
41498
41499         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41500         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41501         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41502         time warning rather than a link error.
41503
41504 2007-02-12  Bruno Haible  <bruno@clisp.org>
41505
41506         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41507         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41509
41510 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41511
41512         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41513         args, not 2.
41514
41515 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41516
41517         New module 'time', so that apps can include <time.h> as per
41518         POSIX and GNU instead of separate include files like time_r.h
41519         and timegm.h.  This implementation tries out a simpler approach
41520         for replacing decls in standard include files (as compared to
41521         the string module), somewhat as an experiment.
41522
41523         * config/srclist.txt: Comment out mktime.c for now.
41524         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41525         since it doesn't apply any more.  Use generic wording instead.
41526         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41527         'time'.
41528         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41529         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41530         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41531         Don't include <sys/types.h>; no longer needed since we assume C89.
41532         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41533         * lib/strftime.c: Likewise.
41534         * lib/time_r.c: Likewise.
41535         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41536         * lib/nanosleep.c: Include <time.h> first, to check interface.
41537         * lib/strptime.c: Likewise.
41538         * lib/time_r.c: Likewise.
41539         * lib/timegm.c: Likewise.
41540         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41541         needed.
41542         * lib/timegm.c: Don't include timegm.h; no longer needed.
41543         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41544         time.h now handles any problems in that area.
41545         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41546         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41547         that time.h defines struct timespec.
41548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41549         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41550         handles that.
41551         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41552         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41553         needed.  Set REPLACE_LOCALTIME.
41554         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41555         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41556         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41557         nanosleep; time_h.m4 now does that.  Don't require
41558         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41559         module handles this now.
41560         * modules/getdate (Depends-on): Remove timespec.  Add time.
41561         * modules/nanosleep (Depends-on): Likewise.
41562         * modules/stat-time (Depends-on): Likewise.
41563         * modules/nanosleep (Include): Include time.h, not timespec.h.
41564         * modules/strptime (Files): Remove lib/strptime.h.
41565         (Depends-on): Add extensions, time.
41566         (Include): Include time.h, not strptime.h.
41567         * modules/time_r (Files): Remove lib/time_r.h.
41568         (Depends-on): Add time.
41569         (Include): Include time.h, not time_r.h.
41570         * modules/timegm: Likewise.
41571         * modules/timespec (Description): Now does timespec-related decls
41572         of our own, instead of struct timespec itself.
41573         (Depends-on): Add time; remove extensions.
41574         (Maintainer): Add self.
41575         * modules/utimecmp (Depends-on): Add time; remove timespec.
41576         * modules/utimens (Depends-on): Likewise.
41577         * modules/xnanosleep (Depends-on): Likewise.
41578
41579 2007-02-11  Bruno Haible  <bruno@clisp.org>
41580
41581         * lib/c-strstr.c: Include allocsa.h.
41582         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41583         * lib/c-strcasestr.c: Include allocsa.h.
41584         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41585         * lib/strcasestr.c: Include allocsa.h.
41586         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41587         * lib/mbsstr.c: Include allocsa.h.
41588         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41589         allocsa/freesa instead of malloc/free.
41590         * lib/mbscasestr.c: Include allocsa.h.
41591         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41592         allocsa/freesa instead of malloc/free.
41593         * modules/c-strstr (Depends-on): Add allocsa.
41594         * modules/c-strcasestr (Depends-on): Likewise.
41595         * modules/strcasestr (Depends-on): Likewise.
41596         * modules/mbsstr (Depends-on): Likewise.
41597         * modules/mbscasestr (Depends-on): Likewise.
41598
41599 2007-02-11  Bruno Haible  <bruno@clisp.org>
41600
41601         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41602
41603         * modules/mbsspn-tests: New file.
41604         * tests/test-mbsspn.sh: New file.
41605         * tests/test-mbsspn.c: New file.
41606
41607 2007-02-11  Bruno Haible  <bruno@clisp.org>
41608
41609         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41610
41611         * modules/mbspbrk-tests: New file.
41612         * tests/test-mbspbrk.sh: New file.
41613         * tests/test-mbspbrk.c: New file.
41614
41615 2007-02-11  Bruno Haible  <bruno@clisp.org>
41616
41617         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
41618         unneeded cast.
41619
41620         * modules/mbscspn-tests: New file.
41621         * tests/test-mbscspn.sh: New file.
41622         * tests/test-mbscspn.c: New file.
41623
41624 2007-02-11  Bruno Haible  <bruno@clisp.org>
41625
41626         * modules/mbscasecmp-tests: New file.
41627         * tests/test-mbscasecmp.sh: New file.
41628         * tests/test-mbscasecmp.c: New file.
41629
41630 2007-02-11  Bruno Haible  <bruno@clisp.org>
41631
41632         Ensure O(n) worst-case complexity of mbscasestr.
41633         * lib/mbscasestr.c: Include stdbool.h.
41634         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41635         functions.
41636         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
41637         the bookkeeping indicates that it's worth it.
41638         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
41639
41640         * modules/mbscasestr-tests: New file.
41641         * tests/test-mbscasestr1.c: New file.
41642         * tests/test-mbscasestr2.sh: New file.
41643         * tests/test-mbscasestr2.c: New file.
41644         * tests/test-mbscasestr3.sh: New file.
41645         * tests/test-mbscasestr3.c: New file.
41646         * tests/test-mbscasestr4.sh: New file.
41647         * tests/test-mbscasestr4.c: New file.
41648         * m4/locale-tr.m4: New file.
41649
41650 2007-02-11  Bruno Haible  <bruno@clisp.org>
41651
41652         Ensure O(n) worst-case complexity of mbsstr.
41653         * lib/mbsstr.c: Include stdbool.h.
41654         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41655         functions.
41656         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41657         bookkeeping indicates that it's worth it.
41658         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41659
41660         * modules/mbsstr-tests: New file.
41661         * tests/test-mbsstr1.c: New file.
41662         * tests/test-mbsstr2.sh: New file.
41663         * tests/test-mbsstr2.c: New file.
41664         * tests/test-mbsstr3.sh: New file.
41665         * tests/test-mbsstr3.c: New file.
41666         * m4/locale-fr.m4: New file.
41667
41668 2007-02-11  Bruno Haible  <bruno@clisp.org>
41669
41670         * lib/mbsrchr.c (mbsrchr): Fix bug.
41671
41672         * modules/mbsrchr-tests: New file.
41673         * tests/test-mbsrchr.sh: New file.
41674         * tests/test-mbsrchr.c: New file.
41675
41676 2007-02-11  Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/mbschr.c (mbschr): Fix bug.
41679
41680         * modules/mbschr-tests: New file.
41681         * tests/test-mbschr.sh: New file.
41682         * tests/test-mbschr.c: New file.
41683         * m4/locale-zh.m4: New file.
41684
41685 2007-02-11  Bruno Haible  <bruno@clisp.org>
41686
41687         Support for copying multibyte string iterators.
41688         * lib/mbiter.h: Include <string.h>.
41689         (mbiter_multi_copy): New function.
41690         (mbi_copy): New macro.
41691         * lib/mbuiter.h: Include <string.h>.
41692         (mbuiter_multi_copy): New function.
41693         (mbui_copy): New macro.
41694
41695 2007-02-11  Bruno Haible  <bruno@clisp.org>
41696
41697         New module mbslen.
41698         * modules/mbslen: New file.
41699         * lib/mbslen.c: New file.
41700         * lib/string_.h (mbslen): New declaration.
41701         * m4/mbslen.m4: New file.
41702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41703         GNULIB_MBSLEN.
41704         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41705         * MODULES.html.sh (Internationalization functions): Add mbslen.
41706
41707 2007-02-11  Bruno Haible  <bruno@clisp.org>
41708
41709         Ensure O(n) worst-case complexity of strcasestr substitute.
41710         * lib/strcasestr.c: Include stdbool.h.
41711         (knuth_morris_pratt): New function.
41712         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41713         bookkeeping indicates that it's worth it.
41714         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
41715
41716         * modules/strcasestr-tests: New file.
41717         * tests/test-strcasestr.c: New file.
41718
41719 2007-02-11  Bruno Haible  <bruno@clisp.org>
41720
41721         Ensure O(n) worst-case complexity of c_strcasestr.
41722         * lib/c-strcasestr.c: Include stdbool.h, string.h.
41723         (knuth_morris_pratt): New function.
41724         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
41725         the bookkeeping indicates that it's worth it.
41726         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
41727
41728         * modules/c-strcasestr-tests: New file.
41729         * tests/test-c-strcasestr.c: New file.
41730
41731 2007-02-11  Bruno Haible  <bruno@clisp.org>
41732
41733         Ensure O(n) worst-case complexity of c_strstr.
41734         * lib/c-strstr.c: Include stdbool.h, string.h.
41735         (knuth_morris_pratt): New function.
41736         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41737         bookkeeping indicates that it's worth it.
41738         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
41739
41740         * lib/c-strstr.c: Complete rewrite for maintainability.
41741
41742         * modules/c-strstr-tests: New file.
41743         * tests/test-c-strstr.c: New file.
41744
41745 2007-02-11  Bruno Haible  <bruno@clisp.org>
41746
41747         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
41748         5.2.1 and earlier, whereby \055 was treated just like the range
41749         delimiter '-'.
41750         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41751
41752 2007-02-08  Bruno Haible  <bruno@clisp.org>
41753
41754         * modules/regex (Depends-on): Add stdbool.
41755         Reported by Dalibor Topic <robilad@kaffe.org>.
41756
41757 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41758
41759         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
41760         Prefer returning from main to exiting from it.
41761         Remove unnecessary parens after sizeof.
41762
41763 2007-02-05  Bruno Haible  <bruno@clisp.org>
41764
41765         New module mbssep.
41766         * modules/mbssep: New file.
41767         * lib/mbssep.c: New file.
41768         * lib/string_.h (strsep): Add a conditional link warning.
41769         (mbssep): New declaration.
41770         * m4/mbssep.m4: New file.
41771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41772         GNULIB_MBSSEP.
41773         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
41774         * MODULES.html.sh (Internationalization functions): Add mbssep.
41775
41776 2007-02-05  Bruno Haible  <bruno@clisp.org>
41777
41778         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
41779         Optimize search in case of 1 delimiter.
41780
41781 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41782
41783         * lib/acl.h: Include sys/types.h before sys/acl.h.
41784
41785 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41786
41787         Merge upstream fix for glibc bugzilla #3957:
41788
41789         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
41790
41791         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
41792         bit for RE_HAT_LISTS_NOT_NEWLINE.
41793         (build_charclass_op): Remove bogus comment.
41794
41795 2007-02-05  Simon Josefsson  <simon@josefsson.org>
41796
41797         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
41798
41799 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41800
41801         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
41802         * lib/memmem.c [!defined _LIBC]: Include config.h.
41803
41804 2007-02-04  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
41807         warning message.
41808
41809 2007-02-04  Bruno Haible  <bruno@clisp.org>
41810
41811         New module mbstok_r.
41812         * modules/mbstok_r: New file.
41813         * lib/mbstok_r.c: New file.
41814         * lib/string_.h (strtok_r): Change argument names to match the
41815         comments. Add a conditional link warning.
41816         (mbstok_r): New declaration.
41817         * m4/mbstok_r.m4: New file.
41818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41819         GNULIB_MBSTOK_R.
41820         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
41821         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
41822
41823 2007-02-04  Bruno Haible  <bruno@clisp.org>
41824
41825         New module mbsspn.
41826         * modules/mbsspn: New file.
41827         * lib/mbsspn.c: New file.
41828         * lib/string_.h (strspn): Add a conditional link warning.
41829         (mbsspn): New declaration.
41830         * m4/mbsspn.m4: New file.
41831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41832         GNULIB_MBSSPN.
41833         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
41834         * MODULES.html.sh (Internationalization functions): Add mbsspn.
41835
41836 2007-02-04  Bruno Haible  <bruno@clisp.org>
41837
41838         New module mbspbrk.
41839         * modules/mbspbrk: New file.
41840         * lib/mbspbrk.c: New file.
41841         * lib/string_.h (strpbrk): Add a conditional link warning.
41842         (mbspbrk): New declaration.
41843         * m4/mbspbrk.m4: New file.
41844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41845         GNULIB_MBSPBRK.
41846         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
41847         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
41848
41849 2007-02-04  Bruno Haible  <bruno@clisp.org>
41850
41851         New module mbscspn.
41852         * modules/mbscspn: New file.
41853         * lib/mbscspn.c: New file.
41854         * lib/string_.h (strcspn): Add a conditional link warning.
41855         (mbscspn): New declaration.
41856         * m4/mbscspn.m4: New file.
41857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41858         GNULIB_MBSCSPN.
41859         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
41860         * MODULES.html.sh (Internationalization functions): Add mbscspn.
41861
41862 2007-02-04  Bruno Haible  <bruno@clisp.org>
41863
41864         New module mbscasestr, reduced goal of strcasestr.
41865         * modules/mbscasestr: New file.
41866         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
41867         (mbscasestr): Renamed from strcasestr.
41868         * lib/strcasestr.c: Don't include mbuiter.h.
41869         (strcasestr): Remove support for multibyte locales.
41870         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
41871         Change the conditional link warning.
41872         (mbscasestr): New declaration.
41873         * m4/mbscasestr.m4: New file.
41874         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
41875         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
41876         REPLACE_STRCASESTR.
41877         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
41878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41879         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41880         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
41881         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
41882         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41883         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
41884         (Depends-on): Remove mbuiter.
41885         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
41886
41887 2007-02-04  Bruno Haible  <bruno@clisp.org>
41888
41889         Simplify handling of strncasecmp.
41890         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
41891         the conditional link warning.
41892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41893         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
41894         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
41895         * modules/strcase (configure.ac): Don't invoke
41896         gl_STRING_MODULE_INDICATOR.
41897         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
41898
41899 2007-02-04  Bruno Haible  <bruno@clisp.org>
41900
41901         New module mbscasecmp, reduced goal of strcasecmp.
41902         * modules/mbscasecmp: New file.
41903         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
41904         (mbscasecmp): Renamed from strcasecmp.
41905         * lib/strcasecmp.c: Don't include mbuiter.h.
41906         (strcasecmp): Remove support for multibyte locales.
41907         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
41908         Change the conditional link warning.
41909         (mbscasecmp): New declaration.
41910         * m4/mbscasecmp.m4: New file.
41911         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
41912         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
41913         REPLACE_STRCASECMP.
41914         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
41915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41916         GNULIB_MBSCASECMP.
41917         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
41918         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
41919         * modules/strcase (Files): Remove m4/mbrtowc.m4.
41920         (Depends-on): Remove mbuiter.
41921         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
41922
41923 2007-02-04  Bruno Haible  <bruno@clisp.org>
41924
41925         New module mbsstr. Remove module strstr.
41926         * modules/mbsstr: New file.
41927         * modules/strstr: Remove file.
41928         * lib/mbsstr.c: Renamed from lib/strstr.c.
41929         (mbsstr): Renamed from strstr.
41930         * lib/string_.h (strstr): Remove declaration. Change the conditional
41931         link warning.
41932         (mbsstr): New declaration.
41933         * m4/mbsstr.m4: New file.
41934         * m4/strstr.m4: Remove file.
41935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
41936         REPLACE_STRSTR.
41937         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
41938         Don't initialize GNULIB_STRSTR.
41939         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
41940         substitute GNULIB_STRSTR and REPLACE_STRSTR.
41941         * MODULES.html.sh (Internationalization functions): Add mbsstr.
41942         (Support for systems lacking ANSI C 89): Remove strstr.
41943
41944 2007-02-04  Bruno Haible  <bruno@clisp.org>
41945
41946         New module mbsrchr.
41947         * modules/mbsrchr: New file.
41948         * lib/mbsrchr.c: New file.
41949         * lib/string_.h (strrchr): Add a conditional link warning.
41950         (mbsrchr): New declaration.
41951         * m4/mbsrchr.m4: New file.
41952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41953         GNULIB_MBSRCHR.
41954         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
41955         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
41956
41957 2007-02-04  Bruno Haible  <bruno@clisp.org>
41958
41959         New module mbschr.
41960         * modules/mbschr: New file.
41961         * lib/mbschr.c: New file.
41962         * lib/string_.h (strchr): Add a conditional link warning.
41963         (mbschr): New declaration.
41964         * m4/mbschr.m4: New file.
41965         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41966         GNULIB_MBSCHR.
41967         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
41968         * MODULES.html.sh (Internationalization functions): Add mbschr.
41969
41970 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41971
41972         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
41973
41974         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
41975
41976 2007-02-04  Bruno Haible  <bruno@clisp.org>
41977
41978         New module description section 'configure.ac-early'.
41979         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
41980         (func_get_autoconf_early_snippet): New function.
41981         (func_import, func_create_testdir): Use it. Remove special cases for
41982         modules 'extensions' and 'lock'.
41983         * modules/extensions (configure.ac-early): Require
41984         gl_USE_SYSTEM_EXTENSIONS.
41985         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
41986
41987 2007-02-04  Bruno Haible  <bruno@clisp.org>
41988
41989         Make use of gcj-4.3's -fsource and -ftarget option.
41990         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
41991         and if so try the options -fsource and -ftarget.
41992         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
41993         source_version, ftarget_option, target_version arguments.
41994         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
41995         (is_envjavac_oldgcj_14_14_usable): Renamed from
41996         is_envjavac_gcj_14_14_usable.
41997         (is_envjavac_oldgcj_14_13_usable): Renamed from
41998         is_envjavac_gcj_14_13_usable.
41999         (is_gcj_present): Update.
42000         (is_gcj_43, is_gcj43_usable): New functions.
42001         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42002         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42003         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42004         try the options -fsource and -ftarget.
42005
42006 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42007
42008         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42009         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42010         larger value.
42011
42012 2007-02-03  Jim Meyering  <jim@meyering.net>
42013
42014         Give tools a better chance to allocate space for very large buffers.
42015         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42016
42017         Make pwd and readlink work also when run with an unreadable parent dir
42018         on systems with openat support.
42019         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42020         provided getcwd function, even when we have openat support.
42021         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42022
42023 2007-02-02  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42026         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42027         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42028         portability problems if one of these functions is only used on specific
42029         platforms.
42030         Reported by Paul Eggert.
42031
42032 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42033
42034         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42035         is causing more trouble than it's curing.
42036         * lib/regex_internal.h (__mempcpy): Remove.
42037         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42038         (and make the code a tad smaller to boot).
42039         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42040
42041 2007-02-02  Jim Meyering  <jim@meyering.net>
42042
42043         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42044         section, not in the Makefile.am: one.
42045
42046 2007-02-02  Eric Blake  <ebb9@byu.net>
42047
42048         * lib/strchrnul.c: Always include config.h first.
42049
42050         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42051         gnulib strstr is not necessary here.
42052
42053 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42054
42055         * m4/socklen.m4: Fix typo.
42056
42057 2007-02-02  Eric Blake  <ebb9@byu.net>
42058
42059         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42060         * modules/netinet_in (Makefile.am): Likewise.
42061
42062 2007-02-01  Bruno Haible  <bruno@clisp.org>
42063
42064         * lib/string_.h (GL_LINK_WARNING): New macro.
42065         (strcasecmp, strstr, strcasestr): If provided by the system,
42066         conditionally define as a macro that leads to a warning instead of to
42067         an error.
42068         (strncasecmp): Conditionally define as a macro that leads to a warning.
42069
42070 2007-02-01  Karl Berry  <karl@gnu.org>
42071
42072         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42073
42074 2007-02-01  Bruno Haible  <bruno@clisp.org>
42075
42076         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42077         renamings.
42078
42079 2007-02-01  Eric Blake  <ebb9@byu.net>
42080
42081         * modules/regex (Depends-on): Revert dependence on mempcpy.
42082         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42083         module's definition of mempcpy.
42084         Reported by Paul Eggert.
42085
42086 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42087
42088         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42089         the symbol XYZ before redefining it.  This fixes a problem with
42090         programs that don't use XYZ, when compiled on systems that define
42091         XYZ to something else.
42092
42093 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42094
42095         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42096         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42097         writeable to group or other and (2) is intended to have a special
42098         mode bit that is set or cleared.  In such a case, the directory
42099         should be neither group- nor other-writeable until the special
42100         mode bits are right.
42101
42102 2007-01-31  Eric Blake  <ebb9@byu.net>
42103
42104         * modules/mountlist (Depends-on): Add strstr.
42105
42106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42107         bug.
42108         * modules/string (Makefile.am): Remove redundant replacement.
42109         * modules/regex (Depends-on): Add mempcpy.
42110
42111 2007-01-31  Bruno Haible  <bruno@clisp.org>
42112
42113         New module description field 'Link'.
42114         * gnulib-tool (func_usage): Document --extract-link-directive.
42115         (sed_extract_prog): Recognize 'Link' directive.
42116         (func_get_link_directive): New function.
42117         (func_import): Show summary of link directives.
42118         Handle --extract-link-directive option.
42119         * modules/acl (Link): New section.
42120         * modules/clock-time (Link): New section.
42121         * modules/euidaccess (Link): New section.
42122         * modules/gettext (Link): New section.
42123         * modules/iconv (Link): New section.
42124         * modules/lock (Link): New section.
42125         * modules/nanosleep (Link): New section.
42126         * modules/readline (Link): New section.
42127
42128 2007-01-27  Bruno Haible  <bruno@clisp.org>
42129
42130         Enforce the use of gnulib modules for unportable <string.h> functions.
42131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42132         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42133         (gl_HEADER_STRING_H_BODY): Require it.
42134         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42135         the symbol XYZ to one that gives a link error.
42136         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42137         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42138         * modules/mempcpy (configure.ac): Likewise.
42139         * modules/memrchr (configure.ac): Likewise.
42140         * modules/stpcpy (configure.ac): Likewise.
42141         * modules/stpncpy (configure.ac): Likewise.
42142         * modules/strcase (configure.ac): Likewise.
42143         * modules/strcasestr (configure.ac): Likewise.
42144         * modules/strchrnul (configure.ac): Likewise.
42145         * modules/strdup (configure.ac): Likewise.
42146         * modules/strndup (configure.ac): Likewise.
42147         * modules/strnlen (configure.ac): Likewise.
42148         * modules/strpbrk (configure.ac): Likewise.
42149         * modules/strsep (configure.ac): Likewise.
42150         * modules/strstr (configure.ac): Likewise.
42151         * modules/strtok_r (configure.ac): Likewise.
42152
42153 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42154
42155         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42156
42157 2007-01-30  Jim Meyering  <jim@meyering.net>
42158
42159         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42160
42161 2007-01-29  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42164         * lib/execute.c: Likewise.
42165         * lib/pipe.c: Likewise.
42166         * lib/printf-args.h: Likewise.
42167         * lib/printf-args.c: Likewise.
42168         * lib/printf-parse.c: Likewise.
42169         * lib/vasnprintf.c: Likewise.
42170
42171 2007-01-29  Eric Blake  <ebb9@byu.net>
42172
42173         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42174         declaration.
42175
42176 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42177
42178         * lib/strptime.h (strptime): Use 'restrict' for args where
42179         POSIX requires this.
42180         * lib/strptime.c (strptime): Likewise.
42181         Change license notice from LGPL to GPL, since gnulib-tool will
42182         change this as needed.
42183         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42184         defined.
42185         Include "strptime.h" first, to check interface.
42186         Do not #undef _LIBC and _NL_CURRENT.
42187         Do not include <stdlib.h>; no longer needed.
42188         Include "time_r.h" and declare ptime_locale_status
42189         only if _LIBC is not defined.
42190         (__P): Remove unused macro.
42191         (match_string): Bring back glibc version, but use it only if _LIBC
42192         is defined.
42193         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42194         Remove unnecessary assertion and abort() call.
42195         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42196         * m4/strptime.m4: Fix serial number comment.
42197         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42198         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42199         (Depends-on): Add time_r.
42200
42201 2007-01-29  Bruno Haible  <bruno@clisp.org>
42202
42203         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42204         strptime.
42205         * modules/strptime (Depends-on): Add stdbool.
42206         * lib/strptime.h: Include <time.h> always. Add comments.
42207
42208 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42209
42210         * modules/strptime: New file.
42211         * lib/strptime.h: New file.
42212         * lib/strptime.c: New file.
42213         * m4/strptime.m4: New file.
42214
42215 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42216
42217         * MODULES.html.sh: New module mpsort.
42218         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42219
42220         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42221         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42223         All uses changed.
42224         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42225         All uses changed.
42226         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42227         to _Restrict_.
42228         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42229         the parameter matches the prototype.
42230
42231 2007-01-28  Jim Meyering  <jim@meyering.net>
42232
42233         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42234         sys/time.h here, reverting that part of the previous patch:
42235         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42236
42237 2007-01-28  Bruno Haible  <bruno@clisp.org>
42238
42239         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42240         value of $(SYS_TIME_H).
42241         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42242         remove it conditionally, too. [added by Jim Meyering]
42243         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42244         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42245         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42246         GETTIMEOFDAY_REPLACEMENT to 1.
42247
42248 2007-01-28  Bruno Haible  <bruno@clisp.org>
42249
42250         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42251         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42253         Set UNISTD_H instead of UNISTD_H2.
42254         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42255
42256 2007-01-28  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42259         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42260
42261 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42262
42263         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42264         (func_create_testdir): Ensure C locale for `grep' and `tr'
42265         character ranges.
42266         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42267         ACLOCAL_AMFLAGS parsing state machine.
42268
42269 2007-01-27  Bruno Haible  <bruno@clisp.org>
42270
42271         * modules/unistr/base: Update.
42272
42273 2007-01-27  Bruno Haible  <bruno@clisp.org>
42274
42275         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42276         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42277         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42278         modules/unistr/u32-mbtouc.
42279         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42280         * lib/unistr.h: Update.
42281         * lib/linebreak.c: Update.
42282         * modules/unistr/u32-mbtouc: Renamed from
42283         modules/unistr/u32-mbtouc-safe.
42284         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42285         * lib/unistr.h: Update.
42286         * lib/unistr/u32-to-u8.c: Update.
42287         * lib/unistr/u32-to-u16.c: Update.
42288
42289 2007-01-27  Bruno Haible  <bruno@clisp.org>
42290
42291         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42292         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42293         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42294         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42295         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42296         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42297         modules/unistr/u16-mbtouc.
42298         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42299         * lib/unistr.h: Update.
42300         * lib/linebreak.c: Update.
42301         * modules/linebreak: Update.
42302         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42303         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42304         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42305         * modules/unistr/u16-mbtouc: Renamed from
42306         modules/unistr/u16-mbtouc-safe.
42307         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42308         * lib/unistr.h: Update.
42309         * lib/unistr/u16-to-u8.c: Update.
42310         * modules/unistr/u16-to-u8: Update.
42311         * lib/unistr/u16-to-u32.c: Update.
42312         * modules/unistr/u16-to-u32: Update.
42313
42314 2007-01-27  Bruno Haible  <bruno@clisp.org>
42315
42316         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42317         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42318         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42319         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42320         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42321         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42322         modules/unistr/u8-mbtouc.
42323         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42324         * lib/unistr.h: Update.
42325         * lib/striconveh.c: Update.
42326         * modules/striconveh: Update.
42327         * lib/linebreak.c: Update.
42328         * modules/linebreak: Update.
42329         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42330         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42331         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42332         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42333         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42334         * lib/unistr.h: Update.
42335         * lib/striconveh.c: Update.
42336         * modules/striconveh: Update.
42337         * lib/unistr/u8-to-u16.c: Update.
42338         * modules/unistr/u8-to-u16: Update.
42339         * lib/unistr/u8-to-u32.c: Update.
42340         * modules/unistr/u8-to-u32: Update.
42341
42342 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42343
42344         Sync from Libtool.
42345         * lib/argz.c: Do not include strings.h nor memory.h, include
42346         string.h unconditionally.  Patch by Simon Josefsson.
42347
42348 2007-01-27  Bruno Haible  <bruno@clisp.org>
42349
42350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42351         from gl_HEADER_STRING_H_BODY.
42352         (gl_HEADER_STRING_H_BODY): Require it.
42353         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42354         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42355         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42356         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42357         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42358         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42360         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42361         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42363         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42364         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42365         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42366         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42367         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42368
42369 2007-01-27  Bruno Haible  <bruno@clisp.org>
42370
42371         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42372         check_PROGRAMS into noinst_PROGRAMS.
42373         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42374         check_PROGRAMS in this case.
42375         (func_import): Set for_test to false.
42376         (func_create_testdir): Set for_test to true.
42377
42378 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42379             Bruno Haible  <bruno@clisp.org>
42380
42381         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42382         (Depends-on): Add string.
42383         (Includes): Use <string.h> instead of strcasestr.h.
42384         * modules/string (Makefile.am): Also substitute the value of
42385         REPLACE_STRCASESTR.
42386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42387         assume strcasestr is declared in <string.h> not <strings.h>. Also
42388         set REPLACE_STRCASESTR.
42389         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42390         REPLACE_STRCASESTR.
42391         * lib/strcasestr.h: Remove file.
42392         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42393         * lib/string_.h (strcasestr): New declaration.
42394
42395 2007-01-27  Bruno Haible  <bruno@clisp.org>
42396
42397         * lib/string_.h: Use 'extern'.
42398
42399 2007-01-27  Jim Meyering  <jim@meyering.net>
42400
42401         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42402         of set-but-not-used local, "q".
42403
42404         * lib/mempcpy.c: Include <config.h> before <string.h>.
42405         This fixes a compilation error on HP-UX, due to the system's
42406         "restrict"-using mempcpy prototype.
42407
42408 2007-01-26  Bruno Haible  <bruno@clisp.org>
42409
42410         Small optimization.
42411         * lib/javacomp.c: Include c-strstr.h.
42412          (is_envjavac_gcj): Use c_strstr instead of strstr.
42413         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42414
42415 2007-01-26  Bruno Haible  <bruno@clisp.org>
42416
42417         * MODULES.html.sh (Unicode string functions): Add the new modules.
42418
42419         * modules/uniconv/u32-strconv-to-locale: New file.
42420         * lib/uniconv/u32-strconv-to-locale.c: New file.
42421
42422         * modules/uniconv/u16-strconv-to-locale: New file.
42423         * lib/uniconv/u16-strconv-to-locale.c: New file.
42424
42425         * modules/uniconv/u8-strconv-to-locale: New file.
42426         * lib/uniconv/u8-strconv-to-locale.c: New file.
42427
42428         * modules/uniconv/u32-strconv-from-locale: New file.
42429         * lib/uniconv/u32-strconv-from-locale.c: New file.
42430
42431         * modules/uniconv/u16-strconv-from-locale: New file.
42432         * lib/uniconv/u16-strconv-from-locale.c: New file.
42433
42434         * modules/uniconv/u8-strconv-from-locale: New file.
42435         * lib/uniconv/u8-strconv-from-locale.c: New file.
42436
42437         * modules/uniconv/u32-strconv-to-enc: New file.
42438         * lib/uniconv/u32-strconv-to-enc.c: New file.
42439         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42440         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42441
42442         * modules/uniconv/u16-strconv-to-enc: New file.
42443         * lib/uniconv/u16-strconv-to-enc.c: New file.
42444         * lib/uniconv/u-strconv-to-enc.h: New file.
42445         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42446         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42447
42448         * modules/uniconv/u8-strconv-to-enc: New file.
42449         * lib/uniconv/u8-strconv-to-enc.c: New file.
42450         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42451         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42452
42453         * modules/uniconv/u32-strconv-from-enc: New file.
42454         * lib/uniconv/u32-strconv-from-enc.c: New file.
42455         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42456         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42457
42458         * modules/uniconv/u16-strconv-from-enc: New file.
42459         * lib/uniconv/u16-strconv-from-enc.c: New file.
42460         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42461         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42462
42463         * modules/uniconv/u8-strconv-from-enc: New file.
42464         * lib/uniconv/u8-strconv-from-enc.c: New file.
42465         * lib/uniconv/u-strconv-from-enc.h: New file.
42466         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42467         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42468
42469         * modules/uniconv/u32-conv-from-enc: New file.
42470         * lib/uniconv/u32-conv-from-enc.c: New file.
42471         * modules/uniconv/u32-conv-from-enc-tests: New file.
42472         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42473
42474         * modules/uniconv/u16-conv-from-enc: New file.
42475         * lib/uniconv/u16-conv-from-enc.c: New file.
42476         * lib/uniconv/u-conv-from-enc.h: New file.
42477         * modules/uniconv/u16-conv-from-enc-tests: New file.
42478         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42479
42480         * modules/uniconv/u8-conv-from-enc: New file.
42481         * lib/uniconv/u8-conv-from-enc.c: New file.
42482         * modules/uniconv/u8-conv-from-enc-tests: New file.
42483         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42484
42485         * modules/uniconv/base: New file.
42486         * lib/uniconv.h: New file.
42487
42488 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42489
42490         * doc/gnulib-tool.texi (Initial import): Update to match current
42491         behavior with strdup module.
42492         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42493         * lib/memmem.h: Remove; all uses removed.  This is now done
42494         by <string.h>.
42495         * lib/mempcpy.h: Likewise.
42496         * lib/memrchr.h: Likewise.
42497         * lib/stpcpy.h: Likewise.
42498         * lib/stpncpy.h: Likewise.
42499         * lib/strcase.h: Likewise.
42500         * lib/strchrnul.h: Likewise.
42501         * lib/strdup.h: Likewise.
42502         * lib/strndup.h: Likewise.
42503         * lib/strnlen.h: Likewise.
42504         * lib/strpbrk.h: Likewise.
42505         * lib/strsep.h: Likewise.
42506         * lib/strstr.h: Likewise.
42507         * lib/strtok_r.h: Likewise.
42508         * lib/string_.h: New file.
42509         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42510         Rely on <string.h> instead.
42511         * lib/canon-host.c: Likewise.
42512         * lib/chdir-long.c: Likewise.
42513         * lib/concatpath.c: Likewise.
42514         * lib/exclude.c: Likewise.
42515         * lib/fchdir.c: Likewise.
42516         * lib/getaddrinfo.c: Likewise.
42517         * lib/getcwd.c: Likewise.
42518         * lib/getsubopt.c: Likewise.
42519         * lib/glob.c: Likewise.
42520         * lib/hard-locale.c: Likewise.
42521         * lib/iconvme.c: Likewise.
42522         * lib/javacomp.c: Likewise.
42523         * lib/mempcpy.c: Likewise.
42524         * lib/memrchr.c: Likewise.
42525         * lib/regex_internal.h: Likewise.
42526         * lib/stpncpy.c: Likewise.
42527         * lib/strcasecmp.c: Likewise.
42528         * lib/strchrnul.c: Likewise.
42529         * lib/strdup.c: Likewise.
42530         * lib/striconv.c: Likewise.
42531         * lib/striconveh.c: Likewise.
42532         * lib/striconveha.c: Likewise.
42533         * lib/strncasecmp.c: Likewise.
42534         * lib/strndup.c: Likewise.
42535         * lib/strnlen.c: Likewise.
42536         * lib/strsep.c: Likewise.
42537         * lib/strstr.c: Likewise.
42538         * lib/strtok_r.c: Likewise.
42539         * lib/userspec.c: Likewise.
42540         * lib/w32spawn.h: Likewise.
42541         * lib/xstrndup.c: Likewise.
42542         * lib/mountlist.c (strstr): Remove decl.
42543         * m4/string_h.m4: New file.
42544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42545         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42546         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42547         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42548         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42549         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42550         Set REPLACE_STRCASECMP if necessary.
42551         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42552         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42553         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42554         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42555         HAVE_DECL_STRDUP if necessary.
42556         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42557         since gl_FUNC_STRNDUP does that now.
42558         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42559         Check for decl here...
42560         (gl_PREREQ_STRNLEN): ... not here.
42561         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42562         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42563         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42564         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42565         necessary.
42566         * modules/string: New file.
42567         * modules/memmem (Files): Remove special-purpose include file.
42568         (Depends-on): Add string.
42569         (Include): Include <string.h>, not the removed file.
42570         * modules/mempcpy: Likewise.
42571         * modules/memrchr: Likewise.
42572         * modules/stpcpy: Likewise.
42573         * modules/stpncpy: Likewise.
42574         * modules/strcase: Likewise.
42575         * modules/strchrnul: Likewise.
42576         * modules/strdup: Likewise.
42577         * modules/strndup: Likewise.
42578         * modules/strnlen: Likewise.
42579         * modules/strpbrk: Likewise.
42580         * modules/strsep: Likewise.
42581         * modules/strstr: Likewise.
42582         * modules/strtok_r: Likewise.
42583         * tests/test-dirname.c: Don't include "strdup.h", since
42584         <string.h> now suffices.
42585         * tests/test-memmem.c: Don't include "memmem.h", since
42586         <string.h> now suffices.
42587
42588 2007-01-25  Bruno Haible  <bruno@clisp.org>
42589
42590         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42591         *resultp is 0.
42592
42593         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42594         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42595         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42596         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42597
42598         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42599         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42600         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42601         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42602         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42603         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42604
42605 2007-01-24  Bruno Haible  <bruno@clisp.org>
42606
42607         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42608         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42609         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42610         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42611         gl_FUNC_FTS_CORE.
42612         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42613         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42614         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42615         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
42616         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
42617         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
42618         gl_FUNC_FCHOWNAT.
42619         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
42620         gl_FUNC_STRFTIME.
42621         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
42622         Reported by Ralf Wildenhues.
42623
42624 2007-01-24  Bruno Haible  <bruno@clisp.org>
42625
42626         Drop AC_REQUIRE calls that are redundant with the module dependencies.
42627         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
42628         gl_GETADDRINFO.
42629         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
42630         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
42631         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
42632
42633 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
42634
42635         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
42636         Don't use 'exit'; just return from 'main'.
42637         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
42638
42639         * lib/fnmatch_.h: Readjust white space and comments to match
42640         glibc, to avoid spurious diffs.
42641
42642 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42643
42644         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42645         2004-12-01 change by Jakub Jelinek, since this code won't compile
42646         if !LIBC.  Problem reported by Bob Proulx.
42647
42648 2007-01-23  Bruno Haible  <bruno@clisp.org>
42649
42650         * lib/striconveh.c: Include c-strcaseeq.h.
42651         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42652         * modules/striconveh (Depends-on): Add c-strcaseeq.
42653
42654 2007-01-23  Bruno Haible  <bruno@clisp.org>
42655
42656         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42657
42658         * modules/c-strcaseeq: New file.
42659         * lib/c-strcaseeq.h: New file.
42660
42661         * modules/streq: New file.
42662         * lib/streq.h: New file.
42663
42664 2007-01-23  Bruno Haible  <bruno@clisp.org>
42665
42666         * modules/striconveha-tests: New file.
42667         * tests/test-striconveha.c: New file.
42668
42669         * lib/striconveha.h: Include <stdbool.h>.
42670         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42671         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42672         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42673         (mem_iconveha): New function.
42674         (str_iconveha_notranslit): Renamed from str_iconveha.
42675         (str_iconveha): New function.
42676         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42677         c-strcase.
42678
42679 2007-01-23  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42682         encodings without forgiving before trying any encoding with handler.
42683         (str_iconveha): Try all encodings without forgiving before trying any
42684         encoding with handler.
42685
42686 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42687
42688         Import the following changes from libc.
42689
42690         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42691
42692         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42693
42694         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42695
42696         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42697         normal_bracket label.
42698
42699         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42700
42701         [BZ #361]
42702         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42703         to normal_bracket after fetching the next character.
42704
42705 2007-01-22  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42708         argument.
42709         * lib/striconveh.c (iconv_carefully_1): New function.
42710         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
42711         argument.
42712         (str_cd_iconveh): Update.
42713         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
42714         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
42715         * tests/test-striconveh.c (MAGIC): New macro.
42716         (new_offsets): New function.
42717         (main): Test call with and without offsets.
42718
42719 2007-01-22  Bruno Haible  <bruno@clisp.org>
42720
42721         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
42722         * modules/sys_select (Makefile.am): Likewise.
42723         * modules/sys_socket (Makefile.am): Likewise.
42724         * modules/sys_time (Makefile.am): Likewise.
42725
42726 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42727
42728         * modules/gettimeofday (License): Change from GPL to LGPL, since
42729         gettimeofday is a library function.
42730
42731 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42732
42733         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
42734
42735 2007-01-21  Bruno Haible  <bruno@clisp.org>
42736
42737         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
42738
42739 2007-01-21  Bruno Haible  <bruno@clisp.org>
42740
42741         * modules/striconveha: New file.
42742         * lib/striconveha.h: New file.
42743         * lib/striconveha.c: New file.
42744         * MODULES.html.sh (Internationalization functions): Add striconveha.
42745         * lib/striconv.c (str_iconv): Optimize the case of an empty input
42746         string.
42747         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
42748
42749 2007-01-21  Bruno Haible  <bruno@clisp.org>
42750
42751         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
42752         * lib/striconveh.c (str_iconveh): Likewise.
42753
42754 2007-01-21  Bruno Haible  <bruno@clisp.org>
42755
42756         * lib/striconveh.h (mem_iconveh): New declaration.
42757         * lib/striconveh.c (mem_iconveh): New function.
42758         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
42759
42760 2007-01-21  Bruno Haible  <bruno@clisp.org>
42761
42762         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
42763
42764         * lib/striconveh.h (mem_cd_iconveh): Change specification.
42765         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
42766         original result buffer.
42767         (str_cd_iconveh): Update.
42768         * tests/test-striconveh.c (main): Update.
42769
42770         * lib/striconv.h (mem_cd_iconv): Change specification.
42771         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
42772         result buffer.
42773         (str_cd_iconv): Update.
42774         * tests/test-striconv.c (main): Update.
42775
42776 2007-01-21  Bruno Haible  <bruno@clisp.org>
42777
42778         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
42779
42780 2007-01-20  Jim Meyering  <jim@meyering.net>
42781
42782         * lib/userspec.c (parse_with_separator): If a user or group string
42783         starts with "+", skip the corresponding name-to-ID look-up, since
42784         such a look-up must fail: user and group names may not include "+".
42785
42786 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42787
42788         * lib/poll.c: Include sys/time.h and time.h unconditionally,
42789         since we now assume the sys_time module.
42790         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
42791         check for sys/time.h; no longer needed.
42792         * modules/poll (Depends-on): Depend on sys_time.
42793
42794 2007-01-18  Bruno Haible  <bruno@clisp.org>
42795
42796         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
42797         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42798
42799         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
42800         gettimeofday.
42801
42802         * tests/test-gettimeofday.c: Include <time.h>.
42803         (dummy): Remove variable.
42804
42805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
42806         gl_HEADER_SYS_TIME_H.
42807         (gl_HEADER_SYS_TIME_H): New macro.
42808
42809         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
42810         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42811         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42812         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
42813         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42814         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
42815         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
42816         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42817         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
42818         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
42819         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42820
42821         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
42822         last change; it caused a compilation error when cross-compiling to
42823         Cygwin.
42824
42825 2007-01-18  Jim Meyering  <jim@meyering.net>
42826
42827         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
42828         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
42829         than the race-prone "test -d sys || mkdir sys".
42830         (configure.ac): Use AC_PROG_MKDIR_P.
42831         * modules/sys_select: Likewise.
42832         * modules/sys_socket: Likewise.
42833         * modules/sys_time: Likewise.
42834
42835 2007-01-18  Eric Blake  <ebb9@byu.net>
42836
42837         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
42838         replace gettimeofday.
42839         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
42840         name, to avoid infinite recursion.
42841
42842 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
42843
42844         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
42845         module sys_time.
42846         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
42847         assume timespec.h defines struct timeval.
42848         * lib/settime.c: Likewise.
42849         * lib/utimens.c: Likewise.
42850         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
42851         since we now assume the gettimeofday module.
42852         * lib/tempname.c (__gen_tempname): Likewise.
42853         * lib/gettimeofday.h: Remove.
42854         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
42855         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
42856         Include <time.h>, for 'time()'.
42857         (localtime_buffer_addr): Also use this workaround if
42858         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
42859         to simplify the uses.  All uses changed.
42860         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
42861         that #undef is inside {}, and 'const' follows type name consistently.
42862         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
42863         (gettimeofday): Do not use the maximum possible value for
42864         tv->tv_usec, since that might break usages other than ls.c.
42865         Instead, we'll leave ls.c alone.  This undoes today's patch
42866         by Bruno.  Add a compile-time warning for 1s-clock resolution;
42867         we've never observed the problem but might as well keep the
42868         canary.
42869         * lib/nanosleep.c: Include timespec.h first, for interface check.
42870         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
42871         now assume the sys_time module.
42872         * lib/tempname.c: Likewise.
42873         * lib/timespec.h: Likewise.
42874         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
42875         needed.
42876         * lib/strftime.c: Likewise.
42877         * lib/timespec.h: Likewise.
42878         * lib/posixtm.c: Include posixtm.h first, for interface check.
42879         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
42880         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
42881         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
42882         * lib/sys_time_.h: New file.
42883         * lib/timespec.h (struct timespec): Use long int, not long.
42884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42885         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
42886         Remove obsolescent call to AC_HEADER_TIME.
42887         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42889         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42890         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
42891         Likewise.
42892         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
42893         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
42894         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
42895         into the sys_time module.  Check for gettimeofday just once.
42896         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
42897         for gettimeofday signature to just check the signature.  Merely
42898         compile it, since linking doesn't test signature.  Improve test for
42899         whether gettimeofday.o is actually needed.
42900         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
42901         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
42902         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
42903         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42904         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
42905         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
42906         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
42907         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
42908         than worrying about sys/time.h.
42909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42910         Don't bother worrying about TIME_WITH_SYS_TIME.
42911         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42912         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
42913         * m4/sys_time_h.m4: New file.
42914         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
42915         Don't include sys/time.h.  Return from main rather than exiting.
42916         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
42917         all uses changed.
42918         * modules/gethrxtime (Depends-on): Add sys_time.
42919         * modules/gettime (Depends-on): Likewise.
42920         * modules/gettimeofday (Depends-on): Likewise.
42921         * modules/nanosleep (Depends-on): Likewise.
42922         * modules/settime (Depends-on): Likewise.
42923         * modules/tempname (Depends-on): Likewise.
42924         * modules/utimens (Depends-on): Likewise.
42925         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
42926         (Include:) Change back to <sys/time.h>.
42927         (Maintainer:) Add self.
42928         * modules/sys_time: New file.
42929         * modules/tempname (Depends-on): Add gettimeofday.
42930         * tests/test-gettimeofday.c: Include <sys/time.h>
42931         rather than gettimeofday.h.
42932
42933 2007-01-17  Bruno Haible  <bruno@clisp.org>
42934
42935         * gnulib-tool (func_get_license): Revert last patch. Instead, let
42936         the license default to GPL.
42937         (func_create_testdir): Don't complain if a module is LGPL and its
42938         tests module depends on GPLed modules.
42939
42940 2007-01-17  Bruno Haible  <bruno@clisp.org>
42941
42942         * lib/gettimeofday.c (gettimeofday): Add code for the case
42943         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
42944         maximum possible value for tv->tv_usec, rather than the minimum one.
42945
42946 2005-10-08  Martin Lambers  <marlam@marlam.de>
42947 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42948 2007-01-16  Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
42951         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
42952         gl_FUNC_GETTIMEOFDAY.
42953         (Include): Add gettimeofday.h.
42954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
42955         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
42956         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
42957         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
42958         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
42959         * lib/gettimeofday.h: New file.
42960         * lib/gettimeofday.c: Include <sys/timeb.h>.
42961         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
42962         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42963         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
42964         fall back on time().
42965
42966         * tests/test-gettimeofday.c: New file.
42967         * modules/gettimeofday-tests: New file.
42968
42969 2007-01-16  Eric Blake  <ebb9@byu.net>
42970
42971         * modules/fnmatch (Depends-on): Depend on wchar.
42972         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
42973         * m4/fnmatch.m4: Likewise.
42974         * modules/mbchar (Makefile.am): Assume <wchar.h>.
42975         * m4/mbchar.m4: Likewise.
42976         * modules/mbswidth (Depends-on): Depend on wchar.
42977         * lib/mbswidth.c: Assume <wchar.h>.
42978         * m4/mbswidth.m4: Likewise.
42979         * modules/quotearg (Depends-on): Depend on wchar.
42980         * lib/quotearg.c: Assume <wchar.h>.
42981         * m4/quotearg.m4: Likewise.
42982         * modules/regex (Depends-on): Depend on wchar.
42983         * lib/regex_internal.h: Assume <wchar.h>.
42984         * m4/regex.m4: Likewise.
42985         * modules/stdint (Depends-on): Depend on wchar.
42986         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
42987         * m4/stdint.m4: Likewise.
42988         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
42989         * modules/strftime (Depends-on): Depend on wchar.
42990         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
42991         * modules/strtol (Depends-on): Depend on wchar.
42992         * lib/strtol.c: Assume <wchar.h>.
42993         * modules/wcwidth (Depends-on): Depend on wchar.
42994         * lib/wcwidth.h: Assume <wchar.h>.
42995         * m4/wcwidth.m4: Likewise.
42996
42997 2007-01-16  Bruno Haible  <bruno@clisp.org>
42998
42999         * modules/csharpexec-script: New, created from...
43000         * modules/csharpexec: ... this.
43001
43002 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43003
43004         * modules/javaexec-script: New, created from...
43005         * modules/javaexec: ... this.
43006
43007 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43008
43009         * modules/poll (Dependencies): Add sys_select.
43010
43011 2007-01-15  Jim Meyering  <jim@meyering.net>
43012
43013         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43014         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43015         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43016         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43017
43018 2007-01-15  Bruno Haible  <bruno@clisp.org>
43019
43020         * modules/striconveh: New file.
43021         * lib/striconveh.h: New file.
43022         * lib/striconveh.c: New file.
43023         * MODULES.html.sh (Internationalization functions): Add striconveh.
43024
43025         * modules/striconveh-tests: New file.
43026         * tests/test-striconveh.c: New file.
43027
43028 2007-01-15  Bruno Haible  <bruno@clisp.org>
43029
43030         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43031         not from GNU libiconv or GNU libc.
43032
43033 2007-01-15  Bruno Haible  <bruno@clisp.org>
43034
43035         * doc/gnulib-intro.texi (Copyright): Explain the different license
43036         terms for module descriptions, autoconf macros, tests, documentation.
43037
43038 2007-01-14  Bruno Haible  <bruno@clisp.org>
43039
43040         * modules/striconv-tests: New file.
43041         * tests/test-striconv.c: New file.
43042
43043 2007-01-14  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/iconv-tests: New file.
43046         * tests/test-iconv.c: New file.
43047
43048 2007-01-14  Bruno Haible  <bruno@clisp.org>
43049
43050         * gnulib-tool (func_get_license): For test modules, use the license of
43051         the main module.
43052
43053 2007-01-14  Bruno Haible  <bruno@clisp.org>
43054
43055         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43056         if iconv is found to exist.
43057
43058 2007-01-14  Bruno Haible  <bruno@clisp.org>
43059
43060         * modules/c-ctype-tests: New file.
43061         * tests/test-c-ctype.c: New file.
43062
43063 2007-01-14  Bruno Haible  <bruno@clisp.org>
43064
43065         * modules/binary-io-tests: New file.
43066         * tests/test-binary-io.sh: New file.
43067         * tests/test-binary-io.c: New file.
43068
43069 2007-01-14  Bruno Haible  <bruno@clisp.org>
43070
43071         * modules/array-oset-tests: New file.
43072         * tests/test-array_oset.c: New file.
43073
43074 2007-01-14  Bruno Haible  <bruno@clisp.org>
43075
43076         * modules/array-list-tests: New file.
43077         * tests/test-array_list.c: New file.
43078
43079 2007-01-14  Bruno Haible  <bruno@clisp.org>
43080
43081         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43082         and make.
43083         Reported by Simon Josefsson in
43084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43085
43086 2007-01-14  Bruno Haible  <bruno@clisp.org>
43087
43088         * modules/allocsa-tests: New file.
43089         * tests/test-allocsa.c: New file.
43090
43091 2007-01-14  Bruno Haible  <bruno@clisp.org>
43092
43093         * modules/fchdir (Depends-on): Add absolute-header.
43094         * modules/unistd (Depends-on): Likewise.
43095
43096 2006-12-30  Bruno Haible  <bruno@clisp.org>
43097
43098         * modules/fchdir: New file.
43099         * modules/unistd (Files): Add lib/unistd_.h.
43100         (Makefile.am): Generate unistd.h from unistd_.h.
43101         * lib/fchdir.c: New file.
43102         * lib/dirent_.h: New file.
43103         * lib/unistd_.h: New file.
43104         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43105         * m4/fchdir.m4: New file.
43106         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43107         (gl_HEADER_UNISTD): Invoke it.
43108         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43109         function.
43110         * lib/backupfile.c (opendir, closedir): Undefine.
43111         * lib/chown.c (open, close): Undefine.
43112         * lib/clean-temp.c (open, close): Undefine.
43113         * lib/copy-file.c (open, close): Undefine.
43114         * lib/execute.c (open, close): Undefine.
43115         * lib/fsusage.c (open, close): Undefine.
43116         * lib/gc-gnulib.c (open, close): Undefine.
43117         * lib/getcwd.c (opendir, closedir): Undefine.
43118         * lib/glob.c (opendir, closedir): Undefine.
43119         * lib/javacomp.c (open, close): Undefine.
43120         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43121         * lib/openat-proc.c (open, close): Undefine.
43122         * lib/pagealign_alloc.c (open, close): Undefine.
43123         * lib/pipe.c (open, close): Undefine.
43124         * lib/progreloc.c (open, close): Undefine.
43125         * lib/savedir.c (opendir, closedir): Undefine.
43126         * lib/utime.c (open, close): Undefine.
43127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43128
43129 2007-01-10  Bruno Haible  <bruno@clisp.org>
43130
43131         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43132
43133 2007-01-12  Eric Blake  <ebb9@byu.net>
43134
43135         Provide a robust <wchar.h>.  Further simplifications are now
43136         possible in other modules, but not included here.
43137         * modules/wchar: New module.
43138         * m4/wchar.m4: New file.
43139         * lib/wchar_.h: Likewise.
43140         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43141         of the new module.
43142         * MODULES.html.sh (Extended multibyte and wide character utilities):
43143         New section.
43144
43145 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43146
43147         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43148         to a reasonable default for memory allocation.
43149         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43150         file system that reports garbage st_size values for symlinks.
43151         Problem reported by Liyang Hu.
43152
43153 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43154
43155         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43156         Emacs .#* auto-save files).
43157
43158 2007-01-11  Bruno Haible  <bruno@clisp.org>
43159
43160         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43161         directory.
43162
43163 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43164
43165         Use @...@ consistently in lib/wctype_.h.
43166         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43167         on it being set to 1 or 0.
43168         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43169         go back to AC_SUBSTing it.
43170         * modules/wctype (Makefile.am): Undo previous change.
43171
43172 2007-01-10  Eric Blake  <ebb9@byu.net>
43173
43174         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43175         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43176         * modules/wctype (Makefile.am): Likewise.
43177         Reported by Chris McGuire.
43178
43179 2007-01-10  Jim Meyering  <jim@meyering.net>
43180
43181         fts.c: a small readability/maintainability improvement
43182         * lib/fts.c (fts_read): Make this code slightly more readable and
43183         maintainable by hoisting the "sp->fts_cur = p" assignments to
43184         immediately follow the statements that set P.  Derived from
43185         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43186
43187 2007-01-10  Eric Blake  <ebb9@byu.net>
43188
43189         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43190         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43192         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43193         Reported by Chris McGuire.
43194
43195 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43196
43197         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43198         in sed script.
43199
43200 2007-01-09  Bruno Haible  <bruno@clisp.org>
43201
43202         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43203         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43204         variables.
43205         (func_module): Use them.
43206
43207 2007-01-09  Bruno Haible  <bruno@clisp.org>
43208
43209         * modules/unistr/base: New file.
43210         * lib/unistr.h: New file.
43211
43212         * modules/unistr/u8-to-u16: New file.
43213         * lib/unistr/u8-to-u16.c: New file.
43214
43215         * modules/unistr/u8-to-u32: New file.
43216         * lib/unistr/u8-to-u32.c: New file.
43217
43218         * modules/unistr/u16-to-u8: New file.
43219         * lib/unistr/u16-to-u8.c: New file.
43220
43221         * modules/unistr/u16-to-u32: New file.
43222         * lib/unistr/u16-to-u32.c: New file.
43223
43224         * modules/unistr/u32-to-u8: New file.
43225         * lib/unistr/u32-to-u8.c: New file.
43226
43227         * modules/unistr/u32-to-u16: New file.
43228         * lib/unistr/u32-to-u16.c: New file.
43229
43230         * modules/unistr/u8-check: New file.
43231         * modules/unistr/u16-check: New file.
43232         * modules/unistr/u32-check: New file.
43233         * lib/unistr/u8-check.c: New file.
43234         * lib/unistr/u16-check.c: New file.
43235         * lib/unistr/u32-check.c: New file.
43236
43237         * modules/unistr/u8-chr: New file.
43238         * modules/unistr/u16-chr: New file.
43239         * modules/unistr/u32-chr: New file.
43240         * lib/unistr/u8-chr.c: New file.
43241         * lib/unistr/u16-chr.c: New file.
43242         * lib/unistr/u32-chr.c: New file.
43243
43244         * modules/unistr/u8-cmp: New file.
43245         * modules/unistr/u16-cmp: New file.
43246         * modules/unistr/u32-cmp: New file.
43247         * lib/unistr/u8-cmp.c: New file.
43248         * lib/unistr/u16-cmp.c: New file.
43249         * lib/unistr/u32-cmp.c: New file.
43250
43251         * modules/unistr/u8-cpy: New file.
43252         * modules/unistr/u16-cpy: New file.
43253         * modules/unistr/u32-cpy: New file.
43254         * lib/unistr/u8-cpy.c: New file.
43255         * lib/unistr/u16-cpy.c: New file.
43256         * lib/unistr/u32-cpy.c: New file.
43257         * lib/unistr/u-cpy.h: New file.
43258
43259         * modules/unistr/u8-cpy-alloc: New file.
43260         * modules/unistr/u16-cpy-alloc: New file.
43261         * modules/unistr/u32-cpy-alloc: New file.
43262         * lib/unistr/u8-cpy-alloc.c: New file.
43263         * lib/unistr/u16-cpy-alloc.c: New file.
43264         * lib/unistr/u32-cpy-alloc.c: New file.
43265         * lib/unistr/u-cpy-alloc.h: New file.
43266
43267         * modules/unistr/u8-endswith: New file.
43268         * modules/unistr/u16-endswith: New file.
43269         * modules/unistr/u32-endswith: New file.
43270         * lib/unistr/u8-endswith.c: New file.
43271         * lib/unistr/u16-endswith.c: New file.
43272         * lib/unistr/u32-endswith.c: New file.
43273         * lib/unistr/u-endswith.h: New file.
43274
43275         * modules/unistr/u8-mblen: New file.
43276         * modules/unistr/u16-mblen: New file.
43277         * modules/unistr/u32-mblen: New file.
43278         * lib/unistr/u8-mblen.c: New file.
43279         * lib/unistr/u16-mblen.c: New file.
43280         * lib/unistr/u32-mblen.c: New file.
43281
43282         * modules/unistr/u8-mbtouc: New file.
43283         * modules/unistr/u16-mbtouc: New file.
43284         * modules/unistr/u32-mbtouc: New file.
43285         * lib/unistr/u8-mbtouc.c: New file.
43286         * lib/unistr/u16-mbtouc.c: New file.
43287         * lib/unistr/u32-mbtouc.c: New file.
43288
43289         * modules/unistr/u8-mbtouc-safe: New file.
43290         * modules/unistr/u16-mbtouc-safe: New file.
43291         * modules/unistr/u32-mbtouc-safe: New file.
43292         * lib/unistr/u8-mbtouc-safe.c: New file.
43293         * lib/unistr/u16-mbtouc-safe.c: New file.
43294         * lib/unistr/u32-mbtouc-safe.c: New file.
43295
43296         * modules/unistr/u8-move: New file.
43297         * modules/unistr/u16-move: New file.
43298         * modules/unistr/u32-move: New file.
43299         * lib/unistr/u8-move.c: New file.
43300         * lib/unistr/u16-move.c: New file.
43301         * lib/unistr/u32-move.c: New file.
43302         * lib/unistr/u-move.h: New file.
43303
43304         * modules/unistr/u8-next: New file.
43305         * modules/unistr/u16-next: New file.
43306         * modules/unistr/u32-next: New file.
43307         * lib/unistr/u8-next.c: New file.
43308         * lib/unistr/u16-next.c: New file.
43309         * lib/unistr/u32-next.c: New file.
43310
43311         * modules/unistr/u8-prev: New file.
43312         * modules/unistr/u16-prev: New file.
43313         * modules/unistr/u32-prev: New file.
43314         * lib/unistr/u8-prev.c: New file.
43315         * lib/unistr/u16-prev.c: New file.
43316         * lib/unistr/u32-prev.c: New file.
43317
43318         * modules/unistr/u8-set: New file.
43319         * modules/unistr/u16-set: New file.
43320         * modules/unistr/u32-set: New file.
43321         * lib/unistr/u8-set.c: New file.
43322         * lib/unistr/u16-set.c: New file.
43323         * lib/unistr/u32-set.c: New file.
43324         * lib/unistr/u-set.h: New file.
43325
43326         * modules/unistr/u8-startswith: New file.
43327         * modules/unistr/u16-startswith: New file.
43328         * modules/unistr/u32-startswith: New file.
43329         * lib/unistr/u8-startswith.c: New file.
43330         * lib/unistr/u16-startswith.c: New file.
43331         * lib/unistr/u32-startswith.c: New file.
43332         * lib/unistr/u-startswith.h: New file.
43333
43334         * modules/unistr/u8-stpcpy: New file.
43335         * modules/unistr/u16-stpcpy: New file.
43336         * modules/unistr/u32-stpcpy: New file.
43337         * lib/unistr/u8-stpcpy.c: New file.
43338         * lib/unistr/u16-stpcpy.c: New file.
43339         * lib/unistr/u32-stpcpy.c: New file.
43340         * lib/unistr/u-stpcpy.h: New file.
43341
43342         * modules/unistr/u8-stpncpy: New file.
43343         * modules/unistr/u16-stpncpy: New file.
43344         * modules/unistr/u32-stpncpy: New file.
43345         * lib/unistr/u8-stpncpy.c: New file.
43346         * lib/unistr/u16-stpncpy.c: New file.
43347         * lib/unistr/u32-stpncpy.c: New file.
43348         * lib/unistr/u-stpncpy.h: New file.
43349
43350         * modules/unistr/u8-strcat: New file.
43351         * modules/unistr/u16-strcat: New file.
43352         * modules/unistr/u32-strcat: New file.
43353         * lib/unistr/u8-strcat.c: New file.
43354         * lib/unistr/u16-strcat.c: New file.
43355         * lib/unistr/u32-strcat.c: New file.
43356         * lib/unistr/u-strcat.h: New file.
43357
43358         * modules/unistr/u8-strchr: New file.
43359         * modules/unistr/u16-strchr: New file.
43360         * modules/unistr/u32-strchr: New file.
43361         * lib/unistr/u8-strchr.c: New file.
43362         * lib/unistr/u16-strchr.c: New file.
43363         * lib/unistr/u32-strchr.c: New file.
43364
43365         * modules/unistr/u8-strcmp: New file.
43366         * modules/unistr/u16-strcmp: New file.
43367         * modules/unistr/u32-strcmp: New file.
43368         * lib/unistr/u8-strcmp.c: New file.
43369         * lib/unistr/u16-strcmp.c: New file.
43370         * lib/unistr/u32-strcmp.c: New file.
43371
43372         * modules/unistr/u8-strcpy: New file.
43373         * modules/unistr/u16-strcpy: New file.
43374         * modules/unistr/u32-strcpy: New file.
43375         * lib/unistr/u8-strcpy.c: New file.
43376         * lib/unistr/u16-strcpy.c: New file.
43377         * lib/unistr/u32-strcpy.c: New file.
43378         * lib/unistr/u-strcpy.h: New file.
43379
43380         * modules/unistr/u8-strcspn: New file.
43381         * modules/unistr/u16-strcspn: New file.
43382         * modules/unistr/u32-strcspn: New file.
43383         * lib/unistr/u8-strcspn.c: New file.
43384         * lib/unistr/u16-strcspn.c: New file.
43385         * lib/unistr/u32-strcspn.c: New file.
43386         * lib/unistr/u-strcspn.h: New file.
43387
43388         * modules/unistr/u8-strdup: New file.
43389         * modules/unistr/u16-strdup: New file.
43390         * modules/unistr/u32-strdup: New file.
43391         * lib/unistr/u8-strdup.c: New file.
43392         * lib/unistr/u16-strdup.c: New file.
43393         * lib/unistr/u32-strdup.c: New file.
43394         * lib/unistr/u-strdup.h: New file.
43395
43396         * modules/unistr/u8-strlen: New file.
43397         * modules/unistr/u16-strlen: New file.
43398         * modules/unistr/u32-strlen: New file.
43399         * lib/unistr/u8-strlen.c: New file.
43400         * lib/unistr/u16-strlen.c: New file.
43401         * lib/unistr/u32-strlen.c: New file.
43402         * lib/unistr/u-strlen.h: New file.
43403
43404         * modules/unistr/u8-strmblen: New file.
43405         * modules/unistr/u16-strmblen: New file.
43406         * modules/unistr/u32-strmblen: New file.
43407         * lib/unistr/u8-strmblen.c: New file.
43408         * lib/unistr/u16-strmblen.c: New file.
43409         * lib/unistr/u32-strmblen.c: New file.
43410
43411         * modules/unistr/u8-strmbtouc: New file.
43412         * modules/unistr/u16-strmbtouc: New file.
43413         * modules/unistr/u32-strmbtouc: New file.
43414         * lib/unistr/u8-strmbtouc.c: New file.
43415         * lib/unistr/u16-strmbtouc.c: New file.
43416         * lib/unistr/u32-strmbtouc.c: New file.
43417
43418         * modules/unistr/u8-strncat: New file.
43419         * modules/unistr/u16-strncat: New file.
43420         * modules/unistr/u32-strncat: New file.
43421         * lib/unistr/u8-strncat.c: New file.
43422         * lib/unistr/u16-strncat.c: New file.
43423         * lib/unistr/u32-strncat.c: New file.
43424         * lib/unistr/u-strncat.h: New file.
43425
43426         * modules/unistr/u8-strncmp: New file.
43427         * modules/unistr/u16-strncmp: New file.
43428         * modules/unistr/u32-strncmp: New file.
43429         * lib/unistr/u8-strncmp.c: New file.
43430         * lib/unistr/u16-strncmp.c: New file.
43431         * lib/unistr/u32-strncmp.c: New file.
43432
43433         * modules/unistr/u8-strncpy: New file.
43434         * modules/unistr/u16-strncpy: New file.
43435         * modules/unistr/u32-strncpy: New file.
43436         * lib/unistr/u8-strncpy.c: New file.
43437         * lib/unistr/u16-strncpy.c: New file.
43438         * lib/unistr/u32-strncpy.c: New file.
43439         * lib/unistr/u-strncpy.h: New file.
43440
43441         * modules/unistr/u8-strnlen: New file.
43442         * modules/unistr/u16-strnlen: New file.
43443         * modules/unistr/u32-strnlen: New file.
43444         * lib/unistr/u8-strnlen.c: New file.
43445         * lib/unistr/u16-strnlen.c: New file.
43446         * lib/unistr/u32-strnlen.c: New file.
43447         * lib/unistr/u-strnlen.h: New file.
43448
43449         * modules/unistr/u8-strpbrk: New file.
43450         * modules/unistr/u16-strpbrk: New file.
43451         * modules/unistr/u32-strpbrk: New file.
43452         * lib/unistr/u8-strpbrk.c: New file.
43453         * lib/unistr/u16-strpbrk.c: New file.
43454         * lib/unistr/u32-strpbrk.c: New file.
43455         * lib/unistr/u-strpbrk.h: New file.
43456
43457         * modules/unistr/u8-strrchr: New file.
43458         * modules/unistr/u16-strrchr: New file.
43459         * modules/unistr/u32-strrchr: New file.
43460         * lib/unistr/u8-strrchr.c: New file.
43461         * lib/unistr/u16-strrchr.c: New file.
43462         * lib/unistr/u32-strrchr.c: New file.
43463
43464         * modules/unistr/u8-strspn: New file.
43465         * modules/unistr/u16-strspn: New file.
43466         * modules/unistr/u32-strspn: New file.
43467         * lib/unistr/u8-strspn.c: New file.
43468         * lib/unistr/u16-strspn.c: New file.
43469         * lib/unistr/u32-strspn.c: New file.
43470         * lib/unistr/u-strspn.h: New file.
43471
43472         * modules/unistr/u8-strstr: New file.
43473         * modules/unistr/u16-strstr: New file.
43474         * modules/unistr/u32-strstr: New file.
43475         * lib/unistr/u8-strstr.c: New file.
43476         * lib/unistr/u16-strstr.c: New file.
43477         * lib/unistr/u32-strstr.c: New file.
43478         * lib/unistr/u-strstr.h: New file.
43479
43480         * modules/unistr/u8-strtok: New file.
43481         * modules/unistr/u16-strtok: New file.
43482         * modules/unistr/u32-strtok: New file.
43483         * lib/unistr/u8-strtok.c: New file.
43484         * lib/unistr/u16-strtok.c: New file.
43485         * lib/unistr/u32-strtok.c: New file.
43486         * lib/unistr/u-strtok.h: New file.
43487
43488         * modules/unistr/u8-uctomb: New file.
43489         * modules/unistr/u16-uctomb: New file.
43490         * modules/unistr/u32-uctomb: New file.
43491         * lib/unistr/u8-uctomb.c: New file.
43492         * lib/unistr/u16-uctomb.c: New file.
43493         * lib/unistr/u32-uctomb.c: New file.
43494
43495         * MODULES.html.sh (Unicode string functions): Add the new modules.
43496
43497 2007-01-08  Bruno Haible  <bruno@clisp.org>
43498
43499         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43500         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43501         subdirectories.
43502
43503 2007-01-08  Karl Berry  <karl@gnu.org>
43504
43505         * doc/error.texi: mention that main() fns must set program_name
43506         when progname is used.
43507
43508 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43509
43510         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43511         WCTYPE_H is empty, for the benefit of builds from non-distclean
43512         directories.  Problem reported by Eric Blake in
43513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43514
43515 2007-01-08  Bruno Haible  <bruno@clisp.org>
43516
43517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43518         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43519         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43520         PROVIDE_CANONICALIZE_FILENAME_MODE.
43521         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43522
43523 2007-01-08  Bruno Haible  <bruno@clisp.org>
43524
43525         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43526         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43527         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43528         * lib/fts.c: Likewise.
43529         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43530
43531 2006-12-25  Bruno Haible  <bruno@clisp.org>
43532
43533         * modules/utf8-ucs4-safe: New file.
43534         * lib/utf8-ucs4-safe.h: New file.
43535         * lib/unistr/utf8-ucs4-safe.c: New file.
43536
43537         * modules/utf16-ucs4-safe: New file.
43538         * lib/utf16-ucs4-safe.h: New file.
43539         * lib/unistr/utf16-ucs4-safe.c: New file.
43540
43541         * MODULES.html.sh (Unicode string functions): Add the new modules.
43542
43543 2007-01-08  Bruno Haible  <bruno@clisp.org>
43544
43545         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43546         (Depends-on): Add unitypes.
43547         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43548         (u8_mbtouc_aux): Move out to separate file.
43549         (u8_mbtouc): Use ucs4_t, uint8_t types.
43550         * lib/unistr/utf8-ucs4.c: New file.
43551
43552         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43553         (Depends-on): Add unitypes.
43554         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43555         (u16_mbtouc_aux): Move out to separate file.
43556         (u16_mbtouc): Use ucs4_t, uint16_t types.
43557         * lib/unistr/utf16-ucs4.c: New file.
43558
43559         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43560         (Depends-on): Add unitypes.
43561         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43562         (u8_uctomb_aux): Move out to separate file.
43563         (u8_uctomb): Use ucs4_t, uint8_t types.
43564         * lib/unistr/ucs4-utf8.c: New file.
43565
43566         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43567         (Depends-on): Add unitypes.
43568         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43569         (u16_uctomb_aux): Move out to separate file.
43570         (u16_uctomb): Use ucs4_t, uint16_t types.
43571         * lib/unistr/ucs4-utf16.c: New file.
43572
43573 2006-12-25  Bruno Haible  <bruno@clisp.org>
43574
43575         * modules/unitypes: New file.
43576         * lib/unitypes.h: New file.
43577         * MODULES.html.sh (func_all_modules): New section "Unicode string
43578         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43579         this section. Add unitypes.
43580
43581 2007-01-08  Bruno Haible  <bruno@clisp.org>
43582
43583         Avoid variable names that conflict with those from libtool.
43584         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43585         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43586         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43587         library_names_spec to acl_library_names_spec, hardcode_* to
43588         acl_hardcode_*.
43589         Reported by Ralf Wildenhues.
43590
43591 2007-01-08  Bruno Haible  <bruno@clisp.org>
43592
43593         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43594         definition.
43595         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43596         definition.
43597         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43598         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43599         definition.
43600         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43601         definition.
43602         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43603         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43604         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43605         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43606         definition.
43607         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43608         definition.
43609         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43610         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43611         GC_USE_<algorithm>.
43612         * lib/gc-libgcrypt.c: Likewise.
43613         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43614         * modules/gc-arctwo (configure.ac): Likewise.
43615         * modules/gc-des (configure.ac): Likewise.
43616         * modules/gc-hmac-md5 (configure.ac): Likewise.
43617         * modules/gc-hmac-sha1 (configure.ac): Likewise.
43618         * modules/gc-md2 (configure.ac): Likewise.
43619         * modules/gc-md4 (configure.ac): Likewise.
43620         * modules/gc-md5 (configure.ac): Likewise.
43621         * modules/gc-random (configure.ac): Likewise.
43622         * modules/gc-rijndael (configure.ac): Likewise.
43623         * modules/gc-sha1 (configure.ac): Likewise.
43624
43625 2007-01-08  Bruno Haible  <bruno@clisp.org>
43626
43627         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
43628         macro definition.
43629         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
43630         definition.
43631         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
43632         definition.
43633         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
43634         * modules/fcntl-safer (configure.ac): Likewise.
43635         * modules/fopen-safer (configure.ac): Likewise.
43636         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
43637         GNULIB_FWRITEERROR macro definition.
43638
43639 2007-01-08  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/gnulib-common.m4: New file.
43642         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43643         (func_get_filelist): Add m4/gnulib-common.m4.
43644
43645 2007-01-08  Bruno Haible  <bruno@clisp.org>
43646
43647         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43648         command.
43649
43650 2007-01-08  Jim Meyering  <jim@meyering.net>
43651
43652         Use a more robust test for a "can't happen" condition.
43653         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43654         narrowed the st_size value.  Presuming the "can't happen" condition
43655         is true, that narrowing could conceivably convert an invalid st_size
43656         value into a valid one.  Instead, use a change based on Matthew
43657         Woehlke's original patch.
43658
43659         Slight readability improvement: use an assert-like macro
43660         in place of literal "abort ()" uses.
43661         * lib/fts.c (fts_assert): Define.
43662         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43663         Use this macro instead of a bare 'abort'.
43664
43665 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43666
43667         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43668         simply work around them.
43669         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43670         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43671         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43672         declaring.
43673         Don't bother to define as macros, since the standard doesn't require it.
43674         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43675         longer worry about IRIX 5.3.
43676         (HAVE_WCTYPE_CTMP_BUG): Remove.
43677
43678 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43679
43680         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43681         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43682         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43683         Problems reported by Georg Schwarz for IRIX 5.3.
43684
43685         * gnulib-tool (autoconf_minversion): Take the maximum version number
43686         found, not the minimum.  Problem reported by James Youngman.
43687
43688 2007-01-03  Karl Berry  <karl@gnu.org>
43689
43690         * doc/error.texi: new file, explaining interaction with progname.
43691         * doc/gnulib.texi: include it.  Update copyright.
43692
43693 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43694
43695         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43696         AC_CANONICAL_HOST, to improve autobuild outputs.
43697
43698 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43699             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43700
43701         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43702         sockets, server sockets, and other file descriptors.  Count errors
43703         to compute the return value.  Reorder the code a bit to be easier
43704         to follow.  Don't set event bits that were not requested (except
43705         POLLERR and POLLHUP).
43706
43707 2007-01-01  Bruno Haible  <bruno@clisp.org>
43708
43709         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
43710
43711 2007-01-03  Jim Meyering  <jim@meyering.net>
43712
43713         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
43714
43715 2007-01-02  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/settime (Include): Require timespec.h.
43718         * modules/nanosleep (Include): Likewise.
43719
43720 2007-01-01  Bruno Haible  <bruno@clisp.org>
43721
43722         * gnulib-tool (func_emit_copyright_notice): Bump year.
43723         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
43724
43725 2007-01-01  Bruno Haible  <bruno@clisp.org>
43726
43727         Improve support for OpenBSD.
43728         * build-aux/config.rpath (libname_spec): Export.
43729         (library_names_spec): New variable. Export.
43730         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
43731         library_names_spec from the config.rpath output. Locate shared library
43732         through the name pattern in library_names_spec.
43733
43734 2007-01-01  Eric Blake  <ebb9@byu.net>
43735
43736         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
43737
43738 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
43739
43740         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
43741         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
43742         assume the C locale, and avoid an "eval" that could cause trouble.
43743         Problem with SORT reported by Bob Proulx.
43744
43745         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
43746         Define.  Trivial patch from Henning Nielsen Lund, originally
43747         sent to bug-grep@gnu.org today.
43748
43749 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43750
43751         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
43752         struct stat.  Problem reported by Henning Nielsen Lund.
43753         * lib/acl.c: Include acl.h first, to check interface.  Don't
43754         bother to include sys/types.h and sys/stat.h again.
43755
43756 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43757
43758         Import the following change from libc; problem reported by
43759         Sven Verdoolaege.
43760
43761         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
43762
43763         [BZ #1373]
43764         * lib/argp.h: Remove __NTH for __argp_usage inline function.
43765
43766 2006-12-28  Jim Meyering  <jim@meyering.net>
43767
43768         * build-aux/announce-gen: Do not assume that the package
43769         builds any of tar.gz, tar.bz2, and .xdelta files.
43770         Suggestion from Simon Josefsson.
43771
43772 2006-12-28  Simon Josefsson  <simon@josefsson.org>
43773
43774         * modules/announce-gen: New file.
43775
43776 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43777
43778         * lib/mbchar.h: Just include <wctype.h>; the wctype module
43779         handles its gotchas now.
43780         * lib/mbswidth.c: Likewise.
43781         * lib/wcwidth.h: Likewise.
43782         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
43783         and iswcntrl; the wctype module does this stuff now.
43784         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43786         * modules/mbchar (Depends-on): Add wctype.
43787         * modules/mbswidth (Depends-on): Likewise.
43788         * modules/wcwidth (Depends-on): Likewise.
43789
43790 2006-12-27  Eric Blake  <ebb9@byu.net>
43791
43792         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
43793         module uses more than what <wctype.h> is required to provide.
43794
43795 2006-12-26  Eric Blake  <ebb9@byu.net>
43796
43797         * gnulib-tool (sed_extract_prog): Avoid space-tab.
43798
43799 2006-12-26  Eric Blake  <ebb9@byu.net>
43800
43801         * modules/absolute-header: New module.
43802         * modules/fcntl (Depends-on): Depend on it.
43803         * modules/inttypes (Depends-on): Likewise.
43804         * modules/stdint (Depends-on): Likewise.
43805         * modules/sys_stat (Depends-on): Likewise.
43806         * modules/wctype (Depends-on): Likewise.
43807         * MODULES.html.sh (Support for building libraries and
43808         executables): Document it.
43809
43810 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43811
43812         * gnulib-tool (SED): Remove, undoing previous change.
43813         The problem was that it broke coreutils on Solaris, because
43814         "sed --posix" leaked into a makefile.
43815         (sed): New alias, if 'alias' and GNU sed.
43816
43817 2006-12-24  Jim Meyering  <jim@meyering.net>
43818
43819         Work around an fchownat bug in glibc-2.4:
43820         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
43821         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
43822         in spite of the -P option.
43823         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
43824         New macros.
43825         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
43826         * modules/openat (Files): Add lib/fchownat.c.
43827         * lib/openat.c (fchownat): Don't define here.  Move to...
43828         * lib/fchownat.c: ...this new file.
43829
43830 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43831
43832         Fix bug reported by Bruno Haible in
43833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
43834         where quotearg.c didn't compile on Mac OS X 10.2 because it
43835         lacks <wchar.h> and wint_t.
43836         * lib/wctype_.h (__wctype_wint_t): New type.
43837         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
43838         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
43839         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
43840         Arg is now of type __wctype_wint_t, not wint_t.
43841         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
43842         substitute HAVE_WINT_T.
43843         * modules/wctype (Files): Add m4/wint_t.m4.
43844         (wctype.h): Substitute HAVE_WINT_T.
43845
43846 2006-12-23  Bruno Haible  <bruno@clisp.org>
43847
43848         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
43849
43850 2006-12-23  Bruno Haible  <bruno@clisp.org>
43851
43852         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
43853         S_ISLNK.
43854         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
43855         mingw.
43856
43857 2006-12-22  Bruno Haible  <bruno@clisp.org>
43858
43859         * lib/copy-file.c: Include acl.h.
43860         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
43861         Close the file descriptors only after being done with copy_acl.
43862         * modules/copy-file (Depends-on): Add acl.
43863
43864 2006-12-22  Bruno Haible  <bruno@clisp.org>
43865
43866         * gnulib-tool (SED): New variable.
43867         Use $SED instead of sed everywhere.
43868
43869 2006-12-22  Bruno Haible  <bruno@clisp.org>
43870
43871         * modules/no-c++: New file.
43872         * m4/no-c++.m4: New file.
43873         * MODULES.html.sh (Support for building libraries and executables):
43874         Add no-c++.
43875
43876 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43877
43878         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43879         Include <limits.h>, and use its INT_MAX to rewrite the
43880         j loop so that it does not overflow 'int'.  Problem reported by
43881         Ralf Wildenhues in
43882         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
43883         Play it safe by shifting left by 1 rather than multiplying by 2,
43884         as GCC is less likely to optimize this away when the value
43885         is signed (when it assumes overflow leads to undefined behavior).
43886         Also, don't assume time_t uses two's complement.
43887
43888 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43889
43890         * MODULES.html.sh: New module wctype.
43891         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
43892         * lib/fnmatch.c: Don't bother to include <wchar.h> before
43893         <wctype.h>, since the new wctype module should fix this.
43894         * lib/quotearg.c: Include <wctype.h> unconditionally, since
43895         the wctype module should arrange for it.
43896         * lib/regex_internal.h: Likewise.
43897         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
43898         since the wctype module should handle this now.
43899         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
43900         * modules/fnmatch (Depends-on): Add wctype.
43901         * modules/quotearg (Depends-on): Likewise.
43902         * modules/regex (Depends-on): Likewise.
43903
43904 2006-12-19  Bruno Haible  <bruno@clisp.org>
43905
43906         * lib/strdup.h [C++]: Wrap definitions in extern "C".
43907         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
43908
43909 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43910
43911         * modules/savewd (Depends-on): Fix dependency on fcntl.
43912
43913 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43914
43915         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
43916         conforms to C99, rather than relying on the user's environment
43917         setting of STDINT_H.
43918
43919 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43920         and Eric Blake  <ebb9@byu.net>
43921
43922         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
43923         This is more consistent with the other defines here.
43924         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
43925         Port to z/OS.  Problem reported by Paul Gilmartin.
43926         Change local vars to use gl_ prefix rather than ac_.
43927         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
43928         with other defines.
43929         * modules/double-slash-root: New module.
43930         * modules/dirname (Files): Remove m4/double-slash-root.m4.
43931         (Depends-on): Add double-slash-root.
43932         * MODULES.html.sh (File system functions): Mention new module.
43933
43934 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
43935
43936         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
43937         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
43938         This is for the benefit of gzip, which doesn't do i18n.
43939
43940 2006-12-12  Jim Meyering  <jim@meyering.net>
43941
43942         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
43943         Reported by Andreas Schwab <schwab@suse.de>.
43944
43945 2006-12-12  Bruno Haible  <bruno@clisp.org>
43946
43947         Merge these changes.
43948         2006-09-05  Bruno Haible  <bruno@clisp.org>
43949         * lib/iconvme.c (iconv_string): No need to save and restore errno when
43950         iconv_alloc succeeded.
43951         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
43952         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
43953         test for " && dest " at the end - dest is always != NULL there. Call
43954         iconv with 4xNULL arguments initially, to reset the state. Call iconv
43955         with 2xNULL arguments, also to flush the state storage. Handle the
43956         IRIX iconv behaviour. Realloc the final result, to throw away unused
43957         memory.
43958
43959 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
43960
43961         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
43962         and fchmodat unconditionally, since glibc 2.4 has them.
43963         Problem reported by Arkadiusz Miskiewicz.
43964
43965 2006-12-10  Bruno Haible  <bruno@clisp.org>
43966
43967         * gnulib-tool (func_import): Show the include files only for those
43968         modules that are copied and specified.
43969         Reported by Karl Berry.
43970
43971 2006-12-08  Jim Meyering  <jim@meyering.net>
43972
43973         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
43974         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
43975
43976         * build-aux/announce-gen: Add two new options, both optional:
43977         --bootstrap-tools=TOOL_LIST
43978               a comma-separated list of tools, e.g.,
43979               autoconf,automake,bison,gnulib
43980         --gnulib-snapshot-date=DATE
43981               if gnulib is in the bootstrap tool list,
43982               then report this as the snapshot date.
43983               If not specified, use the current date/time.
43984               If you specify a date here, be sure it's UTC.
43985
43986 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43987
43988         * tests/test-argp-2.sh: Fix test to match actual output.
43989         (func_compare): Fix sed script to be portable.
43990
43991 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
43992
43993         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
43994         workaround for this case.  It is not autoconfigured now; offhand
43995         it's hard to see how to autoconfigure it.
43996
43997 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43998
43999         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44000         a directory that is about to be chowned.  Such a directory's
44001         initial file permissions should permit the owner only and this
44002         should not be changed until after the chown, since the group and
44003         other bits would be incorrect if they granted permission before
44004         the chown.
44005
44006         Fix porting problem for iswctype reported by Georg Schwarz in:
44007         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44008         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44009         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44010         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44011         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44012
44013 2006-12-03  Jim Meyering  <jim@meyering.net>
44014
44015         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44016         p->fts_statp may not yet be defined.
44017         (fts_read): Instead, set it in the caller, once p->fts_statp is
44018         sure to be defined, and corresponds to a top-level directory.
44019         This bug made du -x fail.  Here's the coreutils test case:
44020         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44021         Reported by Mike Frysinger.
44022
44023 2006-12-01  Jim Meyering  <jim@meyering.net>
44024
44025         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44026         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44027         Reported by Simon Josefsson.
44028
44029 2006-11-30  Jim Meyering  <jim@meyering.net>
44030
44031         * m4/warning.m4: Use the all-permissive copyright notice
44032         recommended by RMS (rather than LGPL).
44033         * m4/vararrays.m4: Likewise.
44034         * m4/flexmember.m4: Likewise.
44035
44036 2006-11-29  Bruno Haible  <bruno@clisp.org>
44037
44038         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44039         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44040         using +=.
44041         Reported by Simon Josefsson <simon@josefsson.org>.
44042
44043 2006-11-28  James Youngman <jay@gnu.org>
44044
44045         * README: Advise users that they might find the bug-gnulib@gnu.org
44046         and autotools-announce@gnu.org mailing lists useful.
44047
44048 2006-11-28  Bruno Haible  <bruno@clisp.org>
44049
44050         * m4/ptrdiff_max.m4: Remove file.
44051
44052 2006-11-21  Bruno Haible  <bruno@clisp.org>
44053
44054         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44055         _AC_COMPUTE_INT.
44056         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44057         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44058         _AC_COMPUTE_INT.
44059         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44060         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44061         _AC_COMPUTE_INT.
44062         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44063
44064 2006-11-28  Jim Meyering  <jim@meyering.net>
44065
44066         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44067         warning from "gcc -Wshadow" about shadowing the builtin.
44068
44069 2006-11-27  Bruno Haible  <bruno@clisp.org>
44070
44071         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44072         _AC_COMPUTE_INT.
44073         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44074
44075 2006-11-27  Bruno Haible  <bruno@clisp.org>
44076             Paul Eggert  <eggert@cs.ucla.edu>
44077
44078         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44079
44080 2006-11-26  Bruno Haible  <bruno@clisp.org>
44081
44082         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44083         noinst_LTLIBRARIES.
44084
44085 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44086             Bruno Haible  <bruno@clisp.org>
44087
44088         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44089         if compiling with "gcc -ansi".
44090
44091 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44092
44093         Fix some incompatibilities with gcc -ansi -pedantic.
44094         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44095         if compiling pedantically with GCC, unless it's C99 or later.
44096         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44097         it mishandles gcc -ansi -pedantic as well.
44098         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44099         if gcc -pedantic.
44100         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44101         initializers for struct if -pedantic, unless it's C99 or later.
44102
44103 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44104
44105         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44106         Don't close an fd more than once. Identical atimes indicate
44107         success, not failure.
44108
44109 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44110
44111         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44112
44113 2006-11-23  Jim Meyering  <jim@meyering.net>
44114
44115         * build-aux/announce-gen: New file.  From coreutils.
44116
44117 2006-11-22  Jim Meyering  <jim@meyering.net>
44118
44119         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44120         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44121         (fts_read): Use a temporary to narrow the overused st_size member
44122         before using it in a switch statement.  Reported by Matthew Woehlke.
44123
44124         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44125         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44126
44127 2006-11-20  Bruno Haible  <bruno@clisp.org>
44128
44129         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44130         changequote instead of pairs of brackets.
44131         Reported by Andreas Schwab <schwab@suse.de>.
44132
44133 2006-11-21  Jim Meyering  <jim@meyering.net>
44134
44135         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44136         so as to remain compatible with older compilers.
44137         Patch from Michael Deutschmann.
44138
44139 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44140
44141         * MODULES.html.sh (File system functions): Add openat.
44142
44143         * lib/openat.h (rpl_fstatat): New macro, if
44144         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44145         (fstatat): Define to rpl_fstatat under the same conditions,
44146         unless COMPILING_FSTATAT.
44147         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44148         seems to have the bug.
44149         * lib/fstatat.c: New file.
44150         * modules/openat (Files): Add it.
44151
44152 2006-11-20  Bruno Haible  <bruno@clisp.org>
44153
44154         * Makefile: New file.
44155
44156 2006-11-20  Jim Meyering  <jim@meyering.net>
44157
44158         The beginnings of syntax-related checks for gnulib.
44159         * lib/Makefile: New file.
44160         * lib/t-idcache: New script.  Ensure that the two halves of
44161         idcache.c stay in sync.
44162
44163         * lib/idcache.c: Adjust comments in user- and group- portions to
44164         be more accurate, and to be consistent with one another.
44165
44166 2006-11-20  Jim Meyering  <jim@meyering.net>
44167
44168         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44169         continue using the flexible array member (thus, this module performs
44170         half as many malloc calls), with the addition that...
44171         (getgroup, getuser): Consistently record a non-match via an empty
44172         "name" string, and map an empty string match to a NULL return value.
44173         * modules/idcache (Depends-on): Re-add flexmember.
44174
44175         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44176         (getuidbyname, getgroup, getgidbyname): Likewise.
44177
44178         Use cleaner syntax: NULL rather than 0.
44179         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44180
44181 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44182
44183         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44184         It mishandled the case where the group was missing.
44185         Problem reported by Greg Schafer.
44186         * modules/idcache: Likewise.
44187
44188 2006-11-18  Jim Meyering  <jim@meyering.net>
44189
44190         * check-module (%exempt_header): Add exception for some
44191         conditionally-included headers.
44192
44193         * modules/i-ring (Depends-on): Add verify.
44194         (License): Change to LGPL.
44195
44196 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44197
44198         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44199         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44200         and inttostr.h.  Use snprintf rather than uinttostr, so that
44201         LGPLed code doesn't depend on GPLed.
44202
44203 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         * modules/inline (License): Change from GPL to LGPL.
44206
44207 2006-11-17  Jim Meyering  <jim@meyering.net>
44208
44209         * modules/d-type (License): Switch to LGPL.
44210
44211 2006-11-15  Bruno Haible  <bruno@clisp.org>
44212
44213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44214
44215 2006-11-15  Eric Blake  <ebb9@byu.net>
44216
44217         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44218         the module dependency.
44219
44220 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44221             Bruno Haible  <bruno@clisp.org>
44222
44223         * gnulib-tool (func_create_testdir): Add license consistency check.
44224
44225 2006-11-15  Eric Blake  <ebb9@byu.net>
44226
44227         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44228         random "(cached)" in configure output.
44229
44230 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44231
44232         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44233         test for conforming inttypes.h is both announced and cached.
44234
44235         * MODULES.html.sh (seen_modules, seen_files): New variables.
44236         (func_module): Rewrite to use a few less gnulib-tool and sed
44237         invocations.  Avoid a couple of quadratic algorithms for ...
44238         (missed_modules, missed_files): ... these, with ...
44239         (func_append, func_tmpdir): ... these new functions, from
44240         gnulib-tool.  Analogously, install traps for cleanup.
44241
44242         * tests/test-gc.c (main): Remove unused variables.
44243         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44244
44245 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44246
44247         * modules/inttostr (License): Change to LGPL.
44248
44249 2006-11-14  Eric Blake  <ebb9@byu.net>
44250
44251         * modules/tempname (License): Change to LGPL.
44252
44253 2006-11-14  Eric Blake  <ebb9@byu.net>
44254
44255         * doc/functions.texi (Function Portability): *printf functions on
44256         Cygwin now understand all POSIX size specifiers.
44257
44258 2006-11-14  Bruno Haible  <bruno@clisp.org>
44259
44260         * modules/c-ctype (License): Change to LGPL.
44261
44262 2006-11-12  Bruno Haible  <bruno@clisp.org>
44263
44264         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44265         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44266         for GNOME libraries, for which the include files are installed in
44267         subdirectories of $prefix/include.
44268
44269 2006-11-12  Bruno Haible  <bruno@clisp.org>
44270
44271         * m4/lib-link.m4: Require at least autoconf-2.54.
44272         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44273         name to underscores for the --with option.
44274
44275 2006-11-13  Bruno Haible  <bruno@clisp.org>
44276
44277         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44278         the tests directory.
44279         Reported by Ralf Wildenhues.
44280
44281 2006-11-13  Bruno Haible  <bruno@clisp.org>
44282
44283         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44284         (func_emit_initmacro_end): Undo the override here.
44285         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44286         Works around the famous automake error in coreutils.
44287
44288 2006-11-13  Eric Blake  <ebb9@byu.net>
44289
44290         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44291         element, not its node.
44292
44293 2006-11-12  Bruno Haible  <bruno@clisp.org>
44294
44295         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44296         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44297
44298 2006-11-12  Bruno Haible  <bruno@clisp.org>
44299
44300         * gnulib-tool: New option --local-symlink.
44301         (func_usage): Document it.
44302         (lsymbolic): New variable.
44303         (func_import, func_create_testdir): If --symlink was not specified,
44304         test whether --local-symlink was specified and the file comes from
44305         the local_gnulib_dir.
44306
44307 2006-11-12  Bruno Haible  <bruno@clisp.org>
44308
44309         * gnulib-tool (func_ln): New function.
44310         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44311
44312 2006-11-12  Bruno Haible  <bruno@clisp.org>
44313
44314         Finish support for source files in subdirectories.
44315         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44316         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44317         AUTOMAKE_OPTIONS.
44318         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44319
44320 2006-11-12  Bruno Haible  <bruno@clisp.org>
44321
44322         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44323         EXTRA_lib_SOURCES augmentation.
44324         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44325
44326 2006-11-12  Jim Meyering  <jim@meyering.net>
44327
44328         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44329         file descriptors.  This also averts a failure on systems with
44330         native openat support when a traversed directory lacks "x" access.
44331         * lib/fts_.h: Include "i-ring.h"
44332         (struct FTS) [fts_fd_ring]: New member.
44333         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44334         (FCHDIR): Add parentheses.
44335         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44336         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44337         When descending, rather than simply closing the previous
44338         fts_cwd_fd value, push that file descriptor onto the ring.
44339         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44340         (fts_open): Initialize the new fd_ring member.
44341         (fts_close): Clear the ring.
44342         (fts_safe_changedir): When possible, use our new fd_ring to skip
44343         the diropen and fstat and dev/ino comparison that would normally
44344         accompany a virtual `chdir ("..")'.
44345
44346         * modules/fts (Depends-on): Add i-ring.
44347         * modules/i-ring: New module.
44348         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44349         * m4/i-ring.m4: New file.
44350
44351 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44352
44353         * gnulib-tool (func_create_testdir): Fix replacement of
44354         `build-aux' in configure.ac.  Run autotools in gltests
44355         subdirectory.
44356         (func_create_testdir, func_create_megatestdir, test): There is
44357         no need for '--force' in most autotool invocations in a new
44358         tree.  Actually fail the whole test if any of the tools, or the
44359         configure or make stages fail.
44360
44361         Sync from Automake.
44362         * build-aux/gnupload: Revert last change.  Add pointer to upload
44363         instructions of the GNU Maintenance Instructions.
44364         Suggestion by Karl Berry.
44365
44366 2006-11-10  Jim Meyering  <jim@meyering.net>
44367
44368         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44369
44370 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44371
44372         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44373         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44374         (bind_textdomain_codeset) [! ENABLE_NLS]:
44375         Evaluate all the arguments.  That way, callers get compatible behavior
44376         if the arguments have side effects.  Also, it avoids some GCC
44377         diagnostics in some cases; Joel E. Denny reported problems when Bison
44378         was configured with --enable-gcc-warnigs.
44379
44380 2006-11-10  Jim Meyering  <jim@meyering.net>
44381
44382         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44383         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44384         account.
44385
44386 2006-11-10  Jim Meyering  <jim@meyering.net>
44387
44388         * modules/inline: New file/module.
44389         * modules/xalloc (Files): Remove m4/inline.m4.
44390         (Depends-on): Add inline, instead.
44391         * modules/oset: Likewise.
44392         * modules/list: Likewise.
44393
44394 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44395
44396         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44397         Problem reported by Matthew Woehlke.
44398
44399 2006-11-09  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/tempname.c (gen_tempname): Remove variant that invokes
44402         __gen_tempname.
44403         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44404         __gen_tempname.
44405
44406 2006-11-08  Bruno Haible  <bruno@clisp.org>
44407
44408         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44409         to 'yes' instead of 'cross-compiling'.
44410
44411 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44412
44413         * lib/quotearg.h (quotearg_free): New decl.
44414         * lib/quotearg.c (quotearg_free): New function.
44415         (slot0, nslots, slotvec0, slotvec):
44416         Now file-scope so that quotearg_free can get at them.
44417
44418 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44419
44420         Sync from Automake.
44421         * build-aux/gnupload: Add missing 'gnu' to example URL.
44422         Report by Karl Berry.
44423
44424 2006-11-08  Bruno Haible  <bruno@clisp.org>
44425
44426         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44427         Suggested by Paul Eggert.
44428
44429 2006-11-08  Jim Meyering  <jim@meyering.net>
44430
44431         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44432         It's already included if !_LIBC.
44433         (fts_safe_changedir): Add a comment.
44434
44435 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44436
44437         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44438         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44439         Matthew Woehlke.
44440
44441         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44442         definitions up, to avoid colliding with change below.
44443         (static_inline) [HAVE_INLINE]: New macro.
44444         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44445         Provide extern decls when !HAVE_INLINE.  Do not define unless
44446         static_inline is defined, either by us or by xmalloc.c.  Use
44447         static_inline rather than static inline.
44448         (XCALLOC): Optimize sizeof(T) = 1 case.
44449         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44450
44451 2006-11-07  Bruno Haible  <bruno@clisp.org>
44452
44453         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44454         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44455         AC_C_INLINE.
44456         * modules/xalloc (Files): Add m4/inline.m4.
44457
44458 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44459
44460         * README: Fix typo.
44461         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44462         (Miscellanous Notes): ...from this.
44463
44464 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44465
44466         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44467         Mention that offsetof should be used instead of sizeof.
44468         From Bruno Haible.
44469
44470 2006-11-07  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44473
44474 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44475
44476         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44477         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44478         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44479         (gl_tree_add_before, gl_tree_add_after):
44480         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44481         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44482         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44483         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44484         (gl_linked_add_after, gl_linked_add_at): Likewise.
44485         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44486         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44487         (gl_tree_add_before, gl_tree_add_after): Likewise.
44488         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44489         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44490         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44491
44492 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44493
44494         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44495
44496 2006-11-06  Bruno Haible  <bruno@clisp.org>
44497
44498         * m4/inline.m4: New file.
44499         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44500         * modules/list (Files): Add m4/inline.m4.
44501         * modules/oset (Files): Likewise.
44502
44503 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44504
44505         * lib/idcache.c: Include <stddef.h>, for offsetof.
44506         (struct userid.name): Change from char * to a flexible array member.
44507         All uses changed.
44508         * modules/idcache (Depends-on): Add flexmember.
44509
44510         * MODULES.html.sh (Core language properties): New module flexmember.
44511         * modules/flexmember, m4/flexmember.m4: New files.
44512
44513         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44514         inline functions that are identical with the old xnmalloc_inline,
44515         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44516         that we can avoid some unnecessary integer multiplications and
44517         divisions in the common case where the element size is known at
44518         compile time.
44519         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44520         needed.
44521         (xnboundedmalloc): Remove.
44522         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44523         arguments, for consistency with rest of this header.
44524         (xcharalloc): Rewrite using XNMALLOC.
44525         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44526         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44527         versions have been moved to lib/xalloc.h and renamed to be the
44528         non-*_inline versions.
44529         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44530         and xnrealloc functions, since those functions are now inline and
44531         now call us.
44532         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44533         renaming described above.
44534         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44535         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44536         captures the dependency in AC_C_INLINE.
44537
44538         New module canonicalize-lgpl, proposed by Charles Wilson in
44539         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44540         with a few small changes afterwards.
44541         * MODULES.html.sh (File system functions): New module
44542         canonicalize-lgpl.
44543         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44544         and canonicalize_file_name.
44545         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44546         * modules/canonicalize-lgpl: New files.
44547
44548 2006-11-05  Bruno Haible  <bruno@clisp.org>
44549
44550         * gnulib-tool (func_import, func_create_testdir): Create directories
44551         also for files in subdirectories of lib/.
44552
44553 2006-11-05  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44556         ANSI C compliant.
44557
44558 2006-11-03  Bruno Haible  <bruno@clisp.org>
44559
44560         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44561         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44562         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44563         (xnboundedmalloc): New inline function.
44564         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44565         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44566         xmalloc.
44567         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44568         xmalloc.
44569         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44570         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44571         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44572         xmalloc.
44573         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44574         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44575         xmalloc.
44576         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44577         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44578         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44579         xmalloc.
44580         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44581         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44582         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44583         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44584         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44585         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44586         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44587
44588 2006-11-03  Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/c-ctype.h [C++]: Define functions without name mangling.
44591         * lib/fwriteerror.h [C++]: Likewise.
44592         * lib/gcd.h [C++]: Likewise.
44593         * lib/linebreak.h [C++]: Likewise.
44594
44595 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44596
44597         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44598         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44599         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44601         Check for functions and headers just once.
44602         Check for declaration of canonicalize_file_name.
44603         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44604
44605 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44606
44607         * gnulib-tool (func_import): Fix typo in actioncmd.
44608
44609 2006-11-02  Bruno Haible  <bruno@clisp.org>
44610
44611         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44612         newline sequence in the Makefile.am snippet as a space, like "make"
44613         does.
44614         Reported by Roger Persson <perrog@gmail.com>.
44615
44616 2006-11-01  Bruno Haible  <bruno@clisp.org>
44617
44618         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
44619         already declared in <string.h>.
44620         * lib/strcase.h (strncasecmp): Don't declare it if yes.
44621
44622 2006-11-01  Bruno Haible  <bruno@clisp.org>
44623
44624         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
44625         * lib/strcase.h: Include <string.h>.
44626         (strcasecmp): Define to rpl_strcasecmp here.
44627
44628 2006-11-01  Bruno Haible  <bruno@clisp.org>
44629
44630         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
44631
44632 2006-11-01  Eric Blake  <ebb9@byu.net>
44633
44634         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
44635
44636         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
44637
44638 2006-10-29  Bruno Haible  <bruno@clisp.org>
44639
44640         Make it compile in C++ mode.
44641         * lib/full-write.c (full_rw): Add a cast.
44642
44643 2006-11-01  Bruno Haible  <bruno@clisp.org>
44644
44645         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44646         be POSIX compliant.
44647         Reported by Roger Persson <perrog@gmail.com>.
44648
44649 2006-11-01  Eric Blake  <ebb9@byu.net>
44650
44651         * lib/getopt_.h: Fix comments.
44652
44653 2006-10-31  Eric Blake  <ebb9@byu.net>
44654
44655         * modules/tmpdir (Depends-on): Add sys_stat.
44656         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44657         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44658         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44659         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44660         tempname.
44661
44662 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44663
44664         Avoid some C++ diagnostics reported by Bruno Haible.
44665         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44666         xmalloc.
44667         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44668         (struct slotvec): Move to top level.
44669         (quotearg_n_options): Rewrite to avoid xmalloc.
44670         * lib/xalloc.h (xcharalloc): New function.
44671         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44672         [defined __cplusplus]: Add function template that provides result
44673         type propagation.  This part of the change is from Bruno Haible.
44674
44675 2006-10-29  Bruno Haible  <bruno@clisp.org>
44676
44677         Make it compile in C++ mode.
44678         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44679         * lib/strnlen1.c (strnlen1): Cast memchr result.
44680         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44681         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44682         (create_temp_dir): Rename local variable 'template'.
44683         (compile_csharp_using_sscli): Add cast.
44684         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44685         * lib/findprog.c (find_in_path): Likewise.
44686         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44687         * lib/wait-process.c (register_slave_subprocess): Likewise.
44688
44689 2006-10-22  Bruno Haible  <bruno@clisp.org>
44690
44691         * modules/tsearch: New file.
44692         * lib/tsearch.h: New file.
44693         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44694         * m4/tsearch.m4: New file.
44695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44696
44697 2006-10-29  Eric Blake  <ebb9@byu.net>
44698
44699         * lib/arcfour.c: Assume config.h.
44700         * lib/arctwo.c: Likewise.
44701         * lib/base64.c: Likewise.
44702         * lib/check-version.c: Likewise.
44703         * lib/crc.c: Likewise.
44704         * lib/des.c: Likewise.
44705         * lib/gc-gnulib.c: Likewise.
44706         * lib/gc-libgcrypt.c: Likewise.
44707         * lib/gc-pbkdf2-sha1.c: Likewise.
44708         * lib/getaddrinfo.c: Likewise.
44709         * lib/getdelim.c: Likewise.
44710         * lib/getline.c: Likewise.
44711         * lib/hmac-md5.c: Likewise.
44712         * lib/hmac-sha1.c: Likewise.
44713         * lib/iconvme.c: Likewise.
44714         * lib/md2.c: Likewise.
44715         * lib/md4.c: Likewise.
44716         * lib/memxor.c: Likewise.
44717         * lib/read-file.c: Likewise.
44718         * lib/readline.c: Likewise.
44719         * lib/rijndael-alg-fst.c: Likewise.
44720         * lib/rijndael-api-fst.c: Likewise.
44721         * lib/xgetdomainname.c: Likewise.
44722
44723 2006-10-28  Eric Blake  <ebb9@byu.net>
44724
44725         * lib/xstrndup.c: Assume config.h.
44726
44727 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44728
44729         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
44730         stat-macros.h is now for our own macros, whereas stat_h is for
44731         macros in the <sys/stat.h> name space.
44732         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
44733         (STAT_MACROS_H): Remove.
44734         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
44735         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
44736         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
44737         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
44738         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
44739         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
44740         Move these macros to ...
44741         * lib/stat_.h: here.  Don't include stat-macros.h.
44742         * lib/canonicalize.c: Don't include stat-macros.h.
44743         * lib/chown.c: Likewise.
44744         * lib/euidaccess.c: Likewise.
44745         * lib/file-type.c: Likewise.
44746         * lib/filemode.c: Likewise.
44747         * lib/glob.c: Likewise.
44748         * lib/isapipe.c: Likewise.
44749         * lib/lchown.c: Likewise.
44750         * lib/lstat.c: Likewise.
44751         * lib/mkdir-p.c: Likewise.
44752         * lib/rmdir.c: Likewise.
44753         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
44754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
44755         unless mkdir isn't declared, to speed up 'configure'.
44756         Always create sys/stat.h, since it's unlikely any real sys/stat.h
44757         would define all the S_* symbols.
44758         * modules/canonicalize (Depends-on):
44759         Depend on sys_stat, not stat-macros.
44760         * modules/chown: Likewise.
44761         * modules/euidaccess: Likewise.
44762         * modules/filemode: Likewise.
44763         * modules/file-type: Likewise.
44764         * modules/glob: Likewise.
44765         * modules/isapipe: Likewise.
44766         * modules/lchown: Likewise.
44767         * modules/lstat: Likewise.
44768         * modules/mkancesdirs: Likewise.
44769         * modules/rmdir: Likewise.
44770         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
44771         * modules/modechange: Likewise.
44772         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
44773         (configure.ac): Remove gl_STAT_MACROS.
44774         * modules/sys_stat (Depends-on): Remove stat-macros.
44775
44776 2006-10-27  Bruno Haible  <bruno@clisp.org>
44777
44778         * m4/signed.m4: Remove file.
44779         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
44780         invocation.
44781         * modules/vasnprintf (Files): Remove m4/signed.m4.
44782
44783 2006-10-27  Bruno Haible  <bruno@clisp.org>
44784
44785         Update to GNU gettext 0.16.
44786         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
44787         m4/inttypes-h.m4, m4/signed.m4.
44788         * m4/gettext.m4: Update to GNU gettext 0.16.
44789         * m4/intl.m4: New file, from GNU gettext.
44790         * m4/intldir.m4: New file, from GNU gettext.
44791         * config/srclist.txt: Update
44792
44793 2006-10-27  Eric Blake  <ebb9@byu.net>
44794
44795         * MODULES.html.sh: Document tempname.
44796         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
44797         dependencies.
44798         (Files): Move lib/tempname.c...
44799         * modules/tempname: ...to this new module.
44800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
44801         (gl_PREREQ_TEMPNAME): Move...
44802         * m4/tempname.m4: ...to this new file.
44803         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
44804         * modules/sys_stat (Depends-on): Add stat-macros.
44805         * lib/stat_.h (includes): Pick up stat macros.
44806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
44807         if stat macros are broken.
44808         * lib/tempname.c (includes): No need to include "stat-macros.h".
44809         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
44810         (direxists, __path_search) [!_LIBC]: Don't compile these in
44811         gnulib; the tmpdir module covers that.
44812         * lib/tempname.h: New file.
44813
44814 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44815
44816         * COPYING: Explain how gnulib-tool converts licence headers.
44817         Almost all wording by Eric Blake.
44818
44819 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
44820
44821         * lib/mbchar.h (is_basic_table): Make read-only.
44822         * lib/mbchar.c (is_basic_table): Likewise.
44823         Reported by John Darrington.
44824
44825 2006-10-25  Bruno Haible  <bruno@clisp.org>
44826
44827         * lib/progname.h (set_program_name): Undefine before defining.
44828
44829 2006-10-25  Bruno Haible  <bruno@clisp.org>
44830
44831         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
44832         false for non-gcc C++ compilers.
44833         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44834
44835 2006-10-24  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
44838         iconv implementations like Irix iconv.
44839
44840 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44841
44842         * modules/vararrays: New file.
44843         * m4/vararrays.m4: New file, taken from diffutils.
44844         * MODULES.html.sh: New module vararrays.
44845
44846 2006-10-24  Karl Berry  <karl@gnu.org>
44847
44848         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
44849         Don't call GNU Unix.
44850
44851 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44852
44853         * users.txt: Add Libtool.
44854
44855         Sync from Libtool:
44856
44857         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44858
44859         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
44860         to gnulib's policy of including config.h unconditionally.
44861
44862 2006-10-24  Bruno Haible  <bruno@clisp.org>
44863
44864         * modules/wcwidth (Files): Add m4/wint_t.m4.
44865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
44866         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
44867
44868 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44869
44870         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
44871         to pacify GCC with some -W flags enabled.  Problem reported by
44872         Bruno Haible.
44873
44874 2006-10-24  Jim Meyering  <jim@meyering.net>
44875
44876         * MODULES.html.sh: Remove uinttostr.  It's not a module.
44877         Reported by Karl Berry.
44878
44879 2006-10-23  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
44882
44883 2006-10-24  Bruno Haible  <bruno@clisp.org>
44884
44885         * lib/gl_list.h: Use C comment style, not C++ comment style.
44886
44887 2006-10-23  Eric Blake  <ebb9@byu.net>
44888
44889         * lib/getaddrinfo.c (includes): Add missing include.
44890
44891 2006-10-23  Bruno Haible  <bruno@clisp.org>
44892             Paul Eggert  <eggert@cs.ucla.edu>
44893
44894         Ability to rename obstack_free.
44895         * lib/obstack.h (__obstack_free): New macro. Declare instead of
44896         obstack_free.
44897         (obstack_free): Invoke the __obstack_free macro.
44898         * lib/obstack.c (obstack_free): Use __obstack_free macro.
44899
44900 2006-10-23  Bruno Haible  <bruno@clisp.org>
44901             Paul Eggert  <eggert@cs.ucla.edu>
44902
44903         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
44904         __argc, __argv from the declaration. (They are defined as macros on
44905         mingw.)
44906
44907 2006-10-22  Bruno Haible  <bruno@clisp.org>
44908
44909         * doc/gnulib-intro.texi: New file.
44910         * doc/gnulib.texi: Include it.
44911
44912 2006-10-21  Bruno Haible  <bruno@clisp.org>
44913
44914         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
44915         "Introduction", "Miscellanous Notes", "Particular Modules".
44916
44917 2006-10-21  Bruno Haible  <bruno@clisp.org>
44918
44919         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44920         Change mostlyclean-local rule to avoid sh syntax error from bash
44921         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
44922
44923 2006-10-23  Jim Meyering  <jim@meyering.net>
44924
44925         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
44926         in place of snprintf.
44927
44928         * modules/inttostr (Files): Add lib/uinttostr.c.
44929         * lib/uinttostr.c (inttostr): New file/function.
44930         * lib/inttostr.h (uinttostr): Declare.
44931         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
44932         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
44933         Add uinttostr.
44934         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
44935
44936 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
44937
44938         * lib/canonicalize.c (ELOOP): Define if not already defined.
44939         Problem reported by Bruno Haible in
44940         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
44941
44942 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
44943
44944         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
44945         Problem reported by Perry Smith and Ville Laurikari.
44946
44947         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
44948         uses.
44949
44950 2006-10-19  Bruno Haible  <bruno@clisp.org>
44951
44952         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
44953         for mingw.
44954
44955 2006-10-19  Bruno Haible  <bruno@clisp.org>
44956
44957         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
44958         Needed for mingw.
44959
44960 2006-10-19  Bruno Haible  <bruno@clisp.org>
44961
44962         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
44963
44964 2006-10-19  Bruno Haible  <bruno@clisp.org>
44965
44966         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
44967         it.
44968
44969 2006-10-19  Bruno Haible  <bruno@clisp.org>
44970
44971         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
44972         invocation.
44973
44974 2006-10-19  Bruno Haible  <bruno@clisp.org>
44975
44976         * gnulib-tool (func_create_testdir): Don't include ftruncate and
44977         mountlist by default.
44978
44979 2006-10-16  Bruno Haible  <bruno@clisp.org>
44980
44981         * lib/c-strstr.c: Include c-strstr.h.
44982
44983 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44984
44985         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
44986         in a slash.
44987
44988 2006-10-18  Bruno Haible  <bruno@clisp.org>
44989
44990         * lib/lock.h [C++]: Wrap definitions in extern "C".
44991
44992 2006-10-18  Bruno Haible  <bruno@clisp.org>
44993
44994         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
44995         gl_LIBOBJS list.
44996
44997 2006-10-18  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45000
45001 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45002
45003         * lib/xstrtol.h: Include gettext.h.
45004         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45005         Problem reported by Eric Blake.
45006         * modules/xstrtol (Depends-on): Add gettext-h.
45007
45008 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45009
45010         * lib/strftime.c (advance): New macro.
45011         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45012         incomplete type, so you can't add 0 to it.  Problem and patch
45013         reported by Eelco Dolstra for dietlibc.
45014
45015 2006-10-18  Jim Meyering  <jim@meyering.net>
45016
45017         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45018         type for a local, and rename it: s/up/user_proc/.
45019
45020 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45021
45022         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45023         READ_UTMP_USER_PROCESS.
45024         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45025
45026 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45027
45028         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45029         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45030
45031 2006-10-17  Eric Blake  <ebb9@byu.net>
45032
45033         * lib/sigprocmask.c (sigprocmask): Fix typo.
45034
45035         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45036
45037         * modules/clean-temp (Makefile.am): Don't add to make output...
45038         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45039         config.h.
45040
45041 2006-10-17  Bruno Haible  <bruno@clisp.org>
45042
45043         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45044         differently if DEFAULT_TEXT_DOMAIN is set.
45045
45046 2006-10-16  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/clean-temp.c: Include fwriteerror.h.
45049
45050 2006-10-16  Bruno Haible  <bruno@clisp.org>
45051
45052         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45053
45054 2006-10-16  Bruno Haible  <bruno@clisp.org>
45055
45056         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45057         * lib/sigprocmask.h: Include <sys/types.h>.
45058         (sigset_t): Use the system's definition if present.
45059
45060 2006-10-17  Eric Blake  <ebb9@byu.net>
45061
45062         * lib/xvasprintf.c (includes): Assume config.h.
45063         * lib/xasprintf.c (includes): Likewise.
45064
45065 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45066
45067         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45068         at least as wide as intmax_t.
45069
45070 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45071
45072         (Imported from Automake.)
45073         * build-aux/gnupload: Update to version 1.1 of directive file.
45074
45075 2006-10-16  Eric Blake  <ebb9@byu.net>
45076
45077         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45078         match Automake 1.10a.
45079
45080 2006-10-14  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/sigprocmask: New file.
45083         * lib/sigprocmask.h: New file.
45084         * lib/sigprocmask.c: New file.
45085         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45086         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45087         request sigprocmask.o.
45088         (gl_PREREQ_SIGPROCMASK): New macro.
45089         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45090         (Depends-on): Add sigprocmask.
45091         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45092         gt_SIGNALBLOCKING. Test for 'raise' only once.
45093         * lib/fatal-signal.c: Include sigprocmask.h.
45094         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45095         unblock_fatal_signals): Define always.
45096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45097         sigprocmask.
45098
45099 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45100
45101         Sync from Automake.
45102         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45103         which incorrectly sets the mode of an existing destination
45104         directory.  In some cases the unpatched install-sh could do the
45105         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45106         system.  We hope this is rare in practice, but it's clearly worth
45107         fixing.  Problem reported by Alex Unleashed in
45108         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45109         Also, don't bother to check for -m bugs unless we're using -m;
45110         suggested by Stepan Kasal.
45111
45112 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45113
45114         Sync from Automake.
45115         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45116         `-c' flag, so they appear at the same position as in %FASTDEP%
45117         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45118         which ignores unknown options only after the first non-option.
45119         Bug report against M4 by Nelson H. F. Beebe.
45120
45121 2006-10-13  Jim Meyering  <jim@meyering.net>
45122
45123         Fix a bug in yesterday's change.
45124         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45125         p->fts_statp->st_dev would be used uninitialized.
45126         Ensures that we always call fts_stat on the very first entry.
45127         Miklos Szeredi reported that find -xdev stopped working.
45128
45129 2006-10-12  Bruno Haible  <bruno@clisp.org>
45130
45131         * gnulib-tool (func_get_automake_snippet): Append an automatically
45132         computed EXTRA_DIST augmentation.
45133         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45134         * modules/alloca-opt (Makefile.am): Likewise.
45135         * modules/allocsa (Makefile.am): Likewise.
45136         * modules/arcfour (Makefile.am): Likewise.
45137         * modules/arctwo (Makefile.am): Likewise.
45138         * modules/argmatch (Makefile.am): Likewise.
45139         * modules/argz (Makefile.am): Likewise.
45140         * modules/atexit (Makefile.am): Likewise.
45141         * modules/backupfile (Makefile.am): Likewise.
45142         * modules/byteswap (Makefile.am): Likewise.
45143         * modules/c-strtod (Makefile.am): Likewise.
45144         * modules/c-strtold (Makefile.am): Likewise.
45145         * modules/calloc (Makefile.am): Likewise.
45146         * modules/canon-host (Makefile.am): Likewise.
45147         * modules/canonicalize (Makefile.am): Likewise.
45148         * modules/chdir-long (Makefile.am): Likewise.
45149         * modules/chdir-safer (Makefile.am): Likewise.
45150         * modules/check-version (Makefile.am): Likewise.
45151         * modules/chown (Makefile.am): Likewise.
45152         * modules/cloexec (Makefile.am): Likewise.
45153         * modules/close-stream (Makefile.am): Likewise.
45154         * modules/closeout (Makefile.am): Likewise.
45155         * modules/crc (Makefile.am): Likewise.
45156         * modules/csharpexec (Makefile.am): Likewise.
45157         * modules/cycle-check (Makefile.am): Likewise.
45158         * modules/des (Makefile.am): Likewise.
45159         * modules/dev-ino (Makefile.am): Likewise.
45160         * modules/dirfd (Makefile.am): Likewise.
45161         * modules/dirname (Makefile.am): Likewise.
45162         * modules/dup2 (Makefile.am): Likewise.
45163         * modules/eealloc (Makefile.am): Likewise.
45164         * modules/error (Makefile.am): Likewise.
45165         * modules/euidaccess (Makefile.am): Likewise.
45166         * modules/exclude (Makefile.am): Likewise.
45167         * modules/exitfail (Makefile.am): Likewise.
45168         * modules/fcntl-safer (Makefile.am): Likewise.
45169         * modules/fcntl (Makefile.am): Likewise.
45170         * modules/file-type (Makefile.am): Likewise.
45171         * modules/fileblocks (Makefile.am): Likewise.
45172         * modules/filemode (Makefile.am): Likewise.
45173         * modules/filenamecat (Makefile.am): Likewise.
45174         * modules/fnmatch (Makefile.am): Likewise.
45175         * modules/fopen-safer (Makefile.am): Likewise.
45176         * modules/fpending (Makefile.am): Likewise.
45177         * modules/fprintftime (Makefile.am): Likewise.
45178         * modules/free (Makefile.am): Likewise.
45179         * modules/fsusage (Makefile.am): Likewise.
45180         * modules/ftruncate (Makefile.am): Likewise.
45181         * modules/fts (Makefile.am): Likewise.
45182         * modules/gc-arcfour (Makefile.am): Likewise.
45183         * modules/gc-des (Makefile.am): Likewise.
45184         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45185         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45186         * modules/gc-md4 (Makefile.am): Likewise.
45187         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45188         * modules/gc-sha1 (Makefile.am): Likewise.
45189         * modules/gc (Makefile.am): Likewise.
45190         * modules/getaddrinfo (Makefile.am): Likewise.
45191         * modules/getcwd (Makefile.am): Likewise.
45192         * modules/getdelim (Makefile.am): Likewise.
45193         * modules/getdomainname (Makefile.am): Likewise.
45194         * modules/getgroups (Makefile.am): Likewise.
45195         * modules/gethostname (Makefile.am): Likewise.
45196         * modules/gethrxtime (Makefile.am): Likewise.
45197         * modules/getline (Makefile.am): Likewise.
45198         * modules/getloadavg (Makefile.am): Likewise.
45199         * modules/getlogin_r (Makefile.am): Likewise.
45200         * modules/getndelim2 (Makefile.am): Likewise.
45201         * modules/getopt (Makefile.am): Likewise.
45202         * modules/getpagesize (Makefile.am): Likewise.
45203         * modules/getpass-gnu (Makefile.am): Likewise.
45204         * modules/getpass (Makefile.am): Likewise.
45205         * modules/getsubopt (Makefile.am): Likewise.
45206         * modules/gettime (Makefile.am): Likewise.
45207         * modules/gettimeofday (Makefile.am): Likewise.
45208         * modules/getugroups (Makefile.am): Likewise.
45209         * modules/getusershell (Makefile.am): Likewise.
45210         * modules/glob (Makefile.am): Likewise.
45211         * modules/group-member (Makefile.am): Likewise.
45212         * modules/hard-locale (Makefile.am): Likewise.
45213         * modules/hash (Makefile.am): Likewise.
45214         * modules/hmac-md5 (Makefile.am): Likewise.
45215         * modules/hmac-sha1 (Makefile.am): Likewise.
45216         * modules/human (Makefile.am): Likewise.
45217         * modules/idcache (Makefile.am): Likewise.
45218         * modules/imaxabs (Makefile.am): Likewise.
45219         * modules/imaxdiv (Makefile.am): Likewise.
45220         * modules/inet_ntop (Makefile.am): Likewise.
45221         * modules/inet_pton (Makefile.am): Likewise.
45222         * modules/intprops (Makefile.am): Likewise.
45223         * modules/inttostr (Makefile.am): Likewise.
45224         * modules/inttypes (Makefile.am): Likewise.
45225         * modules/isapipe (Makefile.am): Likewise.
45226         * modules/javaversion (Makefile.am): Likewise.
45227         * modules/lchmod (Makefile.am): Likewise.
45228         * modules/lchown (Makefile.am): Likewise.
45229         * modules/localcharset (Makefile.am): Likewise.
45230         * modules/long-options (Makefile.am): Likewise.
45231         * modules/lstat (Makefile.am): Likewise.
45232         * modules/malloc (Makefile.am): Likewise.
45233         * modules/mathl (Makefile.am): Likewise.
45234         * modules/mbchar (Makefile.am): Likewise.
45235         * modules/md2 (Makefile.am): Likewise.
45236         * modules/md4 (Makefile.am): Likewise.
45237         * modules/md5 (Makefile.am): Likewise.
45238         * modules/memcasecmp (Makefile.am): Likewise.
45239         * modules/memchr (Makefile.am): Likewise.
45240         * modules/memcmp (Makefile.am): Likewise.
45241         * modules/memcoll (Makefile.am): Likewise.
45242         * modules/memcpy (Makefile.am): Likewise.
45243         * modules/memmem (Makefile.am): Likewise.
45244         * modules/memmove (Makefile.am): Likewise.
45245         * modules/mempcpy (Makefile.am): Likewise.
45246         * modules/memrchr (Makefile.am): Likewise.
45247         * modules/memset (Makefile.am): Likewise.
45248         * modules/memxor (Makefile.am): Likewise.
45249         * modules/mkancesdirs (Makefile.am): Likewise.
45250         * modules/mkdir-p (Makefile.am): Likewise.
45251         * modules/mkdir (Makefile.am): Likewise.
45252         * modules/mkdtemp (Makefile.am): Likewise.
45253         * modules/mkstemp (Makefile.am): Likewise.
45254         * modules/mktime (Makefile.am): Likewise.
45255         * modules/modechange (Makefile.am): Likewise.
45256         * modules/mountlist (Makefile.am): Likewise.
45257         * modules/nanosleep (Makefile.am): Likewise.
45258         * modules/obstack (Makefile.am): Likewise.
45259         * modules/openat (Makefile.am): Likewise.
45260         * modules/pagealign_alloc (Makefile.am): Likewise.
45261         * modules/pathmax (Makefile.am): Likewise.
45262         * modules/physmem (Makefile.am): Likewise.
45263         * modules/poll (Makefile.am): Likewise.
45264         * modules/posixtm (Makefile.am): Likewise.
45265         * modules/posixver (Makefile.am): Likewise.
45266         * modules/putenv (Makefile.am): Likewise.
45267         * modules/quote (Makefile.am): Likewise.
45268         * modules/quotearg (Makefile.am): Likewise.
45269         * modules/raise (Makefile.am): Likewise.
45270         * modules/read-file (Makefile.am): Likewise.
45271         * modules/readline (Makefile.am): Likewise.
45272         * modules/readlink (Makefile.am): Likewise.
45273         * modules/readtokens (Makefile.am): Likewise.
45274         * modules/readutmp (Makefile.am): Likewise.
45275         * modules/realloc (Makefile.am): Likewise.
45276         * modules/regex (Makefile.am): Likewise.
45277         * modules/rename-dest-slash (Makefile.am): Likewise.
45278         * modules/rename (Makefile.am): Likewise.
45279         * modules/rijndael (Makefile.am): Likewise.
45280         * modules/rmdir (Makefile.am): Likewise.
45281         * modules/rpmatch (Makefile.am): Likewise.
45282         * modules/safe-read (Makefile.am): Likewise.
45283         * modules/safe-write (Makefile.am): Likewise.
45284         * modules/same-inode (Makefile.am): Likewise.
45285         * modules/same (Makefile.am): Likewise.
45286         * modules/save-cwd (Makefile.am): Likewise.
45287         * modules/savedir (Makefile.am): Likewise.
45288         * modules/setenv (Makefile.am): Likewise.
45289         * modules/settime (Makefile.am): Likewise.
45290         * modules/sha1 (Makefile.am): Likewise.
45291         * modules/sig2str (Makefile.am): Likewise.
45292         * modules/snprintf (Makefile.am): Likewise.
45293         * modules/stat-macros (Makefile.am): Likewise.
45294         * modules/stat-time (Makefile.am): Likewise.
45295         * modules/stdbool (Makefile.am): Likewise.
45296         * modules/stdint (Makefile.am): Likewise.
45297         * modules/stdlib-safer (Makefile.am): Likewise.
45298         * modules/stpcpy (Makefile.am): Likewise.
45299         * modules/stpncpy (Makefile.am): Likewise.
45300         * modules/strcase (Makefile.am): Likewise.
45301         * modules/strcasestr (Makefile.am): Likewise.
45302         * modules/strchrnul (Makefile.am): Likewise.
45303         * modules/strcspn (Makefile.am): Likewise.
45304         * modules/strdup (Makefile.am): Likewise.
45305         * modules/strerror (Makefile.am): Likewise.
45306         * modules/strftime (Makefile.am): Likewise.
45307         * modules/strndup (Makefile.am): Likewise.
45308         * modules/strnlen (Makefile.am): Likewise.
45309         * modules/strpbrk (Makefile.am): Likewise.
45310         * modules/strsep (Makefile.am): Likewise.
45311         * modules/strstr (Makefile.am): Likewise.
45312         * modules/strtod (Makefile.am): Likewise.
45313         * modules/strtoimax (Makefile.am): Likewise.
45314         * modules/strtok_r (Makefile.am): Likewise.
45315         * modules/strtol (Makefile.am): Likewise.
45316         * modules/strtoll (Makefile.am): Likewise.
45317         * modules/strtoul (Makefile.am): Likewise.
45318         * modules/strtoull (Makefile.am): Likewise.
45319         * modules/strtoumax (Makefile.am): Likewise.
45320         * modules/strverscmp (Makefile.am): Likewise.
45321         * modules/sys_socket (Makefile.am): Likewise.
45322         * modules/sys_stat (Makefile.am): Likewise.
45323         * modules/sysexits (Makefile.am): Likewise.
45324         * modules/time_r (Makefile.am): Likewise.
45325         * modules/timegm (Makefile.am): Likewise.
45326         * modules/timespec (Makefile.am): Likewise.
45327         * modules/tmpfile-safer (Makefile.am): Likewise.
45328         * modules/trim (Makefile.am): Likewise.
45329         * modules/unistd-safer (Makefile.am): Likewise.
45330         * modules/unlinkdir (Makefile.am): Likewise.
45331         * modules/unlocked-io (Makefile.am): Likewise.
45332         * modules/userspec (Makefile.am): Likewise.
45333         * modules/utime (Makefile.am): Likewise.
45334         * modules/utimecmp (Makefile.am): Likewise.
45335         * modules/utimens (Makefile.am): Likewise.
45336         * modules/vasnprintf (Makefile.am): Likewise.
45337         * modules/vasprintf (Makefile.am): Likewise.
45338         * modules/vsnprintf (Makefile.am): Likewise.
45339         * modules/xalloc (Makefile.am): Likewise.
45340         * modules/xgetcwd (Makefile.am): Likewise.
45341         * modules/xnanosleep (Makefile.am): Likewise.
45342         * modules/xreadlink (Makefile.am): Likewise.
45343         * modules/xstrtod (Makefile.am): Likewise.
45344         * modules/xstrtol (Makefile.am): Likewise.
45345         * modules/xstrtold (Makefile.am): Likewise.
45346         * modules/yesno (Makefile.am): Likewise.
45347         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45348
45349 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45350
45351         * modules/error (Makefile.am): Distribute files through
45352         EXTRA_DIST, not lib_SOURCES.
45353
45354 2006-10-12  Eric Blake  <ebb9@byu.net>
45355
45356         * modules/error (Makefile.am): Distribute files in /lib.
45357         * modules/obstack (Makefile.am): Likewise.
45358
45359 2006-10-12  Bruno Haible  <bruno@clisp.org>
45360
45361         * modules/acl (Makefile.am): Distribute all files in lib/ through
45362         EXTRA_DIST.
45363         * modules/arcfour (Makefile.am): Likewise.
45364         * modules/arctwo (Makefile.am): Likewise.
45365         * modules/argmatch (Makefile.am): Likewise.
45366         * modules/argz (Makefile.am): Likewise.
45367         * modules/atexit (Makefile.am): Likewise.
45368         * modules/backupfile (Makefile.am): Likewise.
45369         * modules/c-strtod (Makefile.am): Likewise.
45370         * modules/c-strtold (Makefile.am): Likewise.
45371         * modules/calloc (Makefile.am): Likewise.
45372         * modules/canon-host (Makefile.am): Likewise.
45373         * modules/canonicalize (Makefile.am): Likewise.
45374         * modules/chdir-long (Makefile.am): Likewise.
45375         * modules/chdir-safer (Makefile.am): Likewise.
45376         * modules/check-version (Makefile.am): Likewise.
45377         * modules/chown (Makefile.am): Likewise.
45378         * modules/cloexec (Makefile.am): Likewise.
45379         * modules/close-stream (Makefile.am): Likewise.
45380         * modules/closeout (Makefile.am): Likewise.
45381         * modules/crc (Makefile.am): Likewise.
45382         * modules/cycle-check (Makefile.am): Likewise.
45383         * modules/des (Makefile.am): Likewise.
45384         * modules/dirfd (Makefile.am): Likewise.
45385         * modules/dirname (Makefile.am): Likewise.
45386         * modules/dup2 (Makefile.am): Likewise.
45387         * modules/euidaccess (Makefile.am): Likewise.
45388         * modules/exclude (Makefile.am): Likewise.
45389         * modules/exitfail (Makefile.am): Likewise.
45390         * modules/fcntl-safer (Makefile.am): Likewise.
45391         * modules/file-type (Makefile.am): Likewise.
45392         * modules/fileblocks (Makefile.am): Likewise.
45393         * modules/filemode (Makefile.am): Likewise.
45394         * modules/filenamecat (Makefile.am): Likewise.
45395         * modules/fnmatch (Makefile.am): Likewise.
45396         * modules/fopen-safer (Makefile.am): Likewise.
45397         * modules/fpending (Makefile.am): Likewise.
45398         * modules/fprintftime (Makefile.am): Likewise.
45399         * modules/free (Makefile.am): Likewise.
45400         * modules/fsusage (Makefile.am): Likewise.
45401         * modules/ftruncate (Makefile.am): Likewise.
45402         * modules/fts (Makefile.am): Likewise.
45403         * modules/gc (Makefile.am): Likewise.
45404         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45405         * modules/getaddrinfo (Makefile.am): Likewise.
45406         * modules/getcwd (Makefile.am): Likewise.
45407         * modules/getdelim (Makefile.am): Likewise.
45408         * modules/getdomainname (Makefile.am): Likewise.
45409         * modules/getgroups (Makefile.am): Likewise.
45410         * modules/gethostname (Makefile.am): Likewise.
45411         * modules/gethrxtime (Makefile.am): Likewise.
45412         * modules/getline (Makefile.am): Likewise.
45413         * modules/getloadavg (Makefile.am): Likewise.
45414         * modules/getlogin_r (Makefile.am): Likewise.
45415         * modules/getopt (Makefile.am): Likewise.
45416         * modules/getpass (Makefile.am): Likewise.
45417         * modules/getpass-gnu (Makefile.am): Likewise.
45418         * modules/getsubopt (Makefile.am): Likewise.
45419         * modules/gettime (Makefile.am): Likewise.
45420         * modules/gettimeofday (Makefile.am): Likewise.
45421         * modules/getugroups (Makefile.am): Likewise.
45422         * modules/getusershell (Makefile.am): Likewise.
45423         * modules/glob (Makefile.am): Likewise.
45424         * modules/group-member (Makefile.am): Likewise.
45425         * modules/hard-locale (Makefile.am): Likewise.
45426         * modules/hash (Makefile.am): Likewise.
45427         * modules/hmac-md5 (Makefile.am): Likewise.
45428         * modules/hmac-sha1 (Makefile.am): Likewise.
45429         * modules/human (Makefile.am): Likewise.
45430         * modules/idcache (Makefile.am): Likewise.
45431         * modules/imaxabs (Makefile.am): Likewise.
45432         * modules/imaxdiv (Makefile.am): Likewise.
45433         * modules/inet_ntop (Makefile.am): Likewise.
45434         * modules/inet_pton (Makefile.am): Likewise.
45435         * modules/inttostr (Makefile.am): Likewise.
45436         * modules/isapipe (Makefile.am): Likewise.
45437         * modules/lchown (Makefile.am): Likewise.
45438         * modules/long-options (Makefile.am): Likewise.
45439         * modules/lstat (Makefile.am): Likewise.
45440         * modules/malloc (Makefile.am): Likewise.
45441         * modules/mathl (Makefile.am): Likewise.
45442         * modules/mbchar (Makefile.am): Likewise.
45443         * modules/md2 (Makefile.am): Likewise.
45444         * modules/md4 (Makefile.am): Likewise.
45445         * modules/md5 (Makefile.am): Likewise.
45446         * modules/memcasecmp (Makefile.am): Likewise.
45447         * modules/memchr (Makefile.am): Likewise.
45448         * modules/memcmp (Makefile.am): Likewise.
45449         * modules/memcoll (Makefile.am): Likewise.
45450         * modules/memcpy (Makefile.am): Likewise.
45451         * modules/memmem (Makefile.am): Likewise.
45452         * modules/memmove (Makefile.am): Likewise.
45453         * modules/mempcpy (Makefile.am): Likewise.
45454         * modules/memrchr (Makefile.am): Likewise.
45455         * modules/memset (Makefile.am): Likewise.
45456         * modules/memxor (Makefile.am): Likewise.
45457         * modules/mkancesdirs (Makefile.am): Likewise.
45458         * modules/mkdir (Makefile.am): Likewise.
45459         * modules/mkdir-p (Makefile.am): Likewise.
45460         * modules/mkdtemp (Makefile.am): Likewise.
45461         * modules/mkstemp (Makefile.am): Likewise.
45462         * modules/mktime (Makefile.am): Likewise.
45463         * modules/modechange (Makefile.am): Likewise.
45464         * modules/mountlist (Makefile.am): Likewise.
45465         * modules/nanosleep (Makefile.am): Likewise.
45466         * modules/openat (Makefile.am): Likewise.
45467         * modules/pagealign_alloc (Makefile.am): Likewise.
45468         * modules/physmem (Makefile.am): Likewise.
45469         * modules/poll (Makefile.am): Likewise.
45470         * modules/posixtm (Makefile.am): Likewise.
45471         * modules/posixver (Makefile.am): Likewise.
45472         * modules/putenv (Makefile.am): Likewise.
45473         * modules/quote (Makefile.am): Likewise.
45474         * modules/quotearg (Makefile.am): Likewise.
45475         * modules/raise (Makefile.am): Likewise.
45476         * modules/read-file (Makefile.am): Likewise.
45477         * modules/readline (Makefile.am): Likewise.
45478         * modules/readlink (Makefile.am): Likewise.
45479         * modules/readtokens (Makefile.am): Likewise.
45480         * modules/readutmp (Makefile.am): Likewise.
45481         * modules/realloc (Makefile.am): Likewise.
45482         * modules/regex (Makefile.am): Likewise.
45483         * modules/rename (Makefile.am): Likewise.
45484         * modules/rename-dest-slash (Makefile.am): Likewise.
45485         * modules/rijndael (Makefile.am): Likewise.
45486         * modules/rmdir (Makefile.am): Likewise.
45487         * modules/rpmatch (Makefile.am): Likewise.
45488         * modules/safe-read (Makefile.am): Likewise.
45489         * modules/safe-write (Makefile.am): Likewise.
45490         * modules/same (Makefile.am): Likewise.
45491         * modules/save-cwd (Makefile.am): Likewise.
45492         * modules/savedir (Makefile.am): Likewise.
45493         * modules/setenv (Makefile.am): Likewise.
45494         * modules/settime (Makefile.am): Likewise.
45495         * modules/sha1 (Makefile.am): Likewise.
45496         * modules/sig2str (Makefile.am): Likewise.
45497         * modules/snprintf (Makefile.am): Likewise.
45498         * modules/stdlib-safer (Makefile.am): Likewise.
45499         * modules/stpcpy (Makefile.am): Likewise.
45500         * modules/stpncpy (Makefile.am): Likewise.
45501         * modules/strcase (Makefile.am): Likewise.
45502         * modules/strcasestr (Makefile.am): Likewise.
45503         * modules/strchrnul (Makefile.am): Likewise.
45504         * modules/strcspn (Makefile.am): Likewise.
45505         * modules/strdup (Makefile.am): Likewise.
45506         * modules/strerror (Makefile.am): Likewise.
45507         * modules/strftime (Makefile.am): Likewise.
45508         * modules/strndup (Makefile.am): Likewise.
45509         * modules/strnlen (Makefile.am): Likewise.
45510         * modules/strpbrk (Makefile.am): Likewise.
45511         * modules/strsep (Makefile.am): Likewise.
45512         * modules/strstr (Makefile.am): Likewise.
45513         * modules/strtod (Makefile.am): Likewise.
45514         * modules/strtoimax (Makefile.am): Likewise.
45515         * modules/strtok_r (Makefile.am): Likewise.
45516         * modules/strtol (Makefile.am): Likewise.
45517         * modules/strtoll (Makefile.am): Likewise.
45518         * modules/strtoul (Makefile.am): Likewise.
45519         * modules/strtoull (Makefile.am): Likewise.
45520         * modules/strtoumax (Makefile.am): Likewise.
45521         * modules/strverscmp (Makefile.am): Likewise.
45522         * modules/time_r (Makefile.am): Likewise.
45523         * modules/timegm (Makefile.am): Likewise.
45524         * modules/tmpfile-safer (Makefile.am): Likewise.
45525         * modules/unistd-safer (Makefile.am): Likewise.
45526         * modules/unlinkdir (Makefile.am): Likewise.
45527         * modules/userspec (Makefile.am): Likewise.
45528         * modules/utime (Makefile.am): Likewise.
45529         * modules/utimecmp (Makefile.am): Likewise.
45530         * modules/utimens (Makefile.am): Likewise.
45531         * modules/vasnprintf (Makefile.am): Likewise.
45532         * modules/vasprintf (Makefile.am): Likewise.
45533         * modules/vsnprintf (Makefile.am): Likewise.
45534         * modules/xalloc (Makefile.am): Likewise.
45535         * modules/xgetcwd (Makefile.am): Likewise.
45536         * modules/xnanosleep (Makefile.am): Likewise.
45537         * modules/xreadlink (Makefile.am): Likewise.
45538         * modules/xstrtod (Makefile.am): Likewise.
45539         * modules/xstrtol (Makefile.am): Likewise.
45540         * modules/xstrtold (Makefile.am): Likewise.
45541         * modules/yesno (Makefile.am): Likewise.
45542
45543 2006-10-12  Jim Meyering  <jim@meyering.net>
45544
45545         * m4/getloadavg.m4: Revert the change below.
45546
45547         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45548         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45549         fail with a symlink, which is what coreutils' ./bootstrap now
45550         creates by default.
45551
45552 2006-10-12  Bruno Haible  <bruno@clisp.org>
45553
45554         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45555         mingw.
45556         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45557         MSVC and mingw explicitly.
45558
45559 2006-10-11  Simon Josefsson  <jas@extundo.com>
45560             Bruno Haible  <bruno@clisp.org>
45561
45562         Add support for multiple gnulib-tool invocations in the scope of a
45563         single configure.ac file.
45564         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45565         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45566         with the same contents as the _LIBADD variable.
45567         (func_emit_initmacro_start, func_emit_initmacro_end,
45568         func_emit_initmacro_done): New functions.
45569         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45570         gl_LIBOBJS and gl_LTLIBOBJS.
45571
45572 2006-10-11  Bruno Haible  <bruno@clisp.org>
45573
45574         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45575         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45576         autoreconf. Instead, invoke autopoint explicitly but move back the
45577         *.m4 files from gnulib.
45578
45579 2006-10-11  Bruno Haible  <bruno@clisp.org>
45580
45581         * gnulib-tool (func_usage): Make module names after --create-testdir
45582         optional.
45583         (func_create_testdir): If no module was specified, use nearly all
45584         modules.
45585
45586 2006-10-12  Jim Meyering  <jim@meyering.net>
45587
45588         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45589         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45590         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45591         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45592         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45593         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45594         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45595         (fts_set_stat_required): New function.
45596         (fts_open): Defer the calls to fts_stat, if possible or requested.
45597         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45598         into fts_stat itself.
45599         (fts_read): Perform any required (deferred) fts_stat call.
45600         (fts_build): Likewise, for the directory we're about to open and read.
45601         In the readdir loop, carefully decide whether each entry will require
45602         an eventual call to fts_stat, using dirent.d_type info if available.
45603         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45604         a command line argument into this function.  Update all callers.
45605         Map a return value of FTS_DOT to FTS_D for a command line argument.
45606         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45607         Thanks to Miklos Szeredi for his tenacity and for the initial
45608         bug report about "find" failing on a FUSE-based file system.
45609
45610         * lib/fts.c (fts_open): Use consistent indentation.
45611
45612 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45613
45614         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
45615         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
45616         reported by Jim Meyering.  All uses of cache variables renamed
45617         to match Autoconf's.
45618         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
45619         the other one.
45620
45621         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45622         Fix misspelling in diagnostic.
45623
45624 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45625
45626         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
45627         defined.  Problem reported by Matthew Woehlke.
45628
45629         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
45630         Add support for Tandem NonStop R series.
45631         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
45632         Use new macro.
45633
45634         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
45635         (has_trailing_slash): Omit size arg; all callers changed.
45636         Omit 'inline', since it doesn't help performance and we'd
45637         need to configure it.
45638         Don't count //, ///, etc. as having a trailing slash.
45639         As a side effect, this removes a C99ism reported by Matthew Woehlke.
45640         (rpl_rename_dest_slash): On failure, use rename's errno rather
45641         than (in some cases) an incorrect or junk errno.
45642         Simplify code by removing need to compute length; this does
45643         cause it to make two passes instead of one over the file name,
45644         but it's worth it.
45645
45646         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45647         change, since Autoconf's version may no longer be appropriate now
45648         that we are using CVS Autoconf's version.  Add support for Tandem.
45649
45650 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45651             Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45654         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45655         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45656         gl_AC_TYPE_LONG_LONG.
45657
45658         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45659         instead of HAVE_LONG_LONG.
45660         * lib/printf-args.c (printf_fetchargs): Likewise.
45661         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45662         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45663         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45664         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45665         gl_AC_TYPE_LONG_LONG.
45666
45667 2006-10-11  Bruno Haible  <bruno@clisp.org>
45668
45669         * m4/longlong.m4: Add comments.
45670         * m4/ulonglong.m4: Likewise.
45671
45672 2006-10-10  Bruno Haible  <bruno@clisp.org>
45673
45674         Make it possible to #define stpcpy, strdup to aliases.
45675         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45676         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45677
45678 2006-10-10  Bruno Haible  <bruno@clisp.org>
45679
45680         Make it possible to #define gcd to an alias.
45681         * lib/gcd.c: Include config.h.
45682
45683 2006-10-10  Bruno Haible  <bruno@clisp.org>
45684
45685         Make it possible to #define c_isascii to an alias.
45686         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45687         defined. Undefine the macros before defining them, to avoid gcc
45688         warnings.
45689         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45690         define NO_C_CTYPE_MACROS early.
45691
45692 2006-10-10  Bruno Haible  <bruno@clisp.org>
45693
45694         Make it possible to #define set_program_name to an alias.
45695         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45696         ENABLE_RELOCATABLE early.
45697
45698 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45699
45700         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45701         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45702         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45703         More generally, don't assume that 64-bit signed int is available
45704         if unsigned int is, and vice versa.
45705         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45706         unsigned symbols, not on their signed counterparts.
45707         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45708         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45709         (UINT64_C, UINTMAX_C):
45710         Likewise.
45711         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
45712         unsigned counterparts.
45713         (Have_long_long, Unsigned): New macros.
45714         (Int): Renamed from INT.
45715         (strtoimax): Use the new macros.
45716         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
45717         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
45718         * modules/inttypes (inttypes.h): Substitute
45719         HAVE_UNSIGNED_LONG_LONG_INT.
45720         * modules/stdint (stdint.h): Likewise.
45721         (Files): Add m4/ulonglong.m4.
45722
45723 2006-10-10  Bruno Haible  <bruno@clisp.org>
45724
45725         Fix a gcc -Wshadow warning.
45726         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
45727         to 'bucket'.
45728         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
45729         gl_linked_indexof_from_to): Likewise.
45730         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
45731         Likewise.
45732         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
45733         Likewise.
45734         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
45735         Reported by Eric Blake.
45736
45737 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
45740         for NetBSD.  Problem reported by Bruno Haible.
45741
45742 2006-10-09  Jim Meyering  <jim@meyering.net>
45743
45744         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
45745         Patch from Bruno Haible.
45746
45747 2006-10-09  Jim Meyering  <jim@meyering.net>
45748
45749         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
45750         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
45751         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
45752
45753 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         Don't include <config.h> twice; this doesn't work in some cases,
45756         e.g., when config.h has "#define intmax_t long long int" and
45757         we include <config.h>, <inttypes.h>, <config.h> in that order.
45758         Problem reported by Matthew Woehlke in:
45759         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
45760         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
45761         * lib/fts-cycle.c: Don't include config.h.
45762         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
45763         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
45764         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
45765         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
45766         inttypes.h.
45767         * lib/xstrtoumax.c: Likewise.
45768         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
45769         __strtol and the like, so that this module is more like its siblings.
45770         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
45771         Remove; no longer needed now that we assume gnulib inttypes.h.
45772
45773 2006-10-08  Bruno Haible  <bruno@clisp.org>
45774
45775         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
45776         option.
45777
45778 2006-10-07  Jim Meyering  <jim@meyering.net>
45779
45780         * modules/inttypes (inttypes.h): Revert what seems to have been
45781         an inadvertent part of today's change: use "|", not "/" in the
45782         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
45783
45784 2006-10-07  Bruno Haible  <bruno@clisp.org>
45785
45786         * modules/sublist: New file.
45787
45788 2006-10-07  Bruno Haible  <bruno@clisp.org>
45789
45790         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
45791         * modules/argz (argz.h): Likewise.
45792         * modules/arpa_inet (arpa/inet.h): Likewise.
45793         * modules/byteswap (byteswap.h): Likewise.
45794         * modules/configmake (configmake.h): Likewise.
45795         * modules/fcntl (fcntl.h): Likewise.
45796         * modules/fnmatch (fnmatch.h): Likewise.
45797         * modules/getopt (getopt.h): Likewise.
45798         * modules/glob (glob.h): Likewise.
45799         * modules/inttypes (inttypes.h): Likewise.
45800         * modules/netinet_in (netinet/in.h): Likewise.
45801         * modules/poll (poll.h): Likewise.
45802         * modules/stdbool (stdbool.h): Likewise.
45803         * modules/stdint (stdint.h): Likewise.
45804         * modules/sys_select (sys/select.h): Likewise.
45805         * modules/sys_socket (sys/socket.h): Likewise.
45806         * modules/sys_stat (sys/stat.h): Likewise.
45807         * modules/sysexits (sysexits.h): Likewise.
45808         * modules/unistd (unistd.h): Likewise.
45809         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45810         Add a "DO NOT EDIT" comment to the generated file.
45811         (func_import): Likewise for gnulib-comp.m4.
45812
45813 2006-10-07  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/gl_sublist.h: New file.
45816         * lib/gl_sublist.c: New file.
45817
45818 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45819
45820         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
45821         name (relative to the original working directory) and the file
45822         name component (relative to the temporary working directory).  All
45823         callers changed.
45824         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
45825         * lib/mkdir-p.c (make_dir_parents): Likewise.
45826         * lib/mkdir-p.h (make_dir_parents): Likewise.
45827
45828 2006-10-06  Eric Blake  <ebb9@byu.net>
45829
45830         Define several macros for use by the clean-temp module.
45831         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
45832         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
45833         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
45834
45835         * lib/clean-temp.h (close_stream_temp): New declaration.
45836         * lib/clean-temp.c (includes): Pull in headers according to what
45837         other modules are in use.
45838         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
45839
45840 2006-10-06  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
45843         instead of fopen, fwriteerror.
45844
45845 2006-10-06  Bruno Haible  <bruno@clisp.org>
45846
45847         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
45848         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
45849         int.
45850         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
45851         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
45852         Return an error indicator.
45853         Suggested by Eric Blake.
45854
45855 2006-10-06  Bruno Haible  <bruno@clisp.org>
45856
45857         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
45858         Reported by Eric Blake.
45859
45860 2006-10-06  Bruno Haible  <bruno@clisp.org>
45861
45862         * modules/closeout (Description): Mention stderr too.
45863
45864 2006-10-06  Bruno Haible  <bruno@clisp.org>
45865         and Paul Eggert  <eggert@cs.ucla.edu>
45866
45867         * lib/closeout.c (close_stdout): Also close stderr.
45868         * lib/closeout.h: Update comment.
45869
45870 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45871
45872         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
45873         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
45874         * lib/dirchownmod.c: Include lchown.h.
45875         * lib/lchown.c: Don't include files that lchown.h now includes.
45876         Don't declare chown, since lchown.h now does that.
45877         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
45878         (lchown): Define to rpl_chown if lchown is declared but
45879         does not exist.  Declare using a prototype if lchown is not
45880         declared.  Add a copyright notice.
45881         * lib/mkstemp.h: Include <unistd.h>.
45882         * lib/openat.c: Include lchown.h.
45883
45884         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
45885         we now test for that separately.
45886         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
45887         rather than O_NOFOLLOW, when testing whether it's possible to
45888         avoid a race condition reliably.
45889         * lib/savewd.c (savewd_chdir): Likewise.
45890
45891         Remove macros that are no longer needed now that stdint.h is
45892         reliable.
45893         * lib/fsusage.c (UINTMAX_MAX): Remove.
45894         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
45895         * lib/utimecmp.c (SIZE_MAX): Remove.
45896
45897         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
45898
45899         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
45900         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
45901         O_NOATIME works.
45902
45903 2006-10-05  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/gl_list.h (gl_sortedlist_search_from_to,
45906         gl_sortedlist_indexof_from_to): New declarations.
45907         (gl_list_implementation): New fields sortedlist_search_from_to,
45908         sortedlist_indexof_from_to.
45909         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
45910         inline functions.
45911         * lib/gl_list.c (gl_sortedlist_search_from_to,
45912         gl_sortedlist_indexof_from_to): New functions.
45913         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
45914         function.
45915         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
45916         (gl_array_sortedlist_search_from_to): New function.
45917         (gl_array_list_implementation): Update.
45918         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
45919         function.
45920         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
45921         (gl_carray_sortedlist_search_from_to): New function.
45922         (gl_carray_list_implementation): Update.
45923         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
45924         gl_linked_sortedlist_indexof_from_to): New functions.
45925         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45926         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45927         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
45928         gl_tree_sortedlist_indexof_from_to): New functions.
45929         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45930         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45931         Update.
45932         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45933         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
45934         Update.
45935
45936 2006-10-05  Bruno Haible  <bruno@clisp.org>
45937
45938         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
45939         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
45940         (struct gl_list_implementation): Add fields search_from_to,
45941         indexof_from_to. Remove fields search, indexof.
45942         (gl_list_search): Use the search_from_to method.
45943         (gl_list_search_from, gl_list_search_from_to): New functions.
45944         (gl_list_indexof): Use the indexof_from_to method.
45945         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
45946         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
45947         (gl_list_search_from, gl_list_search_from_to): New functions.
45948         (gl_list_indexof): Use the indexof_from_to method.
45949         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
45950         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
45951         gl_array_indexof. Add start_index, end_index arguments.
45952         (gl_array_search_from_to): Renamed from gl_array_search. Add
45953         start_index, end_index arguments.
45954         (gl_array_remove, gl_array_list_implementation): Update.
45955         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
45956         gl_carray_indexof. Add start_index, end_index arguments.
45957         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
45958         start_index, end_index arguments.
45959         (gl_carray_remove, gl_carray_list_implementation): Update.
45960         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
45961         gl_linked_search. Add start_index, end_index arguments.
45962         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
45963         start_index, end_index arguments.
45964         (gl_linked_remove): Update.
45965         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45966         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45967         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
45968         field to 'size_t'.
45969         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
45970         gl_tree_search. Add start_index, end_index arguments.
45971         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
45972         start_index, end_index arguments.
45973         (gl_tree_remove): Update.
45974         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45975         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45976         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
45977         function.
45978         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
45979         gl_tree_search. Add start_index, end_index arguments.
45980         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
45981         start_index, end_index arguments.
45982         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45983         Update.
45984         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45985
45986 2006-10-05  Bruno Haible  <bruno@clisp.org>
45987
45988         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
45989
45990         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
45991         fwriteerror_temp): New declarations.
45992         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
45993         (descriptors): New variable.
45994         (cleanup): First, close the descriptors.
45995         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
45996         fclose_temp, fwriteerror_temp): New functions.
45997
45998 2006-10-04  Jim Meyering  <jim@meyering.net>
45999
46000         * lib/fts.c (fts_open): Tiny comment change.
46001
46002 2006-10-04  Bruno Haible  <bruno@clisp.org>
46003
46004         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46005         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46006         gl_LOCK_BODY.
46007         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46008         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46009         gl_LOCK_EARLY_BODY.
46010         (gl_LOCK): Require gl_LOCK_BODY.
46011
46012 2006-10-04  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46015         (gl_oset_search_atleast): New declaration.
46016         (struct gl_oset_implementation): Add field 'search_atleast'.
46017         (gl_oset_search_atleast): New inline function.
46018         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46019         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46020         (gl_array_oset_implementation): Update.
46021         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46022         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46023         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46024
46025 2006-10-04  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46028
46029 2006-10-03  Bruno Haible  <bruno@clisp.org>
46030
46031         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46032         from gl_avltreehash_list_implementation.
46033
46034 2006-10-03  Bruno Haible  <bruno@clisp.org>
46035
46036         * lib/gl_oset.c (gl_oset_add): Fix return type.
46037
46038 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46039
46040         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46041
46042 2006-10-02  Eric Blake  <ebb9@byu.net>
46043
46044         * modules/strnlen (Depends-on): Add extensions.
46045
46046 2006-10-02  Eric Blake  <ebb9@byu.net>
46047
46048         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46049         definition in 2.60+.
46050
46051 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46052
46053         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46054         checks.
46055
46056 2006-10-02  Bruno Haible  <bruno@clisp.org>
46057
46058         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46059         to the AUTOMAKE_OPTIONS.
46060         Reported by Jim Meyering.
46061
46062 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46063
46064         Work around bug in Solaris 10 /proc file system:
46065         /proc/self/fd/NNN/.. isn't the parent directory of
46066         the directory whose file descriptor is NNN.  This needs to
46067         be worked around at run time, not compile time, since a
46068         program might be built on Solaris 8, where things work, and
46069         run on Solaris 10.
46070         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46071         to use the following interface instead:
46072         (OPENAT_BUFFER_SIZE): New macro.
46073         (openat_proc_name): New function.
46074         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46075         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46076         Likewise.
46077         * lib/openat-proc.c: New file.
46078         * modules/openat (Files): Add lib/openat-proc.c.
46079         (Depends-on): Add same-inode, stdbool.
46080         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46081
46082 2006-09-29  Bruno Haible  <bruno@clisp.org>
46083
46084         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46085         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46086         argument. Set stdout_closed before testing for ferror, not after.
46087         (fwriteerror, fwriteerror_no_ebadf): New functions.
46088
46089 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46090
46091         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46092
46093 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46094
46095         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46096         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46097
46098 2006-09-28  Jim Meyering  <jim@meyering.net>
46099
46100         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46101         Include <unistd.h>.
46102
46103 2006-09-28  Bruno Haible  <bruno@clisp.org>
46104
46105         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46106         * modules/linkedhash-list (Depends-on): Likewise.
46107         * modules/rbtreehash-list (Depends-on): Likewise.
46108
46109 2006-09-28  Bruno Haible  <bruno@clisp.org>
46110
46111         * lib/strndup.h: Simplify the redefinition of strndup.
46112         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46114
46115 2006-09-28  Bruno Haible  <bruno@clisp.org>
46116
46117         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46118         * lib/gl_linkedhash_list.c: Likewise.
46119         * lib/gl_rbtreehash_list.c: Likewise.
46120
46121 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46122
46123         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46124         getaddrinfo.
46125
46126         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46127         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46128         it causes <stdio_ext.h> to cause a compile-time error.
46129         Problem reported by Nelson H. F. Beebe.
46130         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46131         of HAVE_DECL___PENDING.
46132
46133         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46134         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46135         declaration.
46136
46137 2006-09-27  Jim Meyering  <jim@meyering.net>
46138
46139         This file could end up with a definition for a function
46140         named __strndup, rather than rpl_strndup on a system with
46141         incomplete weak_alias support.
46142         * lib/strndup.c (strndup): Rename from __strndup.
46143         Remove #defines that used to map __strndup to strndup.
46144         Don't use K&R prototypes.
46145         Remove LIBC-related code, since this file is not sync'd with glibc.
46146         * lib/strndup.h: Revamp, accordingly.
46147         * m4/strndup.m4: Modernize.
46148
46149 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * modules/savewd (Depends-on): Add 'raise'.
46152         * lib/savewd.c: Include <signal.h>, for 'raise'.
46153
46154 2006-09-26  Jim Meyering  <jim@meyering.net>
46155
46156         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46157         when we detect Darwin 8.7.0's acl_get_file bug.
46158         Rearrange to perform the new (below) run-test while $LIBS
46159         contains any acl-related library.  Set USE_ACL at the end.
46160         (gl_ACL_GET_FILE): New function.
46161
46162 2006-09-26  Eric Blake  <ebb9@byu.net>
46163
46164         * lib/verror.c: Include <config.h> unconditionally.
46165
46166 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         * modules/clock-time (Maintainer): Add self.
46169         * modules/getlogin_r (Depends-on): Add extensions.
46170
46171 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46172
46173         * modules/clock-time: New module.
46174         * modules/nanosleep (Depends-on): Add clock-time.
46175         * modules/gethrxtime (Depends-on): Likewise.
46176         * modules/gettime (Depends-on): Likewise.
46177         * modules/settime (Depends-on): Likewise.
46178
46179         * modules/fts-lgpl: Depend on openat.
46180         * modules/mkancesdirs: Depend on savewd.
46181         * modules/mkdir-p: Likewise.
46182
46183 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46184
46185         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46186
46187         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46188         `gl_have_arbitrary_file_name_length_limit' to
46189         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46190         actually works between configure runs.
46191
46192 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46193             Bruno Haible  <bruno@clisp.org>
46194
46195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46196
46197 2006-09-25  Jim Meyering  <jim@meyering.net>
46198
46199         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46200         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46201
46202 2006-09-25  Eric Blake  <ebb9@byu.net>
46203
46204         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46205         exec's in 2006-09-18 patch when shuffling fds.
46206
46207 2006-09-25  Bruno Haible  <bruno@clisp.org>
46208
46209         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46210         Reported by Jim Meyering.
46211
46212 2006-09-24  Jim Meyering  <jim@meyering.net>
46213
46214         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46215         compare a pointer against a literal "0".  That caused failures with
46216         at least HP-UX's hpcc.
46217
46218 2006-09-22  Simon Josefsson  <jas@extundo.com>
46219
46220         * modules/gc-sha1:
46221         * modules/gc-md4:
46222         * modules/gc-hmac-sha1:
46223         * modules/gc-hmac-md5:
46224         * modules/gc-des:
46225         * modules/gc-arcfour: Distribute more files.
46226
46227 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46228
46229         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46230         (gl_linked_iterator_from_to): Initialize struct completely.
46231         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46232         (gl_tree_iterator_from_to): Likewise
46233         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46234         * lib/gl_array_list.c [lint] (gl_array_iterator)
46235         (gl_array_iterator_from_to): Likewise.
46236         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46237         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46238         (gl_carray_iterator_from_to): Likewise.
46239
46240         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46241         * lib/md4.c (md4_process_block): Remove unused variable.
46242         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46243         parentheses for clarity.
46244
46245 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46246
46247         * modules/bison-i18n (Depends-on): Add gettext.
46248
46249 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46250
46251         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46252         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46253         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46254         also add missing comma that caused broken test.
46255         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46256         stdlib.h, for `abort'.
46257         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46258         variables.
46259         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46260         include unistd.h if present, for `rmdir'.
46261         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46262         variables.
46263         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46264         in the process include standard headers for prototypes.
46265         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46266         gets declared on GNU/Linux.
46267         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46268         unistd.h, for `rmdir'.
46269         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46270
46271         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46272         always true.
46273         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46274
46275         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46276
46277 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46278
46279         * gnulib-tool (func_version): Create output all at once.  This
46280         may help avoid triggering unnecessary SIGPIPEs, and at any
46281         rate it doesn't hurt.
46282
46283 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46284             Bruno Haible  <bruno@clisp.org>
46285
46286         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46287         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46288         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46289
46290         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46291         (gl_FUNC_VASPRINTF): Invoke it.
46292
46293 2006-09-22  Bruno Haible  <bruno@clisp.org>
46294
46295         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46296         getloadavg.c as first argument.
46297
46298 2006-09-22  Bruno Haible  <bruno@clisp.org>
46299
46300         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46301         at the beginning of the gl_INIT macro.
46302         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46303         gl_GETLOADAVG.
46304
46305 2006-09-22  Bruno Haible  <bruno@clisp.org>
46306
46307         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46308         module.
46309         Suggested by Ralf Wildenhues.
46310
46311 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46312
46313         Import this patch from libc:
46314
46315         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46316
46317         * lib/regex_internal.c (re_string_reconstruct): Handle
46318         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46319         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46320         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46321         re_string_context_at.
46322
46323         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46324         now requires it.
46325         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46326         gl_REGEX now does it for us.
46327         (gl_REGEX): Add test taken from
46328         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46329
46330         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46331         Check that large offsets work.  Modernize Autoconf usages.
46332         Prefer "yes" to mean a good thing rather than a bad.
46333         Don't put "#define mkstemp" in config.h, as this might interfere
46334         with standard system headers that "#define mkstemp mkstemp64".
46335
46336         * modules/mkstemp (Depends-on): Add extensions, so that
46337         mkstemp is visible on some platforms.
46338         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46339         (Include): Change to "mkstemp.h" from <stdlib.h>.
46340         (Files): Add mkstemp.h.
46341
46342         * lib/mkstemp.h: New file, since some standard headers
46343         #define mkstemp.
46344         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46345         Include "mkstemp.h".
46346         Make the _LIBC code resemble glibc original more,
46347         e.g., use K&R style.
46348         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46349         (mkstemp): Remove, since mkstemp.h does this for us.
46350         * lib/stdlib--.h: Include mkstemp.h.
46351
46352         Import this patch from libc:
46353
46354         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46355
46356         * lib/tempname.c (__gen_tempname): Change attempts_min
46357         into a macro.  Use preprocessor to decide how to initialize
46358         attempts [Coverity CID 67].
46359
46360 2006-09-20  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/mkdtemp.c: Import from libc.
46363         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46364                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46365                 attempts_min into a macro.  Use preprocessor to decide how to
46366                 initialize attempts [Coverity CID 67].
46367         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46368                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46369                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46370
46371 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46372
46373         * gnulib-tool (func_exit): New function, to allow to pass the
46374         exit status portably through the trap.  Use everywhere.
46375         (--help, --version): Signal a write error.
46376         (trap): catch SIGPIPE, for write errors.
46377         Exit at the end of the trap, with the correct exit status.
46378
46379 2006-09-19  Karl Berry  <karl@gnu.org>
46380
46381         * doc/gnulib.texi: note about the license texinfo files.
46382
46383 2006-09-19  Eric Blake  <ebb9@byu.net>
46384
46385         * gnulib-tool: Avoid space-tab.
46386
46387 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46390         that prevented coreutils 6.1 from building.  Problem reported
46391         by Petter Reinholdtsen.
46392
46393 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         * gnulib-tool (avoidlist): Fix typo that broke options like
46396         --avoid=lock that are used by coreutils bootstrap.
46397
46398 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46399
46400         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46401         more systematically.
46402
46403 2006-09-18  Jim Meyering  <jim@meyering.net>
46404
46405         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46406
46407 2006-09-18  Bruno Haible  <bruno@clisp.org>
46408
46409         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46410
46411 2006-09-18  Bruno Haible  <bruno@clisp.org>
46412
46413         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46414         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46415         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46416         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46417         * m4/gettext.m4: Require autoconf >= 2.52.
46418         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46419         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46420         of gl_cv_header_inttypes_h.
46421
46422 2006-09-18  Bruno Haible  <bruno@clisp.org>
46423
46424         * lib/javaversion.c: Include configmake.h.
46425
46426 2006-09-18  Bruno Haible  <bruno@clisp.org>
46427
46428         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46429         avoid that the while loops be executed in a subshell.
46430
46431 2006-09-18  Bruno Haible  <bruno@clisp.org>
46432
46433         * MODULES.html.sh (func_module): Break long lines.
46434         Suggested by Bruce Korb <bkorb@gnu.org>.
46435
46436 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46437
46438         Speed up by a factor of 1.12.
46439         * gnulib-tool (nl): New variable.
46440         (func_import): Rewrite include directive extraction to only read each
46441         directive once.
46442
46443 2006-09-17  Bruno Haible  <bruno@clisp.org>
46444
46445         * modules/javaversion (Makefile.am): Remove DEFS setting.
46446         (Depends-on): Add configmake, for PKGDATADIR definition.
46447
46448 2006-09-17  Bruno Haible  <bruno@clisp.org>
46449
46450         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46451
46452 2006-09-17  Bruno Haible  <bruno@clisp.org>
46453
46454         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46455         (func_modules_transitive_closure, func_modules_add_dummy,
46456         func_modules_to_filelist, func_import, func_create_testdir,
46457         func_create_megatestdir, ...): Use it wherever possible.
46458         Suggested by Ralf Wildenhues.
46459
46460 2006-09-16  Karl Berry  <karl@gnu.org>
46461
46462         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46463         to avoid sectioning errors.
46464         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46465         [ifinfo]: blank line after @center-ed titles.
46466         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46467         Spell FSF address consistently with others.
46468         (These changes approved by rms.)
46469
46470 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46471
46472         Speed up by a factor of 1.61.
46473         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46474         already checked module names again.
46475
46476 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46477
46478         Speed up by a factor of 1.13.
46479         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46480         for new_files, and the input to func_add_or_update.
46481
46482 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46483
46484         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46485         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46486
46487 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46488
46489         * modules/mkancesdirs (Depends-on): Add fcntl.
46490         * modules/savewd: New file.
46491         * MODULES.html.sh (File system functions): Add savewd.
46492
46493         * modules/configmake (Makefile.am): Add support for the
46494         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46495
46496 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46497
46498         * m4/savewd.m4: New file.
46499
46500 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46501
46502         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46503         (dirchownmod): New arg FD.  All callers changed.
46504         Use FD rather than opening the directory ourself, as opening is
46505         now the caller's responsibility.
46506         * lib/dirchownmod.h: Likewise.
46507         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46508         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46509         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46510         (test_dir): Remove.
46511         (mkancesdirs): Return length of prefix of FILE that has already
46512         been made, or -2 if there is a child doing the work.  Redo
46513         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46514         ".", and treat ".." specially since it might stray back into
46515         already-created areas.  Use a subprocess if necessary.  New arg
46516         WD; all users changed.  MAKE_DIR function should now return 1
46517         if it creates a directory that is not readable.  Return -2 if
46518         a child process is spun off.
46519         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46520         Adjust signature to match code.
46521         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46522         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46523         all users changed.
46524         * lib/savewd.c, lib/savewd.h: New files.
46525
46526 2006-09-15  Jim Meyering  <jim@meyering.net>
46527
46528         * modules/rename-dest-slash: New module.
46529         * MODULES.html.sh (posix_compat): Add it here.
46530
46531         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46532
46533 2006-09-15  Jim Meyering  <jim@meyering.net>
46534
46535         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46536         file.
46537
46538         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46539
46540 2006-09-15  Jim Meyering  <jim@meyering.net>
46541
46542         * lib/rename-dest-slash.c (has_trailing_slash): Use
46543         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46544         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46545         test before testing whether SRC is a directory.
46546         Suggestions from Bruno Haible.
46547
46548         Avoid a warning about an unused variable.
46549         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46550         into the #ifdef block where it's used.
46551
46552         * lib/rename-dest-slash.c: New file.
46553
46554 2006-09-14  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/allocsa.c: Include <config.h> unconditionally.
46557         * lib/asnprintf.c: Likewise.
46558         * lib/asprintf.c: Likewise.
46559         * lib/c-strcasecmp.c: Likewise.
46560         * lib/c-strcasestr.c: Likewise.
46561         * lib/c-strncasecmp.c: Likewise.
46562         * lib/c-strstr.c: Likewise.
46563         * lib/classpath.c: Likewise.
46564         * lib/clean-temp.c: Likewise.
46565         * lib/concatpath.c: Likewise.
46566         * lib/copy-file.c: Likewise.
46567         * lib/csharpcomp.c: Likewise.
46568         * lib/csharpexec.c: Likewise.
46569         * lib/execute.c: Likewise.
46570         * lib/fatal-signal.c: Likewise.
46571         * lib/findprog.c: Likewise.
46572         * lib/fwriteerror.c: Likewise.
46573         * lib/gl_array_list.c: Likewise.
46574         * lib/gl_array_oset.c: Likewise.
46575         * lib/gl_avltree_list.c: Likewise.
46576         * lib/gl_avltree_oset.c: Likewise.
46577         * lib/gl_avltreehash_list.c: Likewise.
46578         * lib/gl_carray_list.c: Likewise.
46579         * lib/gl_linked_list.c: Likewise.
46580         * lib/gl_linkedhash_list.c: Likewise.
46581         * lib/gl_list.c: Likewise.
46582         * lib/gl_oset.c: Likewise.
46583         * lib/gl_rbtree_list.c: Likewise.
46584         * lib/gl_rbtree_oset.c: Likewise.
46585         * lib/gl_rbtreehash_list.c: Likewise.
46586         * lib/imaxabs.c: Likewise.
46587         * lib/imaxdiv.c: Likewise.
46588         * lib/javacomp.c: Likewise.
46589         * lib/javaexec.c: Likewise.
46590         * lib/javaversion.c: Likewise.
46591         * lib/linebreak.c: Likewise.
46592         * lib/localcharset.c: Likewise.
46593         * lib/lock.c: Likewise.
46594         * lib/mbchar.c: Likewise.
46595         * lib/mbswidth.c: Likewise.
46596         * lib/mkdtemp.c: Likewise.
46597         * lib/pipe.c: Likewise.
46598         * lib/printf-args.c: Likewise.
46599         * lib/printf-parse.c: Likewise.
46600         * lib/progname.c: Likewise.
46601         * lib/progreloc.c: Likewise.
46602         * lib/readlink.c: Likewise.
46603         * lib/sh-quote.c: Likewise.
46604         * lib/stpcpy.c: Likewise.
46605         * lib/stpncpy.c: Likewise.
46606         * lib/strcasecmp.c: Likewise.
46607         * lib/strcasestr.c: Likewise.
46608         * lib/strcspn.c: Likewise.
46609         * lib/striconv.c: Likewise.
46610         * lib/strncasecmp.c: Likewise.
46611         * lib/strnlen1.c: Likewise.
46612         * lib/strstr.c: Likewise.
46613         * lib/strtok_r.c: Likewise.
46614         * lib/tls.c: Likewise.
46615         * lib/tmpdir.c: Likewise.
46616         * lib/unicodeio.c: Likewise.
46617         * lib/unsetenv.c: Likewise.
46618         * lib/vasnprintf.c: Likewise.
46619         * lib/vasprintf.c: Likewise.
46620         * lib/wait-process.c: Likewise.
46621         * lib/xallocsa.c: Likewise.
46622         * lib/xsetenv.c: Likewise.
46623         * lib/xstriconv.c: Likewise.
46624
46625 2006-09-13  Simon Josefsson  <jas@extundo.com>
46626
46627         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
46628         that internally, suggested by Ralf Wildenhues
46629         <Ralf.Wildenhues@gmx.de>.
46630
46631 2006-09-13  Simon Josefsson  <jas@extundo.com>
46632
46633         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
46634         @LIBOBJS@.
46635         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46636
46637 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46638
46639         * lib/_fpending.c: Include <config.h> unconditionally, since we no
46640         longer worry about uses that don't define HAVE_CONFIG_H.
46641         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46642         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46643         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46644         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46645         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46646         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46647         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46648         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46649         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46650         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46651         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46652         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46653         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46654         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46655         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46656         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46657         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46658         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46659         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46660         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46661         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46662         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46663         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46664         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46665         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46666         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46667         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46668         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46669         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46670         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46671         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46672         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46673         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46674         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46675         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46676         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46677         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46678         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46679         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46680         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46681         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46682         Likewise.
46683
46684 2006-09-13  Eric Blake  <ebb9@byu.net>
46685
46686         * lib/getopt.c: Fix typo in last commit.
46687
46688 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46689
46690         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46691         dgettext.
46692
46693 2006-09-12  Jim Meyering  <jim@meyering.net>
46694
46695         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46696         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46697         Reported by Nelson H. F. Beebe.
46698
46699 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46700
46701         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46702         program_invocation_name and program_invocation_short_name are
46703         initialized.
46704         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46705         and program_invocation_short_name to argp.h, so they are visible
46706         to user programs.
46707         * lib/argp.h: Likewise
46708
46709 2006-09-10  Bruno Haible  <bruno@clisp.org>
46710
46711         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
46712         m4/inttypes_h.m4, m4/uintmax_t.m4.
46713
46714 2006-09-10  Bruno Haible  <bruno@clisp.org>
46715
46716         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
46717         gl_AC_TYPE_UINTMAX_T.
46718
46719 2006-09-10  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
46722
46723 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46724
46725         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
46726         convention.  Text proposed by Bruno Haible.
46727         (struct argp_option): Document the use of N_() wrappers.
46728
46729         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
46730         '\v', and translate the two parts separately, instead of feeding
46731         the whole string to gettext.  This allows to exclude
46732         '\v' from the strings visible to the translator by writing doc
46733         strings as N_("..") "\v" N_("..").
46734
46735 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * config/srclist.txt: Undo latest change; the bug was fixed.
46738
46739 2006-09-09  Bruno Haible  <bruno@clisp.org>
46740
46741         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
46742         assignments if building a library without libtool.
46743         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
46744         in func_emit_lib_Makefile_am.
46745         (func_import): When building a static library libfoo.a, arrange to
46746         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
46747         (func_create_testdir): Likewise.
46748         * modules/gc (configure.ac, Makefile.am): If building statically,
46749         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
46750         * modules/iconvme (configure.ac, Makefile.am): Likewise.
46751         * modules/striconv (configure.ac, Makefile.am): Likewise.
46752         Based on a suggestion by Ralf Wildenhues.
46753
46754 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46755
46756         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46757         Check for unistd.h too, since Autoconf doesn't assume POSIX.
46758         Also:
46759
46760         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46761         Add year_2050_test to catch glibc bug 2821
46762         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46763
46764         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46765         Prefer #ifdef to #if.
46766
46767         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
46768         Return from 'main' instead of calling 'exit'.
46769
46770 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46771
46772         * lib/mktime.c (guess_time_tm): Fix bug where mktime
46773         returned the maximum time_t value rather than (time_t) -1.
46774         Problem originally reported by William Bardwell
46775         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46776
46777         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46778         Moved to here ...
46779         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46780         ... from here.
46781
46782 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46783
46784         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
46785         2821 is fixed.
46786
46787 2006-09-08  Jim Meyering  <jim@meyering.net>
46788
46789         Don't make generated files read-only.  That would bother too many
46790         people.  However, do retain the ability to work when targets are
46791         read-only: remove the destination and temporary files before writing
46792         them (when generated via sed or echo), or by using the -f option for
46793         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
46794         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46795         * modules/byteswap, modules/configmake, modules/fcntl:
46796         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46797         * modules/localcharset, modules/netinet_in, modules/poll:
46798         * modules/stdbool, modules/stdint, modules/sys_select:
46799         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46800
46801 2006-09-08  Jim Meyering  <jim@meyering.net>
46802
46803         Avoid new build failure on FreeBSD 6.0.
46804         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
46805         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
46806         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
46807
46808 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46809
46810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
46811
46812 2006-09-07  Jim Meyering  <jim@meyering.net>
46813
46814         Fix global typo in last change: use chmod u-w, not chmod u-x.
46815         Spotted by Paul Eggert and Bruce Korb.
46816         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46817         * modules/byteswap, modules/configmake, modules/fcntl:
46818         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46819         * modules/localcharset, modules/netinet_in, modules/poll:
46820         * modules/stdbool, modules/stdint, modules/sys_select:
46821         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46822
46823 2006-09-06  Jim Meyering  <jim@meyering.net>
46824
46825         Make generated files be read-only.
46826         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
46827         Ensure that each generated file is now read-only.
46828         * modules/argz: Likewise.
46829         * modules/arpa_inet: Likewise.
46830         * modules/byteswap: Likewise.
46831         * modules/configmake: Likewise.
46832         * modules/fcntl: Likewise.
46833         * modules/fnmatch: Likewise.
46834         * modules/getopt: Likewise.
46835         * modules/glob: Likewise.
46836         * modules/inttypes: Likewise.
46837         * modules/netinet_in: Likewise.
46838         * modules/poll: Likewise.
46839         * modules/stdbool: Likewise.
46840         * modules/stdint: Likewise.
46841         * modules/sys_select: Likewise.
46842         * modules/sys_socket: Likewise.
46843         * modules/sys_stat: Likewise.
46844         * modules/sysexits: Likewise.
46845         * modules/localcharset: Same as above, but continue using temporary
46846         file named "t-$@" (why different?) rather than the "$@-t" used
46847         everywhere else.
46848
46849         * modules/sysexits (Makefile.am): Replace literal occurrences
46850         of "sysexit.h" more readable, and more consistent, "$@".
46851
46852 2006-09-06  Bruno Haible  <bruno@clisp.org>
46853
46854         * modules/striconv: New file.
46855         * modules/xstriconv: New file.
46856         * MODULES.html.sh (Internationalization functions): Add striconv,
46857         xstriconv.
46858
46859 2006-09-06  Bruno Haible  <bruno@clisp.org>
46860
46861         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
46862         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
46863         not using libtool correctly.
46864
46865 2006-09-06  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/striconv.h: New file.
46868         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
46869         iconvstring.c.
46870         * lib/xstriconv.h: New file.
46871         * lib/xstriconv.c: New file.
46872
46873 2006-09-06  Bruno Haible  <bruno@clisp.org>
46874
46875         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46876         lib_..._LDFLAGS.
46877
46878 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46879
46880         * lib/argz_.h: Sync from Libtool.
46881
46882         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
46883                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46884
46885         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
46886
46887 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46888
46889         * modules/trim: New file.
46890
46891 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46892
46893         * lib/trim.h: New file.
46894         * lib/trim.c: New file.
46895
46896 2006-09-05  Bruno Haible  <bruno@clisp.org>
46897
46898         * MODULES.html.sh (String handling): Add trim.
46899
46900 2006-09-04  Karl Berry  <karl@gnu.org>
46901
46902         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
46903         until next release.
46904
46905 2006-09-03  Bruno Haible  <bruno@clisp.org>
46906
46907         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
46908         correctly.
46909
46910 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46911
46912         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
46913         not gl_GETLOADAVG.  Omit unneeded semicolons.
46914         Problems reported by Ralf Wildenhues in
46915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
46916         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
46917         at the end, which is the usual gnulib style.
46918
46919         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
46920         of doing all the work ourselves.
46921         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
46922         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
46923
46924 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46925
46926         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
46927         Problem reported by Ralf Wildenhues in
46928         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
46929
46930         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
46931         HAVE_STRUCT_STATFS_F_FSTYPENAME.
46932
46933 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46934
46935         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
46936         yesterday's patch by changing test -n to test -z.
46937
46938 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46939
46940         * modules/getloadavg (Files): Add m4/getloadavg.m4.
46941         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
46942         the former is now obsolescent.
46943
46944         * modules/chdir-long (Depends-on): Add fcntl.
46945
46946 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46947
46948         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
46949         obsolescent, and programs should use gnulib instead.
46950         * m4/getloadavg.m4: New file, with contents taken from Autoconf
46951         but with prefixes changed.
46952
46953 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46954
46955         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
46956         or stdbool.h, because they might not exist while configuring.
46957
46958         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
46959         Don't include unistd.h or limits.h; not needed, since chdir-long.h
46960         does that for us.
46961         (O_DIRECTORY): Remove.
46962
46963 2006-08-31  Eric Blake  <ebb9@byu.net>
46964
46965         * gnulib-tool: Don't let emacs change spaces to TAB.
46966
46967 2006-08-31  Bruno Haible  <bruno@clisp.org>
46968
46969         * gnulib-tool: When calling func_import more than once, do it in a
46970         subshell.
46971         Reported by Eric Blake <ebb9@byu.net>.
46972
46973 2006-08-31  Bruno Haible  <bruno@clisp.org>
46974
46975         * gnulib-tool (nl): Remove variable.
46976         (sed_transform_lib_file): Use more robust test for config-h module.
46977         (func_import): Fix typo in 2006-08-25 patch.
46978
46979 2006-08-31  Bruno Haible  <bruno@clisp.org>
46980
46981         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
46982         specified, augment Makefile.am variables instead of assigning them.
46983
46984 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46985
46986         Work around a bug in both the Linux and SunOS 64-bit kernels:
46987         nanosleep mishandles sleeps for longer than 2**31 seconds.
46988         Problem reported by Frank v Waveren in
46989         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
46990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
46991         Check for nanosleep bug.
46992         (LIB_NANOSLEEP): Append clock_gettime library if needed.
46993
46994 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46995
46996         Work around a bug in both the Linux and SunOS 64-bit kernels:
46997         nanosleep mishandles sleeps for longer than 2**31 seconds.
46998         Problem reported by Frank v Waveren in
46999         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47000         * lib/nanosleep.c (BILLION): New constant.
47001         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47002         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47003         implementation.
47004
47005 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47006
47007         * modules/nanosleep (Depends-on): Add gettime.
47008
47009 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47010         and Simon Josefsson  <jas@extundo.com>
47011         and Oskar Liljeblad  <oskar@osk.mine.nu>
47012
47013         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47014         * gnulib-tool (func_import): New license type 'unmodifiable license
47015         text'.
47016         * modules/fdl: Use it.  Longer description.
47017         * module/gpl, module/lgpl: New files.
47018
47019 2006-08-30  Jim Meyering  <jim@meyering.net>
47020
47021         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47022         shadowing the parameter.
47023
47024 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47025
47026         Sync from Libtool:
47027
47028         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47029
47030         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47031         sharing with gnulib.  Report by Eric Blake.
47032
47033 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47034
47035         * modules/isapipe: New file.
47036         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47037
47038 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47039
47040         * modules/configmake (Makefile.am): Add a comment, and omit
47041         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47042         by Bruno Haible.
47043
47044 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         * m4/isapipe.m4: New file.
47047
47048 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47049
47050         * lib/isapipe.c, lib/isapipe.h: New files.
47051
47052 2006-08-29  Jim Meyering  <jim@meyering.net>
47053
47054         * modules/configmake (Makefile.am): Make configmake.h depend on
47055         Makefile.  Otherwise, a stale configmake.h could hang around.
47056
47057 2006-08-29  Eric Blake  <ebb9@byu.net>
47058
47059         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47060         resolution of upstream bug 3044.
47061
47062 2006-08-29  Bruno Haible  <bruno@clisp.org>
47063
47064         * modules/localcharset (Depends-on): Add configmake.
47065         (Makefile.am): Remove setting of LIBDIR through DEFS.
47066
47067 2006-08-29  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47070         defined.
47071
47072 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * modules/fcntl: New file.
47075         * modules/chdir-safer (Depends-on): Add fcntl.
47076         * modules/fts: Likewise.
47077         * modules/mkdir-p: Likewise.
47078
47079         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47080         This undoes the most recent change, since we're now addressing the
47081         problem in a different way.
47082
47083         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47084         into output, since the output might be called Makefile.am even
47085         if $makefile_name is something different.
47086         (func_import): Use $makefile_am rather than
47087         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47088         empty.
47089
47090         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47091
47092 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47093
47094         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47095         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47096         recent change to stdint.m4, since we're now addressing the problem in a
47097         different way.
47098
47099 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47100
47101         * m4/fcntl_h.m4: New file.
47102
47103 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47104
47105         * lib/fcntl_.h: New file.
47106         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47107         the fcntl module.
47108         * lib/dirchownmod.c: Likewise.
47109         * lib/fts.c: Likewise.
47110
47111         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47112         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47113         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47114         just before including <inttypes.h>, to avoid circular inclusion.
47115
47116 2006-08-28  Jim Meyering  <jim@meyering.net>
47117
47118         * doc/visibility.texi: Actually read and correct the grammar of the
47119         sentence affected by yesterday's change.
47120
47121 2006-08-28  Eric Blake  <ebb9@byu.net>
47122
47123         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47124         needs wrapper.
47125
47126 2006-08-28  Eric Blake  <ebb9@byu.net>
47127
47128         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47129
47130 2006-08-28  Eric Blake  <ebb9@byu.net>
47131
47132         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47133
47134 2006-08-28  Bruno Haible  <bruno@clisp.org>
47135
47136         * modules/c-strstr: New file, from GNU gettext.
47137         * MODULES.html.sh (String handling): Add c-strstr.
47138
47139 2006-08-28  Bruno Haible  <bruno@clisp.org>
47140
47141         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47142         macros.
47143         Reported by Eric Blake.
47144
47145 2006-08-28  Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47148         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47149         * lib/vasprintf.c: Include errno.h, limits.h.
47150         (EOVERFLOW): New fallback definition.
47151         (vasprintf): Test here whether the string length is > INT_MAX.
47152         * lib/vsnprintf.c: Include errno.h, limits.h.
47153         (EOVERFLOW): New fallback definition.
47154         (vsnprintf): Fix bug when generated string was too long for the buffer.
47155         Test here whether the string length is > INT_MAX.
47156
47157 2006-08-28  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/inttypes_.h (SCNX*): Remove definitions.
47160         Reported by Eric Blake.
47161
47162 2006-08-28  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/c-strstr.h: New file, from GNU gettext.
47165         * lib/c-strstr.c: New file, from GNU gettext.
47166
47167 2006-08-28  Bruno Haible  <bruno@clisp.org>
47168
47169         * gnulib-tool: Reorder some statements.
47170
47171 2006-08-28  Bruno Haible  <bruno@clisp.org>
47172
47173         * gnulib-tool: New option --makefile-name.
47174         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47175         $makefile_name.
47176         (func_import): Write $makefile_name to the cache file, and read it from
47177         there unless explicitly specified. Use $makefile_name as file name
47178         instead of Makefile.am. Adjust the recommendations accordingly.
47179
47180 2006-08-28  Bruno Haible  <bruno@clisp.org>
47181
47182         * gnulib-tool (func_verify_module): Check against misapplying patch.
47183
47184 2006-08-28  Bruno Haible  <bruno@clisp.org>
47185
47186         * gnulib-tool (func_relativize, func_relconcat): New functions.
47187         Give an error if --local-dir is given with --update.
47188         Remove trailing slashes from $local_gnulib_dir.
47189         (func_import): Store the relativized $local_gnulib_dir in
47190         gnulib-cache.m4, and read it from there if not specified explicitly.
47191
47192 2006-08-28  Bruno Haible  <bruno@clisp.org>
47193
47194         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47195         is the current directory. Respect also $local_gnulib_dir.
47196
47197 2006-08-28  Bruno Haible  <bruno@clisp.org>
47198             Simon Josefsson  <jas@extundo.com>
47199
47200         BeOS portability.
47201         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47202
47203 2006-08-27  Jim Meyering  <jim@meyering.net>
47204
47205         * doc/visibility.texi: Remove duplicate word: "pointer".
47206
47207 2006-08-26  Bruno Haible  <bruno@clisp.org>
47208
47209         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47210         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47211         (Makefile.am): Create inttypes.h from inttypes_.h.
47212         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47213
47214         * modules/imaxabs: New file.
47215
47216         * modules/imaxdiv: New file.
47217
47218 2006-08-26  Bruno Haible  <bruno@clisp.org>
47219
47220         * m4/inttypes.m4: New file.
47221         * m4/_inttypes_h.m4: Remove file.
47222         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47223         PRI_MACROS_BROKEN.
47224         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47225
47226         * m4/imaxabs.m4: New file.
47227
47228         * m4/imaxdiv.m4: New file.
47229
47230 2006-08-26  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/inttypes_.h: New file.
47233         * lib/inttypes.h: Remove file.
47234         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47235
47236         * lib/imaxabs.c: New file.
47237
47238         * lib/imaxdiv.c: New file.
47239
47240 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47241
47242         New config-h module, so that "make" output needn't be cluttered
47243         by -DHAVE_CONFIG_H.
47244         * MODULES.html.sh (Support for building libraries and executables):
47245         Add config-h.
47246         * modules/config-h: New file.
47247         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47248         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47249         the config-h module is used.
47250
47251         New configmake module, so that "make" output needn't be cluttered
47252         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47253         * MODULES.html.sh (Support for building libraries and executables):
47254         Add configmake.
47255         * modules/configmake: New file.
47256
47257 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47258
47259         * m4/config-h.m4: New file.
47260
47261 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47262
47263         * config/srclist.txt: Add elisp-comp.
47264
47265 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47266
47267         * MODULES.html.sh (Support for building libraries and executables):
47268         Add elisp-comp.
47269         * build-aux/elisp-comp: New file.
47270         * modules/elisp-comp: New file.
47271
47272 2006-08-24  Bruno Haible  <bruno@clisp.org>
47273
47274         * gnulib-tool (func_create_testdir): Use non-default values of
47275         sourcebase and m4base.
47276
47277 2006-08-24  Bruno Haible  <bruno@clisp.org>
47278
47279         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47280         HTML structure.
47281
47282 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47283
47284         * modules/openat (Depends-on): Add lchown.
47285
47286 2006-08-23  Bruno Haible  <bruno@clisp.org>
47287
47288         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47289         of gl_LOCK_EARLY instead of gl_LOCK.
47290
47291 2006-08-23  Bruno Haible  <bruno@clisp.org>
47292
47293         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47294         on OSF/1 to no.
47295         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47296
47297 2006-08-23  Bruno Haible  <bruno@clisp.org>
47298
47299         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47300         as unusable.
47301
47302         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47303         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47304         (gl_LOCK): New macro.
47305
47306 2006-08-22  Simon Josefsson  <jas@extundo.com>
47307
47308         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47309         to md5 module.
47310
47311 2006-08-22  Simon Josefsson  <jas@extundo.com>
47312
47313         * MODULES.html.sh: Add "Support for maintaining and release
47314         projects".
47315
47316         * build-aux/gnupload: New file, from coreutils.
47317
47318 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         Avoid the need for AC_LIBSOURCES in m4 macros.
47321         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47322         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47323         * modules/check-version (EXTRA_DIST): Add check-version.h.
47324         * modules/crc (EXTRA_DIST): Add crc.h.
47325         * modules/des (EXTRA_DIST): Add des.h.
47326         * modules/gc (EXTRA_DIST): Add gc.h.
47327         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47328         * modules/getline (EXTRA_DIST): Add getline.h.
47329         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47330         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47331         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47332         * modules/md2 (EXTRA_DIST): Add md2.h.
47333         * modules/md4 (EXTRA_DIST): Add md4.h.
47334         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47335         * modules/read-file (EXTRA_DIST): Add read-file.h.
47336         * modules/readline (EXTRA_DIST): Add readline.h.
47337         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47338         rijndael-api-fst.h.
47339
47340 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * m4/rijndael.m4 (gl_ARCFOUR):
47343         * m4/arctwo.m4 (gl_ARCTWO):
47344         * m4/check-version.m4 (gl_CHECK_VERSION):
47345         * m4/crc.m4 (gl_CRC):
47346         * m4/des.m4 (gl_DES):
47347         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47348         * m4/gc.m4 (gl_GC):
47349         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47350         * m4/getline.m4 (gl_FUNC_GETLINE):
47351         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47352         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47353         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47354         * m4/md2.m4 (gl_MD2):
47355         * m4/md4.m4 (gl_MD4):
47356         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47357         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47358         * m4/readline.m4 (gl_FUNC_READLINE):
47359         * m4/rijndael.m4 (gl_RIJNDAEL):
47360         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47361         to get the necessary .h files and whatnot.
47362
47363 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47364
47365         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47366         gnulib rather than the other way around.
47367         * config/srclistvars.sh (COREUTILS): Remove.
47368
47369 2006-08-22  Jim Meyering  <jim@meyering.net>
47370
47371         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47372
47373         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47374
47375 2006-08-22  Eric Blake  <ebb9@byu.net>
47376
47377         * modules/regexprops-generic: New file.
47378         * MODULES.html.sh (Support for building documentation): List it.
47379
47380 2006-08-22  Eric Blake  <ebb9@byu.net>
47381
47382         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47383         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47384         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47385         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47386
47387 2006-08-22  Bruno Haible  <bruno@clisp.org>
47388
47389         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47390         and lib_LTLIBRARIES like the other lib_* variables.
47391
47392 2006-08-22  Bruno Haible  <bruno@clisp.org>
47393
47394         * build-aux/x-to-1.in: New file, from GNU gettext.
47395
47396 2006-08-22  Bruno Haible  <bruno@clisp.org>
47397
47398         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47399         <utmpx.h> exists.
47400
47401 2006-08-22  Bruno Haible  <bruno@clisp.org>
47402
47403         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47404         <utmpx.h> exists.
47405
47406 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47407
47408         BeOS portability.
47409         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47410         exist.
47411         Problem reported by Bruno Haible.
47412
47413 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47414
47415         Avoid the need for AC_LIBSOURCES in m4 macros.
47416         * modules/acl (EXTRA_DIST): Add acl.h.
47417         * modules/argmatch (Files): Add m4/argmatch.m4.
47418         (configure.ac): Add gl_ARGMATCH.
47419         (EXTRA_DIST): Renamed from lib_SOURCES, for
47420         consistency with the other modules.  Remove argmatch.c.
47421         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47422         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47423         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47424         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47425         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47426         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47427         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47428         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47429         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47430         * modules/closeout (EXTRA_DIST): Add closeout.h.
47431         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47432         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47433         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47434         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47435         dirname.h; remove basename.c and stripslash.c.
47436         * modules/exclude (EXTRA_DIST): Add exclude.h.
47437         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47438         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47439         * modules/file-type (EXTRA_DIST): Add file-type.h.
47440         * modules/filemode (EXTRA_DIST): Add filemode.h.
47441         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47442         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47443         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47444         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47445         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47446         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47447         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47448         * modules/getdate (EXTRA_DIST): Add getdate.c.
47449         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47450         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47451         * modules/getpass (EXTRA_DIST): Add getpass.h.
47452         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47453         * modules/group-member (EXTRA_DIST): Add group-member.h.
47454         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47455         * modules/hash (EXTRA_DIST): Add hash.h.
47456         * modules/human (EXTRA_DIST): Add human.h.
47457         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47458         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47459         * modules/lchown (EXTRA_DIST): Add lchown.h.
47460         * modules/long-options (EXTRA_DIST): Add long-options.h.
47461         * modules/lstat (EXTRA_DIST): Add lstat.h.
47462         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47463         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47464         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47465         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47466         * modules/memxor (EXTRA_DIST): Add memxor.h.
47467         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47468         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47469         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47470         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47471         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47472         * modules/physmem (EXTRA_DIST): Add physmem.h.
47473         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47474         * modules/posixver (EXTRA_DIST): Add posixver.h.
47475         * modules/quote (EXTRA_DIST): Add quote.h.
47476         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47477         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47478         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47479         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47480         regex_internal.h regexec.c.
47481         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47482         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47483         * modules/same (EXTRA_DIST): Add same.h.
47484         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47485         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47486         * modules/savedir (EXTRA_DIST): Add savedir.h.
47487         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47488         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47489         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47490         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47491         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47492         * modules/strdup (EXTRA_DIST): Add strdup.h.
47493         * modules/strftime (EXTRA_DIST): Add strftime.h.
47494         * modules/strndup (EXTRA_DIST): Add strndup.h.
47495         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47496         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47497         * modules/time_r (EXTRA_DIST): Add time_r.h.
47498         * modules/timespec (EXTRA_DIST): Add timespec.h.
47499         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47500         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47501         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47502         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47503         * modules/userspec (EXTRA_DIST): Add userspec.h.
47504         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47505         * modules/utimens (EXTRA_DIST): Add utimens.h.
47506         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47507         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47508         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47509         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47510         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47511         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47512         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47513         * modules/yesno (EXTRA_DIST): Add yesno.h.
47514
47515 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47516
47517         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47518
47519         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47520         * m4/dev-ino.m4, same-inode.m4: Remove.
47521
47522         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47523         * m4/acl.m4 (AC_FUNC_ACL):
47524         * m4/backupfile.m4 (gl_BACKUPFILE):
47525         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47526         * m4/canon-host.m4 (gl_CANON_HOST):
47527         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47529         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47530         * m4/cloexec.m4 (gl_CLOEXEC):
47531         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47532         * m4/closeout.m4 (gl_CLOSEOUT):
47533         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47534         * m4/dirname.m4 (gl_DIRNAME):
47535         * m4/exclude.m4 (gl_EXCLUDE):
47536         * m4/exitfail.m4 (gl_EXITFAIL):
47537         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47538         * m4/file-type.m4 (gl_FILE_TYPE):
47539         * m4/filemode.m4 (gl_FILEMODE):
47540         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47541         * m4/fpending.m4 (gl_FUNC_FPENDING):
47542         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47543         * m4/fts.m4 (gl_FUNC_FTS):
47544         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47545         * m4/getdate.m4 (gl_GETDATE):
47546         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47547         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47548         * m4/getpass.m4 (gl_FUNC_GETPASS):
47549         * m4/gettime.m4 (gl_GETTIME):
47550         * m4/getugroups.m4 (gl_GETUGROUPS):
47551         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47552         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47553         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47554         * m4/hash.m4 (gl_HASH):
47555         * m4/idcache.m4 (gl_IDCACHE):
47556         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47557         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47558         * m4/long-options.m4 (gl_LONG_OPTIONS):
47559         * m4/lstat.m4 (gl_FUNC_LSTAT):
47560         * m4/md5.m4 (gl_MD5):
47561         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47562         * m4/memcoll.m4 (gl_MEMCOLL):
47563         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47564         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47565         * m4/memxor.m4 (gl_MEMXOR):
47566         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47567         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47568         * m4/modechange.m4 (gl_MODECHANGE):
47569         * m4/mountlist.m4 (gl_MOUNTLIST):
47570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47571         * m4/openat.m4 (gl_FUNC_OPENAT):
47572         * m4/pathmax.m4 (gl_PATHMAX):
47573         * m4/physmem.m4 (gl_PHYSMEM):
47574         * m4/posixtm.m4 (gl_POSIXTM):
47575         * m4/posixver.m4 (gl_POSIXVER):
47576         * m4/quote.m4 (gl_QUOTE):
47577         * m4/quotearg.m4 (gl_QUOTEARG):
47578         * m4/readtokens.m4 (gl_READTOKENS):
47579         * m4/readutmp.m4 (gl_READUTMP):
47580         * m4/regex.m4 (gl_REGEX):
47581         * m4/safe-read.m4 (gl_SAFE_READ):
47582         * m4/safe-write.m4 (gl_SAFE_WRITE):
47583         * m4/same.m4 (gl_SAME):
47584         * m4/save-cwd.m4 (gl_SAVE_CWD):
47585         * m4/savedir.m4 (gl_SAVEDIR):
47586         * m4/settime.m4 (gl_SETTIME):
47587         * m4/sha1.m4 (gl_SHA1):
47588         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47589         * m4/stat-macros.m4 (gl_STAT_MACROS):
47590         * m4/stat-time.m4 (gl_STAT_TIME):
47591         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47592         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47593         * m4/strdup.m4 (gl_FUNC_STRDUP):
47594         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47595         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47596         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47597         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47598         * m4/time_r.m4 (gl_TIME_R):
47599         * m4/timespec.m4 (gl_TIMESPEC):
47600         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47601         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47602         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47603         * m4/userspec.m4 (gl_USERSPEC):
47604         * m4/utimecmp.m4 (gl_UTIMECMP):
47605         * m4/utimens.m4 (gl_UTIMENS):
47606         * m4/xalloc.m4 (gl_XALLOC):
47607         * m4/xgetcwd.m4 (gl_XGETCWD):
47608         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47609         * m4/xreadlink.m4 (gl_XREADLINK):
47610         * m4/xstrtod.m4 (gl_XSTRTOD):
47611         * m4/yesno.m4 (gl_YESNO):
47612         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47613         to get the necessary .h files and whatnot.
47614
47615 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
47616             Bruno Haible  <bruno@clisp.org>
47617
47618         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
47619         /bin/sh understanding of '!' conditional negation.
47620
47621 2006-08-21  Jim Meyering  <jim@meyering.net>
47622
47623         * modules/openat (Depends-on): Really alphabetize.
47624
47625         * modules/acl (Depends-on): Add error and quote.
47626
47627         * check-module (find_included_lib_files): Add at-func.c to the
47628         ok-to-include-more-than-once white list.
47629
47630         * modules/openat (Depends-on): Add lstat.  Alphabetize.
47631
47632 2006-08-21  Bruno Haible  <bruno@clisp.org>
47633
47634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47635         Emit a pkgdata_DATA variable only if some snippets add contents to it.
47636         Reported by Martin Lambers <marlam@marlam.de>.
47637
47638 2006-08-21  Bruno Haible  <bruno@clisp.org>
47639
47640         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47641         specify an installation location, don't emit a noinst_LIBRARIES or
47642         noinst_LTLIBRARIES assignment.
47643
47644 2006-08-21  Bruno Haible  <bruno@clisp.org>
47645
47646         BeOS portability.
47647         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47648         BeOS has mbrtowc() but no <wctype.h>.
47649
47650 2006-08-21  Bruno Haible  <bruno@clisp.org>
47651
47652         BeOS portability.
47653         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47654         exist.
47655
47656 2006-08-21  Bruno Haible  <bruno@clisp.org>
47657
47658         BeOS portability.
47659         * lib/mbchar.h: Include <wctype.h> only if it exists.
47660
47661 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47662
47663         Remove files that are no longer needed by their respective modules.
47664         * m4/obstack.m4: Remove.
47665         * m4/strerror_r.m4: Remove.
47666         * m4/uint32_t.m4: Remove.
47667         * m4/uintptr_t.m4: Remove.
47668         * m4/ullong_max.m4: Remove.
47669         * m4/xstrtoimax.m4: Remove.
47670         * m4/xstrtoumax.m4: Remove.
47671
47672         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47673         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47674         dependencies now capture this.
47675
47676         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47677         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47678         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47679         * m4/human.m4 (gl_HUMAN): Likewise.
47680         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47681         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47682
47683         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47684
47685         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47686         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47687         stdint.
47688         * m4/human.m4 (gl_HUMAN): Likewise.
47689         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47690         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47691         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47692         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47693         * m4/xstrtol (gl_XSTRTOL): Likewise.
47694
47695         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47696         AC_TYPE_LONG_LONG_INT.
47697         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47698         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47699         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47700         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47701
47702         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47703         on stdbool.
47704
47705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47706         (gl_PREREQ_XSTRTOUL): Remove.
47707
47708         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47709
47710         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
47711         mode.
47712
47713 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         Add and change modules to make it easier for coreutils to use
47716         gnulib-tool.
47717         * modules/backupfile (Files): Remove m4/d-ino.m4.
47718         (Depends-on): Add d-ino.
47719         * modules/cycle-check (Depends-on): Add stdint.
47720         (lib_SOURCES): Add cycle-check.h.
47721         * modules/d-ino: New module.
47722         * modules/d-type: New module.
47723         * modules/error (Files): Remove m4/strerror_r.m4.
47724         * modules/filemode (Files): Add m4/st_dm_mode.m4.
47725         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47726         m4/inttypes_h.m4, m4/uintmax_t.m4.
47727         (Depends-on): Add stdint.
47728         (lib_SOURCES): Add fsusage.h.
47729         * modules/getcwd (Files): Remove d-ino.m4.
47730         (Depends-on): Add d-ino.
47731         * modules/getndelim2 (Depends-on): Add stdint.
47732         * modules/glob (Files): Remove m4/d-type.m4.
47733         (Depends-on): Add d-type.
47734         * modules/host-os: New module.
47735         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
47736         m4/inttypes_h.m4, m4/uintmax_t.m4.
47737         * Depends-on: Add stdint.
47738         (lib_SOURCES): Add human.h.
47739         * modules/inttostr (Files): Remove m4/intmax_t.m4,
47740         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
47741         m4/uintmax_t.m4, m4/ulonglong.m4.
47742         (Depends-on): Add stdint.
47743         (EXTRA_DIST): Add inttostr.h.
47744         * modules/lchmod: New module.
47745         * modules/link-follow: New module.
47746         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
47747         (Depends-on): Add lchmod.
47748         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
47749         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
47750         (Depends-on): Add stdint.
47751         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
47752         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
47753         (Depends-on): Add stdint.
47754         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
47755         * modules/perl: New module.
47756         * modules/regex (Depends-on): Add stdint.
47757         * modules/rmdir-errno: New module.
47758         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47759         m4/intmax_t.m4.
47760         (Depends-on): Add stdint.
47761         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47762         m4/uintmax_t.m4.
47763         (Depends-on): Add stdint.
47764         * modules/unlink-busy: New module.
47765         * modules/utimecmp (Depends-on): Add stdint.
47766         * modules/uptime: New module.
47767         * modules/winsz-ioctl: New module.
47768         * modules/winsz-termios: New module.
47769         * modules/xnanosleep (Depends-on): Add nanosleep.
47770         * modules/ullong_max: Remove.
47771         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
47772         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
47773         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
47774         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
47775         (Depends-on): Add inttypes.
47776         (lib_SOURCES): Add xstrtol.h.
47777         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
47778         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
47779         * MODULES.html.sh: Move 'assert' into the assert section.
47780         Move 'dummy' into the linking section.
47781         Remove ullong_max.
47782         Add section for compatibility checks for POSIX:2001 functions,
47783         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
47784         winsz-ioctl, and winsz-termios into it.
47785         Add lchmod.
47786         Add top-level Misc section and put host-os, perl, and uptime
47787         into it.
47788
47789 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47790
47791         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
47792         now assume the stdint module.  Do not include inttypes.h.
47793         * lib/fsusage.h: Likewise.
47794         * lib/getndelim2.c: Likewise.
47795         * lib/human.h: Likewise.
47796         * lib/inttostr.h: Likewise.
47797         * lib/obstack.c: Likewise.
47798         * lib/regex_internal.h: Likewise.
47799         * lib/tempname.c: Likewise.
47800         * lib/utimecmp.c: Likewise.
47801         * lib/xstrtol.h: Likewise.
47802
47803         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
47804
47805         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
47806         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
47807         * lib/xtime.h: Likewise.
47808
47809 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * modules/openat (Files): Add lib/fchmodat.c.
47812         Fixes problem reported by Jay Youngman.
47813
47814 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47815
47816         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
47817         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
47818
47819 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47820             Bruno Haible  <bruno@clisp.org>
47821
47822         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
47823         and is a script that invokes bison. Tighten the code. Add comments.
47824
47825 2006-08-18  Jim Meyering  <jim@meyering.net>
47826
47827         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
47828         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
47829         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
47830         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
47831
47832 2006-08-18  Bruno Haible  <bruno@clisp.org>
47833
47834         * modules/bison-i18n: New file.
47835         * MODULES.html.sh (Internationalization functions): Add it.
47836
47837 2006-08-18  Bruno Haible  <bruno@clisp.org>
47838
47839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
47840         sys/statvfs.h. When getmntinfo was found, check its declaration and
47841         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
47842
47843 2006-08-18  Bruno Haible  <bruno@clisp.org>
47844
47845         * m4/bison-i18n.m4: New file, from bison.
47846
47847 2006-08-18  Bruno Haible  <bruno@clisp.org>
47848
47849         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
47850         (ME_DUMMY): Treat "kernfs" as a dummy.
47851         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
47852
47853 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47854
47855         Update from coreutils.
47856
47857         2006-08-15  Jim Meyering  <jim@meyering.net>
47858
47859         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
47860
47861         2006-01-17  Jim Meyering  <jim@meyering.net>
47862
47863         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
47864
47865         2006-01-11  Jim Meyering  <jim@meyering.net>
47866
47867         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
47868         Check for the lchmod function.
47869
47870 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47871
47872         Update from coreutils.
47873
47874         * lib/__fpending.h: Add copyright notice.
47875         * lib/fprintftime.h: Likewise.
47876         * lib/savedir.c: Use (C) in copyright notice.
47877         * lib/savedir.h: Likewise.
47878
47879         2006-08-15  Jim Meyering  <jim@meyering.net>
47880
47881         * lib/at-func.c: New file, with the logic of all emulated at-functions.
47882         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
47883         in support of the EXPECTED_ERRNO macro.
47884         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
47885         definitions.  Instead, define the appropriate symbols and include
47886         "at-func.c".
47887         * lib/mkdirat.c (mkdirat): Likewise.
47888         * lib/fchmodat.c (fchmodat): Likewise.
47889         (ENOSYS): Remove definition.
47890         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
47891         it.  Don't include "unistd--.h" -- it wasn't ever used.
47892
47893         2006-01-17  Jim Meyering  <jim@meyering.net>
47894
47895         Rewrite fts.c not to change the current working directory,
47896         by using openat, fstatat, fdopendir, etc..
47897
47898         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
47899         (HAVE_OPENAT_SUPPORT): Define.
47900         [_LIBC] (fchdir): Don't undef or define; no longer used.
47901         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
47902         Now, this `function' always succeeds, and consumes its file descriptor
47903         parameter -- so callers must not close such FDs.  Update callers.
47904         (diropen_fd, opendirat, cwd_advance_fd): New functions.
47905         (diropen): Add parameter, SP.  Adjust all callers.
47906         Implement using diropen_fd, rather than open.
47907         (fts_open): Initialize new member, fts_cwd_fd.
47908         Remove fts_rft-setting code.
47909         (fts_close): Close fts_cwd_fd, if necessary.
47910         (__opendir2): Define in terms of opendir or opendirat,
47911         depending on whether the FST_NOCHDIR flag is set.
47912         (fts_build): Since fts_safe_changedir consumes its FD, and since
47913         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
47914         and close the dup'd file descriptor upon failure.
47915         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
47916         (fts_safe_changedir): Tweak semantics to reflect that this function
47917         now calls cwd_advance_fd and hence consumes its FD argument.
47918         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
47919         [struct FTS] (fts_rft): Remove now-unused member.
47920         [struct FTS] (fts_cycle.state): Improve comment.
47921
47922         * lib/openat.c (openat_needs_fchdir): New function.
47923         * lib/openat.h (openat_needs_fchdir): Declare it.
47924
47925 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47926
47927         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
47928         Problem and fix reported by Pádraig Brady in
47929         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
47930
47931 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47932
47933         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
47934
47935 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47936
47937         * lib/memcoll.c (memcoll): Optimize for the common case where the
47938         arguments are bytewise equal.
47939
47940 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47941
47942         * doc/regexprops-generic.texi: Add a copyright notice.
47943
47944 2006-08-15  Bruno Haible  <bruno@clisp.org>
47945
47946         * modules/tmpdir (License): Change to LGPL.
47947
47948 2006-08-15  Bruno Haible  <bruno@clisp.org>
47949
47950         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
47951         module.
47952
47953 2006-08-14  Simon Josefsson  <jas@extundo.com>
47954
47955         * config/srclist.txt: Add gnupload.
47956
47957 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47958
47959         Change copyright notice from LGPL 2 to GPL 2, since that's the
47960         standard form used in the gnulib repository.
47961         * tests/test-lock.c: Likewise.
47962         * tests/test-stdint.c: Likewise.
47963         * tests/test-tls.c: Likewise.
47964
47965         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
47966         prelude-manager.  User shorter URLs for GNU projects, without '?'.
47967         Add copyright notice.
47968
47969         * check-module: Add copyright notice.  Output a copyright
47970         notice if "--version" is specified.
47971         * modules/COPYING: New file.
47972         * tests/test-getaddrinfo.c: Add copyright notice.
47973         * tests/test-verify.c: Likewise.
47974
47975 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47976
47977         Change copyright notice from LGPL 2 to GPL 2, since that's the
47978         standard form used in the gnulib repository.
47979         * lib/lock.c: LGPL -> GPL.
47980         * lib/lock.h: Likewise.
47981         * lib/strnlen1.c: Likewise.
47982         * lib/strnlen1.h: Likewise.
47983         * lib/tls.c: Likewise.
47984         * lib/tls.h: Likewise.
47985         * lib/tmpdir.c: Likewise.
47986
47987         * lib/TODO: Remove; this belongs only in coreutils.
47988
47989 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         Add copyright notices to long-enough files that lack them, since
47992         otherwise the files aren't clearly free.  Use the same notice that
47993         getdate.texi already uses.
47994         * doc/alloca-opt.texi: Add copyright notice.
47995         * doc/alloca.texi: Likewise.
47996         * doc/ctime.texi: Likewise.
47997         * doc/functions.texi: Likewise.
47998         * doc/gcd.texi: Likewise.
47999         * doc/gnulib-tool.texi: Likewise.
48000         * doc/inet_ntoa.texi: Likewise.
48001         * doc/visibility.texi: Likewise.
48002
48003         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48004         * doc/quote.texi: Add copyright notice.
48005
48006         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48007         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48008         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48009         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48010         is now obsolete, and give a pointer to the Sun list.
48011         Add copyright notice.
48012
48013 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48014
48015         * config/srclistvars.sh: Add copyright notice.
48016
48017 2006-08-14  Eric Blake  <ebb9@byu.net>
48018
48019         Import the following change from libc:
48020
48021         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48022
48023         Upstream bug 2997.
48024         * lib/misc/error.c: Add space between program name and message if file
48025         name is missing.
48026
48027 2006-08-12  Karl Berry  <karl@gnu.org>
48028
48029         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48030         remove, these originate in gnulib now.
48031
48032 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48033
48034         * doc/Makefile (standards.info standards.html standards.dvi):
48035         Also depend on make-stds.texi.
48036
48037 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48038
48039         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48040         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48041
48042         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48043         in wchar_t.  Problem reported by Eric Blake.
48044
48045         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48046         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48047         Also, help the compiler to keep LEN in a register.
48048
48049 2006-08-11  Eric Blake  <ebb9@byu.net>
48050
48051         * users.txt: Sort.  Add tar.
48052
48053 2006-08-11  Bruno Haible  <bruno@clisp.org>
48054
48055         * users.txt: New file.
48056
48057 2006-08-11  Bruno Haible  <bruno@clisp.org>
48058
48059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48060         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48061
48062 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48063
48064         * modules/snprintf (Depends-on): Remove minmax.
48065         (Maintainer): Add self and Bruno.
48066
48067 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48068
48069         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48070         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48071         (EOVERFLOW): Define if the system does not.
48072         Do not include "minmax.h"; it wasn't used.
48073         (snprintf): Don't assume size_t promotes to an unsigned type.
48074         Fix bug when generated string was too long for the buffer: the
48075         buffer's contents are supposed to be the initial prefix of the
48076         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48077         exceeds INT_MAX; do the check ourselves.
48078
48079         Import the following changes from libc:
48080
48081         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48082
48083         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48084         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48085         set wc to the byte which couldn't be converted.
48086         (re_string_reconstruct): Don't clear valid_raw_len before calling
48087         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48088         tip_context using re_string_context_at.
48089
48090         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48091
48092         * lib/posix/regex.h: g++ still cannot handled [restrict].
48093
48094         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48095
48096         * lib/posix/regex.h: Remove special handling for VMS.
48097
48098 2006-08-10  Jim Meyering  <jim@meyering.net>
48099
48100         * modules/same-inode: New module.
48101         * modules/dev-ino: New module.
48102         * modules/cycle-check: Depend on these modules, rather than simply
48103         including their .h files.
48104         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48105         required via m4/cycle-check.m4.
48106         * modules/same: Depend on new same-inode module, rather than
48107         including same-inode.h.
48108         * modules/chdir-safer: New file.
48109
48110         * modules/chown (Depends-on): Add stat-macros.
48111
48112 2006-08-10  Jim Meyering  <jim@meyering.net>
48113
48114         * m4/cycle-check.m4: New file.
48115         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48116         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48117
48118 2006-08-10  Eric Blake  <ebb9@byu.net>
48119
48120         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48121         in from original proposal.
48122
48123 2006-08-10  Eric Blake  <ebb9@byu.net>
48124         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48125
48126         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48127         namespace.
48128
48129 2006-08-10  Bruno Haible  <bruno@clisp.org>
48130
48131         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48132         as well.
48133
48134 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48135
48136         Sync from coreutils.
48137
48138         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48139
48140         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48141         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48142
48143 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48144
48145         * modules/restrict: Remove; no longer needed now that we assume
48146         Autoconf 2.59 or later.
48147         * MODULES.html.sh: Remove 'restrict'.
48148         * modules/argp (Depends-on): Remove 'restrict'.
48149         * modules/base64 (Depends-on): Likewise.
48150         * modules/gc (Depends-on): Likewise.
48151         * modules/getaddrinfo (Depends-on): Likewise.
48152         * modules/glob (Depends-on): Likewise.
48153         * modules/inet_ntop (Depends-on): Likewise.
48154         * modules/inet_pton (Depends-on): Likewise.
48155         * modules/memxor (Depends-on): Likewise.
48156         * modules/regex (Depends-on): Likewise.
48157         * modules/strtok_r (Depends-on): Likewise.
48158         * modules/time_r (Depends-on): Likewise.
48159
48160 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48161
48162         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48163         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48164         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48165         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48166         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48167         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48168         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48169         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48170
48171         Merge from coreutils.
48172         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48173         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48174         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48175         * m4/time_r.m4 (gl_TIME_R): Likewise.
48176
48177 2006-08-09  Karl Berry  <karl@gnu.org>
48178
48179         * config/srclist.txt: no more gettext-tools, per Bruno.
48180
48181 2006-08-08  Eric Blake  <ebb9@byu.net>
48182
48183         * modules/verror: New module.
48184         * MODULES.html.sh: Document it.
48185
48186 2006-08-08  Eric Blake  <ebb9@byu.net>
48187
48188         * lib/verror.h, lib/verror.c: New files.
48189
48190 2006-08-08  Eric Blake  <ebb9@byu.net>
48191
48192         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48193         verror_at_line output complies with GNU Coding Standards even when
48194         file is NULL.
48195
48196 2006-08-07  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48199         versions of AIX.
48200         Reported by Ralf Wildenhues.
48201
48202 2006-08-07  Bruno Haible  <bruno@clisp.org>
48203
48204         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48205         in an AC_DEFUN. Needed so that the autoconf snippets can use
48206         AC_REQUIRE.
48207
48208 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48209
48210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48211         Initialize pkgdata_DATA.
48212         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48213         overriding it.
48214
48215 2006-08-06  Eric Blake  <ebb9@byu.net>
48216
48217         * lib/error.h: Fold in some upstream changes from glibc.
48218         * lib/error.c: Likewise.
48219
48220 2006-08-04  Bruno Haible  <bruno@clisp.org>
48221
48222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48223         Make the mostlyclean-local rule depend on mostlyclean-generic.
48224         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48225
48226 2006-07-31  Bruno Haible  <bruno@clisp.org>
48227
48228         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48229         <stdlib.h>, <string.h>.
48230
48231 2006-07-30  Bruno Haible  <bruno@clisp.org>
48232
48233         * modules/readlink (License): Change to LGPL.
48234
48235 2006-07-30  Bruno Haible  <bruno@clisp.org>
48236
48237         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48238         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48239         set PKGDATADIR to point to it.
48240
48241 2006-07-30  Bruno Haible  <bruno@clisp.org>
48242
48243         * modules/csharpexec (configure.ac): Comment out macro invocation.
48244         * modules/javaexec (configure.ac): Likewise.
48245         * modules/javacomp-script (configure.ac): Likewise.
48246
48247         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48248
48249 2006-07-30  Bruno Haible  <bruno@clisp.org>
48250
48251         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48252         linked-list.
48253
48254 2006-07-30  Bruno Haible  <bruno@clisp.org>
48255
48256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48257
48258 2006-07-30  Bruno Haible  <bruno@clisp.org>
48259
48260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48261         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48262         get removed.
48263
48264 2006-07-29  Bruno Haible  <bruno@clisp.org>
48265
48266         Make it possible for gnulib-tool to work with locally modified or
48267         augmented gnulib repositories.
48268         * gnulib-tool (func_usage): Document --local-dir option.
48269         (local_gnulib_dir): New variable.
48270         Handle --local-dir option.
48271         (func_lookup_file): New function.
48272         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48273         (func_get_description, func_get_filelist, func_get_description,
48274         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48275         func_get_automake_snippet, func_get_include_directive,
48276         func_get_license, func_get_maintainer): Use func_lookup_file.
48277         (func_import, func_create_testdir): Use func_lookup_file.
48278
48279 2006-07-29  Bruno Haible  <bruno@clisp.org>
48280
48281         * modules/setenv (Depends-on): Add unistd.
48282
48283 2006-07-29  Bruno Haible  <bruno@clisp.org>
48284
48285         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48286
48287 2006-07-29  Bruno Haible  <bruno@clisp.org>
48288
48289         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48290
48291 2006-07-29  Bruno Haible  <bruno@clisp.org>
48292
48293         * gnulib-tool (import, update): If there is no Makefile.am, look at
48294         aclocal.m4, instead of bailing out.
48295
48296 2006-07-29  Bruno Haible  <bruno@clisp.org>
48297
48298         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48299         Categorize the options by when they are useful.
48300
48301 2006-07-29  Bruno Haible  <bruno@clisp.org>
48302
48303         * gnulib-tool (func_usage): Document option --no-libtool.
48304         Handle option --no-libtool.
48305         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48306         for changed semantics of $libtool variable.
48307         (func_import): Likewise. If libtool is not used, show this through
48308         an option --no-libtool.
48309         (func_create_testdir): Update.
48310
48311 2006-07-29  Bruno Haible  <bruno@clisp.org>
48312
48313         * gnulib-tool (func_import): Extend error message about missing
48314         --doc-base.
48315
48316 2006-07-29  Bruno Haible  <bruno@clisp.org>
48317
48318         * gnulib-tool (func_import): Don't create the $docbase directory if
48319         there is no file to store there.
48320
48321 2006-07-29  Bruno Haible  <bruno@clisp.org>
48322
48323         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48324         relevant, look for configure.ac there, not in the current directory.
48325         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48326
48327 2006-07-29  Bruno Haible  <bruno@clisp.org>
48328
48329         * gnulib-tool (SORT): New variable.
48330         (func_usage): Undocument --assume-autoconf option.
48331         Remove --assume-autoconf option handling.
48332         (autoconf_minversion): Determine from the contents of configure.ac.
48333         (func_import): Remove autoconf_minversion handling.
48334         Suggested by Eric Blake.
48335
48336 2006-07-29  Bruno Haible  <bruno@clisp.org>
48337
48338         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48339
48340 2006-07-29  Bruno Haible  <bruno@clisp.org>
48341
48342         * config/srclist.txt (*setenv.[ch]): Remove rules.
48343
48344 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48345
48346         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48347
48348 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48349
48350         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48351         arpa/inet.h.
48352
48353 2006-07-28  Simon Josefsson  <jas@extundo.com>
48354
48355         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48356         * modules/inet_pton (Depends-on): Likewise.
48357
48358 2006-07-28  Simon Josefsson  <jas@extundo.com>
48359
48360         * m4/netinet_in_h.m4: New file.
48361
48362 2006-07-28  Simon Josefsson  <jas@extundo.com>
48363
48364         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48365         #include's.
48366
48367 2006-07-28  Simon Josefsson  <jas@extundo.com>
48368
48369         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48370         #include's.
48371
48372 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48373
48374         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48375         setgid on directories only if they set these bits.
48376         * lib/modechange.h: Remove obsolete comment about masks.
48377
48378 2006-07-28  Eric Blake  <ebb9@byu.net>
48379
48380         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48381         macro expansion.
48382
48383 2006-07-28  Bruno Haible  <bruno@clisp.org>
48384
48385         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48386
48387 2006-07-28  Bruno Haible  <bruno@clisp.org>
48388
48389         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48390
48391 2006-07-28  Bruno Haible  <bruno@clisp.org>
48392
48393         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48394         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48395         Define fallbacks.
48396         Avoids link error on FreeBSD 4.x.
48397         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48398
48399         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48400         encoding.
48401         * lib/mbswidth.c (iswcntrl): Likewise.
48402
48403 2006-07-27  Bruno Haible  <bruno@clisp.org>
48404
48405         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48406         test.
48407
48408 2006-07-27  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48411         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48412         defined.
48413
48414 2006-07-26  Eric Blake  <ebb9@byu.net>
48415
48416         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48417
48418 2006-07-26  Eric Blake  <ebb9@byu.net>
48419
48420         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48421         like mingw that lack mkstemp.
48422         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48423         avoid compilation warning on mingw.
48424
48425 2006-07-26  Bruno Haible  <bruno@clisp.org>
48426
48427         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48428         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48429         INT_FAST*_MIN, INTPTR_MIN.
48430
48431 2006-07-25  Bruno Haible  <bruno@clisp.org>
48432
48433         * modules/version-etc (Depends-on): Add stdarg.
48434
48435 2006-07-25  Bruno Haible  <bruno@clisp.org>
48436
48437         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48438         complex commands.
48439
48440 2006-07-25  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48443         defined in <stdarg.h> or config.h.
48444
48445 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48446
48447         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48448         (gl_STDIO_SAFER): Remove.
48449
48450 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48451
48452         * MODULES.html.sh (File stream based Input/Output):
48453         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48454         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48455         * modules/fopen-safer, modules/tmpfile-safer: New files.
48456         * modules/stdio-safer: Remove.
48457
48458 2006-07-24  Bruno Haible  <bruno@clisp.org>
48459
48460         * modules/tmpdir: New file.
48461         * MODULES.html.sh (File system functions): Add it.
48462
48463 2006-07-24  Bruno Haible  <bruno@clisp.org>
48464
48465         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48466         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48467
48468 2006-07-24  Bruno Haible  <bruno@clisp.org>
48469
48470         * modules/clean-temp: New file.
48471
48472 2006-07-24  Bruno Haible  <bruno@clisp.org>
48473
48474         * m4/tmpdir.m4: New file, from GNU gettext.
48475
48476 2006-07-24  Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/tmpdir.h: New file, from GNU gettext.
48479         * lib/tmpdir.c: New file, from GNU gettext.
48480
48481 2006-07-24  Bruno Haible  <bruno@clisp.org>
48482
48483         * lib/clean-temp.h: New file, from GNU gettext.
48484         * lib/clean-temp.c: New file, from GNU gettext.
48485
48486 2006-07-23  Eric Blake  <ebb9@byu.net>
48487
48488         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48489         (Depends-on): Add binary-io.
48490
48491 2006-07-23  Eric Blake  <ebb9@byu.net>
48492
48493         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48494
48495 2006-07-23  Eric Blake  <ebb9@byu.net>
48496
48497         * lib/tmpfile-safer.c: New file.
48498         * lib/stdio-safer.h (fopen_safer): Add prototype.
48499         * lib/stdio--.h (tmpfile): Make safer.
48500
48501 2006-07-23  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48504         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48505         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48506         gl_linked_remove_at): Use it.
48507
48508 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48509         and Simon Josefsson <jas@extundo.com>
48510
48511         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48512
48513         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48514
48515 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48516
48517         * modules/close-stream: New file.
48518         * modules/closeout (Description): Make it clear that it exits
48519         with a diagnostic on error.
48520         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48521         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48522
48523 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48524
48525         * m4/close-stream.m4: New file.
48526
48527 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         * lib/close-stream.c, lib/close-stream.h: New files.
48530
48531 2006-07-22  Bruno Haible  <bruno@clisp.org>
48532
48533         Merge from GNU gettext 0.15.
48534
48535         2006-05-01  Bruno Haible  <bruno@clisp.org>
48536
48537                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48538
48539         2006-07-22  Bruno Haible  <bruno@clisp.org>
48540
48541                 * modules/javaversion: New file.
48542                 * MODULES.html.sh (Java): Add javaversion.
48543
48544         2006-03-12  Bruno Haible  <bruno@clisp.org>
48545
48546                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48547
48548         2005-12-04  Bruno Haible  <bruno@clisp.org>
48549
48550                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48551                 (untested).
48552
48553         2006-06-21  Bruno Haible  <bruno@clisp.org>
48554
48555                 Avoid warnings from recent versions of mcs.
48556                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48557                 -o, -L, -r any more. Use options documented since mcs-1.0
48558                 instead. Similarly for -g.
48559
48560         2005-12-04  Bruno Haible  <bruno@clisp.org>
48561
48562                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48563                 .resources, not .resource.
48564
48565         2005-07-09  Bruno Haible  <bruno@clisp.org>
48566
48567                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48568                 add a .dll suffix.
48569                 Reported by Mark Junker <mjscod@gmx.de>.
48570
48571         2006-07-22  Bruno Haible  <bruno@clisp.org>
48572
48573                 * modules/gettext: Upgrade to gettext-0.15.
48574                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48575                 m4/visibility.m4.
48576                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48577
48578 2006-07-22  Bruno Haible  <bruno@clisp.org>
48579
48580         Merge from GNU gettext 0.15.
48581
48582         2006-03-25  Bruno Haible  <bruno@clisp.org>
48583
48584                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48585
48586         2006-07-21  Bruno Haible  <bruno@clisp.org>
48587
48588                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48589                 "1.1".
48590
48591         2006-05-09  Bruno Haible  <bruno@clisp.org>
48592
48593                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48594                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48595                 for the conftestver execution.
48596
48597         2006-05-01  Bruno Haible  <bruno@clisp.org>
48598
48599                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48600                 optional target-version argument. Verify that the compiler
48601                 groks source of the specified source-version, or add -source
48602                 option as necessary. Verify that the compiler produces
48603                 bytecode in the specified target-version, or add -target and
48604                 -source options as necessary. Make the result of the test
48605                 available as variable CONF_JAVAC. Also log error output in
48606                 config.log.
48607
48608         2006-03-11  Bruno Haible  <bruno@clisp.org>
48609
48610                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48611
48612         2006-05-09  Bruno Haible  <bruno@clisp.org>
48613
48614                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
48615                 CLASSPATH_SEPARATOR to a semicolon.
48616
48617         2006-03-12  Bruno Haible  <bruno@clisp.org>
48618
48619                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
48620                 available as variable CONF_JAVA, for subsequent autoconf
48621                 tests. Also log error output in config.log.
48622
48623         2006-07-19  Bruno Haible  <bruno@clisp.org>
48624
48625                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
48626                 that getline works on glibc2 systems. Needed to avoid trouble
48627                 in relocatable.c.
48628                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
48629
48630         2005-12-04  Bruno Haible  <bruno@clisp.org>
48631
48632                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
48633                 launcher (untested).
48634
48635         2005-12-04  Bruno Haible  <bruno@clisp.org>
48636
48637                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
48638
48639         2006-07-22  Bruno Haible  <bruno@clisp.org>
48640
48641                 * gettext.m4: Update from GNU gettext-0.15.
48642                 * nls.m4: Likewise.
48643                 * po.m4: Likewise.
48644                 * inttypes-pri.m4: Likewise.
48645                 * inttypes-h.m4: Renamed from inttypes.m4.
48646                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48647
48648 2006-07-22  Bruno Haible  <bruno@clisp.org>
48649
48650         Merge from GNU gettext 0.15.
48651
48652         2005-07-05  Bruno Haible  <bruno@clisp.org>
48653
48654                 * printf-args.c (printf_fetchargs): Work around broken
48655                 definition of wint_t on mingw.
48656
48657         2005-02-12  Bruno Haible  <bruno@clisp.org>
48658
48659                 * xallocsa.h: Add extern "C" for C++.
48660
48661         2006-05-17  Bruno Haible  <bruno@clisp.org>
48662
48663                 Cygwin portability.
48664                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48665
48666         2006-04-30  Bruno Haible  <bruno@clisp.org>
48667
48668                 * progreloc.c: Include <mach-o/dyld.h> if available.
48669                 (find_executable): Use _NSGetExecutablePath when possible.
48670
48671         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48672
48673                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48674                 function.
48675
48676         2005-12-29  Bruno Haible  <bruno@clisp.org>
48677
48678                 * progreloc.c (set_program_name_and_installdir): Fix
48679                 compilation error.
48680
48681         2005-12-04  Bruno Haible  <bruno@clisp.org>
48682
48683                 Cygwin portability.
48684                 * progreloc.c: Include <windows.h> also on Cygwin.
48685                 (find_executable): Add support for Cygwin.
48686                 (set_program_name_and_installdir): Handle also platforms with
48687                 nonempty EXEEXT.
48688
48689         2006-07-11  Bruno Haible  <bruno@clisp.org>
48690
48691                 * javacomp.c: Fix a comment.
48692                 Reported by Jim Meyering.
48693
48694         2006-04-30  Bruno Haible  <bruno@clisp.org>
48695
48696                 * javacomp.h (compile_java_class): Add source_version,
48697                 target_version arguments.
48698                 * javacomp.c: Rewritten to choose only a compiler that
48699                 respects the specified source_version and target_version.
48700
48701         2006-06-27  Bruno Haible  <bruno@clisp.org>
48702
48703                 Assume correct S_ISDIR macro.
48704                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48705
48706         2006-07-22  Bruno Haible  <bruno@clisp.org>
48707
48708                 * javaversion.h: New file, from GNU gettext.
48709                 * javaversion.c: New file, from GNU gettext.
48710                 * javaversion.java: New file, from GNU gettext.
48711                 * javaversion.class: New file, from GNU gettext.
48712
48713         2006-05-17  Bruno Haible  <bruno@clisp.org>
48714
48715                 Cygwin portability.
48716                 * javaexec.c (execute_java_class): Test for jview program
48717                 also on Cygwin.
48718
48719         2006-04-09  Bruno Haible  <bruno@clisp.org>
48720
48721                 * fatal-signal.c: Don't include string.h.
48722                 (at_fatal_signal): Use a copying loop instead of memcpy.
48723
48724         2005-12-04  Bruno Haible  <bruno@clisp.org>
48725
48726                 * csharpexec.c: Add support for 'clix' launcher (untested).
48727                 (execute_csharp_using_sscli): New function.
48728                 (execute_csharp_program): Call it.
48729
48730         2006-06-21  Bruno Haible  <bruno@clisp.org>
48731
48732                 Avoid warnings from recent versions of mcs.
48733                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
48734                 -o, -L, -r any more. Use options documented since mcs-1.0
48735                 instead. Similarly for -g.
48736
48737         2005-07-09  Bruno Haible  <bruno@clisp.org>
48738
48739                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
48740                 add a .dll suffix.
48741                 Reported by Mark Junker <mjscod@gmx.de>.
48742
48743         2006-06-17  Bruno Haible  <bruno@clisp.org>
48744
48745                 * config.charset: Update for NetBSD 3.0.
48746
48747         2006-05-17  Bruno Haible  <bruno@clisp.org>
48748
48749                 Cygwin portability.
48750                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
48751
48752         2006-05-16  Bruno Haible  <bruno@clisp.org>
48753
48754                 * localcharset.c [CYGWIN]: Include <windows.h>.
48755                 (get_charset_aliases): For Cygwin, return the same CPxxx
48756                 aliases list as under WIN32.
48757                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
48758                 the environment variables. Fall back to GetACP().
48759
48760         2006-04-05  Bruno Haible  <bruno@clisp.org>
48761
48762                 * config.charset: Update Juan Manuel Guerrero's address.
48763
48764         2005-02-12  Bruno Haible  <bruno@clisp.org>
48765
48766                 * allocsa.h: Add extern "C" for C++.
48767
48768         2005-02-10  Bruno Haible  <bruno@clisp.org>
48769
48770                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
48771                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
48772
48773         2006-07-22  Bruno Haible  <bruno@clisp.org>
48774
48775                 * gettext.h: Update to GNU gettext-0.15.
48776
48777 2006-07-22  Bruno Haible  <bruno@clisp.org>
48778
48779         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
48780         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
48781         lib-prefix.m4, longdouble.m4, ssize_t.m4.
48782
48783 2006-07-21  Eric Blake  <ebb9@byu.net>
48784
48785         * modules/stdlib-safer: New file.
48786         * MODULES.html.sh (File stream based Input/Output): Add
48787         stdlib-safer.
48788
48789 2006-07-21  Eric Blake  <ebb9@byu.net>
48790
48791         * lib/stdlib-safer.h: New file from coreutils, required by
48792         stdlib--.h.
48793
48794 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
48795
48796         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
48797
48798 2006-07-20  Bruno Haible  <bruno@clisp.org>
48799
48800         * gnulib-tool: Recognize new option --assume-autoconf.
48801         (autoconf_minversion): New variable.
48802         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
48803
48804 2006-07-20  Bruno Haible  <bruno@clisp.org>
48805
48806         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
48807
48808 2006-07-19  Derek R. Price  <derek@ximbiot.com>
48809
48810         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
48811         Reindent and repaginate.
48812
48813 2006-07-19  Derek Price  <derek@ximbiot.com>
48814
48815         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
48816         Correct grammar.
48817
48818 2006-07-17  Bruno Haible  <bruno@clisp.org>
48819
48820         * modules/list: New file.
48821         * modules/array-list: New file.
48822         * modules/carray-list, modules/carray-list-tests: New files.
48823         * modules/linked-list, modules/linked-list-tests: New files.
48824         * modules/avltree-list, modules/avltree-list-tests: New files.
48825         * modules/rbtree-list, modules/rbtree-list-tests: New files.
48826         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
48827         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
48828         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
48829         * modules/oset: New file.
48830         * modules/array-oset: New file.
48831         * modules/avltree-oset, modules/avltree-oset-tests: New files.
48832         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
48833         * tests/test-carray_list.c: New file.
48834         * tests/test-linked_list.c: New file.
48835         * tests/test-avltree_list.c: New file.
48836         * tests/test-rbtree_list.c: New file.
48837         * tests/test-linkedhash_list.c: New file.
48838         * tests/test-avltreehash_list.c: New file.
48839         * tests/test-rbtreehash_list.c: New file.
48840         * tests/test-avltree_oset.c: New file.
48841         * tests/test-rbtree_oset.c: New file.
48842         * MODULES.html.sh (Container data structures): New section.
48843
48844 2006-07-17  Bruno Haible  <bruno@clisp.org>
48845
48846         * m4/gl_list.m4: New file.
48847
48848 2006-07-17  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/gl_list.h: New file.
48851         * lib/gl_list.c: New file.
48852         * lib/gl_array_list.h: New file.
48853         * lib/gl_array_list.c: New file.
48854         * lib/gl_carray_list.h: New file.
48855         * lib/gl_carray_list.c: New file.
48856         * lib/gl_linked_list.h: New file.
48857         * lib/gl_linked_list.c: New file.
48858         * lib/gl_anylinked_list1.h: New file.
48859         * lib/gl_anylinked_list2.h: New file.
48860         * lib/gl_avltree_list.h: New file.
48861         * lib/gl_avltree_list.c: New file.
48862         * lib/gl_anyavltree_list1.h: New file.
48863         * lib/gl_anyavltree_list2.h: New file.
48864         * lib/gl_rbtree_list.h: New file.
48865         * lib/gl_rbtree_list.c: New file.
48866         * lib/gl_anyrbtree_list1.h: New file.
48867         * lib/gl_anyrbtree_list2.h: New file.
48868         * lib/gl_anytree_list1.h: New file.
48869         * lib/gl_anytree_list2.h: New file.
48870         * lib/gl_linkedhash_list.h: New file.
48871         * lib/gl_linkedhash_list.c: New file.
48872         * lib/gl_anyhash_list1.h: New file.
48873         * lib/gl_anyhash_list2.h: New file.
48874         * lib/gl_avltreehash_list.h: New file.
48875         * lib/gl_avltreehash_list.c: New file.
48876         * lib/gl_rbtreehash_list.h: New file.
48877         * lib/gl_rbtreehash_list.c: New file.
48878         * lib/gl_anytreehash_list1.h: New file.
48879         * lib/gl_anytreehash_list2.h: New file.
48880
48881         * lib/gl_oset.h: New file.
48882         * lib/gl_oset.c: New file.
48883         * lib/gl_array_oset.h: New file.
48884         * lib/gl_array_oset.c: New file.
48885         * lib/gl_avltree_oset.h: New file.
48886         * lib/gl_avltree_oset.c: New file.
48887         * lib/gl_rbtree_oset.h: New file.
48888         * lib/gl_rbtree_oset.c: New file.
48889         * lib/gl_anytree_oset.h: New file.
48890
48891 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48892
48893         * m4/mkancesdirs.m4: New file.
48894         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
48895         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
48896         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
48897         it.
48898
48899 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48900
48901         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
48902         * lib/mkancesdirs.h: New files.
48903         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
48904         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
48905         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
48906         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
48907         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
48908         callers changed.  Revamp internals significantly, by not
48909         attempting to create directories that are temporarily more
48910         permissive than the final results.  Do not attempt to use
48911         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
48912         This removes some race conditions, fixes some bugs, and simplifies
48913         things.  Use new dirchownmod function to do owner and mode changes.
48914         * lib/mkdir-p.h: Likewise.
48915         * lib/modechange.c (octal_to_mode): New function.
48916         (struct mode_change): New member mentioned.
48917         (make_node_op_equals): New arg mentioned.  All callers changed.
48918         (mode_compile): Keep track of which mode bits the user has explicitly
48919         mentioned.
48920         (mode_adjust): New arg DIR, so that we implement the X op correctly.
48921         New arg PMODE_BITS, to keep track of which mode bits the user
48922         mentioned; it treats S_ISUID and S_ISGID speciall.
48923         All callers changed.
48924         * lib/modechange.h: Likewise.
48925
48926 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48927
48928         * MODULES.html.sh: Add mkancestors.
48929         * modules/mkancesdirs: New module.
48930         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
48931         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
48932         The chdir-safer and afs files are now orphans; I'll remove them
48933         unless someone speaks up.
48934         Add lib/dirchownmod.c, lib/dirchownmod.h.
48935         (Depends-on): Remove alloca, chown, save-cwd, dirname.
48936         Add lchown, mkancesdirs.
48937         (Maintainer): Add self.
48938
48939 2006-07-15  Karl Berry  <karl@gnu.org>
48940
48941         * gnulib-tool: help message wording/arrangement.
48942
48943 2006-07-14  Simon Josefsson  <jas@extundo.com>
48944
48945         * doc/gnulib.texi (Libtool and Windows): New section.
48946
48947 2006-07-12  Simon Josefsson  <jas@extundo.com>
48948
48949         * modules/gendocs (License): Fix license, approved by Karl.
48950
48951 2006-07-12  Eric Blake  <ebb9@byu.net>
48952
48953         * MODULES.html.sh: Add gendocs.
48954
48955 2006-07-11  Eric Blake  <ebb9@byu.net>
48956
48957         * modules/fdl: New module, to install doc/fdl.texi.
48958         * MODULES.html.sh: Add new section for documentation modules.
48959         * gnulib-tool: Avoid space-tab.
48960         (--doc-base): New option, to manage files from doc.
48961
48962 2006-07-11  Eric Blake  <ebb9@byu.net>
48963
48964         * m4/absolute-header.m4: Fix comments to match recent change.
48965
48966 2006-07-11  Eric Blake  <ebb9@byu.net>
48967
48968         * gnulib-tool: List --doc-base before --tests-base.
48969
48970 2006-07-11  Derek R. Price  <derek@ximbiot.com>
48971
48972         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
48973
48974 2006-07-11  Bruno Haible  <bruno@clisp.org>
48975
48976         * README: Mention where to put documentation.
48977
48978 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48979
48980         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
48981
48982 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
48983
48984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
48985         to stdint.m4.
48986
48987 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
48988
48989         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
48990         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
48991         "no/such/file/stdint.h" when there is no such file, so that
48992         the resulting C code can be parsed by dodgy compilers.
48993         Problems reported by Bob Proulx.
48994
48995 2006-07-10  Derek R. Price  <derek@ximbiot.com>
48996
48997         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
48998         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
48999         macros into the GNU _D_EXACT_NAMLEN.
49000         * lib/savedir.c:  Likewise.
49001         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49002
49003 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49004         and Paul Eggert  <eggert@cs.ucla.edu>
49005
49006         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49007         * m4/savedir.m4:
49008         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49009         macros into the GNU _D_EXACT_NAMLEN.
49010
49011 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49012
49013         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49014         around the absolute name, to work around a problem with the HP-UX
49015         11.23 native C compiler, reported by Bob Proulx.
49016
49017 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49018
49019         * doc/maintain.texi, make-stds.texi: Sync from
49020         <http://savannah.gnu.org/projects/gnustandards>.
49021
49022 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49025
49026 2006-07-09  Jim Meyering  <jim@meyering.net>
49027
49028         * m4/glob.m4: Remove a doubled word in a comment.
49029
49030 2006-07-09  Jim Meyering  <jim@meyering.net>
49031
49032         * lib/argp-pv.c: Remove a doubled word in a comment.
49033         * lib/check-version.c (check_version): Likewise.
49034         * lib/javacomp.c (compile_java_class): Likewise.
49035
49036 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49037
49038         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49039         for the benefit of people using Autoconf 2.60.  If you want to
49040         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49041         (or m4/onceonly.m4, if pre-2.57) manually.
49042
49043 2006-07-08  Jim Meyering  <jim@meyering.net>
49044
49045         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49046         comment.
49047         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49048         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49049         comment.
49050
49051 2006-07-08  Jim Meyering  <jim@meyering.net>
49052
49053         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49054
49055 2006-07-07  Simon Josefsson  <jas@extundo.com>
49056
49057         * tests/test-crc.c: Change expected crc value, the test vector
49058         were probably computed using the old broken crc.c?
49059
49060 2006-07-06  Simon Josefsson  <jas@extundo.com>
49061
49062         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49063         now the canonical place for the M4 file).
49064
49065         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49066         from the sys_socket dependency now.
49067
49068         * modules/inet_pton (Files): Ditto.
49069
49070         * modules/inet_ntop (Files): Ditto.
49071
49072 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49073
49074         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49075         not gl_PREREQ_GETUSERSHELL.
49076
49077 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49078
49079         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49080         with only one argument, for Autoconf 2.60.
49081         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49082         expand to nothing, so add a shell command to avoid syntax error.
49083         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49084
49085 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49086
49087         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49088
49089 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49090
49091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49092         no longer needed.  Check for isblank decl.
49093         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49094         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49095         of existence.
49096
49097 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49098
49099         * lib/getloadavg.c: Use __VMS, not VMS.
49100         * lib/getopt.c: Likewise.
49101         * lib/getpagesize.h: Likewise.
49102         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49103         and probably does not work.
49104
49105 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49106
49107         * lib/.cppi-disable: Add wcwidth.
49108         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49109         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49110         (ISGRAPH): Remove.  All uses changed to isgraph.
49111         (FOLD) [!defined _LIBC]: Remove special case.
49112         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49113         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49114         HAVE_ISBLANK.
49115         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49116         case.
49117
49118 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49119
49120         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49121         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49122         brackets.  Other minor changes to suppress some compiler
49123         warnings.
49124
49125 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49126         and Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49129         of invoking obsolescent AC_HEADER_DIRENT macro.
49130         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49131         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49132         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49134         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49135         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49136         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49137         * m4/readdir.m4: Remove; no longer needed.
49138
49139 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49140         and Paul Eggert  <eggert@cs.ucla.edu>
49141
49142         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49143         Don't worry about this obsolete case any more.
49144         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49145         directories.
49146         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49147         worry about this obsolete case any more.
49148         * lib/fts.c: Likewise.
49149         * lib/getcwd.c: Likewise.
49150         * lib/glob.h: Likewise.
49151         * lib/savedir.c: Likewise.
49152
49153 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49154
49155         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49156         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49157         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49158         needed.
49159         All uses removed.
49160         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49161         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49162         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49163         needed.
49164         * m4/getdate.m4 (gl_GETDATE): Likewise.
49165         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49166         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49167         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49168         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49169         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49170         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49171         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49172         needed.
49173
49174 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         * lib/memcasecmp.c: Include <limits.h>.
49177         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49178         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49179         Don't assume isdigit succeeds only on '0' through '9'.
49180
49181 2006-07-05  Eric Blake  <ebb9@byu.net>
49182
49183         * modules/getaddrinfo (Depends-on): Add snprintf.
49184
49185 2006-07-05  Eric Blake  <ebb9@byu.net>
49186
49187         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49188         to avoid 'header present but could not be compiled' on cygwin.
49189
49190 2006-07-05  Eric Blake  <ebb9@byu.net>
49191
49192         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49193         missing from netdb.h.
49194         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49195
49196 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49197
49198         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49199         no longer needed.
49200         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49201         * m4/getdate.m4 (gl_GETDATE): Likewise.
49202         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49203         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49204         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49205         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49206         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49207
49208 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49209
49210         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49211         All uses of is_space replaced by isspace.
49212         * lib/exit.h: Don't talk about STDC_HEADERS.
49213         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49214         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49215         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49216         replaced by isprint etc.
49217         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49218         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49219         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49220         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49221         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49222         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49223
49224 2006-07-05  Bruno Haible  <bruno@clisp.org>
49225
49226         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49227         the function exists, before testing against AIX.
49228         Reported by Martin Lambers <marlam@marlam.de>.
49229
49230 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49233         From Mark D. Baushke.
49234
49235 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49236
49237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49238         to the absolute name, not just one, to bypass Sun C 5.8's
49239         "warning: #include of /usr/include/... may be non-portable".
49240
49241 2006-07-04  Eric Blake  <ebb9@byu.net>
49242
49243         * modules/dirname-tests: New test module.
49244         * tests/test-dirname.c: New file, replacing dirname.c
49245         TEST_DIRNAME section that was recently deleted.
49246
49247 2006-07-04  Bruno Haible  <bruno@clisp.org>
49248
49249         Assume ANSI C header files and <ctype.h> functions.
49250         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49251         (mbsnwidth): Use isprint, iscntrl instead.
49252
49253 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49254
49255         Merge from coreutils.
49256         * MODULES.html.sh: Add xstrtold.
49257         * modules/xstrtold: New file.
49258         * modules/cycle-check (Files): Add lib/same-inode.h.
49259         * modules/dirname (Files): Add m4/double-slash-root.m4.
49260         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49261         * modules/mkdir-p (Files): Add lib/same-inode.h.
49262         * modules/same (Files): Add lib/same-inode.h.
49263
49264 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49265
49266         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49267         This is to keep the terminology clean; POSIX talks about
49268         "absolute pathnames", not "full pathnames", but the GNU
49269         Coding Standards say to use "path" for something else;
49270         so use "absolute" to keep both sides happy.
49271         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49272         Set gl_absolute_header, not gl_full_header_path.
49273         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49274         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49275         All uses changed.
49276
49277         Merge from coreutils.
49278
49279         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49280
49281         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49282         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49283         want to require the building of c-strtod.o.
49284         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49285         needs -lm directly.
49286         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49287
49288         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49289
49290         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49291         --as-needed option if available.  Problem reported by Albert Chin in
49292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49293         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49294         cc merely issues a bunch of annoying warnings for --as-needed
49295         (this problem was reported by Bob Proulx).  Also, try linking with
49296         -lm to detect a bug in binutils 2.16 (this problem was reported
49297         by Ralf Wildenhues).
49298
49299         2006-06-18  Jim Meyering  <jim@meyering.net>
49300
49301         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49302         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49303         macro.
49304         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49305         also check for glibc-2.4's abort-inducing bug.
49306
49307         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49308         Low-probability clean-up should be to use rmdir to get rid of
49309         the just-created directory, not unlink.
49310
49311         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49312         configure fail, and request a bug report to inform us about it.
49313         Add a comment that, barring reports to the contrary, in 2007 we'll
49314         assume ftruncate is universally available.
49315
49316         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49317
49318         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49319
49320         2006-03-12  Jim Meyering  <jim@meyering.net>
49321
49322         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49323         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49324         * m4/same.m4 (gl_SAME): Likewise.
49325         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49326
49327         2006-03-11  Eric Blake  <ebb9@byu.net>
49328
49329         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49330         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49331         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49332         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49333
49334 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49335
49336         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49337         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49338         reported by Mark D. Baushke, one in
49339         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49340
49341         Merge from coreutils.
49342
49343         * lib/.cppi-disable: Add stdint_.h.
49344         * lib/.cvsignore: Add stdint.h.
49345
49346         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49347
49348         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49349         both double and long double versions.
49350         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49351         * lib/xstrtold.c: New file.
49352         * lib/xstrtod.h (xstrtold): New decl.
49353
49354         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49355
49356         * lib/filemode.c (setst): Remove.
49357         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49358         (arguably) clearer, and the generated code is a bit smaller on my
49359         Debian GNU/Linux stable x86 host.
49360
49361         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49364         Assume that filemode.h includes sys/types.h and sys/stat.h.
49365         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49366         (ftypelet): Reorder to put common cases first, for efficiency.
49367         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49368         to do 'M'.
49369         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49370         of 10, for compatibility with FreeBSD.  All callers changed.
49371         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49372         types that can't be deduced solely from st_mode.  First arg is now a
49373         const pointer.
49374         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49375         (strmode): Renamed from mode_string.
49376         (filemodestring): New decl.
49377         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49378         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49379         needed.
49380         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49381
49382         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49383
49384         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49385         fsusage.h now does that.  Include fsusage.h first, to test interface.
49386         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49387         at most one method (the old code could have generated decls that
49388         didn't conform to C89, not that this was ever exercised).
49389         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49390
49391         2006-03-19  Jim Meyering  <jim@meyering.net>
49392
49393         Work even in a chroot where d_ino values for entries in "/"
49394         don't match the stat.st_ino values for the same names.
49395         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49396         number, iterate through all entries again, using lstat instead.
49397         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49398         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49399
49400         * lib/getcwd.c (__getcwd): Clarify a comment.
49401         Use memcpy in place of a call to strcpy.
49402
49403         2006-03-12  Jim Meyering  <jim@meyering.net>
49404
49405         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49406         matches that of the current directory (which we're about to chdir ".."
49407         out of), then save the dev-ino of the parent, instead.
49408
49409         * lib/same-inode.h (SAME_INODE): New file/macro.
49410         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49411         Include "same-inode.h", instead.
49412         * lib/same.c: Likewise.
49413         * lib/cycle-check.h: Include "same-inode.h".
49414         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49415         * lib/cycle-check.c (SAME_INODE): Remove definition.
49416         * lib/root-dev-ino.h: Include "same-inode.h".
49417
49418         2006-03-11  Eric Blake  <ebb9@byu.net>
49419
49420         * lib/same.c (same_name): s/base_name/last_component/
49421         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49422         * lib/filenamecat.c (file_name_concat): Likewise.
49423
49424         2006-03-11  Eric Blake  <ebb9@byu.net>,
49425                     Paul Eggert  <eggert@cs.ucla.edu>
49426
49427         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49428         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49429         drive prefix.
49430         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49431         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49432         (last_component): New method.
49433         * lib/dirname.c (dir_len): Determine when drive letters need a
49434         subsequent slash.  Preserve // when it is special.
49435         (dir_name): Don't append dot when drive letter is absolute.
49436         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49437         * lib/basename.c (base_name): New semantics - malloc the result.
49438         Preserve // when it is special.  Preserve relative files that look
49439         like drive letters.
49440         (base_len): Preserve // when it is special.
49441         (last_component): New method, similar to old base_name semantics.
49442         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49443         base_name.  Strip redundant slashes from ///.
49444
49445 2006-07-03  Jim Meyering  <jim@meyering.net>
49446
49447         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49448         macro is used before the first cycle_check call.
49449
49450 2006-07-03  Eric Blake  <ebb9@byu.net>
49451
49452         * modules/dirname (Depends-on): Add xstrndup.
49453
49454 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49455
49456         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49457         test cases, so that config.log is a bit easier to follow.
49458
49459 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49462         both are 64 bits, since this seems to be the tradition, and this
49463         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49464         we ever run into a host that prefers long long to long in this
49465         case, we'll need another configure-time test.  Problem reported by
49466         Jim Meyering.
49467
49468 2006-07-02  Eric Blake  <ebb9@byu.net>
49469
49470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49471
49472 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         * modules/inttypes (Depends-on): No longer depends on stdint.
49475         * modules/stdint (Description): Say more about assumptions.
49476         Say that the fast types might differ.  Say macros are used.
49477         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49478         (Makefile.am): Revise list of substituted symbols to match
49479         new stdint.m4.
49480         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49481         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49482         * tests/test-stdint.c (verify_same_types)
49483         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49484         the code conforms to C99/C89.
49485         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49486         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49487
49488 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49489
49490         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49491         but fix a bug, by requiring at least 64 bits.
49492         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49493         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49494         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49495         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49496
49497         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49498         changes.  Make 2.59 a prerequisite.  Check and substitute for
49499         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49500         inttypes.h.  Do not use special include files; just use the
49501         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49502         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49503         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49504         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49505         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49506         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49507         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49508         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49509         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49510         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49511         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49512         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49513         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49514         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49515         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49516         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49517         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49518         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49519         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49520         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49521         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49522         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49523         not check for things that C99 does not require, e.g., int8_t.  If
49524         a test isn't needed unless <stdint.h> isn't working, and is
49525         unlikely to be needed for any other reason, then don't do it
49526         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49527         size_t, since we assume C89 freestanding at least.  Do not check
49528         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49529         the right thing even if the types are not defined.  Instead use:
49530         (gl_STDINT_TYPE_PROPERTIES): New macro.
49531         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49532         testing whether <sys/types.h> clashes, as Autoconf does this for
49533         us now.  All uses removed.
49534         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49535         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49536         (gl_CHECK_TYPE_SAME):
49537         Remove; no longer needed.
49538         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49539         exists, since we'll return 0 anyway in that case.
49540         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49541
49542 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49543
49544         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49545         possible collision with system files.
49546         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49547         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49548         WCHAR_MIN and WCHAR_MAX in this case.
49549         (<stddef.h>): Do not include; no longer needed.
49550         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49551         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49552         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49553         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49554         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49555         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49556         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49557         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49558         !defined(__c99))]: Include in this case too, since it's harmless
49559         now.
49560         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49561         dangerous to do so.
49562         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49563         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49564         (_STDINT_MIN, _STDINT_MAX): New macros.
49565         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49566         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49567         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49568         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49569         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49570         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49571         macros, not typedefs; this simplifies things quite a bit.
49572         Use long int for all types narrower than int64_t.
49573         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49574         Define in terms of long long int or int64_t or long int,
49575         not int64_t or int32_t.  This saves some compile-time testing.
49576         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49577         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49578         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49579         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49580         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49581         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49582         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49583         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49584         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49585         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49586         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49587         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49588         undef any previous version and define our own version, for
49589         simplicity and consistency with the new macros for types.
49590         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49591         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49592         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49593         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49594         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49595         @WINT_T_SUFFIX@ to keep things simple here.
49596         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49597         Simplify by assuming typical 8/16/32/64 host, since we're
49598         already doing that elsewhere anyway.
49599         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49600         and assume long long int is 64 bits if available.  This
49601         speeds up 'configure'.
49602
49603 2006-07-01  Eric Blake  <ebb9@byu.net>
49604
49605         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49606         Reported by Andreas Buening.
49607
49608 2006-07-01  Eric Blake  <ebb9@byu.net>
49609
49610         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49611
49612 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49613
49614         * lib/getaddrinfo.c: fixed typo
49615
49616 2006-06-29  Jim Meyering  <jim@meyering.net>
49617
49618         * modules/strftime (Maintainer): Add my name, since with the
49619         FPRINTFTIME changes strftime.c has forked from glibc.
49620
49621 2006-06-29  Eric Blake  <ebb9@byu.net>
49622
49623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
49624
49625 2006-06-29  Eric Blake  <ebb9@byu.net>
49626
49627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
49628
49629 2006-06-29  Eric Blake  <ebb9@byu.net>
49630
49631         * lib/stat_.h: New file.
49632
49633 2006-06-29  Eric Blake  <ebb9@byu.net>
49634
49635         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
49636         unused static function.
49637
49638 2006-06-29  Eric Blake  <ebb9@byu.net>
49639
49640         * doc/functions.texi (Function Portability): Document missing lstat
49641         on mingw.
49642
49643 2006-06-29  Eric Blake  <ebb9@byu.net>
49644
49645         * MODULES.html.sh: Add sys_stat.
49646         * modules/sys_stat: New module.
49647         * modules/mkstemp (Depends-on): Add sys_stat.
49648
49649 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49650
49651         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49652
49653 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49654
49655         * m4/c-bs-a.m4: Removed.
49656
49657 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49658
49659         * lib/strftime.c: Assume strftime() exists.
49660
49661 2006-06-29  Derek Price  <derek@ximbiot.com>
49662
49663         * modules/c-bs-a: Removed - \a is C89.
49664         * MODULES.html.sh: Remove c-bs-a.
49665
49666 2006-06-29  Bruno Haible  <bruno@clisp.org>
49667
49668         * modules/wcwidth (License): Change to LGPL.
49669
49670 2006-06-28  Simon Josefsson  <jas@extundo.com>
49671
49672         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49673         on _WIN32.
49674
49675         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49676         getnameinfo.
49677
49678 2006-06-28  Simon Josefsson  <jas@extundo.com>
49679
49680         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49681
49682 2006-06-28  Simon Josefsson  <jas@extundo.com>
49683
49684         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49685         functions there.  It will succeed on Windows XP, but on Windows
49686         2000 and (presumably) earlier, it will fail, and use the internal
49687         re-implementation.
49688         (use_win32_p): New function.
49689         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49690         Support AI_NUMERICSERV to disable getservbyname.
49691         (getnameinfo): New function, only supports
49692         NI_NUMERICHOST|NI_NUMERICSERV for now.
49693
49694         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49695         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49696         getnameinfo.
49697
49698 2006-06-28  Eric Blake  <ebb9@byu.net>
49699
49700         * modules/wcwidth: New file.
49701         * modules/mbchar (Depends-on): Add wcwidth.
49702         * modules/mbswidth (Depends-on): Add wcwidth.
49703         * MODULES.html.sh: Add wcwidth.
49704
49705 2006-06-28  Eric Blake  <ebb9@byu.net>
49706
49707         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49709
49710 2006-06-28  Eric Blake  <ebb9@byu.net>
49711
49712         * lib/xvasprintf.h: Fix comments.
49713
49714 2006-06-28  Eric Blake  <ebb9@byu.net>
49715
49716         * lib/mbchar.h (wcwidth): Include wcwidth.h.
49717         * lib/mbswidth.c (wcwidth): Move from here...
49718         * lib/wcwidth.h: ...to this new file.
49719
49720 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49721
49722         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
49723
49724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
49725         it's obsolete.
49726         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
49727
49728 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49729
49730         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
49731         Autoconf 2.60 says this stuff was obsolete.
49732
49733 2006-06-28  Bruno Haible  <bruno@clisp.org>
49734
49735         * modules/wcwidth (Files): Add m4/wchar_t.m4.
49736
49737 2006-06-28  Bruno Haible  <bruno@clisp.org>
49738
49739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
49740         gt_TYPE_WCHAR_T.
49741
49742 2006-06-28  Bruno Haible  <bruno@clisp.org>
49743
49744         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
49745         declaration for wcwidth.
49746         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
49747
49748 2006-06-28  Bruno Haible  <bruno@clisp.org>
49749
49750         * lib/mkdtemp.c [MINGW]: Include <io.h>.
49751         (mkdir): Define using _mkdir.
49752
49753 2006-06-28  Bruno Haible  <bruno@clisp.org>
49754
49755         * lib/getaddrinfo.h: Fix POSIX URL.
49756         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
49757         _WIN32.
49758         (use_win32_p): Make static.
49759         (getaddrinfo): Reject service name if it is empty or does not consist
49760         solely of decimal digits, or if its value is > 65535.
49761         (getnameinfo): Remove useless casts.
49762
49763 2006-06-27  Simon Josefsson  <jas@extundo.com>
49764
49765         * modules/sys_select: New file, suggested by Bruno Haible, Paul
49766         Eggert and Martin Lambers.
49767
49768 2006-06-27  Simon Josefsson  <jas@extundo.com>
49769
49770         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
49771         Eggert and Martin Lambers.
49772
49773 2006-06-27  Bruno Haible  <bruno@clisp.org>
49774
49775         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
49776         result to 0, not to empty.
49777         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
49778
49779 2006-06-27  Bruno Haible  <bruno@clisp.org>
49780
49781         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
49782
49783 2006-06-26  Simon Josefsson  <jas@extundo.com>
49784
49785         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
49786         present.
49787
49788 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
49789
49790         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
49791         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
49792         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
49793
49794 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
49795
49796         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
49797
49798 2006-06-26  Bruno Haible  <bruno@clisp.org>
49799
49800         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
49801
49802 2006-06-26  Bruno Haible  <bruno@clisp.org>
49803
49804         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
49805
49806 2006-06-26  Bruno Haible  <bruno@clisp.org>
49807
49808         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
49809         SGI C compiler in pre-C99 mode.
49810         Suggested by Mark D. Baushke and Larry Jones.
49811
49812 2006-06-26  Bruno Haible  <bruno@clisp.org>
49813
49814         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
49815         WCHAR_MAX.
49816         Reported by Mark D. Baushke and Larry Jones.
49817
49818 2006-06-26  Bruno Haible  <bruno@clisp.org>
49819
49820         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
49821         in pre-C99 mode.
49822         Suggested by Mark D. Baushke and Larry Jones.
49823
49824 2006-06-23  Simon Josefsson  <jas@extundo.com>
49825             Bruno Haible  <bruno@clisp.org>
49826
49827         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
49828         Emit mostlyclean-local rule.
49829         (func_emit_tests_Makefile_am): Likewise.
49830         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
49831
49832 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
49833
49834         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
49835
49836 2006-06-23  Bruno Haible  <bruno@clisp.org>
49837
49838         * tests/test-stdint.c: Update to match ISO C 99 Technical
49839         Corrigendum 1.
49840
49841 2006-06-23  Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
49844
49845 2006-06-23  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/stdint_.h: Treat IRIX like OpenBSD.
49848
49849 2006-06-23  Bruno Haible  <bruno@clisp.org>
49850
49851         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
49852         ISO C 99 Technical Corrigendum 1.
49853
49854 2006-06-22  Simon Josefsson  <jas@extundo.com>
49855
49856         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
49857         MinGW.
49858
49859 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49860
49861         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
49862         needed.  Some compiler complained about some of them.  Problem reported
49863         by Larry Jones in
49864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
49865
49866 2006-06-21  Simon Josefsson  <jas@extundo.com>
49867
49868         * tests/test-getaddrinfo.c: New file.
49869
49870         * modules/getaddrinfo-tests: New file.
49871
49872         * MODULES.html.sh: Add inet_pton.
49873
49874         * modules/inet_pton: New file.
49875
49876 2006-06-21  Simon Josefsson  <jas@extundo.com>
49877
49878         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
49879         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
49880         of using the (limited) gnulib implementation on Windows XP.
49881
49882         * m4/inet_pton.m4: New file.
49883
49884 2006-06-21  Simon Josefsson  <jas@extundo.com>
49885
49886         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
49887         variable.
49888
49889         * lib/socket_.h: Don't define WINVER.
49890
49891         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
49892         slightly modified to work in gnulib.
49893
49894 2006-06-21  Simon Josefsson  <jas@extundo.com>
49895
49896         * doc/gnulib.texi (Windows sockets): Add.
49897
49898 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49899
49900         * lib/read-file.c (fread_file): Start with buffer allocation of
49901         0 bytes rather than 1 byte; this simplifies the code.
49902         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
49903         code to free buffer and save/restore errno.
49904         (internal_read_file): Remove unused local.
49905
49906 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
49909         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
49910         Problem reported by Denis Excoffier in
49911         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
49912
49913 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49914
49915         * modules/sys_socket, modules/socklen: Include sys/types since
49916         FreeBSD 4.x's sys/socket.h needs it.
49917
49918 2006-06-19  Simon Josefsson  <jas@extundo.com>
49919
49920         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
49921
49922 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
49925
49926 2006-06-19  Bruno Haible  <bruno@clisp.org>
49927
49928         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
49929         and FULL_PATH_INTTYPES_H in angle brackets.
49930         Reported by Mark D. Baushke <mdb@gnu.org>.
49931
49932 2006-06-17  Eric Blake  <ebb9@byu.net>
49933
49934         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
49935         errno.
49936
49937 2006-06-17  Bruno Haible  <bruno@clisp.org>
49938
49939         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
49940         <sys/inttypes.h>.
49941
49942 2006-06-17  Bruno Haible  <bruno@clisp.org>
49943
49944         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
49945         whether errno is declared. Assume <errno.h> declares errno.
49946
49947 2006-06-17  Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
49950
49951 2006-06-17  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
49954         problem on Solaris 2.5.1.
49955
49956 2006-06-16  Eric Blake  <ebb9@byu.net>
49957
49958         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
49959         * lib/unicodeio.c [!defined errno]: Likewise.
49960         * lib/strtol.c [!defined errno]: Likewise.
49961         * lib/strtod.c [!defined errno]: Likewise.
49962
49963 2006-06-15  Eric Blake  <ebb9@byu.net>
49964
49965         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
49966
49967 2006-06-15  Eric Blake  <ebb9@byu.net>
49968
49969         * config/srclist.txt (ssize_t.m4): Lose sync.
49970
49971 2006-06-15  Bruno Haible  <bruno@clisp.org>
49972
49973         * modules/stdint (Files): Include m4/full-header-path.m4,
49974         m4/size_max.m4, m4/wchar_t.m4.
49975         (Makefile.am): Many more substitutions.
49976         * modules/stdint-tests: New file.
49977         * tests/test-stdint.c: New file.
49978
49979 2006-06-15  Bruno Haible  <bruno@clisp.org>
49980
49981         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
49982         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
49983         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
49984         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
49985         gl_CHECK_TYPE_SAME): New macros.
49986
49987 2006-06-15  Bruno Haible  <bruno@clisp.org>
49988
49989         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
49990
49991 2006-06-15  Bruno Haible  <bruno@clisp.org>
49992
49993         * lib/stdint_.h: Rewritten to be fully auto-configured.
49994         Fixes bug on HP-UX/IA64.
49995
49996 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
49997
49998         * lib/getdate.y (__attribute__): Don't define if already defined.
49999         Problem reported by Larry Jones.
50000         * lib/utimens.c (__attribute__): Likewise.
50001
50002 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50003
50004         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50005         reported by Andreas Schwab.
50006
50007 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50008             Bruno Haible  <bruno@clisp.org>
50009
50010         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50011         check for the declaration of strnlen and a run test that exposes the
50012         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50013         rpl_strndup.
50014
50015 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50016             Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50019
50020 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50021
50022         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50023         compile test, for Tru64 4.0D.
50024
50025 2006-05-28  Karl Berry  <karl@gnu.org>
50026
50027         * config/srclist.txt (printf-args.c): lose sync.
50028
50029 2006-05-26  Martin Lambers  <marlam@marlam.de>
50030
50031         * lib/getpass.c: Updates the test for the native W32 API, and adds
50032         missing includes, thus fixing compilation warnings.
50033
50034 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50035
50036         * lib/exclude.c (exclude_fnmatch): New function.
50037         (excluded_file_name): Call exclude_fnmatch.
50038         * lib/exclude.h (excluded_file_name): New prototype
50039
50040 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50041
50042         * lib/tempname.c (small_open, large_open): New macros.
50043         (__open, __open64) [!_LIBC]: Remove.
50044         (__gen_tempname): Use small_open and large_open instead of __open
50045         and __open64.  This fixes a portability bug on HP-UX 11.11i
50046         reported by Simon Wing-Tang in
50047         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50048
50049 2006-05-24  Bruno Haible  <bruno@clisp.org>
50050
50051         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50052         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50053         Reported by Thorsten Maerz <torte@netztorte.de> via
50054         Aaron Stone <aaron@serendipity.cx>.
50055
50056 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50057
50058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50059         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50060         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50061         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50062         not really conditional on the cache.
50063         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50064
50065 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50066
50067         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50068         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50069         (my_usleep): Don't mishandle maximum value.
50070
50071 2006-05-19  Jim Meyering  <jim@meyering.net>
50072
50073         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50074
50075 2006-05-17  Bruno Haible  <bruno@clisp.org>
50076
50077         Cygwin portability.
50078         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50079
50080 2006-05-17  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/stdint_.h: Fix recognition of Cygwin.
50083
50084 2006-05-15  Bruno Haible  <bruno@clisp.org>
50085
50086         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50087         on libtool patch by Ralf Wildenhues.
50088
50089 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50090
50091         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50092         test for C99 conformance; (bool) 0.5 is an integer constant
50093         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50094         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50095
50096 2006-05-11  Simon Josefsson  <jas@extundo.com>
50097
50098         * m4/xvasprintf.m4: Fix obvious typo.
50099
50100 2006-05-11  Jim Meyering  <jim@meyering.net>
50101
50102         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50103         James Lemley.
50104
50105 2006-05-10  Simon Josefsson  <jas@extundo.com>
50106
50107         * lib/md4.c: Typo fix, update copyright years.
50108         (K1, K2): Don't use L because it turn computations into 64-bit on
50109         64-bit platforms.
50110
50111 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50112
50113         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50114         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50115         unwanted sign propagation, e.g., on hosts with 64-bit int.
50116         There still are some problems with reeelly weird theoretical hosts
50117         (e.g., 33-bit int) but it's not worth worrying about now.
50118         * lib/sha1.c (rol): Likewise.
50119         (K1, K2, K3, K4): Remove unnecessary L suffix.
50120
50121 2006-05-10  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/des.c: Cast to avoid warnings.
50124
50125 2006-05-09  Bruno Haible  <bruno@clisp.org>
50126
50127         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50128         (Depends-on): Depend also on xsize, stdarg.
50129         (configure.ac): Add gl_XVASPRINTF.
50130
50131 2006-05-09  Bruno Haible  <bruno@clisp.org>
50132
50133         * m4/xvasprintf.m4: New file.
50134
50135 2006-05-09  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50138         (EOVERFLOW): Define fallback value.
50139         (xstrcat): New function.
50140         (xvasprintf): Recognize the special case of a string concatenation.
50141
50142 2006-05-08  Eric Blake  <ebb9@byu.net>
50143
50144         * gnulib-tool (func_version): Base copyright year on CVS date.
50145         (func_emit_copyright_notice): New function.
50146         (func_emit_lib_Makefile_am): Use it.
50147         (func_emit_tests_Makefile_am): Likewise.
50148         (func_import): Likewise.
50149
50150 2006-05-08  Bruno Haible  <bruno@clisp.org>
50151
50152         * modules/stdarg: New file.
50153         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50154
50155 2006-05-08  Bruno Haible  <bruno@clisp.org>
50156
50157         * m4/stdarg.m4: New file, from GNU gettext.
50158
50159 2006-05-08  Bruno Haible  <bruno@clisp.org>
50160
50161         * config/srclist.txt (build-aux/config.rpath): different from latest
50162         release.
50163
50164 2006-05-08  Bruno Haible  <bruno@clisp.org>
50165
50166         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50167
50168 2006-05-05  Jim Meyering  <jim@meyering.net>
50169
50170         * m4/warning.m4: New file, derived from bison's file by the same name.
50171
50172 2006-05-03  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/stdint_.h: Shorter URL.
50175         * lib/inttypes.h: Likewise.
50176
50177 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50178
50179         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50180
50181 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50182
50183         * lib/verify.h: Document the internals better.  Most of this change
50184         was written by Bruno Haible.
50185
50186 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50187
50188         * doc/verify.texi: New file, partly based on a proposal by
50189         Bruno Haible.
50190
50191 2006-05-02  Bruno Haible  <bruno@clisp.org>
50192
50193         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50194         test from here...
50195         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50196
50197 2006-04-29  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50200         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50201
50202 2006-04-29  Bruno Haible  <bruno@clisp.org>
50203
50204         * gnulib-tool: Make --update option actually work.
50205
50206 2006-04-29  Bruno Haible  <bruno@clisp.org>
50207
50208         * doc/gcd.texi: New file.
50209         * doc/gnulib.texi: Include it.
50210
50211 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * lib/getdate.y (get_date): When adding relative date, start with the
50214         initial time, not with the result of the first mktime call.
50215
50216 2006-04-25  Bruno Haible  <bruno@clisp.org>
50217
50218         * gnulib-tool (func_import): Output the include directives in three
50219         blocks, sorted separately.
50220         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50221
50222 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50223
50224         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50225         to define main with arguments, for C++.  Reported by Eric Blake.
50226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50227         Prefer 'int main ()' to 'int main (void)', for C++.
50228         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50229         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50230         for 'main', for C99 and C++.
50231
50232 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50233
50234         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50235         Don't assume that exit status -1 is valid.
50236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50237         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50238         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50239         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50240         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50241         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50242         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50243         functions can be used without declaring them, or that you can
50244         exit with status -1.
50245         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50246
50247 2006-04-24  Karl Berry  <karl@gnu.org>
50248
50249         * config/srclist.txt (longdouble.m4): sync lost.
50250
50251 2006-04-24  Eric Blake  <ebb9@byu.net>
50252
50253         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50254
50255 2006-04-24  Bruno Haible  <bruno@clisp.org>
50256
50257         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50258         poll() implementation in AIX.
50259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50260
50261 2006-04-24  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50264         assigned exactly once.
50265
50266 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50267             Bruno Haible  <bruno@clisp.org>
50268
50269         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50270         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50271         for AM_CPPFLAGS.
50272
50273 2006-04-23  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/copy-file: Depend on unistd.
50276         * modules/execute: Likewise.
50277         * modules/fatal-signal: Likewise.
50278         * modules/findprog: Likewise.
50279         * modules/mkdtemp : Likewise.
50280         * modules/pipe: Likewise.
50281         * modules/wait-process: Likewise.
50282
50283 2006-04-23  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50286         condition was already detected.
50287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50288
50289 2006-04-23  Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/copy-file.c: Include <unistd.h> unconditionally.
50292         * lib/execute.c: Likewise.
50293         * lib/fatal-signal.c: Likewise.
50294         * lib/findprog.c: Likewise.
50295         * lib/mkdtemp.c: Likewise.
50296         * lib/pipe.h: Likewise.
50297         * lib/pipe.c: Likewise.
50298         * lib/wait-process.h: Likewise.
50299
50300 2006-04-23  Bruno Haible  <bruno@clisp.org>
50301
50302         * gnulib-tool (func_usage): Fix --import description. Document
50303         --update.
50304         (func_import): Create temporary file in a temporary directory, if
50305         --dry-run is specified. Silence errors from 'grep' when there are no
50306         m4 files in $m4dir.
50307         (func_create_testdir): Silence errors from 'grep' when there are no
50308         m4 files in $m4dir.
50309         Reported by Karl Berry <karl@freefriends.org>.
50310
50311 2006-04-20  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50314         one argument, so that the code will be portable to Autoconf 2.60.
50315         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50316         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50317         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50318
50319 2006-04-19  Derek Price  <derek@ximbiot.com>
50320             Eric Blake  <ebb9@byu.net>
50321
50322         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50323         rather than "/full/path.h".  Update comment to match.  Shorten &
50324         generalize m4_translit call via AS_TR_CPP.
50325
50326 2006-04-19  Derek Price  <derek@ximbiot.com>
50327             Eric Blake  <ebb9@byu.net>
50328
50329         * lib/inttypes.h: Correct grammar in comment.
50330
50331 2006-04-18  Derek Price  <derek@ximbiot.com>
50332             Paul Eggert  <eggert@cs.ucla.edu>
50333
50334         * modules/inttypes: New file.
50335         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50336
50337 2006-04-18  Derek Price  <derek@ximbiot.com>
50338             Paul Eggert  <eggert@cs.ucla.edu>
50339
50340         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50341         New files.
50342
50343 2006-04-18  Derek Price  <derek@ximbiot.com>
50344             Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * lib/inttypes.h: New file.
50347         * lib/strtoimax.c: Assume <inttypes.h>.
50348
50349 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50350
50351         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50352         isn't mounted.  Problem reported by Kir Kolyshkin.
50353
50354 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50355
50356         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50357         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50358         Derek R. Price.
50359         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50360         implementation.
50361
50362 2006-04-12  Eric Blake  <ebb9@byu.net>
50363
50364         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50365         is now done automatically by the corresponding Autoconf macro.
50366
50367 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50368
50369         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50370         time_r.h.
50371
50372 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         Merge regex changes from libc, removing some of our
50375         POSIX-conformance changes that were rejected and redoing them in a
50376         less-intrusive way.
50377
50378         * lib/regcomp.c (re_compile_internal, init_dfa):
50379         Length arg is now size_t, not Idx.  All uses changed.
50380         (peek_token): Forward decl now says internal_function.
50381         (__re_error_msgid, __re_error_msgid_idx):
50382         Now static rather than extern with attribute_hidden.
50383         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50384         For some reason libc prefers K&R style defns for external functions.
50385         (regerror) [!defined _LIBC]: Likewise.
50386         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50387         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50388         (build_range_exp, build_collating_symbol):
50389         Use K&R-style defn.
50390         (re_compile_fastmap): Use '\0' to memset, not 0.
50391         (utf8_sb_map): Make the calculations more obvious.
50392         (init_dfa, parse_bracket_exp, build_charclass_op):
50393         Call calloc and cast result, as glibc does.
50394         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50395         (build_range_exp, build_collating_symbol):
50396         Now internal functions.
50397
50398         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50399
50400         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50401         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50402         Don't depend on VMS; depend on __VMS instead, for POSIX
50403         namespace cleanness.
50404         (regoff_t): Define to ssize_t, not long int.
50405
50406         Remove the REG_ macros named below.  Instead, make the old names
50407         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50408         __USE_GNU_REGEX.
50409         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50410         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50411         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50412         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50413         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50414         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50415         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50416         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50417         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50418         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50419         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50420         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50421         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50422         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50423         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50424         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50425         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50426         (REG_NREGS):
50427         Remove.  All uses replaced by the old RE_* names.
50428         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50429         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50430         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50431         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50432         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50433         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50434         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50435         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50436         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50437         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50438         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50439         Don't bother having these macros be independent of each others'
50440         values, since they no longer exist in the POSIX name space.
50441
50442         Rename the following member names back to their old names,
50443         unless !__USE_GNU_REGEX.  All uses changed back.
50444         (buffer): Renamed from re_buffer.
50445         (allocated): Renamed from re_allocated.
50446         (used): Renamed from re_used.
50447         (syntax): Renamed from re_syntax.
50448         (fastmap): Renamed from re_fastmap.
50449         (translate): Renamed from re_translate.
50450         (can_be_null): Renamed from re_can_be_null.
50451         (regs_allocated): Renamed from re_regs_allocated.
50452         (fastmap_accurate): Renamed from re_fastmap_accurate.
50453         (no_sub): Renamed from re_no_sub.
50454         (not_bol): Renamed from re_not_bol.
50455         (not_eol): Renamed from re_not_eol.
50456         (newline_anchor): Renamed from re_newline_anchor.
50457         (num_regs): Renamed from rm_num_regs.
50458         (start): Renamed from rm_start.
50459         (end): Renamed from rm_end.
50460
50461         (free_state): Move up a bit.
50462
50463         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50464         #define to be empty.
50465         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50466         when that is what is intended.
50467         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50468         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50469         (MAX): New macro.
50470         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50471         All uses changed back to re_malloc, etc.  It's now the caller's
50472         responsibility to check for overflow; all callers changed.
50473         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50474         (re_x2nrealloc): Remove.
50475         (free_state): Remove decl.
50476
50477         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50478         (re_set_registers, re_exec):
50479         Use K&R-style defn.
50480
50481         2006-01-31  Roland McGrath  <roland@redhat.com>
50482
50483         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50484         Reported by Mike Frysinger <vapier@gentoo.org>.
50485
50486         2006-01-15  Andreas Jaeger  <aj@suse.de>
50487
50488         [BZ #1950]
50489         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50490         build_wcs_upper_buffer change.
50491         (build_wcs_upper_buffer): Change return type.
50492
50493         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50494
50495         * lib/regex_internal.h: Include <stdint.h> if available.
50496
50497         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50498
50499         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50500
50501         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50502
50503         * lib/regcomp.c: Adjust for changed secondary hash function.
50504
50505         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50506
50507         * lib/regex.h: Pretty printing.
50508         Clean up namespace a bit.
50509
50510         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50511
50512         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50513         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50514
50515         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50516                     Ulrich Drepper  <drepper@redhat.com>
50517
50518         [BZ #1302]
50519         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50520         changed.
50521         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50522
50523         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50524
50525         [BZ #281]
50526         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50527         * lib/regcomp.c: Remove unnecessary uses of
50528         unsigned RE_TRANSLATE_TYPE.
50529         * lib/regex_internal.h: Likewise.
50530         * lib/regex_internal.c: Likewise.
50531         * lib/regexec.c: Likewise.
50532         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50533
50534         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50535
50536         * lib/regexec.c (find_recover_state): Remove unnecessary
50537         initialization.
50538         (transit_state_bkref): Make DFA a const pointer.
50539         (get_subexp): Likewise.
50540         (check_arrival): Likewise.
50541         (update_cur_sifted_state): Likewise.
50542         (re_search_internal): Likewise.
50543         (prune_impossible_nodes): Likewise.
50544         (acquire_init_state_context): Likewise.
50545         (proceed_next_node): Likewise.
50546         (set_regs): Likewise.
50547         (free_fail_stack_return): Likewise.
50548         (check_arrival_expand_ecl): Mark DFA parameter as const.
50549         (check_arrival_expand_ecl_sub): Likewise.
50550         (check_subexp_limits): Likewise.
50551         (sub_epsilon_src_nodes):  Likewise.
50552         (add_epsilon_src_nodes):  Likewise.
50553         (merge_state_array): Likewise.
50554         (update_regs): Likewise.
50555         (build_trtable): Likewise.
50556         (sift_states_backward): Mark MCTX parameter as const.
50557         (build_sifted_states): Likewise.
50558         (update_cur_sifted_state): Likewise.
50559         (sift_states_mkref): Likewise.
50560         (check_arrival_expand_ecl): Mark eclosure as const.
50561         (check_dst_limits_calc_pos_1): Likewise.
50562         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50563         pointer.
50564
50565         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50566
50567         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50568         (transit_state_sb): Likewise.
50569         (transit_state_mb): Likewise.
50570         (sift_states_iter_mb): Likewise.
50571         (check_arrival_add_next_nodes): Likewise.
50572         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50573         [_LIBC] (re_search_2_stub): Use mempcpy.
50574
50575         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50576         mbrtowc for very simple UTF-8 case.
50577
50578         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50579         a pointer-to-const.
50580         (re_acquire_state_context): Likewise.
50581         * lib/regex_internal.h: Adjust prototypes.
50582
50583         * lib/regex.c: Prevent using C++ compilers.
50584
50585         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50586         (re_acquire_state_context): Likewise.
50587
50588 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50589
50590         * modules/regex (Depends-on): Add ssize_t.
50591
50592 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50593
50594         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50595         translation table.
50596
50597 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50598
50599         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50600
50601 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50602             Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50605         <sys/types.h> and <inttypes.h>.
50606
50607 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50608
50609         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50610         `__error_t_defined', so argp.h will not typedef the former.
50611
50612 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50613
50614         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
50615         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
50616         glibc names.  Even if glibc is changed to conform to POSIX, the
50617         traditional names will be available anyway, since regex depends on
50618         the extensions module.  Also, fix a longstanding typo in the
50619         implementation of Spencer ERE test #75 from grep 2.3.  Problems
50620         reported by Emanuele Giaquinta.  Also, change sense of cached
50621         variable, so that the message makes sense.
50622
50623 2006-03-24  Simon Josefsson  <jas@extundo.com>
50624
50625         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
50626         including some doc fixes.
50627         (base64_encode_alloc): Fix +1 bug on allocation failures.
50628
50629 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50630
50631         * lib/base64.c (base64_encode): Do not read past end of array with
50632         unsanitized input on systems with CHAR_BIT > 8.
50633
50634 2006-03-24  Eric Blake  <ebb9@byu.net>
50635
50636         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
50637
50638 2006-03-22  Karl Berry  <karl@gnu.org>
50639
50640         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50641         * config/srclistvars.sh (COREUTILS): new var.
50642
50643 2006-03-17  Jim Meyering  <jim@meyering.net>
50644
50645         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50646         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50647
50648 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50651         no longer needs it.  Instead, check that regoff_t is as least
50652         as wide as ptrdiff_t.
50653
50654         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50655         so that our regex.h stays compatible with the installed regex.
50656         This is helpful for installers who configure --without-included-regex.
50657         Problem reported by Emanuele Giaquinta.
50658
50659 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50662         Typedef to long int, not to off_, as POSIX will likely change
50663         in that direction.
50664
50665 2006-03-15  Eric Blake  <ebb9@byu.net>
50666
50667         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50668
50669 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50670
50671         * lib/argp-help.c (validate_uparams): Fix typo
50672         * lib/argp-parse.c (argp_default_options): Consistently begin help
50673         messages with a lowercase letter.
50674
50675 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50676
50677         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50678         overrun buffers and shouldn't be used (much as gets shouldn't be
50679         used).
50680         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50681
50682 2006-03-08  Simon Josefsson  <jas@extundo.com>
50683
50684         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50685         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50686
50687 2006-03-08  Simon Josefsson  <jas@extundo.com>
50688
50689         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50690         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50691
50692 2006-03-08  Simon Josefsson  <jas@extundo.com>
50693
50694         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50695         signal that configure disabled the device.
50696
50697 2006-03-08  Simon Josefsson  <jas@extundo.com>
50698
50699         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50700         languages.
50701
50702 2006-03-07  Simon Josefsson  <jas@extundo.com>
50703
50704         * modules/getopt (Depends-on): Add unistd.
50705
50706         * modules/unistd: New file.
50707
50708 2006-03-07  Simon Josefsson  <jas@extundo.com>
50709
50710         * modules/gc-random: New file.
50711
50712 2006-03-07  Simon Josefsson  <jas@extundo.com>
50713
50714         * m4/unistd_h.m4: New file.
50715
50716 2006-03-07  Simon Josefsson  <jas@extundo.com>
50717
50718         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
50719         test to be side-effect free by storing the result in the cache
50720         variable gl_cv_lib_readline, and moving the assignment of
50721         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
50722         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50723
50724 2006-03-07  Simon Josefsson  <jas@extundo.com>
50725
50726         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
50727         error on missing devices (the functions will return an error).
50728
50729         * m4/gc.m4: Move random stuff to gc-random.m4
50730
50731 2006-03-07  Simon Josefsson  <jas@extundo.com>
50732
50733         * lib/unistd_.h: New file.
50734
50735 2006-03-07  Simon Josefsson  <jas@extundo.com>
50736
50737         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
50738
50739 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50740
50741         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
50742         Problem reported by Juan Manuel Guerrero.
50743
50744 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
50747         the unistd module.
50748         * lib/getlogin_r.c: Likewise.
50749         * lib/getlogin_r.h: Likewise.
50750         * lib/glob.c: Likewise.
50751         * lib/pagealign_alloc.c: Likewise.
50752         * lib/unistd_.h: Remove; no longer needed.
50753
50754 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50755
50756         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50757         Add unistd.
50758         * modules/c-stack (Depends-on): Add unistd.
50759         * modules/getlogin_r: Likewise.
50760         * modules/glob: Likewise.
50761         * modules/pagealign_alloc: Likewise.
50762         * modules/unistd (Files): Remove lib/unistd_.h.
50763         (EXTRA_DIST): Remove.
50764         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
50765         need unistd_.h.
50766         (MOSTLYCLEANFILES): Remove unistd.h-t.
50767
50768 2006-03-03  Simon Josefsson  <jas@extundo.com>
50769
50770         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
50771
50772 2006-03-03  Simon Josefsson  <jas@extundo.com>
50773
50774         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
50775         libidn and bison.
50776
50777 2006-03-03  Simon Josefsson  <jas@extundo.com>
50778
50779         * build-aux/maint.mk: Add indent target.
50780
50781 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
50782
50783         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
50784         our replacement poll.h in any case, to avoid a differing
50785         declaration from a system header.  Seen on AIX.
50786
50787 2006-03-01  Simon Josefsson  <jas@extundo.com>
50788
50789         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
50790         <kasal@ucw.cz>.
50791
50792 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50793
50794         * modules/gettime (Depends-on): Add extensions module.
50795         * modules/nanosleep (Depends-on): Likewise.
50796         * modules/settime (Depends-on): Likewise.
50797
50798 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
50801         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
50802         pedantically.
50803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50804         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
50805
50806         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
50807         not "==".  Reported by Ralf Wildenhues.
50808
50809 2006-03-01  Karl Berry  <karl@gnu.org>
50810
50811         * doc/Copyright/request-*: new files, synced from gnuorg.
50812
50813 2006-03-01  Karl Berry  <karl@gnu.org>
50814
50815         * config/srclist.txt (Copyright/*): new entries.
50816
50817 2006-02-28  Simon Josefsson  <jas@extundo.com>
50818
50819         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
50820
50821 2006-02-27  Simon Josefsson  <jas@extundo.com>
50822
50823         * lib/base64.h: Indent #define's.  From Jim Meyering
50824         <jim@meyering.net>.
50825
50826 2006-02-27  Jim Meyering  <jim@meyering.net>
50827
50828         Revert the change of 2006-02-24, so these files can continue
50829         to be sync'd from gettext.
50830         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
50831         of `config.h'.
50832
50833 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50834
50835         * modules/intprops: New file.
50836         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50837         Add intprops.
50838         * modules/getloadavg (Files): Remove lib/intprops.h.
50839         (Depends-on): Add intprops.
50840         * modules/human: Likewise.
50841         * modules/inttostr: Likewise.
50842         * modules/openat: Likewise.
50843         * modules/sig2str: Likewise.
50844         * modules/userspec: Likewise.
50845         * modules/utimecmp: Likewise.
50846         * modules/xnanosleep: Likewise.
50847         * modules/xstrtol: Likewise.
50848
50849 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
50850
50851         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
50852         * modules/lock-tests (TESTS): Use $(EXEEXT).
50853         * modules/tls-tests: Likewise.
50854         * modules/argp-tests: Likewise.
50855         (check_PROGRAMS): New var, replacing...
50856         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
50857
50858 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50859
50860         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
50861         `config.h'.
50862
50863 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
50866
50867 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50868
50869         Sync from coreutils.
50870         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
50871         gl_CHDIR_SAFER.
50872
50873 2006-02-22  Jim Meyering  <jim@meyering.net>
50874
50875         Sync from coreutils.
50876         * m4/chdir-safer.m4: New file.
50877
50878 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
50881         AT_FDCWD exceeds INT_MAX.
50882         * lib/openat.h (AT_FDCWD): Likewise.
50883
50884 2006-02-17  Eric Blake  <address@hidden>
50885
50886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
50887
50888 2006-02-16  Simon Josefsson  <jas@extundo.com>
50889
50890         * modules/getaddrinfo (Depends-on): Add sys_socket.
50891
50892 2006-02-15  Simon Josefsson  <jas@extundo.com>
50893
50894         * build-aux/maint.mk: Add dsyntax-check rule.
50895
50896 2006-02-15  Eric Blake  <ebb9@byu.net>
50897
50898         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
50899         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
50900         'present but cannot compile' warnings on cygwin.
50901         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
50902         use ws2tcpip.h if sys/socket.h works.
50903         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
50904         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
50905
50906 2006-02-14  Simon Josefsson  <jas@extundo.com>
50907
50908         * modules/maintainer-makefile (Files): Rename.
50909
50910         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
50911         and (the local) Makefile.cfg to maint-cfg.mk.
50912
50913         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
50914         to the latter.
50915
50916         * modules/maintainer-makefile: New module.
50917
50918         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
50919         severaly stripped to make it possible to build it up from scratch
50920         with reliable tests.
50921
50922         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
50923         fixes to permit overriding the default actions when configure and
50924         makefile are not available.
50925
50926 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
50927
50928         Sync from coreutils.
50929         * modules/lstat (Depends-on): Don't depend on xalloc.
50930         (License): Change from GPL to LGPL, since this is now simply a
50931         replacement for a libc function.
50932
50933 2006-02-14  Jim Meyering  <jim@meyering.net>
50934
50935         Sync from coreutils.
50936
50937         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
50938         failure on deficient systems, and simplify gnulib lgpl dependencies.
50939         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
50940         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
50941
50942         * lib/xalloc-die.c: Remove unused definition of N_.
50943
50944 2006-02-14  Jim Meyering  <jim@meyering.net>
50945
50946         Sync from coreutils.
50947         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
50948         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
50949         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
50950         double-quote uses of that variable, to accommodate the rare case in
50951         which getmntent is available in none of the libraries checked.  This
50952         happens at least on FreeBSD 5.0.
50953
50954 2006-02-13  Simon Josefsson  <jas@extundo.com>
50955
50956         * gnulib-tool (Usage): Fix --import, from
50957         karl@freefriends.org (Karl Berry).
50958
50959 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50960
50961         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
50962
50963 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
50964
50965         * lib/argp-namefrob.h: Restore changes accidentally lost during the
50966         "autoupdate" on 2005-12-12.
50967
50968 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
50969
50970         * modules/closeout (Depends-on): Remove atexit.
50971
50972 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
50973
50974         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
50975         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
50976
50977 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
50980         __EXTENSIONS__ if this causes compilation to fail.  Problem
50981         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
50982         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
50983
50984 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
50987         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
50988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
50989         All uses changed.
50990
50991 2006-01-26  Simon Josefsson  <jas@extundo.com>
50992
50993         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
50994         prototype is visible on mingw32.
50995
50996         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
50997         for mingw32.
50998
50999         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51000         mingw32).
51001
51002 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51003
51004         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51005         attempt to open for write; this always fails, at least on POSIX
51006         hosts.  This reinstates the 2006-01-09 change, which was
51007         inadvertently removed.
51008
51009 2006-01-26  Bruno Haible  <bruno@clisp.org>
51010
51011         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51012         Reported by Paul Eggert.
51013
51014 2006-01-26  Bruno Haible  <bruno@clisp.org>
51015             Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         * lib/stdbool_.h (_Bool)
51018         [(! (defined __cplusplus || defined __BEOS__)
51019           && !defined __GNUC__
51020           && !(defined __HP_cc || defined __xlc__
51021                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51022                || defined __sgi))]:
51023         #define to signed char in these cases too; this simplifies
51024         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51025         etc., separately) and makes it more conservative.
51026
51027 2006-01-25  Simon Josefsson  <jas@extundo.com>
51028
51029         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51030         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51031         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51032
51033 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51034
51035         * lib/argp-namefrob.h: Bugfix. Remove stray #
51036
51037 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51038
51039         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51040         so that we test the test.
51041         Check for yet another HP-UX cc bug involving *bool |= bool.
51042
51043 2006-01-25  Karl Berry  <karl@gnu.org>
51044
51045         * config/srclist.txt (vasnprintf.c): sync lost.
51046
51047 2006-01-25  Jim Meyering  <jim@meyering.net>
51048
51049         Sync from the stable (b5) branch of coreutils:
51050
51051         * lib/fts.c (fts_children): Don't let close() clobber errno from
51052         failed fchdir().
51053
51054         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51055         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51056         a dangling symlink.  That can also happen at least for ELOOP.
51057         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51058         FYI, this bug predates the inclusion of fts.c in coreutils.
51059
51060         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51061         in their own block, so pre-c99 compilers don't object.
51062
51063         Avoid the double-free (first in fts_read, second in fts_close) that
51064         would occur when an `active' directory is made inaccessible (e.g.,
51065         via chmod a-x) during a traversal.
51066         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51067         before returning.  Reproduce this failure by
51068         mkdir -p a/b; cd a; chmod a-x . b
51069         Reported by Stavros Passas.
51070
51071 2006-01-25  Jim Meyering  <jim@meyering.net>
51072
51073         * lib/fileblocks.c: Remove more useless parentheses.
51074         * lib/readutmp.h: Likewise.
51075
51076 2006-01-25  Bruno Haible  <bruno@clisp.org>
51077
51078         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51079         warnings.
51080         Reported by Paul Eggert.
51081
51082 2006-01-25  Bruno Haible  <bruno@clisp.org>
51083
51084         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51085         rid of a trap command. For Solaris sh.
51086         Reported by Mark D. Baushke <mdb@gnu.org>.
51087
51088 2006-01-24  Simon Josefsson  <jas@extundo.com>
51089
51090         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51091         Bruno.
51092
51093 2006-01-24  Karl Berry  <karl@gnu.org>
51094
51095         * config/srclist.txt (argp-namefrob.h): sync lost.
51096
51097 2006-01-24  Jim Meyering  <jim@meyering.net>
51098
51099         * modules/openat (Files): Add lib/intprops.h.
51100         From Mark D. Baushke.
51101
51102 2006-01-24  Jim Meyering  <jim@meyering.net>
51103
51104         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51105         Reported by Mark D. Baushke.
51106
51107 2006-01-24  Jim Meyering  <jim@meyering.net>
51108
51109         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51110
51111 2006-01-24  Bruno Haible  <bruno@clisp.org>
51112
51113         * modules/strnlen (Maintainer): Change from glibc to all.
51114
51115 2006-01-24  Bruno Haible  <bruno@clisp.org>
51116
51117         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51118         Patch by Paul Eggert.
51119
51120 2006-01-24  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51123         already has it.
51124         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51125         2005-11-26.
51126
51127         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51128         'signed char' to avoid problems with the built-in _Bool type.
51129         Reported by Paul Eggert on 2005-11-26.
51130
51131 2006-01-24  Bruno Haible  <bruno@clisp.org>
51132
51133         * gnulib-tool (func_import): Avoid constructing complicated sed
51134         expressions inside backquote.
51135         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51136
51137 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51138
51139         These changes imported from libc.
51140         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51141         test and two separate function calls.
51142         * lib/strndup.c (__strndup): Add libc_hidden_def.
51143
51144 2006-01-23  Simon Josefsson  <jas@extundo.com>
51145
51146         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51147         Remove the test_*_SOURCES variable: automake infers it by default.
51148         * modules/tls-tests: Likewise.
51149
51150 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51151
51152         Work around porting bugs reported by Dieter in
51153         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51154         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51155         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51156         Include "getopt.h" first, to check interface.
51157         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51158         !HAVE_DECL_GETENV.
51159         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51160         (__strndup): Revert to K&R-style function dfns, the glibc style.
51161         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51162         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51163         Include strnlen.h first, to get prototype properly.
51164         (strnlen): Renamed from __strnlen.
51165         Remove weak alias.
51166
51167 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51168
51169         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51170
51171 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51172
51173         * config/srclist.txt: Adjust to reflect glibc reorganization.
51174         This affects only comments.
51175
51176 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51177
51178          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51179          Reported by Bruce Korb <bkorb@gnu.org>.
51180
51181 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51184         to pacify gcc -Wswitch-default.
51185
51186 2006-01-22  Bruno Haible  <bruno@clisp.org>
51187
51188         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51189         temporary buffer for sprintf, take into account the precision also
51190         for 'd', 'i', 'u', 'o', 'x', 'X'.
51191
51192 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51193
51194         * modules/argp-tests: New module
51195         * tests/test-argp.c: New file
51196         * tests/test-argp-2.sh: New file
51197
51198 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51199
51200         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51201         (__argp_base_name): Removed
51202         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51203         typo.
51204         (__argp_base_name): Provide macro definition or extern declaration
51205         depending on the configuration
51206
51207 2006-01-20  Simon Josefsson  <jas@extundo.com>
51208
51209         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51210
51211 2006-01-20  Simon Josefsson  <jas@extundo.com>
51212
51213         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51214
51215 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51216
51217         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51218         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51219         Suggested by Bruno Haible.
51220
51221 2006-01-20  Karl Berry  <karl@gnu.org>
51222
51223         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51224         until changes propagate, I guess.
51225
51226 2006-01-19  Simon Josefsson  <jas@extundo.com>
51227
51228         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51229
51230 2006-01-19  Simon Josefsson  <jas@extundo.com>
51231
51232         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51233
51234 2006-01-19  Simon Josefsson  <jas@extundo.com>
51235
51236         * gnulib-tool: Set check_PROGRAMS.
51237
51238         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51239         modules/des-tests, modules/gc-arcfour-tests,
51240         modules/gc-arctwo-tests, modules/gc-des-tests,
51241         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51242         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51243         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51244         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51245         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51246         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51247         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51248         test_*_SOURCES.
51249
51250 2006-01-18  Simon Josefsson  <jas@extundo.com>
51251
51252         * modules/socklen (Depends-on): Depend on sys_socket.
51253
51254 2006-01-18  Simon Josefsson  <jas@extundo.com>
51255
51256         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51257         modules/des-tests, modules/gc-arcfour-tests,
51258         modules/gc-arctwo-tests, modules/gc-des-tests,
51259         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51260         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51261         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51262         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51263         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51264         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51265         $(EXEEXT) to automake TESTS variable, for mingw32.
51266
51267 2006-01-17  Simon Josefsson  <jas@extundo.com>
51268
51269         * modules/socklen (Include): Need sys/socket.h.
51270
51271 2006-01-17  Bruno Haible  <bruno@clisp.org>
51272
51273         * modules/ssize_t (Include): Add <sys/types.h>.
51274
51275 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51276
51277         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51278         it's not portable and it doesn't work with cross-compiles.
51279         Problem reported by Bruno Haible.  Fix missing-$ typo in
51280         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51281         -zignore from being used with Sun's C compiler.
51282
51283 2006-01-12  Simon Josefsson  <jas@extundo.com>
51284
51285         * lib/base64.c: Fix warning, reported by Bruno Haible
51286         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51287
51288 2006-01-12  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/ldd: New file.
51291         * build-aux/ldd.sh.in: New file.
51292         * MODULES.html.sh (Support for building libraries and executables): Add
51293         ldd.
51294
51295 2006-01-12  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/ldd.m4: New file.
51298
51299 2006-01-12  Bruno Haible  <bruno@clisp.org>
51300
51301         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51302         endless loop while replacing $auxdir with build-aux.
51303
51304 2006-01-11  Simon Josefsson  <jas@extundo.com>
51305
51306         * lib/stdint_.h (SIZE_MAX): Add missing (.
51307
51308 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         Sync from coreutils.
51311         * lib/md5.c: Fix commentary typos.
51312         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51313         * lib/md5.h (__attribute__): Remove; unused.
51314         * lib/sha1.c: Fix commentary to match md5 better.
51315         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51316         so that we don't need to worry about alignment.  All uses changed.
51317         This merges the 2005-10-28 md5 change into sha1.
51318
51319 2006-01-11  Jim Meyering  <jim@meyering.net>
51320
51321         Sync from coreutils.
51322         * lib/md5.c (OP): Fix spacing.
51323
51324 2006-01-11  Bruno Haible  <bruno@clisp.org>
51325
51326         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51327         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51328         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51329
51330 2006-01-11  Bruno Haible  <bruno@clisp.org>
51331
51332         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51333         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51334         the "early" section as well.
51335
51336 2006-01-11  Bruno Haible  <bruno@clisp.org>
51337
51338         Avoid "ar: no archive members specified" error on MacOS X.
51339         * gnulib-tool (func_modules_add_dummy): New function.
51340         (func_import, func_create_testdir): Invoke it.
51341
51342 2006-01-11  Bruno Haible  <bruno@clisp.org>
51343
51344         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51345         with $auxdir in AC_CONFIG_FILES statements.
51346
51347 2006-01-11  Bruno Haible  <bruno@clisp.org>
51348
51349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51350         Initialize also noinst_HEADERS to empty.
51351
51352 2006-01-11  Bruno Haible  <bruno@clisp.org>
51353
51354         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51355         variables.
51356         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51357         autoreconf.
51358
51359 2006-01-11  Bruno Haible  <bruno@clisp.org>
51360
51361         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51362         overridable by the user.
51363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51364
51365 2006-01-10  Simon Josefsson  <jas@extundo.com>
51366
51367         * modules/sys_socket: New file.
51368
51369 2006-01-10  Simon Josefsson  <jas@extundo.com>
51370
51371         * m4/sys_socket_h.m4: New file.
51372
51373 2006-01-10  Simon Josefsson  <jas@extundo.com>
51374
51375         * lib/socket_.h: New file.
51376
51377 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51378
51379         * modules/readutmp (Maintainer): Add myself.
51380
51381 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51384         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51385         People who are still concerned with buggy memcmp implementations
51386         can invoke gl_FUNC_MEMCMP themselves.
51387
51388 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51389
51390         * lib/regex_internal.h (BITSET_WORD_BITS):
51391         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51392         preprocessor mishandles large unsigned values as if they were signed.
51393         Problem reported by Claudio Fontana in
51394         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51395
51396 2006-01-10  Jim Meyering  <jim@meyering.net>
51397
51398         Avoid the double-free (first in fts_read, second in fts_close) that
51399         would occur when an `active' directory is made inaccessible (e.g.,
51400         via chmod a-x) during a traversal.
51401         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51402         before returning.  Reproduce this failure by
51403         mkdir -p a/b; cd a; chmod a-x . b
51404         Reported by Stavros Passas.
51405
51406         Sync from coreutils.
51407         * lib/sha1.c: Tweak grammar in a comment.
51408
51409 2006-01-10  Jim Meyering  <jim@meyering.net>
51410
51411         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51412         Patch by Joerg Sonnenberger.
51413
51414 2006-01-10  Bruno Haible  <bruno@clisp.org>
51415
51416         * modules/readutmp: Depend on module free.
51417         * modules/strtok_r: Depend on module restrict.
51418
51419 2006-01-10  Bruno Haible  <bruno@clisp.org>
51420
51421         * modules/gettext (configure.ac): Add an invocation of
51422         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51423
51424 2006-01-10  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51427         Reported by Werner Lemberg <wl@gnu.org>.
51428
51429 2006-01-10  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/localcharset.c: Update from GNU gettext.
51432
51433 2006-01-10  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/argp.h (__const): Remove macro. Use const instead.
51436         * lib/argp-fmtstream.h (__const): Likewise.
51437         * lib/glob_.h (__const): Remove macro.
51438         * lib/glob-libc.h: Use const instead of __const.
51439
51440 2006-01-10  Bruno Haible  <bruno@clisp.org>
51441
51442         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51443         variable.
51444         Needed to avoid an automake error regarding the 'gettext' module.
51445
51446 2006-01-09  Simon Josefsson  <jas@extundo.com>
51447
51448         * modules/inet_ntop (Depends-on): Add restrict.
51449
51450 2006-01-09  Simon Josefsson  <jas@extundo.com>
51451
51452         * modules/gc-rijndael-tests (License): Put under LGPL.
51453
51454         * modules/gc-des-tests (License): Likewise.
51455
51456         * modules/gc-arcfour-tests (License): Likewise.
51457
51458         * modules/gc-arctwo-tests (License): Likewise.
51459
51460         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51461
51462         * modules/gc-hmac-sha1-tests (Files): Likewise.
51463
51464         * modules/gc-hmac-md5-tests (License): Likewise.
51465
51466         * modules/gc-sha1-tests (License): Likewise.
51467
51468         * modules/gc-md5-tests (License): Likewise.
51469
51470         * modules/gc-md4-tests (License): Likewise.
51471
51472         * modules/gc-md2-tests (License): Likewise.
51473
51474         * modules/gc-tests (License): Likewise.
51475
51476         * modules/des-tests (License): Likewise.
51477
51478         * modules/md4-tests (License): Likewise.
51479
51480         * modules/md2-tests (License): Likewise.
51481
51482 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51483
51484         Sync from coreutils:
51485
51486         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51487         * modules/lib-ignore: New file.
51488         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51489         chdir-safer.m4, lchmod.m4.
51490         * modules/openat: Add mkdirat.c, openat-priv.h.
51491
51492 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51493
51494         Sync from coreutils.
51495         * m4/lib-ignore.m4: New file.
51496         * m4/lchmod.m4: New file.
51497
51498 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51499
51500         Sync from coreutils.
51501         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51502         for write access: POSIX says that must fail.
51503         * lib/fts.c (diropen): Likewise.
51504         * lib/save-cwd.c (save_cwd): Likewise.
51505         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51506         well, for minor improvements on hosts that lack O_DIRECTORY.
51507         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51508         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51509         Fall back on chown if open failed with EACCES.
51510
51511         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51512         Report an error at compile-time if only a 1-second nominal clock
51513         resolution is found.
51514
51515         * lib/lchmod.h: New file.
51516         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51517         (make_dir_parents): Use lchown rather than chown, and
51518         lchmod rather than chmod.
51519
51520         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51521         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51522         "proc" reported by n0dalus.
51523
51524         * lib/mountlist.c: Include <limits.h>.
51525         (dev_from_mount_options)
51526         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51527         New function.  It no longer assumes "dev=" has the System V meaning
51528         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51529         (read_file_system_list)
51530         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51531         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51532         dev= in that case.
51533
51534         * lib/posixtm.h (PDS_PRE_2000): New macro.
51535         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51536         allow_century.  All usages changed.  Reject dates outside the range
51537         1969-1999 if PDS_PRE_2000 is used.
51538
51539 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         Sync from coreutils.
51542         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51543         (Time of day items): Mention the possibility of leap seconds.
51544         Problem reported by Dr. David Alan Gilbert.
51545
51546 2006-01-09  Jim Meyering  <jim@meyering.net>
51547
51548         Sync from coreutils.
51549
51550         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51551
51552         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51553
51554         * lib/modechange.c (mode_compile): Reject an invalid mode string
51555         that starts with an octal digit.  From Andreas Gruenbacher.
51556
51557         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51558         and dup to open_safer and dup_safer, respectively.
51559         (openat_permissive): Fix typo in comment.
51560
51561         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51562         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51563         (_): Remove; no longer needed.
51564         (openat): Renamed from rpl_openat; no need for rpl_openat
51565         since openat.h renames openat for us.
51566         Replace most of the body with a call to openat_permissive,
51567         to avoid duplicate code.
51568         Port to (probably hypothetical) environments were mode_t is
51569         wider than int.
51570         (openat_permissive): Require mode arg, so that we can check
51571         types better.  Put it just after flags.  Change cwd failure
51572         indicator from pointer-to-bool to pointer-to-errno-value.
51573         All callers changed.
51574         Invoke openat_save_fail and/or openat_restore_fail if
51575         cwd_errno is null, so that openat can call us.
51576         (openat_permissive, fdopendir, fstatat, unlinkat):
51577         Simplify errno handling to avoid some duplicate code,
51578         as it's OK to set errno on success.
51579         * lib/openat.h: Revamp code so that function macros depend on
51580         __OPENAT_PREFIX only, not also on AT_FDCWD.
51581         (openat_ro): Remove.  Caller changed to use openat_permissive.
51582         (openat_permissive): Now a macro, if not a function.
51583         (openat_restore_fail, openat_save_fail): Now always functions,
51584         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51585
51586         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51587         and openat.c.
51588         * lib/mkdirat.c: Include openat-priv.h.
51589         Remove definitions of macros defined therein.
51590         * lib/openat.c: Likewise.
51591
51592         * lib/mkdirat.c (mkdirat): New file and function.
51593         * lib/openat.h (mkdirat): Declare.
51594
51595         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51596
51597         * lib/openat.h (openat_permissive): Declare.
51598         (openat_ro): Define.
51599
51600         * lib/openat.c (EXPECTED_ERRNO): New macro.
51601         (openat_permissive): New function -- used in remove.c rewrite.
51602         (all functions): Set errno just before returning, only if there
51603         was an actual failure.
51604         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51605
51606         Emulate openat-family functions using Linux's procfs, if possible.
51607         Idea and some code based on Ulrich Drepper's glibc changes.
51608
51609         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51610         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51611         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51612         before falling back on save_cwd and restore_cwd.
51613         (fdopendir, fstatat, unlinkat): Likewise.
51614
51615         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
51616         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
51617
51618         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
51619         as second argument to va_arg.  Otherwise, some versions of gcc
51620         warn that `if this code is reached, the program will abort'.
51621
51622 2006-01-09  Jim Meyering  <jim@meyering.net>
51623
51624         Sync from coreutils.
51625         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
51626         Require openat-priv.h.
51627
51628 2006-01-09  Bruno Haible  <bruno@clisp.org>
51629
51630         * modules/strnlen (Include): Use strnlen.h.
51631
51632 2006-01-09  Bruno Haible  <bruno@clisp.org>
51633
51634         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
51635
51636 2006-01-09  Bruno Haible  <bruno@clisp.org>
51637
51638         * lib/sysexit_.h (EX_OK): New macro.
51639         Suggested by Martin Lambers <marlam@marlam.de>.
51640
51641 2006-01-09  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51644         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51645
51646 2006-01-09  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51649         numbers.
51650
51651 2006-01-09  Bruno Haible  <bruno@clisp.org>
51652
51653         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51654         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51655         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51656         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51657
51658 2006-01-09  Bruno Haible  <bruno@clisp.org>
51659
51660         * build-aux/javacomp.sh.in: New file, moved from lib/.
51661         * modules/javacomp-script (Files): Update.
51662         (configure.ac): Add AC_CONFIG_FILES invocation.
51663         (EXTRA_DIST): Remove variable.
51664
51665         * build-aux/javaexec.sh.in: New file, moved from lib/.
51666         * modules/javaexec (Files): Update.
51667         (configure.ac): Add AC_CONFIG_FILES invocation.
51668         (EXTRA_DIST): Remove javaexec.sh.in.
51669
51670         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51671         * modules/csharpcomp-script (Files): Update.
51672         (configure.ac): Add AC_CONFIG_FILES invocation.
51673         (EXTRA_DIST): Remove variable.
51674
51675         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51676         * modules/csharpexec (Files): Update.
51677         (configure.ac): Add AC_CONFIG_FILES invocation.
51678         (EXTRA_DIST): Remove csharpexec.sh.in.
51679
51680 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51681
51682         Sync from coreutils.
51683
51684         Add POSIX ACL support
51685         * lib/acl.h (copy_acl, set_acl): Add declarations.
51686         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51687         systems other than Linux.
51688         (chmod_or_fchmod): New function: use fchmod when possible,
51689         and chmod otherwise.
51690         (file_has_acl): Add a POSIX ACL implementation, with a
51691         Linux-specific subcase.
51692         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51693         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51694         acls are unsupported.
51695         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51696         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51697         are unsupported.
51698
51699 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51700
51701         Sync from coreutils.
51702         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51703
51704 2006-01-07  Bruno Haible  <bruno@clisp.org>
51705
51706         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51707         gl_EARLY.
51708
51709 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51710
51711         * lib/strftime.c (tzname): Don't declare if it is already #defined.
51712         Problem reported for Mingw by Mark Junker.
51713
51714 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51715
51716         * README: Gnulib normally doesn't generate a tarball.
51717
51718 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
51719
51720         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
51721         long int, not int, for nanosecond counts, so that people who are
51722         used to POSIX struct timespec won't be surprised.  Reported by Jim
51723         Meyering.
51724
51725 2005-12-28  Bruno Haible  <bruno@clisp.org>
51726
51727         * build-aux/config.rpath: Update from GNU gettext.
51728
51729 2005-12-16  Jim Meyering  <jim@meyering.net>
51730
51731         * modules/fprintftime: New module.
51732         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
51733
51734 2005-12-16  Jim Meyering  <jim@meyering.net>
51735
51736         * m4/fprintftime.m4: New file.
51737
51738 2005-12-16  Jim Meyering  <jim@meyering.net>
51739
51740         * lib/fprintftime.c, lib/fprintftime.h: New files.
51741
51742 2005-12-15  Simon Josefsson  <jas@extundo.com>
51743
51744         * modules/socklen (configure.ac): Fix M4 macro name, to align with
51745         new m4/socklen.m4.
51746
51747 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51748
51749         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
51750         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
51751
51752 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51753
51754         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
51755         * lib/argp-help.c (fill_in_uparams): Check if the constructed
51756         struct uparams is valid. Fall back to the default values if it is
51757         not.
51758
51759 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51760
51761         * modules/argp (Files): Add argp-pin.c
51762         (Depends-on): dirname
51763         (lib_SOURCES): Add argp-pin.c
51764
51765 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51766
51767         * m4/argp.m4:  Check if program_invocation_name and
51768         program_invocation_short_name are declared and define appropriate
51769         macros if they are not.
51770
51771 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51772
51773         * lib/argp-help.c (__argp_base_name): New function
51774         (__argp_short_program_name): Rewrite using __argp_base_name
51775         * lib/argp-namefrob.h: Define program_invocation_name and
51776         program_invocation_short_name if requested
51777         (__argp_base_name): Add prototype
51778         * lib/argp-parse.c (argp_def): Use gettext wrappers
51779         (argp_default_parser): Use __argp_base_name
51780         * lib/argp-pin.c: New file. Defines program_invocation_name and
51781         program_invocation_short_name on systems that lack them.
51782
51783 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51784
51785         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
51786         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51787         porting problem reported by Georg Schwarz in
51788         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51789
51790 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51791
51792         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
51793         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51794         porting problem reported by Georg Schwarz in
51795         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51796
51797 2005-12-05  Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
51800         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
51801         Reported by Mark Junker <mjscod@gmx.de>.
51802
51803 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
51804
51805         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
51806         Use implementation from Albert Chin, with some
51807         comments/corrections by Stepan Kasal and myself.
51808
51809 2005-12-02  Bruno Haible  <bruno@clisp.org>
51810
51811         * gnulib-tool (func_import): Accept GPLed build tool modules when
51812         --lgpl is given.
51813         * modules/csharpcomp-script: New file.
51814         * modules/csharpcomp: Depend on it.
51815         * modules/javacomp-script: New file.
51816         * modules/javacomp: Depend on it.
51817         Suggested by Simon Josefsson.
51818
51819 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
51820
51821         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
51822         statement, to work around an HP-UX 10.20 compiler bug reported by
51823         Peter O'Gorman.
51824
51825 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51826
51827         * modules/savedir (Depends-on): Add openat.
51828
51829 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
51832         (uintmax_t) [defined uintmax_t]: Do not declare.
51833         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
51834         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
51835         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
51836         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
51837         sake of portability to weird hosts that C allows (though we don't
51838         know of any practical examples).
51839
51840         * lib/savedir.h (fdsavedir): New decl.
51841         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
51842         contains most of the former guts of savedir.
51843         (savedir): Use savedirstream.
51844         Include "openat.h".
51845
51846 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51847
51848         * modules/obstack (Files): Add m4/ulonglong.m4.
51849         Problem reported by Davide Angelocola.
51850
51851 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51852
51853         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
51854         coreutils no longer futzes with rounding modes.
51855
51856 2005-11-14  Jim Meyering  <jim@meyering.net>
51857
51858         * lib/mkstemp-safer.c: Include <config.h>, required for possible
51859         replacement of mkstemp.
51860
51861 2005-11-10  Simon Josefsson  <jas@extundo.com>
51862
51863         * lib/readline.c: Remove EOL.
51864
51865 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51866
51867         * modules/gethrxtime (Depends-on): Add gettime.
51868
51869 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51870
51871         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
51872         or gettimeofday; no longer needed.
51873
51874 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51875
51876         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
51877         time business.
51878         (gethrxtime) [! (HAVE_NANOUPTIME
51879         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
51880         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
51881         our own approximation.
51882
51883 2005-11-08  Eric Blake  <ebb9@byu.net>
51884
51885         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51886
51887 2005-11-08  Eric Blake  <ebb9@byu.net>
51888
51889         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51890
51891 2005-11-04  Bruno Haible  <bruno@clisp.org>
51892
51893         * gnulib-tool: Implement --update mode.
51894
51895 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51896
51897         Fix porting problem reported by Theodoros V. Kalamatianos.
51898         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
51899         Don't assume that futimes failing means we must fail.
51900
51901 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51902
51903         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
51904         variables to suggest the intended function of the PATH_MAX check.
51905
51906 2005-10-30  Kean Johnston  <jkj@sco.com>
51907
51908         Trivial changes to support SCO systems.
51909         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
51910         as PATH_MAX.
51911         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
51912         where __ptr is null when no I/O is pending.
51913
51914 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
51915
51916         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
51917         leave errno alone.  Problem reported by Dmitry V. Levin.
51918
51919 2005-10-28  Simon Josefsson  <jas@extundo.com>
51920
51921         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
51922         Test more.
51923
51924         * tests/test-gc-md2.c, tests/test-md2.c: New files.
51925
51926         * modules/md2, modules/md2-tests: New files.
51927
51928 2005-10-28  Simon Josefsson  <jas@extundo.com>
51929
51930         * m4/inet_ntop.m4: More tests.
51931
51932         * m4/gc-md2.m4, md2.m4: New file.
51933
51934 2005-10-28  Simon Josefsson  <jas@extundo.com>
51935
51936         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
51937         "restrict" keywords, as per POSIX.  Protect the function
51938         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
51939         Don't use K&R prototypes.  Check the sprintf return values.
51940         Re-define EAFNOSUPPORT if not present.  Indent.
51941
51942         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
51943         suggested by Bruno Haible <bruno@clisp.org>.
51944
51945         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
51946
51947         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
51948
51949         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
51950         libgcrypt).
51951
51952         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
51953
51954         * lib/md2.h, lib/md2.c: New files.
51955
51956 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
51957
51958         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
51959         errno alone.  Problem reported by Frederic Jolliton.
51960
51961 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
51962
51963         * modules/verify (License): Change from GPL to LGPL.  This is a
51964         tiny module and there are apparently near-equivalents that are
51965         under the BSD license.
51966
51967 2005-10-24  Simon Josefsson  <jas@extundo.com>
51968
51969         * modules/sha1: Relicense to LGPL.
51970
51971 2005-10-24  Simon Josefsson  <jas@extundo.com>
51972
51973         * lib/md4.h: Shrink buffer size, now that we changed the type.
51974
51975 2005-10-23  Simon Josefsson  <jas@extundo.com>
51976
51977         * gnulib-tool (func_import): Fix --tests-base.
51978
51979 2005-10-22  Simon Josefsson  <jas@extundo.com>
51980
51981         * modules/arcfour (Depends-on): Need stdint.
51982
51983 2005-10-22  Simon Josefsson  <jas@extundo.com>
51984
51985         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
51986         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
51987
51988 2005-10-22  Simon Josefsson  <jas@extundo.com>
51989
51990         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
51991         suggested by Bruno Haible <bruno@clisp.org>.
51992
51993 2005-10-22  Simon Josefsson  <jas@extundo.com>
51994
51995         * lib/crc.h: Include stddef.h, for size_t.
51996
51997 2005-10-22  Simon Josefsson  <jas@extundo.com>
51998
51999         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52000         arcfour_context struct (simplify test vector testing in GNU
52001         Shishi).
52002
52003 2005-10-21  Simon Josefsson  <jas@extundo.com>
52004
52005         * modules/des, modules/des-tests: New files.
52006
52007         * modules/gc-des, modules/gc-des-tests: New files.
52008
52009         * tests/test-des.c, tests/test-gc-des.c: New file.
52010
52011 2005-10-21  Simon Josefsson  <jas@extundo.com>
52012
52013         * modules/arctwo, modules/arctwo-tests: New files.
52014
52015         * tests/test-arctwo.c: New file.
52016
52017         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52018
52019         * tests/test-gc-arctwo.c: New file.
52020
52021 2005-10-21  Simon Josefsson  <jas@extundo.com>
52022
52023         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52024         Bruno Haible <bruno@clisp.org>.
52025
52026         * m4/gc-des.m4: New file.
52027
52028 2005-10-21  Simon Josefsson  <jas@extundo.com>
52029
52030         * m4/arctwo.m4: New file.
52031
52032         * m4/gc-arctwo.m4: New file.
52033
52034 2005-10-21  Simon Josefsson  <jas@extundo.com>
52035
52036         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52037         block.
52038
52039 2005-10-21  Simon Josefsson  <jas@extundo.com>
52040
52041         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52042         <bruno@clisp.org>.
52043
52044         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52045
52046         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52047         Bruno Haible <bruno@clisp.org>.
52048
52049         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52050         <bruno@clisp.org>.
52051
52052 2005-10-21  Simon Josefsson  <jas@extundo.com>
52053
52054         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52055
52056 2005-10-21  Simon Josefsson  <jas@extundo.com>
52057
52058         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52059
52060 2005-10-21  Simon Josefsson  <jas@extundo.com>
52061
52062         * lib/des.h, lib/des.c: New files.
52063
52064         * lib/gc-gnulib.c: Support DES.c
52065
52066 2005-10-21  Simon Josefsson  <jas@extundo.com>
52067
52068         * lib/arctwo.h, lib/arctwo.c: New files.
52069
52070         * lib/gc-gnulib.c: Support ARCTWO.
52071
52072 2005-10-21  Simon Josefsson  <jas@extundo.com>
52073
52074         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52075         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52076
52077 2005-10-21  Simon Josefsson  <jas@extundo.com>
52078
52079         * gnulib-tool (func_import, func_create_testdir): Define automake
52080         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52081         Makefile.am snippet),
52082         suggested by Bruno Haible <bruno@clisp.org>.
52083
52084         * modules/gc (Makefile.am): Use it.
52085
52086 2005-10-21  Bruno Haible  <bruno@clisp.org>
52087
52088         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52089         patch.
52090
52091 2005-10-19  Simon Josefsson  <jas@extundo.com>
52092
52093         * tests/test-gc-rijndael.c: New file.
52094
52095         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52096
52097 2005-10-19  Simon Josefsson  <jas@extundo.com>
52098
52099         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52100         interface too.
52101
52102 2005-10-19  Simon Josefsson  <jas@extundo.com>
52103
52104         * tests/test-gc-arcfour.c: New file.
52105
52106         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52107
52108 2005-10-19  Simon Josefsson  <jas@extundo.com>
52109
52110         * modules/gc-md4, modules/gc-md4-tests: New file.
52111
52112         * tests/test-gc-md4.c: New file.
52113
52114 2005-10-19  Simon Josefsson  <jas@extundo.com>
52115
52116         * m4/gc-md4.m4: New file.
52117
52118 2005-10-19  Simon Josefsson  <jas@extundo.com>
52119
52120         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52121         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52122         <kasal@ucw.cz>.
52123
52124 2005-10-19  Simon Josefsson  <jas@extundo.com>
52125
52126         * m4/gc-arcfour.m4: New file.
52127
52128         * m4/gc-rijndael.m4: New file.
52129
52130 2005-10-19  Simon Josefsson  <jas@extundo.com>
52131
52132         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52133
52134 2005-10-19  Simon Josefsson  <jas@extundo.com>
52135
52136         * lib/gc-gnulib.c: Support ARCFOUR.
52137
52138 2005-10-19  Simon Josefsson  <jas@extundo.com>
52139
52140         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52141         support.
52142
52143         * lib/gc.h: Add ECB enum type.
52144
52145         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52146
52147 2005-10-18  Simon Josefsson  <jas@extundo.com>
52148
52149         * tests/test-md5.c: New file.
52150
52151         * modules/md5-tests: New file.
52152
52153 2005-10-18  Simon Josefsson  <jas@extundo.com>
52154
52155         * tests/test-md4.c: New file.
52156
52157         * modules/md4, modules/md4-tests: New files.
52158
52159 2005-10-18  Simon Josefsson  <jas@extundo.com>
52160
52161         * m4/md4.m4: New file.
52162
52163 2005-10-18  Simon Josefsson  <jas@extundo.com>
52164
52165         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52166
52167 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52168
52169         * gnulib-tool (func_create_testdir): Omit the second check whether
52170         BUILT_SOURCES in nonempty.
52171
52172 2005-10-17  Simon Josefsson  <jas@extundo.com>
52173
52174         * tests/test-rijndael.c: New file.
52175
52176 2005-10-17  Simon Josefsson  <jas@extundo.com>
52177
52178         * modules/sha1: Depend on stdint instead of md5.
52179
52180         * modules/md5: Depend on stdint, remove uint32_t.
52181
52182 2005-10-17  Simon Josefsson  <jas@extundo.com>
52183
52184         * modules/gc-sha1-tests: New file.
52185
52186         * tests/test-gc-sha1.c: New file.
52187
52188 2005-10-17  Simon Josefsson  <jas@extundo.com>
52189
52190         * m4/md5.m4: Remove call to uint32_t.m4.
52191
52192 2005-10-17  Simon Josefsson  <jas@extundo.com>
52193
52194         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52195
52196         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52197         md5.h.
52198
52199         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52200
52201         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52202
52203 2005-10-17  Simon Josefsson  <jas@extundo.com>
52204
52205         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52206
52207 2005-10-17  Simon Josefsson  <jas@extundo.com>
52208
52209         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52210
52211 2005-10-17  Simon Josefsson  <jas@extundo.com>
52212
52213         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52214
52215         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52216
52217 2005-10-17  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52220         that it can also be used in a test.
52221
52222 2005-10-16  Bruno Haible  <bruno@clisp.org>
52223
52224         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52225         TESTS_ENVIRONMENT, so that individual tests can augment it.
52226
52227         * gnulib-tool (func_create_testdir): Use an intermediate target for
52228         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52229         macros, like $(ALLOCA_H), which cannot be passed through the command
52230         line.
52231
52232 2005-10-15  Simon Josefsson  <jas@extundo.com>
52233
52234         * modules/rijndael-tests: New file.
52235
52236         * modules/rijndael: New file.
52237
52238 2005-10-15  Simon Josefsson  <jas@extundo.com>
52239
52240         * m4/rijndael.m4: New file.
52241
52242 2005-10-15  Simon Josefsson  <jas@extundo.com>
52243
52244         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52245
52246         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52247
52248 2005-10-14  Simon Josefsson  <jas@extundo.com>
52249
52250         * tests/test-arcfour.c: New file.
52251
52252         * modules/arcfour, modules/arcfour-tests: New files.
52253
52254 2005-10-14  Simon Josefsson  <jas@extundo.com>
52255
52256         * m4/arcfour.m4: New file.
52257
52258 2005-10-14  Simon Josefsson  <jas@extundo.com>
52259
52260         * lib/arcfour.h, lib/arcfour.c: New files.
52261
52262 2005-10-14  Roland McGrath  <roland@redhat.com>
52263
52264         Import from libc.  [BZ #1331]
52265         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52266         macro argument.
52267         Reported by Matej Vela <vela@debian.org>.
52268
52269 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52272         include <wchar.h>; no longer needed.
52273
52274 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52275
52276         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52277
52278 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52279         and  Ulrich Drepper  <drepper@redhat.com>
52280
52281         Import from libc.
52282         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52283         instead of inline stream orientation test and two separate
52284         function calls.  Pay no attention to USE_IN_LIBIO.
52285
52286 2005-10-13  Simon Josefsson  <jas@extundo.com>
52287
52288         * modules/gc-hmac-md5-tests: New file.
52289
52290         * tests/test-gc-hmac-sha1.c: New file.
52291
52292         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52293
52294         * modules/gc-hmac-md5-tests: New file.
52295
52296         * tests/test-gc-md5.c: New file.
52297
52298         * modules/gc-md5-tests: New file.
52299
52300 2005-10-13  Simon Josefsson  <jas@extundo.com>
52301
52302         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52303         Move memory allocation outside of loop.
52304
52305 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52306
52307         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52308         intermediate directory is in a read-only file system.  Problem
52309         reported by Eric Blake.
52310
52311 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52312
52313         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52314
52315 2005-10-12  Simon Josefsson  <jas@extundo.com>
52316
52317         * tests/test-hmac-sha1.c: New file.
52318
52319         * modules/hmac-sha1-tests: New file.
52320
52321         * modules/hmac-sha1: New file.
52322
52323 2005-10-12  Simon Josefsson  <jas@extundo.com>
52324
52325         * modules/gc-sha1: New file.
52326
52327 2005-10-12  Simon Josefsson  <jas@extundo.com>
52328
52329         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52330
52331         * tests/test-gc-pbkdf2-sha1.c: New file.
52332
52333 2005-10-12  Simon Josefsson  <jas@extundo.com>
52334
52335         * modules/gc-md5, modules/gc-hmac-md5: New files.
52336
52337         * modules/gc (Files): Remove md5, memxor and hmac files.
52338
52339 2005-10-12  Simon Josefsson  <jas@extundo.com>
52340
52341         * m4/gc-pbkdf2-sha1.m4: New file.
52342
52343         * m4/gc-hmac-sha1.m4: New file.
52344
52345         * m4/gc-sha1: New file.
52346
52347         * m4/hmac-sha1.m4: New file.
52348
52349 2005-10-12  Simon Josefsson  <jas@extundo.com>
52350
52351         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52352
52353         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52354
52355 2005-10-12  Simon Josefsson  <jas@extundo.com>
52356
52357         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52358         suggested by Bruno Haible <bruno@clisp.org>.
52359
52360 2005-10-12  Simon Josefsson  <jas@extundo.com>
52361
52362         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52363
52364 2005-10-12  Simon Josefsson  <jas@extundo.com>
52365
52366         * lib/gc-pbkdf2-sha1.c: New file.
52367
52368         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52369
52370 2005-10-12  Simon Josefsson  <jas@extundo.com>
52371
52372         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52373
52374         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52375
52376 2005-10-12  Simon Josefsson  <jas@extundo.com>
52377
52378         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52379         GC_USE_HMAC_MD5, respectively.
52380
52381         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52382         (gc_md5): Fix typo.
52383
52384         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52385
52386         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52387
52388         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52389
52390 2005-10-12  Bruno Haible  <bruno@clisp.org>
52391
52392         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52393         Reported by Stepan Kasal <kasal@ucw.cz>.
52394
52395 2005-10-11  Simon Josefsson  <jas@extundo.com>
52396
52397         * tests/test-crc.c: New file.
52398
52399         * modules/crc, modules/crc-tests: New files.
52400
52401 2005-10-11  Simon Josefsson  <jas@extundo.com>
52402
52403         * m4/crc.m4: New file.
52404
52405 2005-10-11  Simon Josefsson  <jas@extundo.com>
52406
52407         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52408
52409         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52410
52411         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52412
52413 2005-10-11  Simon Josefsson  <jas@extundo.com>
52414
52415         * lib/crc.h, lib/crc.c: New files.
52416
52417         * lib/gc.h (gc_hash_buffer): Add doc.
52418
52419 2005-10-11  Bruno Haible  <bruno@clisp.org>
52420
52421         * modules/c-strcasestr: New file.
52422         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52423
52424 2005-10-11  Bruno Haible  <bruno@clisp.org>
52425
52426         * modules/c-strcase: New file.
52427         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52428
52429 2005-10-11  Bruno Haible  <bruno@clisp.org>
52430
52431         * lib/strcasecmp.c: Include limits.h.
52432         (strcasecmp): Avoid integer overflow on exotic platforms.
52433         * lib/strncasecmp.c: Include limits.h.
52434         (strncasecmp): Avoid integer overflow on exotic platforms.
52435         Reported by Paul Eggert.
52436
52437 2005-10-11  Bruno Haible  <bruno@clisp.org>
52438
52439         * lib/c-strcasestr.h: New file, from GNU gettext.
52440         * lib/c-strcasestr.c: New file, from GNU gettext.
52441
52442 2005-10-11  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/c-strcase.h: New file, from GNU gettext.
52445         * lib/c-strcasecmp.c: New file, from GNU gettext.
52446         * lib/c-strncasecmp.c: New file, from GNU gettext.
52447
52448 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52449
52450         * modules/mempcpy (License): GPL -> LGPL.
52451         * modules/strchrnul (License): Likewise.
52452         * modules/sysexits (License): Likewise.
52453
52454 2005-10-08  Simon Josefsson  <jas@extundo.com>
52455
52456         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52457
52458 2005-10-07  Simon Josefsson  <jas@extundo.com>
52459
52460         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52461
52462 2005-10-06  Simon Josefsson  <jas@extundo.com>
52463
52464         * tests/test-hmac-md5.c: New file.
52465
52466         * modules/hmac-md5-tests: New file.
52467
52468         * modules/hmac-md5: New file.
52469
52470 2005-10-06  Simon Josefsson  <jas@extundo.com>
52471
52472         * m4/hmac-md5.m4: New file.
52473
52474         * m4/memxor.m4: Require gl_C_RESTRICT.
52475
52476 2005-10-06  Simon Josefsson  <jas@extundo.com>
52477
52478         * lib/memxor.c (memxor): Avoid casts and warnings.
52479
52480 2005-10-06  Simon Josefsson  <jas@extundo.com>
52481
52482         * lib/hmac-md5.c: New file.
52483
52484         * lib/hmac.h: New file.
52485
52486 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52487
52488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52489         promotes to int, not unsigned int, to catch the AIX 5.3
52490         compiler bug.
52491
52492 2005-10-05  Simon Josefsson  <jas@extundo.com>
52493
52494         * modules/memxor: New file.
52495
52496         * modules/iconv (Files): Move config.rpath to havelib, it is used
52497         there.
52498
52499         * modules/havelib (Files): Add config.rpath.
52500
52501 2005-10-05  Simon Josefsson  <jas@extundo.com>
52502
52503         * m4/memxor.m4: New file.
52504
52505 2005-10-05  Simon Josefsson  <jas@extundo.com>
52506
52507         * lib/memxor.c (memxor): Fix compiler error.
52508
52509         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52510         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52511
52512         * lib/memxor.h, lib/memxor.c: New files.
52513
52514         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52515         we assume all systems have it, suggested by Jim Meyering
52516         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52517         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52518         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52519         same reasons.
52520
52521 2005-10-05  Simon Josefsson  <jas@extundo.com>
52522
52523         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52524
52525 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52526
52527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52528         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52529         needed, since the source code now assumes these .h files.
52530
52531 2005-10-05  Derek Price  <derek@ximbiot.com>
52532
52533         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52534
52535 2005-10-05  Bruno Haible  <bruno@clisp.org>
52536
52537         * modules/stdint (License): Change to LGPL.
52538
52539 2005-10-04  Simon Josefsson  <jas@extundo.com>
52540
52541         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52542         D. Baushke" <mdb@gnu.org>.
52543
52544 2005-10-04  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/verify.h (verify_true): Provide alternative definition for C++.
52547
52548 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52551         (SSIZE_MAX): New macro, if not already defined.
52552         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52553         than 2 GiB.
52554
52555 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         Sync from coreutils.
52558         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52559         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52560         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52561         ULLONG_MAX doesn't work with 2.7.2.1.
52562
52563 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52564
52565         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52566         From Ben Pfaff.
52567
52568         * modules/exclude (Depends-on): Depend on verify.
52569         * modules/strtoimax (Depends-on): Likewise.
52570         * modules/utimecmp (Depends-on): Likewise.
52571
52572 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52573
52574         * lib/exclude.c: Include verify.h.
52575         (verify): Remove.  All callers changed to use verify.h's version.
52576         * lib/strtoimax.c: Likewise.
52577         * lib/utimecmp.c: Likewis.e
52578
52579         Sync from coreutils.
52580         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52581         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52582         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52583         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52584         bother returning ENOSYS if settimeofday or stime fails; just let
52585         them return whatever errno they want to return.
52586         * lib/utimens.c: Include unistd.h, for dup2.
52587         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52588         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52589
52590 2005-10-02  Jim Meyering  <jim@meyering.net>
52591
52592         Sync from coreutils.
52593         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52594         from glibc-2.2.5 that fails for read-only files.
52595
52596 2005-10-02  Jim Meyering  <jim@meyering.net>
52597
52598         Sync from coreutils.
52599         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52600         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52601         `#if HAVE_CONFIG_H'.
52602         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52603         Remove AT_FDCWD test.
52604         Do not consume the fd unless successful.
52605         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52606         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52607         block, so that we don't even try to compile it if settimeofday is
52608         available.  This works around a compilation failure on OSF1 V5.1,
52609         due to stime requiring a `long int*' while tv_sec is `int'.
52610
52611 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52612
52613         Sync from coreutils.
52614         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
52615         against `yes', rather than just testing for nonempty.
52616
52617 2005-10-01  Simon Josefsson  <jas@extundo.com>
52618
52619         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
52620         and Darwin.
52621
52622         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
52623         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
52624         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
52625         freeaddrinfo and gai_strerror are declared by the POSIX headers.
52626         Check if struct addrinfo is declared.
52627
52628 2005-10-01  Simon Josefsson  <jas@extundo.com>
52629
52630         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
52631         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
52632         AI_* and EAI_* definitions.  Protect function declarations.
52633
52634 2005-10-01  Jim Meyering  <jim@meyering.net>
52635
52636         Sync from coreutils.
52637
52638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
52639         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
52640         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52642         in the inet and nsl libraries.  Required on Solaris 5.7.
52643
52644 2005-10-01  Jim Meyering  <jim@meyering.net>
52645
52646         Sync from coreutils.
52647         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52648         in the inet and nsl libraries.  Required on Solaris 5.7.
52649
52650 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52651
52652         * lib/getdelim.c (getdelim): Remove unused variables.
52653
52654 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52657         so that the code works even with ancient cpp.  Portability problem
52658         with GCC 2.7.2.1 reported by Thomas M.Ott.
52659
52660 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * modules/regex (Depends-on): Add strcase.
52663
52664         * modules/gethostname (Licence): Change from GPL to LGPL, since
52665         gethostname.c is a trivial implementation of a standard library
52666         function.
52667         * modules/poll (License): Change from GPL to LGPL, since it's
52668         derived from LGPL code.
52669
52670 2005-09-27  Jim Meyering  <jim@meyering.net>
52671
52672         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52673         HAVE_CONFIG_H.
52674
52675         * lib/intprops.h (signed_type_or_expr__): Define.
52676         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52677         for unsigned types.
52678
52679 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52680
52681         * lib/verify.h (verify_expr): Remove, replacing with:
52682         (verify_true): New macro that returns true instead of void.
52683         (verify_type__): Remove.
52684         (verify): Use verify_true rather than verify_type__.
52685
52686 2005-09-26  Bruno Haible  <bruno@clisp.org>
52687
52688         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52689         is necessary.
52690         (lib_SOURCES): Remove mbchar.c.
52691         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52692         (Files): Add m4/mbrtowc.m4.
52693         * modules/mbiter: Likewise.
52694         * modules/mbuiter: Likewise.
52695
52696 2005-09-26  Bruno Haible  <bruno@clisp.org>
52697
52698         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52699         compile mbchar.c if they are not both present.
52700         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52701         * m4/mbiter.m4 (gl_MBITER): Likewise.
52702         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52703         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52704         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52705
52706 2005-09-25  Jim Meyering  <jim@meyering.net>
52707
52708         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52709         also uses socklen_t.
52710
52711 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
52712
52713         * lib/utimens.c (ENOSYS): Define if not already defined.
52714         (futimens): Support having a null PATH if the file descriptor
52715         is nonnegative.
52716
52717         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
52718         Remove.
52719         (__attribute): Define to empty unless GCC 3.1 or later.
52720         This works around a core dump on OpenBSD 3.4, which has GCC
52721         2.95.3, which dumps core when given __attribute__(()).  It also
52722         simplifies other tests, since we really don't want to bother with
52723         worrying about which ancient version of GCC supported what.
52724         Original problem reported by Yoann Vandoorselaere, with part of
52725         the fix suggested by Derek Price.
52726
52727 2005-09-24  Jim Meyering  <jim@meyering.net>
52728
52729         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
52730         so we can once again use a positive bitfield width of 1 -- now we
52731         don't have to explain why we were using a bitfield width of 2.
52732
52733 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
52736         and similarly for the other external symbols.  Problem reported
52737         by James Gallager.
52738
52739         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
52740         bug reported by Jim Meyering.
52741
52742         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
52743         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
52744         not needed, since socklen is a prerequisite module.
52745
52746 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52747
52748         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
52749         Problem reported by Eric Blake.
52750         (getaddrinfo): Initialize se so that it's not garbage.
52751         Redo internal storage allocation so that it doesn't make unportable
52752         assumptions about alignment.
52753         Fix a memory leak.
52754
52755         * lib/utimens.c (futimens): Use futimesat if available.
52756         Prefer it to futimes since it doesn't have the futimes bug.
52757
52758         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
52759         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
52760         Instead, declare a function that returns a pointer to an array,
52761         and use verify_type__ to declare the size of the array.
52762         Problem and germ of a solution reported by Bruno Haible.
52763         (verify_type__): Use 2, not 1, for bitfield size, to avoid
52764         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
52765
52766 2005-09-23  Jim Meyering  <jim@meyering.net>
52767
52768         Sync from coreutils.
52769         Correct build failure (socklen_t not defined) on at least
52770         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
52771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
52772
52773 2005-09-23  Jim Meyering  <jim@meyering.net>
52774
52775         * modules/getaddrinfo (Depends-on): Add socklen.
52776
52777 2005-09-23  Bruno Haible  <bruno@clisp.org>
52778
52779         * tests/test-verify.c: New file.
52780
52781 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52782
52783         Sync from coreutils.
52784
52785         * modules/argmatch (Depends-on): Add verify.
52786         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
52787         unistd-safer.
52788         * modules/save-cwd (Depends-on): Likewise.
52789
52790         * modules/openat (Files): Add lib/openat-die.c.
52791         (Depends-on): Remove error, exitfail.
52792         Add dirname.
52793
52794         * modules/verify: New file.
52795         * MODULES.html.sh (Diagnostics <assert.h>): New section,
52796         with "verify" module.
52797
52798 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52799
52800         Sync from coreutils.
52801
52802         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
52803         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
52804         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
52805         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
52806         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
52807         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
52808         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
52809         Don't bother checking for string.h, stdlib.h, unistd.h.
52810         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
52811         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
52812         module's job.
52813         * m4/jm-macros.m4 (gl_MACROS): Likewise.
52814         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
52815
52816         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
52817         (gl_GETDATE): Use it.
52818
52819         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
52820
52821 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52822
52823         Sync from coreutils.
52824
52825         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
52826         stat-time.h.
52827         * lib/argmatch.h: Include verify.h
52828         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
52829         (ARGMATCH_ASSERT): Remove; unused.
52830         * lib/canonicalize.c: Assume STDC_HEADERS.
52831         * lib/exclude.c: Include "strcase.h".
52832         * lib/regex_internal.h [!defined _LIBC]: Likewise.
52833         * lib/getusershell.c: Include stdio--.h rather than stdio.h
52834         and stdio-safer.h.
52835         (getusershell): Call fopen, not fopen_safer.
52836         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
52837         Do not include unistd-safer.h.
52838         (save_cwd): Don't call fd_safer; no longer needed
52839         now that we include fcntl--.h.
52840
52841         * lib/getdate.y (relative_time): New type.
52842         (RELATIVE_TIME_0): New constant.
52843         (parser_control): Use relative_time instead of doing it ourselves.
52844         (%union): Add new relative_time rel member.
52845         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
52846         Now typeless.
52847         (relunit, relunit_snumber): Now of type rel.
52848         (zone, rel, relunit, get_date): Adjust to above changes.
52849
52850         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
52851         Do not include unistd-safer.h.
52852         (getloadavg): Don't call fd_safer; no longer needed
52853         now that we include fcntl--.h.
52854
52855         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
52856         (make_dir_parents): Treat ENOSYS like EEXIST.
52857
52858         Improve quality of diagnostics on restore_cwd failure.
52859         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
52860         (make_dir_parents): Last arg is now int * (for errno), not bool *.
52861         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
52862         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
52863         each time through the loop.  Do not diagnose restore_cwd failure;
52864         that is the caller's job (and perhaps the caller does not care).
52865
52866         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
52867         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
52868         If the file already exists but is not a directory, don't bother
52869         to try to make its parents.
52870         Close potential file descriptor leak if we can't chdir("/") (!).
52871         Don't always return true if chdir($PWD) fails; return true only
52872         if the requested action was done successfully (except for the
52873         chdir($PWD)).
52874         Don't log final directory unless we actually made it.
52875         Refactor to avoid duplicate code to fix up permissions.
52876         Don't attempt to fix up parent permissions if chdir($PWD) fails.
52877
52878         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
52879         to make it a bit faster and (I hope) clearer.
52880         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
52881         Fix bug in formats like %2N.
52882
52883         * lib/verify.h: New file.
52884
52885 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52886
52887         Sync from coreutils.
52888         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
52889
52890 2005-09-22  Jim Meyering  <jim@meyering.net>
52891
52892         Sync from coreutils.
52893
52894         * m4/lstat.m4 (gl_FUNC_LSTAT):
52895         Use AC_LIBSOURCES to require lstat.c and lstat.h.
52896         Remove obsolete comment.
52897         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
52898         * m4/xstrtod.m4: Likewise.
52899
52900         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
52901
52902 2005-09-22  Jim Meyering  <jim@meyering.net>
52903
52904         Sync from coreutils.
52905
52906         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
52907
52908         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
52909         the .tm_year member, since otherwise gcc-4.0 would now warn about
52910         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
52911
52912         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
52913         order to avoid an unsuppressible warning from gcc on 64-bit systems.
52914
52915         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
52916         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
52917         when run in a time zone for which daylight savings time is in effect
52918         for the starting date.
52919
52920         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
52921         stop us from restricting permissions of just-created absolute-named
52922         directories.
52923         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
52924         to restore initial working directory.
52925         * lib/mkdir-p.c (make_dir_parents): New parameter:
52926         different_working_dir, to tell caller if/when we change the working
52927         directory and are unable to return to the initial one.
52928         * lib/mkdir-p.h (make_dir_parents): Update prototype.
52929         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
52930         `return false'.  This fixes a bug introduced on 2004-07-30.
52931
52932         * lib/openat.c (fdopendir): Be sure to close the supplied
52933         file descriptor before returning.  This makes our replacement
52934         implementation a little closer to Solaris's, where fdopendir
52935         ties the file descriptor to the returned DIR* pointer.
52936         * lib/openat.c (unlinkat): New function.
52937         * lib/openat.h (unlinkat): Add prototype.
52938         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
52939         (openat_restore_fail): Rename from openat_restore_die.
52940         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
52941
52942         Provide an alternative to exiting immediately upon save_cwd or
52943         restore_cwd failure.  Now, an application can arrange e.g.,
52944         to perform a longjump in that case.
52945         * lib/openat.c: Include dirname.h.
52946         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
52947         (rpl_openat, fdopendir, fstatat): Call openat_save_die
52948         and openat_restore_die rather than calling error directly.
52949         Don't include "error.h" or "exitfail.h"; they're no longer needed.
52950
52951         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
52952         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
52953         define.
52954
52955         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
52956         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
52957                             int utc, int nanoseconds);
52958         Background:
52959         date should not have to allocate a megabyte of virtual memory to
52960         handle a format argument like +%1048575T.  When implemented with
52961         strftime, it must allocate such a buffer, use strftime to fill it
52962         in, print it, then free it.
52963         With fprintftime, it simply prints everything and exits.
52964         With no need for memory allocation, that's one fewer way to fail.
52965         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
52966         optional field width, not before, so we accept %9:z, not %:9z.
52967         (my_strftime): Be sure to use L_('x') for literals.
52968
52969         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
52970         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
52971         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
52972         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
52973         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
52974         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
52975         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
52976         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
52977         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
52978         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
52979         * lib/xgethostname.c, lib/xreadlink.c:
52980         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
52981
52982         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
52983         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
52984         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
52985         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52986         and don't include <sys/file.h>).
52987
52988 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
52989
52990         Sync from coreutils.
52991
52992         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
52993         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
52994         [!LDAV_DONE]: Avoid unused variable warning.
52995
52996 2005-09-21  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/unicodeio.h (unicode_to_mb): New declaration.
52999
53000 2005-09-20  Derek Price  <derek@ximbiot.com>
53001
53002         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53003         getaddrinfo.h.
53004
53005 2005-09-20  Bruno Haible  <bruno@clisp.org>
53006
53007         * gnulib-tool: Remove trailing slashes from the values specified for
53008         --source-base, --m4-base, --tests-base, --aux-dir.
53009         Suggested by Simon Josefsson <jas@extundo.com>.
53010
53011 2005-09-20  Bruno Haible  <bruno@clisp.org>
53012
53013         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53014         func_modules_to_filelist, func_import, func_create_testdir): Make all
53015         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53016         change when gnulib-tool is invoked in a different locale.
53017
53018 2005-09-19  Simon Josefsson  <jas@extundo.com>
53019
53020         * m4/socklen.m4: Fix typo.
53021
53022 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53023
53024         Use a consistent style for including <config.h>.
53025         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53026         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53027         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53028         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53029         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53030         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53031         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53032         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53033         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53034         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53035         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53036         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53037         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53038         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53039         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53040         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53041         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53042         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53043         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53044         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53045         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53046         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53047         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53048         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53049         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53050         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53051         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53052         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53053         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53054         lib/xstrtoumax.c, lib/yesno.c:
53055         Standardize inclusion of config.h.
53056         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53057         lib/inttostr.h:  Removed inclusion of config.h from header files.
53058         * lib/inttostr.c:  Adjusted in-tree users.
53059         * lib/timespec.h: Remove superfluous warning to include config.h.
53060         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53061         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53062         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53063         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53064         config.h with HAVE_CONFIG_H.
53065
53066 2005-09-19  Jim Meyering  <jim@meyering.net>
53067
53068         * modules/pathmax (License): Change to LGPL.
53069
53070 2005-09-19  Derek Price  <derek@ximbiot.com>
53071
53072         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53073
53074 2005-09-19  Bruno Haible  <bruno@clisp.org>
53075
53076         * gnulib-tool (import): Provide default for --tests-base.
53077
53078 2005-09-19  Bruno Haible  <bruno@clisp.org>
53079
53080         * doc/quote.texi: New file, extracted from gnulib.texi.
53081         * doc/ctime.texi: New file, extracted from gnulib.texi.
53082         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53083         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53084         * doc/gnulib.texi: Include them.
53085
53086 2005-09-18  Bruno Haible  <bruno@clisp.org>
53087
53088         Portability fix.
53089         * gnulib-tool (func_readlink): New function.
53090         (func_ln_if_changed): Use it.
53091
53092 2005-09-18  Bruno Haible  <bruno@clisp.org>
53093
53094         * gnulib-tool: Support --with-tests also with --import.
53095         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53096         (func_import): Use variables $testsbase and $inctests. Emit a
53097         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53098         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53099         SUBDIRS += $testsdir.
53100         (func_create_testdir): Update.
53101
53102 2005-09-18  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53105         instead of $dry_run.
53106         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53107         (func_ln_if_changed): Don't handle dry-run here.
53108         (func_import): In dry-run mode, detect more precisely which actions
53109         would be performed, and don't use "...ing" verbs.
53110
53111 2005-09-18  Bruno Haible  <bruno@clisp.org>
53112
53113         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53114         (func_import): Use join on two temporary files instead of three nested
53115         loops, in order to determine which files are new or old.
53116
53117 2005-09-18  Bruno Haible  <bruno@clisp.org>
53118
53119         * gnulib-tool (func_import): Comment out code that spits out the
53120         new files with --dry-run.
53121
53122 2005-09-18  Bruno Haible  <bruno@clisp.org>
53123
53124         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53125
53126 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53127
53128         * lib/stat-time.h: New file.
53129         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53130         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53131         in a different way.
53132         (timespec_cmp): New function.
53133         * lib/utimecmp.c: Include stat-time.h.
53134         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53135         members exist, not on the obsolescent ST_MTIM_NSEC.
53136         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53137
53138 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53139
53140         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53141
53142 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * MODULES.html.sh (File system functions): Add stat-time.
53145         * modules/stat-time: New file.
53146         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53147         is now done in a different way, by the stat-time module.
53148         * modules/utimecmp (Depends-on): Add stat-time.
53149
53150 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53151
53152         * m4/st_mtim.m4: Remove.  Superseded by...
53153         * m4/stat-time.m4: New file.
53154         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53155         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53156
53157 2005-09-15  Derek Price  <derek@ximbiot.com>
53158
53159         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53160
53161 2005-09-15  Derek Price  <derek@ximbiot.com>
53162
53163         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53164         * lib/regex_internal.c: Ditto, using this...
53165         (__GNUC_PREREQ): ...new macro.
53166         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53167         using...
53168         (__GNUC_PREREQ): ...this new macro.
53169
53170         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53171
53172 2005-09-15  Derek Price  <derek@ximbiot.com>
53173             Paul Eggert  <eggert@cs.ucla.edu>
53174
53175         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53176         changes, consolidating in...
53177         * lib/regex_internal.h: ...this file.
53178
53179 2005-09-13  Jim Meyering  <jim@meyering.net>
53180
53181         * lib/canon-host.c: Filter through gnu indent and reword comments
53182         slightly.
53183         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53184
53185 2005-09-13  Derek Price  <derek@ximbiot.com>
53186
53187         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53188         failure.
53189         Reported by Jim Meyering  <jim@meyering.net>.
53190
53191 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53192
53193         * lib/base64.c: Typo.
53194         (base64_encode): Put b64str in initialized data section.
53195
53196 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53197
53198         Merge glibc and coreutils changes into gnulib, plus a few
53199         extra fixes.
53200         * lib/md5.c: Use #error rather than a string.
53201         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53202         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53203         (__attribute__): Define to empty for non recent-GCC.
53204         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53205         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53206         Renamed from their non-__ counterparts, with new macros replacing
53207         them if not _LIBC.  Add __THROW attribute.
53208         (rol): Remove.
53209         (struct md5_ctx): Align buffer if using GCC.
53210         * lib/sha1.h (struct sha1_ctx): Likewise.
53211         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53212         The old name was backwards.
53213         (NOTSWAP): Remove; not used.
53214         (rol): New macro, moved here from md5.h.
53215         (sha1_process_block): Remove a FIXME that doesn't make sense.
53216
53217 2005-09-12  Derek Price  <derek@ximbiot.com>
53218
53219         Return usable errors from canon-host.
53220         * lib/canon-host.h: New file.
53221         * lib/canon-host.c (canon_host): Wrap...
53222         (canon_host_r): ...this new function, which now relies exclusively on
53223         getaddrinfo.
53224         (ch_strerror): New function.
53225         (last_cherror): New global.
53226         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53227         interface.
53228         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53229         void *.
53230         (freeaddrinfo): Free ai->ai_canonname when set.
53231
53232 2005-09-12  Derek Price  <derek@ximbiot.com>
53233
53234         Make canon-host require getaddrinfo.
53235         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53236         AC_LIBSOURCE canon-host.h.  Call...
53237         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53238         gl_GETADDRINFO.
53239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53240
53241 2005-09-12  Derek Price  <derek@ximbiot.com>
53242
53243         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53244         LGPL.
53245         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53246
53247 2005-09-12  Derek Price  <derek@ximbiot.com>
53248
53249         * lib/gai_strerror.c: Include config.h when available.  Include
53250         getaddrinfo.h before other headers to test interface.
53251         Reported by Larry Jones <lawrence.jones@ugs.com>.
53252
53253 2005-09-12  Derek Price  <derek@ximbiot.com>
53254             Paul Eggert  <eggert@cs.ucla.edu>
53255
53256         * modules/glob (Files): Add glob-libc.h.
53257
53258 2005-09-12  Derek Price  <derek@ximbiot.com>
53259             Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53262         glob_.h, glob-libc.h.
53263         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53264
53265 2005-09-12  Derek Price  <derek@ximbiot.com>
53266             Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53269         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53270         protecting things that should be done only in gnulib contexts.
53271         * lib/glob_.h: New file, containing only the glob things needed for
53272         gnulib.
53273         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53274         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53275         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53276         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53277         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53278         and to respect the namespace rules better.
53279
53280 2005-09-08  Simon Josefsson  <jas@extundo.com>
53281
53282         * modules/socklen: New file.
53283
53284 2005-09-08  Simon Josefsson  <jas@extundo.com>
53285
53286         * m4/socklen.m4: New file.
53287
53288 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53289
53290         * modules/utimens (Files): Add m4/utimbuf.m4, since
53291         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53292         Reported by Sergey Poznyakoff.
53293
53294 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53295
53296         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53297         definitions, since that's the preferred style in glibc.
53298         Fix a minor spacing issue, and update copyright notice to match
53299         glibc's.
53300
53301 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53304
53305 2005-09-06  Simon Josefsson  <jas@extundo.com>
53306
53307         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53308         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53309
53310 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53311
53312         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53313         warning.
53314
53315 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53316
53317         * config/srclist.txt: Add glibc bug 1302.
53318
53319 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         Change bitset word type from unsigned int to unsigned long int,
53322         as this has better performance on typical 64-bit hosts.
53323         Port bitset code to hosts with unusual word sizes.
53324         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53325         (build_collating_symbol):
53326         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53327         argument is a bitset.  This is merely a style issue, but it makes
53328         it clearer that an entire array is expected.
53329         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53330         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53331         Port to the case where bitset_word is not the same as unsigned int.
53332         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53333         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53334         Likewise.
53335         * lib/regexec.c (check_dst_limits_calc_pos_1,
53336         check_subexp_matching_top):
53337         (build_trtable, group_nodes_into_DFAstates):
53338         Likewise.
53339         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53340         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53341         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53342         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53343         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53344         * lib/regcomp.c (optimize_subexps, lower_subexp):
53345         Work even if bitset_word has holes in its bitwise representation.
53346         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53347         * lib/regexec.c (check_dst_limits_calc_pos_1,
53348         check_subexp_matching_top):
53349         Likewise.
53350         * lib/regex_internal.c (re_string_reconstruct):
53351         Don't assume UCHAR_MAX == 255.
53352         * lib/regex_internal.h (bitset_set_all): Likewise.
53353         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53354         All uses changed.
53355         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53356         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53357         All uses changed.
53358         (BITSET_WORD_MAX): New macro.
53359         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53360         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53361         (bitset_empty, bitset_copy):
53362         Prefer sizeof (bitset) to multiplying it out ourselves.
53363         (bitset_not_merge): Remove; unused.
53364         (bitset_contain): Return bool, not unsigned int with one bit on.
53365         All callers changed.
53366         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53367         alignment than re_node_set; do this by defining a new internal
53368         type struct dests_alloc and using it to allocate memory.
53369
53370 2005-09-05  Bruno Haible  <bruno@clisp.org>
53371
53372         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53373         links.
53374
53375 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53376
53377         * modules/size_max (Makefile.am): Add size_max.h
53378
53379 2005-09-04  Derek Price  <derek@ximbiot.com>
53380
53381         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53382
53383 2005-09-03  Simon Josefsson  <jas@extundo.com>
53384
53385         * gnulib-tool: Fix typo.
53386
53387 2005-09-03  Simon Josefsson  <jas@extundo.com>
53388
53389         * config/srclist.txt: Add glibc bug 1293.
53390
53391 2005-09-03  Derek Price  <derek@ximbiot.com>
53392
53393         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53394         From Larry Jones <lawrence.jones@ugs.com>.
53395
53396 2005-09-02  Simon Josefsson  <jas@extundo.com>
53397
53398         * modules/socklen: New file.
53399
53400 2005-09-02  Simon Josefsson  <jas@extundo.com>
53401
53402         * modules/havelib: New module.
53403
53404         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53405         Use havelib.
53406
53407 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         Check for arithmetic overflow when calculating sizes, to prevent
53410         some buffer-overflow issues.  These patches are conservative, in the
53411         sense that when I couldn't determine whether an overflow was possible,
53412         I inserted a run-time check.
53413         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53414         macros.
53415         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53416         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53417         (re_xnrealloc, re_x2nrealloc): New inline functions.
53418         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53419         parse_bracket_exp):
53420         (build_equiv_class, build_charclass): Check for arithmetic overflow
53421         in size expression calculations.
53422         * lib/regex_internal.c (re_string_realloc_buffers):
53423         (build_wcs_upper_buffer, re_node_set_add_intersect):
53424         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53425         (re_dfa_add_node, register_state): Likewise.
53426         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53427         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53428         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53429         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53430
53431 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53432
53433         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53434         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53435
53436 2005-09-02  Bruno Haible  <bruno@clisp.org>
53437
53438         Support for lib vs. lib64 distinction on biarch platforms.
53439         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53440         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53441         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53442
53443 2005-09-02  Bruno Haible  <bruno@clisp.org>
53444
53445         * gnulib-tool (import): In the other first-use case, provide defaults
53446         as well.
53447
53448 2005-09-02  Bruno Haible  <bruno@clisp.org>
53449
53450         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53451         patches not yet found in the latest gettext release.
53452
53453 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53454
53455         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53456         to avoid a collision with bits/local_lim.h in glibc.
53457         All uses changed.  Problem reported by Dmitry V. Levin in
53458         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53459
53460         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53461         bugs in int versus size_t comparisons.
53462         (re_string_context_at): Fix bug where the code assumed that
53463         Idx is signed.
53464
53465         Use bool where appropriate.
53466         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53467         All callers changed.
53468         (calc_eclosure_iter): Likewise, for ROOT arg.
53469         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53470         (build_charclass_op): Likewise, for NON_MATCH arg.
53471         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53472         (re_string_construct_common): Likewise, for ICASE arg.
53473         * lib/regexec.c (re_search_2_stub, re_search_stub):
53474         Likewise, for RET_LEN arg.
53475         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53476         (set_regs): Likewise, for FL_BACKTRACK arg.
53477         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53478         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53479         (calc_eclosure_iter, parse_bracket_exp):
53480         Use bool for internal variables that are booleans.
53481         * lib/regexec.c (re_search_internal, check_matching,
53482         proceed_next_node):
53483         (set_regs, build_sifted_states, sift_states_bkref):
53484         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53485         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53486         (find_collation_sequence_value):
53487         Likewise.
53488         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53489         (re_node_set_compare):
53490         Return bool, not int. All callers changed.
53491         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53492         (build_trtable, check_node_accept): Likewise.
53493         * lib/regex_internal.h: Include stdbool.h.
53494
53495         Fix bugs uncovered when converting to bool.
53496         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53497         failure instead of charging ahead blindly.
53498         * lib/regex_internal.c (register_state): Likewise.
53499         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53500         for freeing internal storage.
53501         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53502         bitset pieces used as boolean, to avoid undefined behavior
53503         on hosts that do int overflow checking.
53504
53505 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53506
53507         * config/srclist.txt: Add glibc bugs 1285-1287.
53508
53509 2005-09-01  Jim Meyering  <jim@meyering.net>
53510
53511         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53512         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53513         Require gl_STAT_MACROS, too.
53514
53515 2005-09-01  Bruno Haible  <bruno@clisp.org>
53516
53517         * gnulib-tool (import): In the first-use case, provide defaults.
53518
53519 2005-09-01  Bruno Haible  <bruno@clisp.org>
53520
53521         * gnulib-tool (func_import): Remove the .tmp files.
53522
53523 2005-09-01  Bruno Haible  <bruno@clisp.org>
53524
53525         * gnulib-tool (func_import): Fix handling of symbolic links.
53526
53527 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53528
53529         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53530         old glibc regex code mishandles strings longer than 2**31 bytes.
53531         This patch fixes this when the regex code is used in gnulib
53532         (i.e., outside glibc).
53533
53534         This patch should not affect the use of the regex code inside
53535         glibc.  No doubt this problem also needs to be handled for glibc
53536         as well, but the result will be an incompatible change to the
53537         glibc ABI, and the old ABI will have to be supported too.  That
53538         can be the the subject for another patch.
53539
53540         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53541         governing whether the rest of this patch is active.  By default,
53542         the macro is disabled and the patch has no effect.
53543         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53544         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53545         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53546         (re_match_2, re_set_registers): Use the new types.
53547         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53548         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53549         New macros.
53550         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53551         (re_string_context_at, bin_tree_t, re_dfastate_t):
53552         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53553         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53554         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53555         (re_string_char_size_at, re_string_wchar_at):
53556         (re_string_elem_size_at):
53557         Use the new types and macros to port to 64-bit hosts.
53558         Use unsigned types for internal values, so that the code
53559         mostly works even for arrays larger than SSIZE_MAX.
53560         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53561         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53562         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53563         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53564         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53565         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53566         (calc_inveclosure, parse_dup_op, build_range_exp):
53567         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53568         (fetch_number, create_token_tree, mark_opt_subexp):
53569         Likewise.
53570         * lib/regex_internal.c (re_string_construct_common,
53571         create_ci_newstate):
53572         (create_cd_newstate, re_string_allocate, re_string_construct):
53573         (re_string_realloc_buffers, build_wcs_upper_buffer):
53574         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53575         (re_string_reconstruct, re_string_peek_byte_case):
53576         (re_string_fetch_byte_case, re_string_context_at):
53577         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53578         (re_node_set_init_copy, re_node_set_add_intersect):
53579         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53580         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53581         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53582         (re_acquire_state, re_acquire_state_context, register_state):
53583         Likewise.
53584         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53585         search_cur_bkref_entry):
53586         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53587         (re_search_internal, re_search_2_stub, re_search_stub)
53588         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53589         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53590         (update_cur_sifted_state, check_dst_limits):
53591         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53592         (check_subexp_limits, sift_states_bkref, merge_state_array):
53593         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53594         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53595         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53596         (expand_bkref_cache, check_node_accept_bytes):
53597         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53598         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53599         (acquire_init_state_context, check_halt_node_context):
53600         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53601         (sift_states_backward, clean_state_log_if_needed):
53602         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53603         (find_recover_state, transit_state_sb, transit_state_mb):
53604         (transit_state_bkref, build_trtable, match_ctx_clean):
53605         Likewise.
53606         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53607         to work around an assumption that REG_MISSING is negative.
53608
53609         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53610         (seek_collating_symbol_entry) [defined _LIBC]:
53611         (lookup_collation_sequence_value) [defined _LIBC]:
53612         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53613         Use prototypes rather than old-style function definitions.
53614         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
53615         (transit_state_sb) [0]:
53616         (find_collation_sequence_value) [defined _LIBC]: Likewise.
53617
53618         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
53619         rm_eo.
53620
53621         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
53622         (optimize_subexps, lower_subexp):
53623         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
53624         since the signed shift might overflow.  Use 1u<<31 instead.
53625         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53626         Likewise.
53627         * lib/regexec.c (check_dst_limits_calc_pos_1,
53628         check_subexp_matching_top): Likewise.
53629
53630         * lib/regcomp.c (optimize_subexps, lower_subexp):
53631         Use CHAR_BIT rather than 8, for clarity.
53632         * lib/regexec.c (check_dst_limits_calc_pos_1):
53633         (check_subexp_matching_top): Likewise.
53634         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
53635         have to worry about portability issues when shifting it left.
53636         Remove no-longer-needed test for table_size > 0.
53637         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
53638         in a word, as the resulting behavior is undefined.
53639         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
53640         in one case, a <= should have been an <, and in another case the
53641         whole test was missing.
53642         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53643         the standard name CHAR_BIT.
53644         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53645         this is not true on one's complement and signed-magnitude hosts.
53646
53647         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53648         next_last_offset.
53649         (struct re_dfa_t): Remove unused member states_alloc.
53650         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53651
53652 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53653
53654         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53655         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53656         and large-file glibc and in 32-bit large-file Solaris.
53657
53658 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53659
53660         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53661         lengths fit in regoff_t; this isn't true if regoff_t is the same
53662         width as size_t.
53663         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53664         (= START + RANGE) instead of RANGE.  This avoids overflow
53665         problems when regoff_t is the same width as size_t.
53666         All callers changed.
53667         (re_search_2_stub): Check for overflow when adding the
53668         sizes of the two strings.
53669         (re_search_stub): Check for overflow when adding START
53670         to RANGE; if it occurs, substitute the extreme value.
53671
53672 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53675
53676 2005-08-31  Jim Meyering  <jim@meyering.net>
53677
53678         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53679         a pointer-to-const.
53680         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53681         (register_state): Likewise.
53682         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53683         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53684         (group_nodes_into_DFAstates): Likewise.
53685
53686 2005-08-31  Jim Meyering  <jim@meyering.net>
53687
53688         * check-module: Add a FIXME comment.
53689
53690 2005-08-31  Eric Blake  <ebb9@byu.net>
53691
53692         * modules/unistd-safer (Files): Add unistd--.h.
53693         * modules/stdio-safer (Files): Add stdio--.h.
53694
53695 2005-08-31  Derek Price  <derek@ximbiot.com>
53696
53697         * lib/getdelim.c (getdelim): Return EOF on EOF.
53698         Reported by Larry Jones <lawrence.jones@ugs.com>.
53699
53700 2005-08-31  Bruno Haible  <bruno@clisp.org>
53701
53702         Avoid unnecessary diffs in the generated lib/Makefile.am.
53703         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53704         the generated files.
53705         (func_import): Don't set cmd.
53706
53707 2005-08-31  Bruno Haible  <bruno@clisp.org>
53708
53709         * lib/strstr.c: Include <stddef.h>, for NULL.
53710         * lib/strcasestr.c: Likewise.
53711         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53712
53713 2005-08-31  Bruno Haible  <bruno@clisp.org>
53714
53715         * gnulib-tool: New option --macro-prefix.
53716         (func_import): Use macro_prefix.
53717         (import): Handle option --macro-prefix.
53718
53719 2005-08-31  Bruno Haible  <bruno@clisp.org>
53720
53721         * gnulib-tool (import): Rename most ac_* variables to cached_*.
53722         Also use new variables cached_lgpl, cached_libtool.
53723
53724 2005-08-31  Bruno Haible  <bruno@clisp.org>
53725
53726         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
53727         always instantiating them.
53728
53729 2005-08-31  Bruno Haible  <bruno@clisp.org>
53730
53731         * gnulib-tool (func_import): Read the previous cached settings
53732         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
53733         earlier added by gnulib but are now dropped. Warn when a gnulib file
53734         overwrites a non-gnulib file.
53735
53736 2005-08-31  Bruno Haible  <bruno@clisp.org>
53737
53738         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
53739         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
53740         projects that don't keep autogenerated files in CVS. Put into
53741         actioncmd only the specified modules, not the transitive closure.
53742
53743 2005-08-31  Bruno Haible  <bruno@clisp.org>
53744
53745         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
53746         Create directories that shall be filled.
53747         (import): Don't look for gl_* macros in configure.ac. Recurse across
53748         all directories containing a gnulib-cache.m4 files, if meaningful.
53749
53750 2005-08-31  Bruno Haible  <bruno@clisp.org>
53751
53752         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
53753         (import): Set seen_libtool when we see gl_LIBTOOL.
53754
53755 2005-08-31  Bruno Haible  <bruno@clisp.org>
53756
53757         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
53758         declaration macro definitions from generated gnulib.m4.
53759
53760 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
53761
53762         * lib/iconvme.h: Add prototype for iconv_alloc.
53763
53764 2005-08-29  Simon Josefsson  <jas@extundo.com>
53765
53766         * lib/iconvme.c: Fix errno.
53767
53768 2005-08-29  Bruno Haible  <bruno@clisp.org>
53769
53770         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
53771         that it works when the directory contains spaces.
53772
53773 2005-08-29  Bruno Haible  <bruno@clisp.org>
53774
53775         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
53776
53777 2005-08-29  Bruno Haible  <bruno@clisp.org>
53778
53779         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
53780         Emit more advice.
53781
53782 2005-08-29  Bruno Haible  <bruno@clisp.org>
53783         and Stepan Kasal  <kasal@ucw.cz>
53784
53785         * check-module: If more parameters are given, check each of them
53786         separately; add more exceptions, as noted by Jim Meyering.
53787         (check_module): New procedure.
53788         (%exempt_header): Now contains all exceptions.
53789
53790 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
53791
53792         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
53793
53794 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53795
53796         * lib/iconvme.c: Split iconv_string into iconv_alloc.
53797
53798 2005-08-28  Bruno Haible  <bruno@clisp.org>
53799
53800         * m4/gnulib-tool.m4: New file.
53801
53802 2005-08-27  Jim Meyering  <jim@meyering.net>
53803
53804         * modules/unistd-safer (Files): Add pipe-safer.c.
53805         * modules/fcntl-safer (Files): Add creat-safer.c.
53806
53807 2005-08-27  Jim Meyering  <jim@meyering.net>
53808
53809         * m4/stdlib-safer.m4: New file.  From coreutils.
53810         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
53811         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
53812         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
53813         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
53814         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
53815
53816 2005-08-27  Jim Meyering  <jim@meyering.net>
53817
53818         * lib/fopen-safer.c: Merge minor changes from coreutils.
53819         * lib/dup-safer.c: Likewise.
53820         * lib/fd-safer.c: Likewise.
53821
53822         Merge from coreutils.
53823         * lib/stdio--.h: New file.
53824         * lib/stdlib--.h: New file.
53825         * lib/mkstemp-safer.c: New file.
53826
53827         GNU tar needs these.
53828         * lib/pipe-safer.c: New file.
53829         * lib/creat-safer.c: New file.
53830         * lib/fcntl--.h (creat): Define to creat_safer.
53831         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
53832         * lib/unistd--.h (pipe): Define to pipe_safer.
53833         * lib/unistd-safer.h: Declare pipe_safer.
53834
53835 2005-08-26  Simon Josefsson  <jas@extundo.com>
53836
53837         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
53838         Haible <bruno@clisp.org>.
53839
53840 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
53841
53842         * lib/regex_internal.h: Remove all references to
53843         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
53844         or better.
53845         (bitset_not, bitset_merge, bitset_not_merge):
53846         (bitset_mask, re_string_allocate, re_string_construct):
53847         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
53848         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
53849         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
53850         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
53851         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53852         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53853         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
53854         (re_acquire_state_context):
53855         Remove unnecessary forward decls.
53856         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
53857         Put __attribute at function definition,
53858         now that the function decl has been removed.
53859         * lib/regex_internal.c (re_string_peek_byte_case):
53860         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
53861         Likewise.
53862
53863 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
53864
53865         * m4/regex.m4: Add AC_PREREQ(2.50).
53866         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
53867
53868 2005-08-25  Simon Josefsson  <jas@extundo.com>
53869
53870         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
53871         __fsetlocking.
53872
53873 2005-08-25  Simon Josefsson  <jas@extundo.com>
53874
53875         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
53876         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
53877         GLIBC specific code.
53878
53879 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         Make regex safe for g++.  This fixes one real bug (an "err"
53882         that should have been "*err").  g++ problem reported by
53883         Sam Steingold.
53884         * lib/regex_internal.h (re_calloc): New macro, consistent with
53885         re_malloc etc.  All callers of calloc changed to use re_calloc.
53886         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
53887         not int.  All callers changed.
53888         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
53889         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
53890         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
53891         (find_recover_state): Change "err" to "*err"; this fixes what
53892         appears to be a real bug.
53893         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
53894         versus int.
53895
53896 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53897
53898         * modules/regex (Depends-on): Add malloc, since the code
53899         assumes that !malloc(0) means failure.
53900
53901 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53902
53903         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
53904
53905         alloca modernization/simplification for regex.
53906         * lib/regex.c: Remove portability cruft for alloca.  This no longer
53907         needs to be at the start of the file, and can be moved into
53908         regex_internal.h and simplified.
53909         * lib/regex_internal.h: Include <alloca.h>.
53910         (__libc_use_alloca) [!defined _LIBC]: New macro.
53911         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
53912         now works outside glibc.
53913
53914 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         * config/srclist.txt: Add glibc bugs 1241, 1245.
53917
53918 2005-08-25  Jim Meyering  <jim@meyering.net>
53919
53920         * lib/open-safer.c: Include <config.h>.
53921         Otherwise, we'd lose LARGEFILE support in any file using
53922         e.g. "fcntl--.h"
53923
53924 2005-08-25  Bruno Haible  <bruno@clisp.org>
53925
53926         * m4/minmax.m4: Require autoconf 2.52.
53927         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
53928         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
53929         alternatives of translit over the alphabet.
53930         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
53931
53932 2005-08-24  Simon Josefsson  <jas@extundo.com>
53933
53934         * tests/test-getpass.c: New file.
53935
53936 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53937
53938         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
53939         for GNU regex features.
53940
53941 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
53944         * lib/regex.h (regerror): Likewise.
53945
53946         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
53947         requires this.  (The code never needed it.)
53948
53949         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
53950         All uses of recently-renamed identifiers changed to use the new,
53951         POSIX-compliant names.  The code will build and run just fine
53952         without these changes, but it's better to eat our own dog food
53953         and use the standard-conforming names.
53954
53955         * lib/regex.h: Fix a multitude of POSIX name space violations.
53956         These changes have an effect only for programs that define
53957         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
53958         do not change anything for programs compiled in the normal way.
53959         Also, there is no effect on the ABI.
53960
53961         (_REGEX_SOURCE): New macro.
53962         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
53963         defined and _GNU_SOURCE is not; this fixes a name space violation.
53964
53965         Rename the following macros to obey POSIX requirements.
53966         The old names are still visible as macros if _REGEX_SOURCE is defined.
53967         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
53968         RE_BACKSLASH_ESCAPE_IN_LISTS.
53969         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
53970         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
53971         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
53972         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
53973         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
53974         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
53975         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
53976         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
53977         (REG_INTERVALS): renamed from RE_INTERVALS.
53978         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
53979         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
53980         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
53981         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
53982         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
53983         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
53984         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
53985         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
53986         RE_UNMATCHED_RIGHT_PAREN_ORD.
53987         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
53988         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
53989         (REG_DEBUG): renamed from RE_DEBUG.
53990         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
53991         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
53992         unusual, since we can't clash with the POSIX REG_ICASE.
53993         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
53994         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
53995         (REG_NO_SUB): renamed from RE_NO_SUB.
53996         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
53997         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
53998         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
53999         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54000         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54001         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54002         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54003         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54004         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54005         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54006         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54007         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54008         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54009         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54010         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54011         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54012         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54013         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54014         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54015         (REG_FIXED): Renamed from REGS_FIXED.
54016         (REG_NREGS): Renamed from RE_NREGS.
54017
54018         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54019         of other REG_* macros, since POSIX says the user is allowed to
54020         #undef these macros selectively.
54021
54022         (reg_errcode_t): Update comment stating what other tables need
54023         to be consistent.
54024
54025         Rename the following enum values to obey POSIX requirements.
54026         The old names are still visible as macros.
54027         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54028         is not defined, since GNU is supposed to be a superset of POSIX as
54029         much as possible, and since we want reg_errcode_t to be a signed
54030         type for implementation consistency.
54031         (_REG_NOERROR): Renamed from REG_NOERROR.
54032         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54033         (_REG_BADPAT): Renamed from REG_BADPAT.
54034         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54035         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54036         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54037         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54038         (_REG_EBRACK): Renamed from REG_EBRACK.
54039         (_REG_EPAREN): Renamed from REG_EPAREN.
54040         (_REG_EBRACE): Renamed from REG_EBRACE.
54041         (_REG_BADBR): Renamed from REG_BADBR.
54042         (_REG_ERANGE): Renamed from REG_ERANGE.
54043         (_REG_ESPACE): Renamed from REG_ESPACE.
54044         (_REG_BADRPT): Renamed from REG_BADRPT.
54045         (_REG_EEND): Renamed from REG_EEND.
54046         (_REG_ESIZE): Renamed from REG_ESIZE.
54047         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54048         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54049         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54050         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54051         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54052
54053         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54054         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54055         changed.  But support the old name if the new one is not defined
54056         and if _REGEX_SOURCE.
54057
54058         Change the following member names in struct re_pattern_buffer.
54059         The old names are still supported if !_REGEX_SOURCE.
54060         The new names are always supported, regardless of _REGEX_SOURCE.
54061         (re_buffer): Renamed from buffer.
54062         (re_allocated): Renamed from allocated.
54063         (re_used): Renamed from used.
54064         (re_syntax): Renamed from syntax.
54065         (re_fastmap): Renamed from fastmap.
54066         (re_translate): Renamed from translate.
54067         (re_can_be_null): Renamed from can_be_null.
54068         (re_regs_allocated): Renamed from regs_allocated.
54069         (re_fastmap_accurate): Renamed from fastmap_accurate.
54070         (re_no_sub): Renamed from no_sub.
54071         (re_not_bol): Renamed from not_bol.
54072         (re_not_eol): Renamed from not_eol.
54073         (re_newline_anchor): Renamed from newline_anchor.
54074
54075         Change the following member names in struct re_registers.
54076         The old names are still supported if !_REGEX_SOURCE.
54077         The new names are always supported, regardless of _REGEX_SOURCE.
54078         (rm_num_regs): Renamed from num_regs.
54079         (rm_start): Renamed from start.
54080         (rm_end): Renamed from end.
54081
54082         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54083         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54084         Prepend __ to parameter names.
54085
54086         Undo yesterday's changes.
54087
54088 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54089
54090         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54091         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54092         lib/regex.c.
54093
54094 2005-08-24  Jim Meyering  <jim@meyering.net>
54095
54096         Sync from coreutils.
54097         * m4/fcntl-safer.m4: New file.
54098
54099         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54100         and object files for this module.
54101
54102 2005-08-24  Jim Meyering  <jim@meyering.net>
54103
54104         Sync from coreutils.
54105         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54106
54107 2005-08-24  Jim Meyering  <jim@meyering.net>
54108
54109         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54110         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54111
54112 2005-08-24  Jim Meyering  <jim@meyering.net>
54113
54114         * modules/fcntl-safer: New module.
54115         * modules/fts (Depends-on): Add fcntl-safer.
54116         * MODULES.html.sh (File descriptor based Input/Output):
54117         Add fcntl-safer.
54118
54119 2005-08-24  Bruno Haible  <bruno@clisp.org>
54120
54121         Support for unit test modules.
54122         * modules/README: Mention tests modules.
54123         * modules/TEMPLATE-TESTS: New file.
54124         * gnulib-tool: New options --extract-tests-module, --with-tests and
54125         --tests-base (unused for the moment).
54126         (testsbase, inctests): New variables.
54127         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54128         (func_verify_module): Exclude TEMPLATE-TESTS.
54129         (func_verify_nontests_module, func_verify_tests_module): New functions.
54130         (func_get_dependencies): Add implicit dependency for tests modules.
54131         (func_get_tests_module): New function.
54132         (func_modules_transitive_closure): When --with-tests was specified,
54133         include the unit tests as well, unless explicitly avoided.
54134         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54135         (func_emit_tests_Makefile_am): New function.
54136         (func_create_testdir): When --with-tests was specified, emit a
54137         tests/ directory.
54138         * MODULES.html.sh (Future developments): Update.
54139
54140 2005-08-24  Bruno Haible  <bruno@clisp.org>
54141
54142         * modules/tls-tests: New file.
54143         * tests/test-tls.c: New file, from GNU gettext.
54144
54145 2005-08-24  Bruno Haible  <bruno@clisp.org>
54146
54147         * modules/lock-tests: New file.
54148         * tests/test-lock.c: New file, from GNU gettext.
54149
54150 2005-08-24  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/lock.h: Add multiple inclusion guard.
54153         * lib/tls.h: Add multiple inclusion guard.
54154
54155 2005-08-24  Bruno Haible  <bruno@clisp.org>
54156
54157         * gnulib-tool: Add support for the --aux-dir option to
54158         --create-testdir, --create-megatestdir, --test, --megatest.
54159         (func_create_testdir, func_create_megatestdir): Optionally emit a
54160         AC_CONFIG_AUX_DIR directive.
54161         (create-testdir, create-megatestdir, test, megatest): Provide a
54162         default value for $auxdir.
54163
54164 2005-08-24  Bruno Haible  <bruno@clisp.org>
54165
54166         * gnulib-tool (import): Use compound statement instead of subshell
54167         where possible.
54168
54169 2005-08-24  Bruno Haible  <bruno@clisp.org>
54170
54171         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54172
54173 2005-08-24  Bruno Haible  <bruno@clisp.org>
54174
54175         * gnulib-tool (func_version): Update.
54176
54177 2005-08-24  Bruno Haible  <bruno@clisp.org>
54178
54179         * gnulib-tool (func_import, func_create_testdir,
54180         func_create_megatestdir): Quote all autoconf macro arguments.
54181
54182 2005-08-24  Bruno Haible  <bruno@clisp.org>
54183
54184         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54185         option --force, because --force causes the aclocal.m4 of each
54186         subdirectory to be newer than the corresponding config.h.in.
54187
54188 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54191         All contents moved to gl_REGEX.
54192         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54193         assume that it does.
54194
54195 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         * lib/regex.h (REG_NOSYS)
54198         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54199         Define, since POSIX requires it as of 2001.
54200         (_REG_ENOSYS)
54201         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54202         New private symbol, used to keep the enum signed in all cases.
54203         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54204         Youngman in
54205         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54206
54207         * lib/regex_internal.c (re_string_skip_chars, register_state):
54208         (calc_state_hash):
54209         Remove forward decls; no longer needed now that we use prototypes.
54210         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54211         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54212         (clean_state_log_if_needed): Likewise.
54213
54214 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * config/srclist.txt: Add glibc bugs 1231-1233.
54217
54218 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         Fix problems reported by Sam Steingold in
54221         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54222         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54223         assumed that reg_errcode_t is a signed type, which is not
54224         necessarily true if _XOPEN_SOURCE is not defined.
54225         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54226         since some compilers warn about it otherwise.
54227
54228 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54231         (init_word_char, create_initial_state, duplicate_node_closure):
54232         (fetch_token, peek_token_bracket, build_range_exp):
54233         (build_collating_symbol): Remove forward decls; no longer needed
54234         now that we use prototypes.
54235
54236         * lib/regcomp.c:
54237         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54238         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54239         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54240         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54241         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54242         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54243         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54244         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54245         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54246         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54247         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54248         (build_charclass, build_charclass_op, fetch_number, create_tree):
54249         (create_token_tree, mark_opt_subexp, duplicate_tree):
54250         Use prototypes rather than old-style definitions.
54251
54252         * lib/regex_internal.c:
54253         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54254         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54255         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54256         (re_string_reconstruct, re_string_peek_byte_case):
54257         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54258         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54259         (re_node_set_init_copy, re_node_set_add_intersect):
54260         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54261         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54262         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54263         (re_acquire_state, re_acquire_state_context, register_state):
54264         (create_ci_newstate, create_cd_newstate, free_state):
54265         Likewise.
54266         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54267         re_search_2):
54268         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54269         (re_search_internal, prune_impossible_nodes):
54270         (acquire_init_state_context, check_matching, static):
54271         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54272         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54273         (update_regs, sift_states_backward, build_sifted_states):
54274         (clean_state_log_if_needed, merge_state_array):
54275         (update_cur_sifted_state, add_epsilon_src_nodes):
54276         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54277         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54278         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54279         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54280         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54281         (check_arrival, check_arrival_add_next_nodes):
54282         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54283         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54284         (check_node_accept_bytes, check_node_accept, extend_buffers):
54285         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54286         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54287         (sift_ctx_init):
54288         Likewise.
54289
54290         * lib/regex_internal.h:
54291         (re_string_allocate, re_string_construct, re_string_reconstruct):
54292         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54293         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54294         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54295         (re_string_context_at, re_string_peek_byte_case):
54296         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54297         is defined, since we now use prototypes always.
54298
54299         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54300         C89 or better.  All uses removed.
54301
54302 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54303
54304         * config/srclist.txt: Add glibc bugs 1220-1227.
54305
54306 2005-08-20  Jim Meyering  <jim@meyering.net>
54307
54308         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54309         of unused local, dfa.
54310
54311 2005-08-20  Bruno Haible  <bruno@clisp.org>
54312
54313         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54314
54315 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54318         (re_node_set_insert_last, re_dfa_add_node):
54319         Rename local variables to avoid GCC shadowing warnings.
54320
54321 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54322
54323         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54324         [defined lint]: Suppress bogus uninitialized-variable warnings.
54325
54326         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54327         and let the caller return REG_ESPACE if out of space.  This
54328         removes an uninitialied-variable warning with GCC 4.0.1, and also
54329         avoids taking the address of a local variable.  All callers
54330         changed.
54331
54332 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54335         $LIBCSRC/posix/regexec.c.
54336         Add glibc bug 1217 for regcomp.c.
54337
54338 2005-08-19  Jim Meyering  <jim@meyering.net>
54339
54340         * lib/regexec.c (proceed_next_node): Redo local variables to
54341         avoid GCC shadowing warnings.
54342
54343 2005-08-18  Bruno Haible  <bruno@clisp.org>
54344
54345         * lib/strstr.c (strstr): Fix return value in multibyte case.
54346         * lib/strcasestr.c (strcasestr): Likewise.
54347
54348 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54351
54352 2005-08-17  Jim Meyering  <jim@meyering.net>
54353
54354         Make the %s format (seconds since the epoch) work for a negative
54355         number and when used with a zero-padded field width, e.g. %015s.
54356
54357         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54358         label so that it precedes the code to set `digits'.  Otherwise,
54359         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54360         print `00-22'.  Now, it prints `-0022', as it should.
54361
54362 2005-08-17  Bruno Haible  <bruno@clisp.org>
54363
54364         * modules/strstr (Files): Add m4/mbrtowc.m4.
54365         (Depends-on): Add mbuiter.
54366
54367 2005-08-17  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/strcasestr: New file.
54370         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54371         strcasestr.
54372
54373 2005-08-17  Bruno Haible  <bruno@clisp.org>
54374
54375         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54376
54377 2005-08-17  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/mbuiter: New file.
54380         * MODULES.html.sh (Extended multibyte and wide character utilities):
54381         Add mbuiter.
54382
54383 2005-08-17  Bruno Haible  <bruno@clisp.org>
54384
54385         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54386         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54387
54388 2005-08-17  Bruno Haible  <bruno@clisp.org>
54389
54390         * m4/strcasestr.m4: New file.
54391
54392 2005-08-17  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54395         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54396
54397 2005-08-17  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/strcasestr.h: New file.
54400         * lib/strcasestr.c: New file.
54401
54402 2005-08-17  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/strcasecmp.c: Use mbuiter.h.
54405
54406 2005-08-17  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/mbuiter.h: New file.
54409
54410 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54411
54412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54413         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54414         and gl_GETOPT are both invoked via different paths (as happens
54415         with GNU tar CVS because it uses both argp and getopt), the former
54416         wins.
54417
54418 2005-08-16  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/tls: New file.
54421         * MODULES.html.sh (Multithreading): Add tls.
54422
54423 2005-08-16  Bruno Haible  <bruno@clisp.org>
54424
54425         * modules/strnlen1: New file.
54426         * MODULES.html.sh (String handling): Add strnlen1.
54427
54428 2005-08-16  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/strcase (Files): Add m4/mbrtowc.m4.
54431         (Depends-on): Add strnlen1, mbchar.
54432
54433 2005-08-16  Bruno Haible  <bruno@clisp.org>
54434
54435         * modules/mbiter: New file.
54436         * MODULES.html.sh (Extended multibyte and wide character utilities):
54437         Add mbiter.
54438
54439 2005-08-16  Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/mbfile: New file.
54442         * MODULES.html.sh (Extended multibyte and wide character utilities):
54443         Add mbfile.
54444
54445 2005-08-16  Bruno Haible  <bruno@clisp.org>
54446
54447         * modules/mbchar: New file.
54448         * MODULES.html.sh (Extended multibyte and wide character utilities):
54449         New section.
54450
54451 2005-08-16  Bruno Haible  <bruno@clisp.org>
54452
54453         * m4/tls.m4: New file, from GNU gettext.
54454
54455 2005-08-16  Bruno Haible  <bruno@clisp.org>
54456
54457         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54458         always.
54459         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54460
54461 2005-08-16  Bruno Haible  <bruno@clisp.org>
54462
54463         * m4/mbiter.m4: New file.
54464
54465 2005-08-16  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/mbfile.m4: New file.
54468
54469 2005-08-16  Bruno Haible  <bruno@clisp.org>
54470
54471         * m4/mbchar.m4: New file.
54472
54473 2005-08-16  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/tls.h: New file, from GNU gettext.
54476         * lib/tls.c: New file, from GNU gettext.
54477
54478 2005-08-16  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/strnlen1.h: New file.
54481         * lib/strnlen1.c: New file.
54482
54483 2005-08-16  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54486         (mbi_init): Update.
54487         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54488         NUL byte, not after it.
54489
54490 2005-08-16  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/strcase.h (strcasecmp): Add note in comments.
54493         * lib/strncasecmp.c: Use code from strcasecmp.c.
54494         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54495         (strcasecmp): Work correctly in multibyte locales.
54496
54497 2005-08-16  Bruno Haible  <bruno@clisp.org>
54498
54499         * lib/mbiter.h: New file.
54500
54501 2005-08-16  Bruno Haible  <bruno@clisp.org>
54502
54503         * lib/mbfile.h: New file.
54504
54505 2005-08-16  Bruno Haible  <bruno@clisp.org>
54506
54507         * lib/mbchar.h: New file.
54508         * lib/mbchar.c: New file.
54509
54510 2005-08-16  Bruno Haible  <bruno@clisp.org>
54511
54512         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54513         the valid ones. Makes the comparison operations transitive:
54514         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54515         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54516
54517 2005-08-15  Simon Josefsson  <jas@extundo.com>
54518
54519         * modules/ssize_t (License): Change to 'unlimited'.
54520
54521         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54522
54523 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54526         Add comments for each pending glibc patch.
54527
54528 2005-08-15  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54531         __cplusplus is defined.
54532
54533 2005-08-14  Jim Meyering  <jim@meyering.net>
54534
54535         Sync from coreutils.
54536
54537         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54538         Use the hash-table-based cycle-detection code not just when
54539         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54540         Reported by James Youngman in
54541         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54542         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54543         FTS_TIGHT_CYCLE_CHECK.
54544         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54545         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54546         once again.
54547         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54548         * lib/fts.c (fd_safer): Remove decl.
54549         Include fcntl--.h rather than unistd-safer.h
54550         (fts_safe_changedir): Don't call fd_safer; no longer needed
54551         now that we include fcntl--.h.
54552
54553 2005-08-12  Simon Josefsson  <jas@extundo.com>
54554
54555         * modules/getndelim2: Use ssize_t module.
54556         * modules/getnline: Likewise.
54557         * modules/safe-read: Likewise.
54558         * modules/xreadlink: Likewise.
54559
54560         * modules/ssize_t: New file.
54561
54562 2005-08-12  Simon Josefsson  <jas@extundo.com>
54563
54564         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54565
54566 2005-08-12  Simon Josefsson  <jas@extundo.com>
54567
54568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54569         ssize_t.
54570
54571 2005-08-12  Simon Josefsson  <jas@extundo.com>
54572
54573         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54574         readline, getdelim and check_version.
54575         (Support for systems lacking ISO C 99: Sizes of integer types):
54576         Add size_max.
54577
54578 2005-08-12  Bruno Haible  <bruno@clisp.org>
54579
54580         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54581
54582 2005-08-11  Simon Josefsson  <jas@extundo.com>
54583
54584         * modules/readline: New file.
54585
54586         * modules/strnlen (Files): Add strnlen.h.
54587
54588 2005-08-11  Simon Josefsson  <jas@extundo.com>
54589
54590         * m4/readline.m4: New file.
54591
54592 2005-08-11  Simon Josefsson  <jas@extundo.com>
54593
54594         * lib/readline.h, readline.c: New file.
54595
54596 2005-08-11  Simon Josefsson  <jas@extundo.com>
54597
54598         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54599         gl_AVOID.
54600
54601 2005-08-11  Bruno Haible  <bruno@clisp.org>
54602
54603         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54604
54605 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54606
54607         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54608
54609 2005-08-10  Simon Josefsson  <jas@extundo.com>
54610
54611         * tests/test-iconvme.c: New file.
54612
54613 2005-08-10  Simon Josefsson  <jas@extundo.com>
54614
54615         * m4/strnlen.m4: New file.
54616
54617         * m4/strndup.m4: Don't check for strnlen declaration, done in
54618         strnlen.m4.
54619
54620 2005-08-10  Simon Josefsson  <jas@extundo.com>
54621
54622         * lib/strndup.c: Use strnlen.h.
54623
54624         * lib/strnlen.h: New file.
54625
54626 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54627
54628         * README: Typos.
54629
54630 2005-08-02  Simon Josefsson  <jas@extundo.com>
54631
54632         * modules/readline: New file.
54633
54634 2005-08-02  Simon Josefsson  <jas@extundo.com>
54635
54636         * modules/getdelim: New file.
54637
54638         * modules/getline: Rewrite, don't use getndelim2.
54639
54640 2005-08-02  Simon Josefsson  <jas@extundo.com>
54641
54642         * m4/getline.m4: Separate out getdelim stuff into separate module.
54643
54644         * m4/getdelim.m4: New file.
54645
54646 2005-08-02  Simon Josefsson  <jas@extundo.com>
54647
54648         * lib/getline.h, getline.c: Rewrite.
54649
54650         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54651
54652 2005-07-31  Bruno Haible  <bruno@clisp.org>
54653
54654         * lib/lock.h (gl_lock_initializer): New macro.
54655         (gl_lock_define_initialized): Use it.
54656         (gl_rwlock_initializer): New macro.
54657         (gl_rwlock_define_initialized): Use it.
54658         (gl_recursive_lock_initializer): New macro.
54659         (gl_recursive_lock_define_initialized): Use it.
54660
54661 2005-07-30  Karl Berry  <karl@gnu.org>
54662
54663         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54664         Report from Ben Pfaff, regarding getopt.
54665
54666 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54669         normal way.
54670         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54671         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54672         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54673         (gl_GETOPT): Use the new macros.  Most of the implementation
54674         is moved to the new macros.  This is for programs like Emacs
54675         that don't want all the functionality of gl_GETOPT.
54676
54677 2005-07-26  Bruno Haible  <bruno@clisp.org>
54678
54679         * m4/lock.m4: Update from GNU gettext.
54680
54681 2005-07-26  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/lock.h: Update from GNU gettext.
54684         * lib/lock.c: Update from GNU gettext.
54685
54686 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54689         obsolescent AC_TRY_RUN.  Include the default includes files, for
54690         'exit'.
54691
54692 2005-07-24  Bruno Haible  <bruno@clisp.org>
54693
54694         * modules/visibility: New file.
54695         * MODULES.html.sh (Misc): Add visibility.
54696
54697 2005-07-24  Bruno Haible  <bruno@clisp.org>
54698
54699         * m4/visibility.m4: New file.
54700
54701 2005-07-24  Bruno Haible  <bruno@clisp.org>
54702
54703         * doc/visibility.texi: New file.
54704
54705 2005-07-22  Bruno Haible  <bruno@clisp.org>
54706
54707         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54708         $(ALLOCA_H), redundant through BUILT_SOURCES.
54709         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
54710         redundant through BUILT_SOURCES.
54711         * modules/byteswap (Makefile.am): Remove explicit dependency on
54712         $(BYTESWAP_H), redundant through BUILT_SOURCES.
54713         * modules/fnmatch (Makefile.am): Remove explicit dependency on
54714         $(FNMATCH_H), redundant through BUILT_SOURCES.
54715         * modules/getopt (Makefile.am): Remove explicit dependency on
54716         $(GETOPT_H), redundant through BUILT_SOURCES.
54717         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
54718         redundant through BUILT_SOURCES.
54719         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
54720         redundant through BUILT_SOURCES.
54721         * modules/stdbool (Makefile.am): Remove explicit dependency on
54722         $(STDBOOL_H), redundant through BUILT_SOURCES.
54723         * modules/stdint (Makefile.am): Remove explicit dependency on
54724         $(STDINT_H), redundant through BUILT_SOURCES.
54725         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
54726         Remove explicit dependency on $(SYSEXITS_H).
54727         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
54728
54729 2005-07-18  Simon Josefsson  <jas@extundo.com>
54730
54731         * lib/check-version.c (check_version): Accept identical versions too.
54732
54733 2005-07-18  Bruno Haible  <bruno@clisp.org>
54734
54735         * modules/lock: New file.
54736         * MODULES.html.sh (Multithreading): New section.
54737
54738 2005-07-18  Bruno Haible  <bruno@clisp.org>
54739
54740         * m4/lock.m4: New file, from GNU gettext.
54741
54742 2005-07-18  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/lock.h: New file, from GNU gettext.
54745         * lib/lock.c: New file, from GNU gettext.
54746
54747 2005-07-18  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/lock.h (gl_once_t): New type.
54750         (gl_once_define, gl_once): New macros.
54751         * lib/lock.c (fresh_once): New variable.
54752         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
54753         functions.
54754
54755 2005-07-16  Simon Josefsson  <jas@extundo.com>
54756
54757         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
54758         workaround, suggested by Bruno.
54759
54760 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54761
54762         * modules/xalloc (Depends-on): Add xalloc-die.
54763         * modules/xvasprintf (Depends-on): Add xalloc-die.
54764
54765 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54766
54767         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
54768         with a minor change.
54769
54770 2005-07-15  Bruno Haible  <bruno@clisp.org>
54771
54772         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
54773         When using lib/poll.c, define poll as rpl_poll.
54774
54775 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * modules/argp (Depends-on): Remove unlocked-io.
54778
54779 2005-07-14  Derek Price  <derek@ximbiot.com>
54780
54781         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
54782         for glob symlink bug.
54783
54784 2005-07-14  Bruno Haible  <bruno@clisp.org>
54785
54786         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
54787         Instead, test for *_unlocked function declarations directly.
54788
54789 2005-07-11  Simon Josefsson  <jas@extundo.com>
54790
54791         * modules/size_max: New file.
54792
54793         * modules/xsize: Depend on size_max module for size_max.m4.
54794
54795 2005-07-11  Simon Josefsson  <jas@extundo.com>
54796
54797         * lib/size_max.h: New file.
54798
54799 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
54800
54801         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
54802         copyright symbol and the year.
54803         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
54804         (version_etc_va): Use parameterized copyright notice.
54805         Reword to conform to the current GNU coding standards.
54806
54807 2005-07-11  Karl Berry  <karl@gnu.org>
54808
54809         * doc/gnulib.texi (Quoting): new node.
54810         (Initial import): more info, from Patrice.
54811
54812 2005-07-11  Bruno Haible  <bruno@clisp.org>
54813
54814         * gnulib-tool (func_usage): Document option --avoid.
54815         (Command line options): Handle --avoid.
54816         (func_acceptable): New function.
54817         (func_modules_transitive_closure): Use it.
54818
54819 2005-07-11  Bruno Haible  <bruno@clisp.org>
54820
54821         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
54822         Reported by Jim Meyering.
54823
54824 2005-07-10  Bruno Haible  <bruno@clisp.org>
54825
54826         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
54827         Needed when size_t is smaller than 'unsigned int'.
54828         Reported by Paul Eggert.
54829
54830 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54831
54832         * modules/argp (Depends-on): Add unlocked-io
54833
54834 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54835
54836         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
54837         block of defines.
54838
54839 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * config/srclist.txt: Comment out regcomp.c, since we have a porting
54842         fix now.
54843
54844 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
54845         and Paul Eggert  <eggert@cs.ucla.edu>
54846
54847         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
54848         in wint_t, not wchar_t.  Remove now-unnecessary cast.
54849
54850 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54851
54852         * modules/regex (Files): Add lib/regex_internal.c,
54853         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
54854         (Depends-on): Add extensions.
54855         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
54856
54857 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54858
54859         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
54860         pathconf.
54861         * m4/same.m4 (gl_SAME): Likewise.
54862         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
54863
54864         * m4/regex.m4: Adjust to new libc regex implementation.
54865         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
54866         all the .c and .h parts of (the new) regex.
54867         Quote the m4 stuff better.
54868         Check for RE_ICASE bug of old gnulib.
54869         Check for REG_STARTEND of recent libc.
54870         Rename local variables from jm_* to gl_*.
54871         Quote operand of "test -f".
54872         Say "recent enough" version of libc, not "version 2".
54873         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
54874         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
54875         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
54876         Remove check for btowc, isascii.
54877         Require AM_LANGINFO_CODESET.
54878
54879 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54880
54881         * lib/regex.c, regex.h: Sync from libc.
54882         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
54883         * lib/regexec.c:
54884         New files, synced from libc, except that regex_internal.h
54885         currently has a small porting fix.
54886
54887 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54888
54889         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
54890         regex_internal.c, regexec.c.
54891         Add regex_internal.h too, but as a comment, since the libc version
54892         is currently broken in gnulib mode.
54893
54894 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         Support programs like Emacs that use gnulib but not gettext.
54897         * MODULES.html.sh (Internationalization functions): Add gettext-h.
54898         * modules/gettext-h: New file.
54899         * modules/gettext (Files): Remove lib/gettext.h.
54900         (Depends-on): Add gettext-h.
54901         (Makefile.am): Remove lib_SOURCES.
54902         * modules/argmatch, modules/c-stack, modules/closeout:
54903         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
54904         * modules/execute, modules/file-type, modules/getaddrinfo:
54905         * modules/getopt, modules/human, modules/javacomp:
54906         * modules/javaexec, modules/mkdir-p, modules/obstack:
54907         * modules/openat, modules/pagealign_alloc, modules/pipe:
54908         * modules/quotearg, modules/regex, modules/rpmatch:
54909         * modules/unicodeio, modules/userspec, modules/version-etc:
54910         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
54911         * modules/xsetenv:
54912         Depend on gettext-h, not gettext.
54913
54914 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         * gnulib-tool (func_import): Add support for 'public domain' license.
54917         * modules/alloca, modules/atexit, modules/memmove:
54918         Now public domain, not GPL.
54919         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
54920         * modules/realloc, modules/strerror, modules/strtod:
54921         Now LGPL, not GPL.
54922
54923 2005-07-05  Bruno Haible  <bruno@clisp.org>
54924
54925         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
54926         autoconf CVS. Needed for mingw.
54927
54928 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         Remove the dependency of the strftime module on the tzset module.
54931         * modules/strftime (Depends-on): Remove dependency on tzset.
54932
54933 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         Remove the dependency of the strftime module on the tzset module.
54936         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
54937         gl_FUNC_TZSET_CLOBBER.
54938
54939 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
54940
54941         Remove the dependency of the strftime module on the tzset module.
54942         * lib/strftime.c (my_strftime)
54943         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
54944         Copy the input structure, to work around some of the bug with
54945         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
54946         Solaris releases, you should also use the tzset module, but we won't
54947         require it as a dependency any more since we don't want LGPLed code
54948         to depend on GPLed code.
54949
54950 2005-07-02  Jim Meyering  <jim@meyering.net>
54951
54952         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
54953         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
54954         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
54955         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
54956
54957 2005-07-02  Jim Meyering  <jim@meyering.net>
54958
54959         * lib/backupfile.c (backup_args): Change a `0' to NULL.
54960
54961 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
54964         declares only 'struct timespec;' (!).
54965
54966 2005-07-01  Jim Meyering  <jim@meyering.net>
54967
54968         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
54969         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
54970         * lib/save-cwd.c, tempname.c:
54971         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
54972         and don't include <sys/file.h>).
54973
54974 2005-06-29  Jim Meyering  <jim@meyering.net>
54975
54976         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
54977         type name.  Use the variable name instead.
54978         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
54979         Likewise.
54980
54981 2005-06-28  Simon Josefsson  <jas@extundo.com>
54982
54983         * modules/check-version (Files): Add check-version.m4.
54984
54985 2005-06-28  Simon Josefsson  <jas@extundo.com>
54986
54987         * m4/check-version.m4: New file, suggested by Jim Meyering
54988         <jim@meyering.net>.
54989
54990 2005-06-28  Simon Josefsson  <jas@extundo.com>
54991
54992         * lib/check-version.h, lib/check-version.c: New files.
54993
54994 2005-06-28  Simon Josefsson  <jas@extundo.com>
54995
54996         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
54997         collision with global variable.  Better indentation.  Don't
54998         increment buffer pointer beyond buffer end.  Based on comments
54999         from Paul Eggert <eggert@cs.ucla.edu>.
55000
55001         * lib/base64.h: Indent.
55002
55003 2005-06-28  Simon Josefsson  <jas@extundo.com>
55004
55005         * doc/gnulib.texi (Library version handling): New section.
55006
55007 2005-06-28  Jim Meyering  <jim@meyering.net>
55008
55009         * check-module (find_included_lib_files): Hard-code another
55010         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55011         but modules/fts-lgpl (correctly) does not list those files.
55012
55013         * modules/canonicalize (Files): Add lib/pathmax.h.
55014
55015 2005-06-25  Simon Josefsson  <jas@extundo.com>
55016
55017         * modules/check-version: New file.
55018
55019 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55020
55021         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55022         initializer of struct addrinfo, as an indication that we don't
55023         care how many members the structure has.
55024
55025 2005-06-24  Derek Price  <derek@ximbiot.com>
55026         and Bruno Haible  <bruno@clisp.org>
55027
55028         Remove stat module & update lstat.
55029         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55030         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55031         * m4/stat.m4: Remove this file.
55032
55033 2005-06-24  Derek Price  <derek@ximbiot.com>
55034         and Bruno Haible  <bruno@clisp.org>
55035
55036         Remove stat module & update lstat.
55037         * lib/stat.c: Remove this file...
55038         (slash_aware_lstat): ...moving this content and its support...
55039         * lib/lstat.c (rpl_lstat): ...into here.
55040         * lib/lstat.h: New file.
55041
55042 2005-06-24  Derek Price  <derek@ximbiot.com>
55043         and Bruno Haible  <bruno@clisp.org>
55044
55045         Remove stat module & update lstat.
55046         * config/srclist.txt (libc sources): Remove stat.
55047
55048 2005-06-24  Derek Price  <derek@ximbiot.com>
55049         and Bruno Haible  <bruno@clisp.org>
55050
55051         Remove stat module & update lstat.
55052         * MODULES.html.sh (stat): Remove.
55053         * MODULES.html: Regenerated.
55054         * modules/lstat (Description): Correct function name.
55055         (Files): Add "lstat.h".
55056         (Depends-on): Remove stat, add xalloc, stat-macros.
55057         * modules/stat: Remove this file.
55058         (Include): Add "lstat.h", remove <sys/stat.h>.
55059
55060 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55063         (ranged_convert): Don't save conversion in a temporary struct.
55064         This causes a warning with GCC 4.0.0, and anyway in the typical
55065         case it's not worth the extra 100 bytes or so of code.
55066         (ranged_convert, __mktime_internal): When calling a function via a
55067         pointer P, use P () rather than (*P) (), as we now assume C89 or
55068         better.
55069
55070 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55071
55072         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55073         "who -r" failed to give output.  Problem reported by Tim Waugh.
55074
55075         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55076         (xcalloc): Use it to avoid needless tests.
55077         Problem reported by Jim Meyering.
55078
55079 2005-06-20  Derek Price  <derek@ximbiot.com>
55080
55081         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55082         unnecessary for Autoconfs > 2.59c.
55083
55084 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55085
55086         * lib/argp.h (__option_is_short): Check upper limit of
55087         __key. Isprint() requires its argument to have the value
55088         of an unsigned char or EOF.
55089
55090 2005-06-16  Jim Meyering  <jim@meyering.net>
55091
55092         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55093         when either N or S is zero.
55094
55095 2005-06-16  Derek Price  <derek@ximbiot.com>
55096
55097         * m4/bison.m4: Declare YACC & YFLAGS precious.
55098
55099 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55100
55101         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55102         multibyte string or pattern, fall back on unibyte matching.
55103         Problem reported by James Youngman.
55104
55105 2005-06-08  Bruno Haible  <bruno@clisp.org>
55106
55107         * modules/csharpcomp: New file.
55108         * MODULES.html.sh (C#): Add csharpcomp.
55109
55110 2005-06-08  Bruno Haible  <bruno@clisp.org>
55111
55112         * m4/csharpcomp.m4: New file, from GNU gettext.
55113
55114 2005-06-08  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/csharpcomp.h: New file, from GNU gettext.
55117         * lib/csharpcomp.c: New file, from GNU gettext.
55118         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55119
55120 2005-06-08  Bruno Haible  <bruno@clisp.org>
55121
55122         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55123         warning on mingw.
55124
55125 2005-06-07  Derek Price  <derek@ximbiot.com>
55126
55127         Sync from CVS.
55128         * lib/glob_.h: Indent nested #ifdef.
55129
55130 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         Sync from coreutils.
55133         Use "file name" when talking about file names, instead of "filename"
55134         or "path", as per the GNU coding standards.
55135         * lib/mkdir-p.c: Renamed from makepath.c.
55136         (make_dir_parents): Renamed from make_path.  All callers changed.
55137         * lib/mkdir-p.h: Likewise.  All includers changed.
55138         * lib/filenamecat.c: Renamed from path-concat.c.
55139         (file_name_concat): Renamed from path_concat.  All callers changed.
55140         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55141         * lib/filenamecat.h: Likewise.  All includers changed.
55142         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55143         in comments or local variable names.
55144         * lib/basename.c: Likewise.
55145         * lib/canonicalize.c, canonicalize.h: Likewise.
55146         * lib/dirname.c, dirname.h: Likewise.
55147         * lib/euidaccess.c: Likewise.
55148         * lib/exclude.c: Likewise
55149         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55150         * lib/fsusage.c, fsuage.h: Likewise.
55151         * lib/fts.c, fts_.h: Likewise.
55152         * lib/getcwd.c: Likewise.
55153         * lib/getloadavg.c: Likewise.
55154         * lib/mkstemp.c: Likewise.
55155         * lib/mountlist.c, mountlist.h: Likewise.
55156         * lib/openat.c, openat.h: Likewise.
55157         * lib/readlink-stub.c: Likewise.
55158         * lib/readutmp.c, readutmp.h: Likewise.
55159         * lib/rename.c: Likewise.
55160         * lib/rmdir.c: Likewise.
55161         * lib/same.c: Likewise.
55162         * lib/savedir.c: Likewise.
55163         * lib/stripslash.c: Likewise.
55164         * lib/tempname.c: Likewise.
55165         * lib/xreadlink.c: Likewise.
55166         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55167         All uses changed.
55168         * lib/exclude.h: Likewise.
55169
55170         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55171         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55172         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55173         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55174         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55175         files have been getting away with it for years (MORE/BSD 4.3
55176         is extinct now).
55177         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55178         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55179
55180         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55181         Define to 256, not 255, as per modern POSIX.
55182
55183 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55184
55185         Sync from coreutils.
55186         Use "file name" when talking about file names, instead of "filename"
55187         or "path", as per the GNU coding standards.
55188         * MODULES.html.sh: mkdir-p renamed from makepath.
55189         filenamecat renamed from path-concat.
55190         * modules/filenamecat: Renamed from modules/path-concat.
55191         (Files): filenamecat.h and filenamecat.c renamed from
55192         path-concat.h and path-concat.c.
55193         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55194         (Include): filenamecat.h, not path-concat.h.
55195         * modules/mkdir-p: Renamed from modules/makepath.
55196         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55197         makepath.c.
55198         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55199         (Include): mkdir-p.h, not makepath.h.
55200
55201 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55202
55203         Sync from coreutils.
55204         * m4/mkdir-p.m4: Renamed from makepath.m4.
55205         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55206         Rename files from makepath.c to mkdir-p.c, and from
55207         makepath.h to mkdir-p.h.
55208         * m4/filenamecat.m4: Renamed from path-concat.m4.
55209         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55210         Rename files from path-concat.c to filenamecat.c,
55211         and from path-concat.h to filenamecat.h.
55212         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55213         "file name" in local variables or comments.
55214         * m4/rename.m4: Likewise.
55215
55216 2005-06-01  Bruno Haible  <bruno@clisp.org>
55217
55218         * modules/csharpexec: New file.
55219         * MODULES.html.sh (C#): New section.
55220
55221 2005-06-01  Bruno Haible  <bruno@clisp.org>
55222
55223         * m4/csharp.m4: New file, from GNU gettext.
55224         * m4/csharpexec.m4: New file, from GNU gettext.
55225
55226 2005-06-01  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/csharpexec.h: New file, from GNU gettext.
55229         * lib/csharpexec.c: New file, from GNU gettext.
55230         * lib/csharpexec.sh.in: New file, from GNU gettext.
55231
55232 2005-05-31  Derek Price  <derek@ximbiot.com>
55233             Paul Eggert  <eggert@cs.ucla.edu>
55234
55235         Sync from cvs.
55236         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55237
55238 2005-05-31  Derek Price  <derek@ximbiot.com>
55239             Paul Eggert  <eggert@cs.ucla.edu>
55240
55241         Sync from cvs.
55242         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55243
55244 2005-05-29  Derek Price  <derek@ximbiot.com>
55245
55246         * config/srclist.txt (glob_.h, glob.c): Add these files.
55247
55248 2005-05-29  Derek Price  <derek@ximbiot.com>
55249
55250         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55251         * modules/glob: New file.
55252         * modules/getlogin_r: Add link to POSIX spec in description.
55253
55254 2005-05-29  Derek Price  <derek@ximbiot.com>
55255             Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * m4/glob.m4: New file.
55258
55259 2005-05-29  Derek Price  <derek@ximbiot.com>
55260             Paul Eggert  <eggert@cs.ucla.edu>
55261
55262         * lib/glob_.h, lib/glob.c: New files.
55263
55264 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55265
55266         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55267         * modules/fts-lgpl (Depends-on): Remove gettext.
55268
55269 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55272         and don't require gt_INTTYPES_PRI.
55273
55274 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55275
55276         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55277
55278         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55279         the configuration hassle isn't worth it.
55280         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55281         (LONGEST_MODIFIER, PRIuMAX): Remove.
55282
55283 2005-05-27  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55286
55287 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55290         _POSIX_PTHREAD_SEMANTICS for Solaris.
55291
55292 2005-05-25  Derek Price  <derek@ximbiot.com>
55293
55294         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55295
55296 2005-05-25  Derek Price  <derek@ximbiot.com>
55297             Paul Eggert  <eggert@cs.ucla.edu>
55298
55299         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55300         * lib/getlogin_r.c, getlogin_r.h: New files.
55301
55302 2005-05-25  Bruno Haible  <bruno@clisp.org>
55303             Derek Price  <derek@ximbiot.com>
55304
55305         * lib/getlogin_r.h: Simplify API documentation.
55306
55307 2005-05-23  Derek Price  <derek@ximbiot.com>
55308
55309         * modules/minmax (Files): Add m4/minmax.m4.
55310         (configure.ac): Add gl_MINMAX.
55311
55312 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55315         so that unistd-safer.h (GPL'ed code) need not be included.
55316
55317 2005-05-22  Bruno Haible  <bruno@clisp.org>
55318
55319         * m4/minmax.m4: New file.
55320         Based on a patch by Derek Price <derek@ximbiot.com>.
55321
55322 2005-05-22  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55325         (INT64_MIN): Fix definition.
55326         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55327
55328         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55329         NEED_SIGNED_INT_TYPES.
55330
55331         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55332         HAVE_SYSTEM_INTTYPES.
55333
55334 2005-05-22  Bruno Haible  <bruno@clisp.org>
55335
55336         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55337         Also include <sys/param.h> if it defines MIN, MAX.
55338         Based on a patch by Derek Price <derek@ximbiot.com>.
55339
55340 2005-05-21  Jim Meyering  <jim@meyering.net>
55341
55342         * modules/fts (Files): Add m4/inttypes-pri.m4.
55343         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55344
55345 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55346
55347         New fts module.
55348         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55349         (setup_dir, free_dir): New functions.
55350         (enter_dir, leave_dir): Define trivial
55351         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55352         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55353         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55354         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55355         Move to fts-cycle.c.
55356         (fts_open): Use setup_dir.
55357         (fts_close): Use free_dir.
55358         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55359         This adds a label and some gotos, but the alternatives were messier.
55360         Check for memory allocation failure when entering a dir.
55361         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55362         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55363         (FTS): New member fts_cycle, that is a union that contains the
55364         old active_dir_ht and cycle_state.  All uses changed to mention
55365         fts_cycle.ht and fts_cycle.state.
55366         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55367         fts.c, with the following changes:
55368         (setup_dir, free_dir): New functions.
55369         (enter_dir): Now returns bool.  Return true if successful, false
55370         if memory exhausted.  All callers changed.
55371         Do not bother partly cleaning up on
55372         memory allocation failure; that is free_dir's job.
55373         However, free ad if hash_insert fails, to avoid memory leak.
55374         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55375         fts->fts_options to see which union member to use.
55376
55377 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55380         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55381
55382 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55385
55386 2005-05-20  Jim Meyering  <jim@meyering.net>
55387
55388         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55389         Now a macro, to pacify GCC.
55390
55391 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55392
55393         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55394         of -1.
55395
55396 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55397
55398         * lib/chown.c (rpl_chown): Return -1 on failure.
55399
55400 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55401
55402         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55403         Don't check for stddef.h.
55404         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55405         don't use its results.
55406         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55407         since we include them unconditionally.  Don't require
55408         AM_STDBOOL_H, since stdbool is a prerequisite.
55409         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55410         since we assume C89 or better.
55411         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55412         as we don't use their results.
55413         Don't check for fchdir, memmove, memset, strrchr, as we use
55414         them unconditionally.
55415         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55416         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55417
55418 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55419
55420         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55421         Include <stddef.h> unconditionally, since we assume C89 now.
55422         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55423         * lib/fts.c: Include fts_.h first, to check interface.
55424         Do not include intprops.h; no longer needed.
55425         Include cycle-check.h and hash.h, since fts_.h no longer does.
55426         Remove unnecessary casts of closedir to void.
55427         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55428         decide whether to decrement nlinks.
55429         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55430         (FTS): Use struct hash_table * instead of Hash_table, so that
55431         we no longer need to include hash.h here.
55432
55433 2005-05-18  Jim Meyering  <jim@meyering.net>
55434
55435         * modules/dirfd (License): Change to LGPL.  Most of the code
55436         is already in the public domain.
55437
55438 2005-05-18  Jim Meyering  <jim@meyering.net>
55439
55440         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55441         Reported by Yoann Vandoorselaere.
55442
55443 2005-05-17  Jim Meyering  <jim@meyering.net>
55444
55445         * m4/fts.m4: New file, from coreutils.
55446
55447 2005-05-17  Jim Meyering  <jim@meyering.net>
55448
55449         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55450
55451 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55452
55453         Sync from coreutils.
55454         * m4/unlinkdir.m4: New file.
55455
55456 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         Sync from coreutils.
55459         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55460         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55461         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55462         White space changes only.
55463         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55464         special.
55465         * lib/yesno.c: Include getline.h, not ctype.h.
55466         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55467         Use getline to remove arbitrary restriction on response length.
55468
55469 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55470
55471         * config/srclist-update: Spell out "Street" in FSF postal
55472         mail address; this is the style the FSF seems to prefer.
55473
55474         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55475         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55476         this updates FSF postal mail address.
55477
55478         Sync from coreutils.
55479         * modules/unlinkdir: New file.
55480         * modules/yesno (Depends-on): Add getline.
55481         * MODULES.html.sh (File system functions): Add unlinkdir.
55482
55483 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55484
55485         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55486         lib/strsep.h:
55487         Change the initial comment to refer to GPL, not LGPL.
55488         gnulib-tool will change it to LGPL as needed.
55489
55490         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55491         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55492         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55493         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55494         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55495         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55496         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55497         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55498         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55499         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55500         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55501         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55502         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55503         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55504         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55505         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55506         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55507         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55508         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55509         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55510         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55511         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55512         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55513         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55514         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55515         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55516         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55517         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55518         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55519         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55520         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55521         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55522         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55523         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55524         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55525         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55526         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55527         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55528         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55529         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55530         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55531         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55532         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55533         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55534         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55535         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55536         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55537         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55538         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55539         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55540         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55541         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55542         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55543         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55544         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55545         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55546         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55547         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55548         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55549         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55550         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55551         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55552         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55553         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55554         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55555         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55556         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55557         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55558         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55559         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55560         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55561         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55562         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55563         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55564         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55565         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55566         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55567         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55568         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55569         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55570         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55571         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55572         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55573         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55574         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55575         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55576         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55577         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55578         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55579         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55580         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55581         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55582         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55583         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55584         lib/yesno.c, lib/yesno.h:
55585         Update FSF postal mail address.
55586
55587 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55590         tests/test-memmem.c, tests/test-stpncpy.c:
55591         Update FSF postal mail address.
55592
55593 2005-05-13  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55596         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55597         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55598         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55599         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55600         Add support for 64-bit integers in the MSVC compiler.
55601
55602 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55603
55604         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55605
55606 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55607
55608         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55609
55610 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55611
55612         * doc/getdate.texi (General date syntax): Don't say that date
55613         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55614         Problem reported by Nic Ferrier.
55615
55616 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55617
55618         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
55619         specified in ai_socktype. Fix invalid ai_protocol
55620         check. ai_protocol is usually set to 0 or depending on
55621         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
55622         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
55623         ai_socktype / ai_protocol in the returned addrinfo structure.
55624
55625 2005-05-10  Simon Josefsson  <jas@extundo.com>
55626
55627         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
55628         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55629
55630 2005-05-10  Karl Berry  <karl@gnu.org>
55631
55632         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
55633         (from http://www.gnu.org/licenses).
55634         * doc/COPYING.LIB: also rename to COPYING.LESSER.
55635         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
55636         fdl.texi suffices.
55637
55638 2005-05-10  Karl Berry  <karl@gnu.org>
55639
55640         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55641         (COPYING.DOC): remove.
55642
55643         * config/srclist-update: new FSF address.
55644
55645 2005-05-10  Derek Price  <derek@ximbiot.com>
55646
55647         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55648         possible.
55649
55650 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55651             Bruno Haible  <bruno@clisp.org>
55652
55653         * modules/inet_ntop: New file.
55654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55655         inet_ntop.
55656
55657 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55658             Bruno Haible  <bruno@clisp.org>
55659
55660         * m4/inet_ntop.m4: New file.
55661
55662 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55663             Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/inet_ntop.h: New file.
55666         * lib/inet_ntop.c: New file, from glibc with modifications.
55667
55668 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55669
55670         * modules/time_r (License): Change to LGPL.
55671         * modules/extensions (License): Change to LGPL.  Actually,
55672         the license is more permissive than that, but currently gnulib-tool
55673         doesn't know how to handle more-permissive licenses.
55674
55675         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55676         Problem reported by Dave Love.
55677
55678 2005-05-08  Jim Meyering  <jim@meyering.net>
55679
55680         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55681         blank.
55682
55683 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         * modules/argmatch (Depends-on): Add stdbool.
55686         * modules/backupfile (Depends-on): Likewise.
55687         * modules/chdir-long (Depends-on): Likewise.
55688         * modules/closeout (Depends-on): Likewise.
55689         * modules/cycle-check (Depends-on): Likewise.
55690         * modules/dirname (Depends-on): Likewise.
55691         * modules/fnmatch (Depends-on): Likewise.
55692         * modules/fsusage (Depends-on): Likewise.
55693         * modules/fwriteerror (Depends-on): Likewise.
55694         * modules/getcwd (Depends-on): Likewise.
55695         * modules/getloadavg (Depends-on): Likewise.
55696         * modules/hard-locale (Depends-on): Likewise.
55697         * modules/makepath (Depends-on): Likewise.
55698         * modules/mountlist (Depends-on): Likewise.
55699         * modules/nanosleep (Depends-on): Likewise.
55700         * modules/posixtm (Depends-on): Likewise.
55701         * modules/quotearg (Depends-on): Likewise.
55702         * modules/readtokens (Depends-on): Likewise.
55703         * modules/readtokens0 (Depends-on): Likewise.
55704         * modules/readutmp (Depends-on): Likewise.
55705         * modules/save-cwd (Depends-on): Likewise.
55706         * modules/strftime (Depends-on): Likewise.
55707         * modules/userspec (Depends-on): Likewise.
55708         * modules/utimecmp (Depends-on): Likewise.
55709         * modules/xgetcwd (Depends-on): Likewise.
55710         * modules/xnanosleep (Depends-on): Likewise.
55711         * modules/xstrtod (Depends-on): Likewise.
55712         * modules/yesno (Depends-on): Likewise.
55713
55714 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55715
55716         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
55717         needless checks.
55718
55719 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55720
55721         Merge from coreutils.  Among other things,
55722         add bulletproofing for cases where stdin, stdout, or stderr are closed.
55723         * lib/fd-safer.c: New file.
55724         * lib/fcntl-safer.h, open-safer.c: Remove.
55725         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
55726         * lib/dup-safer.c: Include unistd-safer.h first.
55727         Don't include errno.h.
55728         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
55729         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
55730         * lib/file-type.c: Rely on file-type.h change.
55731         * lib/getloadavg.c: Include unistd-safer.h.
55732         (getloadavg): Use safer open.
55733         * lib/getusershell.c: Include "stdio-safer.h".
55734         (getusershell): Use safer fopen.
55735         * lib/long-options.c (long_options): Use NULL rather than 0.
55736         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
55737         'free'.
55738         * lib/modechange.c: Likewise.
55739         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
55740         (MODE_DONE): New constant.
55741         (struct mode_change): Remove 'next' member.
55742         (make_node_op_equals): New function; like the old one of the
55743         same name, except it allocates an array.
55744         (mode_compile, mode_create_from_ref): Use it.
55745         (mode_compile): Allocate result as an array, not a linked list.
55746         Parse octal string ourself, so that we catch mistakes like "+0".
55747         (mode_adjust): Arg is an array, not a linked list.
55748         * lib/modechange.c: Include stat-macros.h, xalloc.h.
55749         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
55750         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
55751         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
55752         Remove.  This is now stat-macros.h's job.
55753         (talloc): Remove.  All callers replaced by xalloc, so that
55754         our invokers don't have to worry about reporting memory failures.
55755         (make_node_op_equals): Remove.
55756         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55757         New constants.
55758         (struct mode_change): Moved here from modechange.h.
55759         (mode_append_entry): Remove.
55760         (mode_compile): Remove MASKED_OPS arg, since it encouraged
55761         apps to have incorrect behavior.  Use simpler algorithm for head
55762         and tail.  Don't futz with umask; that's now the job of mode_adjust.
55763         Detect more invalid usages rather than having somewhat-random behavior.
55764         Don't insert an "a=" action, as that leads to incorrect behavior.
55765         (mode_compile, mode_create_from_ref): Return NULL on error instead
55766         of an enum, since now there's only one way to have an error.  All
55767         callers changed.
55768         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
55769         at the correct time.  Simplify calculation of "+u" and its ilk.
55770         Don't mishandle "+X".
55771         (mode_free): Remove "register" and localize decls.
55772         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55773         (struct mode_change): Move to modechange.c; callers don't
55774         need to see this stuff.
55775         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
55776         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
55777         (mode_change, mode_adjust): Reflect the new signatures noted above.
55778         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
55779         that might redefine system include files.
55780         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
55781         (my_usleep): Use NULL rather than (void *) 0.
55782         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
55783         Use siginterrupt to specify that system calls should be interrupted.
55784         (rpl_nanosleep): Move initialization of suspended closer to call of
55785         my_usleep.
55786         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
55787         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
55788         (desirable_utmp_entry): New function.
55789         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
55790         using x2nrealloc, to simplify logic.
55791         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
55792         size calculation.  Do not assume utmp file is a regular file.
55793         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
55794         (READ_UTMP_CHECK_PIDS): New constant.
55795         * lib/save-cwd.c: Include unistd-safer.h.
55796         (save_cwd): Use fd_safer.
55797         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
55798         [!_LIBC] Include "stat-macros.h" instead.
55799         * lib/unistd-safer.h (fd_safer): New decl.
55800
55801 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55802
55803         * modules/getloadavg (Depends-on): Add unistd-safer.
55804         * modules/getusershell (Depends-on): Add stdio-safer.
55805         * modules/lstat (Depends-on): Remove xalloc.
55806         * modules/mkstemp (Depends-on): Add stat-macros.
55807         * modules/modechange (Depends-on): Remove xstrtol.
55808         Add stat-macros, xalloc.
55809         * modules/save-cwd (Depends-on): Add unistd-safer.
55810         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
55811         * modules/unistd-safer (Files): Add lib/fd-safer.c
55812         (Makefile.am): Remove lib_SOURCES.
55813
55814         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
55815         Remove fcntl-safer; unistd-safer supersedes it.
55816
55817 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55818
55819         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
55820         AC_HEADER_STAT.
55821         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
55822         (gl_PREREQ_CHOWN): Remove.
55823         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
55824         it.  Don't require AC_HEADER_STAT.
55825         (gl_PREREQ_LSTAT): Remove.
55826         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
55827         Don't require AC_HEADER_STAT.
55828         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
55829         (gl_PREREQ_RMDIR): Remove.
55830         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
55831         mention stat-macros.h or AC_HEADER_STAT, since we'll make
55832         the stat-macros module a prerequisite.
55833         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
55834         * m4/filemode.m4 (gl_FILEMODE): Likewise.
55835         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
55836         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
55837         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
55838         variable names.
55839         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
55840         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
55841         variable prefixes.
55842         * m4/fcntl-safer.m4: Remove.
55843         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
55844         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
55845         Invoke gl_PREREQ_FD_SAFER.
55846         (gl_PREREQ_FD_SAFER): New macro.
55847         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
55848         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
55849         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
55850         Remove duplicate call to AC_LIBOBJ(readutmp).
55851         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
55852
55853         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
55854         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
55855
55856 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55857
55858         * MODULES.html.sh (Misc): Add byteswap.
55859
55860 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55861
55862         * modules/getcwd (Depends-on): Add extensions.
55863         * modules/openat (Depends-on): Likewise.
55864
55865 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55866
55867         * modules/byteswap: New file.
55868
55869 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55870
55871         * m4/byteswap.m4: New file.
55872
55873 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55874
55875         * lib/byteswap_.h: New file.
55876
55877 2005-04-25  Karl Berry  <karl@gnu.org>
55878
55879         * m4/gettext.m4: Update from GNU gettext 0.14.4.
55880
55881 2005-04-25  Albert Chin  <china@thewrittenword.com>
55882
55883         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
55884         Toolkit C bug.
55885
55886 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
55887
55888         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
55889         (func_ln_if_changed) Remove forcibly for no error message
55890         in case file does not exist.
55891
55892 2005-04-19  Simon Josefsson  <jas@extundo.com>
55893
55894         * gnulib-tool (Options): Make --symlink mean --symbolic.
55895
55896 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
55897
55898         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
55899
55900 2005-04-16  Simon Josefsson  <jas@extundo.com>
55901
55902         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
55903
55904 2005-04-15  Simon Josefsson  <jas@extundo.com>
55905
55906         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
55907
55908 2005-04-15  Simon Josefsson  <jas@extundo.com>
55909
55910         * gnulib-tool: Rename --symlink to --symbolic.
55911
55912 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
55913
55914         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
55915         symbolic links to files instead of copying/moving.  Add --aux-dir,
55916         specifying directory relative --dir where auxiliary build tools
55917         are placed.
55918
55919 2005-04-14  Bruno Haible  <bruno@clisp.org>
55920
55921         * modules/allocsa (License): Change to LGPL.
55922         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55923
55924 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
55925
55926         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
55927         that "UTC +1 second" continues to work.  Problem reported
55928         by Dmitry V. Levin.
55929         (relunit_snumber): New rule.
55930         (relunit): Use it.
55931
55932 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         * lib/getdate.y (universal_time_zone_table): New constant.
55935         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
55936         universal_time_zone_table.
55937         (lookup_zone): Prefer universal_time_zone_table to
55938         local_time_zone_table, so that "GMT" time stamps are allowed in
55939         London during the summer.  Problem reported by Ian Abbott.
55940
55941 2005-04-12  Jim Meyering  <jim@meyering.net>
55942
55943         * lib/human.c (humblock): Set *options even when returning due to
55944         xstrtoumax conversion failure.  Thanks to a used-uninitialized
55945         warning from gcc-4.
55946
55947 2005-04-09  Jim Meyering  <jim@meyering.net>
55948
55949         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
55950         -Wuninitialized: initialize tm0.tm_year.
55951
55952 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
55955         count, since there's no maximum.  All uses changed.
55956         Add member dsts_seen.
55957         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
55958         not being INT_MAX.
55959         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
55960         Use pc_rels_seen to decide whther a date is absolute.
55961
55962         * lib/getdate.y (number): Don't overwrite year.
55963         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
55964         check.
55965
55966 2005-04-02  Simon Josefsson  <jas@extundo.com>
55967
55968         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
55969         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
55970
55971 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
55972
55973         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
55974         where no absolute path name can be longer than PATH_MAX.
55975
55976 2005-03-27  Jim Meyering  <jim@meyering.net>
55977
55978         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
55979
55980 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
55981
55982         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
55983         "one's complement" -> "ones' complement" in comment, as per Knuth.
55984         "value of type" -> "type or expression" in comment.
55985         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
55986
55987 2005-03-26  Jim Meyering  <jim@meyering.net>
55988
55989         Comment nits.
55990         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
55991         Correct typos: s/or/of/.
55992
55993 2005-03-26  Jim Meyering  <jim@meyering.net>
55994
55995         * modules/check-include-files: Move to ../ and rename to...
55996         * check-module: ...this.
55997
55998 2005-03-25  Jim Meyering  <jim@meyering.net>
55999
56000         * modules/xvasprintf (Files): Add xalloc.h.
56001
56002 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56003
56004         * modules/gettext (Files): config/config.rpath ->
56005         build-aux/config.rpath
56006         * modules/iconv (Files): Likewise.
56007         Problem reported by Oskar Liljeblad.
56008
56009 2005-03-23  Jim Meyering  <jim@meyering.net>
56010
56011         * modules/check-include-files: New script to check for
56012         missing dependencies, multiple includes, etc.
56013
56014         * modules/c-strtold (Depends-on): Add xalloc.
56015         * modules/c-strtod (Depends-on): Add xalloc.
56016         * modules/hash (Depends-on): Add xalloc.
56017         (Files): Remove lib/xalloc.h.
56018
56019         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56020         * modules/userspec (Files): Add lib/inttostr.h.
56021
56022 2005-03-23  Jim Meyering  <jim@meyering.net>
56023
56024         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56025
56026 2005-03-22  Jim Meyering  <jim@meyering.net>
56027
56028         * modules/stat-macros: New module.
56029         * modules/canonicalize, modules/euidaccess, modules/file-type,
56030         * modules/filemode, modules/lchown, modules/makepath,
56031         * modules/rmdir, modules/stat: Depend on new stat-macros module
56032         rather than listing lib/stat-macros.h manually.
56033         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56034
56035 2005-03-22  Jim Meyering  <jim@meyering.net>
56036
56037         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56038
56039 2005-03-22  Bruno Haible  <bruno@clisp.org>
56040
56041         * config/srclist.txt: Replace target directory 'config' with
56042         'build-aux'.
56043         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56044         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56045         ../build-aux/.
56046
56047 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56048
56049         * modules/chdir-long (Depends-on): Add mempcpy.
56050
56051         * modules/acl, modules/backupfile, modules/c-strtod,
56052         modules/c-strtold, modules/canon-host, modules/canonicalize,
56053         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56054         modules/exclude, modules/exitfail, modules/file-type,
56055         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56056         modules/getdate, modules/getline, modules/getpagesize,
56057         modules/getpass, modules/getugroups, modules/group-member,
56058         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56059         modules/inttostr, modules/long-options, modules/makepath,
56060         modules/md5, modules/memcasecmp, modules/memcoll,
56061         modules/modechange, modules/mountlist, modules/path-concat,
56062         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56063         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56064         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56065         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56066         modules/strftime, modules/strndup, modules/strverscmp,
56067         modules/timespec, modules/unlocked-io, modules/userspec,
56068         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56069         modules/yesno:
56070         Remove lib_SOURCES line from Makefile.am section, as this is now
56071         done automatically by the corresponding Autoconf macro.
56072
56073 2005-03-21  Jim Meyering  <jim@meyering.net>
56074
56075         Changes imported from coreutils.
56076
56077         * lib/cycle-check.c: Don't include xalloc.h.
56078
56079         * lib/path-concat.c: Don't include assert.h.
56080         (path_concat): Remove assertion that would have triggered
56081         for ABASE starting with more than one slash.
56082         Reported by Andreas Schwab.
56083
56084         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56085         properly when ABASE is an absolute file name.
56086         Correct the description of this function.
56087         Include <assert.h>.
56088         Add an assertion and a test driver.
56089         This fixes a bug introduced on 2004-07-02.
56090         Andreas Schwab reported the resulting failure of cp --parents:
56091         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56092
56093 2005-03-21  Jim Meyering  <jim@meyering.net>
56094
56095         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56096         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56097
56098 2005-03-21  Jim Meyering  <jim@meyering.net>
56099         and  Paul Eggert  <eggert@cs.ucla.edu>
56100
56101         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56102         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56103         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56104         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56105         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56106         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56107         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56108         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56109         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56110         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56111         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56112         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56113         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56114         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56115         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56116         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56117         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56118         for these modules.
56119
56120 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56121
56122         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56123         (which shouldn't happen), generate nothing instead of returning 0
56124         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56125
56126 2005-03-16  Bruno Haible  <bruno@clisp.org>
56127
56128         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56129         HAVE_LONGLONG_64BIT.
56130
56131 2005-03-16  Bruno Haible  <bruno@clisp.org>
56132
56133         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56134         HAVE_LONGLONG_64BIT.
56135
56136 2005-03-16  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56139         HAVE_LONGLONG_64BIT.
56140
56141 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56142
56143         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56144         reliably distinguish strftime failure from empty output on POSIX
56145         hosts.
56146
56147 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56150         (iconv_string): Don't guess a size-zero buffer, as that might cause
56151         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56152         result would be 'too large', where 'too large' is (heuristically)
56153         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56154         overflow concerns.  This will prevent some unwanted malloc failures
56155         when the inputs are very large.
56156
56157 2005-03-15  Karl Berry  <karl@gnu.org>
56158
56159         * config/srclist.txt (config.rpath): from gettext.
56160         * config/config.rpath: update.
56161
56162 2005-03-15  Bruno Haible  <bruno@clisp.org>
56163
56164         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56165         to 'negate'.
56166
56167         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56168         variable.
56169
56170         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56171         results.
56172
56173 2005-03-14  Simon Josefsson  <jas@extundo.com>
56174
56175         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56176         <fx@gnu.org>.
56177
56178 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56179
56180         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56181         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56182         intprops.h.
56183         * lib/strtol.c: Likewise.
56184
56185 2005-03-14  Jim Meyering  <jim@meyering.net>
56186
56187         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56188         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56189         to be nonzero so that we (and caller) can detect the difference
56190         between a valid zero-length expansion and an error return, even
56191         when the underlying strftime fails before writing anything into
56192         that location.
56193
56194 2005-03-14  Bruno Haible  <bruno@clisp.org>
56195
56196         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56197         Update from GNU gettext 0.14.3.
56198
56199 2005-03-10  Jim Meyering  <jim@meyering.net>
56200
56201         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56202
56203 2005-03-10  Jim Meyering  <jim@meyering.net>
56204
56205         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56206         so that this module works on systems without fchdir.
56207
56208 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         Factor int-properties macros into a single file, except for
56211         glibc-related files.
56212         * lib/intprops.h: New file.
56213         * lib/getloadavg.c: Include it instead of limits.h.
56214         (INT_STRLEN_BOUND): Remove.
56215         * lib/human.c: Include intprops.h.
56216         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56217         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56218         302/1000.
56219         * lib/inttostr.h: Include intprops.h instead of limits.h.
56220         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56221         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56222         for consistency with intprops.h.
56223         (time_t_is_integer, twos_complement_arithmetic): Use them.
56224         * lib/sig2str.h: Include <signal.h>, intprops.h.
56225         (INT_STRLEN_BOUND): Remove.
56226         * lib/strftime.c (TYPE_SIGNED): Remove.
56227         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56228         * lib/strtol.c: Adjust comments to match intprops.h.
56229         * lib/userspec.c: Include intprops.h.
56230         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56231         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56232         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56233         instead of rolling our own expressions.
56234         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56235
56236         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56237         instead of int.
56238         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56239         the right thing even if adding 1900 would overflow.  Similarly
56240         for tm_mon + 1 and tm_yday + 1.
56241         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56242         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56243         (DO_SIGNED_NUMBER): New macro.
56244         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56245
56246 2005-03-07  Bruno Haible  <bruno@clisp.org>
56247
56248         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56249
56250 2005-03-07  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56253
56254 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56255
56256         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56257         (func_import): Only replace files via --import when they have actually
56258         changed.
56259
56260 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56261
56262         * m4/mmap-anon.m4: New file.
56263         * m4/pagealign_alloc.m4: New file.
56264
56265 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56266             Bruno Haible  <bruno@clisp.org>
56267
56268         * modules/pagealign_alloc: New file.
56269         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56270
56271 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56272             Bruno Haible  <bruno@clisp.org>
56273
56274         * lib/pagealign_alloc.h: New file.
56275         * lib/pagealign_alloc.c: New file.
56276
56277 2005-03-03  Bruno Haible  <bruno@clisp.org>
56278
56279         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56280         Use an all-permissive copyright notice, recommended by RMS.
56281
56282 2005-03-02  Bruno Haible  <bruno@clisp.org>
56283
56284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56285         of AIX, the replacement has to be done only after <string.h> is
56286         included, therefore not in config.h. stpncpy.h does the replacement,
56287         and stpncpy.c uses it.
56288
56289 2005-03-02  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56292         stpncpy.c uses it.
56293
56294 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56295
56296         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56297         The workaround isn't strictly needed for POSIX conformance, and
56298         it's too much of a pain to configure and maintain.  We'll ask
56299         people to fix their kernels instead.
56300         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56301         (NANOSLEEP_BUG_WORKAROUND): Remove.
56302         (xnanosleep): Remove the workaround.
56303
56304 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56305
56306         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56307         Reported by Derek Price.
56308         (Include): Add "timespec.h".
56309
56310         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56311
56312 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56315         to detect nanosleep bug.
56316
56317 2005-03-01  Bruno Haible  <bruno@clisp.org>
56318
56319         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56320
56321 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * modules/gethrxtime: New file.
56324         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56325         (Depends-on): Add gethrxtime.
56326         (configure.ac): Add gl_XNANOSLEEP.
56327         (Makefile.am): Remove lib_SOURCES line.
56328
56329 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56332         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56333
56334 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56335
56336         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56337         * lib/timespec.h (gettime): Return void, since it always
56338         succeeds now.  All uses changed.
56339         * lib/gettime.c (gettime) Likewise.
56340         [HAVE_NANOTIME]: Prefer nanotime.
56341         Assume gettimeofday succeeds, as POSIX requires.
56342         Assime time () succeeds, since other code already does.
56343         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56344         (timespec_subtract): Remove.
56345         (NANOSLEEP_BUG_WORKAROUND): New constant.
56346         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56347         things considerably.  Use it only on GNU/Linux hosts, since the
56348         workaround shouldn't be needed elsewhere.
56349
56350 2005-02-24  Bruno Haible  <bruno@clisp.org>
56351
56352         * modules/gettext (Files): Add m4/glibc2.m4.
56353
56354 2005-02-24  Bruno Haible  <bruno@clisp.org>
56355
56356         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56357         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56358         * m4/progtest.m4:
56359         Update from GNU gettext 0.14.2.
56360         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56361
56362 2005-02-24  Bruno Haible  <bruno@clisp.org>
56363
56364         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56365         * lib/config.charset: Update from GNU gettext 0.14.2.
56366
56367 2005-02-24  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/gettext.h: Update from GNU gettext 0.14.2.
56370
56371 2005-02-23  Simon Josefsson  <jas@extundo.com>
56372
56373         * m4/iconvme.m4: New file.
56374
56375 2005-02-23  Jim Meyering  <jim@meyering.net>
56376
56377         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56378         change.
56379         Thanks to Bruno Haible for catching it.
56380
56381 2005-02-22  Simon Josefsson  <jas@extundo.com>
56382
56383         * modules/iconvme: New file.
56384
56385         * MODULES.html.sh: Add iconvme.
56386
56387 2005-02-22  Simon Josefsson  <jas@extundo.com>
56388
56389         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56390
56391 2005-02-22  Simon Josefsson  <jas@extundo.com>
56392
56393         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56394
56395 2005-02-22  Jim Meyering  <jim@meyering.net>
56396
56397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56398         s/ifndef/ifdef/.
56399
56400 2005-02-20  Neil Conway  <neilc@samurai.com>
56401
56402         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56403         returned by OSX/Darwin if the specified buffer is not large
56404         enough for the hostname.
56405
56406 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56407
56408         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56409         pass it to _help, otherwise the latter coredumps trying to
56410         dereference state.root_argp.
56411
56412 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56413
56414         * modules/chdir-long (Depends-on): Add memrchr.
56415         * modules/memrchr (Files): Add lib/memrchr.h.
56416         (Include): "memrchr.h".
56417
56418 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56421
56422 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * lib/memrchr.h: New file.
56425         * lib/chdir-long.c: Include it.
56426         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56427         Don't bother including stddef.h.
56428
56429 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56430
56431         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56432         inclusion.
56433         Include <sys/types.h>, for dev_t.
56434         (ME_DUMMY, ME_REMOTE): Move from here....
56435         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56436         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56437         Dmitry V. Levin.
56438         Include mountlist.h first, to test the interface.
56439
56440 2005-01-29  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/progname.c (program_name): Initialize.
56443         Needed when linking statically on MacOS X.
56444
56445 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56446
56447         Sync from coreutils.
56448         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56449         (Depends-on): Add c-strtod.
56450         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56451
56452 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56453
56454         Sync from coreutils.
56455         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56456
56457         Remove files that are specific to coreutils.
56458         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56459
56460 2005-01-28  Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/javacomp: New file.
56463         * MODULES.html.sh (Java): Add javacomp.
56464
56465 2005-01-28  Bruno Haible  <bruno@clisp.org>
56466
56467         * m4/javacomp.m4: New file, from GNU gettext.
56468
56469 2005-01-28  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/javacomp.sh.in: New file, from GNU gettext.
56472         * lib/javacomp.h: New file, from GNU gettext.
56473         * lib/javacomp.c: New file, from GNU gettext.
56474
56475 2005-01-26  Simon Josefsson  <jas@extundo.com>
56476
56477         * lib/gai_strerror.c: Use GPL in header.
56478
56479 2005-01-26  Bruno Haible  <bruno@clisp.org>
56480
56481         * modules/javaexec: New file.
56482         * MODULES.html.sh (Java): Add javaexec.
56483
56484 2005-01-26  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/javaexec.m4: New file, from GNU gettext.
56487
56488 2005-01-26  Bruno Haible  <bruno@clisp.org>
56489
56490         * lib/javaexec.sh.in: New file, from GNU gettext.
56491         * lib/javaexec.h: New file, from GNU gettext.
56492         * lib/javaexec.c: New file, from GNU gettext.
56493
56494 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56495
56496         * modules/lchown (Depends-on): Remove lchown.h
56497
56498 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56499
56500         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56501         must be defined if the header file was not found, in order
56502         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56503
56504 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56505
56506         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56507         initializers for struct pentry_state.
56508         (__argp_error): Check return value of __asprintf
56509         (__argp_failure): Translate error message
56510
56511         * lib/argp-parse.c: Removed braces around the expansion of N_()
56512
56513 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56514
56515         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56516         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56517         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56518         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56519         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56520         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56521         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56522         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56523         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56524         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56525         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56526         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56527         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56528         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56529         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56530         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56531         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56532         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56533         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56534         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56535         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56536         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56537         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56538         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56539         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56540         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56541         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56542         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56543         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56544         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56545         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56546         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56547         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56548         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56549         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56550         Use an all-permissive copyright notice, recommended by RMS.
56551
56552 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56553
56554         * modules/chdir-long (Depends-on): Remove mempcpy.
56555
56556 2005-01-21  Jim Meyering  <jim@meyering.net>
56557
56558         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56559         same value as for Solaris 9.
56560
56561         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56562         component length.  This included changing the parameter to be
56563         of type `char *' rather than `char const *'.
56564         * lib/chdir-long.h (chdir_long): Update prototype.
56565
56566         * lib/openat.c (fdopendir, fstatat): New functions.
56567         * lib/openat.h: Include headers required for use of DIR and struct
56568         stat.
56569         [AT_SYMLINK_NOFOLLOW]: Define.
56570         (fdopendir, fstatat): Add prototypes.
56571
56572 2005-01-21  Bruno Haible  <bruno@clisp.org>
56573
56574         * modules/classpath: New file.
56575         * MODULES.html.sh (Java): Add classpath.
56576
56577 2005-01-21  Bruno Haible  <bruno@clisp.org>
56578
56579         * lib/classpath.h: New file, from GNU gettext.
56580         * lib/classpath.c: New file, from GNU gettext.
56581
56582 2005-01-20  Simon Josefsson  <jas@extundo.com>
56583
56584         * modules/version-etc-fsf: New file.
56585
56586 2005-01-20  Simon Josefsson  <jas@extundo.com>
56587
56588         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56589         * lib/version-etc.c: Remove version_etc_copyright.
56590         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56591         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56592
56593 2005-01-20  Simon Josefsson  <jas@extundo.com>
56594
56595         * lib/base64.h (isbase64): Add.
56596
56597         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56598         using a unsigned prototype, don't inline.
56599         (base64_decode): Use it.
56600
56601 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56604         it.
56605
56606 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56607
56608         * lib/save-cwd.c (save_cwd): Remove code to support the case
56609         where fchdir is missing or flaky.
56610
56611 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56612
56613         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56614
56615 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56616
56617         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
56618         AC_LIBSOURCES now does this.
56619         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
56620         with new ullong_max module.
56621
56622 2005-01-19  Bruno Haible  <bruno@clisp.org>
56623
56624         * modules/sh-quote: New file.
56625         * MODULES.html.sh (Executing programs): Add sh-quote.
56626
56627 2005-01-19  Bruno Haible  <bruno@clisp.org>
56628
56629         * lib/sh-quote.h: New file, from GNU gettext.
56630         * lib/sh-quote.c: New file, from GNU gettext.
56631
56632 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56633
56634         Merge from coreutils.
56635         * m4/ullong_max.m4: New file.
56636         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
56637         (gl_MACROS): Assume localeconv exists.
56638
56639 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56640
56641         Merge changes from coreutils, as described below in several
56642         changelogs dated today.
56643
56644         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56645         (O_DIRECTORY): Remove; not needed here, since "." must be
56646         a directory.  All uses removed.
56647         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56648         universal on Suns, and we also need to test for IRIX.
56649         Revamp code to use 'if' rather than '#if'.
56650         Avoid unnecessary comparison of cwd->desc to 0.
56651
56652         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56653         for known valid error numbers rather than observed invalid ones.
56654
56655 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56656
56657         * modules/ullong_max: New file.
56658
56659         * modules/chdir-long, modules/openat: New files.
56660         * modules/save-cwd (Depends-on): Depend on chdir-long.
56661         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56662
56663 2005-01-18  Jim Meyering  <jim@meyering.net>
56664
56665         Merge from coreutils.
56666         * m4/chdir-long.m4, m4/openat.m4: New files.
56667         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56668         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56669         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56670         is sane and DOES follow symlinks.  Besides, testing 20 different
56671         systems found no broken chown implementations.
56672         Prompted by a change in rsync's copy of this macro.
56673         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56674
56675         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56676
56677         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56678         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56679         NULL-means-set-to-current-time semantics.
56680         Remove temporary file immediately, rather than waiting
56681         for configure's at-exit trap code to do it.
56682
56683 2005-01-18  Jim Meyering  <jim@meyering.net>
56684
56685         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56686
56687         * lib/utimens.c (futimens): Account for the fact that futimes
56688         can also fail with errno == ENOSYS or errno == ENOENT.
56689         Patch from Dmitry V. Levin.
56690
56691         Change the name of the robust chdir function from chdir to chdir_long.
56692         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56693         (restore_cwd): Use chdir_long, not chdir.
56694         * lib/chdir-long.c: Renamed from chdir.c.
56695         * lib/chdir-long.h: Renamed from chdir.h.
56696         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56697         Hurd.
56698
56699 2005-01-18  Bruno Haible  <bruno@clisp.org>
56700
56701         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56702         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56703         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56704         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56705         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56706         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56707         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56708         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56709         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
56710         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
56711         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
56712         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
56713         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
56714         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
56715         Use an all-permissive copyright notice, recommended by RMS.
56716
56717 2005-01-18  Bob Proulx  <bob@proulx.com>
56718
56719         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
56720         simplify offsetof() macro construct to avoid compile failure with
56721         native HP-UX 11.0 ANSI C compiler.
56722
56723 2005-01-17  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
56726         redundant because stpncpy.m4 takes care of it.
56727
56728 2005-01-17  Bruno Haible  <bruno@clisp.org>
56729
56730         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
56731
56732 2005-01-17  Bruno Haible  <bruno@clisp.org>
56733
56734         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
56735         used.
56736
56737 2005-01-17  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/fwriteerror.h (fwriteerror): Change specification to include
56740         fclose.
56741         * lib/fwriteerror.c: Include <stdbool.h>.
56742         (fwriteerror): At the end, close the file stream. Record whether
56743         stdout was already closed.
56744
56745 2005-01-17  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/execute.c (environ): Declare if needed.
56748         * lib/pipe.c (environ): Likewise.
56749         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
56750
56751 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56752
56753         * modules/argp: Depend on vsnprintf
56754
56755 2005-01-10  Jim Meyering  <jim@meyering.net>
56756
56757         * modules/closeout (Depends-on): Add atexit.
56758
56759 2005-01-06  Bruno Haible  <bruno@clisp.org>
56760
56761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
56762
56763 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56764
56765         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
56766         definitions to be after all include files, to avoid collisions.
56767         Problem reported by Bob Proulx.
56768
56769 2005-01-04  Jim Meyering  <jim@meyering.net>
56770
56771         Changes imported from coreutils.
56772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
56773         as the mkstemp template, use a temporary directory and an
56774         8.3-friendly template to avoid trouble on systems like DJGPP.
56775         Reported by Juan M. Guerrero via Stepan Kasal.
56776         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
56777         close. Remove the temporary directory right away, rather than waiting
56778         for configure's at-exit trap code to do it.
56779         Suggestion from Stepan Kasal.
56780
56781 2005-01-01  Simon Josefsson  <jas@extundo.com>
56782
56783         * gnulib-tool: Print #include directives when --import'ing.
56784
56785 2004-12-28  Simon Josefsson  <jas@extundo.com>
56786
56787         * tests/test-base64.c: Include required header files.  Remove
56788         unused variables.
56789
56790 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56791
56792         * modules/error (Depends-on): Remove gettext.
56793
56794 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56795
56796         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
56797         not needed.  This removes a dependency on the gettext module.
56798         [defined _LIBC]: Do not include <libintl.h>; not needed.
56799
56800 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56801
56802         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
56803         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
56804
56805 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56806
56807         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
56808         HAVE_DECL_STRTOLD.
56809
56810 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56811
56812         * modules/getdate (Depends-on): Remove alloca-opt.
56813
56814 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
56817
56818 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56819
56820         * lib/argp-parse.c: Include <stddef.h>.
56821         (alignof, alignto): New macros.
56822         (parser_init): Don't assume that void * is aligned sufficiently
56823         for struct option.
56824
56825         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
56826         need to extend the stack.
56827         (YYINITDEPTH): New macro, so that the initial stack isn't overly
56828         large.
56829
56830 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56831
56832         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
56833
56834 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56835
56836         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
56837         (2004-10-24) change.  Apparently this was a false alarm.
56838
56839         * modules/getdate: Depend on alloca-opt, not alloca.
56840
56841 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56842
56843         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
56844         Remove now-obsolete comment about AIX.
56845         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
56846         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
56847         (YYMAXDEPTH): New macro.
56848
56849 2004-12-18  Simon Josefsson  <jas@extundo.com>
56850
56851         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
56852
56853 2004-12-18  Bruno Haible  <bruno@clisp.org>
56854
56855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
56856
56857 2004-12-18  Bruno Haible  <bruno@clisp.org>
56858
56859         * lib/fatal-signal.c (fatal_signals): Make non-const.
56860         (init_fatal_signals): New function.
56861         (uninstall_handlers, install_handlers): Ignore signals that were set to
56862         SIG_IGN.
56863         (at_fatal_signal): Call init_fatal_signals.
56864         (init_fatal_signal_set): Likewise. Ignore signals that were set to
56865         SIG_IGN.
56866         Reported by Paul Eggert.
56867
56868 2004-12-18  Bruno Haible  <bruno@clisp.org>
56869
56870         * doc/alloca.texi: New file.
56871         * doc/alloca-opt.texi: New file.
56872
56873 2004-12-17  Jim Meyering  <jim@meyering.net>
56874
56875         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
56876         Otherwise, install-sh could exit with improper exit status when
56877         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
56878
56879 2004-12-16  Simon Josefsson  <jas@extundo.com>
56880
56881         * tests/test-base64.c: Add license.
56882
56883 2004-12-15  Stepan Kasal  <address@hidden>
56884
56885         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
56886
56887 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
56888
56889         * modules/getcwd (Files): Add m4/d-ino.m4.
56890         Suggested by Mark D. Baushke.
56891
56892 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56893
56894         * lib/getdate.y (textint): New member "negative".
56895         (time_zone_hhmm): New function.
56896         Expect 14 shift-reduce conflicts, not 13.
56897         (o_colon_minutes): New rule.
56898         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
56899         (yylex): Set the "negative" member of signed numbers.
56900
56901 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         * doc/getdate.texi (Time of day items, Time zone items):
56904         Describe new formats +00:00, UTC+00:00.
56905
56906 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56907
56908         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
56909         spurious "-l"s.  Problem reported by Stepan Kasal.
56910
56911 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
56912
56913         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
56914         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
56915
56916 2004-12-04  Simon Josefsson  <jas@extundo.com>
56917
56918         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
56919         Vandoorselaere <yoann@prelude-ids.org>.
56920
56921 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56922
56923         Changes imported from coreutils.
56924         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
56925         exist.
56926         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
56927
56928 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56929
56930         Changes imported from coreutils.
56931         * lib/hard-locale.c: Assume <locale.h> exists.
56932         Include "strdup.h".
56933         (GLIBC_VERSION): New macro.
56934         (hard_locale): Assume setlocale exists.
56935         Rewrite to avoid #ifdef.
56936         Use strdup rather than malloc + strcpy.
56937         * lib/human.c: Assume <locale.h> exists.
56938         (human_readable): Assume localeconv exists.
56939
56940 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
56941
56942         * modules/hard-locale (Depends-on): Add strdup.
56943
56944 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56945
56946         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
56947         convert T2, not T.  (Imported from libc.)
56948
56949 2004-11-30  Simon Josefsson  <jas@extundo.com>
56950
56951         * modules/restrict (License): Change to LGPL.
56952
56953 2004-11-30  Simon Josefsson  <jas@extundo.com>
56954
56955         * m4/restrict.m4: Add copyright and copying conditions.
56956
56957 2004-11-30  Simon Josefsson  <jas@extundo.com>
56958
56959         * m4/base64.m4: New file.
56960
56961 2004-11-30  Simon Josefsson  <jas@extundo.com>
56962
56963         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
56964         base64.
56965
56966         * tests/test-base64.c: New file.
56967
56968         * modules/base64: New file.
56969
56970 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
56971
56972         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
56973         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
56974
56975         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
56976
56977 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
56978
56979         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
56980         (__getcwd.c): Don't restore errno; glibc doesn't.
56981         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
56982         first, falling back to our code only if its results look suspicious.
56983         Ensure that the resulting buffer is only as large as necessary.
56984
56985         * lib/readutmp.c: Include readutmp.h first.
56986         Include <errno.h>, since readutmp.h no longer does that.
56987         * lib/readutmp.h: Don't include <errno.h>,
56988         <sys/param.h>, <time.h>; not needed to establish interface.
56989         (errno): Remove decl.
56990         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
56991         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
56992         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
56993
56994 2004-11-28  Simon Josefsson  <jas@extundo.com>
56995
56996         * lib/base64.h, base64.c: New file.
56997
56998 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57001
57002 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57003
57004         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57005         (Depends-on): Remove pathmax, same.  Add mempcpy.
57006         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57007         (Makefile.am): Append getcwd.h to lib_SOURCES.
57008         (Include): Add getcwd.h.
57009         (Maintainer): Change from Jim Meyering to "all, glibc",
57010         since getdate now uses intended-for-glibc code.
57011         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57012         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57013
57014 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57015
57016         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57017         HP's ANSI C compiler.
57018         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57019         Declaring int functions causes warnings on some modern systems and
57020         shouldn't be needed to compile on ancient ones.
57021         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57022         defined.
57023
57024         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57025         with the following changes.
57026         (__set_errno): Parenthesize properly.
57027         Include <stdbool.h>.
57028         (MIN, MAX, MATCHING_INO): New macros.
57029         (__getcwd): Define with prototype, not K&R form.
57030         Use heuristics to allocate default buffer on stack if possible.
57031         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57032         behavior, and to avoid the PATH_MAX limit when computing
57033         ../../../../...
57034         Use MATCHING_INO to compare inode number to file.
57035         Check for arithmetic overflow in size calculations.
57036         Fix bug in reallocation of dot array that caused getcwd to fail
57037         on directories nested deeper than 75.
57038         Be more careful about saving errno on error.
57039         Do not use realloc; use only free+malloc, as this is a bit
57040         more flexible and avoids a needless copy operation.
57041         Do not inspect st_dev and st_ino for symbolic links; POSIX
57042         doesn't specify the latter.
57043         Check for closedir errors.
57044         Avoid needless casts.
57045         Use "#ifdef weak_alias" around weak_alias, to be like other
57046         glibc code.
57047         The following changes to getcwd.c have effect only when used in
57048         gnulib; they have no effect inside glibc proper.
57049         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57050         as alloca isn't used.
57051         (alloca, __alloca): Likewise.
57052         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57053         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57054         unconditionally, as gnulib assumes C89 or better.
57055         Do not include <sys/param.h>.
57056         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57057         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57058         better.
57059         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57060         Include <dirent.h> in a way that is compatible with modern Autoconf.
57061         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57062         New macros, if not already defined.
57063         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57064         Use "_LIBC", not "defined _LIBC", for consistency.
57065         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57066         a mempcpy module.
57067         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57068         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57069         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57070         credit only to Jim Meyering and adjust the copyright dates.
57071         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57072         <stdlib.h>, <unistd.h>, "pathmax.h".
57073         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57074         (INITIAL_BUFFER_SIZE): Remove.
57075         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57076
57077 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57078
57079         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57080         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57081         Use the _ONCE methods, for efficiency.
57082         Check for fcntl.h.  In test program, include <errno.h>
57083         and <fcntl.h> if available.  Remove old K&R cruft from
57084         test program.  Check for common errors in GNU/Linux,
57085         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57086         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57087         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57088         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57089         name accordingly.
57090         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57091         accommodate new getcwd.c.
57092         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57093         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57094         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57095         that's all we need now.
57096
57097 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57098
57099         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57100         argp-parse.c depends on getopt internals, that means we should
57101         always use our getopt, to be on the safe side.
57102         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57103         order not to spoil the result of an eventual previous invocation
57104         of gl_GETOPT_SUBSTITUTE.
57105
57106 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57107
57108         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57109         redefinition warnings. To avoid them, include the defines
57110         in `#if !defined __need_getopt ... #endif'. The only place
57111         where __getopt_argv_const is used is in definitions
57112         of getopt_long and getopt_long_only below, which are as well
57113         protected by `#ifndef __need_getopt'.
57114         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57115         __need_getopt after including <stdio.h> and <unistd.h> These
57116         headers might have defined it.
57117
57118 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57119
57120         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57121
57122 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57125         (futimens): New function, which uses futimes if available.
57126         (futimens, utimens): Support timespec==NULL, with same semantics
57127         as utime and utimens.
57128         * lib/utimens.h (futimens): New decl.
57129
57130 2004-11-23  Jim Meyering  <jim@meyering.net>
57131
57132         * lib/getopt_.h: Remove trailing blanks.
57133
57134 2004-11-23  Jim Meyering  <jim@meyering.net>
57135
57136         * lib/__fpending.c: Add comment.
57137
57138 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57139
57140         * modules/canonicalize (Depends-on): Add xreadlink.
57141         Problem reported by James Youngman.
57142
57143 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57144
57145         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57146         New macros.
57147         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57148         optopt): Use them instead of invoking ## directly; otherwise, the
57149         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57150
57151 2004-11-19  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/strtok_r.c: Move comments from here...
57154         * lib/strtok_r.h: ... to here.
57155
57156 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57157
57158         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57159         implementations that mishandle size_t overflow.
57160
57161 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57162
57163         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57164         might fail.  Problem reported by Yoann Vandoorselaere.
57165         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57166         implementations that mishandle size_t overflow.
57167
57168 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57169
57170         * modules/canon-host (Depends-on): Add strdup.
57171
57172 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57173
57174         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57175
57176 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         * lib/canon-host.c: Include "strdup.h".
57179         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57180         Use strdup instead of malloc/strcpy to duplicate strings.
57181
57182         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57183         (human_space_before_unit): New constant.
57184         * lib/human.c (human_readable): Support it.
57185
57186         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57187         (xgetcwd): Set errno correctly when failing.
57188         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57189         the failure is actually due to a PATH_MAX problem.
57190
57191         Further getopt changes to make it more likely that glibc will
57192         buy the changes back.
57193         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57194         (getopt): Use it, so to preserve glibc semantic
57195         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57196         when compiling for libc.
57197         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57198         (getopt_long, getopt_long_only): Use it.
57199
57200         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57201         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57202         (getopt): Argv is now char * const *, as per standard.
57203         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57204         not char *__getopt_argv_const *.
57205         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57206         _getopt_long_only_r): Likewise.
57207         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57208         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57209         _getopt_long_r, _getopt_long_only_r): Likewise.
57210         * lib/getopt_.h (__getopt_argv_const): Remove.
57211         (getopt): Argv is now char * const *, as per standard.
57212
57213         * lib/getdate.y (tORDINAL): New token.
57214         (day, relunit): Allow it for relative times.
57215         (relative_time_table): Use tORDINAL for ordinals.
57216
57217 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57218
57219         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57220         Document that "second" isn't allowed as an ordinal number.
57221
57222 2004-11-16  Jim Meyering  <jim@meyering.net>
57223
57224         * modules/closeout (Depends-on): Add fpending.
57225
57226 2004-11-15  Jim Meyering  <jim@meyering.net>
57227
57228         * lib/closeout.c: Include "__fpending.h" once again.
57229         Include <stdbool.h>.
57230         (close_stdout): Don't fail just because stdout was closed initially,
57231         since some programs don't write to stdout in the normal course of
57232         operation (other than --version and --help), and we don't want this
57233         function to make e.g. `touch file >&-' fail.
57234         But do fail if it was closed and someone has tried to write to it.
57235         E.g., `printf foo >&-' must fail.
57236
57237 2004-11-13  Jim Meyering  <jim@meyering.net>
57238
57239         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57240
57241 2004-11-12  Simon Josefsson  <jas@extundo.com>
57242
57243         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57244         small doc fix is still pending.
57245
57246 2004-11-11  Simon Josefsson  <jas@extundo.com>
57247
57248         * modules/strtok_r: New file.
57249
57250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57251         strtok_r.
57252
57253 2004-11-11  Simon Josefsson  <jas@extundo.com>
57254
57255         * m4/strtok_r.m4: New file.
57256
57257         * m4/getopt.m4: Replace opterr.
57258
57259 2004-11-11  Simon Josefsson  <jas@extundo.com>
57260
57261         * lib/strtok_r.h, strtok_r.c: New file.
57262
57263 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57264
57265         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57266         of replacing opterr, getopt, etc.  This should handle the
57267         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57268
57269 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57272         we can stop lying to compilers about the constness of argv when we
57273         are compiled outside glibc.
57274         (getopt, getopt_long, getopt_long_only): Use it.
57275         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57276         _getopt_internal, getopt): Likewise.
57277         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57278         _getopt_long_only_r): Likewise.
57279         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57280         _getopt_long_r, _getopt_long_only_r): Likewise.
57281
57282         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57283         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57284         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57285         the other external symbols.
57286         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57287         declaration, since the above renaming now works around collisions.
57288
57289 2004-11-11  Jim Meyering  <jim@meyering.net>
57290
57291         * lib/linebreak.c: Remove trailing blanks.
57292         * lib/alloca_.h: Likewise.
57293         * lib/acosl.c: Likewise.
57294         * lib/euidaccess.c: Likewise.
57295         * lib/allocsa.h: Likewise.
57296
57297 2004-11-10  Simon Josefsson  <jas@extundo.com>
57298
57299         * m4/getaddrinfo.m4: New file.
57300
57301 2004-11-10  Simon Josefsson  <jas@extundo.com>
57302
57303         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57304
57305 2004-11-10  Simon Josefsson  <jas@extundo.com>
57306
57307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57308         getaddrinfo.
57309
57310         * modules/getaddrinfo: New file.
57311
57312 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57313
57314         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57315
57316 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * lib/mktime.c (SHR): New macro, which is a portable
57319         substitute for >> that should work even on Crays.
57320         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57321         Problem reported by Mark D. Baushke in
57322         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57323         * lib/getdate.y (SHR): Likewise.
57324         (tm_diff): Use it.
57325         * lib/strftime.c (SHR): Likewise.
57326         (tm_diff): Use it.
57327         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57328         quote_these_too, so that right shifts are well defined.  All uses
57329         changed.
57330
57331 2004-11-10  Jim Meyering  <jim@meyering.net>
57332
57333         Ensure that no close failure goes unreported.
57334         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57335         return early when it seems there's nothing to flush.
57336         Don't include __fpending.h.
57337
57338 2004-11-10  Jim Meyering  <jim@meyering.net>
57339
57340         * modules/closeout (Depends-on): Remove fpending.
57341
57342 2004-11-10  Jim Meyering  <jim@meyering.net>
57343
57344         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57345
57346 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57347
57348         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57349         gl_FUNC_STRFTIME.
57350         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57351         and AC_REQUIRE when possible, to avoid duplicate checks.
57352         Check for <wchar.h>.
57353
57354 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57357
57358 2004-11-09  Bruno Haible  <bruno@clisp.org>
57359
57360         * m4/sockpfaf.m4: New file.
57361
57362 2004-11-05  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57365         Reported by Mark D. Baushke <mdb@cvshome.org>.
57366
57367 2004-11-04  Bruno Haible  <bruno@clisp.org>
57368
57369         2004-09-11  Bruno Haible  <bruno@clisp.org>
57370                 * allocsa.valgrind: New file.
57371         2004-02-06  Bruno Haible  <bruno@clisp.org>
57372                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57373                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57374                 Reported by Christopher Seip <chris.seip@hp.com>.
57375
57376 2004-11-04  Bruno Haible  <bruno@clisp.org>
57377
57378         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57379         (Makefile.am): Distribute it.
57380
57381 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57382
57383         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57384         with errno == ERANGE if the buffer is too small.
57385         Problem reported by Mark D. Baushke.
57386
57387 2004-11-03  Albert Chin  <china@thewrittenword.com>
57388             Paul Eggert  <eggert@cs.ucla.edu>
57389
57390         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57391         equivalent, substitute $ac_type for equivalent type rather than
57392         blindly using uint32_t *always* which won't work if uint32_t is not
57393         available.  Define _UINT32_T to work around typedef of uint32_t if
57394         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57395         2.5.1.
57396
57397 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * m4/jm-macros.m4: Sync from coreutils.
57400         (gl_MACROS): Check for mbrlen, for pathchk.
57401         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57402
57403 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57404
57405         * lib/xreadlink.c (MAXSIZE): New macro.
57406         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57407         size does not exceed MAXSIZE.  Avoid cast.
57408         As suggested by Mark D. Baushke in
57409         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57410         if readlink fails with buffer size just under MAXSIZE, try again
57411         with MAXSIZE.
57412
57413 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57416
57417 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57418         and  Paul Eggert  <eggert@cs.ucla.edu>
57419
57420         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57421         (get_date): Overparenthesize to avoid GCC warning.
57422
57423 2004-11-02  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57426         returns void.
57427
57428 2004-11-02  Bruno Haible  <bruno@clisp.org>
57429
57430         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57431         function returns void.
57432
57433 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57436         fflush_unlocked, flockfile, funlockfile, funlockfile,
57437         fputs_unlocked, putc_unlocked.
57438
57439 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57440
57441         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57442         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57443         already declared.
57444
57445 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57446
57447         * modules/getdate (Files): Add doc/getdate.texi.
57448         (Depends-on): Add setenv, xalloc.
57449
57450 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57451
57452         * lib/getdate.y: Add support for TZ="foo" within a date string.
57453         Fix some bugs near time_t boundaries.  Reject dates with
57454         out-of-range components, e.g., "Sept 31".
57455         Include <stdlib.h>, "setenv.h", "xalloc.h".
57456         (ISDIGIT_LOCALE): Remove; unused.
57457         Note that the TZ and time functions used here are not reentrant.
57458         (mktime_ok, get_tz): New functions.
57459         (TZBUFSIZE): New constant.
57460         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57461         This requires that we sometimes generate our own TZ="XXX..." setting.
57462
57463 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57464
57465         * doc/getdate.texi: New file, from coreutils with modifications for
57466         the new TZ parsing.
57467
57468 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57469
57470         * lib/mktime.c (not_equal_tm): Remove redundant check.
57471
57472 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57473
57474         * modules/regex (lib_SOURCES): Add regex.c.
57475         Reported by James Youngman in
57476         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57477
57478 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57479
57480         * lib/getdate.y: Use Bison 1.875 features, and some minor
57481         code cleanups.  This change does not affect semantics.
57482         Don't include <stdlib.h>; no longer needed.
57483         Don't include unlocked-io.h; only the "#if TEST" code uses
57484         stdio, and performance isn't crucial there.
57485         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57486         Bison 1.875 features as described below.
57487         All uses of "PC." replaced by "pc->".
57488         (YYSTYPE): Add a forward declaration.
57489         (yylex, yyerror): Use full prototypes in forward decls.
57490         Use "%pure-parser" rather than obsolescent "%pure_parser".
57491         Use %parse-param and %lex-param instead of obsolescent
57492         YYPARSE_PARAM and YYLEX_PARAM.
57493         (meridian_table, month_and_day_table, time_units_table,
57494         relative_time_table, time_zone_table, military_table,
57495         lookup_zone, lookup_word, get_date):
57496         Use NULL instead of 0 where appropriate.
57497         (to_hour): Avoid abort (), to avoid a dependency on
57498         stdlib.h.
57499         (yyerror, yylex): Now accepts parser_control * arg.
57500         (main) [TEST]: Use '\0' rather than 0 for char.
57501
57502 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57503
57504         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57505
57506 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57509         It's now the caller's responsibility to handle the case where
57510         !HAVE_GETPAGESIZE && !defined getpagesize.
57511
57512         * lib/mktime.c (leapyear): Arg is long int, not int.
57513
57514 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57515
57516         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57517
57518 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57519
57520         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57521         missing.  Problem reported by James Youngman.
57522
57523 2004-10-16  Simon Josefsson  <jas@extundo.com>
57524
57525         * gnulib-tool: Fix comments.  Fix parse problem.
57526         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57527
57528 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57529
57530         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57531         implementation of getopt_long.  Problem reported by Alexander Taler in:
57532         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57533
57534 2004-10-15  Bruno Haible  <bruno@clisp.org>
57535
57536         * gnulib-tool: Untabify. Initialize supplied_libname.
57537         (func_usage): More homogenous output.
57538         (func_modules_transitive_closure, func_modules_to_filelist,
57539         func_emit_lib_Makefile_am): New functions.
57540         (func_import): New function, extracted from big case statement. Use
57541         func_get_license, func_modules_transitive_closure,
57542         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57543         opt_lgpl. Don't use test -a, as it's not portable.
57544         (func_create_testdir): Use func_modules_transitive_closure,
57545         func_modules_to_filelist, func_emit_lib_Makefile_am.
57546
57547 2004-10-15  Bruno Haible  <bruno@clisp.org>
57548
57549         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57550
57551 2004-10-15  Bruno Haible  <bruno@clisp.org>
57552
57553         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57554         the portions belonging to each module.
57555         Suggested by Derek Robert Price <derek@ximbiot.com>.
57556
57557 2004-10-12  Simon Josefsson  <jas@extundo.com>
57558
57559         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57560         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57561         to real functions.
57562
57563 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57564
57565         * modules/vsnprintf: New file.
57566
57567 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57568
57569         * m4/vsnprintf.m4: New file.
57570
57571 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57572
57573         * lib/vsnprintf.h: New file.
57574         * lib/vsnprintf.c: New file.
57575
57576 2004-10-11  Bruno Haible  <bruno@clisp.org>
57577
57578         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57579         vsnprintf.
57580
57581 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57584
57585 2004-10-07  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57588         fits into the provided buffer.
57589
57590 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57591
57592         * lib/diacrit.c, diacrit.h: Add GPL notice.
57593
57594         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57595         notice.
57596         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57597         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57598         This avoids a potential constant-folding bug.
57599
57600 2004-10-05  Bruno Haible  <bruno@clisp.org>
57601
57602         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57603         for the declaration of strsep.
57604
57605 2004-10-05  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57608
57609 2004-10-04  Simon Josefsson  <jas@extundo.com>
57610
57611         * modules/memmem: New file.
57612         * tests/test-memmem.c: New file.
57613         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57614
57615 2004-10-04  Simon Josefsson  <jas@extundo.com>
57616
57617         * m4/memmem.m4: New file.
57618
57619 2004-10-04  Simon Josefsson  <jas@extundo.com>
57620
57621         * lib/memmem.h: New file.
57622         * lib/memmem.c: New file, taken from glibc.
57623
57624 2004-10-04  Simon Josefsson  <jas@extundo.com>
57625
57626         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
57627         '#ifdef USE_UNLOCKED_IO'.
57628
57629 2004-10-04  Simon Josefsson  <jas@extundo.com>
57630
57631         * config/srclist.txt: Add memmem from glibc.
57632
57633 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57634
57635         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
57636
57637         * modules/argmatch, modules/argp, modules/closeout, modules/error,
57638         modules/exclude, modules/getdate, modules/getline,
57639         modules/getndelim2, modules/getpass, modules/getpass-gnu,
57640         modules/getusershell, modules/linebuffer, modules/md5,
57641         modules/mountlist, modules/posixtm, modules/readtokens,
57642         modules/readutmp, modules/regex, modules/sha1,
57643         modules/version-etc, modules/yesno:
57644         Remove dependency on unlocked-io.
57645
57646 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57647
57648         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57649
57650         * m4/unlocked-io.m4: Add copyright notice.
57651         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57652
57653 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57654
57655         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57656         * lib/xmalloc.c (xmemdup): Likewise.
57657         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57658         XFREE): Remove these long-obsolescent macros.
57659         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57660         * lib/xstrdup.c: Remove.
57661
57662         * lib/regex.c (re_comp): Cast gettext return value to char *,
57663         Problem reported by Martin Neitzel via Mark D. Baushke.
57664
57665 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57666
57667         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57668         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57669         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57670         regex.c, sha1.c, version-etc.c, yesno.c:
57671         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57672         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57673         the includer's responsibility.
57674
57675         Sync from coreutils.
57676
57677         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57678         points to the start of a string, as the C Standard says the
57679         resulting behavior is undefined.
57680
57681         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57682         simple -> simple_backups, numbered_existing ->
57683         numbered_existing_backups, numbered -> numbered_backups
57684         to avoid shadowing problems.  All uses changed.
57685         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57686         * lib/backupfile.c (check_extension, numbered_backup):
57687         Rename locals to avoid shadowing 'basename'.
57688         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57689         once.
57690
57691         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57692         * lib/.cvsignore: Add getopt.h.
57693
57694 2004-10-04  Bruno Haible  <bruno@clisp.org>
57695
57696         * modules/README: New file.
57697         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57698         not a module.
57699
57700 2004-10-02  Jim Meyering  <jim@meyering.net>
57701
57702         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57703
57704 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57705
57706         * modules/strsep: New file.
57707
57708 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57709
57710         * m4/strsep.m4: New file.
57711
57712 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57713
57714         * lib/strsep.h: New file.
57715         * lib/strsep.c: New file.
57716
57717 2004-10-01  Simon Josefsson  <jas@extundo.com>
57718
57719         * lib/snprintf.c (snprintf): Handle size==0.
57720
57721 2004-10-01  Simon Josefsson  <jas@extundo.com>
57722             Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
57725         (snprintf): Declare 'args'.
57726
57727 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
57728
57729         * lib/snprintf.c: Remove comments as to why each header is needed.
57730
57731 2004-10-01  Bruno Haible  <bruno@clisp.org>
57732
57733         * MODULES.html.sh: Add strsep.
57734
57735 2004-09-30  Simon Josefsson  <jas@extundo.com>
57736
57737         * modules/snprintf: New file.
57738
57739 2004-09-30  Simon Josefsson  <jas@extundo.com>
57740
57741         * m4/snprintf.m4: New file.
57742
57743 2004-09-30  Simon Josefsson  <jas@extundo.com>
57744
57745         * lib/snprintf.h, lib/snprintf.c: New files.
57746
57747 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57748
57749         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
57750         (hol_entry_help): Never translate an empty string.
57751         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
57752         * lib/argp.h (OPTION_NO_TRANS): New option.
57753
57754 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57755
57756         * modules/argp (Maintainer): Replace Simon Josefsson
57757         by Sergey Poznyakoff.
57758
57759 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57760
57761         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
57762         changes merged back into glibc.
57763
57764 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57765
57766         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
57767
57768 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57769
57770         * lib/xvasprintf.c: Include xalloc.h.
57771         (xvasprintf): Use xalloc_die, not xmalloc_die.
57772
57773 2004-09-29  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/alloca-opt: New file, derived from modules/alloca.
57776         * modules/allocsa: Depend on alloca-opt instead of alloca.
57777         * modules/setenv: Likewise.
57778         * modules/vasnprintf: Likewise.
57779         * MODULES.html.sh: Add alloca-opt.
57780
57781 2004-09-28  Simon Josefsson  <jas@extundo.com>
57782
57783         * gnulib-tool: New parameter --lgpl, to asseert that modules are
57784         LGPL, and to replace license template from GPL to LGPL.
57785
57786 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         * modules/dummy: Change license to LGPL.
57789
57790 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
57793
57794 2004-09-24  Simon Josefsson  <jas@extundo.com>
57795
57796         * modules/minmax (License): Change from GPL to LGPL.
57797
57798 2004-09-23  Simon Josefsson  <jas@extundo.com>
57799
57800         * gnulib-tool (--import): Typo.
57801
57802 2004-09-23  Simon Josefsson  <jas@extundo.com>
57803
57804         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
57805
57806 2004-09-22  Bruno Haible  <bruno@clisp.org>
57807
57808         * modules/*: Add 'License' field.
57809         * gnulib-tool: Accept --extract-license option.
57810         (func_get_license): New function.
57811
57812 2004-09-21  Bruno Haible  <bruno@clisp.org>
57813
57814         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
57815         Reported by Simon Josefsson.
57816
57817 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57818
57819         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
57820         gl_AC_TYPE_LONG_LONG.
57821
57822 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
57825
57826 2004-09-18  Simon Josefsson  <jas@extundo.com>
57827         and  Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
57830         calls with autoreconf.  Define GL_LIB.
57831
57832 2004-09-14  Karl Berry  <karl@gnu.org>
57833
57834         * config/srclist.txt: unsync setenv.c, sigh.
57835
57836 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
57839         Problem reported by Bruno Haible in:
57840         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
57841
57842 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57843
57844         * config/srclist.txt: Comment out argp-pvh.c.
57845
57846 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
57847
57848         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
57849         in case some system header has #define'd it.  Problem reported by
57850         Soeren D. Schulze in
57851         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
57852
57853 2004-09-09  Karl Berry  <karl@gnu.org>
57854
57855         * regex.[ch]: delete from the root.  These were supposed to be
57856                 synced with emacs cvs, but this has not happened for about
57857                 a year, and anyway nothing else uses emacs regex.[ch].
57858                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
57859                 lib/regex[.ch] is untouched.
57860
57861 2004-09-09  Bruno Haible  <bruno@clisp.org>
57862
57863         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
57864
57865 2004-09-09  Bruno Haible  <bruno@clisp.org>
57866
57867         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
57868         modifications.
57869         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
57870
57871 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57872
57873         * modules/xvasprintf: New file.
57874         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
57875
57876 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57877
57878         * lib/xvasprintf.h: New file.
57879         * lib/xvasprintf.c: New file.
57880         * lib/xasprintf.c: New file.
57881
57882 2004-09-08  Bruno Haible  <bruno@clisp.org>
57883
57884         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
57885
57886 2004-09-08  Bruno Haible  <bruno@clisp.org>
57887
57888         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
57889         length is > INT_MAX.
57890         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
57891         more.
57892
57893 2004-09-08  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/stdint_.h: New file, taken from GNU clisp.
57896
57897 2004-09-08  Bruno Haible  <bruno@clisp.org>
57898             Oskar Liljeblad  <oskar@osk.mine.nu>
57899
57900         * modules/stdint: New file.
57901         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
57902
57903 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57904
57905         Import from coreutils.
57906         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
57907         strings on unbounded length.  alloca's performance benefits aren't
57908         that important here.
57909         (V_STRDUP): Remove.
57910         (parse_with_separator): New function, with most of the internals
57911         of the old parse_user_spec.  Allow user to omit both user and group,
57912         for compatibility with FreeBSD.
57913         Clone only the user name, not the entire spec.
57914         Do not set *uid, *gid unless entirely successful.
57915         Avoid memory leak in some failing cases.
57916         Fix regression for USER.GROUP reported by Dmitry V. Levin in
57917         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
57918         (parse_user_spec): Rewrite to use parse_with_separator.
57919
57920 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57921
57922         * modules/userspec: Don't depend on alloca.
57923
57924 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57925
57926         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
57927
57928 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57929
57930         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
57931         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
57932         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
57933
57934 2004-08-16  Simon Josefsson  <jas@extundo.com>
57935
57936         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
57937         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
57938         Add --dry-run for --import.
57939         Let user provided command line parameters override configure.ac
57940         settings.
57941
57942 2004-08-12  Simon Josefsson  <jas@extundo.com>
57943
57944         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
57945         as discussed with Paul Eggert in threads rooted at
57946         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
57947         and
57948         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
57949         Before, the test was empty, and relied on ELIDE_CODE in source
57950         code.)
57951         (gl_PREREQ_GETOPT): New macro.
57952         (gl_GETOPT): Use them.
57953
57954 2004-08-12  Simon Josefsson  <jas@extundo.com>
57955
57956         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
57957         * lib/getopt_.h: Renamed from getopt.h.
57958
57959 2004-08-12  Simon Josefsson  <jas@extundo.com>
57960
57961         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
57962         Change default library name from libfoo to libgnu.
57963         Now, if you have a configure.ac that says:
57964                 gl_SOURCE_BASE(gl)
57965                 gl_M4_BASE(gl/m4)
57966                 gl_MODULES(error getopt etcetera)
57967                 gl_INIT
57968         you can import all you need by running:
57969                 ../gnulib/gnulib-tool --import
57970
57971         * modules/getopt (Files): Rename getopt.h to getopt_.h.
57972         (Makefile.am): Rewrite, use logic from argz.
57973         (Include): Use <getopt.h> instead of "getopt.h".
57974
57975 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57976
57977         * modules/argp (Files): Add m4/unlocked-io.m4.
57978         (Depends-on): Add extensions.
57979
57980 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57981
57982         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
57983         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
57984         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
57985         Check for program_invocation_name, program_invocation_short_name,
57986         flockfile, funlockfile, features.h, _getopt_long_only_r.
57987
57988 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
57991         its complicated substitute.
57992         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
57993         and program_invocation_name.
57994         (__argp_basename) [!_LIBC]: Remove; the only use was
57995         replaced by its body.
57996         (__argp_short_program_name): Change condition from
57997         !defined __argp_short_program_name to
57998         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
57999         to match argp-namefrob.h.
58000         (__argp_failure): Don't assume strerror_r returns char *.
58001         * lib/argp-parse.c (N_): Define unconditionally.
58002         (argp_default_options): Fill out initializers with 0 to avoid
58003         gcc warnings.
58004
58005 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58006
58007         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58008         getopt1.c.
58009
58010 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58011
58012         Merge from coreutils.
58013
58014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58015
58016         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58017         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58018
58019 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58020
58021         Merge from coreutils.
58022
58023         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58024         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58025         for Reliant Unix 5.43.
58026
58027         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58028         (union fooround): Use uintmax_t, not long int.
58029         The rest is a merge from libc:
58030         [defined _LIBC]: Include <shlib-compat.h>.
58031         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58032
58033         * lib/settime.c (settime): Recode to avoid warning with
58034         Sun Forte C 6U2.
58035
58036         * lib/strverscmp.c: Convert to UTF-8.
58037
58038 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58041         m4/uintmax_t.m4.
58042
58043 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * modules/xalloc-die: New file.
58046         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58047
58048         * modules/md5 (Files): Add m4/uint32_t.m4.
58049         * modules/sha1: Renamed from modules/sha.
58050         (Files):
58051         Rename lib/sha.h to lib/sha1.h.
58052         Rename lib/sha.c to lib/sha1.c.
58053         Rename m4/sha.m4 to m4/sha1.m4.
58054         (lib_SOURCES): Likewise.
58055         (configure.ac): Rename gl_SHA to gl_SHA1.
58056         (Include): sha.h -> sha1.h.
58057
58058 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58059
58060         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58061         * m4/sha1.m4: Renamed from sha.m4.
58062         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58063
58064 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * lib/obstack.h (obstack_empty_p):
58067         Don't assume that chunk->contents is suitably aligned.
58068         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58069         Likewise. Problem reported by Benno in
58070         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58071
58072         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58073         readable.  This could be improved further but it'd take some work.
58074
58075 2004-08-08  Simon Josefsson  <jas@extundo.com>
58076
58077         * modules/xgethostname (Depends-on): Remove exit and error (not
58078         used).
58079
58080         * modules/getpass-gnu: Add getpass.h.
58081         (Depends-on): Add stdbool.
58082         * modules/getpass: Add getpass.h.
58083
58084 2004-08-08  Simon Josefsson  <jas@extundo.com>
58085
58086         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58087         Check getpass declaration.
58088
58089 2004-08-08  Simon Josefsson  <jas@extundo.com>
58090
58091         * lib/xgethostname.c: Don't include error.h (not used).
58092
58093         * lib/getpass.h: Add.
58094         * lib/getpass.c: Include getpass.h first.
58095
58096 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58097
58098         * lib/xalloc-die.c: New file.
58099         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58100         All uses removed.
58101         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58102         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58103         xalloc-die.c.
58104         (_, N_, xalloc_die): Move to xalloc-die.c.
58105         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58106         so that we needn't mess with xalloc_msg_memory_exhausted.
58107
58108         * lib/sha1.h: Renamed from sha.h.
58109         (SHA1_H): Renamed from _SHA_H.
58110         (sha1_ctx): Renamed from sha_ctx.
58111         (sha1_init_ctx): Renamed from sha_init_ctx.
58112         (sha1_process_block): Renamed from sha_process_block.
58113         (sha1_process_bytes): Renamed from sha_process_bytes.
58114         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58115         (sha1_read_ctx): Renamed from sha_read_ctx.
58116         (sha1_stream): Renamed from sha_stream.
58117         (sha1_buffer): Renamed from sha_buffer.
58118         * lib/sha1.c: Likewise; renamed from sha.c.
58119         Do not include <sys/types.h>.
58120         Include <stddef.h> rather than <stdlib.h>.
58121
58122 2004-08-08  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58125         FILESYSTEM_PREFIX_LEN.
58126         * lib/progreloc.c: Likewise.
58127         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58128
58129 2004-08-06  Simon Josefsson  <jas@extundo.com>
58130
58131         * modules/progname (Depends-on): Don't depend on stdbool.
58132
58133 2004-08-06  Simon Josefsson  <jas@extundo.com>
58134
58135         * modules/getsubopt: New file.
58136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58137         getsubopt.
58138
58139 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58140
58141         More merge from coreutils.
58142
58143         * m4/utimens.m4, m4/utimecmp.m4: New files.
58144         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58145         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58146         prereq.m4, sha.m4: Import changes from coreutils.
58147
58148 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58149
58150         More merge from coreutils.
58151         * modules/raise, modules/readtokens0, modules/utimens:
58152         * modules/utimecmp, module/xnanosleep: New files.
58153         * modules/strftime: Add lib/strftime.h.
58154         Change include from <time.h> to "strftime.h".
58155         * modules/yesno: Add lib/yesno.h.
58156         * modules/backupfile: Remove lib/addext.c.
58157         * modules/euidaccess: Add stat-macros.h.
58158         * modules/canonicalize, modules/euidaccess,
58159         modules/filemode, modules/lchown, modules/makepath,
58160         modules/rmdir, modules/stat: Likewise.
58161
58162 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         Merge from tar.
58165         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58166         SIZE_MAX is a valid preprocessor constant.
58167         (__argp_basename): Change from "#ifndef _LIBC"
58168         to "#ifndef __argp_short_program_name", so that
58169         we don't compile these functions for tar.
58170
58171         More merges from coreutils.
58172         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58173         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58174         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58175         * lib/addext.c: Remove; no longer needed.
58176         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58177         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58178         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58179         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58180         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58181         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58182         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58183         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58184         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58185         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58186         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58187         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58188         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58189         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58190         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58191         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58192         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58193         Import changes from coreutils.
58194
58195 2004-08-05  Simon Josefsson  <jas@extundo.com>
58196
58197         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58198
58199 2004-08-05  Simon Josefsson  <jas@extundo.com>
58200
58201         * m4/getsubopt.m4: New file.
58202
58203 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58204
58205         Merge from coreutils.
58206
58207         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58208         * m4/getcwd-path-max.m4: New files.
58209
58210         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58211         FILESYSTEM_PREFIX_LEN ->
58212         FILE_SYSTEM_PREFIX_LEN.
58213         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58214         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58215         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58216         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58217
58218         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58219         prerequisite modules now handle the DOS stuff.
58220         Don't check for unistd.h.
58221
58222 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58223
58224         Merge from coreutils.
58225
58226         * lib/.gdb-history: Remove; this doesn't belong here.
58227
58228         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58229         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58230         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58231         * lib/getcwd.c: New files.
58232
58233         * lib/dirname.h: Include <stdbool.h>.
58234         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58235         for consistency with POSIX terminology.  All uses changed.
58236         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58237         (strip_trailing_slashes): Use bool for booleans.
58238         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58239
58240         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58241         sometimes returns a positive errno value even when it succeeds.
58242         (print_errno_message) [!LIBC]: Fall back on strerror if
58243         __strerror_r fails.
58244
58245         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58246         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58247         (longest_relative_suffix): New function.
58248         (path_concat): Use it.  Assume first argument is not NULL.
58249         Port to DOS.  Omit redundant separators.
58250         Report an error instead of returning NULL.
58251         Use mempcpy instead of memcpy.
58252         (xpath_concat): Remove: not declared or used.
58253
58254         * lib/same.h: Include <stdbool.h>
58255         (same_name): Return bool, not int.
58256         * lib/same.c (same_name): Likewise.
58257         (errno): Don't declare; we assume C89 or better now.
58258
58259         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58260         if not already defined.
58261
58262         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58263         * lib/dup-safer.c (errno): Likewise.
58264
58265 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         Merge from coreutils.
58268         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58269         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58270         * modules/path-concat: Don't depend on strdup.
58271
58272 2004-08-03  Simon Josefsson  <jas@extundo.com>
58273
58274         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58275         * lib/progname.h: Don't include stdbool.h.
58276
58277 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58278
58279         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58280         * MODULES.html.sh (func_all_modules): Remove fatal.
58281
58282 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58283
58284         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58285
58286 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58287
58288         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58289         working.
58290
58291 2004-08-02  Simon Josefsson  <jas@extundo.com>
58292
58293         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58294         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58295         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58296
58297 2004-08-01  Simon Josefsson  <jas@extundo.com>
58298
58299         * lib/xgetdomainname.c: Include stdlib.h, for free().
58300
58301 2004-07-19  Bruno Haible  <bruno@clisp.org>
58302
58303         * MODULES.html.sh (func_all_modules): Add dummy.
58304
58305 2004-07-16  Simon Josefsson  <jas@extundo.com>
58306
58307         * modules/dummy: New file.
58308
58309 2004-07-16  Simon Josefsson  <jas@extundo.com>
58310
58311         * lib/dummy.c: New file.
58312
58313 2004-07-16  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/backupfile.h: Add extern "C" for C++.
58316         * lib/closeout.h: Likewise.
58317         * lib/copy-file.h: Likewise.
58318         * lib/findprog.h: Likewise.
58319         * lib/full-write.h: Likewise.
58320         * lib/pathname.h: Likewise.
58321         * lib/progname.h: Likewise.
58322         * lib/stpcpy.h: Likewise.
58323         * lib/stpncpy.h: Likewise.
58324         * lib/strcase.h: Likewise.
58325         * lib/strstr.h: Likewise.
58326         * lib/xalloc.h: Likewise.
58327
58328         * lib/mbswidth.h: Add extern "C" for C++.
58329         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58330
58331 2004-07-13  Robert Millan  <robertmh@gnu.org>
58332
58333         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58334
58335 2004-07-09  Simon Josefsson  <jas@extundo.com>
58336
58337         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58338         failed without this.)
58339
58340 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58341
58342         * modules/chown (Files): Add lib/fchown-stub.c, since
58343         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58344
58345 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58346
58347         * lib/fchown-stub.c: New file.
58348
58349 2004-06-24  Jim Meyering  <jim@meyering.net>
58350
58351         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58352
58353 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58354
58355         * modules/argz: Omit "#include".
58356
58357         * MODULES.html.sh (func_all_modules): Add calloc, to match
58358         2004-06-01 addition of calloc module.
58359
58360 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         * m4/argz.m4: New file, which is autoupdated from libtool.
58363
58364 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58365
58366         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58367         libtool.
58368
58369 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58370
58371         * config/srclist-update: Don't insist on "USA." before the
58372         close-comment, as libtool omits the period and puts the */ on a
58373         separate line.
58374         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58375         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58376
58377 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58378
58379         * modules/argz: New file.
58380         * MODULES.html.sh (func_all_modules): Add argz.
58381
58382 2004-06-12  Jim Meyering  <jim@meyering.net>
58383         and  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * modules/hash (Files): Add lib/xalloc.h.
58386         * modules/pipe (Depends-on): Add wait-process.
58387         * modules/stat (Depends-on): Add xalloc.
58388         * modules/userspec (Files): Add lib/userspec.h.
58389         * modules/xstrto
58390
58391         Upgrade from gettext-0.13.
58392         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58393         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58394         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58395
58396 2004-06-10  Jim Meyering  <jim@meyering.net>
58397
58398         * lib/calloc.c: New file.
58399
58400 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * lib/getdate.y (yylex): Allow space between sign and number.
58403         Problem reported by Dan Jacobson.
58404
58405 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58406
58407         Merge from coreutils CVS.
58408
58409         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58410         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58411         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58412         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58413         xstrtol.m4: Fix copyright date and/or serial number.
58414
58415         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58416         See if we need an fchown replacement.
58417         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58418         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58419         and use the replacement function if we detect either defect.
58420
58421         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58422         gl_UTIMECMP.
58423
58424 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58425         and  Jim Meyering  <jim@meyering.net>
58426
58427         Merge from coreutils CVS.
58428
58429         * lib/stat-macros.h: New file, with contents from file-type.h
58430         and coreutils' system.h.
58431         * lib/file-type.c: Include "stat-macros.h".
58432         * lib/file-type.h (file_type): Move all macro definitions to new file,
58433         stat-macros.h.
58434
58435         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58436         Wrap old code with this conditional.
58437         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58438         function that does not dereference symlinks.
58439         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58440
58441         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58442         dependency problems.
58443         (xreadlink): Accept new arg SIZE, for efficiency.
58444         All decls and uses changed.
58445         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58446
58447         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58448         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58449
58450         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58451         sysexits.h.
58452
58453 2004-06-01  Jim Meyering  <jim@meyering.net>
58454
58455         * m4/calloc.m4: New file.
58456
58457 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58460         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58461         Also, fix a typo in a diagnostic.
58462
58463 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58464
58465         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58466         or AC_FUNC_REALLOC.
58467
58468 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58469
58470         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58471         macros to be defined.
58472         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58473         the allocator returns NULL because the requested size is zero.
58474
58475 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58476
58477         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58478         var.  Add comment explaining why libc still defines it.  This
58479         merges the following patch from glibc:
58480         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58481
58482 2004-05-20  Andreas Schwab  <schwab@suse.de>
58483
58484         * m4/free.m4: Replace free if it not known to work, not the other
58485         way round.
58486
58487 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58490         present in glibc since revision 1.1 of this file.
58491         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58492         obstack_alignment_mask, obstack_alloc, obstack_base,
58493         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58494         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58495         obstack_grow0, obstack_init, obstack_int_grow,
58496         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58497         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58498         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58499         nonexistent functions.
58500
58501 2004-05-18  Karl Berry  <karl@gnu.org>
58502
58503         * config/srclist.txt: break link for vasnprintf.c.
58504
58505 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58506
58507         Port obstack to the AS/400, where pointers are 16 bytes wide and
58508         you cannot cast an integer to a valid pointer.  This patch is
58509         currently waiting to be integrated into glibc; see
58510         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58511
58512         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58513         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58514         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58515         (struct obstack): temp member is now a union of a pointer and
58516         an integer, instead of an integer.  All integer uses changed.
58517         This does not affect the physical layout of struct obstack,
58518         except on hosts (like the AS/400) where the size or alignment of
58519         void * is greater than that of ptrdiff_t.
58520         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58521         __STDC__)]: Store temporary in pointer member of union, not
58522         integer member.
58523         * lib/obstack.c: Include <stddef.h>, for offsetof.
58524         (struct fooalign): Remove; it doesn't need a name.
58525         (union fooround): Change double to long double, and add void *.
58526         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58527         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58528         not a macro.  Hence the values are always int; so remove all
58529         casts-to-int in uses.
58530
58531 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58532
58533         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58534         we can get this patch merged into glibc.
58535
58536 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58537             Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         * m4/argp: Depend on alloca.
58540
58541 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58542             Paul Eggert  <eggert@cs.ucla.edu>
58543
58544         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58545         freecoding.
58546
58547 2004-05-17  Bruno Haible  <bruno@clisp.org>
58548
58549         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58550         precision that consists of a '.' followed by an empty digit string.
58551         Patch by Tor Lillqvist <tml@iki.fi>.
58552
58553 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58554
58555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58556         for backward compatibility with older code.  We need our own
58557         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58558         it under some other name, and our alloca.h will define it.
58559
58560 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58561             Derek Price  <derek@ximbiot.com>
58562
58563         * lib/alloca.c: Include <alloca.h>, to get our interface.
58564         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58565         include <alloca.h> first.  Use C89 prototype for alloca; this
58566         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58567         Use #elif for simplicity, since we can assume C89 now.
58568         Don't try to source the system alloca.h since it will not be found
58569         and to prevent recursively including its replacement.
58570         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58571         * lib/regex.c: Likewise.
58572
58573 2004-05-16  Derek Price  <derek@ximbiot.com>
58574             Paul Eggert  <eggert@cs.ucla.edu>
58575
58576         getline cleanup.  This changes the getndelim2 API: both order of
58577         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58578         no delimiter).
58579
58580         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58581         interface does that.
58582         (getline): Always use getdelim, so that we don't have two
58583         copies of this code.
58584         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58585         if available.
58586         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58587         (GETNDELIM2_MAXIMUM): New macro.
58588         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58589         instead of the old practice of delim2==0.  All callers changed.
58590         Return -1 on overflow, instead of returning junk.
58591         Do not set *linesize unless allocation succeeds.
58592         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58593         that we include sys/types.h.
58594         * lib/getnline.h: Likewise.
58595         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58596         (getndelim2): Reorder arguments.
58597         * lib/getnline.c (getnline, getndelim):
58598         Don't discard the NMAX argument.
58599         (getnline): Invoke getndelim, to avoid code duplication.
58600         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58601         of (size_t) -1 by callers of the getnline family.
58602
58603 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58604
58605         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58606         Check for gettimeofday.
58607         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58608         Check for settimeofday, stime.
58609
58610 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58611
58612         * lib/nanosleep.c (suspended): Change its type from int to
58613         sig_atomic_t volatile.
58614         (first_call): Make it private to rpl_nanosleep, and have it
58615         be zero initially as that's a bit faster.
58616         (my_usleep): Round up fractional times instead of truncating them,
58617         as this is the usual meaning for 'sleep'.
58618
58619         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
58620         doesn't work.
58621         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
58622         (ENOSYS): Define if not defined.
58623         (settime): Fall back on stime if it exists and settimeofday fails.
58624         But don't bother with fallbacks if a method fails with errno == EPERM.
58625
58626 2004-05-11  Jim Meyering  <jim@meyering.net>
58627
58628         Prior to this change, the save_cwd caller required read access to the
58629         current directory on most systems (ones with the fchdir function).
58630
58631         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
58632         fails, try write-only, and finally, resort to using xgetcwd.
58633
58634 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * lib/obstack.c, obstack.h: Import changes from libc.
58637
58638 2004-04-28  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58641         also implicitly appends .exe to executables.
58642         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58643         accepts Windows pathnames.
58644         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58645         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58646         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58647         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58648         Reported by Derek Robert Price <derek@ximbiot.com>.
58649
58650 2004-04-21  Karl Berry  <karl@gnu.org>
58651
58652         * config/srclist.txt (localcharset.c): break sync.
58653
58654 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58655
58656         * m4/host-os.m4: Add a copyright notice.
58657
58658 2004-04-20  Jim Meyering  <jim@meyering.net>
58659
58660         Change UTILS_ to gl_ in AC_DEFINE'd names.
58661         Change utils_- and jm_-prefixed variables, too.
58662         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58663         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58664         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58665
58666         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58667         Don't emit trailing blanks.
58668         Also rename jm_-prefixed variables to have gl_ prefix.
58669
58670         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58671         Also rename jm_-prefixed variables to have gl_ prefix.
58672
58673         * m4/jm-macros.m4: Reflect the renamings.
58674         * m4/prereq.m4: Likewise.
58675
58676 2004-04-20  Jim Meyering  <jim@meyering.net>
58677
58678         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58679         memory.
58680
58681 2004-04-20  Jim Meyering  <jim@meyering.net>
58682             Bruno Haible  <bruno@clisp.org>
58683
58684         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58685         memory when realloc fails.
58686
58687 2004-04-19  Jim Meyering  <jim@meyering.net>
58688
58689         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58690         now that readutmp.c may call `free (0)'.
58691
58692 2004-04-19  Bruno Haible  <bruno@clisp.org>
58693
58694         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58695         * m4/inttypes_h.m4: Likewise.
58696         * m4/stdint_h.m4: Likewise.
58697         * m4/intmax_t.m4: Likewise.
58698         * m4/uintmax_t.m4: Likewise.
58699
58700 2004-04-18  Jim Meyering  <jim@meyering.net>
58701
58702         * m4/prereq.m4: Don't forbid jm_ prefix.
58703
58704         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58705         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58706         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58707         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58708         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58709         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
58710         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
58711         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
58712         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
58713         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
58714         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
58715         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
58716         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
58717         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
58718         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
58719         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
58720         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
58721         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
58722         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
58723
58724 2004-04-18  Jim Meyering  <jim@meyering.net>
58725
58726         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
58727         failure, don't leak memory and do call END_UTMP_ENT.
58728
58729 2004-04-16  Jim Meyering  <jim@meyering.net>
58730
58731         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
58732         coreutils' stat program.
58733         (gl_PREREQ): Don't require jm_PREREQ_STAT.
58734
58735 2004-04-11  Paul Eggert  <eggert@twinsun.com>
58736
58737         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
58738         C89.
58739         (CHAR_BIT): Remove, since we assume C89.
58740         Include <stdint.h> if available, as per current Autoconf CVS advice.
58741
58742 2004-03-31  Jim Meyering  <jim@meyering.net>
58743
58744         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
58745         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
58746         * m4/xalloc.m4: Likewise.
58747
58748 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58749
58750         Merge from coreutils.
58751
58752         * m4/inttostr.m4: New file.
58753         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
58754         Require AM_STDBOOL_H and gl_TIMESPEC instead.
58755         Require gl_CLOCK_TIME.
58756         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
58757
58758 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58759
58760         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
58761         not bool, to be more consistent with Unix conventions.
58762         Suggested by Bruno Haible.
58763
58764         Merge from coreutils.
58765
58766         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
58767         * lib/umaxtostr.c: New files.
58768
58769         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
58770         the usual <time.h> dance.
58771         (get_date): Change signature to support fractional time stamps.
58772         All callers changed.
58773         * lib/getdate.y: Include "getdate.h" first, as we can now
58774         assume C89 and don't need to worry about 'const'.
58775         Similarly, include "unlocked-io.h" near start, not in middle.
58776         Include <limits.h>.
58777         (textint.value): Use long int rather than int.
58778         (textint.digits): Use size_t rather than int.
58779         (BILLION, LOG10_BILLION): New constants.
58780         (parser_control): New member rel_ns.  Members day_ordinal,
58781         time_zone, month, day, hour, minutes, rel_year, rel_month,
58782         rel_day, rel_hour, rel_minutes, rel_seconds
58783         are now long int, not int.  Member seconds is now struct timespec,
58784         not int.  New member timespec_seen.  Members dates_seen, days_seen,
58785         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
58786         not int.
58787         (%union.intval): Now long int, not int.
58788         New member timespec.
58789         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
58790         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
58791         (spec): Now is a timespec or an item list.
58792         (timespec, items): New nonterminals.
58793         (time, rel, relunit, number, get_date):
58794         Add support for fractional seconds.
58795         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
58796         (gmtime, localtime, mktime): Remove decls; not needed with C89.
58797         (to_hour): First arg is now long int, not int.
58798         (to_year): Returns long int, not int.
58799         Don't treat year -70 like 70.
58800         (tm_diff): Returns long int, not int.
58801         (lookup_word): Use bool instead of int when appropriate.
58802         (yylex): Use size_t for count, not int.
58803         Detect overflow when parsing large integer constants.
58804         Add support for fractions.
58805         (get_date): Make pointers 'const' if possible.
58806         Use more-portable code to detect integer overflow.
58807         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
58808         Don't use ctime; it's not reliable if the year has >4 digits.
58809
58810         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
58811         This is for compatibility with BSD.
58812
58813         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
58814         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
58815         From coreutils' system.h.
58816
58817         * lib/userspec.c: Don't include "posixver.h".
58818         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
58819         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
58820         compatible extension.  Simplify code by removing a boolean int
58821         that was always nonzero if a string was nonnull.
58822
58823 2004-03-30  Jim Meyering  <jim@meyering.net>
58824
58825         Merge from coreutils.
58826
58827         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
58828         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
58829         on some systems one must include <grp.h> before it.
58830         Reported by Christian Krackowizer.
58831
58832 2004-03-30  Jim Meyering  <jim@meyering.net>
58833
58834         Merge from coreutils.
58835
58836         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
58837
58838         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
58839         an empty input stream.
58840
58841         * lib/readtokens.c: Include <stdbool.h>.
58842         (readtoken): Use `size_t' rather than int/long.
58843         All callers adjusted.
58844         Use `bool' rather than `int' where appropriate.
58845         Use memset rather than an explicit loop.
58846         Use x2nrealloc rather than xrealloc.
58847         Allow the use of `\0' as a delimiter.
58848         (readtokens): Likewise.
58849         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
58850
58851 2004-03-30  Jim Meyering  <jim@meyering.net>
58852
58853         * m4/realloc.m4: Remove file, since now it does no more than
58854         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
58855         the `configure.ac' section of module/realloc.
58856         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
58857
58858 2004-03-30  Bruno Haible  <bruno@clisp.org>
58859
58860         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
58861         nonnull.
58862
58863 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58864
58865         Merge changes to getloadavg.c from coreutils and Emacs.
58866
58867         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
58868         Define to an expression, not to the empty string.
58869         Include cloexec.h and xalloc.h.
58870         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
58871         Use set_cloexec_flag rather than rolling our own.
58872         * lib/cloexec.c, lib/cloexec.h: New files.
58873
58874 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58875
58876         * m4/cloexec.m4: New file.
58877
58878 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58879
58880         * lib/getopt.h: Sync with libc CVS.
58881
58882 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58883             Bruno Haible  <bruno@clisp.org>
58884
58885         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
58886         mbswidth.
58887
58888 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58889             Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/mbswidth.h: Include <wchar.h> only if
58892         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
58893         <wchar.h>.
58894         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
58895
58896 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58897
58898         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
58899         Sync with libc CVS.
58900         * lib/getopt_int.h: New file, also synced from libc.
58901
58902 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58903
58904         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
58905         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
58906         Bring back getopt.c, getopt.h, getopt1.c.
58907
58908 2004-03-07  Paul Eggert  <eggert@twinsun.com>
58909
58910         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
58911         All uses changed.  Check for sa_sigaction member; this fixes
58912         a bug first reported by Jason Andrade in
58913         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
58914
58915 2004-03-07  Paul Eggert  <eggert@twinsun.com>
58916
58917         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
58918         '#if' expressions.  Unlike the code it replaces, it does not
58919         depend on (defined _SC_PAGESIZE).  However, it does depend on
58920         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
58921         first reported by Jason Andrade in
58922         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
58923
58924 2004-02-25  Simon Josefsson  <jas@extundo.com>
58925
58926         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
58927
58928 2004-02-25  Simon Josefsson  <jas@extundo.com>
58929
58930         * lib/strdup.h: New file.
58931         * lib/strdup.c: Include it.
58932         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
58933         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
58934
58935 2004-02-23  Karl Berry  <karl@gnu.org>
58936
58937         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
58938         (from fencepost.gnu.org:/gd/gnuorg).
58939
58940 2004-02-23  Karl Berry  <karl@gnu.org>
58941
58942         * config/srclistvars.sh (GNUORG) [karl]: redefine.
58943         * config/srclist.txt: add maintain/standards documents.
58944
58945 2004-02-18  Bruno Haible  <bruno@clisp.org>
58946
58947         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
58948         Reported by Derek Robert Price <derek@ximbiot.com>.
58949
58950 2004-02-16  Karl Berry  <karl@gnu.org>
58951
58952         * config/mkinstalldirs, install-sh: update from automake.
58953
58954 2004-02-06  Karl Berry  <karl@gnu.org>
58955
58956         * m4/po.m4: update from gettext 0.14.1.
58957
58958 2004-02-06  Karl Berry  <karl@gnu.org>
58959
58960         * lib/config.charset: update from gettext 0.14.1.
58961
58962 2004-02-05  Paul Eggert  <eggert@twinsun.com>
58963
58964         Add comments and code, prompted by suggestions from Bruno Haible
58965         for sh-quote.
58966         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
58967         describing the enum quoting_style values.
58968         * lib/quotearg.c (quotearg_alloc): New function.
58969         (quotearg_buffer_restyled): Treat lone { and } as special.
58970         Treat = as special.  Work around bug with older shells
58971         that "see" a '\' that is really the 2nd byte of a multibyte char.
58972         Quote empty string with shell_quoting_style.
58973
58974 2004-02-03  Bruno Haible  <bruno@clisp.org>
58975
58976         * m4/pipe.m4: New file, from GNU gettext.
58977
58978 2004-02-03  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/pipe.h: New file, from GNU gettext.
58981         * lib/pipe.c: New file, from GNU gettext.
58982
58983 2004-01-27  Bruno Haible  <bruno@clisp.org>
58984
58985         * m4/execute.m4: New file, from GNU gettext.
58986
58987 2004-01-27  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/execute.h: New file, from GNU gettext.
58990         * lib/execute.c: New file, from GNU gettext.
58991         * lib/w32spawn.h: New file, from GNU gettext.
58992
58993 2004-01-24  Paul Eggert  <eggert@twinsun.com>
58994
58995         Merge from diffutils.
58996
58997         * lib/file-type.c (file_type): Add typed memory objects.
58998         * lib/file-type.h (S_TYPEISTMO): New macro.
58999
59000         * lib/c-stack.h (c_stack_action): Remove argv argument.
59001         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59002         (die): Don't calculate message unless segv_action returns.
59003         (get_stack_location, min_address_from_argv, max_address_from_argv,
59004         volatile stack_base, volatile_stack_size): Remove.
59005         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59006         that every segmentation violation is a stack overflow.  (Ouch!)
59007         See Debian bug 136249 (still outstanding) for more info about why
59008         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59009
59010 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59011
59012         Exit-status fix from coreutils.
59013
59014         Use exit_failure consistently in place of EXIT_FAILURE,
59015         so that program exit statuses are consistent on failure.
59016
59017         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59018         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59019         * lib/argmatch.h: Comment fix to match the above.
59020         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59021         Now a macro referring to exit_failure, instead of a separate
59022         variable.  Include "exitfail.h" to get it.
59023         * lib/xstrtol.h: Include "exitfail.h".
59024         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59025
59026         * lib/long-options.c (parse_long_options): Use prototype
59027         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59028         for clarity.
59029
59030 2004-01-21  Jim Meyering  <jim@meyering.net>
59031
59032         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59033         so as not to conflict with a different-sized __mktime_internal
59034         function in GNU libc.
59035         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59036         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59037
59038 2004-01-20  Karl Berry  <karl@gnu.org>
59039
59040         * config/config.guess: update from config.
59041
59042         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59043
59044 2004-01-20  Bruno Haible  <bruno@clisp.org>
59045
59046         Safer stack allocation.
59047         * lib/setenv.c: Include allocsa.h.
59048         (alloca): Remove fallback definition.
59049         (freea): Remove macro.
59050         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59051         instead of freea.
59052
59053 2004-01-20  Bruno Haible  <bruno@clisp.org>
59054
59055         * m4/eealloc.m4: New file, from GNU gettext.
59056
59057 2004-01-20  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/allocsa.m4: New file, from GNU gettext.
59060
59061 2004-01-20  Bruno Haible  <bruno@clisp.org>
59062
59063         * lib/xallocsa.h: New file, from GNU gettext.
59064         * lib/xallocsa.c: New file, from GNU gettext.
59065
59066 2004-01-20  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59069
59070 2004-01-20  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59073         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59074         specially.
59075
59076 2004-01-20  Bruno Haible  <bruno@clisp.org>
59077
59078         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59079         patch.
59080
59081 2004-01-20  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59084
59085 2004-01-20  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/eealloc.h: New file.
59088
59089 2004-01-20  Bruno Haible  <bruno@clisp.org>
59090
59091         * lib/binary-io.h: Avoid warnings on Cygwin.
59092
59093 2004-01-20  Bruno Haible  <bruno@clisp.org>
59094
59095         * lib/allocsa.h: New file, from GNU gettext.
59096         * lib/allocsa.c: New file, from GNU gettext.
59097
59098 2004-01-18  Karl Berry  <karl@gnu.org>
59099
59100         * doc/gpl.texi, doc/lgpl.texi: new files.
59101
59102 2004-01-18  Karl Berry  <karl@gnu.org>
59103
59104         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59105         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59106
59107 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59108
59109         Merge from coreutils.
59110
59111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59112         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59113         (gl_DEFAULT_POSIX2_VERSION): Move
59114         the documentation from 'configure' into 'config.hin',
59115         so that 'configure --help' isn't burdened by it and
59116         we don't have to worry about its formatting there.
59117         Reword the documentation so that it's more succinct
59118         and can be run together into a single paragraph.
59119         * m4/same.m4 (gl_SAME): Check for pathconf.
59120
59121 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59122
59123         Merge from coreutils.
59124
59125         * lib/posixver.c: Include posixver.h.
59126
59127         * lib/same.c: Include <stdbool.h>, <limits.h>.
59128         (_POSIX_NAME_MAX): Define if not defined.
59129         (MIN): New macro.
59130         (same_name): If file names are silently truncated, report
59131         that the file names are the same if they are the same after
59132         the silent truncation.
59133
59134         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59135         conversion function.
59136         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59137         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59138         longer needed.
59139
59140 2004-01-15  Jim Meyering  <jim@meyering.net>
59141
59142         Merge from coreutils.
59143
59144         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59145         if no library is required.
59146         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59147         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59148         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59149         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59150         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59151         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59152         value, $ac_cv_search_crypt, if it's "none required".
59153         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59154         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59155         not gl_FUNC_GETLOADAVG.
59156         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59157         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59158
59159 2004-01-15  Jim Meyering  <jim@meyering.net>
59160
59161         Merge from coreutils.
59162
59163         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59164         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59165         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59166
59167         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59168         optional configure-time default.
59169
59170         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59171
59172         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59173
59174 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59175
59176         Merge from coreutils.
59177
59178         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59179         value, $ac_cv_search_nanosleep, if it's "none required".
59180
59181 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59182
59183         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59184         with like-named macro in fnmatch.c.
59185         (EXT): Use an internal constant instead.
59186
59187         Merge fnmatch patches from glibc.
59188         * lib/fnmatch.c (mbsinit): Remove define.
59189         Add libc_hidden_ver (__fnmatch, fnmatch).
59190         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59191         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59192
59193 2004-01-14  Karl Berry  <karl@gnu.org>
59194
59195         * config/install-sh: update from automake.
59196
59197 2004-01-13  Karl Berry  <karl@gnu.org>
59198
59199         * config/install-sh: update from automake.
59200
59201 2004-01-09  Karl Berry  <karl@gnu.org>
59202
59203         * config/install-sh: update from automake.
59204
59205 2004-01-05  Karl Berry  <karl@gnu.org>
59206
59207         * config/config.{sub,guess}: update from config.
59208
59209 2003-12-31  Karl Berry  <karl@gnu.org>
59210
59211         * config/depcomp: update from automake.
59212
59213 2003-12-14  Karl Berry  <karl@gnu.org>
59214
59215         * lib/config.charset: update from gettext-runtime.
59216
59217 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59218
59219         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59220         Bug reported by Alfred M. Szmidt.
59221
59222 2003-12-03  Bruno Haible  <bruno@clisp.org>
59223
59224         * m4/gettext.m4: Upgrade from gettext-0.13.
59225         * m4/po.m4: Upgrade from gettext-0.13.
59226         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59227         * m4/intmax.m4: New file, from gettext-0.13.
59228         * m4/printf-posix.m4: New file, from gettext-0.13.
59229
59230 2003-11-29  Karl Berry  <karl@gnu.org>
59231
59232         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59233
59234 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59235             Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/printf-parse.h: Don't include sys/types.h.
59238         (ARG_NONE): New macro.
59239         (char_directive): Change type of *arg_index fields to size_t.
59240         * lib/printf-parse.c: Don't include sys/types.h.
59241         (SSIZE_MAX): Remove macro.
59242         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59243         Remove unnecessary overflow check.
59244         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59245         fields.
59246
59247 2003-11-25  Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59250
59251 2003-11-25  Bruno Haible  <bruno@clisp.org>
59252
59253         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59254         gt_TYPE_SSIZE_T.
59255
59256 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59257
59258         * modules/alloca: Remove dependency on xalloc.
59259
59260 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59261
59262         * lib/alloca.c: Remove dependency on xalloc module.
59263         (xalloc_die): Remove.
59264         (memory_full) [!defined emacs]: New macro.
59265         [!defined emacs]: Don't include xalloc.h.
59266         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59267         address arithmetic overflows.  Change datatypes a bit to avoid
59268         unnecessary casts.
59269
59270 2003-11-22  Jim Meyering  <jim@meyering.net>
59271
59272         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59273         s/size/size_t/.
59274
59275 2003-11-21  Karl Berry  <karl@gnu.org>
59276
59277         * config/config.{sub,guess}: update from config.
59278
59279 2003-11-18  Karl Berry  <karl@gnu.org>
59280
59281         * config/config.{sub,guess}: update from config.
59282
59283         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59284
59285 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59286
59287         * README: Mention that S+T cannot overflow if S is the size of
59288         an existing object and T is sufficiently small.
59289
59290 2003-11-17  Jim Meyering  <jim@meyering.net>
59291
59292         On systems without utime and without a utimes function capable of
59293         dealing with a NULL struct utimbuf* argument, this utime replacement
59294         could -- in unusual circumstances -- leak a file descriptor.
59295         * lib/utime.c: Include <unistd.h> and <errno.h>.
59296         (utime_null): Be sure to close `fd' and to preserve errno.
59297         Reported by Geoff Collyer via Arnold Robbins.
59298
59299 2003-11-17  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59302         (Depends-on): Add xsize.
59303
59304 2003-11-17  Bruno Haible  <bruno@clisp.org>
59305
59306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59307
59308 2003-11-17  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/vasnprintf.c (alloca): Remove fallback definition.
59311         (freea): Remove definition.
59312         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59313         Reported by Paul Eggert.
59314
59315 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59316             Bruno Haible  <bruno@clisp.org>
59317
59318         Protect against address arithmetic overflow.
59319         * lib/printf-args.h: Include stddef.h.
59320         (arguments): Change type of field 'count' to size_t.
59321         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59322         'unsigned int' where appropriate.
59323         * lib/printf-parse.h: Include sys/types.h.
59324         (char_directive): Change type of *arg_index fields to ssize_t.
59325         (char_directives): Change type of fields 'count', max_*_length to
59326         size_t.
59327         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59328         (SSIZE_MAX): Define fallback value.
59329         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59330         instead of 'int' where appropriate. Check a_allocated, d_allocated
59331         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59332         * lib/vasnprintf.c: Include xsize.h.
59333         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59334         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59335         overflow. Avoid wraparound when converting a width or precision from
59336         decimal to binary.
59337
59338 2003-11-16  Bruno Haible  <bruno@clisp.org>
59339
59340         Update from GNU gettext.
59341         * lib/printf-parse.c: Generalize to it can be compiled for wide
59342         strings.
59343         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59344         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59345         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59346         SNPRINTF): New macros.
59347         Don't include <alloca.h> if the file is used inside libintl.
59348         (local_wcslen): New function, for Solaris 2.5.1.
59349         (VASNPRINTF): Use it instead of wcslen.
59350
59351 2003-11-16  Bruno Haible  <bruno@clisp.org>
59352
59353         * lib/xsize.h (xmax): New function.
59354         (xsum, xsum3, xsum4): Declare as "pure" functions.
59355
59356 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59357
59358         * modules/xalloc (Files): Undo latest change, since xalloc.h
59359         no longer needs SIZE_MAX or PTRDIFF_MAX.
59360
59361 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59362
59363         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59364         gl_PTRDIFF_MAX.
59365
59366 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59367
59368         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59369         "return", to pacify some unknown compiler.  Problem reported
59370         by Joerg Schilling.
59371
59372 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59373
59374         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59375         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59376         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59377         heuristic is just as accurate as far as we know, and it removes a
59378         dependency on size_max.m4 and ptrdiff_max.m4.
59379
59380 2003-11-11  Bruno Haible  <bruno@clisp.org>
59381
59382         * modules/xsize (Files): Add m4/size_max.m4.
59383         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59384
59385 2003-11-11  Bruno Haible  <bruno@clisp.org>
59386
59387         * m4/size_max.m4: New file.
59388         * m4/ptrdiff_max.m4: New file.
59389         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59390         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59391         (gl_XALLOC): Invoke it.
59392
59393 2003-11-11  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59396         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59397         defined.
59398
59399 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59400
59401         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59402         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59403         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59404         From Bruno Haible.
59405         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59406         not (size_t) -1, since it's defined here.
59407
59408 2003-11-09  Karl Berry  <karl@gnu.org>
59409
59410         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59411
59412 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59413
59414         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59415         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59416         Reject sizes of exactly SIZE_MAX bytes.
59417         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59418         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59419
59420 2003-11-05  Bruno Haible  <bruno@clisp.org>
59421
59422         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59423         SIZE_MAX defined in <limits.h> on Solaris.
59424
59425 2003-11-04  Jim Meyering  <jim@meyering.net>
59426
59427         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59428         variable names, rather than @VAR@.
59429         * modules/poll: Likewise.
59430
59431 2003-11-04  Bruno Haible  <bruno@clisp.org>
59432
59433         * modules/xsize: New file.
59434         * modules/linebreak: Depend on xsize.
59435         * MODULES.html.sh (func_all_modules): Add xsize.
59436
59437 2003-11-04  Bruno Haible  <bruno@clisp.org>
59438
59439         * m4/xsize.m4: New file.
59440
59441 2003-11-04  Bruno Haible  <bruno@clisp.org>
59442
59443         * lib/xsize.h: New file.
59444         * lib/linebreak.c: Include xsize.h.
59445         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59446         argument for overflow.
59447         Suggested by Paul Eggert.
59448
59449 2003-11-03  Karl Berry  <karl@gnu.org>
59450
59451         * config/config.{guess,sub}: update from config.
59452
59453 2003-11-03  Jim Meyering  <jim@meyering.net>
59454
59455         * modules/userspec (lib_SOURCES): Add userspec.h.
59456         (Include): Add "userspec.h".
59457         Improve description.
59458
59459 2003-11-03  Jim Meyering  <jim@meyering.net>
59460
59461         * lib/userspec.c: Include "userspec.h".
59462         * lib/userspec.h: New file.
59463
59464 2003-11-03  Bruno Haible  <bruno@clisp.org>
59465
59466         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59467
59468 2003-11-03  Bruno Haible  <bruno@clisp.org>
59469
59470         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59471         available, to avoid (extremely rare) race condition.
59472         Suggested by Paul Eggert.
59473
59474 2003-11-02  Karl Berry  <karl@gnu.org>
59475
59476         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59477
59478 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59479
59480         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59481         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59482         (read_filesystem_list): Set and use me_type_malloced.
59483         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59484         whatever the type happens to be), for brevity and consistency.
59485         Check for size calculation overflow on Alphas running OSF/1.
59486
59487 2003-10-31  Jim Meyering  <jim@meyering.net>
59488
59489         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59490
59491         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59492
59493 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59494             Bruno Haible  <bruno@clisp.org>
59495
59496         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59497         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59498
59499 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59502         netbsd*-gnu*.  Suggested by Robert Millan.
59503
59504 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59505
59506         * modules/group-member: Depend on stdbool.
59507
59508 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59509
59510         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59511
59512 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59513
59514         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59515         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59516         after the 'gnu' in these cases.  This fixes some bugs in the
59517         previous change, and is based on suggestions by Robert Millan.
59518
59519 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59520
59521         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59522         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59523         no longer needed.
59524         * lib/quotearg.c (quotearg_n_options): Use it.
59525         * lib/group-member.c: Include <stdbool.h>.
59526         (free_group_info): Arg is now const *; don't free arg.
59527         (get_group_info): Now returns bool and accepts struct group_info *,
59528         rather than returning a malloc'ed struct group_info *.
59529         All uses changed.  Check for overflow in internal size calculation.
59530
59531         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59532         rather than xmalloc/xrealloc.
59533         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59534         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59535         conformance bug: the old code used a pointer after freeing the
59536         storage that it addressed.
59537         * lib/hash.c (hash_initialize): Simplify the code by using
59538         xalloc_oversized rather than doing it by hand.
59539         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59540         the buffer preserved.  Use free and xmalloc instead.
59541         * lib/quotearg.c (quotearg_n_options): Likewise.
59542         Use a simpler test for size overflow.  Don't use xalloc_oversized
59543         because unsigned int might be wider than size_t (!); this suggests
59544         that we should switch from unsigned int to size_t for slot numbers.
59545
59546 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59547
59548         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59549         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59550         NetBSD kernels.  Requested by Richard Stallman.
59551
59552 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59553
59554         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59555         to allocate the returned structure.  Do not allocate a subarray,
59556         as x2nrealloc will do that.
59557         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59558         instead of xnrealloc.
59559         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59560
59561 2003-10-27  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/stdbool_.h: Better support for BeOS.
59564
59565 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59566
59567         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59568         now uses inline.
59569
59570 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59571
59572         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59573         callers that want to do their own size-overflow checking.  Include
59574         <stdbool.h>, since xalloc_oversized returns bool.
59575         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59576         to use xalloc_oversized.
59577
59578         Add two functions x2realloc, x2nrealloc, for programs that grow
59579         arrays dynamically by doubling their sizes.
59580         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59581         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59582         New functions.
59583
59584         Port to C99 semantics for 'inline' of external functions.
59585         Bug reported by Bruno Haible.
59586         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59587         with the old contents of xnmalloc.
59588         (xnmalloc, xmalloc): Use it.
59589         (xnrealloc_inline): New static inline function,
59590         with the old contents of xnrealloc.
59591         (xnrealloc, xrealloc): Use it.
59592
59593         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59594         that.
59595
59596 2003-10-26  Karl Berry  <karl@gnu.org>
59597
59598         * config/srclist.txt (COPYING.DOC): no longer available from
59599         /gd/gnuorg; don't know where the ultimate source is.
59600
59601 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59602
59603         Fix several address-calculation bugs in the hash modules,
59604         plus some minor code cleanup.
59605
59606         * lib/hash.h: Include <stdbool.h>, for bool.
59607         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59608         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59609         hash_get_n_entries, hash_get_max_bucket_length,
59610         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59611         hash_rehash): Use size_t rather than unsigned.
59612         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59613         hash_get_n_buckets_used, hash_get_n_entries,
59614         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
59615         hash_get_entries, hash_do_for_each, hash_string, is_prime,
59616         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
59617         Likewise.
59618         (SIZE_MAX): Define if not defined.
59619         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
59620         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
59621         hash_print):
59622         Use const * when possible.
59623         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
59624         (check_tuning): Fix bug: if tuning parameters were very close to
59625         0 or 1, rounding errors could have caused subscript violations.
59626         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
59627         (hash_initialize): Add 'fail:' label
59628         to free table and return NULL, and use it to simplify code.
59629         Use calloc rather than clearing the storage ourself.
59630         (hash_initialize, hash_rehash): Check for arithmetic overflow in
59631         buffer size calculations.
59632         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
59633         Include <stddef.h>, for size_t.
59634         * lib/hash-pjw.c (hash_pjw): Likewise.
59635         Switch to method described by Bruno Haible.
59636         Include <limits.h>, for CHAR_BIT.
59637         (SIZE_BITS): New macro.
59638
59639 2003-10-23  Paul Eggert  <eggert@twinsun.com>
59640
59641         * m4/getline.m4 (AM_FUNC_GETLINE):
59642         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59643         hosts.  Problem reported by Derek Robert Price in
59644         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59645         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59646         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59647
59648 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59649
59650         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59651         ceiling the allocation at NMAX bytes rather than silently
59652         discarding input bytes before NMAX is reached.  This makes
59653         a difference only if NMAX exceeds SIZE_MAX / 2.
59654
59655         * lib/obstack.c: Merge from glibc.
59656         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59657         Add libc_hidden_def (_obstack_newchunk).
59658         (_obstack_free) [! defined _LIBC]: Remove.
59659         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59660         a clone of the function body.
59661         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59662         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59663
59664         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59665         glibc.
59666         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59667         arg to memcpy.
59668
59669         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59670         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59671         Don't use lvalue casts, as GCC plans to remove support for them
59672         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59673         was also present in the non-GCC version, indicating that this
59674         code had always been buggy and had never been widely used.
59675         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59676         Use the fast variant of each macro, rather than copying the
59677         definiens of the fast variant; that way, we'll be more likely to
59678         catch future bugs in the fast variants.
59679
59680 2003-10-20  Bruno Haible  <bruno@clisp.org>
59681
59682         * modules/wait-process: New file.
59683         * MODULES.html.sh (func_all_modules): Add wait-process.
59684
59685 2003-10-20  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/wait-process.m4: New file.
59688
59689 2003-10-20  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/wait-process.h: New file, from GNU gettext.
59692         * lib/wait-process.c: New file, from GNU gettext.
59693
59694 2003-10-19  Jim Meyering  <jim@meyering.net>
59695
59696         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59697         HPUX 10.20.
59698
59699 2003-10-18  Karl Berry  <karl@gnu.org>
59700
59701         * config/config.guess: update from config.
59702
59703 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59704
59705         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59706         (getgroups): First arg is int, not size_t.
59707         Don't let 'free' mangle errno.
59708
59709 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59710
59711         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
59712
59713 2003-10-16  Karl Berry  <karl@gnu.org>
59714
59715         * config/config.{guess,sub}: update from config.
59716
59717 2003-10-16  Jim Meyering  <jim@meyering.net>
59718
59719         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
59720         memcpy.
59721
59722 2003-10-15  Paul Eggert  <eggert@twinsun.com>
59723
59724         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
59725         (SIZE_MAX): Remove.
59726         (new_exclude, add_exclude_file): Initial size no longer needs to
59727         be a power of 2.
59728         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
59729         our own address arithmetic overflow checking.
59730
59731         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
59732         (fnmatch): Do not alloca more than 2000 wide characters;
59733         instead, use malloc for large buffers.
59734         Check for address arithmetic overflow, and return -1
59735         with errno set to ENOMEM in that case.
59736         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
59737         (NEW_PATTERN): Do not alloca more than 8000 bytes;
59738         instead, return -1.  Check for address arithmetic overflow.
59739
59740 2003-10-14  Paul Eggert  <eggert@twinsun.com>
59741
59742         Handle invalid suffixes and overflow independently, so that
59743         callers can treat them independently as needed.  Fix some bugs in
59744         suffix handling, e.g., "100k@" was not diagnosed as an invalid
59745         suffix for a human-readable blocksize.  The major caller-visible
59746         change is the addition of a new
59747         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
59748         that both overflow and suffix chars were found.
59749
59750         * lib/human.c (humblock): Don't check separately for invalid suffix
59751         char; that is xstrtoumax's job (now that its bug is fixed).
59752         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
59753         INTMAX_MAX]: New macros.
59754         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
59755         TYPE_MAXIMUM): New macros.
59756         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
59757         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
59758         if overflow occurs, as it's what __strtol does and it's more useful
59759         in practice.
59760         (__xstrtol): If __strtol reports some error other than ERANGE,
59761         reflect it to the caller as LONGINT_INVALID.  If it reports
59762         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
59763         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
59764         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
59765         value.
59766         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
59767         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
59768         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
59769         [defined UINTMAX_MAX]: New macros.
59770
59771 2003-10-14  Bruno Haible  <bruno@clisp.org>
59772
59773         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
59774
59775 2003-10-14  Bruno Haible  <bruno@clisp.org>
59776
59777         * m4/sig_atomic_t: New file, from GNU gettext.
59778         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
59779
59780 2003-10-14  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
59783         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
59784         Also use volatile where needed.
59785
59786 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59787
59788         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
59789         Change maintainer from Bruno Haible to 'all'.
59790
59791 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59792
59793         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
59794
59795 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59796
59797         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
59798         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
59799         and define in terms of the other primitives.
59800         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
59801         (SIZE_MAX): Define if not already defined.
59802         (array_size_overflow): New function.
59803         (xalloc_die): Abort instead of exiting if 'error' returns.
59804         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
59805         (xmalloc, xrealloc): Use them.
59806         (xcalloc): Check for address arithmetic overflow.
59807         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
59808         a bit faster than strcpy.
59809
59810 2003-10-10  Simon Josefsson  <jas@extundo.com>
59811
59812         * modules/argp (Depends-on): Add restrict and strcase.
59813
59814 2003-10-10  Simon Josefsson  <jas@extundo.com>
59815
59816         * m4/argp.m4: Add AC_C_INLINE.
59817
59818 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59819
59820         Merge getpass from libc, plus a few fixes.
59821
59822         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
59823         Include <stdbool.h>.
59824         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
59825         __fsetlocking to empty.
59826         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
59827         do include <bits/libc-lock.h>.
59828         Do not include <fcntl.h>; not needed.
59829         [_LIBC]: Include <wchar.h>.
59830         (NOTCANCEL_MODE): New macro.
59831         (flockfile, funlockfile) [_LIBC]: New macros.
59832         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
59833         [!_LIBC]: New macros.
59834         (call_fclose): New function.
59835         (getpass): Use it.  Save tty stream separately; this simplifies the
59836         code and makes it more reliable if stdin happens to equal stdout.
59837         Invoke __fsetlocking on tty.
59838         Handle thread cancellation if needed.
59839         Namespace cleanup (use __tcgetattr, __getline).
59840         Use bool for Booleans.
59841         [USE_IN_LIBIO]: Handle wide streams.
59842         [!_LIBC]: Unconditionally do the fseek, since we don't know what
59843         stream might go where.
59844
59845         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
59846         doesn't have to include <stdio.h> before us.
59847         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
59848         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
59849         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
59850         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
59851         if not declared, so that we can use getpass.c code from libc without
59852         rewriting it.
59853         (flockfile, ftrylockfile, funlockfile): New macros.
59854
59855 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59856
59857         * modules/getpass: Depend on stdbool.
59858
59859 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59860
59861         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
59862
59863 2003-10-07  Karl Berry  <karl@gnu.org>
59864
59865         * config/config.{guess,sub}: update from config.
59866
59867 2003-10-06  Jim Meyering  <jim@meyering.net>
59868             Bruno Haible  <bruno@clisp.org>
59869
59870         This lets translators provide better translations for the
59871         "Written by ..." part of --version output.
59872         * lib/version-etc.h: Include stdarg.h.
59873         (version_etc_copyright): Declare as readonly.
59874         (version_etc): Make this function variadic with a NULL-terminated list
59875         of author name strings.
59876         (version_etc_va): New declaration.
59877         * lib/version-etc.c: Include stdarg.h, stdlib.h.
59878         (version_etc_copyright): Declare as readonly.
59879         (version_etc_va): New function. Provide a different translatable string
59880         for each possible number of authors < 10. Abbreviate when there are 10
59881         authors or more.
59882         (version_etc): Make this function variadic. Call version_etc_va.
59883         Suggestion from Gary V. Vaughan.
59884
59885         * lib/long-options.h (parse_long_options): Change prototype: the
59886         authors string is moved to the end and becomes variadic.
59887         * lib/long-options.c: Include stdarg.h.
59888         (parse_long_options): Make this function variadic, too.
59889         Call version_etc_va, not version_etc.
59890
59891 2003-10-06  Bruno Haible  <bruno@clisp.org>
59892
59893         * modules/version-etc-2: Remove file.
59894         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
59895
59896 2003-10-06  Bruno Haible  <bruno@clisp.org>
59897
59898         * modules/fatal-signal: New file.
59899         * MODULES.html.sh (func_all_modules): Add fatal-signal.
59900
59901 2003-10-06  Bruno Haible  <bruno@clisp.org>
59902
59903         * m4/fatal-signal.m4: New file.
59904         * m4/signalblocking.m4: New file, from GNU gettext.
59905
59906 2003-10-06  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/version-etc-2.h: Remove file.
59909         * lib/version-etc-2.c: Remove file.
59910
59911 2003-10-06  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/fatal-signal.h: New file, from GNU gettext.
59914         * lib/fatal-signal.c: New file, from GNU gettext.
59915
59916 2003-10-05  Paul Eggert  <eggert@twinsun.com>
59917
59918         * README: Rework advice for preventing empty .o files.
59919         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
59920         not <sys/types.h>.
59921
59922 2003-10-04  Karl Berry  <karl@gnu.org>
59923
59924         * lib/argp*: update from libc.
59925
59926 2003-10-04  Karl Berry  <karl@gnu.org>
59927
59928         * config/config.{guess,sub}: update from config.
59929
59930 2003-10-02  Bruno Haible  <bruno@clisp.org>
59931
59932         * modules/lchown (Include): Add lchown.h.
59933         * modules/time_r (Include): Use "..." syntax.
59934         * modules/xgetdomainname (Include): Add xgetdomainname.h.
59935
59936 2003-10-01  Simon Josefsson  <jas@extundo.com>
59937
59938         * MODULES.html.sh (func_all_modules): Move gethostname from section
59939         'based on' to section 'lacking' POSIX:2001.
59940
59941 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
59942
59943         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
59944         to output mode on the same stream.
59945
59946 2003-09-29  Paul Eggert  <eggert@twinsun.com>
59947
59948         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
59949         Fix arg typo in previous patch.
59950
59951 2003-09-28  Jim Meyering  <jim@meyering.net>
59952
59953         * lib/error.c: Correct cpp indentation.
59954
59955 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59956
59957         * modules/free: New file.
59958
59959 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59960
59961         * m4/free.m4: New file.
59962
59963 2003-09-27  Paul Eggert  <eggert@twinsun.com>
59964
59965         * lib/minmax.h (MIN, MAX)
59966         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
59967         Omit the special code that used __typeof__, since we worry that
59968         it could be more trouble than it's worth.  See:
59969         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
59970         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
59971
59972         * lib/free.c: New file.
59973
59974 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
59975
59976         Trivial fixes to Makefile.am parts of module listings.
59977         * modules/strstr: Append strstr.h to lib_SOURCES.
59978         * modules/strcase: Likewise, for strcase.h.
59979
59980 2003-09-27  Karl Berry  <karl@gnu.org>
59981
59982         * config/mkinstalldirs: update from automake.
59983
59984 2003-09-26  Paul Eggert  <eggert@twinsun.com>
59985
59986         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
59987         (error_tail): Do not loop, reallocating temporary buffer, since
59988         the output cannot contain more wide characters than the input
59989         contains bytes, the size must be big enough already.  This avoids
59990         one potential size overflow calculation.  Check for size overflow
59991         when calculating temporary buffer size.  Free temporary buffer
59992         when done, if it was allocated with malloc; this plugs a memory
59993         leak.  Remove casts from void * to pointers, that are no longer
59994         needed now that we're assuming C89 or better.
59995
59996         Merge error changes from glibc.
59997
59998         * lib/error.c, error.h: Update copyright notice header to match glibc.
59999         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60000         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60001         Disable cancellation while printing error.
60002         * lib/error.h: Prepend __ to parameter names.
60003
60004 2003-09-26  Jim Meyering  <jim@meyering.net>
60005
60006         * lib/error.c (error_tail): Move some declarations
60007         into inner scope where the local variables are used.
60008
60009 2003-09-26  Bruno Haible  <bruno@clisp.org>
60010
60011         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60012         stpncpy().
60013         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60014
60015 2003-09-26  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60018         (stpncpy): Define as alias for gnu_stpncpy.
60019         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60020
60021 2003-09-25  Simon Josefsson  <jas@extundo.com>
60022
60023         * lib/xgetdomainname.h: New file.
60024         * lib/xgetdomainname.c: New file.
60025
60026 2003-09-25  Simon Josefsson  <jas@extundo.com>
60027             Bruno Haible  <bruno@clisp.org>
60028
60029         * modules/getdomainname: New file.
60030         * modules/xgetdomainname: New file.
60031         * MODULES.html.sh (func_all_modules): Add getdomainname,
60032         xgetdomainname.
60033
60034 2003-09-25  Simon Josefsson  <jas@extundo.com>
60035             Bruno Haible  <bruno@clisp.org>
60036
60037         * m4/getdomainname.m4: New file.
60038
60039 2003-09-25  Simon Josefsson  <jas@extundo.com>
60040             Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/getdomainname.h: New file.
60043         * lib/getdomainname.c: New file.
60044
60045 2003-09-25  Karl Berry  <karl@gnu.org>
60046
60047         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60048
60049 2003-09-25  Karl Berry  <karl@gnu.org>
60050
60051         * config/install-sh: update from automake.
60052
60053 2003-09-25  Bruno Haible  <bruno@clisp.org>
60054
60055         * modules/version-etc-2: New file, from modules/version-etc with
60056         modifications.
60057         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60058
60059 2003-09-25  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60062         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60063
60064 2003-09-24  Simon Josefsson  <jas@extundo.com>
60065
60066         * modules/xgethostname: Add xgethostname.h.
60067
60068 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60069
60070         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60071         the buffer associated with the argument.  Bug reported by
60072         Simon Josefsson.
60073
60074 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60075
60076         * README: Document assumptions that 'int' is at least 32 bits
60077         wide, that integer arithmetic is 2's complement without overflow,
60078         that there are no holes in integer values, that adding sizes of
60079         two nonoverlapping objects can't overflow, and that all-bits-zero
60080         yields scalar zero.  Fix spelling and capitalization typos.
60081
60082 2003-09-19  Karl Berry  <karl@gnu.org>
60083
60084         * lib/argp.h: update from libc.
60085
60086 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60087
60088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60089         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60090         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60091
60092 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60093
60094         * gnulib-tool: Use "test -h", not "test -L", for portability
60095         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60096         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60097         (sed_extract_prog): Issue s commands one-by-one, rather than
60098         using \| in one s command.
60099
60100 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60101
60102         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60103         input error, instead of returning NULL the next time we are called
60104         (and therefore losing track of errno).
60105
60106 2003-09-16  Bruno Haible  <bruno@clisp.org>
60107
60108         * gnulib-tool (func_create_testdir): Warn about duplicated
60109         dependencies.
60110
60111 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60112
60113         * modules/argmatch, modules/fatal, modules/obstack,
60114         modules/xalloc, modules/xgethostname: Sort dependencies by
60115         importance, not alphabetically.
60116
60117 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60118
60119         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60120         fails, so that the caller gets the proper errno.
60121
60122         * lib/readutmp.c (read_utmp): Likewise.
60123         Check for fstat error.  Close stream and free storage
60124         when failing.
60125
60126 2003-09-14  Karl Berry  <karl@gnu.org>
60127
60128         * config/srclist.txt (strdup.c): disable for c89 changes.
60129
60130 2003-09-14  Jim Meyering  <jim@meyering.net>
60131
60132         * lib/getloadavg.c: Correct cpp indentation.
60133         * lib/strdup.c: Likewise.
60134         * lib/vasnprintf.c: Likewise.
60135
60136 2003-09-14  Bruno Haible  <bruno@clisp.org>
60137
60138         * modules/fwriteerror: New file.
60139         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60140
60141 2003-09-14  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/fwriteerror.h: New file.
60144         * lib/fwriteerror.c: New file.
60145
60146 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60147
60148         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60149         modules/xgethostname, modules/xalloc: Depend on exit.
60150
60151 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60152
60153         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60154
60155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60156         and AC_MINIX, too, so that their extensions are available.
60157
60158         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60159         This macro has been superseded by gl_BACKUPFILE.
60160
60161         More patches to assume C89 or better.
60162
60163         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60164
60165         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60166         unconditionally.
60167         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60168         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60169         Include <string.h>, <stdlib.h> unconditionally.
60170         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60171         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60172         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60173         headers or for string.h.
60174         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60175         or strtoul.
60176
60177         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60178         headers.
60179         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60180         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60181         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60182         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60183         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60184         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60185         memcpy, memset.
60186         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60187         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60188         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60189         strtol.
60190         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60191         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60193         strtoul.
60194
60195 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60196
60197         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60198         * lib/obstack.c [!defined _LIBC]: Likewise.
60199         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60200         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60201         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60202
60203         More changes to assume C89 or better.
60204
60205         * lib/error.c (error_tail): Assume vprintf.
60206
60207         * lib/argmatch.c (getenv): Remove decl.
60208         * lib/progreloc.c (get_full_program_name): Define via prototype.
60209         * lib/setenv.c (clearenv): Likewise.
60210         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60211         needed.
60212         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60213         (malloc, memcpy): Remove decls.
60214         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60215         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60216         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60217         (memcpy): Remove macro.
60218         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60219         (__P): Remove.  All uses removed.
60220         (PTR): Remove.  All uses changed to void *.
60221         (CHAR_BIT, NULL): Remove.
60222         (spaces, zeros, memset_space, memset_zero)
60223         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60224         Remove.
60225         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60226         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60227         Define with prototype.
60228         Remove now-unnecessary prototype decl.
60229         (extra_args_spec): Assume ANSI C.  All uses changed.
60230         (extra_args_spec_iso): Remove.
60231         (my_strftime, emacs_strftimeu): Define via prototype.
60232         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60233         unconditionally.
60234         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60235         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60236         (strtoul, strtol): Remove decls.
60237         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60238         LONG_MAX): Remove.
60239         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60240         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60241         (LOCALE_PARAM_PROTO): New macro.
60242         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60243         (INTERNAL (strtol), strtol): Define with a prototype.
60244         (PARAMS): Remove.  All uses removed.
60245         * lib/tempname.c: Include <string.h> unconditionally.
60246         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60247         * lib/xgethostname.c (main): Define with a prototype.
60248         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60249         Include <stdlib.h> unconditionally.
60250         (calloc, malloc, realloc, free): Remove decls.
60251         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60252         Include <stdlib.h> unconditionally.  Sort include file names.
60253         (strtod): Remove.
60254         (xstrtod): Define with a prototype.
60255         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60256         (strtol, strtoul): Remove decls.
60257
60258 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60259
60260         More patches to assume C89 or better.
60261         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60262         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60263         string.h, memchr, STDC_HEADERS.
60264
60265 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60266
60267         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60268         Include <stdlib.h>, <string.h> unconditionally.
60269         Remove now-unnecessary cast to char *.
60270         * lib/strnlen.c: Include <string.h> unconditionally.
60271         * lib/yesno.c (yesno): Define with a prototype.
60272
60273 2003-09-11  Bruno Haible  <bruno@clisp.org>
60274
60275         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60276
60277 2003-09-10  Jim Meyering  <jim@meyering.net>
60278
60279         * lib/error.c: Correct indentation of cpp directives.
60280
60281 2003-09-10  Bruno Haible  <bruno@clisp.org>
60282
60283         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60284         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60285         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60286         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60287         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60288         <stdlib.h> and <string.h> checks.
60289         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60290         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60291
60292 2003-09-10  Bruno Haible  <bruno@clisp.org>
60293
60294         * lib/strcspn.c: Include <string.h> unconditionally.
60295         * lib/strpbrk.c: Include <string.h> unconditionally.
60296         * lib/strstr.c: Include <string.h> unconditionally.
60297         * lib/unicodeio.c: Include <string.h> unconditionally.
60298         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60299         * lib/unsetenv.c: Likewise.
60300         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60301         * lib/yesno.c: Include <stdlib.h> unconditionally.
60302         (rpmatch): Add prototype.
60303
60304 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60305
60306         More patches to assume C89 or better.
60307         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60308         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60309         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60310         or for string.h.
60311         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60312         stdlib.h.
60313         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60314         C headers.
60315         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60316         string.h.
60317         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60318         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60319         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60320         or for string.h.
60321         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60322         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60323         C headers.
60324         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60325         memcpy.
60326         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60327         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60328         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60329         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60330         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60331         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60332         string.h, free.
60333         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60334         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60335         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60336         C headers, or for string.h.
60337         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60338         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60339         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60340         headers, memory.h, stdlib.h, string.h, strings.h.
60341         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60342         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60343         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60344         strchr.
60345         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60346         headers, memory.h, string.h.
60347         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60348         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60349         free.
60350         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60351         headers.
60352         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60353         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60354         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60355         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60356         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60357
60358 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60359
60360         More K&R removal.
60361
60362         * lib/acosl.c (main): Use a prototype.
60363         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60364         tanl.c: Likewise.
60365
60366         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60367
60368         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60369         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60370         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60371         with a prototype.
60372         * lib/getopt.c (const): Remove macro.
60373         Include <string.h> unconditionally.
60374         (my_index): Remove; all uses changed to strchr.
60375         (strlen): Remove decl.
60376         (exchange): Remove forward decl; no longer needed.
60377         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60378         Define with prototype.
60379         * lib/getopt1.c (const): Remove macro.
60380         (getopt_long, getopt_long_only, main): Define with prototype.
60381
60382         * lib/getugroups.c: Include <string.h> unconditionally.
60383
60384         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60385         (getusershell, setusershell, endusershell, readname, main):
60386         Define with prototypes.
60387
60388         * lib/group-member.c: Include group-member.h first.
60389         Include <stdlib.h> unconditionally.
60390
60391         * lib/hard-locale.c: Include hard-locale.h first.
60392         Include <stdlib.h>, <string.h> unconditionally.
60393
60394         * lib/hash.c (free, malloc): Remove decls.
60395         Include <stdlib.h> unconditionally.
60396
60397         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60398         (getenv): Do not declare.
60399
60400         * lib/idcache.c: Include <string.h> unconditionally.
60401
60402         * lib/long-options.c: Include long-options.h first, to test interface.
60403         Include <stdlib.h> unconditionally.
60404
60405         * lib/makepath.c: Include makepath.h first, to test interface.
60406         Include <stdlib.h> and <string.h> unconditionally.
60407
60408         * lib/linebuffer.c: Include <stdlib.h>.
60409         (free): Remove decl.
60410
60411         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60412         stddef.h. rpl_malloc returns void *, not char *.
60413         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60414         prototype.
60415
60416         * lib/md5.h: Include <limits.h> unconditionally.
60417         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60418         (__P): Remove; all uses removed.
60419         * lib/md5.c: Include "md5.h" first.
60420         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60421         md5_buffer, md5_process_bytes, md5_process_block):
60422         Define with prototypes.
60423         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60424         * lib/sha.c: Include "sha.h" first.
60425         Include <stdlib.h>, <string.h> unconditionally.
60426
60427         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60428         * lib/memcmp.c (__ptr_t): Likewise.
60429         * lib/memrchr.c (__ptr_t): Likewise.
60430         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60431         Include <string.h> unconditionally.
60432         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60433         * lib/memchr.c: Include <stdlib.h> unconditionally.
60434         * lib/memchr.c (LONG_MAX): Remove.
60435         * lib/memrchr.c (LONG_MAX): Likewise.
60436         * lib/memchr.c (__memchr): Define via a prototype.
60437         * lib/memrchr.c (__memrchr): Likewise.
60438         * lib/memcmp.c (__P): Remove, and remove all uses.
60439         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60440         Remove forward decls; no longer needed.
60441         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60442         Use types required by C89 in prototype.
60443
60444         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60445         * lib/savedir.c: Likewise.
60446         * lib/mkdir.c (free): Remove decl.
60447         * lib/rmdir.c (rmdir): Define with a prototype.
60448         * lib/savedir.c: Include savedir.h first, to test interface.
60449
60450         * lib/mktime.c (STDC_HEADERS): Remove.
60451         Include <stdlib.h>, <string.h> unconditionally.
60452
60453         * lib/modechange.c: Include <stdlib.h> unconditionally.
60454         (malloc): Remove decl.
60455
60456         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60457         (free): Remove decl.
60458
60459         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60460         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60461         (This type really should be intptr_t, but that's a C99ism.)
60462         (_obstack_memcpy): Remove: all uses changed to memcpy.
60463         Include <string.h> unconditionally.
60464         (struct obstack): Assume __STDC__ for types of members
60465         chunkfun, freefun, extra_arg.
60466         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60467         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60468         obstack_begin, obstack_specify_allocation,
60469         obstack_specify_allocation_with_arg, obstack_chunkfun,
60470         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60471         Remove unprototyped decls and the macros that use them.
60472         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60473         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60474         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60475         (defined __STDC__ && __STDC__)]:
60476         Remove nonprototyped code.
60477         Include <stdlib.h> unconditionally.
60478         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60479         _obstack_allocated_p, _obstack_free, obstack_free,
60480         _obstack_memory_used, print_and_abort):
60481         Define using prototypes.
60482         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60483         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60484         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60485         obstack_next_free, obstack_object_size, obstack_room) [0]:
60486         Remove unused, unprototyped code.
60487
60488         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60489
60490         * lib/physmem.c (physmem_total, physmem_available, main): Define
60491         with prototypes.
60492
60493         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60494         (main): Define with a prototype.
60495
60496         * lib/posixver.c (getenv): Remove decl.
60497
60498         * lib/putenv.c (malloc): Returns void *, not char *.
60499         Include <string.h> unconditionally.
60500         (strchr, memcpy, NULL): Do not define.
60501
60502         * lib/readtokens.c: Include readtokens.h first, to test interface.
60503         Include <stdlib.h>, <string.h> unconditionally.
60504         (init_tokenbuffer): Define with a prototype.
60505
60506         * lib/regex.c (PARAMS): Remove.  All uses removed.
60507         All uses of _RE_ARGS removed, too.
60508         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60509         unconditionally.
60510         (bzero): Assume memset exists.
60511         (memcmp, memcpy, NULL): Remove.
60512         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60513         char, or assignments to local vars of type signed char.
60514         (init_syntax_once, PREFIX(extract_number_and_incr),
60515         PREFIX(print_partial_compiled_pattern),
60516         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60517         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60518         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60519         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60520         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60521         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60522         wcs_compile_range, byte_compile_range, truncate_wchar,
60523         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60524         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60525         count_mbs_length, wcs_re_match_2_internal,
60526         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60527         PREFIX(alt_match_null_string_p),
60528         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60529         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60530         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60531         now-unnecessary declaration, if any.
60532         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60533         regcomp, regexec):
60534         Remove now-unnecessary casts among pointer types.
60535         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60536
60537         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60538         (free): Remove decl.
60539
60540         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60541
60542         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60543         (free): Remove decl.
60544
60545         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60546         * lib/xgetcwd.c: Likewise.
60547
60548         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60549         (free): Remove decl.
60550
60551         * lib/strchrnul.c (strchrnul): Define with a prototype.
60552         Fix bug: c_in was not converted to char before searching.
60553
60554         The following changes are not K&R related:
60555
60556         * lib/group-member.h: Include <sys/types.h>, so that this file is
60557         self-contained.
60558         * lib/makepath.h: Likewise.
60559
60560         * lib/getusershell.c (readname, default_index, line_size, readname):
60561         Use size_t, not int, for sizes.
60562         (readname): If the size overflows, report an error instead of
60563         looping forever.
60564
60565 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60566
60567         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60568         libc.
60569
60570 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60571
60572         * README: New section: portability guidelines.
60573
60574 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60575
60576         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60577         C89 spec.
60578
60579 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60580
60581         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60582
60583 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60584
60585         Assume C89 or better; remove K&R cruft.
60586         A few of these changes were first proposed by Derek Robert Price
60587         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60588
60589         * lib/addext.c: Include <string.h> unconditionally.
60590         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60591         Don't declare getenv or malloc.
60592
60593         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60594         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60595         (NULL): Remove.
60596         (find_stack_direction, alloca): Use prototypes.
60597
60598         * lib/atexit.c (atexit): Define using a prototype.
60599
60600         * lib/basename.c, dirname.c, stripslash.c:
60601         Include <string.h> unconditionally.
60602
60603         * lib/bcopy.c: Include <stddef.h>.
60604         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60605
60606         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60607
60608         * lib/error.h (error, error_at_line, error_print_progname)
60609         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60610         * lib/error.c: Include error.h first, to check interface.
60611         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60612         (VA_START): Remove; all uses changeed to va_start.
60613         (exit, strerror): Remove decls.
60614         (error_print_progname): Prototype uncondionally.
60615         Don't include <errno.h>; no longer needed.
60616         (private_strerror): Remove.
60617         (error_tail): Always define.
60618         (error, error_at_line): Assume C89 or better; always use prototypes.
60619         * lib/fatal.c: Include "fatal.h" first, to test interface.
60620         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60621         (VA_START): Remove; all uses changed to va_start.
60622         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
60623         this case.
60624         (exit): Remove decl.
60625         (fatal): Prototype unconditionally.  Assume va_start works.
60626         Abort at end, to pacify gcc.
60627
60628         * lib/euidaccess.c (main): Define with a prototype.
60629
60630         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
60631
60632         * lib/exitfail.c: Include <stdlib.h> unconditionally.
60633
60634         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
60635         prototypes.
60636         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
60637         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
60638         (getenv): Remove decl.
60639         (fnmatch): Define using a prototype.
60640         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60641         (FCT): Define using a prototype.
60642
60643         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60644
60645         * lib/gethostname.c: Include <stddef.h>.
60646         (gethostname): Define with prototype.  Length is size_t, not int.
60647
60648 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60649
60650         Assume C89 or better; remove K&R cruft.
60651         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60652         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60653         string.h, getenv, malloc.
60654         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60655         headers.
60656         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60657         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60658         do not check for strerror.
60659         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60660         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60661         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60662         do not check for doprnt or vprintf.
60663         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60664         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60665
60666 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60667
60668         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60669         getversion.c should have been removed then, but was accidentally
60670         preserved.
60671
60672         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60673         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60674
60675 2003-09-08  Karl Berry  <karl@gnu.org>
60676
60677         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60678                 config, forget about prep.
60679
60680         * config/depcomp, missing: update from automake.
60681
60682 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60683
60684         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60685         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60686
60687 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60688
60689         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60690         copy_tm_result.  Bug reported by Simon Josefsson in
60691         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60692
60693 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60694
60695         * m4/time_r.m4: New file.
60696         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60697         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60698         is. Check for timegm declaration.
60699         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60700         Do not check for gmtime_r.
60701         Replace mktime if __mktime_internal does not exist and if mktime
60702         hasn't been replaced already.
60703
60704 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60705
60706         * lib/time_r.c, lib/time_r.h: New files.
60707
60708         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60709         __localtime_r.
60710         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
60711         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
60712
60713         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
60714         __gmtime_r.
60715         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
60716         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
60717         Include <time_r.h>.
60718
60719         * lib/timegm.c: Switch to glibc implementation, with the following
60720         changes:
60721         [defined HAVE_CONFIG_H]: Include <config.h>.
60722         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
60723         (__mktime_internal) [!defined _LIBC]: New decl.
60724         (__gmtime_r) [!defined _LIBC]: New macro and function.
60725         (timegm): Use a prototype, since gnulib assumes C89.
60726         Do not bother declaring tmp to be const, as it's not really usefu.
60727         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
60728         (timegm): Declare only if HAVE_DECL_TIMEGM.
60729
60730 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60731
60732         * MODULES.html.sh (func_all_modules): Add time_r.
60733         * modules/time_r: New file.
60734         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
60735         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
60736
60737 2003-09-03  Paul Eggert  <eggert@twinsun.com>
60738
60739         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
60740         Bug reported by Lute Kamstra in
60741         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
60742
60743         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
60744         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
60745         course with correspondingly smaller numbers for tomorrow and
60746         yesterday.  From Tadayoshi Funaba.  Originally installed into
60747         sh-utils on 1999-08-07, but the patch got lost (I guess during the
60748         coreutils merge?).
60749
60750 2003-08-31  Simon Josefsson  <jas@extundo.com>
60751
60752         * modules/timegm: New file.
60753         * MODULES.html.sh (func_all_modules): Add timegm.
60754
60755 2003-08-31  Simon Josefsson  <jas@extundo.com>
60756
60757         * m4/timegm.m4: New file.
60758
60759 2003-08-31  Simon Josefsson  <jas@extundo.com>
60760
60761         * lib/timegm.h: New file.
60762         * lib/timegm.c: New file.  Based on
60763         wget-1.8.2/src/http.c:mktime_from_utc.
60764
60765 2003-08-31  Karl Berry  <karl@gnu.org>
60766
60767         * lib/argp.h: update from libc.
60768
60769 2003-08-28  Bruno Haible  <bruno@clisp.org>
60770
60771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
60772         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
60773         followed by '#define fnmatch fnmatch_posix' gives an error.
60774
60775 2003-08-28  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
60778         warning on QNX, which defines O_BINARY to 000000.
60779
60780 2003-08-27  Jim Meyering  <jim@meyering.net>
60781
60782         * m4/mkstemp.m4: Require that the system mkstemp be able to create
60783         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
60784         would fail after 32.  Reported by Danny Levinson.  Details here:
60785         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
60786
60787 2003-08-24  Bruno Haible  <bruno@clisp.org>
60788
60789         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
60790         MSVC7 <stdio.h> is included later.
60791
60792 2003-08-22  Simon Josefsson  <jas@extundo.com>
60793
60794         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
60795
60796 2003-08-20  Karl Berry  <karl@gnu.org>
60797
60798         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
60799
60800 2003-08-20  Bruno Haible  <bruno@clisp.org>
60801
60802         * modules/progname: New file.
60803         * MODULES.html.sh (func_all_modules): Add progname.
60804
60805 2003-08-20  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/progname.h: New file, from GNU gettext.
60808         * lib/progname.c: New file, from GNU gettext.
60809         * lib/progreloc.c: New file, from GNU gettext.
60810
60811 2003-08-19  Jim Meyering  <jim@meyering.net>
60812
60813         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
60814         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
60815
60816 2003-08-19  Bruno Haible  <bruno@clisp.org>
60817
60818         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
60819         more.
60820
60821 2003-08-19  Bruno Haible  <bruno@clisp.org>
60822
60823         * lib/xstrdup.c: Assume <string.h> exists.
60824
60825 2003-08-18  Paul Eggert  <eggert@twinsun.com>
60826
60827         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
60828         in makefile rules.
60829
60830 2003-08-18  Jim Meyering  <jim@meyering.net>
60831
60832         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
60833         * m4/lib-ld.m4: Likewise.
60834
60835 2003-08-18  Jim Meyering  <jim@meyering.net>
60836
60837         * lib/setenv.h: Indent nested cpp directive.
60838         * lib/vasnprintf.c: Remove trailing blanks.
60839
60840 2003-08-17  Simon Josefsson  <jas@extundo.com>
60841
60842         * modules/xstrndup: New file.
60843         * MODULES.html.sh (func_all_modules): Add xstrndup.
60844
60845 2003-08-17  Simon Josefsson  <jas@extundo.com>
60846
60847         * modules/argp: Fix autoconf macro name. Add more dependencies.
60848
60849 2003-08-17  Simon Josefsson  <jas@extundo.com>
60850
60851         * m4/xstrndup.m4: New file.
60852
60853 2003-08-17  Simon Josefsson  <jas@extundo.com>
60854
60855         * m4/argp.m4: New file.
60856
60857 2003-08-17  Simon Josefsson  <jas@extundo.com>
60858             Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/xstrndup.h: New file.
60861         * lib/xstrndup.c: New file.
60862
60863 2003-08-17  Bruno Haible  <bruno@clisp.org>
60864
60865         * modules/strndup (Files, Include): Add lib/strndup.h.
60866
60867 2003-08-17  Bruno Haible  <bruno@clisp.org>
60868
60869         * modules/euidaccess (Files): Add lib/euidaccess.h.
60870
60871 2003-08-17  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/strndup.h: New file.
60874
60875 2003-08-17  Bruno Haible  <bruno@clisp.org>
60876
60877         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
60878         like AC_GNU_SOURCE.
60879         * modules/extensions (configure.ac): Comment out the invocation of
60880         gl_USE_SYSTEM_EXTENSIONS.
60881
60882 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60883
60884         Merges from coreutils, etc.
60885         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
60886         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
60887         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
60888         fixing a typo.
60889         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
60890         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
60891
60892 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60893
60894         Document merge from coreutils.
60895         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
60896         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
60897         * modules/utime: Add m4/utimes-null.m4.
60898
60899 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60900
60901         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
60902         space, undoing this 2003-08-12 change:
60903         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
60904
60905 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60906
60907         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
60908         strtoul.c from libc, undoing this 2003-08-12 change:
60909         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
60910
60911 2003-08-16  Jim Meyering  <jim@meyering.net>
60912
60913         Merges from coreutils.
60914         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
60915         prefix.  Adjust cache variables similarly.  Create 500 rather than
60916         just 300 files, to exercise bug on Darwin6.5, too.
60917         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
60918         $missing_dir.
60919         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
60920         AM_SYS_POSIX_TERMIOS.
60921         Reported by mkc@mathdogs.com.
60922         Also change use of $am_cv_sys_posix_termios
60923         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
60924         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
60925         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
60926         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
60927         in /proc/mounts until it finds one with matching device number.  This
60928         is unnecessary when the FILE argument *is* a mount point.  No stat call
60929         is necessary in that case.  So, disable the statvfs-testing code on
60930         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
60931         as RedHat bug# 84846.
60932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
60933         to 1MB, so as not to render systems with no stack size limit (e.g.,
60934         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
60935         Include <unistd.h>.  On some systems,
60936         it is required for the definition of _SC_PAGESIZE.
60937
60938 2003-08-16  Jim Meyering  <jim@meyering.net>
60939
60940         Merge from coreutils.
60941         * lib/xstrtoimax.c: #else #if -> #elif.
60942         * lib/xstrtoumax.c: Likewise.
60943
60944 2003-08-16  Jim Meyering  <jim@meyering.net>
60945
60946         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
60947         * m4/utimes.m4: Removed.
60948         * m4/utimes-null.m4: Renamed from utimes.m4.
60949
60950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
60951         to 1MB, so as not to render systems with no stack size limit (e.g.,
60952         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
60953         Include <unistd.h>.  On some systems,
60954         it is required for the definition of _SC_PAGESIZE.
60955
60956 2003-08-16  Jim Meyering  <jim@meyering.net>
60957         and Paul Eggert  <eggert@cs.ucla.edu>
60958
60959         Merges from coreutils, etc.
60960
60961         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
60962         using the latest version from cvs.  This avoids problems with #line
60963         directives using a vendor (Sun) compiler.
60964         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
60965         Don't set GETGROUPS_LIB here; now it's
60966         done via getgroups.m4's wrapper function.
60967         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
60968         rather than just in sh-util/configure.in, so that the
60969         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
60970         same.
60971         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
60972         AC_FUNC_GETLOADAVG where to find getloadavg.c.
60973         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
60974         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
60975         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
60976         Remove code that is now done by the newly-required macros.
60977         Append $(EXEEXT) to DF_PROG.
60978         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
60979         Do not invoke or require the following here,
60980         since prereq.m4 or some gnulib .m4 now does this for us:
60981         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
60982         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
60983         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
60984         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
60985         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
60986         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
60987         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
60988         AC_FUNC_OBSTACK.
60989         Do not replace the following functions, as this is now the job
60990         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
60991         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
60992         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
60993         atexit getpass, strdup, getpagesize.
60994         Replace 'raise'.
60995         Do not check for the following functions, as this is now the job
60996         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
60997         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
60998         setregid.
60999         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61000         Check for sys/sysctl.h.
61001         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61002         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61003         of checking for ssize_t ourselves.
61004
61005         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61006         Require every macro that gnulib/modules/* suggests for us.
61007         (jm_PREREQ_ADDEXT): New macro.
61008         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61009         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61010
61011         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61012         (gl_PHYSMEM): Use it.
61013         Also check for `table' function.
61014         Check for new headers and functions.
61015         Add check for sys/sysmp.h.
61016         With suggestions from Kaveh Ghazi.
61017         Ignore headers that are present but cannot be compiled.  This
61018         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61019         C 5.4.
61020
61021 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61022
61023         Document merge from coreutils.
61024         * modules/userspec: Depend on posixver.
61025         * modules/strftime: Depend on tzset.
61026
61027 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61028
61029         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61030         rather than tab, after '#' in shell-script copyright notices.
61031         Suggested by Bruno Haible.
61032
61033 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61034
61035         * config/srclist-update: Use three spaces, rather than tab, after '#'
61036         in shell-script copyright notices.  Suggested by Bruno Haible.
61037         Remove unnecessary parenthesization in regular expression.
61038
61039 2003-08-15  Jim Meyering  <jim@meyering.net>
61040
61041         Merge from coreutils.
61042         * lib/xgethostname.c: Include <stdlib.h>.
61043         (xghostname): Don't exit for anything other than memory-related
61044         failure; just return NULL.
61045         * lib/userspec.c: Include "posixver.h".
61046         (parse_user_spec): Accept `.' as a separator only
61047         in pre-POSIX-200112 mode.
61048         * lib/strtoimax.c: Use #elif rather than #else #if.
61049         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61050         Remove function, now that we can rely on a working tzset function.
61051         [!_LIBC]: Ensure that the required autoconf test has been run.
61052         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61053         Use underlying_strftime for %r.
61054         * lib/sha.c: Merge in some clean-up and optimization changes from
61055         glibc.
61056         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61057         Ensure that it is a multiple of 64.
61058         Rearrange loop exit tests so as to avoid performing an
61059         additional fread after encountering an error or EOF.
61060         * lib/realloc.c: Update copyright date.
61061
61062 2003-08-15  Jim Meyering  <jim@meyering.net>
61063         and Paul Eggert  <eggert@twinsun.com>
61064
61065         Merge from coreutils.
61066         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61067         member but strut utmpx does not.  Needed for AIX 4.3.3.
61068         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61069
61070 2003-08-15  Jim Meyering  <jim@meyering.net>
61071         and Paul Eggert  <eggert@cs.ucla.edu>
61072
61073         Merges from coreutils, etc.
61074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61075         Require gl_FUNC_TZSET_CLOBBER.
61076         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61077         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61078         members.
61079
61080 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61081
61082         Help the merge from coreutils.
61083         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61084         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61085         * m4/tzset.m4: Use it too.
61086
61087 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61088
61089         * modules/tzset: New file.
61090
61091 2003-08-14  Jim Meyering  <jim@meyering.net>
61092
61093         Merges from coreutils.
61094         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61095         variable names, rather than @FNMATCH_H@.
61096         * modules/alloca: Likewise for $(ALLOCA_H).
61097
61098         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61099         the three copies of the literal target, `fnmatch.h'.
61100         * modules/alloca (alloca.h): Likewise.
61101
61102 2003-08-14  Jim Meyering  <jim@meyering.net>
61103
61104         Merge from coreutils.
61105         * m4/tzset.m4: New file.
61106         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61107         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61108         otherwise, AIX 5.1 systems would end up using the latter.
61109         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61110         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61111         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61112         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61113
61114 2003-08-14  Jim Meyering  <jim@meyering.net>
61115
61116         Merge from coreutils.
61117         * lib/obstack.h: Whitespace changes.
61118         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61119         and xcalloc return values.
61120         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61121         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61122         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61123         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61124         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61125         error from mntctl.
61126         Use mntctl's return value to drive the entry-processing loop, since
61127         we can't rely on the value of the vmt_length member in the last
61128         entry.  On some systems doing so could result in exhausting
61129         virtual memory.  Based in part on a patch from Mike Jetzer.
61130
61131 2003-08-14  Jim Meyering  <jim@meyering.net>
61132         and Paul Eggert  <eggert@twinsun.com>
61133
61134         Merges from coreutils, plus other fixes.
61135         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61136         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61137         for credits and details.  Thanks to Kaveh Ghazi for helping
61138         to keep these files in sync.
61139         (ARRAY_SIZE): Define it.
61140         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61141         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61142         (memcasecmp): Don't assume size_t fits in unsigned int.
61143         Remove casts and duplicate code.
61144         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61145         (memcpy): Remove definition.
61146         Merge in some clean-up and optimization changes from glibc.
61147         [BLOCKSIZE]: Move definition to top of file.
61148         Ensure that it is a multiple of 64.
61149         Rearrange loop exit tests so as to avoid performing an
61150         additional fread after encountering an error or EOF.
61151         * lib/md5.h (md5_uintptr): Define.
61152         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61153         return to the initial working directory.  Preserve errno
61154         for caller.
61155         * lib/idcache.c: Include "xalloc.h".
61156         (xmalloc, xrealloc): Remove decls.
61157         (getuser): Remove casts no longer required in C89.
61158         * lib/human.c: Include stdio.h, for sprintf.
61159         * lib/group-member.c: Include "xalloc.h".
61160         (xmalloc, xrealloc): Remove decls.
61161         (get_group_info): Remove casts no longer required in C89.
61162         * lib/getusershell.c (readname): Remove casts no longer required in
61163         C89.
61164         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61165         * lib/getline.c: Whitespace fix, from coreutils.
61166
61167 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61168
61169         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61170         Check for isascii.
61171
61172         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61173         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61174         Undo previous (whitespace-only) change.
61175
61176 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61177
61178         * lib/exclude.c: Include <ctype.h>
61179         (IN_CTYPE_DOMAIN): New macro.
61180         (is_space): New fn.
61181         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61182         and empty lines.
61183
61184         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61185         Undo previous (whitespace-only) change.
61186
61187 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61188
61189         * config/srclist-update: Change update back to the old behavior,
61190         leaving whitespace alone.  Use one 'sed' command rather than a
61191         pipeline.
61192         (fixlicense): Now a variable, not a function.
61193         (remove_trailing_blanks): Remove.
61194         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61195         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61196         Undo previous (whitespace-only) change.
61197
61198 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61199
61200         Merge from coreutils.
61201         * modules/euidaccess: Add lib_SOURCES, include for new
61202         file euidaccess.h
61203
61204 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61205
61206         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61207         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61208         Normalize leading white space and remove trailing white space.
61209
61210         Merge from coreutils
61211         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61212
61213         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61214         0.12.1.  These files are now being upgraded automatically by
61215         ../config/srclist-update.
61216
61217 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61218
61219         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61220         Normalize leading white space and remove trailing white space.
61221         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61222         notice, as per ../config/srclist-update.
61223
61224         Merge from coreutils.
61225         * lib/euidaccess.h: New file.
61226         * lib/euidaccess.c: Include it.
61227         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61228         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61229         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61230
61231 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61232
61233         * config/srclist-update: Add copyright notice.
61234         (remove_id_lines, remove_trailing_blanks): New constants.
61235         (fixfile): Use them to normalize spacing a bit in copied files.
61236         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61237         Normalize leading white space and remove trailing white space.
61238
61239         * config/texinfo.tex: Sync with texinfo.
61240
61241         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61242         strtoul.c from libc, to merge coreutils whitespace changes.
61243
61244         * config/srclist.txt: Get the following m4 files from gettext:
61245         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61246         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61247         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61248         wint_t.m4.
61249
61250 2003-08-12  Karl Berry  <karl@gnu.org>
61251
61252         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61253         been made.
61254
61255 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61256
61257         * modules/gnu-source, m4/gnu-source.m4:
61258         Remove; we're assuming Autoconf 2.54 or later now.
61259         Suggested by Bruno Haible.
61260         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61261
61262 2003-08-11  Bruno Haible  <bruno@clisp.org>
61263
61264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61265
61266 2003-08-11  Bruno Haible  <bruno@clisp.org>
61267
61268         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61269         (vasnprintf): Use it instead of wcslen.
61270
61271 2003-08-11  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61274         value to ensure that _Bool promotes to int. Use #define for _Bool when
61275         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61276
61277 2003-08-10  Karl Berry  <karl@gnu.org>
61278
61279         * lib/regex.h: update from libc (whitespace fix).
61280
61281 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61282
61283         Merge some files from coreutils.  These changes were
61284         originally made by Jim Meyering.
61285         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61286         many older Unixes require this.
61287         * lib/alloca.c (alloca): Remove cast to argument of free;
61288         no longer needed in C89.
61289         * lib/alloca_.h, regex.h: Fix white space to match
61290         what GNU indent does.
61291
61292 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61293
61294         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61295         apparently Emacs's Unicode mode got confused before my 2003-08-05
61296         checkin.
61297
61298 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61299
61300         * m4/extensions.m4: New file.
61301         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61302         Require gl_USE_SYSTEM_EXTENSIONS.
61303         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61304         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61305
61306 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61307
61308         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61309         * modules/extensions, modules/gnu-source: New files.
61310         * modules/timespec, modules/unlocked-io: Depend on extensions.
61311
61312 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61313
61314         * modules/restrict: New file.
61315         * MODULES.html.sh (func_all_modules): Add restrict.
61316         * modules/regex: Depend on restrict.
61317
61318 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61319
61320         * m4/restrict.m4: New file.
61321         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61322
61323 2003-08-07  Bruno Haible  <bruno@clisp.org>
61324
61325         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61326         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61327
61328 2003-08-07  Bruno Haible  <bruno@clisp.org>
61329
61330         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61331         makes the module 'getndelim2' compatible with the module 'getline'.
61332
61333 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61334
61335         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61336         byte with "\201" to avoid glitches when editing that source file
61337         with multi-gnome-terminal.
61338
61339 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61340
61341         * lib/bumpalloc.h: Remove.
61342
61343 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61344
61345         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61346         * modules/bumpalloc: Remove.
61347
61348 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61349
61350         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61351         GNU coding style.
61352
61353         Merge from coreutils.
61354         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61355         1. From glibc.
61356         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61357         from Karl Berry, implemented by Jim Meyering.
61358         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61359         from Dmitry V. Levin.
61360         Remove anachronistic cast of xrealloc.
61361         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61362         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61363         type. Otherwise, it wouldn't compile with at least /bin/cc on
61364         ymp-cray-unicos9.0.2.X.
61365         Combine two mostly-identical uses of alloca into one.
61366         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61367
61368 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61369
61370         [From Emacs.]
61371
61372         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61373         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61374         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61375         obsolete NLIST_NAME_UNION.
61376         [__GNU__]: Undef BSD and FSCALE.
61377         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61378
61379 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61380
61381         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61382         an enum type, so that it's guaranteed to promote to int.  See:
61383         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61384
61385 2003-08-03  Karl Berry  <karl@gnu.org>
61386
61387         * config/depcomp: update from automake.
61388
61389 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61390
61391         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61392         (strerror): Don't assume that a printable int fits in 14 bytes.
61393
61394 2003-07-31  Bruno Haible  <bruno@clisp.org>
61395
61396         * modules/getpass-gnu: New file.
61397         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61398
61399 2003-07-31  Bruno Haible  <bruno@clisp.org>
61400
61401         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61402
61403 2003-07-24  Karl Berry  <karl@gnu.org>
61404
61405         * config/missing: update from automake.
61406
61407 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61408             Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61411         * lib/getline.c (getline, getdelim): Likewise.
61412         Remove _GNU_SOURCE define; now it's defined in config.h through
61413         m4/getline.m4.
61414
61415 2003-07-23  Karl Berry  <karl@gnu.org>
61416
61417         * config/config.sub: update from prep.
61418
61419 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61420
61421         * modules/xalloc (Depends-on): Add exitfail.
61422         * modules/xmemcoll: Likewise.
61423
61424 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61425
61426         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61427         over-parenthesization in macros.
61428
61429         Sync with coreutils.
61430
61431         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61432         required by C99.
61433
61434         Use `exit_failure' for xalloc and xmemcoll instead of their own
61435         private exit-failure variables.
61436         * lib/xalloc.h (xalloc_exit_failure): Remove.
61437         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61438         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61439         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61440         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61441         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61442
61443 2003-07-20  Jim Meyering  <jim@meyering.net>
61444
61445         * modules/closeout (Depends-on): Add exitfail.
61446         Suggestion from Bruno Haible.
61447
61448 2003-07-19  Karl Berry  <karl@gnu.org>
61449
61450         * config/config.sub: update from prep.
61451
61452 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61453
61454         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61455         Remove.
61456         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61457         to test that it can stand by itself.  Include "exitfail.h".
61458         Clients should set exit_failure instead.
61459         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61460
61461 2003-07-18  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/getndelim2: New file.
61464         * modules/getline: Share files with module getndelim2.
61465         * modules/getnline: Depend on getndelim2 instead of sharing files with
61466         it. Add getnline.c to lib_SOURCES.
61467         * MODULES.html.sh (func_all_modules): Add getndelim2.
61468
61469 2003-07-18  Bruno Haible  <bruno@clisp.org>
61470
61471         * m4/getndelim2.m4: New file.
61472         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61473         invoke gl_PREREQ_GETNDELIM2.
61474         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61475         gl_PREREQ_GETNDELIM2.
61476         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61477         gl_GETNDELIM2.
61478
61479 2003-07-18  Bruno Haible  <bruno@clisp.org>
61480
61481         * lib/getndelim2.h: New file.
61482         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61483         getndelim2.h.
61484         (getndelim2): Make non-static. Change return type to ssize_t.
61485         * lib/getline.h: Change argument names.
61486         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61487         * lib/getnline.c: Include getndelim2.h.
61488
61489 2003-07-18  Andreas Schwab  <schwab@suse.de>
61490
61491         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61492
61493 2003-07-17  Karl Berry  <karl@gnu.org>
61494
61495         * config/config.sub: update from prep.
61496
61497 2003-07-17  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/getnline: New file.
61500         * modules/getline: Add lib/getndelim2.c to source file list.
61501         * MODULES.html.sh (func_all_modules): Add getnline.
61502
61503 2003-07-17  Bruno Haible  <bruno@clisp.org>
61504
61505         * m4/getnline.m4: New file.
61506
61507 2003-07-17  Bruno Haible  <bruno@clisp.org>
61508
61509         * m4/Makefile.am.in: Remove file.
61510         * m4/Makefile.am: Remove file.
61511         * m4/Makefile.in: Remove file.
61512
61513 2003-07-17  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/getnline.h: New file.
61516         * lib/getnline.c: New file.
61517         * lib/getndelim2.c: New file, extracted from getline.c.
61518         (getndelim2): Renamed from getdelim2, with added nmax argument.
61519         * lib/getline.c: Include getndelim2.c.
61520         (getdelim2): Moved out to getndelim2.c.
61521         (getline, getdelim): Update.
61522
61523 2003-07-17  Bruno Haible  <bruno@clisp.org>
61524
61525         * lib/Makefile.am: Remove file.
61526         * lib/Makefile.in: Remove file.
61527
61528 2003-07-17  Bruno Haible  <bruno@clisp.org>
61529
61530         * configure.in: Remove file.
61531         * Makefile.in: Remove file.
61532
61533 2003-07-17  Bruno Haible  <bruno@clisp.org>
61534
61535         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61536
61537 2003-07-16  Karl Berry  <karl@gnu.org>
61538
61539         * config/srclist-update: was running fixlicense twice, which caused
61540                 texinfo.tex to be nullified for some reason.  Simplify,
61541                 $gplsrc is no longer needed as far as I can see?
61542
61543 2003-07-16  Jim Meyering  <jim@meyering.net>
61544
61545         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61546
61547 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61548
61549         * config/srclist.txt: Get the following files from gettext-runtime/intl
61550         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61551         ref-del.sin.  From Bruno Haible.
61552         * config/srclist-update (fixfile): Change grep pattern again, since the
61553         previous fix didn't work (there was another trailing $).  Use
61554         '[$]' to escape the $s.
61555
61556 2003-07-15  Karl Berry  <karl@gnu.org>
61557
61558         * lib/vasnprintf.c: update from gettext.
61559
61560 2003-07-15  Karl Berry  <karl@gnu.org>
61561
61562         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61563         gets expanded when surrounded by '$'.
61564
61565 2003-07-15  Jim Meyering  <jim@meyering.net>
61566
61567         * modules/save-cwd: Don't depend on error.  From Derek Price.
61568
61569 2003-07-15  Jim Meyering  <jim@meyering.net>
61570
61571         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61572
61573 2003-07-14  Simon Josefsson  <jas@extundo.com>
61574
61575         * modules/mempcpy: New file.
61576         * MODULES.html.sh (func_all_modules): Add mempcpy.
61577
61578 2003-07-14  Simon Josefsson  <jas@extundo.com>
61579
61580         * m4/mempcpy.m4: New file.
61581
61582 2003-07-14  Simon Josefsson  <jas@extundo.com>
61583
61584         * lib/mempcpy.h: New file.
61585         * lib/mempcpy.c: New file.
61586
61587 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61588
61589         * modules/getdate, modules/posixtm: Depend on mktime.
61590
61591 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61592
61593         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61594         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61595         unicodeio.c, unicodeio.h, unlocked-io.h:
61596         Switch from LGPL to GPL.
61597
61598 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61599
61600         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61601         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61602         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61603         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61604         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61605         updated automatically by ../config/srclist-update.  This changes
61606         their license from LPGL to GPL.
61607
61608 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61609
61610         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61611         assumed to refer to the root of the most recent stable gettext version.
61612         * config/srclistvars.sh: Add defaults for eggert.
61613         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61614         Match "This program" as well as "The program".  This is needed
61615         for gettext.
61616
61617 2003-07-14  Jim Meyering  <jim@meyering.net>
61618
61619         Don't emit diagnostics.  Let callers do that.
61620         * lib/save-cwd.c: Don't include "error.h".
61621         (save_cwd): Don't call error.  Ensure that errno is valid
61622         when returning nonzero.
61623
61624         * lib/save-cwd.h (restore_cwd): Update prototype.
61625         * lib/save-cwd.c (restore_cwd): Remove two parameters.
61626         Simplify.  Don't call error upon failure.  Let callers do that.
61627         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
61628         when auditing is enabled.  But don't bother updating the #if.
61629
61630 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
61631
61632         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
61633         it breaks C++ compilation.
61634         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
61635
61636 2003-07-10  Simon Josefsson  <jas@extundo.com>
61637
61638         * modules/strchrnul (Makefile.am): Add strchrnul.h.
61639
61640 2003-07-10  Jim Meyering  <jim@meyering.net>
61641
61642         * m4/clock_time.m4: Remove trailing blank.
61643         * m4/intmax_t.m4: Likewise.
61644
61645 2003-07-10  Jim Meyering  <jim@meyering.net>
61646
61647         * lib/vasnprintf.c: Remove trailing blanks.
61648         Make cpp indentation consistent.
61649
61650 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61651
61652         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61653         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61654         Switch from LGPL to GPL.
61655
61656 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61657
61658         * config/srclist.txt: Sort sublists.  Add
61659         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61660         that differ from gnulib for one reason or another; we'd like this list
61661         to be smaller but for now let's document what we have.
61662
61663 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61664
61665         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61666         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61667         and sweeter "eval x=$x".
61668         * config/srclist.txt: Get lib/argp* from glibc.
61669
61670 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61671
61672         * lib/mktime.c: Fix some boundary cases and remove need for floating
61673         point.
61674
61675         Issue a compile-time diagnostic if time_t is floating point, or if
61676         two's complement arithmetic is not in effect, or if arithmetic
61677         right shift does not propagate the sign.  These assumptions were
61678         all in the original code but they weren't checked.
61679
61680         (TIME_T_MIDPOINT, verify): New macros.
61681         (__isleap): Remove; it has integer overflow problems.
61682         (leapyear): New function, without those problems.
61683         (ydhms_tm_diff): Remove; splitting into two parts.
61684         (ydhms_diff): New function, containing the arithmetic part of
61685         the old ydhms_tm_diff function.  Issue a compile-time
61686         diagnostic if we are not using C99 integer division.
61687         Avoid casts when possible.
61688         (guess_time_tm): New function, containing the checking part of
61689         the old ydhms_tm_diff function.  Return the new value, rather than
61690         the difference between it and the old.  Accept a new argument T
61691         so that *T specifies the old value.  Check for overflow in the result.
61692
61693         (__mktime_internal): Use a time_t offset, not a long int offset.
61694         This undoes the 2003-06-04 change, which is no longer needed now
61695         that we have better overflow checking.
61696         (localtime_offset): Likewise.
61697
61698         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61699         and long are 64-bit but int is only 32-bit.
61700         (ydhms_diff): Use long int to store year1 and yday1.
61701         Issue a compile-time diagnostic if long int is not wide enough.
61702
61703         (__mktime_internal): Use long int to store adjusted year and yday.
61704         Use plain C rather than preprocessor commands, if that doesn't
61705         affect efficiency.
61706         Check for overflow (and try to repair) after each probe
61707         rather than checking only at the very end.  This avoids some bugs
61708         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61709         does not equal GMT offset at maximum time).
61710         Use integer to check for overflow rather than floating point; this
61711         is more portable to non-IEEE hosts, and is a tad faster.
61712         When we detect that we are oscillating between two values,
61713         don't check whether tm_isdst has the requested value, since
61714         we already know the answer.  When tm_isdst has the wrong value,
61715         use a different heuristic to find the right one, based on the
61716         extreme values actually observed in practice in tz2003a,
61717         rather than the (overly optimistic) "previous 3 calendar quarters".
61718
61719         (not_equal_tm, print_tm, check_result): Use "const T" rather than
61720         "T const" to accommodate glibc style.
61721         (check_result): Use less-confusing report format.  "long" -> "long int.
61722         (main): Likewise.
61723         Don't loop if the iteration overflows time_t.
61724         Allow a negative step in the iteration.
61725
61726 2003-07-06  Karl Berry  <karl@gnu.org>
61727
61728         * config/depcomp: update from automake.
61729         * config/config.sub: update from prep.
61730
61731 2003-07-03  Karl Berry  <karl@gnu.org>
61732
61733         * config/config.guess: update from prep.
61734
61735 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61736
61737         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
61738         xreadlink.c now includes it unconditionally.
61739
61740 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61741
61742         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
61743         having it depend on HAVE_SYS_TYPES_H.
61744
61745 2003-07-01  Bruno Haible  <bruno@clisp.org>
61746
61747         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
61748         <sys/types.h> should be sufficient.
61749         Reported by Paul Eggert.
61750
61751 2003-06-26  Karl Berry  <karl@gnu.org>
61752
61753         * config/depcomp: update from automake.
61754
61755 2003-06-26  Bruno Haible  <bruno@clisp.org>
61756
61757         * modules/human: Depend on module stdbool.
61758
61759 2003-06-25  Bruno Haible  <bruno@clisp.org>
61760
61761         * modules/readlink: New file.
61762         * modules/xreadlink: Depend on it.
61763         * MODULES.html.sh (func_all_modules): Add readlink.
61764
61765 2003-06-25  Bruno Haible  <bruno@clisp.org>
61766
61767         * m4/readlink.m4: New file.
61768
61769 2003-06-25  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/readlink.c: New file.
61772
61773 2003-06-22  Karl Berry  <karl@gnu.org>
61774
61775         * config/srclist.txt: update mkinstalldirs from automake.
61776         * config/mkinstalldirs: update.
61777
61778 2003-06-22  Bruno Haible  <bruno@clisp.org>
61779
61780         Portability to mingw32.
61781         * m4/ssize_t.m4: New file, from GNU gettext.
61782         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
61783         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
61784
61785 2003-06-22  Bruno Haible  <bruno@clisp.org>
61786
61787         * modules/safe-read: Add m4/ssize_t.m4.
61788         * modules/xreadlink: Add m4/ssize_t.m4.
61789
61790 2003-06-20  Bruno Haible  <bruno@clisp.org>
61791
61792         Assume C89, so PARAMS isn't needed.
61793         * lib/unicodeio.h (PARAMS): Remove.
61794         * lib/unicodeio.c: Don't use PARAMS.
61795
61796 2003-06-18  Karl Berry  <karl@gnu.org>
61797
61798         * config/config.{guess,sub}: update from prep.
61799
61800 2003-06-18  Jim Meyering  <jim@meyering.net>
61801
61802         Merge changes from coreutils.
61803         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
61804         Remove explicit declarations of xmalloc and realloc.
61805         Include xalloc.h.
61806         (read_utmp): Remove anachronistic cast of xmalloc.
61807
61808 2003-06-17  Paul Eggert  <eggert@twinsun.com>
61809
61810         Assume C89, so PARAMS isn't needed.
61811         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
61812         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
61813         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
61814         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
61815         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
61816         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
61817         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
61818         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
61819         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
61820         lib/xstrtod.h, lib/xstrtol.h: Likewise.
61821         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
61822         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
61823         no longer needed. Anyway, config.h should always be included before any
61824         other file.
61825
61826 2003-06-11  Simon Josefsson  <jas@extundo.com>
61827
61828         * modules/sysexits: New file.
61829         * MODULES.html.sh (func_all_modules): Add sysexits.
61830
61831 2003-06-11  Simon Josefsson  <jas@extundo.com>
61832
61833         * lib/sysexit_.h: New file.
61834
61835 2003-06-11  Derek Price  <derek@ximbiot.com>
61836
61837         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
61838         necessary.
61839
61840 2003-06-11  Bruno Haible  <bruno@clisp.org>
61841
61842         * m4/sysexits.m4: New file.
61843
61844 2003-06-10  Simon Josefsson  <jas@extundo.com>
61845
61846         * lib/argp.h: New file, from glibc.
61847         * lib/argp-ba.c: New file, from glibc.
61848         * lib/argp-eexst.c: New file, from glibc.
61849         * lib/argp-fmtstream.c: New file, from glibc.
61850         * lib/argp-fmtstream.h: New file, from glibc.
61851         * lib/argp-fs-xinl.c: New file, from glibc.
61852         * lib/argp-help.c: New file, from glibc.
61853         * lib/argp-namefrob.h: New file, from glibc.
61854         * lib/argp-parse.c: New file, from glibc.
61855         * lib/argp-pv.c: New file, from glibc.
61856         * lib/argp-pvh.c: New file, from glibc.
61857         * lib/argp-xinl.c: New file, from glibc.
61858
61859 2003-06-10  Simon Josefsson  <jas@extundo.com>
61860
61861         * modules/strchrnul: New file.
61862
61863 2003-06-10  Simon Josefsson  <jas@extundo.com>
61864
61865         * modules/argp: New file.
61866
61867 2003-06-10  Simon Josefsson  <jas@extundo.com>
61868
61869         * m4/strchrnul.m4: New file.
61870
61871 2003-06-10  Simon Josefsson  <jas@extundo.com>
61872
61873         * lib/strchrnul.h: New file.
61874         * lib/strchrnul.c: New file.
61875
61876 2003-06-10  Bruno Haible  <bruno@clisp.org>
61877
61878         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
61879
61880 2003-06-07  Karl Berry  <karl@gnu.org>
61881
61882         * config/config.{guess,sub}: update from prep.
61883
61884 2003-06-07  Jim Meyering  <jim@meyering.net>
61885
61886         * modules/strtod: Use $(...) notation, not @...@ for
61887         AC_REPLACE'd variables.
61888         * modules/localcharset: Likewise.
61889
61890 2003-06-07  Jim Meyering  <jim@meyering.net>
61891
61892         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
61893         in place of my name in the copyright comment.
61894         Remove definition and uses of __P.
61895
61896         From coreutils.
61897         * lib/stat.c: Don't declare xmalloc explicitly.
61898         Instead, include "xalloc.h".
61899         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
61900         xrealloc, and xcalloc return values.
61901         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
61902         Improve comment.
61903         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
61904
61905 2003-06-07  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
61908         avoid AC_CONFIG_LINKS.
61909         * modules/fnmatch (Makefile.am): Use explicit creation rule for
61910         fnmatch.h, to avoid AC_CONFIG_LINKS.
61911         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
61912
61913 2003-06-07  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
61916         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
61917         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
61918         directory.
61919         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
61920         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
61921         directory.
61922
61923 2003-06-06  Jim Meyering  <jim@meyering.net>
61924
61925         Merge from coreutils.
61926         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
61927         Consolidate declarations and initializations of *_base* locals.
61928
61929         Merge from coreutils.
61930         This avoids a core dump on systems without GNU putenv,
61931         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
61932         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
61933         (unsetenv): New static function, from GNU libc.
61934         (rpl_putenv): Use it.
61935
61936         * lib/modechange.c: Remove trailing blanks.
61937
61938         Merge from coreutils.
61939         * lib/fsusage.c: Remove declaration of statfs.
61940         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
61941
61942         * lib/posixtm.c: Include <stdbool.h> unconditionally.
61943
61944 2003-06-06  Jim Meyering  <jim@meyering.net>
61945
61946         * lib/stdbool_.h: Renamed from stdbool.h.in.
61947
61948 2003-06-06  Jim Meyering  <jim@meyering.net>
61949             Bruno Haible  <bruno@clisp.org>
61950
61951         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
61952         Adjust Makefile.am snippet not to redirect directly to target.
61953         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
61954
61955 2003-06-05  Paul Eggert  <eggert@twinsun.com>
61956
61957         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
61958         mismatch, look in future quarters as well as past.  This fixes a
61959         bug when processing fall-backwards gaps immediately after a long
61960         period of daylight-saving time.
61961
61962         * lib/mktime.c: Assume freestanding C89 or better.
61963         (HAVE_LIMITS_H): Remove.  Assume it's 1.
61964         (__P): Remove; not used.
61965         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
61966         (mktime, not_equal_tm, print_tm, check_result,
61967         main): Use prototypes.  Use const * where appropriate.
61968         (main): Fix typo in testing code that uncovered by above changes.
61969         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
61970
61971 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61972
61973         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
61974         locale.h, localeconv.  This merges changes from coreutils.
61975
61976         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
61977         It can be removed after the next Autoconf is released.
61978         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
61979         needed.
61980
61981 2003-06-04  Paul Eggert  <eggert@twinsun.com>
61982
61983         * lib/mktime.c: Fix Debian bug 177940
61984         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
61985         (localtime_offset): Now long int, not time_t, because we want it
61986         to be guaranteed to be signed.  All uses changed.
61987         (__mktime_internal): If overflow would occur when adding offset,
61988         don't add it.
61989
61990         Merge 'human' changes from coreutils.  Rewrite to support
61991         locale-specific notations like thousands separators.
61992         * lib/human.c: Simplify authorship notice.
61993         Include human.h immediately after config.h.
61994         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
61995         <limits.h>: Do not include, since human.h does.
61996         (SIZE_MAX, UINTMAX_MAX): New macros.
61997         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
61998         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
61999         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62000         (power_letter): Renamed from suffixes.
62001         (generate_suffix_backwards): Remove.
62002         (adjust_value): Now takes int style (because of human.h changes)
62003         and long double value (for greater precision on some platforms).
62004         (group_number): New function.
62005         (human_readable): Use it.  Use integer options, not enum.
62006         Put the options before the sizes in the arg list.
62007         Support all the new options.
62008         The old human_readable function has been removed;
62009         use inttostr.h instead.
62010         (human_readable, default_block_size, humblock):
62011         Use uintmax_t, not int, for block sizes.
62012         (human_readable_inexact, block_size_types): Remove.
62013         (block_size_opts): New constant.
62014         (human_options): Renamed from human_block_size, with new signature
62015         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62016         * lib/human.h: Add copyright and authorship notice.
62017         Include <limits.h> and <stdbool.h> unconditionally.
62018         (PARAMS): Remove.  All uses removed.
62019         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62020         (enum human_inexact_style): Remove tag; now a nameless enum.
62021         (human_floor, human_ceiling, human_round_to_even): Now have
62022         values 2, 0, 1 rather than -1, 1, 0.
62023         (human_group_digits, human_suppress_point_zero, human_autoscale,
62024         human_base_1024, human_SI, human_B): New constants.
62025         (human_readable_inexact, human_block_size): Remove.
62026         (human_readable): Size args are now uintmax_t, not int.
62027         (human_options): New decl.
62028
62029         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62030         unnecessary now that we assume C89 or better.  This change
62031         imported from coreutils.
62032
62033         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62034         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62035         in the 2003-05-30 sync from glibc.
62036
62037         .h files should stand alone, but we shouldn't include <sys/types.h>
62038         if we can get away with just <stddef.h>.
62039
62040         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62041         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62042         rather than <sys/types.h>, as we merely need size_t.
62043         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62044         to get size_t.
62045         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62046         Include <stdio.h>, to get FILE.
62047         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62048         memcasecmp.h has included <stddef.h> and all we need is size_t.
62049         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62050         our interface, instead of including <sys/types.h>
62051
62052 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62053
62054         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62055         now, as glibc mktime is buggy on non-glibc systems.
62056
62057 2003-06-03  Karl Berry  <karl@gnu.org>
62058
62059         * config/config.sub: update from prep.
62060
62061 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62062
62063         [from coreutils]
62064         Fix some minor time-related bugs with POSIX time arguments.
62065         Some valid time stamps were being rejected (notably -1, and
62066         time stamps before 1900 on 64-bit hosts).  And some invalid
62067         time stamps were being accepted, e.g. September 31.
62068
62069         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62070         that we can return (time_t) -1 successfully.
62071         * lib/posixtm.c: Likewise.
62072         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62073         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62074         (t): Remove static var.
62075         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62076         of static var.  All uses changed.
62077         (year): Do not reject years before 1900; they can occur with
62078         64-bit time_t.
62079         (posix_time_parse): Do not check for out-of-range components;
62080         that is now the caller's responsibility, since our checks were
62081         only approximations.
62082         (posixtime): Use mktime to check for out-of-range components,
62083         since it knows them exactly.
62084         If mktime returns (time_t) -1, check whether an error actually occurred
62085         by invoking localtime on -1.
62086         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62087         posixtime failures better.
62088         Improve the test data (in comments only).
62089
62090 2003-06-02  Karl Berry  <karl@gnu.org>
62091
62092         * config/mkinstalldirs (version): new variable.
62093         (--version): new option.
62094         (usage): improve message.
62095
62096 2003-05-30  Karl Berry  <karl@gnu.org>
62097
62098         * lib/mktime.c: update from libc.
62099
62100 2003-05-30  Bruno Haible  <bruno@clisp.org>
62101
62102         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62103         * config/config.rpath: Upgrade to gettext-0.12.1.
62104
62105 2003-05-30  Bruno Haible  <bruno@clisp.org>
62106
62107         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62108         * m4/nls.m4: New file, from gettext-0.12.1.
62109         * m4/po.m4: New file, from gettext-0.12.1.
62110         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62111
62112 2003-05-30  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62115         * lib/localcharset.h: Likewise.
62116         * lib/localcharset.c: Likewise.
62117
62118 2003-05-29  Karl Berry  <karl@gnu.org>
62119
62120         * config/config.rpath: update from gettext.
62121
62122 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62123
62124         Assume the headers required for C89 freestanding compilers.
62125         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62126         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62127         * m4/human.m4 (gl_HUMAN): Likewise.
62128         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62129         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62130         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62131         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62133         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62134
62135 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62136
62137         Assume the headers required for C89 freestanding compilers.
62138         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62139         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62140         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62141         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62142         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62143         define, since <limits.h> is guaranteed to do that.
62144         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62145         * lib/exclude.c: Include <stdbool.h> unconditionally.
62146         * lib/tempname.c: Include <stddef.h> unconditionally.
62147         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62148         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62149         <stddef.h> does that.
62150         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62151         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62152         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62153         needed.
62154         * lib/xstrtol.c: Likewise.
62155         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62156         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62157
62158         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62159         warnings on some platforms.
62160
62161         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62162         arbitrarily.
62163
62164 2003-05-26  Jim Meyering  <jim@meyering.net>
62165
62166         Merge in a change from coreutils:
62167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62168         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62169         that condition, rather than `-1' which is slightly misleading.
62170         Change the name of the cache variable to have the gl_ prefix.
62171         Prompted by a patch from Richard Dawe for DJGPP.
62172
62173 2003-05-24  Karl Berry  <karl@gnu.org>
62174
62175         * config/config.guess: update from prep.
62176
62177 2003-05-22  Karl Berry  <karl@gnu.org>
62178
62179         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62180
62181 2003-05-20  Karl Berry  <karl@gnu.org>
62182
62183         * config/config.guess: update from prep.
62184
62185 2003-05-18  Karl Berry  <karl@gnu.org>
62186
62187         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62188         might actually be set by the user.
62189
62190         * config/depcomp, install-sh, mdate-sh: update from automake.
62191
62192 2003-05-17  Bruno Haible  <bruno@clisp.org>
62193
62194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62195         invalid expansion for AC_EGREP_CPP.
62196         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62197         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62198         Suggested by Akim Demaille <akim@epita.fr> in
62199         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62200
62201 2003-05-12  Jim Meyering  <jim@meyering.net>
62202
62203         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62204         the space-padded-by-default conversion specifiers, %e, %k, %l.
62205
62206 2003-05-12  Bruno Haible  <bruno@clisp.org>
62207
62208         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62209         the string is longer than 4 KB.
62210
62211 2003-05-11  Karl Berry  <karl@gnu.org>
62212
62213         * config/config.{guess,sub}: update from prep.
62214
62215 2003-05-09  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/error: Add m4/strerror_r.m4 to file list.
62218
62219 2003-05-03  Bruno Haible  <bruno@clisp.org>
62220
62221         Upgrade to Unicode-4.0.
62222         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62223         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62224         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62225         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62226         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62227         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62228         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62229         Change width of U+E0100..U+E01EF from 1 to 0.
62230
62231 2003-04-25  Jim Meyering  <jim@meyering.net>
62232
62233         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62234         of type size_t, not int.
62235
62236 2003-04-25  Bruno Haible  <bruno@clisp.org>
62237
62238         * lib/copy-file.c: Include <stddef.h>, for size_t.
62239
62240 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62241
62242         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62243         code which expansion is under static control.  Patch imported from
62244         Akim Demaille's patch to Bison; see
62245         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62246
62247 2003-04-14  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62250
62251 2003-04-11  Jim Meyering  <jim@meyering.net>
62252
62253         Merge changes from Coreutils.
62254
62255         2003-03-22  Jim Meyering  <jim@meyering.net>
62256
62257         * lib/strftime.c (widen): Cast alloca return value to proper type.
62258
62259         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62260
62261         From GNU libc.
62262         * lib/strftime.c (my_strftime): Handle very large width
62263         specifications for numeric values correctly.  Improve checks for
62264         overflow.
62265
62266         2003-01-19  Jim Meyering  <jim@meyering.net>
62267
62268         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62269         definitions.
62270         (nl_get_alt_digit) [! defined my_strftime]: Define.
62271         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62272         _nl_get_alt_digit and _nl_get_walt_digit.
62273
62274         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62275         libc. These changes have no effect outside of _LIBC.
62276
62277 2003-04-10  Bruno Haible  <bruno@clisp.org>
62278
62279         * modules/findprog: New file.
62280         * MODULES.html.sh (func_all_modules): Add it.
62281
62282 2003-04-10  Bruno Haible  <bruno@clisp.org>
62283
62284         * m4/findprog.m4: New file.
62285         * m4/eaccess.m4: New file.
62286
62287 2003-04-10  Bruno Haible  <bruno@clisp.org>
62288
62289         * lib/findprog.h: New file, from GNU gettext.
62290         * lib/findprog.c: New file, from GNU gettext.
62291
62292 2003-04-05  Jim Meyering  <jim@meyering.net>
62293
62294         Merge changes from Coreutils.
62295
62296         * lib/exclude.h (PARAMS): Remove definition and uses.
62297         * lib/exclude.c: Remove uses of `PARAMS'.
62298
62299         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62300         Add test-cases for DOS filenames. Declare program_name.
62301         (main): Set up program_name.  Patch by Rich Dawe.
62302
62303         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62304         error from mntctl.
62305         Use mntctl's return value to drive the entry-processing loop, since
62306         we can't rely on the value of the vmt_length member in the last
62307         entry.  On some systems doing so could result in exhausting
62308         virtual memory.  Based in part on a patch from Mike Jetzer.
62309
62310 2003-04-04  Bruno Haible  <bruno@clisp.org>
62311
62312         * modules/linebreak: New file.
62313         * MODULES.html.sh (func_all_modules): Add it.
62314
62315 2003-04-04  Bruno Haible  <bruno@clisp.org>
62316
62317         * m4/linebreak.m4: New file.
62318
62319 2003-04-04  Bruno Haible  <bruno@clisp.org>
62320
62321         * lib/linebreak.h: New file, from GNU gettext.
62322         * lib/linebreak.c: New file, from GNU gettext with slight
62323         modifications.
62324         * lib/lbrkprop.h: New file, from GNU gettext.
62325
62326 2003-04-03  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/utf8-ucs4: New file.
62329         * modules/utf16-ucs4: New file.
62330         * modules/ucs4-utf8: New file.
62331         * modules/ucs4-utf16: New file.
62332         * MODULES.html.sh (func_all_modules): Add them.
62333
62334 2003-04-03  Bruno Haible  <bruno@clisp.org>
62335
62336         * m4/utf-ucs4.m4: New file.
62337         * m4/ucs4-utf.m4: New file.
62338
62339 2003-04-03  Bruno Haible  <bruno@clisp.org>
62340
62341         * lib/utf8-ucs4.h: New file, from GNU gettext.
62342         * lib/utf16-ucs4.h: New file, from GNU gettext.
62343         * lib/ucs4-utf8.h: New file, from GNU gettext.
62344         * lib/ucs4-utf16.h: New file, from GNU gettext.
62345
62346 2003-04-02  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/binary-io: New file.
62349         * MODULES.html.sh (func_all_modules): Add it.
62350
62351 2003-04-02  Bruno Haible  <bruno@clisp.org>
62352
62353         * lib/binary-io.h: New file, from GNU gettext.
62354
62355 2003-04-01  Bruno Haible  <bruno@clisp.org>
62356
62357         * modules/pathname: New file.
62358         * MODULES.html.sh (func_all_modules): Add it.
62359
62360 2003-04-01  Bruno Haible  <bruno@clisp.org>
62361
62362         * lib/pathname.h: New file, from GNU gettext.
62363         * lib/concatpath.c: New file, from GNU gettext.
62364
62365 2003-03-30  Bruno Haible  <bruno@clisp.org>
62366
62367         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62368
62369 2003-03-30  Bruno Haible  <bruno@clisp.org>
62370
62371         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62372         function chown() doesn't exist.
62373
62374 2003-03-28  Bruno Haible  <bruno@clisp.org>
62375
62376         * modules/copy-file: New file.
62377         * MODULES.html.sh (func_all_modules): Add it.
62378
62379 2003-03-28  Bruno Haible  <bruno@clisp.org>
62380
62381         * m4/copy-file.m4: New file.
62382
62383 2003-03-28  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/copy-file.h: New file, from GNU gettext.
62386         * lib/copy-file.c: New file, from GNU gettext.
62387
62388 2003-03-18  Jim Meyering  <jim@meyering.net>
62389
62390         * lib/quote.c (quote_n): Fix typo in comment.
62391
62392 2003-03-18  Bruno Haible  <bruno@clisp.org>
62393
62394         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62395         checking.
62396         * m4/onceonly_2_57.m4: Likewise.
62397
62398 2003-03-17  Bruno Haible  <bruno@clisp.org>
62399
62400         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62401         (m4_quote): Remove macro.
62402         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62403
62404 2003-03-14  Jim Meyering  <jim@meyering.net>
62405
62406         Merge changes from Coreutils.
62407         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62408         to be const, in order to avoid warnings.
62409         (obstack_room): Likewise.
62410         (obstack_empty_p): Likewise.
62411
62412 2003-03-14  Bruno Haible  <bruno@clisp.org>
62413
62414         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62415         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62416
62417 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62418
62419         Merge changes from Bison.
62420         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62421         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62422         when compiling Bison 1.875's `bitset bset = obstack_alloc
62423         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62424         * lib/hash.c: Include <stdbool.h> unconditionally.
62425
62426 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62427
62428         * m4/onceonly.m4 (m4_quote): New macro.
62429         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62430         Quote AC_FOREACH variable-expansions properly.
62431
62432 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62433
62434         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62435
62436 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62437
62438         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62439         Reported by Bruce Becker; see:
62440         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62441
62442 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62443             Bruno Haible  <bruno@clisp.org>
62444
62445         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62446         Reported by John Hughes, see
62447         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62448
62449 2003-02-20  Bruno Haible  <bruno@clisp.org>
62450
62451         * MODULES.html.sh (func_all_modules): Add poll.
62452
62453 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62454
62455         * modules/poll: New file.
62456
62457 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62458
62459         * lib/poll_.h: New file.
62460         * lib/poll.c: New file.
62461
62462 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62463
62464         * m4/poll.m4: New file.
62465
62466 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62467
62468         * modules/mathl: New file.
62469
62470 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62471
62472         * lib/mathl.h: New file.
62473         * lib/acosl.c: New file.
62474         * lib/asinl.c: New file.
62475         * lib/atanl.c: New file.
62476         * lib/ceill.c: New file.
62477         * lib/cosl.c: New file.
62478         * lib/expl.c: New file.
62479         * lib/floorl.c: New file.
62480         * lib/frexpl.c: New file.
62481         * lib/ldexpl.c: New file.
62482         * lib/logl.c: New file.
62483         * lib/sincosl.c: New file.
62484         * lib/sinl.c: New file.
62485         * lib/sqrtl.c: New file.
62486         * lib/tanl.c: New file.
62487         * lib/trigl.c: New file.
62488         * lib/trigl.h: New file.
62489
62490 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62491
62492         * m4/mathl.m4: New file.
62493
62494 2003-02-18  Bruno Haible  <bruno@clisp.org>
62495
62496         * MODULES.html.sh (func_all_modules): Add mathl.
62497
62498 2003-02-17  Bruno Haible  <bruno@clisp.org>
62499
62500         * modules/mkdtemp: New module.
62501         * MODULES.html.sh (func_all_modules): Add it.
62502
62503 2003-02-17  Bruno Haible  <bruno@clisp.org>
62504
62505         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62506
62507 2003-02-17  Bruno Haible  <bruno@clisp.org>
62508
62509         * lib/mkdtemp.h: New file, from GNU gettext.
62510         * lib/mkdtemp.c: New file, from GNU gettext.
62511
62512 2003-02-02  Jim Meyering  <jim@meyering.net>
62513
62514         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62515         e.g. glibc-2.2.93.
62516
62517 2003-01-31  Bruno Haible  <bruno@clisp.org>
62518
62519         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62520         'rpl_rename'.
62521         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62522         'rpl_strnlen'.
62523         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62524         'rpl_strtod'.
62525         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62526         'rpl_utime'.
62527
62528 2003-01-31  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/rename.c: #undef rename before defining rpl_rename.
62531         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62532
62533 2003-01-30  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/vasnprintf, modules/vasprintf: New modules.
62536         * MODULES.html.sh (func_all_modules): Add them.
62537
62538 2003-01-30  Bruno Haible  <bruno@clisp.org>
62539
62540         * m4/signed.m4: New file, from GNU gettext.
62541         * m4/longdouble.m4: New file, from GNU gettext.
62542         * m4/wchar_t.m4: New file, from GNU gettext.
62543         * m4/wint_t.m4: New file, from GNU gettext.
62544         * m4/vasnprintf.m4: New file.
62545         * m4/vasprintf.m4: New file.
62546
62547 2003-01-30  Bruno Haible  <bruno@clisp.org>
62548
62549         * lib/printf-args.h: New file, from GNU gettext.
62550         * lib/printf-args.c: New file, from GNU gettext.
62551         * lib/printf-parse.h: New file, from GNU gettext.
62552         * lib/printf-parse.c: New file, from GNU gettext.
62553         * lib/vasnprintf.h: New file, from GNU gettext.
62554         * lib/vasnprintf.c: New file, from GNU gettext.
62555         * lib/asnprintf.c: New file, from GNU gettext.
62556         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62557         * lib/vasprintf.c: New file, from GNU gettext.
62558         * lib/asprintf.c: New file, from GNU gettext.
62559
62560 2003-01-29  Bruno Haible  <bruno@clisp.org>
62561
62562         * modules/stpncpy: New module.
62563         * MODULES.html.sh (func_all_modules): Add it.
62564
62565 2003-01-29  Bruno Haible  <bruno@clisp.org>
62566
62567         * m4/stpncpy.m4: New file.
62568
62569 2003-01-29  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62572         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62573
62574 2003-01-28  Bruno Haible  <bruno@clisp.org>
62575
62576         * modules/c-ctype: New module.
62577         * MODULES.html.sh (func_all_modules): Add it.
62578
62579 2003-01-28  Bruno Haible  <bruno@clisp.org>
62580
62581         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62582         Paul Eggert.
62583         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62584         Paul Eggert.
62585
62586 2003-01-27  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/xsetenv: New module.
62589         * MODULES.html.sh (func_all_modules): Add it.
62590
62591 2003-01-27  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/xsetenv.h: New file, from GNU gettext.
62594         * lib/xsetenv.c: New file, from GNU gettext.
62595
62596 2003-01-23  Jim Meyering  <jim@meyering.net>
62597
62598         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62599         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62600
62601 2003-01-23  Bruno Haible  <bruno@clisp.org>
62602
62603         * modules/minmax: New module.
62604         * MODULES.html.sh (func_all_modules): Add it.
62605
62606 2003-01-23  Bruno Haible  <bruno@clisp.org>
62607
62608         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62609         Eggert.
62610
62611 2003-01-22  Bruno Haible  <bruno@clisp.org>
62612
62613         * modules/exit: New module.
62614         * MODULES.html.sh (func_all_modules): Add it.
62615
62616 2003-01-22  Bruno Haible  <bruno@clisp.org>
62617
62618         * lib/exit.h: New file, from GNU gettext.
62619
62620 2003-01-19  Bruno Haible  <bruno@clisp.org>
62621
62622         * gnulib-tool: Recognize option --extract-maintainer.
62623         (func_get_maintainer): New function.
62624         * modules/*: Add Maintainer entry.
62625
62626 2003-01-16  Jim Meyering  <jim@meyering.net>
62627
62628         * m4/regex.m4: The `regex' struct is both input and output.
62629         Initialize it before each use.  Patch by Tim Waugh.
62630
62631 2003-01-16  Bruno Haible  <bruno@clisp.org>
62632
62633         * MODULES.html.sh: Add a table of contents. Add the module name as
62634         leftmost column. Add hyperlinks.
62635
62636 2003-01-15  Bruno Haible  <bruno@clisp.org>
62637
62638         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
62639
62640 2003-01-15  Bruno Haible  <bruno@clisp.org>
62641
62642         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62643         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62644         suffix.
62645
62646 2003-01-15  Bruno Haible  <bruno@clisp.org>
62647
62648         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62649
62650 2003-01-15  Bruno Haible  <bruno@clisp.org>
62651
62652         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62653         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62654
62655 2003-01-14  Jim Meyering  <jim@meyering.net>
62656
62657         * lib/same.c (same_name): Tweak a comment.
62658
62659 2003-01-14  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62662         when a string comparison is sufficient.
62663
62664 2003-01-14  Bruno Haible  <bruno@clisp.org>
62665
62666         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62667         'unsigned int'.
62668
62669 2003-01-14  Bruno Haible  <bruno@clisp.org>
62670
62671         * lib/hash-pjw.c: Add comment about low quality of this function.
62672
62673 2003-01-13  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/stpcpy: Distribute lib/stpcpy.h.
62676         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62677
62678 2003-01-13  Bruno Haible  <bruno@clisp.org>
62679
62680         * modules/*: Add a description.
62681         * modules/strpbrk: Fix Makefile.am snippet.
62682         * modules/strtoimax: Fix dependencies.
62683         * modules/strtoumax: Likewise.
62684
62685 2003-01-13  Bruno Haible  <bruno@clisp.org>
62686
62687         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62688         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62689         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62690
62691 2003-01-13  Bruno Haible  <bruno@clisp.org>
62692
62693         * gnulib-tool (func_create_testdir): Store config/* files in the main
62694         directory.
62695         * config.rpath: Move to ...
62696         * config/config.rpath: ... here.
62697         * modules/gettext: Contains config/config.rpath, not config.rpath.
62698         * modules/iconv: Likewise.
62699
62700 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62701
62702         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62703         to avoid collisions with libcurses and libreadline.
62704
62705         * m4/getstr.m4: Remove.
62706         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62707
62708 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62709
62710         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62711         to avoid collisions with libcurses and libreadline.
62712
62713         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
62714         * lib/getstr.h, getstr.c: Remove.
62715         * lib/getline.c: Include "getline.h", to check interface.
62716         Move body of old getstr.c here: this defines MIN_CHUNK and
62717         declares getdelim2, which is renamed from getstr.
62718         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
62719
62720         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
62721         All uses changed.
62722         * lib/linebuffer.h: Likewise.
62723         (readline): Remove backward-compatibility macro.
62724
62725 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62726
62727         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62728         to avoid collisions with libcurses and libreadline.
62729         * getstr: Remove.
62730         * MODULES.html.sh: Remove getstr.
62731         * modules/getline: Depend on unlocked-io, not getstr.
62732
62733 2003-01-12  Jim Meyering  <jim@meyering.net>
62734
62735         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
62736
62737 2003-01-10  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/alloca: Change Makefile.am requirements. Simplify Include
62740         requirements. Add lib/alloca_.h to file list.
62741
62742 2003-01-10  Bruno Haible  <bruno@clisp.org>
62743
62744         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
62745
62746 2003-01-10  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/alloca_.h: New file.
62749         * lib/getdate.y: Unconditionally include alloca.h.
62750         * lib/makepath.c: Likewise.
62751         * lib/setenv.c: Likewise.
62752         * lib/userspec.c: Likewise.
62753
62754 2003-01-09  Karl Berry  <karl@gnu.org>
62755
62756         * MODULES.html.sh: include `dirname $0` in PATH, to find
62757         gnulib-tool.
62758
62759 2003-01-09  Bruno Haible  <bruno@clisp.org>
62760
62761         * modules/stdbool: Change configure.ac, Makefile.am requirements.
62762         Simplify Include requirements. Add lib/stdbool.h.in to file list.
62763
62764 2003-01-09  Bruno Haible  <bruno@clisp.org>
62765
62766         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
62767
62768 2003-01-09  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/stdbool.h.in: New file.
62771
62772 2003-01-09  Bruno Haible  <bruno@clisp.org>
62773
62774         * gnulib-tool (func_all_modules): Ignore files ending in ~.
62775         * MODULES.html.sh: Likewise.
62776
62777 2003-01-08  Jim Meyering  <jim@meyering.net>
62778
62779         * lib/full-write.c: Undefine and define-away `const' after inclusion
62780         of errno.h, not before.  Suggestion from Bruno Haible.
62781
62782 2003-01-08  Bruno Haible  <bruno@clisp.org>
62783
62784         * modules/full-read: Depend on full-write.
62785
62786 2003-01-08  Bruno Haible  <bruno@clisp.org>
62787
62788         * lib/safe-read.c: Include specification header first, to ensure its
62789         selfcontainedness.
62790         * lib/full-write.c: Likewise.
62791
62792 2003-01-07  Jim Meyering  <jim@meyering.net>
62793
62794         * lib/full-write.c: Rework so that it may serve to define full_read,
62795         too.
62796         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
62797
62798 2003-01-07  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/strtoimax.c: Include <stdint.h> as an alternative to
62801         <inttypes.h>.
62802         * lib/xstrtol.h: Likewise.
62803         * lib/xstrtoimax.c: Likewise.
62804         * lib/xstrtoumax.c: Likewise.
62805         * lib/human.h: Likewise.
62806
62807         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
62808         on systems that have <inttypes.h> but not <stdint.h>.
62809
62810 2003-01-07  Bruno Haible  <bruno@clisp.org>
62811
62812         * MODULES.html.sh: Add copyright notice.
62813         (missed_files): Omit CVS directory entries.
62814         (func_module): Make it work with sed-3.02.
62815         * MODULES.txt: Remove file.
62816
62817 2003-01-06  Jim Meyering  <jim@meyering.net>
62818
62819         * lib/version-etc.c: Update year in translatable copyright string.
62820
62821 2003-01-03  Karl Berry  <karl@gnu.org>
62822
62823         * config/config.{guess,sub}: update from prep.
62824
62825 2003-01-02  Karl Berry  <karl@gnu.org>
62826
62827         * doc/COPYING.DOC: belatedly updated to 1.2.
62828
62829 2003-01-01  Karl Berry  <karl@gnu.org>
62830
62831         * gnulib-tool (func_verify_module): report module name $module in
62832         error message, not $1.
62833         * gnulib-tool (create-testdir): don't complain if destdir couldn't
62834         be created, only if it doesn't exist.
62835         * gnulib-tool (last_checkin_date): don't expand the $Date here.
62836
62837 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62838
62839         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
62840
62841 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62842
62843         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
62844         memcmp if strcoll doesn't work.
62845
62846 2002-12-31  Bruno Haible  <bruno@clisp.org>
62847
62848         * lib/utime.c (utime_null): No need to call ftruncate if the file was
62849         nonempty.
62850
62851 2002-12-31  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/memcoll.c (STRCOLL): New macro.
62854         (memcoll): Use it.
62855
62856 2002-12-31  Bruno Haible  <bruno@clisp.org>
62857
62858         * lib/localcharset.h: New file.
62859         * lib/localcharset.c: Include it.
62860         * lib/unicodeio.c: Likewise.
62861
62862 2002-12-31  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
62865         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
62866
62867 2002-12-31  Bruno Haible  <bruno@clisp.org>
62868
62869         * lib/getline.h: Include <stddef.h>, for size_t.
62870
62871         * lib/unicodeio.h: Include <stddef.h>, for size_t.
62872         * lib/unicodeio.c: Don't include <stddef.h>.
62873
62874 2002-12-31  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
62877         HAVE_TM_ZONE.
62878
62879 2002-12-24  Karl Berry  <karl@gnu.org>
62880
62881         * config/config.guess: update from prep.
62882
62883 2002-12-24  Bruno Haible  <bruno@clisp.org>
62884
62885         General infrasructure.
62886         * m4/README: Rewritten.
62887         * m4/onceonly.m4: New file.
62888         * m4/onceonly_2_57.m4: New file.
62889
62890         Module atexit.
62891         * m4/atexit.m4: New file.
62892
62893         Module strtod.
62894         * m4/strtod.m4: New file.
62895
62896         Module strtol.
62897         * m4/strtol.m4: New file.
62898
62899         Module strtoul.
62900         * m4/strtoul.m4: New file.
62901
62902         Module memchr.
62903         * m4/memchr.m4: New file.
62904
62905         Module memcmp.
62906         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
62907         (jm_FUNC_MEMCMP): Invoke it.
62908
62909         Module memcpy.
62910         * m4/memcpy.m4: New file.
62911
62912         Module memmove.
62913         * m4/memmove.m4: New file.
62914
62915         Module memset.
62916         * m4/memset.m4: New file.
62917
62918         Module strcspn.
62919         * m4/strcspn.m4: New file.
62920
62921         Module strpbrk.
62922         * m4/strpbrk.m4: New file.
62923
62924         Module strstr.
62925         * m4/strstr.m4: New file.
62926
62927         Module strerror.
62928         * m4/strerror.m4: New file.
62929
62930         Module mktime.
62931         * m4/mktime.m4: Renamed from jm-mktime.m4.
62932         (gl_PREREQ_MKTIME): New macro.
62933         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
62934
62935         Module malloc.
62936         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
62937         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
62938         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
62939
62940         Module realloc.
62941         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
62942         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
62943         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
62944
62945         Module strftime.
62946         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
62947         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
62948         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
62949         gl_TM_GMTOFF.
62950         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
62951
62952         Module xalloc.
62953         * m4/xalloc.m4: New file.
62954
62955         Module alloca.
62956         * m4/alloca.m4: New file.
62957
62958         Module putenv.
62959         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
62960         (jm_FUNC_PUTENV): Invoke it.
62961
62962         Module setenv.
62963         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
62964         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
62965         when invoked twice.
62966         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
62967         gt_FUNC_SETENV.
62968
62969         Module memrchr.
62970         * m4/memrchr.m4: New file.
62971
62972         Module stpcpy.
62973         * m4/stpcpy.m4: New file.
62974
62975         Module strcase.
62976         * m4/strcase.m4: New file.
62977
62978         Module strdup.
62979         * m4/strdup.m4: New file.
62980
62981         Module strnlen.
62982         * m4/strnlen.m4: New file.
62983
62984         Module strndup.
62985         * m4/strndup.m4: New file.
62986
62987         Module xstrtod.
62988         * m4/xstrtod.m4: New file.
62989
62990         Module xstrtol.
62991         * m4/xstrtol.m4: New file.
62992
62993         Module getdate.
62994         * m4/getdate.m4: New file.
62995
62996         Module unlocked-io.
62997         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
62998         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
62999         * m4/jm-glibc-io.m4n: Remove file.
63000
63001         Module long-options.
63002         * m4/long-options.m4: New file.
63003
63004         Module md5.
63005         * m4/md5.m4: New file.
63006
63007         Module sha.
63008         * m4/sha.m4: New file.
63009
63010         Module getstr.
63011         * m4/getstr.m4: New file.
63012
63013         Module getline.
63014         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63015         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63016         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63017         simply getline. Infoke gl_PREREQ_GETLINE.
63018
63019         Module obstack.
63020         * m4/obstack.m4: New file.
63021
63022         Module hash.
63023         * m4/hash.m4: New file.
63024
63025         Module readtokens.
63026         * m4/readtokens.m4: New file.
63027
63028         Module strverscmp.
63029         * m4/strverscmp.m4: New file.
63030
63031         Module stdbool.
63032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63033         OSF/1.
63034
63035         Module strtoll.
63036         * m4/strtoll.m4: New file.
63037
63038         Module strtoull.
63039         * m4/strtoull.m4: New file.
63040
63041         Module strtoimax.
63042         * m4/strtoimax.m4: New file.
63043
63044         Module strtoumax.
63045         * m4/strtoumax.m4: New file.
63046
63047         Module xstrtoimax.
63048         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63049         jm_AC_PREREQ_XSTRTOIMAX.
63050         Moved the strtol prerequisites to strtol.m4.
63051         Moved the strtoll prerequisites to strtoll.m4.
63052         Moved the strtoimax prerequisites to strtoimax.m4.
63053
63054         Module xstrtoumax.
63055         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63056         jm_AC_PREREQ_XSTRTOUMAX.
63057         Moved the strtoul prerequisites to strtoul.m4.
63058         Moved the strtoull prerequisites to strtoull.m4.
63059         Moved the strtoumax prerequisites to strtoumax.m4.
63060
63061         Module chown.
63062         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63063         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63064
63065         Module dup2.
63066         * m4/dup2.m4: New file.
63067
63068         Module ftruncate.
63069         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63070         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63071
63072         Module getgroups.
63073         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63074         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63075
63076         Module gettimeofday.
63077         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63078         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63079         gl_PREREQ_GETTIMEOFDAY.
63080
63081         Module mkdir.
63082         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63083         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63084
63085         Module mkstemp.
63086         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63087         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63088         jm_AC_TYPE_UINTMAX_T.
63089         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63090
63091         Module stat.
63092         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63093         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63094
63095         Module lstat.
63096         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63097         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63098
63099         Module timespec.
63100         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63101         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63102         * m4/st_mtim.m4: Indentation.
63103
63104         Module nanosleep.
63105         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63106         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63107         gl_PREREQ_NANOSLEEP.
63108
63109         Module regex.
63110         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63111         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63112         (gl_REGEX): New macro.
63113
63114         Module rename.
63115         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63116         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63117
63118         Module rmdir.
63119         * m4/rmdir.m4: New file.
63120
63121         Module utime.
63122         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63123         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63124         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63125
63126         Module dirname.
63127         * m4/dirname.m4: New file.
63128
63129         Module getopt.
63130         * m4/getopt.m4: New file.
63131
63132         Module unistd-safer.
63133         * m4/unistd-safer.m4: New file.
63134
63135         Module fnmatch.
63136         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63137         declaration.
63138         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63139         (gl_FUNC_FNMATCH_POSIX): New macro.
63140         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63141         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63142         simply fnmatch.
63143
63144         Module exclude.
63145         * m4/exclude.m4: New file.
63146
63147         Module human.
63148         * m4/human.m4: New file.
63149
63150         Module acl.
63151         * m4/acl.m4: Nop.
63152
63153         Module backupfile.
63154         * m4/backupfile.m4: New file.
63155         * m4/d-ino.m4: Indentation.
63156
63157         Module fsusage.
63158         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63159         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63160         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63161
63162         Module dirfd.
63163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63164         requirements.
63165
63166         Module euidaccess.
63167         * m4/euidaccess.m4: New file.
63168
63169         Module file-type.
63170         * m4/file-type.m4: New file.
63171
63172         Module fileblocks.
63173         * m4/fileblocks.m4: New file.
63174
63175         Module filemode.
63176         * m4/filemode.m4: New file.
63177
63178         Module isdir.
63179         * m4/isdir.m4: New file.
63180
63181         Module lchown.
63182         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63183         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63184
63185         Module makepath.
63186         * m4/makepath.m4: New file.
63187
63188         Module modechange.
63189         * m4/modechange.m4: New file.
63190
63191         Module mountlist.
63192         * m4/mountlist.m4: New file.
63193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63194         Indentation.
63195
63196         Module path-concat.
63197         * m4/path-concat.m4: New file.
63198
63199         Module pathmax.
63200         * m4/pathmax.m4: New file.
63201
63202         Module same.
63203         * m4/same.m4: New file.
63204
63205         Module save-cwd.
63206         * m4/save-cwd.m4: New file.
63207
63208         Module savedir.
63209         * m4/savedir.m4: New file.
63210
63211         Module xgetcwd.
63212         * m4/xgetcwd.m4: New file.
63213         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63214
63215         Module xreadlink.
63216         * m4/xreadlink.m4: New file.
63217
63218         Module safe-read.
63219         * m4/safe-read.m4: New file.
63220
63221         Module safe-write.
63222         * m4/safe-write.m4: New file.
63223
63224         Module closeout.
63225         * m4/closeout.m4: New file.
63226
63227         Module stdio-safer.
63228         * m4/stdio-safer.m4: New file.
63229
63230         Module getpass.
63231         * m4/getpass.m4: New file.
63232
63233         Module getugroups.
63234         * m4/getugroups.m4: New file.
63235
63236         Module group-member.
63237         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63238         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63239
63240         Module idcache.
63241         * m4/idcache.m4: New file.
63242
63243         Module userspec.
63244         * m4/userspec.m4: New file.
63245
63246         Module gettime.
63247         * m4/clock_time.m4: New file.
63248         * m4/gettime.m4: New file.
63249
63250         Module settime.
63251         * m4/settime.m4: New file.
63252
63253         Module posixtm.
63254         * m4/posixtm.m4: New file.
63255
63256         Module gethostname.
63257         * m4/gethostname.m4: New file.
63258
63259         Module canon-host.
63260         * m4/canon-host.m4: New file.
63261
63262         Module gettext.
63263         * m4/codeset.m4: New file, from gettext-0.11.5.
63264         * m4/gettext.m4: New file, from gettext-0.11.5.
63265         * m4/glibc21.m4: New file, from gettext-0.11.5.
63266         * m4/iconv.m4: New file, from gettext-0.11.5.
63267         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63268         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63269         * m4/inttypes.m4: New file, from gettext-0.11.5.
63270         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63271         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63272         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63273         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63274         * m4/lib-link.m4: New file, from gettext-0.11.5.
63275         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63276         * m4/progtest.m4: New file, from gettext-0.11.5.
63277         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63278         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63279         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63280
63281         Module localcharset.
63282         * m4/localcharset.m4: New file.
63283
63284         Module hard-locale.
63285         * m4/hard-locale.m4: New file.
63286
63287         Module mbswidth.
63288         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63289         onceonly macros.
63290         * m4/mbrtowc.m4: Add comment.
63291
63292         Module memcasecmp.
63293         * m4/memcasecmp.m4: New file.
63294
63295         Module memcoll.
63296         * m4/memcoll.m4: New file.
63297
63298         Module unicodeio.
63299         * m4/unicodeio.m4: New file.
63300
63301         Module rpmatch.
63302         * m4/rpmatch.m4: New file.
63303
63304         Module yesno.
63305         * m4/yesno.m4: New file.
63306
63307         Module exitfail.
63308         * m4/exitfail.m4: New file.
63309
63310         Module c-stack.
63311         * m4/c-stack.m4 (gl_C_STACK): New macro.
63312         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63313
63314         Module error.
63315         * m4/error.m4 (gl_ERROR): New macro.
63316         (jm_PREREQ_ERROR): Use onceonly macros.
63317
63318         Module fatal.
63319         * m4/fatal.m4: New file.
63320
63321         Module getloadavg.
63322         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63323         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63324
63325         Module getpagesize.
63326         * m4/getpagesize.m4: New file.
63327
63328         Module getusershell.
63329         * m4/getusershell.m4: New file.
63330
63331         Module physmem.
63332         * m4/physmem.m4: New file.
63333
63334         Module posixver.
63335         * m4/posixver.m4: New file.
63336
63337         Module quotearg.
63338         * m4/quotearg.m4: New file.
63339
63340         Module quote.
63341         * m4/quote.m4: New file.
63342
63343         Module readutmp.
63344         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63345
63346         Module sig2str.
63347         * m4/sig2str.m4: New file.
63348
63349         Other.
63350         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63351         ulonglong.m4.
63352         * m4/intmax_t.m4: New file.
63353         * m4/d-type.m4: Indentation.
63354         * m4/jm-macros.m4: Update.
63355         * m4/prereq.m4 (jm_PREREQ): Update.
63356         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63357         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63358         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63359         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63360         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63361         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63362         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63363         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63364         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63365         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63366         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63367         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63368         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63369         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63370         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63371         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63372         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63373         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63374         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63375
63376 2002-12-24  Bruno Haible  <bruno@clisp.org>
63377
63378         * MODULES.txt: Update according to m4/ changes.
63379
63380         Module gettext.
63381         * config.rpath: New file, from gettext-0.11.5.
63382
63383         * modules/*: New module descriptions.
63384         * gnulib-tool: New file.
63385         * MODULES.html.sh: New file.
63386
63387 2002-12-21  Karl Berry  <karl@gnu.org>
63388
63389         * doc/fdl.texi: update to version 1.2.
63390
63391 2002-12-19  Karl Berry  <karl@gnu.org>
63392
63393         * config/config.guess: update from prep.
63394
63395 2002-12-18  Bruno Haible  <bruno@clisp.org>
63396
63397         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63398         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63399
63400 2002-12-17  Bruno Haible  <bruno@clisp.org>
63401
63402         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63403         stdlib.h, string.h.
63404
63405 2002-12-17  Bruno Haible  <bruno@clisp.org>
63406
63407         * lib/canon-host.c (strdup): Remove unused declaration.
63408
63409         * lib/fsusage.c: Include full_read.h.
63410         (get_fs_usage): Use full_read instead of safe_read.
63411
63412         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63413
63414 2002-12-12  Karl Berry  <karl@gnu.org>
63415
63416         * config/config.guess: update from prep.
63417
63418 2002-12-11  Bruno Haible  <bruno@clisp.org>
63419
63420         * m4/setenv.m4: New file, from gettext-0.11.5.
63421
63422 2002-12-11  Bruno Haible  <bruno@clisp.org>
63423
63424         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63425         not unsetenv().
63426         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63427         modifications:
63428
63429         2002-12-11  Bruno Haible  <bruno@clisp.org>
63430
63431                 * setenv.c (alloca): Fall back to malloc.
63432                 (freea): New macro.
63433                 (setenv): Use freea() to free memory allocated with alloca().
63434
63435         2002-11-13  Bruno Haible  <bruno@clisp.org>
63436
63437                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63438                 function declarations.
63439                 * unsetenv.c (unsetenv): Likewise.
63440
63441         2002-03-04  Bruno Haible  <bruno@clisp.org>
63442
63443                 Portability to AIX 4.3.3.
63444                 * unsetenv.c: New file, extracted from setenv.c.
63445                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63446
63447         2001-12-20  Bruno Haible  <bruno@clisp.org>
63448
63449                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63450                 use malloc instead. For SunOS 4.
63451
63452         2001-12-11  Bruno Haible  <bruno@clisp.org>
63453
63454                 * setenv.c: Declare alloca.
63455                 (compar_fn_t): New typedef.
63456                 (KNOWN_VALUE, STORE_VALUE): Use it.
63457
63458         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63459         setenv.h.
63460
63461 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63462
63463         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63464         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63465         Choose values that are less likely to collide with system fnmatch
63466         options.
63467         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63468         defined (e.g., a pure POSIX system).
63469         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63470         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63471
63472 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63473
63474         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63475         a pain in practice to deal with generated m4 files.  This change
63476         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63477
63478         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63479         and jm-glibc-io.m4, as they are no longer a special case.
63480         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63481         kludge and the auto-generation stuff.  Check only whether the
63482         functions are declared, not whether they exist, since older hosts
63483         that don't declare the functions can't use the optimization anyway.
63484
63485 2002-12-06  Jim Meyering  <jim@meyering.net>
63486
63487         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63488
63489         Merge in changes from libc's misc/error.c, in preparation
63490         for the merge of gnulib's changes back into libc.
63491
63492         * lib/error.c (_): Define only if not already defined.
63493         Move definition to follow all #include directives.
63494         Include unlocked-io.h only if !_LIBC.
63495         [_LIBC]: Include <libio/libioP.h>.
63496         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63497         (fflush): Tweak definition to use INTUSE.
63498         (putc): Define.
63499
63500 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63501
63502         * lib/alloca.c [defined emacs]: Include "lisp.h".
63503         (xalloc_die) [defined emacs]: New macro.
63504         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63505         [! defined emacs]: Include <xalloc.h>.
63506         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63507         (pointer): Typedef to POINTER_TYPE *.
63508         (malloc): Remove decl; we now always use xmalloc.
63509         (alloca): Use old-style definition, since Emacs needs this.
63510         Check for arithmetic overflow when computing combined size.
63511
63512 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63513
63514         Do not generate unlocked-io.h automatically, since it's easier to
63515         maintain it by hand.
63516
63517         * lib/unlocked-io.h: New file, from GNU diffutils,
63518         but with proper copyright notice and attribution.
63519         * lib/gen-uio: Remove.
63520         * lib/Makefile.am: Add copyright notice.
63521         (libfetish_a_SOURCES): Add unlocked-io.h.
63522         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63523         (DISTCLEANFILES, io_functions): Remove macros.
63524         (EXTRA_DIST): Remove gen_uio.
63525         (unlocked-io.h): Remove rule.
63526
63527 2002-12-04  Jim Meyering  <jim@meyering.net>
63528
63529         Reflect the fact that stat.c and lstat.c are no longer generated.
63530         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63531         (DISTCLEANFILES): Likewise.
63532         (EXTRA_DIST): Likewise.
63533         (all_local): Don't depend on stat.c or lstat.c.
63534         (stat.c, lstat.c): Remove rules.
63535         (EXTRA_DIST): Remove xstat.in.
63536
63537         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63538         * lib/stat.c: New file.  Contents mostly from xstat.in.
63539         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63540         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63541
63542         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63543         too.
63544         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63545
63546 2002-12-03  Jim Meyering  <jim@meyering.net>
63547
63548         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63549         but not semantics, to minimize the differences between these two files.
63550         (safe_read): Change comment to mention SAFE_READ_ERROR.
63551
63552         * lib/safe-read.c (IS_EINTR): Define.
63553         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63554
63555 2002-12-02  Jim Meyering  <jim@meyering.net>
63556
63557         * lib/safe-read.c (EINTR): Define.
63558         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63559         (INT_MAX): Provide fallback.
63560         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63561
63562         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63563
63564 2002-12-02  Bruno Haible  <bruno@clisp.org>
63565
63566         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63567         Define, taken from safe-read.c.
63568         (INT_MAX): Provide fallback.
63569         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63570         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63571
63572         * lib/safe-read.c (EINTR): Remove definition.
63573         (safe_read): Don't use EINTR if it is absent.
63574
63575 2002-12-01  Jim Meyering  <jim@meyering.net>
63576
63577         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63578         zero.
63579         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63580
63581 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63582
63583         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63584         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63585         with `if (! (value < limit)) abort ();', for readability.
63586
63587 2002-11-26  Karl Berry  <karl@gnu.org>
63588
63589         * lib/strdup.c: copy from libc again, with jim's ok.
63590         * lib/.cppi-disable: re-add strdup.c
63591
63592 2002-11-25  Karl Berry  <karl@gnu.org>
63593
63594         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63595         instead of "strtol.c".
63596
63597 2002-11-25  Karl Berry  <karl@gnu.org>
63598
63599         * config/install-sh: update from automake for variable quoting, $0 in
63600         error msgs, etc.
63601
63602         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63603         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63604         entry.
63605
63606 2002-11-25  Jim Meyering  <jim@meyering.net>
63607
63608         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63609
63610 2002-11-24  Karl Berry  <karl@gnu.org>
63611
63612         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63613         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63614
63615 2002-11-24  Jim Meyering  <jim@meyering.net>
63616
63617         Update from coreutils:
63618
63619         * lib/mktime.c: Merge in changes from libc.
63620
63621         Avoid a link-time failure on some Linux systems.
63622         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
63623         (otherwise).
63624         (__mon_yday): Declare with the STATIC attribute.
63625         (__mktime_internal): Likewise.
63626         Based on a report from Greg Schafer.
63627
63628 2002-11-23  Jim Meyering  <jim@meyering.net>
63629
63630         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
63631         Use `unsigned', not `int', as type of index.
63632
63633         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
63634
63635         * lib/fsusage.c: Remove unneeded parentheses around operands of
63636         `defined'.
63637
63638 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63639
63640         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63641         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63642         so that we can be included first.
63643         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63644         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63645         No need to include stddef.h or sys/types.h any more.
63646         Surround local include files with "", not "<>".
63647         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63648         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63649         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63650         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63651         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63652         (ISPRINT): Remove; no longer needed now that we assume C89.
63653
63654         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63655         Preserve errno.
63656
63657         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63658         quotearg_char): Use SIZE_MAX rather than
63659         (size_t) -1 when we are talking about "infinity".
63660
63661         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63662
63663 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63664
63665         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63666         hint that one should use `if (! x) abort ();' rather than `assert
63667         (x);', and anyway it's one less thing to worry about configuring.
63668         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63669         hash_rehash, hash_insert): Use abort rather than assert.
63670
63671 2002-11-22  Bruno Haible  <bruno@clisp.org>
63672
63673         * lib/safe-read.h: Assume C89. Add comments.
63674         (safe_read): Change return type to size_t.
63675         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63676         byte counts > SSIZE_MAX correctly.
63677         * lib/safe-write.h: New file.
63678         * lib/safe-write.c: New file.
63679         * lib/full-read.h: New file.
63680         * lib/full-read.c: New file.
63681         * lib/full-write.h: Assume C89. Add comments.
63682         * lib/full-write.c: Include safe-write.h.
63683         (full_write): Rewritten to use safe_write.
63684         Suggested by Jim Meyering and Paul Eggert.
63685
63686 2002-11-21  Jim Meyering  <jim@meyering.net>
63687
63688         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63689
63690         Merge in changes from the coreutils.
63691
63692         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63693         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63694         <stdint.h>.
63695         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63696         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63697         int.  Work more efficiently if X is the same width as uintmax_t.
63698         Do not compare X to -1, to avoid bogus compiler warning.
63699         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63700         Don't assume that f_frsize and f_bsize are the same type.
63701
63702         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63703         warning on FreeBSD.
63704
63705         * lib/makepath.c (make_path): Restore umask *before* creating the final
63706         component.
63707         (make_path): Minor reformatting.
63708
63709         * lib/xmalloc.c: Adjust to work with new autoconf macros,
63710         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
63711         HAVE_MALLOC/HAVE_REALLOC.
63712
63713         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
63714         dummy ones.  At least on GNU/Linux systems, `auto' means something
63715         else.
63716         From Michael Stone.
63717
63718 2002-11-21  Bruno Haible  <bruno@clisp.org>
63719
63720         Remove case insensitive option matching.
63721         * lib/argmatch.h (argcasematch): Remove declaration.
63722         (ARGCASEMATCH): Remove macro.
63723         (__xargmatch_internal): Remove case_sensitive argument.
63724         (XARGMATCH): Update.
63725         (XARGCASEMATCH): Remove macro.
63726         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
63727         case_sensitive argument.
63728         (argcasematch): Remove function.
63729         (__xargmatch_internal): Remove case_sensitive argument.
63730         (main): Use XARGMATCH instead of XARGCASEMATCH.
63731
63732         * lib/xmalloc.c: Change compile-time error message. Add comment about
63733         required autoconf version.
63734
63735 2002-11-20  Paul Eggert  <eggert@twinsun.com>
63736
63737         Merge argmatch cleanups from Bison.  Assume C89.
63738
63739         * lib/argmatch.c: Include config.h here, not in argmatch.h.
63740         Include stdlib.h, for EXIT_FAILURE.
63741         Always include <string.h>, since we assume C89.
63742         (EXIT_FAILURE): Remove pre-C89 bug workaround.
63743         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
63744         Include <stddef.h> instead, since it's all we need for size_t.
63745         (PARAMS): Remove.  All uses removed.
63746         (ARRAY_CARDINALITY): Do not bother to #undef.
63747         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
63748         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63749         Remove unnecessary parentheses.
63750         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63751         Insert necessary parentheses.
63752         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
63753         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
63754
63755 2002-11-19  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
63758         * lib/mbswidth.h: Include <stddef.h>, for size_t.
63759
63760         * lib/mbswidth.h (PARAMS): Remove macro.
63761         (mbswidth, mbsnwidth): Use ANSI C function declarations.
63762         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
63763
63764         * lib/gcd.h (PARAMS): Remove macro.
63765         (gcd): Use ANSI C function declarations.
63766         * lib/gcd.c (gcd): Likewise.
63767
63768 2002-11-15  Bruno Haible  <bruno@clisp.org>
63769
63770         * lib/strcspn.c: Include <stddef.h>.
63771         (strcspn): Use ANSI C function declaration. Change return type to
63772         size_t. Use NULL.
63773         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
63774         (strpbrk): Use NULL.
63775         * lib/strpbrk.h (PARAMS): Remove macro.
63776         (strpbrk): Use ANSI C function declaration.
63777         * lib/strstr.c: Don't include <sys/types.h>.
63778         * lib/strstr.h (PARAMS): Remove macro.
63779         (strstr): Use ANSI C function declarations.
63780
63781 2002-11-14  Karl Berry  <karl@gnu.org>
63782
63783         * config/mkinstalldirs: `do' on separate line, instead of
63784         `for var; do'.
63785
63786 2002-11-06  Bruno Haible  <bruno@clisp.org>
63787
63788         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
63789         * lib/gcd.c (gcd): Likewise.
63790
63791 2002-11-05  Bruno Haible  <bruno@clisp.org>
63792
63793         * lib/gcd.h: New file, from gettext-0.11.5.
63794         * lib/gcd.c: New file, from gettext-0.11.5.
63795
63796 2002-11-05  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63799         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63800         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63801         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63802
63803         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
63804         <libintl.h>.
63805         * lib/makepath.c: Include gettext.h instead of <locale.h> and
63806         <libintl.h>.
63807
63808         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
63809         * lib/human.c: Include gettext.h instead of <libintl.h>.
63810         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
63811         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
63812         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
63813         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
63814         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
63815         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
63816         (textdomain): Remove definition.
63817         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
63818
63819         * lib/long-options.c: Remove include of <libintl.h> and definition of
63820         _.
63821         * lib/same.c: Remove include of <libintl.h> and definition of _.
63822
63823 2002-11-04  Owen Taylor  <otaylor@redhat.com>
63824
63825         * lib/config.charset: A few additions for Solaris.
63826
63827 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63828
63829         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
63830         * lib/localcharset.c (locale_charset): Declare as extern "C".
63831
63832 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63833
63834         * lib/config.charset: msdos in uk_UA uses CP1125.
63835
63836 2002-11-04  Bruno Haible  <bruno@clisp.org>
63837
63838         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
63839         * lib/strcase.h: New file, from GNU gettext-0.11.5.
63840         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
63841         * lib/strstr.h: New file, from GNU gettext-0.11.5.
63842         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
63843
63844 2002-11-04  Bruno Haible  <bruno@clisp.org>
63845
63846         * lib/localcharset.c (locale_charset): Don't return an empty string.
63847
63848 2002-11-04  Bruno Haible  <bruno@clisp.org>
63849
63850         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
63851         aliases.
63852
63853 2002-11-04  Bruno Haible  <bruno@clisp.org>
63854
63855         * lib/config.charset: Update for newest glibc. Add canonical names
63856         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
63857
63858 2002-11-04  Bruno Haible  <bruno@clisp.org>
63859
63860         * lib/config.charset: Add support for NetBSD.
63861
63862 2002-11-04  Bruno Haible  <bruno@clisp.org>
63863
63864         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
63865
63866 2002-11-01  Bruno Haible  <bruno@clisp.org>
63867
63868         * configure.in: Add AC_CONFIG_AUX_DIR call.
63869         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
63870         test/Makefile.
63871         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
63872
63873 2002-09-28  Karl Berry  <karl@gnu.org>
63874
63875         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
63876         installed automake until the next release, since changes have been
63877         made.
63878
63879 2002-09-25  Karl Berry  <karl@gnu.org>
63880
63881         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
63882         * lib/getopt*: copy from libc/posix.
63883         * lib/gettext.h: copy from gettext.
63884         * lib/.cppi-disable: add strdup.c, gettext.h.
63885
63886 2002-09-25  Karl Berry  <karl@gnu.org>
63887
63888         * config/srclist.txt: enable gettext.h check.
63889         * config/config.{guess,sub}: update from prep.
63890         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
63891                 from automake 1.6.3.
63892         See srclist*.
63893
63894 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
63895
63896         * regex.c (PATFETCH): Remove the translating fetch.
63897         (PATFETCH_RAW): Rename to PATFETCH.
63898         (set_image_of_range): New fun.
63899         (SET_RANGE_TABLE_WORK_AREA): Use it.
63900         (regex_compile): Don't translate the pattern chars so eagerly.
63901         Only do it when inserting an `exactn' bytecode or when handling
63902         a char-range.
63903         (mutually_exclusive_p): Avoid empty statement.
63904
63905 2002-07-06  Jim Meyering  <meyering@lucent.com>
63906
63907         * m4/README: Don't mention Makefile.am.in.
63908         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
63909
63910 2002-07-01  Jim Meyering  <meyering@lucent.com>
63911
63912         * lib/c-stack.c: Include sys/time.h.
63913         From Volker Borchert.
63914
63915 2002-06-26  Paul Eggert  <eggert@twinsun.com>
63916
63917         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
63918
63919 2002-06-26  Paul Eggert  <eggert@twinsun.com>
63920
63921         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
63922         New macro.  Use it uniformly instead of
63923         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
63924         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
63925         reported by Vin Shelton.
63926
63927 2002-06-22  Paul Eggert  <eggert@twinsun.com>
63928
63929         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
63930         Do not assume SA_SIGINFO behavior.
63931         Bug reported by Jim Meyering on NetBSD 1.5.2.
63932
63933 2002-06-22  Jim Meyering  <meyering@lucent.com>
63934
63935         * m4/c-stack.m4: New file, from diffutils-2.8.2.
63936         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
63937
63938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
63939         now that configure.ac uses AC_GNU_SOURCE.
63940         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
63941         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
63942
63943         Update to latest tools.  Suggestions from Paul Eggert.
63944         * m4/stdbool.m4: New file, from diffutils-2.8.2.
63945         * m4/gnu-source.m4: Update from diffutils-2.8.2.
63946         * m4/fnmatch.m4: Likewise.
63947         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
63948         to AC_HEADER_STDBOOL
63949
63950 2002-06-22  Jim Meyering  <meyering@lucent.com>
63951
63952         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
63953         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
63954
63955 2002-06-22  Jim Meyering  <meyering@lucent.com>
63956
63957         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
63958
63959         * lib/exitfail.c, exitfail.h: Likewise.
63960         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
63961
63962         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
63963         of fnmatch.h.
63964         (EXTRA_DIST): Add fnmatch_loop.c.
63965         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
63966
63967         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
63968         * lib/fnmatch.c: Update from diffutils-2.8.2.
63969         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
63970         * lib/fnmatch.h: Remove file.
63971
63972 2002-06-21  Jim Meyering  <meyering@lucent.com>
63973
63974         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
63975         * m4/mbrtowc.m4: Likewise.
63976
63977         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
63978         * m4/mbswidth.m4: Reflect name change:
63979         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
63980         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63981
63982         * m4/lib-link.m4: Update from gettext-0.11.2.
63983         * m4/gettext.m4: Likewise.
63984
63985         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
63986         From Alfred M. Szmidt.
63987
63988 2002-06-18  Paul Eggert  <eggert@twinsun.com>
63989
63990         * lib/file-type.h: Report an error if neither S_ISREG nor
63991         S_IFREG is defined, instead of using a test specific to glibc
63992         2.2.  This should be safe, since POSIX requires S_ISREG and
63993         Unix Version 7 had S_IFREG.  We don't need to check for
63994         <sys/types.h> since we don't use any symbols that it defines.
63995
63996 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
63997
63998         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
63999         $@-t, so that each temporary file name is unique and valid in the first
64000         8 characters, for operation under DOS.
64001
64002 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64003
64004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64005
64006 2002-06-15  Jim Meyering  <meyering@lucent.com>
64007
64008         Work even with DJGPP 2.03, which lacks support for symlinks.
64009         From Richard Dawe.
64010         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64011         is defined.
64012         * lib/lchown.c (S_ISLNK): Likewise.
64013
64014 2002-06-15  Jim Meyering  <meyering@lucent.com>
64015
64016         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64017         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64018         have been included before this file.
64019
64020 2002-06-14  Jim Meyering  <meyering@lucent.com>
64021
64022         * lib/file-type.h: Use the version from diffutils-2.8.2.
64023         * lib/file-type.c: Likewise.
64024
64025 2002-06-07  Jim Meyering  <meyering@lucent.com>
64026
64027         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64028         They're needed at least for NetBSD 1.5.2.
64029         ($statxfs_includes): Include those same headers.
64030         ($statxfs_includes): Include sys/vfs.h if available.
64031         ($statxfs_includes): Likewise for sys/statvfs.h.
64032         Check for the following members in both structs statfs and statvfs:
64033         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64034
64035 2002-06-01  Jim Meyering  <meyering@lucent.com>
64036
64037         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64038         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64039
64040 2002-05-28  Jim Meyering  <meyering@lucent.com>
64041
64042         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64043         Reported by Volker Borchert.
64044
64045 2002-05-27  Jim Meyering  <meyering@lucent.com>
64046
64047         Fix a problem seen only on nonconforming systems whereby ls.c's
64048         use of localtime, and then of gettimeofday would cause trouble:
64049         the localtime call used to initialize rpl_gettimeofday's save
64050         mechanism would clobber ls's current local time information so
64051         that in any long listing the first file would always be listed
64052         with date 1970-01-01.  Analysis by Volker Borchert.
64053
64054         * lib/gettimeofday.c (localtime): Undefine.
64055         (rpl_localtime): New function.
64056
64057 2002-05-27  Jim Meyering  <meyering@lucent.com>
64058
64059         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64060         localtime.
64061
64062         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64063         use the replacement function; it wouldn't resolve at link time.
64064         Reported by Volker Borchert.
64065
64066 2002-05-22  Jim Meyering  <meyering@lucent.com>
64067
64068         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64069         file-type.h.
64070         * lib/file-type.h: New file.
64071         * lib/file-type.c (file_type): New file/function.  Extracted from
64072         diffutils.
64073
64074 2002-04-30  Jim Meyering  <meyering@lucent.com>
64075
64076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64077
64078 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64079
64080         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64081
64082 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64083
64084         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64085         Do not check for alloca.h (no longer used) or stdbool.h (was never
64086         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64087
64088 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64089
64090         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64091
64092 2002-04-29  Jim Meyering  <meyering@lucent.com>
64093
64094         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64095         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64096         Use AC_FUNC_STRNLEN here instead.
64097
64098         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64099         With autoconf-2.53a, it's part of AC_PROG_CC.
64100
64101 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64102
64103         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64104         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64105
64106 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64107
64108         * lib/sig2str.h, lib/sig2str.c: New files.
64109         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64110
64111 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64112
64113         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64114         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64115         of 127, since 64 is the largest conceivable number for ancient
64116         nonstandard hosts.
64117         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64118
64119 2002-04-28  Jim Meyering  <meyering@lucent.com>
64120
64121         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64122
64123 2002-04-24  Jim Meyering  <meyering@lucent.com>
64124
64125         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64126         (jm_PREREQ): Use it.
64127
64128         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64129         mach/mach.h fcntl.h.
64130         Check for this function: setlocale.
64131
64132 2002-04-24  Jim Meyering  <meyering@lucent.com>
64133
64134         * lib/gettext.h: New file, from Gettext.
64135         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64136         (libfetish_a_SOURCES): Add gettext.h.
64137
64138 2002-04-16  Jim Meyering  <meyering@lucent.com>
64139
64140         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64141         ut_pid, ut_id, ut_exit.
64142
64143 2002-04-16  Jim Meyering  <meyering@lucent.com>
64144
64145         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64146         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64147         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64148
64149 2002-04-12  Jim Meyering  <meyering@lucent.com>
64150
64151         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64152         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64153         existence of the getmntinfo function.  Needed for Darwin 5.3.
64154
64155         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64156         This is necessary at least on Darwin 5.3.
64157
64158         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64159         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64160         strnlen.o in the library, and that makes some versions of ranlib
64161         object.
64162
64163 2002-04-12  Jim Meyering  <meyering@lucent.com>
64164
64165         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64166
64167 2002-04-09  Jim Meyering  <meyering@lucent.com>
64168
64169         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64170         to be more precise.  Rather than saying we're checking whether the
64171         function `works', say what we're testing.
64172         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64173         Reported by Bruno Haible.
64174
64175 2002-03-10  Jim Meyering  <meyering@lucent.com>
64176
64177         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64178         Suggestion from Santiago Vila.
64179
64180 2002-03-08  Jim Meyering  <meyering@lucent.com>
64181
64182         * lib/rename.c: Mention that this wrapper is needed also on
64183         mips-dec-ultrix4.4 systems.
64184
64185 2002-03-02  Jim Meyering  <meyering@lucent.com>
64186
64187         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64188         not HAVE_CLOCK_SETTIME.
64189
64190 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64191
64192         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64193         Check for clock_settime.
64194
64195 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64196
64197         * lib/nanosleep.h: Rename to....
64198         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64199
64200         * lib/gettime.c: New file.
64201         * lib/settime.c: New file.
64202         * lib/stime.c: Remove.
64203
64204         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64205         timespec.h.  Remove nanosleep.h.
64206
64207 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64208
64209         * m4/acl.m4: New file.
64210         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64211         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64212
64213 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64214
64215         * lib/acl.c, lib/acl.h: New files.
64216         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64217
64218 2002-02-24  Jim Meyering  <meyering@lucent.com>
64219
64220         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64221         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64222         cause trouble.  Reported by Nelson Beebe.
64223
64224 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64225
64226         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64227         compilers that don't know that xalloc_die never returns.
64228
64229 2002-02-20  Jim Meyering  <meyering@lucent.com>
64230
64231         * lib/getdate.c: Regenerate using bison-1.33.
64232
64233 2002-02-17  Jim Meyering  <meyering@lucent.com>
64234
64235         * config/config.guess (main): Don't use `head -1'; it's no longer
64236         portable. Use `sed 1q' instead.
64237
64238 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64239
64240         * m4/codeset.m4: Upgrade to gettext-0.11.
64241         * m4/gettext.m4: Upgrade to gettext-0.11.
64242         * m4/glibc21.m4: Upgrade to gettext-0.11.
64243         * m4/iconv.m4: Upgrade to gettext-0.11.
64244         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64245         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64246         * m4/lib-ld.m4: New file, from gettext-0.11.
64247         * m4/lib-link.m4: New file, from gettext-0.11.
64248         * m4/lib-prefix.m4: New file, from gettext-0.11.
64249         * m4/progtest.m4: Upgrade to gettext-0.11.
64250
64251 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64252
64253         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64254         (jm_PREREQ): Use it.
64255
64256 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64257
64258         * lib/posixver.c, lib/posixver.h: New files.
64259         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64260
64261 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64262             Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64265         (fwrite_success_callback): New declaration.
64266         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64267         print_unicode_char. Call failure callback instead of error.
64268         (fwrite_success_callback): New function.
64269         (exit_failure_callback): New function.
64270         (fallback_failure_callback): New function.
64271         (print_unicode_char): Call unicode_to_mb.
64272
64273 2002-01-26  Jim Meyering  <meyering@lucent.com>
64274
64275         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64276         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64277
64278 2002-01-26  Jim Meyering  <meyering@lucent.com>
64279
64280         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64281
64282 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64283
64284         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64285
64286 2002-01-22  Jim Meyering  <meyering@lucent.com>
64287
64288         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64289         Otherwise, some versions of automake would omit the rule that makes
64290         Makefile from Makefile.in.
64291
64292 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64293
64294         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64295         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64296         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64297         (memcoll): Set errno to zero if there is no error.
64298
64299         * lib/quotearg.c (quotearg_buffer_restyled):
64300         Fix bug with quoting buffers containing NUL when backslashing escapes.
64301         This bug was exposed by the other changes in this patch.
64302         (quotearg_n_options): New arg ARGSIZE.
64303         All callers changed.
64304         (quoting_options_from_style): New function.
64305         (quotearg_n_style): Use it.
64306         (quotearg_n_style_mem): New function.
64307
64308         * lib/quotearg.h (quotearg_n_style_mem): New function.
64309
64310 2002-01-19  Jim Meyering  <meyering@lucent.com>
64311
64312         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64313         Remove useless quotes: DF_PROG="df".
64314         * m4/strnlen.m4: New file.
64315
64316 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64317
64318         * lib/backupfile.c (ISDIGIT): Comment fix.
64319         * lib/getdate.y (ISDIGIT): Likewise.
64320         * lib/posixtm.c (ISDIGIT, year): Likewise.
64321         * lib/strverscmp.c (ISDIGIT): Likewise.
64322         * lib/userspec.c (ISDIGIT): Likewise.
64323
64324 2002-01-16  Jim Meyering  <meyering@lucent.com>
64325
64326         * lib/getdate.y: Add three semicolons, each just before a closing
64327         brace. Bison (as of version 1.31) no longer papers over that mistake.
64328
64329 2002-01-05  Jim Meyering  <meyering@lucent.com>
64330
64331         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64332
64333 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64334
64335         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64336         not silently exit merely because the output buffer happens to
64337         have nothing pending.
64338
64339 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64340
64341         See the big note in ../ChangeLog.
64342         * lib/human.c (suffixes): Prefer K to k for 1024.
64343         (generate_suffix_backwards): New function.
64344         (human_readable_inexact): Use it.
64345         * lib/xstrtol.c (__xstrtol): If there is no number but there
64346         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64347         Accept 'K' as well as 'k'.
64348
64349 2001-12-15  Jim Meyering  <meyering@lucent.com>
64350
64351         * lib/regex.h (__restrict_arr): Update from libc.
64352
64353         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64354         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64355         (STREQ): Define.
64356
64357 2001-12-14  Jim Meyering  <meyering@lucent.com>
64358
64359         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64360         Suggestion from Bruno Haible.
64361
64362 2001-12-10  Jim Meyering  <meyering@lucent.com>
64363
64364         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64365         xrealloc, Instead, include "xalloc.h".
64366         (initbuffer): Don't cast xmalloc return value to char*.
64367         (readline): Reword comment.
64368         Don't cast xrealloc return value to char*
64369         Return NULL, not 0.
64370
64371 2001-12-09  Jim Meyering  <meyering@lucent.com>
64372
64373         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64374         about `signed and unsigned type in conditional expression'.
64375         * lib/posixtm.c (posix_time_parse): Likewise.
64376
64377         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64378
64379         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64380         to avoid a pedantic warning.
64381
64382         * lib/getstr.c: Don't include assert.h.
64383         (getstr): Remove warning-evoking assertions.
64384         Return -1 if offset parameter is out of bounds.
64385         Change the type of a local from int to size_t.
64386
64387         * lib/strftime.c (my_strftime_localtime_r): Include this function
64388         definition in the `#if ! HAVE_TM_GMTOFF' block.
64389
64390         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64391         Include xalloc.h instead.
64392
64393 2001-12-02  Jim Meyering  <meyering@lucent.com>
64394
64395         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64396         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64397         included.
64398
64399         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64400         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64401
64402 2001-11-30  Akim Demaille  <akim@epita.fr>
64403
64404         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64405         before being defined.
64406
64407 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64408
64409         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64410         First arg is int, not unsigned.
64411         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64412         (SIZE_MAX, UINT_MAX): New macros.
64413         (quotearg_n_options): Abort if N is negative.
64414         Avoid overflow check on hosts where size_t is 64 bits and int
64415         is 32 bits, as overflow is impossible there.
64416         Fix off-by-one typo that caused unnecessary reallocation.
64417
64418 2001-11-27  Jim Meyering  <meyering@lucent.com>
64419
64420         * lib/tempname.c: Merge with version from libc.
64421         * lib/regex.c: Likewise.
64422
64423         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64424         systems for which STDC_HEADERS is 0, it was not included, resulting in
64425         a warning about an integer-to-pointer conversion problem with getenv.
64426         Reported by Volker Borchert.
64427
64428 2001-11-26  Jim Meyering  <meyering@lucent.com>
64429
64430         * lib/gtod.h: Remove file.
64431         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64432         * lib/gettimeofday.c: Don't include gtod.h.
64433         (GTOD_init): Remove function.
64434         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64435         Suggestion from Volker Borchert.
64436
64437 2001-11-23  Jim Meyering  <meyering@lucent.com>
64438
64439         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64440         it.
64441         * lib/hash.c (struct hash_table): Define it here instead.
64442
64443 2001-11-22  Jim Meyering  <meyering@lucent.com>
64444
64445         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64446
64447 2001-11-20  Jim Meyering  <meyering@lucent.com>
64448
64449         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64450         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64451
64452 2001-11-19  Jim Meyering  <meyering@lucent.com>
64453
64454         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64455         directory.  Use "conftestXXXXXX" as the template.
64456         Suggestion from Paul Eggert.
64457
64458         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64459         immediately, so the test doesn't mistakenly hit the max-open-files
64460         limit.
64461
64462 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64463
64464         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64465         (TEMPORARIES): New macro.
64466         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64467         removes an artificial limitation (e.g. HP-UX 10.20, where
64468         TMP_MAX is 17576).
64469
64470 2001-11-18  Jim Meyering  <meyering@lucent.com>
64471
64472         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64473
64474 2001-11-18  Jim Meyering  <meyering@lucent.com>
64475
64476         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64477         on SunOS 4.
64478
64479         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64480         files will be created before anything else.
64481
64482 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64483
64484         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64485         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64486
64487 2001-11-17  Jim Meyering  <meyering@lucent.com>
64488
64489         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64490         Prompted by a report from Bob Proulx.
64491
64492         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64493         Instead, require UTILS_FUNC_MKSTEMP.
64494
64495 2001-11-17  Jim Meyering  <meyering@lucent.com>
64496
64497         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64498         Now, that's done as part of AC_FUNC_STRTOD.
64499
64500 2001-11-17  Jim Meyering  <meyering@lucent.com>
64501
64502         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64503         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64504         rather than group writable.  Patch by Juan F. Codagnone.
64505
64506         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64507         xrealloc, Instead, include "xalloc.h".
64508
64509         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64510         Remove explicit declarations of xmalloc, xrealloc,
64511         and xstrdup.  Instead, include "xalloc.h".
64512
64513         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64514         unlocked-io.h.
64515         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64516         Likewise.
64517         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64518
64519         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64520         Reported by Padraig Brady.
64521
64522         * lib/mkstemp.c: #undef mkstemp.
64523         Include config.h.
64524         (rpl_mkstemp): Rename from mkstemp.
64525         Protoize.
64526
64527 2001-11-16  Jim Meyering  <meyering@lucent.com>
64528
64529         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64530         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64531         determine the amount of total physical memory, use pstat_getstatic.
64532         HPUX-11 doesn't define _SC_PHYS_PAGES.
64533         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64534         If sysconf couldn't be used to determine the amount of available
64535         physical memory, use both pstat_getstatic and pstat_getdynamic.
64536         Based on a patch from Bob Proulx.
64537
64538 2001-11-10  Jim Meyering  <meyering@lucent.com>
64539
64540         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64541         (jm_PREREQ): Use it.
64542
64543 2001-11-09  Jim Meyering  <meyering@lucent.com>
64544
64545         * m4/jm-macros.m4: Require autoconf-2.52f.
64546         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64547         Use these AC_-prefixed names, not the AM_-prefixed ones.
64548
64549         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64550
64551 2001-11-05  Jim Meyering  <meyering@lucent.com>
64552
64553         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64554
64555 2001-11-04  Jim Meyering  <meyering@lucent.com>
64556
64557         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64558         $DEFS.
64559
64560 2001-11-03  Jim Meyering  <meyering@lucent.com>
64561
64562         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64563         of AC_DEFUN.
64564
64565         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64566         know the name of the variable in the macro definition.
64567
64568 2001-11-03  Jim Meyering  <meyering@lucent.com>
64569
64570         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64571         in argmatch_to_argument call.
64572
64573         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64574         argument.
64575
64576         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64577         e.g., a fault due to an attempt to free a NULL pointer.
64578
64579 2001-11-01  Jim Meyering  <meyering@lucent.com>
64580
64581         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64582         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64583
64584 2001-11-01  Jim Meyering  <meyering@lucent.com>
64585
64586         * lib/dirfd.c, lib/dirfd.h: New files.
64587         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64588
64589         * lib/hash.c (hash_print) [TESTING]: Clean up.
64590
64591 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64592
64593         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64594         to avoid a warning if -Wall.
64595
64596 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64597
64598         * README: New file
64599         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64600         (per RMS's instructions, this is now the canonical source)
64601         * lgpl/, gpl/: New directories.
64602
64603 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64604
64605         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64606
64607 2001-10-21  Jim Meyering  <meyering@lucent.com>
64608
64609         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64610         this code would end up calling gettext even in packages built
64611         with --disable-nls.
64612         * lib/getopt.c (_): Likewise.
64613         * lib/regex.c (_): Likewise.
64614
64615 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64616
64617         * m4/error.m4 (jm_PREREQ_ERROR):
64618         Do not invoke AC_CHECK_FUNCS with strerror_r, as
64619         AC_FUNC_STRERROR_R does that.
64620         Check for strerror declaration.
64621
64622         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
64623         are supposed to have them these days.
64624         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
64625         Merge changes from latest Autoconf CVS.
64626         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
64627         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
64628         POSIX decided to standardize on the int flavor of strerror_r.
64629
64630 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64631
64632         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
64633         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
64634         Use strerror_r that is only a macro, even if it is not a function.
64635         (strerror): Check for HAVE_DECL_STRERROR before declaring.
64636         (private_strerror): Use prototypes, not old-style function definition.
64637         (print_errno_message): New function.
64638         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
64639         char*-flavored one.
64640         (error_tail, error, error_at_line): Use it.
64641
64642 2001-10-11  Jim Meyering  <meyering@lucent.com>
64643
64644         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64645         and quote_n (1, ... to avoid clobbering a buffer.
64646
64647 2001-10-05  Jim Meyering  <meyering@lucent.com>
64648
64649         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64650         hash-pjw.h.
64651         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64652         * lib/hash-pjw.h: New file.
64653
64654 2001-09-30  Jim Meyering  <meyering@lucent.com>
64655
64656         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64657         `struct fsstat' has the `f_fstypename' member.
64658         Use that to define FS_TYPE, which is now used to make
64659         the getfsstat link test tighter.
64660
64661 2001-09-30  Jim Meyering  <meyering@lucent.com>
64662
64663         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64664         Include <sys/ucred.h>, for Apple Darwin.
64665         Include sys/mount.h and sys/fs_types.h only if available.
64666         (FS_TYPE): Define.
64667         (read_filesystem_list): Use FS_TYPE.
64668
64669 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64670
64671         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64672         a boolean context.
64673
64674 2001-09-29  Jim Meyering  <meyering@lucent.com>
64675
64676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64677         [one-argument getmntent function]): Include stdio.h before mntent.h.
64678         SunOS 4.1.x needs it for the declaration of `FILE'.
64679         Patch by Volker Borchert.
64680
64681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64682         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64683         sys/fs_types.h, and make the link-test for getfsstat guard #include
64684         directives with appropriate #if HAVE_*_H tests so that we can
64685         detect getfsstat on Apple Darwin1.3.7 systems.
64686         Reported by Nelson Beebe.
64687         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64688
64689 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64690
64691         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64692         #defines strtoimax.  Also treat the other strto* functions
64693         like strtoimax.
64694
64695         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64696         Check for strtoul and strtoumax,
64697         as those declarations are made even in the signed case.
64698         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64699         Likewise, for strtol and strtoimax.
64700
64701 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64702
64703         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64704         #defines strtoimax.  Also treat the other strto* functions
64705         like strtoimax.
64706
64707         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64708         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64709         (strtoimax, strtoumax): Do not declare if already defined as a macro.
64710
64711 2001-09-26  Jim Meyering  <meyering@lucent.com>
64712
64713         Most macros in unlocked-io.h had the wrong number of arguments.
64714         * lib/gen-uio: New script.
64715         (USE_UNLOCKED_IO): Define to 1 if not already defined.
64716         * lib/unlocked-io.hin: Remove file.
64717         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
64718         rather than trying to embed it here.
64719         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
64720         Reported by Padraig Brady.
64721
64722 2001-09-25  Volker Borchert  <bt@teknon.de>
64723
64724         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
64725         `result'.
64726
64727 2001-09-24  Jim Meyering  <meyering@lucent.com>
64728
64729         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
64730
64731 2001-09-23  Jim Meyering  <meyering@lucent.com>
64732
64733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
64734         instead of the mere test for existence of mntent.h.  The latter
64735         would get a false-positive on AIX 3.4 systems.
64736         In the outer getmntent if-block, don't die if neither of the getmntent
64737         tests succeeds.  Instead, just fall through and continue with the
64738         remaining tests.
64739
64740 2001-09-23  Jim Meyering  <meyering@lucent.com>
64741
64742         * lib/mountlist.c: Remove useless parentheses in #if directives.
64743         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
64744         the deprecated MOUNTED symbol is no longer defined in mntent.h.
64745
64746 2001-09-22  Jim Meyering  <meyering@lucent.com>
64747
64748         * m4/gettext.m4: New file.  From gettext.
64749         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
64750         * m4/progtest.m4: Likewise
64751         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
64752         * m4/glibc21.m4: Likewise.
64753
64754         * m4/libintl.m4: Remove.  No longer used.
64755
64756 2001-09-22  Jim Meyering  <meyering@lucent.com>
64757
64758         * lib/localcharset.c: Update from latest gettext.
64759         * lib/config.charset: Likewise.
64760
64761 2001-09-20  Jim Meyering  <meyering@lucent.com>
64762
64763         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
64764         strtoimax.
64765         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
64766         strtoumax.
64767
64768 2001-09-20  Jim Meyering  <meyering@lucent.com>
64769
64770         * lib/xstrtol.c (strtoimax): Guard declaration with
64771         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
64772         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
64773         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
64774         (strtoumax): Likewise, for completeness (it wasn't necessary).
64775
64776 2001-09-17  Paul Eggert  <eggert@twinsun.com>
64777
64778         * lib/strtoimax.c (HAVE_LONG_LONG):
64779         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
64780         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
64781         to work around bug in IBM C compiler.
64782
64783 2001-09-17  Jim Meyering  <meyering@lucent.com>
64784
64785         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
64786         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
64787         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
64788         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
64789         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
64790         whenever the right hand side need not be expanded by the shell.
64791
64792 2001-09-16  Paul Eggert  <eggert@twinsun.com>
64793
64794         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
64795         library.  It's not correct, as some older glibcs are buggy.
64796         fnmatch wasn't fixed until glibc 2.2.
64797
64798         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
64799         special shell magic here.
64800
64801 2001-09-16  Jim Meyering  <meyering@lucent.com>
64802
64803         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
64804         * m4/jm-macros.m4: Require it.
64805
64806 2001-09-16  Jim Meyering  <meyering@lucent.com>
64807
64808         * lib/mkdir.c: New file.
64809
64810 2001-09-15  Jim Meyering  <meyering@lucent.com>
64811
64812         * m4/jm-macros.m4: Check for help2man.
64813
64814 2001-09-11  Jim Meyering  <meyering@lucent.com>
64815
64816         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
64817         The body, by Paul Eggert, was moved here from configure.in.
64818         * m4/jm-macros.m4: Require UTILS_HOST_OS.
64819
64820 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64821
64822         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
64823         (jm_PREREQ): Use it.
64824
64825 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64826
64827         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
64828         Use ssize_t, not int, to store result of readlink.
64829         Check for ssize_t overflow as well as size_t overflow,
64830         as POSIX says the result of readlink is implementation-defined
64831         when ssize_t overflows.
64832         Remove unnecessary cast to char*.
64833         Use free+malloc instead of realloc, as the storage doesn't need
64834         to be preserved and it's clearer and can be more efficient that way.
64835         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
64836         * lib/xreadlink.h (xreadlink): Update prototype.
64837
64838 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64839
64840         * lib/xgetcwd.c: Revert some of the previous change; intead,
64841         fix the HAVE_GETCWD_NULL code to behave more like the
64842         !HAVE_GETCWD_NULL code used to.
64843
64844         Include "xalloc.h".
64845         (xgetcwd): Do not return NULL when memory is exhausted; instead,
64846         invoke xalloc_die.
64847
64848 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64849
64850         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
64851         sys/param.h, as pathmax.h includes them.
64852
64853 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64854
64855         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
64856         (jm_PREREQ_XGETCWD): New macro.
64857
64858         * m4/getcwd.m4: New file.
64859
64860 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64861
64862         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
64863         like the HAVE_GETCWD_NULL code.
64864         Include pathmax.h if not HAVE_GETCWD.
64865         Do not include xalloc.h.
64866         (INITIAL_BUFFER_SIZE): New symbol.
64867         Do not use xmalloc / xrealloc, since the caller is responsible for
64868         handling errors.  Preserve errno around `free' during failure.
64869         Do not overrun buffer when using getwd.
64870
64871 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64872
64873         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
64874         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
64875         getcwd (NULL, 0).
64876
64877 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64878
64879         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
64880         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
64881         spotted by Jim Meyering.
64882
64883 2001-09-03  Jim Meyering  <meyering@lucent.com>
64884
64885         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
64886         failure.
64887
64888 2001-09-02  Jim Meyering  <meyering@lucent.com>
64889
64890         * lib/error.c: Update from GNU libc.
64891
64892 2001-09-01  Jim Meyering  <meyering@lucent.com>
64893
64894         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
64895         Used by df.
64896
64897 2001-09-01  Jim Meyering  <meyering@lucent.com>
64898
64899         * lib/xreadlink.c: New file.
64900         * lib/xreadlink.h: New file.
64901         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
64902         xreadlink.h.
64903
64904         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
64905         doesn't conflict with sparc Solaris 7's definition in
64906         /usr/include/sys/int_types.h.
64907
64908         * lib/exclude.c: Use `""', not `<>' to #include non-system header
64909         files.
64910         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
64911         and strncasecmp as r-values.  Unixware didn't have declarations.
64912
64913 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64914
64915         * lib/xstrtol.h: Add copyright notice.
64916         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
64917         LONGINT_INVALID_SUFFIX_CHAR.
64918
64919 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64920
64921         * lib/xstrtol.c (strtoimax): New decl.
64922
64923 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64924
64925         * lib/xgetcwd.c: Don't include pathmax.h.
64926         Include stdlib.h and unistd.h if available.
64927         Include xalloc.h.
64928         (xmalloc, xstrdup, free): Remove decls.
64929         (xgetcwd): Don't assume sizes fit in unsigned.
64930         Check for overflow when computing sizes.
64931         Simplify reallocation code.
64932
64933 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64934
64935         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
64936         a directory's st_size can have an arbitrary value, so the old
64937         usage could waste an arbitrary amount of memory.  All uses
64938         changed.
64939         * lib/savedir.h: Update prototype.
64940
64941 2001-08-31  Paul Eggert  <eggert@twinsun.com>
64942
64943         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
64944
64945         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
64946         old strtoimax.c.
64947
64948         Also, make the following further changes to make this file's
64949         configuration more similar to that of strtol.c:
64950         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
64951         (strtoumax, uintmax_t, strtoull, strtol): Remove.
64952         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
64953         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
64954         changed to signed values.
64955
64956         And make the following changes as well:
64957         Fix copyright notice, as 1999 was missing.
64958         (verify): New macro.
64959         (strtoimax): Check sizes at compile-time, not run-time.
64960         Prefer strtol to strtoll if both work.
64961         (main): Remove; it was not that useful and was a pain to maintain.
64962
64963         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
64964
64965 2001-08-31  Jim Meyering  <meyering@lucent.com>
64966
64967         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
64968         Use an initial, malloc'd, buffer of length 128 rather than
64969         a statically allocated one of length 1024.
64970
64971 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64972
64973         Simplify code, partly by assuming autoconf 2.52 semantics.
64974
64975         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
64976
64977         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
64978         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
64979         All uses removed.
64980         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
64981         Move AC_REQUIRE to next-to-top level, to avoid confusion.
64982         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
64983         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
64984         jm_AC_HEADER_INTTYPES_H.
64985         * m4/jm-macros.m4 (jm_MACROS): Likewise.
64986
64987         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
64988
64989         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64990         Quote first arg of AC_DEFUN.
64991         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
64992         since they are needed to parse the include file even if we need
64993         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
64994         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
64995         but with opposite signedness.
64996
64997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
64998
64999         Merge 'exclude' changes from tar 1.13.22.
65000         This fixes one or two unlikely storage allocation overflow bugs,
65001         but doesn't change user-visible behavior otherwise.
65002
65003 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65004
65005         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65006         (jm_PREREQ_EXCLUDE): New macro.
65007
65008 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65009
65010         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65011         tm to be declared.
65012
65013 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65014
65015         * lib/hash.c: Remove '2001' from copyright notice.
65016
65017 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65018
65019         * lib/full-write.h: New file.
65020         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65021         * lib/full-write.c: Correct credits, as cccp.c no longer
65022         exists and anyway it was so heavily changed from the old cccp
65023         code as to be unrecognizable.  Include full-write.h.
65024         (full_write) Return size_t, with short writes meaning failure.
65025         All callers changed.  This fixes a bug with large buffers
65026         on 64-bit hosts.
65027         * lib/utime.c: Include full-write.h.
65028
65029 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65030
65031         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65032         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65033         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65034         Include if available.
65035         (<xalloc.h>): Include
65036         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65037         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65038         collide with FNM macros.
65039         (struct patopts): New struct.
65040         (struct exclude): Use it, as exclude patterns now come with options.
65041         (new_exclude): Support above changes.
65042         (new_exclude, add_exclude_file):
65043         Initial size must now be a power of two to simplify overflow checking.
65044         (free_exclude, fnmatch_no_wildcards): New function.
65045         (excluded_filename): No longer requires options arg, as the options
65046         are determined by add_exclude.  Now returns bool, not int.
65047         (excluded_filename, add_exclude):
65048         Add support for the fancy new exclusion options.
65049         (add_exclude, add_exclude_file): Now takes int options arg.
65050         Check for arithmetic overflow when computing sizes.
65051         (add_exclude_file): xrealloc might modify errno, so don't
65052         realloc until after errno might be used.
65053
65054         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65055         New macros.
65056         (free_exclude): New decl.
65057         (add_exclude, add_exclude_file): Now takes int options arg.
65058         (excluded_filename): No longer requires options arg, as the options
65059         are determined by add_exclude.  Now returns bool, not int.
65060
65061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65062
65063         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65064
65065 2001-08-27  Jim Meyering  <meyering@lucent.com>
65066
65067         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65068
65069         * lib/version-etc.c (N_): Remove definition.
65070         Revert most of last change.
65071         Instead, simply don't mark the `Copyright...' string for translation.
65072         Based on advice from Paul Eggert.
65073
65074         * lib/strtoxmax.c: Tweak comment.
65075
65076 2001-08-26  Jim Meyering  <meyering@lucent.com>
65077
65078         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65079
65080         * m4/xstrtoimax.m4: New file.
65081         * m4/xstrtoumax.m4: Add comments explaining why we
65082         AC_REPLACE_FUNCS(strtol).
65083
65084 2001-08-26  Jim Meyering  <meyering@lucent.com>
65085
65086         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65087         of copyright with `%s' so translators don't get an untranslated
65088         message in 2002.
65089         (COPYRIGHT_YEAR): Define.
65090         (version_etc): Use fprintf rather than fputs.
65091         Suggestion from Ulrich Drepper.
65092
65093         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65094
65095         * lib/strtoll.c: New file, from GNU libc.
65096         * lib/xstrtoimax.c: New file.
65097
65098         * lib/xstrtol.h: Add xstrtoimax.
65099         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65100         * lib/strtoimax.c: New file.  Likewise, but first define
65101         STRTOUXMAX_SIGNED.
65102
65103         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65104         ...
65105         * lib/strtoxmax.c: ... then renamed to this.
65106
65107 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65108
65109         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65110         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65111         (jm_AC_TYPE_INTMAX_T): New macro.
65112         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65113
65114         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65115
65116         * m4/longlong.m4: Renamed from ulonglong.m4.
65117         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65118         * m4/uintmax_t.m4: Removed.
65119
65120 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65121
65122         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65123         Port to Solaris 8, where 'sed' requires a space after the 'r'
65124         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65125         Redirect output to $tmp just once.
65126
65127 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65128
65129         * lib/addext.c (<errno.h>): Include.
65130         (errno): Declare if not defined.
65131         (addext): Work correctly when pathconf returns -1 and leaves
65132         errno alone because there is no limit.  Also, work even if
65133         pathconf returns a value greater than SIZE_MAX.
65134
65135 2001-08-12  Jim Meyering  <meyering@lucent.com>
65136
65137         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65138         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65139         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65140         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65141         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65142         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65143         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65144         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65145         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65146         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65147         utime.m4, utimes.m4, xstrtoumax.m4:
65148         Quote the first argument in each use of AC_DEFUN.
65149
65150 2001-08-12  Jim Meyering  <meyering@lucent.com>
65151
65152         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65153         Simply `return getcwd (NULL, 0);'.
65154         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65155         Use 1300 as initial value for length, not PATH_MAX.
65156
65157         * lib/pathmax.h: Clean up cpp syntax.
65158
65159 2001-08-12  Jim Meyering  <meyering@lucent.com>
65160
65161         * lib/gettimeofday.c: New file.
65162         * lib/gtod.h: New file.
65163         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65164
65165 2001-08-05  Jim Meyering  <meyering@lucent.com>
65166
65167         * m4/jm-macros.m4: Require autoconf-2.52.
65168
65169 2001-08-04  Jim Meyering  <meyering@lucent.com>
65170
65171         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65172         stmt, to get in sync with glibc.
65173
65174 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65175
65176         The following changes are from gettext 0.10.39 as maintained by
65177         Bruno Haible.
65178
65179         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65180         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65181         with inverted sense.  All uses changed.
65182
65183         * lib/mbswidth.c: Don't include <limits.h>.
65184         Include <stdlib.h> and <string.h> unconditionally.
65185         (iswcntrl, mbsinit, ISCNTRL): New macros.
65186         (mbsnwidth): Use K&R style function declarations.
65187         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65188         can optimize it when MB_CUR_MAX == 1.
65189         The width of control characters is zero, not 1.
65190
65191 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65192
65193         The following changes are from gettext 0.10.39 as maintained by
65194         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65195
65196         * m4/codeset.m4: Upgrade to serial AM1.
65197         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65198         all uses changed.  Quote first arg of AC_DEFUN.
65199         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65200
65201         * m4/iconv.m4: Upgrade to serial AM2.
65202         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65203         Add --with-libconv-prefix.
65204         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65205         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65206         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65207         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65208         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65209
65210         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65211         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65212         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65213         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65214         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65215         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65216         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65217         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65218         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65219
65220         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65221         string.h any more.
65222
65223         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65224         not the default value.
65225
65226         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65227         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65228         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65229         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65230         Also check for iswcntrl, used for wcwidth fallback.
65231         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65232         to Autoconf 2.13.
65233
65234 2001-08-03  Jim Meyering  <meyering@lucent.com>
65235
65236         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65237         as it was in the original.  Reported by Paul Eggert.
65238
65239 2001-07-16  Jim Meyering  <meyering@lucent.com>
65240
65241         * m4/gettimeofday.m4: New file.
65242         Prompted by a report from Bernhard Baehr.
65243
65244 2001-07-15  Jim Meyering  <meyering@lucent.com>
65245
65246         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65247         stuff. Now it's in ../Makefile.cfg.
65248
65249 2001-07-15  Jim Meyering  <meyering@lucent.com>
65250
65251         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65252         (BUILT_SOURCES): Add unlocked-io.h.
65253         (io_functions): Define.
65254         (unlocked-io.h): New rule.
65255         (DISTCLEANFILES): Add unlocked-io.h.
65256         (all-local): Depend on unlocked-io.h, to ensure it is created.
65257
65258         * lib/unlocked-io.hin: New file
65259
65260         * lib/regex.c: Update from glibc.
65261
65262 2001-07-05  Jim Meyering  <meyering@lucent.com>
65263
65264         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65265         recommendation.
65266         (libfetish_a_SOURCES): Put all .h files here instead.
65267         Remove a thus-exposed (better checks in automake) duplicate and
65268         two unnecessary .h files.
65269
65270 2001-07-04  Jim Meyering  <meyering@lucent.com>
65271
65272         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65273         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65274         distcheck failure.
65275
65276 2001-07-02  Jim Meyering  <meyering@lucent.com>
65277
65278         The following changes were prompted by suggestions from Bruno Haible.
65279
65280         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65281         is now generated.
65282         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65283         definition of EXTRA_DIST.
65284         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65285         ensure that the generated file is created/updated whenever the list
65286         of $(unlocked_functions) is changed.
65287         (jm-glibc-io.m4): New rule.
65288         (unlocked-io.h): New rule -- currently unused.
65289
65290 2001-06-24  Jim Meyering  <meyering@lucent.com>
65291
65292         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65293         unmatched right bracket, rather than kludging it with an extra,
65294         falsely-matching quote in a comment.  Patch by Akim Demaille.
65295
65296 2001-06-11  Jim Meyering  <meyering@lucent.com>
65297
65298         * lib/regex.c: Update from GNU libc.
65299
65300 2001-05-27  Jim Meyering  <meyering@lucent.com>
65301
65302         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65303         Check for ut_type in struct utmp.
65304
65305 2001-05-27  Jim Meyering  <meyering@lucent.com>
65306
65307         * lib/readutmp.h (UT_TYPE): Define.
65308
65309 2001-05-24  Jim Meyering  <meyering@lucent.com>
65310
65311         * lib/argmatch.c: Include "quote.h".
65312         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65313         quote function.  Reported by Göran Uddeborg.
65314
65315 2001-05-22  Jim Meyering  <meyering@lucent.com>
65316
65317         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65318         now that we use the package-supplied version unconditionally.
65319         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65320
65321 2001-05-21  Jim Meyering  <meyering@lucent.com>
65322
65323         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65324         shell syntax errors.
65325
65326 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65327
65328         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65329
65330 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65331
65332         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65333         Don't bother to check library strftime, since
65334         we'll be using our own my_strftime function anyway.
65335         Define my_strftime instead of strftime.
65336
65337 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65338
65339         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65340         which is not yet declared.
65341
65342 2001-05-15  Jim Meyering  <meyering@lucent.com>
65343
65344         * m4/regex.m4: Use proper quoting so brackets appear in the test
65345         program.
65346         Reported by, and with help from, Bruno Haible.
65347
65348 2001-05-13  Jim Meyering  <meyering@lucent.com>
65349
65350         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65351         undefined.
65352
65353 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65354
65355         dirname code cleanup.  base_name now behaves more compatibly
65356         with POSIX basename when given file names that have trailing
65357         slashes, and similarly for dir_name.  Add new primitives
65358         base_len and dir_len.  Put the directory-name-related decls
65359         into dirname.h.
65360
65361         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65362         * lib/backupfile.c (base_name): Likewise.
65363         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65364         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65365         * lib/makepath.c (strip_trailing_slashes): Likewise.
65366         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65367         ISSLASH): Likewise.
65368         * lib/rename.c (strip_trailing_slashes): Likewise.
65369         * lib/same.c (base_name): Likewise.
65370         * lib/stripslash.c (ISSLASH): Likewise.
65371
65372         * lib/addext.c: Include <dirname.h> after size_t is defined.
65373         * lib/backupfile.c: Likewise.
65374
65375         * lib/addext.c (addext): Use base_len to trim redundant
65376         trailing slashes instead of doing it ourselves.
65377         But do not trim the last slash if it is not redundant.
65378
65379         * lib/backupfile.c (find_backup_file_name,
65380         max_backup_version): Use base_len instead of rolling it ourselves.
65381         Handle the case of "" and (on DOS) "C:" correctly.
65382
65383         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65384         needed. Include <string.h>, <dirname.h>.
65385         (base_name): Allow file names ending in slashes, other than names
65386         that are all slashes.  In this case, return the basename followed
65387         by the slashes.  This is more general, and can be used in places
65388         where the original base_name purposely had an assertion failure.
65389         (base_len): New function.
65390
65391         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65392         Do not include <assert.h>; no longer needed.
65393         Include xalloc.h.
65394         (memrchr): Remove decl.
65395         (dir_name_r): Remove.
65396         (dir_len): Renamed from dirlen.  All callers changed.
65397         Rewrite in terms of base_name, for simplicity and consistency.
65398         (dir_name): Never return NULL.  All callers changed.
65399         Do not include <stdlib.h> in test program; no longer needed.
65400         return 0; is fine for test program.
65401
65402         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65403         New macros.
65404         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65405
65406         * lib/path-concat.c (path_concat): Use base_len to compute
65407         base length, not strlen; this means we cannot rely on memcpy
65408         to null-terminate.
65409
65410         * lib/same.c (STREQ): Remove.
65411         (same_name): Handle the case where the basename ends in trailing '/'.
65412
65413         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65414         a slash was stripped.  Do not strip the last slash after a
65415         file system prefix.
65416
65417 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65418
65419         * lib/Makefile.am (libfetish_a_SOURCES):
65420         Add strftime.c, since we now compile it on all hosts.
65421
65422         * lib/strftime.c (my_strftime):
65423         Define to nstrftime if emacs, but only if my_strftime is not defined.
65424         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65425         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65426         Add one more extra argument: a nanoseconds value.
65427         All uses changed.
65428         (ns): New macro.
65429         (my_strftime function): Add %N format.
65430         (emacs_strftimeu): Renamed from emacs_strftime,
65431         with extra ut argument.
65432
65433 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65434
65435         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65436
65437 2001-04-21  Jim Meyering  <meyering@lucent.com>
65438
65439         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65440         doesn't interfere.
65441
65442 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65443
65444         * m4/ftruncate.m4: Check for chsize.
65445         Link with ftruncate.o unconditionally if ftruncate is missing.
65446         This was required when cross-compiling to i586-mingw32msvc.
65447
65448 2001-04-08  Jim Meyering  <meyering@lucent.com>
65449
65450         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65451         recomputed; that's necessary when the offset spans a DST transition.
65452         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65453
65454 2001-04-02  Jim Meyering  <meyering@lucent.com>
65455
65456         * lib/regex.h, regex.c: Update from GNU libc.
65457
65458 2001-03-24  Jim Meyering  <meyering@lucent.com>
65459
65460         * m4/jm-macros.m4: Require autoconf-2.49d.
65461
65462 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65463
65464         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65465
65466 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65467
65468         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65469
65470 2001-03-17  Jim Meyering  <meyering@lucent.com>
65471
65472         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65473         now that the version in autoconf is equivalent.
65474         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65475
65476         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65477         Suggestion from Akim Demaille.
65478
65479         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65480         (jm_PREREQ_TEMPNAME): New function.
65481
65482 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65483
65484         * lib/tempname.c (uint64_t): Define to uintmax_t if
65485         not defined, and if UINT64_MAX is not defined.
65486         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65487         Reported by John David Anglin.
65488
65489 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65490
65491         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65492         resolve alias if codeset is empty.
65493         * lib/config.charset (BeOS): Use wildcard syntax.
65494
65495 2001-03-13  Jim Meyering  <meyering@lucent.com>
65496
65497         * lib/path-concat.c (path_concat)
65498         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65499         concatenating e.g., `C:' and `foo'.
65500         From Bruno Haible.
65501
65502 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65503
65504         * lib/localcharset.c (locale_charset): Don't use
65505         setlocale(LC_CTYPE,NULL). Don't return NULL.
65506         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65507
65508 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65509
65510         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65511         support for DOS/DJGPP.
65512
65513 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65514
65515         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65516         lacks mkstemp.  Compile our own tempname.c if we compile our own
65517         mkstemp.c, as mkstemp relies on tempname.
65518
65519 2001-03-01  Jim Meyering  <meyering@lucent.com>
65520
65521         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65522         AH_VERBATIM really does output its argument verbatim.
65523
65524 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65525
65526         * lib/Makefile.am (libfetish_a_SOURCES):
65527         Add dup-safer.c, fopen-safer.c.
65528         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65529
65530         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65531         * lib/unistd-safer.h: New files.
65532
65533 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65534
65535         The mkstemp replacement is taken from glibc 2.2.2, with some
65536         portability fixes for use outside glibc, as follows:
65537
65538         * lib/tempname.c (struct_stat64): New macro.
65539         (direxists, __gen_tempname): Use it.
65540         This avoids a portability problem with Solaris 8.
65541
65542         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65543         (<stddef.h>, <stdint.h>, <string.h>):
65544         Include only if STDC_HEADERS || _LIBC.
65545         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65546         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65547         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65548         (__set_errno): Define this macro if <errno.h> doesn't.
65549         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65550         Define these macros if <stdio.h> doesn't.
65551         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65552         Define these macros if <sys/stat.h>
65553         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65554         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65555         __xstat64): Define if not _LIBC.
65556         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65557         (__gen_tempname): Invoke gettimeofday only if
65558         HAVE_GETTIMEOFDAY || _LIBC;
65559         otherwise, fall back on plain "time".
65560         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65561
65562         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65563
65564         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65565
65566 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65567
65568         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65569
65570 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65571
65572         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65573         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65574         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65575         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65576
65577 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65578
65579         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65580         Remove workaround macros for hosts that have mbrtowc but not
65581         mbstate_t, as we now insist on proper declarations for both
65582         before using mbrtowc.
65583
65584 2001-02-17  Jim Meyering  <meyering@lucent.com>
65585
65586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65587         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65588         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65589         UnixWare 7.1.1.
65590
65591         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65592         rather than AC_CACHE_VAL.
65593
65594 2001-02-17  Jim Meyering  <meyering@lucent.com>
65595
65596         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65597         around included file name.
65598
65599         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65600
65601         * lib/strftime.c: Update from GNU libc (the only changes were to
65602         comments).
65603
65604 2001-02-17  Jim Meyering  <meyering@lucent.com>
65605
65606         * lib/regex.c: Update from libc.
65607
65608 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65609
65610         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65611         clash.
65612
65613 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65614
65615         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
65616         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
65617         Reported by Mark Hounschell via Paul Eggert.
65618
65619 2001-02-07  Jim Meyering  <meyering@lucent.com>
65620
65621         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
65622
65623 2001-02-05  Jim Meyering  <meyering@lucent.com>
65624
65625         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
65626         it includes the patch required for `large file' support with at least
65627         HP-UX's 10.20 /bin/cc.
65628
65629 2001-02-03  Jim Meyering  <meyering@lucent.com>
65630
65631         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
65632         AS_IF, now that it works once again (mysteriously).
65633         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65634
65635 2001-01-30  Jim Meyering  <meyering@lucent.com>
65636
65637         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
65638         * m4/chown.m4: Rename conftestchown to conftest.chown.
65639         * m4/rename.m4: s/conftestdir/conftest.d1/ and
65640         s/conftestdir2/conftest.d2/.
65641         * m4/utimes.m4: s/conftestdata/conftest.data/
65642         Inspired by Pavel Roskin's change in autoconf.
65643
65644 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65645
65646         * lib/config.charset: Update for FreeBSD 4.2.
65647
65648 2001-01-27  Jim Meyering  <meyering@lucent.com>
65649
65650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65651         a use of AS_IF.
65652         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65653
65654 2001-01-26  Jim Meyering  <meyering@lucent.com>
65655
65656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65657         quotearg.c includes it.
65658
65659 2001-01-26  Jim Meyering  <meyering@lucent.com>
65660
65661         * lib/quotearg.c: Include stddef.h.
65662         * lib/quote.c: Include stddef.h.
65663         Reported by Axel Kittenberger.
65664
65665         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65666         line in double quotes so that it evokes a better diagnostic.
65667         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65668         Reported by Axel Kittenberger.
65669
65670 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65671
65672         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65673         as if it was a `charset'.
65674
65675 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65676
65677         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65678         has const.
65679
65680 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65681
65682         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65683         to avoid a warning.  Add back 'const' to inptr.
65684
65685 2001-01-20  Jim Meyering  <meyering@lucent.com>
65686
65687         Be sure that headers are checked before used in code compiled
65688         for the type checks.
65689         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65690         In place of that, invoke jm_CHECK_ALL_TYPES.
65691         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65692         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65693         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65694         The check for ssize_t was mistakenly run before the test for unistd.h.
65695
65696         The configure-time check for stdbool.h was missing.
65697         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65698         (jm_PREREQ_HASH): New function.
65699
65700 2001-01-17  Jim Meyering  <meyering@lucent.com>
65701
65702         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65703         for autoconf-2.49c.
65704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65705
65706 2001-01-16  Jim Meyering  <meyering@lucent.com>
65707
65708         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65709         From Bruno Haible.
65710
65711 2001-01-14  Jim Meyering  <meyering@lucent.com>
65712
65713         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
65714         foo and bar.  Create conftestdir/ in the script, not in the C code.
65715         Remove directories in the script, not in the C code.
65716         Remove conftestdir{,2} before trying to create the directory.
65717         Make the entire configure script fail if the mkdir fails.
65718
65719 2001-01-14  Jim Meyering  <meyering@lucent.com>
65720
65721         * lib/rename.c: New file.  From Volker Borchert.
65722         Include stdlib.h, string.h or strings.h, and xalloc.h.
65723         Use strip_trailing_slashes rather than open-coding it.
65724
65725 2001-01-03  Paul Eggert  <eggert@twinsun.com>
65726
65727         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
65728
65729 2001-01-03  Jim Meyering  <meyering@lucent.com>
65730
65731         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
65732         of local `inptr' to avoid warning with some system declarations of
65733         iconv.
65734
65735 2001-01-02  Volker Borchert  <bt@teknon.de>
65736
65737         * m4/rename.m4: New file.
65738         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
65739
65740 2001-01-01  Jim Meyering  <meyering@lucent.com>
65741
65742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
65743         even on systems with utmpx.h.  It's necessary for the declaration of
65744         utmp's ut_user member.  Reported by Andreas Jaeger.
65745
65746         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
65747         available. They are required for the declarations of getgrgid and
65748         getpwuid resp.
65749         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
65750         Reported by Andreas Jaeger.
65751
65752 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
65753
65754         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
65755         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
65756         so `make install' also works in VPATH builds.
65757
65758 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
65759
65760         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
65761         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
65762         can be used in subdirectories.
65763
65764 2000-12-29  Paul Eggert  <eggert@twinsun.com>
65765
65766         * lib/modechange.c: Do not assume that mode_t uses the
65767         traditional octal encoding.  E.g. "chmod 1 FOO" should set
65768         the other-execute bit of FOO even if S_IXOTH != 1.
65769
65770         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
65771         WOTH, XOTH, ALLM): New macros.
65772         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
65773          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
65774         Use them.
65775         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
65776         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
65777         (mode_compile):
65778         No need to use uintmax_t; unsigned long is long enough.
65779         Don't bother to get suffix since we don't use it.
65780
65781 2000-12-26  Jim Meyering  <meyering@lucent.com>
65782
65783         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
65784         better with autoheader.
65785
65786 2000-12-24  Jim Meyering  <meyering@lucent.com>
65787
65788         * lib/hash.c (is_prime): Return explicit boolean values.
65789         (hash_get_first): Return NULL to appease Irix5.6's 89.
65790         Reported by Nelson Beebe.
65791
65792 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
65793
65794         * lib/localcharset.c (locale_charset): Add support for Win32.
65795
65796 2000-12-18  Paul Eggert  <eggert@twinsun.com>
65797
65798         * lib/physmem.h, lib/physmem.c: New files.
65799
65800         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
65801         (noinst_HEADERS): Add physmem.h.
65802
65803         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
65804         't' for compatibility with Solaris 8 sort.
65805
65806 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
65807
65808         * lib/config.charset: Add support for BeOS.
65809
65810 2000-12-17  Jim Meyering  <meyering@lucent.com>
65811
65812         * m4/dos.m4 (jm_AC_DOS): New file and macro.
65813         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
65814
65815 2000-12-16  Jim Meyering  <meyering@lucent.com>
65816
65817         This bug had a serious impact on chown: `chown N:M FILE' (for integer
65818         N and M) would have treated it like `chown N:N FILE'.
65819
65820         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
65821
65822 2000-12-16  Jim Meyering  <meyering@lucent.com>
65823
65824         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
65825         SHELLS_FILE to a file name that's useful on djgpp systems.
65826         Include stdlib.h.
65827         (ADDITIONAL_DEFAULT_SHELLS): Define.
65828         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
65829         Based mostly on a patch from Prashant TR.
65830
65831 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
65832
65833         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
65834         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
65835         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
65836
65837 2000-12-08  Andreas Schwab  <schwab@suse.de>
65838
65839         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
65840         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
65841
65842 2000-12-07  Jim Meyering  <meyering@lucent.com>
65843
65844         * lib/stripslash.c (ISSLASH): Define.
65845         (strip_trailing_slashes): Use ISSLASH rather than comparing against
65846         `/'.
65847         From Prashant TR.
65848
65849         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
65850         (dir_name_r): Declare this function as static.
65851         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
65852         manifest itself on a name containing a mix of slashes and
65853         backslashes.
65854         Make this function work with names starting with a DOS-style
65855         drive letter and colon prefix.
65856         (dir_name): Append `.' if necessary.
65857         Based mostly on patches from Prashant TR and Eli Zaretskii.
65858
65859         * lib/dirname.h (dir_name_r): Remove prototype.
65860
65861 2000-12-06  Paul Eggert  <eggert@twinsun.com>
65862
65863         * m4/off_t-format.m4: Remove this file.
65864         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
65865
65866 2000-12-06  Jim Meyering  <meyering@lucent.com>
65867
65868         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
65869         replacement strtoull, we may well need the replacement strtoul, too.
65870         Check for declarations of strtoul and strtoull.
65871         Check for strtol.  Mainly as a cue to cause automake to include
65872         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
65873         Check for limits.h -- strtol.c needs it.
65874
65875 2000-12-05  Jim Meyering  <meyering@lucent.com>
65876
65877         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
65878
65879 2000-12-04  Jim Meyering  <meyering@lucent.com>
65880
65881         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
65882         Also include memory.h, stdlib.h, unistd.h if appropriate.
65883         Reported by Andreas Jaeger (conflicting declaration of malloc).
65884
65885 2000-12-02  Jim Meyering  <meyering@lucent.com>
65886
65887         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
65888         * m4/jm-macros.m4 (jm_MACROS): require it.
65889
65890 2000-12-02  Jim Meyering  <meyering@lucent.com>
65891
65892         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
65893
65894 2000-12-01  Paul Eggert  <eggert@twinsun.com>
65895
65896         * lib/memrchr.c: Include <config.h> before any system include file.
65897
65898 2000-11-30  Jim Meyering  <meyering@lucent.com>
65899
65900         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
65901
65902 2000-11-30  Jim Meyering  <meyering@lucent.com>
65903
65904         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
65905
65906 2000-11-29  Paul Eggert  <eggert@twinsun.com>
65907
65908         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
65909
65910 2000-11-26  Jim Meyering  <meyering@lucent.com>
65911
65912         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
65913
65914 2000-11-22  Paul Eggert  <eggert@twinsun.com>
65915
65916         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
65917         size of (size_t) -1; it's not portable.
65918
65919 2000-11-17  Jim Meyering  <meyering@lucent.com>
65920
65921         * lib/strstr.c: Update from GNU libc.
65922
65923 2000-11-17  Akim Demaille  <akim@epita.fr>
65924
65925         * lib/obstack.h: Formatting changes.
65926         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
65927         prevent type checking.
65928         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
65929         cast the value to (void *): assigning a `foo *' to a `void *'
65930         variable is valid.
65931         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
65932
65933 2000-11-16  Jim Meyering  <meyering@lucent.com>
65934
65935         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
65936
65937 2000-11-11  Jim Meyering  <meyering@lucent.com>
65938
65939         * lib/error.c: Add a couple #includes, merging from GNU libc version.
65940
65941 2000-11-10  Jim Meyering  <meyering@lucent.com>
65942
65943         * lib/obstack.h: Update from GNU libc.
65944         * lib/obstack.c: Likewise.
65945
65946 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
65947
65948         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
65949
65950 2000-11-06  Paul Eggert  <eggert@twinsun.com>
65951
65952         * lib/getusershell.c (setusershell): Use rewind rather than
65953         fseek/fseeko, to avoid configuration hassles with fseeko.
65954         Don't bother opening SHELLS_FILE if shellstream is NULL;
65955         it's not necessary.
65956
65957 2000-11-05  Jim Meyering  <meyering@lucent.com>
65958
65959         * lib/makepath.h (make_dir): Declare.
65960         * lib/makepath.c (make_dir): Remove `static' attribute.
65961         Tweak a comment.
65962
65963 2000-11-04  Jim Meyering  <meyering@lucent.com>
65964
65965         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
65966
65967 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
65968
65969         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
65970         last one in a bucket, advance to the next bucket.
65971
65972 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
65973
65974         * lib/fnmatch.c: Do not comment out all the code if we are using
65975         the GNU C library, because in some cases we are replacing buggy
65976         code in the GNU C library itself.
65977
65978 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
65979
65980         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
65981         (regex_compile): Catch bogus \(\1\).
65982
65983 2000-10-30  Paul Eggert  <eggert@twinsun.com>
65984
65985         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
65986         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
65987         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
65988
65989 2000-10-30  Paul Eggert  <eggert@twinsun.com>
65990
65991         * lib/error.h, getline.h, modechange.h:
65992         Remove "2000" from Copyright line, as the file hasn't been
65993         changed this year other than in the copyright notice.
65994
65995         * lib/xalloc.h: Add "2000" to Copyright line, as this file
65996         was changed this year.
65997
65998 2000-10-29  Jim Meyering  <meyering@lucent.com>
65999
66000         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66001         renaming.
66002         * m4/ls-mntd-fs.m4: Likewise
66003
66004 2000-10-29  Jim Meyering  <meyering@lucent.com>
66005
66006         * lib/xstat.in: Fix grammar in comment.
66007
66008 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66009
66010         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66011         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66012         doesn't define __restrict_arr.
66013
66014 2000-10-28  Jim Meyering  <meyering@lucent.com>
66015
66016         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66017         (jm_PREREQ_MEMCHR): New function.
66018
66019 2000-10-28  Jim Meyering  <meyering@lucent.com>
66020
66021         * lib/memchr.c: Update from libc.
66022         Adjust for portability:
66023         [HAVE_STDLIB_H]: Include stdlib.h.
66024         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66025         Undef __memchr, too.
66026         [!weak_alias]: Define __memchr to memchr.
66027
66028         * lib/regex.c: Update from libc.
66029         * lib/regex.h: Likewise.
66030         * lib/getopt1.c: Likewise.
66031         * lib/memcmp.c: Likewise.
66032
66033         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66034         Avoid using fseek, when possible -- it's broken by design.
66035         Patch by Ulrich Drepper.
66036
66037 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66038
66039         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66040         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66041         Giving in to popular pressure to shut up the compiler with casts.
66042
66043 2000-10-26  Jim Meyering  <meyering@lucent.com>
66044
66045         * lib/strftime.c: Update from libc.
66046
66047 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66048
66049         * regex.c: More `unsigned char' -> `re_char' changes.
66050         Also change several `int' into `re_wchar_t'.
66051         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66052         (PUSH_FAILURE_POINTER): Don't cast any more.
66053         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66054         We want GCC to complain, since this piece of code makes
66055         re_match non-reentrant, which *should* be fixed.
66056         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66057         (EXTEND_BUFFER): Use RETALLOC.
66058         (SET_LIST_BIT): Don't cast.
66059         (re_wchar_t): New type.
66060         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66061         that those two functions will always properly return.
66062         (IMMEDIATE_QUIT_CHECK): Cast to void.
66063         (analyse_first): Use recursion rather than an explicit stack.
66064         (re_compile_fastmap): Can't fail anymore.
66065         (re_search_2): Don't check re_compile_fastmap for failure.
66066         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66067         Now also sets the new value (passed in a new argument).
66068         (re_match_2_internal): Use it.
66069         Also, use a new var `reg' of type size_t when looping through regs
66070         rather than reuse the inappropriate `mcnt'.
66071
66072 2000-10-25  Jim Meyering  <meyering@lucent.com>
66073
66074         * lib/obstack.c: Update from libc.
66075
66076 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66077
66078         * regex.c (regex_compile): Change the way of handling a range from
66079         a char less than 256 to a char not less than 256.
66080
66081 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66082
66083         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66084         NT-Emacs only.
66085         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66086         so that re_search functions only quit when callers expect them to.
66087
66088 2000-10-23  Jim Meyering  <meyering@lucent.com>
66089
66090         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66091         wrong.  That set_locale call must not have any side effects.
66092         From Paul Eggert.
66093
66094 2000-10-22  Jim Meyering  <meyering@lucent.com>
66095
66096         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66097         [CYCLIC]: Remove now-unused definition.
66098
66099         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66100         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66101         Suggestion from Ulrich Drepper.
66102
66103 2000-10-21  Jim Meyering  <meyering@lucent.com>
66104
66105         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66106         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66107         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66108
66109 2000-10-21  Jim Meyering  <meyering@lucent.com>
66110
66111         * lib/dirname.c (memrchr): Declare if necessary.
66112         (dir_name): Remove the restriction that there be no
66113         trailing slashes.  Now, this code skips past them, effectively
66114         ignoring them.
66115         [TEST_DIRNAME] (main): New unit tests.
66116
66117         * lib/memrchr.c: New file from GNU libc.
66118         Undef __memrchr, too.
66119         [!weak_alias]: Define __memrchr to memrchr.
66120         Guard weak_alias use with `#ifdef weak_alias'.
66121
66122 2000-10-21  Jim Meyering  <meyering@lucent.com>
66123
66124         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66125         (dir_name): Use dir_name_r.
66126         * lib/dirname.h (dir_name_r): Declare it.
66127
66128 2000-10-17  Jim Meyering  <meyering@lucent.com>
66129
66130         * lib/quote.h (PARAMS): Define and use.
66131         Reported by Akim Demaille.
66132
66133         * lib/getopt.c: Update from libc.
66134
66135 2000-10-16  Jim Meyering  <meyering@lucent.com>
66136
66137         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66138         setlocale.
66139         From Jan Fedak.
66140
66141 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66142
66143         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66144
66145 2000-09-25  Jim Meyering  <meyering@lucent.com>
66146
66147         * lib/md5.h (rol): Define (from GnuPG).
66148
66149         * lib/sha.c: Give credit (GnuPG) where due.
66150         (M): Use rol rather than open-coding it.
66151         Add a FIXME comment.
66152
66153 2000-09-21  Jim Meyering  <meyering@lucent.com>
66154
66155         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66156         Reported by Michael Stone.
66157
66158 2000-09-20  Jim Meyering  <meyering@lucent.com>
66159
66160         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66161         (noinst_HEADERS): Add sha.h.
66162         Based on code from Scott G. Miller and from GnuPG.
66163
66164 2000-09-18  Jim Meyering  <meyering@lucent.com>
66165
66166         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66167         LIBS. Otherwise, everyone ends up linking with -lelf for some
66168         configurations.
66169         Reported by Mike Stone.
66170
66171 2000-09-15  Jim Meyering  <meyering@lucent.com>
66172
66173         * lib/regex.c: Update from libc.
66174
66175 2000-09-10  Jim Meyering  <meyering@lucent.com>
66176
66177         * lib/getopt.c (_getopt_internal): Update from glibc.
66178
66179 2000-09-09  Jim Meyering  <meyering@lucent.com>
66180
66181         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66182         think it should be used as a general replacement for isascii.
66183         * lib/fnmatch.c: Likewise.
66184         * lib/mbswidth.c: Likewise
66185         * lib/regex.c: Likewise.
66186
66187         Don't use atoi.
66188         * lib/userspec.c: Include sys/param.h and limits.h.
66189         Include xstrtol.h.
66190         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66191         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66192         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66193         UID, GID.  Check range.
66194
66195 2000-09-06  Jim Meyering  <meyering@lucent.com>
66196
66197         * lib/getopt.c (_getopt_internal): Update from glibc.
66198
66199 2000-08-30  Jim Meyering  <meyering@lucent.com>
66200
66201         * lib/strftime.c: Merge in changes from GNU libc.
66202
66203 2000-08-26  Jim Meyering  <meyering@lucent.com>
66204
66205         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66206         * m4/fpending.m4: New file.
66207
66208 2000-08-26  Jim Meyering  <meyering@lucent.com>
66209
66210         * lib/closeout.c: Include "__fpending.h".
66211         (close_stdout_status): Return right away if there's nothing to flush.
66212
66213         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66214         * lib/__fpending.c: New file.
66215         * lib/__fpending.h: New file.
66216
66217 2000-08-20  Jim Meyering  <meyering@lucent.com>
66218
66219         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66220         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66221         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66222
66223 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66224
66225         Improve fileutils installation on systems where running
66226         programs (like install) can't be unlinked.
66227         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66228         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66229
66230 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66231
66232         Standardize on "memory exhausted" instead of "Memory exhausted"
66233         or "virtual memory exhausted".
66234         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66235         "virtual memory exhausted".
66236         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66237         our own message.
66238         * lib/userspec.c (parse_user_spec): Likewise.
66239         * lib/bumpalloc.h: comment fix
66240         * lib/same.c, userspec.c: Include xalloc.h.
66241
66242         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66243         not char *const and pointing to a constant array.
66244         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66245         (xrealloc): Comment fix.
66246
66247         * lib/userspec.c (parse_user_spec):
66248         Don't translate a message until just before returning,
66249         to avoid unnecessary translation.
66250
66251 2000-08-07  Jim Meyering  <meyering@lucent.com>
66252
66253         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66254         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66255         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66256         getgroups.c, gethostname.c, getopt.h, group-member.c,
66257         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66258         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66259         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66260         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66261         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66262         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66263         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66264         yesno.c: Back out Copyright date changes for each file with no change
66265         this year.  This eases coordination with other programs using the same
66266         source code modules.  From Paul Eggert.
66267
66268 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66269
66270         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66271         not char, for compatibility with glibc 2.1.3 strftime.c.
66272
66273 2000-08-03  Greg McGary  <greg@mcgary.org>
66274
66275         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66276         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66277         (EXTEND_BUFFER): Use them.
66278
66279 2000-08-01  Jim Meyering  <meyering@lucent.com>
66280
66281         * lib/dirname.c (ISSLASH): Define.
66282         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66283         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66284         both `\' and `/' may be use as path separators.
66285         Based on a patch from Prashant TR.
66286
66287 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66288
66289         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66290         slot vector a constant, since it might get modified.
66291
66292 2000-07-31  Jim Meyering  <meyering@lucent.com>
66293
66294         * lib/xmalloc.c: Use `virtual memory exhausted', not
66295         `Memory exhausted'.
66296         * lib/obstack.c (print_and_abort): Likewise.
66297
66298 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66299
66300         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66301         buffer, so that the caller can always quote one small
66302         component of a "memory exhausted" message in slot 0.
66303         From a suggestion by Jim Meyering.
66304
66305 2000-07-30  Jim Meyering  <meyering@lucent.com>
66306
66307         * lib/makepath.c (make_path): Quote the other instance, too.
66308
66309         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66310         (STATIC_BUF_SIZE): Define.
66311         (quotearg_n_options): Use only statically allocated storage when
66312         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66313         than STATIC_BUF_SIZE.
66314
66315 2000-07-29  Jim Meyering  <meyering@lucent.com>
66316
66317         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66318         * lib/dirname.c (dir_name): Likewise.
66319
66320         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66321         `/'.
66322
66323         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66324         (dir_name): Assert that there are no trailing slashes.
66325
66326 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66327
66328         * lib/mbswidth.h (mbswidth): Add a flags argument.
66329         (mbswidth): New declaration.
66330         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66331         * lib/mbswidth.c (mbswidth): Add a flags argument.
66332         (mbsnwidth): New function.
66333
66334 2000-07-24  Jim Meyering  <meyering@lucent.com>
66335
66336         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66337
66338 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66339
66340         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66341
66342 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66343
66344         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66345         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66346         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66347         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66348         invoke multibyte primitives.
66349
66350 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66351
66352         * lib/quotearg.c:
66353         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66354         so that mbstate_t is always defined.
66355
66356         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66357         be 1 in at least one GCC installation, and this configuration
66358         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66359         performance on hosts that have mbrtowc but have only unibyte
66360         locales, but I assume these hosts are rare.
66361
66362 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66363
66364         * lib/mbswidth.c (_XOPEN_SOURCE):
66365         Don't define; this causes problems on Solaris 7.
66366         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66367
66368 2000-07-23  Jim Meyering  <meyering@lucent.com>
66369
66370         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66371         too: getgrgid, getpwuid, getuid.
66372
66373 2000-07-23  Jim Meyering  <meyering@lucent.com>
66374
66375         * lib/basename.c (base_name): Add an assertion.
66376
66377 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66378
66379         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66380         shadow its mbsinit function.
66381
66382 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66383
66384         * lib/mbswidth.h: New file.
66385         * lib/mbswidth.c: New file.
66386         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66387         (noinst_HEADERS): Add mbswidth.h.
66388
66389 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66390
66391         * lib/config.charset: Add support for FreeBSD. Improve support for
66392         HP-UX and IRIX 6.
66393
66394 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66395
66396         * m4/mbswidth.m4: New file.
66397         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66398
66399 2000-07-15  Jim Meyering  <meyering@lucent.com>
66400
66401         * lib/makepath.c: Include quote.h.
66402         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66403         corresponding argument in a `quote (...)' call.
66404         Give better diagnostics.
66405
66406         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66407         (noinst_HEADERS): Add quote.h.
66408
66409         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66410         from tar's src/misc.c.
66411         * lib/quote.h: New file.  Prototypes for same.
66412
66413 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66414
66415         From a suggestion by Bruno Haible.
66416         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66417         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66418         to decide whether to define the BeOS workaround macro;
66419         this adjusts to the change to AC_MBSTATE_T.
66420
66421 2000-07-14  Jim Meyering  <meyering@lucent.com>
66422
66423         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66424         jm_AC_TYPE_UINTMAX_T.
66425
66426 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66427
66428         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66429
66430         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66431         quotearg_buffer_restyled): Add support for
66432         clocale_quoting_style.  Undo previous change to
66433         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66434         and "{RIGHT QUOTATION MARK}" msgids.
66435
66436 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66437
66438         From a suggestion by Bruno Haible.
66439         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66440         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66441         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66442         and mbstate_t, to a single-part test that simply defines mbstate_t.
66443         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66444         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66445
66446 2000-07-10  Jim Meyering  <meyering@lucent.com>
66447
66448         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66449
66450         * m4/gnu-source.m4: Output to confdefs.h directly.
66451         Suggestion from Akim Demaille.
66452
66453 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66454
66455         The old behavior of quoting `like this' doesn't look good with
66456         newer, ISO-style fonts.  See:
66457         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66458
66459         Instead, quote "like this" by default.  Let the translator
66460         tailor the locale-specific quoting behavior by providing
66461         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66462
66463         * lib/quotearg.c (N_): New macro.
66464         (gettext_default): New function.
66465         (quotearg_buffer_restyled): Use
66466         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66467         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66468
66469 2000-07-09  Jim Meyering  <meyering@lucent.com>
66470
66471         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66472         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66473
66474         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66476
66477 2000-07-09  Jim Meyering  <meyering@lucent.com>
66478
66479         * lib/Most files: Update copyright dates to include 2000.
66480
66481 2000-07-08  Jim Meyering  <meyering@lucent.com>
66482
66483         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66484         if not defined.
66485         (xgethostname): Remove now-unnecessary #ifdef.
66486         Move declaration of `err' into loop where it's used.
66487
66488 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66489         and Bruno Haible  <haible@clisp.cons.org>
66490
66491         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66492         only if the test for an object-type mbstate_t fails.  This
66493         prevents us from mistakenly reporting that mbstate_t is a
66494         system object type after we "#define mbstate_t int" to work
66495         around its lack.
66496
66497 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66498         and Bruno Haible  <haible@clisp.cons.org>
66499
66500         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66501
66502 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66503
66504         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66505         to strerror_r.
66506         Include <ctype.h> for use of isalpha.
66507
66508 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66509
66510         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66511         by allocating a larger buffer. Test the gethostname return value for
66512         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66513         returns an error and ENAMETOOLONG isn't defined.
66514
66515 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66516
66517         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66518         dimension.
66519
66520 2000-07-04  Jim Meyering  <meyering@lucent.com>
66521
66522         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66523         of the deprecated AC_CHECKING.
66524
66525 2000-07-04  Jim Meyering  <meyering@lucent.com>
66526
66527         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66528         Reported by Bruno Haible.
66529
66530 2000-07-04  Jim Meyering  <meyering@lucent.com>
66531
66532         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66533         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66534         lacks mbrtowc.
66535
66536 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66537
66538         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66539         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66540
66541 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66542         and Bruno Haible  <haible@clisp.cons.org>
66543
66544         * lib/quotearg.c (mbrtowc):
66545         Assign to *pwc, and return 1 only if result is nonzero.
66546         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66547
66548 2000-07-03  Jim Meyering  <meyering@lucent.com>
66549
66550         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66551
66552 2000-07-03  Jim Meyering  <meyering@lucent.com>
66553
66554         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66555         This is necessary to get a definition of e.g., UTMP_FILE on
66556         HP-UX 10.20.
66557         From Bob Proulx.
66558
66559 2000-07-02  Jim Meyering  <meyering@lucent.com>
66560
66561         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66562
66563         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66564         AC_LIBOBJ(function_name).
66565         * m4/chown.m4: Likewise.
66566         * m4/fnmatch.m4: Likewise.
66567         * m4/ftruncate.m4: Likewise.
66568         * m4/getgroups.m4: Likewise.
66569         * m4/getline.m4: Likewise.
66570         * m4/group-member.m4: Likewise.
66571         * m4/jm-macros.m4: Likewise.
66572         * m4/lstat.m4: Likewise.
66573         * m4/malloc.m4: Likewise.
66574         * m4/memcmp.m4: Likewise.
66575         * m4/nanosleep.m4: Likewise.
66576         * m4/putenv.m4: Likewise.
66577         * m4/realloc.m4: Likewise.
66578         * m4/regex.m4: Likewise.
66579         * m4/stat.m4: Likewise.
66580         * m4/strftime.m4: Likewise.
66581
66582 2000-07-02  Jim Meyering  <meyering@lucent.com>
66583
66584         * lib/quotearg.c (mbstate_t): Don't define here.
66585
66586 2000-07-02  Jim Meyering  <meyering@lucent.com>
66587
66588         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66589
66590 2000-07-01  Jim Meyering  <meyering@lucent.com>
66591
66592         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66593
66594 2000-07-01  Jim Meyering  <meyering@lucent.com>
66595
66596         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66597         problem.
66598
66599 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66600
66601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66602         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66603
66604 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66605
66606         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66607         per change in ../m4/ls-mntd-fs.m4.
66608         (read_filesystem_list): Ignore symbolic links.
66609
66610 2000-06-29  Jim Meyering  <meyering@lucent.com>
66611
66612         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66613         for declaration of strcmp.
66614
66615         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
66616
66617         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
66618         Avoid warning by casting result to `char *' to remove `const'.
66619
66620 2000-06-28  Jim Meyering  <meyering@lucent.com>
66621
66622         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
66623         included by quotearg.c, for which we perform this test.  From
66624         Bruno Haible.
66625
66626 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66627
66628         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
66629         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
66630         <utmpx.h> exists, put readutmp.o into LIBOBJS.
66631
66632 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66633
66634         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
66635
66636 2000-06-26  Paul Eggert  <eggert@twinsun.com>
66637
66638         savedir now sets errno on failure and invokes xmalloc to get memory.
66639         Fix a couple of other minor bugs while we're at it.
66640
66641         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66642         (NAMLEN): Remove macro.
66643         (malloc, realloc): Remove decls.
66644         (stpcpy): Likewise.
66645         ("xalloc.h"): Include.
66646         (NAME_SIZE_DEFAULT): New macro.
66647         (savedir): Use xmalloc / xrealloc to allocate memory.
66648         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66649         Skip "" directory entries.
66650         Use strlen to calculate directory entry length, since the old method
66651         is rarely used these days and isn't worth supporting.
66652         Don't use a pointer after freeing it.
66653         Check for integer overflow when calculating allocation size.
66654         Use memcpy to copy entries, instead of stpcpy.
66655         Set errno properly when returning NULL.
66656         Check for readdir error.
66657
66658 2000-06-26  Jim Meyering  <meyering@lucent.com>
66659
66660         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66661
66662 2000-06-25  Jim Meyering  <meyering@lucent.com>
66663
66664         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66665         Linux header bug when _XOPEN_SOURCE is defined to 500.
66666
66667 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66668
66669         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66670         deficiency.
66671
66672 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66673
66674         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66675         Include xalloc.h.
66676         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66677
66678 2000-06-24  Jim Meyering  <meyering@lucent.com>
66679
66680         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66681         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66682         for which strerror does return char*, but which lacks a conveniently
66683         accessible declaration of the function.  If the compile-test says
66684         strerror_r doesn't work, then resort to a `run'-test that works on
66685         BeOS and segfaults on DEC Unix.
66686
66687 2000-06-24  Jim Meyering  <meyering@lucent.com>
66688
66689         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66690
66691 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66692
66693         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66694         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66695
66696 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66697
66698         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66699         (mbrtowc, mbstate_t): Define substitutes if
66700         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66701         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66702         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66703
66704 2000-06-23  Jim Meyering  <meyering@lucent.com>
66705
66706         * m4/afs.m4: Add missing AC_MSG_RESULT.
66707         Reported by Bruno Haible.
66708
66709         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
66710         Suggestion from Bruno Haible.
66711
66712 2000-06-23  Jim Meyering  <meyering@lucent.com>
66713
66714         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
66715
66716 2000-06-21  Jim Meyering  <meyering@lucent.com>
66717
66718         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
66719
66720 2000-06-21  Jim Meyering  <meyering@lucent.com>
66721
66722         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
66723         (noinst_HEADERS): Add getstr.h.
66724
66725         * lib/getline.c (getstr): Move into a separate file.
66726         * lib/getstr.c (getstr): New file, extracted from getline.c, with
66727         the following changes: new parameter, delim2; both delim[12]
66728         parameters have type `int', not `char'.  The latter would lose
66729         with 8-bit delimiters.
66730         * lib/getstr.h: New file.
66731
66732 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66733
66734         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
66735         than 1024, return a memory chunk of least possible size, instead
66736         of size PATH_MAX + 2. In the loop, increment the size proportionally.
66737         Use free/xmalloc instead of xrealloc to avoid copying for very long
66738         paths.
66739
66740 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66741
66742         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
66743         the empty string.
66744
66745 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66746
66747         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
66748         address, not strdup.  Include <stdlib.h> and don't declare free().
66749
66750 2000-06-19  Jim Meyering  <meyering@lucent.com>
66751
66752         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
66753
66754 2000-06-18  Jim Meyering  <meyering@lucent.com>
66755
66756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
66757
66758         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
66759         `checking whether...' message to be consistent with that of the
66760         lstat test.
66761
66762 2000-06-18  Jim Meyering  <meyering@lucent.com>
66763
66764         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
66765         Besides, these days every porting target provides a mkdir function.
66766
66767         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
66768         needed. (this snippet comes from src/system.h).
66769
66770 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
66771
66772         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
66773
66774 2000-06-15  Paul Eggert  <eggert@twinsun.com>
66775
66776         * lib/human.c (adjust_value): New function.
66777         (human_readable_inexact): Apply rounding style even when
66778         printing approximate values.
66779
66780 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66781
66782         * lib/human.c (human_readable_inexact): Allow an input block
66783         size that is not a multiple of the output block size, and vice versa.
66784         Reported by Piergiorgio Sartor.
66785
66786 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66787
66788         * lib/getdate.y (get_date): Apply relative times after time
66789         zone indicator, not before.  Reported by Todd A. Jacobs.
66790
66791 2000-06-13  Jim Meyering  <meyering@lucent.com>
66792
66793         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
66794
66795         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
66796
66797 2000-06-12  Paul Eggert  <eggert@twinsun.com>
66798
66799         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
66800
66801 2000-06-12  Jim Meyering  <meyering@lucent.com>
66802
66803         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
66804         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
66805         optional argument.
66806         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
66807         the optional argument, `lib'.
66808
66809 2000-06-08  Jim Meyering  <meyering@lucent.com>
66810
66811         * m4/largefile.m4: Remove file (now that it's part of autoconf).
66812
66813 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66814
66815         Rewrite largefile configuration so that we don't need to run
66816         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
66817         AC_CANONICAL_HOST in configure.in -- jmm]
66818
66819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
66820         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
66821         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
66822         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
66823         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
66824         All uses changed.
66825         Instead of inspecting the output of getconf, try to compile the
66826         test program without and with the macro definition.
66827         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
66828         for getconf.  Instead, check for the needed flags by compiling
66829         test programs.
66830
66831 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66832
66833         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
66834
66835 2000-06-04  Jim Meyering  <meyering@lucent.com>
66836
66837         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
66838         SunOS 4.1.4 for which gid_t is an unsigned type.
66839
66840 2000-06-03  Jim Meyering  <meyering@lucent.com>
66841
66842         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
66843         now that autoconf requires that.
66844
66845         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
66846         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
66847         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
66848
66849 2000-06-03  Jim Meyering  <meyering@lucent.com>
66850
66851         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
66852
66853 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66854
66855         * m4/glibc21.m4: New file.
66856         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
66857
66858 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66859
66860         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
66861         newer, don't install charset.alias.
66862         * lib/config.charset: Change the Linux/glibc rules so they become empty
66863         on glibc-2.1 or newer.
66864
66865 2000-06-02  Jim Meyering  <meyering@lucent.com>
66866
66867         * lib/mountlist.c: Back out last change.  Instead, do this...
66868         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
66869         me_dummy member using the same `ignore'-testing code.
66870         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
66871         fs_type strings.
66872         From Mark D. Roth.
66873
66874 2000-05-29  Jim Meyering  <meyering@lucent.com>
66875
66876         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
66877         mounts with the `ignore' attribute.  Based on a patch from
66878         Mark D. Roth.
66879
66880 2000-05-28  Jim Meyering  <meyering@lucent.com>
66881
66882         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
66883         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66884         * m4/stat.m4: Likewise.
66885         * m4/lstat.m4: Likewise.
66886         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
66887
66888         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
66889         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
66890
66891 2000-05-26  Jim Meyering  <meyering@lucent.com>
66892
66893         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
66894
66895 2000-05-24  Jim Meyering  <meyering@lucent.com>
66896
66897         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
66898         autoconf requires that.
66899         * m4/lib-check.m4: Likewise.
66900         * m4/jm-macros.m4: Likewise.
66901         * m4/strftime.m4: Likewise.
66902
66903         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
66904         AC_CHECK_DECLS, now that autoconf requires that.
66905
66906 2000-05-22  Jim Meyering  <meyering@lucent.com>
66907
66908         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66909         * m4/lstat.m4: Likewise.
66910
66911 2000-05-22  Jim Meyering  <meyering@lucent.com>
66912
66913         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
66914
66915 2000-05-20  Jim Meyering  <meyering@lucent.com>
66916
66917         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
66918         (jm_PREREQ): Use it.
66919
66920 2000-05-18  Jim Meyering  <meyering@lucent.com>
66921
66922         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
66923         back, too, since it may have been modified by allocate_entry.
66924         (hash_delete): Rewrite to use neither the assignment operator
66925         nor the comma operator in an if-expression.
66926
66927 2000-05-15  Paul Eggert  <eggert@twinsun.com>
66928
66929         * lib/closeout.c:
66930         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
66931         Remove; no longer needed.
66932         "quotearg.h": Add include.
66933         (file_name): Do not bother to explicitly initialize to NULL; it's less
66934         efficient on some hosts.
66935         (close_stdout_status): Remove test as to whether stdout was already
66936         closed; it breaks for the case "echo x | sort >&-".
66937         Quote file name colons.
66938         Do not assume that _("write error") lacks format strings.
66939
66940 2000-05-15  Jim Meyering  <meyering@lucent.com>
66941
66942         * lib/version-etc.c (version_etc_copyright): Update the copyright
66943         string used in all --version output.
66944
66945 2000-05-14  Jim Meyering  <meyering@lucent.com>
66946
66947         * lib/closeout.c (close_stdout_set_file_name): New function.
66948         (close_stdout_status): Use new file-scoped global.
66949         Return right away if fstat says the stdout file descriptor is invalid.
66950         * lib/closeout.h (close_stdout_set_file_name): Declare.
66951
66952 2000-05-10  Jim Meyering  <meyering@lucent.com>
66953
66954         * lib/closeout.c [default_exit_status]: New file-scoped variable.
66955         (close_stdout_set_status): New function.
66956         * lib/closeout.h (close_stdout_set_status): Declare.
66957
66958 2000-05-09  Jim Meyering  <meyering@lucent.com>
66959
66960         * m4/gettext.m4: Rename this...
66961         * m4/libintl.m4: ...to this.
66962
66963 2000-05-08  Jim Meyering  <meyering@lucent.com>
66964
66965         * lib/long-options.c: Don't include closeout.h.
66966         (parse_long_options): Don't call close_stdout for --version.
66967
66968 2000-05-06  Paul Eggert  <eggert@twinsun.com>
66969
66970         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
66971         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
66972         2.1.3 bug.  This avoids a clash when files like regex.c define
66973         _GNU_SOURCE.
66974
66975 2000-05-06  Jim Meyering  <meyering@lucent.com>
66976
66977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
66978         (AC_REPLACE_FUNCS): Add strnlen.
66979
66980         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
66981         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
66982
66983         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
66984         AC_SEARCH_LIBS call for nanosleep.
66985         (LIB_NANOSLEEP): Set and AC_SUBST.
66986
66987 2000-05-06  Jim Meyering  <meyering@lucent.com>
66988
66989         * lib/strnlen.c: Undefine __strnlen and strnlen.
66990         [!weak_alias]: Define __strnlen to strnlen.
66991
66992         * lib/atexit.c: New file, from libiberty.
66993
66994 2000-05-06  Jim Meyering  <meyering@lucent.com>
66995
66996         * lib/closeout.c (close_stdout_status): Also check for errors on the
66997         stderr stream.
66998
66999 2000-05-05  Jim Meyering  <meyering@lucent.com>
67000
67001         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67002         AC_SEARCH_LIBS call for clock_gettime.
67003         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67004
67005         * m4/search-libs.m4: Update from autoconf.
67006
67007         su doesn't work on Solaris 2.6.
67008         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67009         <shadow.h>.  Reported by Dragos Harabor.
67010
67011 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67012
67013         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67014         memcpy instead of xmalloc, xrealloc, path_concat.
67015         (locale_charset): Treat empty environment variables as absent.
67016         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67017
67018 2000-05-04  Jim Meyering  <meyering@lucent.com>
67019
67020         * lib/getopt.c: Update from glibc.
67021         * lib/obstack.c: Likewise.
67022         * lib/obstack.h: Likewise.
67023         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67024         file
67025
67026         * lib/regex.h: Likewise.
67027         * lib/strndup.c: Likewise.
67028         * lib/strnlen.c: New file, from glibc.
67029
67030 2000-05-03  Jim Meyering  <meyering@lucent.com>
67031
67032         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67033
67034 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67035
67036         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67037         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67038         compile-time test, rather than inspecting host and OS, to
67039         decide whether to define _LARGEFILE_SOURCE.
67040
67041 2000-05-01  Jim Meyering  <meyering@lucent.com>
67042
67043         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67044
67045         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67046         Based on a patch from Bruno Haible.
67047
67048 2000-05-01  Jim Meyering  <meyering@lucent.com>
67049
67050         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67051
67052 2000-04-29  Jim Meyering  <meyering@lucent.com>
67053
67054         * lib/path-concat.c: Declare strdup only if it's not defined.
67055         * lib/canon-host.c: Likewise.
67056
67057 2000-04-28  Jim Meyering  <meyering@lucent.com>
67058
67059         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67060         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67061         is included first, then limits.h is included by locale.h by libintl.h.
67062         From John David Anglin.
67063
67064 2000-04-25  Jim Meyering  <meyering@lucent.com>
67065
67066         * lib/makepath.c (S_IRWXUGO): Define.
67067         (make_path): Always perform explicit chmod if MODE specifies any
67068         of the `special' permission bits.  Prompted by a bug report against
67069         install from Mate Wierdl and Joost van Baal.
67070
67071 2000-04-18  Jim Meyering  <meyering@lucent.com>
67072
67073         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67074         (jm_PREREQ): Use it.
67075
67076 2000-04-18  Jim Meyering  <meyering@lucent.com>
67077
67078         * lib/README: New file.
67079
67080         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67081         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67082
67083 2000-04-17  Jim Meyering  <meyering@lucent.com>
67084
67085         Get it right :-)
67086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67087         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67088         Suggestion from Akim Demaille.
67089
67090 2000-04-17  Jim Meyering  <meyering@lucent.com>
67091
67092         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67093         the definition of it to rpl_strftime also defined-away the system's
67094         declaration.
67095
67096 2000-04-15  Jim Meyering  <meyering@lucent.com>
67097
67098         Use `C' to denote so-called `contiguous' files, the same way
67099         that tar does.
67100         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67101         (ftypelet): Use S_ISCTG.
67102         From Michael Deutschmann.
67103
67104 2000-04-14  Jim Meyering  <meyering@lucent.com>
67105
67106         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67107         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67108         clobbered.
67109
67110 2000-04-14  Jim Meyering  <meyering@lucent.com>
67111
67112         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67113
67114 2000-04-13  Jim Meyering  <meyering@lucent.com>
67115
67116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67117         AH_VERBATIM to insert required #ifndef into config.h.in.
67118         Suggestion from Akim Demaille.
67119
67120 2000-04-12  Jim Meyering  <meyering@lucent.com>
67121
67122         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67123         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67124         Christian Krackowizer.
67125
67126         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67127         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67128         (AC_SYS_LARGEFILE): Require.
67129         (AM_C_PROTOTYPES): Require.
67130
67131 2000-04-08  Jim Meyering  <meyering@lucent.com>
67132
67133         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67134         names don't conflict.  Reported by Eli Zaretskii.
67135
67136 2000-04-07  Jim Meyering  <meyering@lucent.com>
67137
67138         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67139         sys/types.h, to work around system header problems on AIX 3.2.5.
67140         From Bruno Haible.
67141
67142 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67143
67144         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67145         bug.  Deal with the different error behavior of Irix iconv.
67146
67147 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67148
67149         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67150         IRIX if the installer said otherwise.
67151
67152 2000-04-05  Jim Meyering  <meyering@lucent.com>
67153
67154         Portability tweaks required for ultrix4.3.
67155         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67156         (jm_CHECK_DECLS): Add getutent to the list of functions.
67157         (_jm_DECL_HEADERS): Add utmpx.h.
67158         From John David Anglin.
67159
67160         * m4/strftime.m4: Back out the 2000-04-02 change.
67161         Instead of that change, simply undefine putenv in the test program.
67162
67163 2000-04-05  Jim Meyering  <meyering@lucent.com>
67164
67165         Portability tweaks required for ultrix4.3.
67166         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67167         getutent.
67168         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67169         * lib/canon-host.c: Declare strdup.
67170         * lib/path-concat.c: Likewise.
67171         From John David Anglin.
67172
67173 2000-04-04  Jim Meyering  <meyering@lucent.com>
67174
67175         Be more DOS 8.3-friendly.
67176         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67177         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67178         * lib/Makefile.am: Reflect renaming.
67179         Reported by Eli Zaretskii.
67180
67181         Use a temporary file name that won't clash with `charset.alias'
67182         in the DOS 8.3 name space.
67183         * lib/Makefile.am (charset_tmp): Define.
67184         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67185         (uninstall-local): Likewise.
67186         Reported by Eli Zaretskii.
67187
67188 2000-04-03  Jim Meyering  <meyering@lucent.com>
67189
67190         * m4/gettext.m4: Fix typo in comment.
67191
67192         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67193         textutils/configure.in).  Suggestion from Paul Eggert.
67194         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67195
67196 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67197
67198         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67199         variable in the shell rather than using putenv, which isn't
67200         portable.  This avoids the configure-time inter-test dependency
67201         on the potentially-renamed putenv function.
67202
67203 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67204
67205         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67206         before checking struct stat.st_blksize, so that
67207         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67208
67209 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67210
67211         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67212         since strftime.c uses HAVE_STRFTIME to decide whether to use
67213         the underlying strftime.
67214
67215 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67216
67217         * lib/time/strftime.c (my_strftime): Make sure we call the system
67218         strftime, not ourselves, when invoking the underlying strftime.
67219
67220 2000-03-24  Jim Meyering  <meyering@lucent.com>
67221
67222         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67223         (charset_alias): Define.
67224         (install-exec-local): Factor out common code.
67225         (uninstall-local): Split lines longer than 80.
67226         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67227         (SUFFIXES): Define.
67228         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67229         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67230
67231 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67232
67233         * lib/config.charset: Output a line containing "Packages using this
67234         file".
67235         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67236         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67237         ref-del.sed): New rules.
67238
67239 2000-03-17  Jim Meyering  <meyering@lucent.com>
67240
67241         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67242         Otherwise, include <strings.h>
67243
67244 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67245
67246         * lib/unicodeio.c (utf8_wctomb): New function.
67247         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67248         format instead of in UCS-4 with platform dependent endianness.
67249
67250 2000-03-10  Jim Meyering  <meyering@lucent.com>
67251
67252         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67253         From Marco Franzen.
67254
67255 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67256
67257         * lib/savedir.c (savedir): Work even if directory size is
67258         negative; this can happen with some screwy NFS configurations.
67259
67260 2000-03-06  Jim Meyering  <meyering@lucent.com>
67261
67262         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67263         if it's NULL (because we ran out of memory).  From Bruno Haible.
67264
67265 2000-03-05  Jim Meyering  <meyering@lucent.com>
67266
67267         * lib/localcharset.c ("path-concat.h"): Include.
67268         (get_charset_aliases): Use path_concat instead of ANSI string
67269         concatenation.
67270
67271         * lib/unicodeio.h (PARAMS): Define.
67272         Use it to guard prototype.
67273
67274 2000-03-04  Jim Meyering  <meyering@lucent.com>
67275
67276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67277         for lib/localcharset.c.
67278
67279 2000-03-04  Jim Meyering  <meyering@lucent.com>
67280
67281         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67282         installing into it.
67283         (uninstall-local): Uncomment this rule so `make distcheck' works
67284         once again.
67285
67286         * lib/unicodeio.c (<errno.h>): Include it.
67287         (errno): Declare if not defined.
67288
67289         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67290
67291         * lib/config.charset: New version, incorporating remarks from a linux
67292         i18n mailing list.  From Bruno Haible.
67293
67294 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67295
67296         * m4/codeset.m4: New file.
67297         * m4/iconv.m4: New file.
67298         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67299
67300 2000-03-03  Jim Meyering  <meyering@lucent.com>
67301
67302         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67303
67304 2000-03-02  Jim Meyering  <meyering@lucent.com>
67305
67306         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67307         the messages come out on separate lines.
67308
67309         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67310         rather than jm_CHECK_DECLARATIONS.
67311         * m4/decl.m4: Remove now-unused file.
67312
67313         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67314         geteuid.
67315
67316 2000-03-02  Jim Meyering  <meyering@lucent.com>
67317
67318         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67319
67320 2000-03-01  Jim Meyering  <meyering@lucent.com>
67321
67322         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67323         * lib/unicodeio.c: Likewise.
67324
67325 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67326
67327         * lib/config.charset: New file.
67328         * lib/localcharset.c: New file.
67329         * lib/unicodeio.h, lib/unicodeio.c: New files.
67330         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67331         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67332         (noinst_HEADERS): Add unicodeio.h.
67333         (all-local, install-exec-local, charset.alias): New targets.
67334
67335 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67336
67337         * lib/quotearg.c (ALERT_CHAR): New macro.
67338         (quotearg_buffer_restyled): Use it.
67339
67340 2000-02-27  Jim Meyering  <meyering@lucent.com>
67341
67342         * m4/check-decl.m4: Add getenv to the list.
67343
67344 2000-02-27  Jim Meyering  <meyering@lucent.com>
67345
67346         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67347         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67348
67349         * lib/backupfile.c: Guard inclusion of stdlib.h with
67350         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67351         Declare malloc if needed.
67352
67353         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67354         `#ifndef HAVE_DECL..'
67355         now that autoconf always defines the HAVE_DECL_ symbols.
67356         * lib/human.c: Likewise.
67357         * lib/same.c: Likewise.
67358         * lib/strtoumax.c: Likewise.
67359
67360         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67361         declaration check was not run.
67362         * lib/hash.c: Likewise.
67363         * lib/human.c: Likewise.
67364         * lib/same.c: Likewise.
67365         * lib/strtoumax.c: Likewise.
67366
67367         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67368         `.', then first look up the entire `.'-containing string as a login
67369         name.
67370
67371 2000-02-23  Jim Meyering  <meyering@lucent.com>
67372
67373         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67374         in place of my hack.
67375
67376 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67377
67378         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67379         (textint): New typedef.
67380         (parser_control): Member year changed from int to textint.
67381         All uses changed.
67382         (YYSTYPE): Removed; replaced by %union with int and textint members.
67383         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67384         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67385         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67386         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67387         (date, number, to_year): Use width of number in digits, not its value,
67388         to determine whether it's a 2-digit year, or a 2-digit time.
67389         (yylex): Store number of digits of numeric tokens.
67390         Reported by John Kendall.
67391
67392         (parser_control): Changed from struct parser_control to typedef (for
67393         consistency).  All uses changed.
67394
67395         (tID): Removed; not used.
67396         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67397
67398 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67399
67400         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67401         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67402
67403 2000-02-12  Jim Meyering  <meyering@lucent.com>
67404
67405         * lib/userspec.c (ISDIGIT): Define it.
67406         (isdigit): Remove definition.
67407         (is_number): Use ISDIGIT, not isdigit.
67408         <libintl.h>: Include.
67409         (_ and N_): Define.
67410         (parse_user_spec): Mark translatable strings.
67411
67412 2000-02-10  Jim Meyering  <meyering@lucent.com>
67413
67414         With these changes, nanosleep.[ch] are finally enough like the other
67415         lib/* replacement files to compile on a few more losing systems.
67416
67417         * lib/nanosleep.h: Don't include config.h.
67418         Remove prototype from declaration of nanosleep.
67419         (PARAMS): Remove now-unneeded definition.
67420         * lib/nanosleep.c: #undef nanosleep.
67421         (rpl_nanosleep): Rename from nanosleep.
67422
67423 2000-02-10  Jim Meyering  <meyering@lucent.com>
67424
67425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67426         gnu_nanosleep to rpl_nanosleep.
67427
67428 2000-02-09  Jim Meyering  <meyering@lucent.com>
67429
67430         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67431         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67432
67433 2000-02-08  Akim Demaille  <akim@epita.fr>
67434
67435         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67436         `[' and `]' and remove uses of `changequote'.
67437         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67438         (AC_SYS_LARGEFILE): Likewise.
67439         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67440         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67441         of changequote.
67442         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67443         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67444         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67445         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67446
67447 2000-02-05  Jim Meyering  <meyering@lucent.com>
67448
67449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67450         Remove explicit use of AC_HEADER_TIME.  It is required by
67451         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67452         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67453         in autoconf whereby the expansion of the latter ended up preceding
67454         the expansion of its prerequisite, AC_HEADER_TIME.
67455         Reported by Volker Borchert.
67456
67457 2000-02-03  Jim Meyering  <meyering@lucent.com>
67458
67459         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67460
67461 2000-02-03  Jim Meyering  <meyering@lucent.com>
67462
67463         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67464         rather than with `#if HAVE_UTMPNAME'.
67465
67466 2000-02-02  Jim Meyering  <meyering@lucent.com>
67467
67468         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67469         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67470         Reported by Eli Zaretskii.
67471
67472 2000-02-01  Jim Meyering  <meyering@lucent.com>
67473
67474         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67475
67476 2000-01-31  Jim Meyering  <meyering@lucent.com>
67477
67478         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67479         functions.  Add the time.h and sys/time.h headers along with the
67480         AC_REQUIRE'ment of AC_HEADER_TIME.
67481
67482 2000-01-31  Jim Meyering  <meyering@lucent.com>
67483
67484         * lib/nanosleep.h (nanosleep): Guard declaration with
67485         `#if ! HAVE_DECL_NANOSLEEP'.
67486         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67487         the declaration in that vendor's sys/timers.h.
67488         Reported by Christian Krackowizer.
67489
67490         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67491         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67492         (ISPRINT): Likewise.
67493         Reported by Tom Tromey.
67494
67495 2000-01-30  Jim Meyering  <meyering@lucent.com>
67496
67497         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67498
67499         * m4/prereq.m4 (utmp_includes): Define.
67500         Check for ut_user and ut_name members in both struct utmpx
67501         and struct utmp.
67502
67503 2000-01-30  Jim Meyering  <meyering@lucent.com>
67504
67505         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67506         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67507         header files where only utmpx.ut_user is declared.
67508
67509         * lib/readutmp.h (UT_USER): Define.
67510
67511 2000-01-29  Jim Meyering  <meyering@lucent.com>
67512
67513         * m4/lib-check.m4: New file containing library-related checks from
67514         fileutils and sh-utils (textutils had none).
67515
67516 2000-01-28  Jim Meyering  <meyering@lucent.com>
67517
67518         * m4/perl.m4: Change format of warning message to look more like that
67519         from the missing script.  Suggestion from François Pinard.
67520
67521 2000-01-25  Jim Meyering  <meyering@lucent.com>
67522
67523         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67524         well as time.h in the compile check.
67525         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67526         Fix typo in cross-compiling case: s/yes/no/.
67527
67528 2000-01-23  Jim Meyering  <meyering@lucent.com>
67529
67530         * m4/jm-macros.m4: Move df-related tests here from
67531         fileutils/configure.in
67532
67533         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67534         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67535
67536         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67537         s/space/ac_fsusage_space/.
67538         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67539
67540         * m4/ftruncate.m4: New file (derived from part of
67541         fileutils/configure.in).
67542         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67543         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67544
67545         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67546         AC_SUBST these here, rather than just in sh-util/configure.in, so
67547         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67548         all the same.
67549         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67550         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67551         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67552         (AC_SUBST(POW_LIBM)): Likewise.
67553         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67554
67555 2000-01-23  Jim Meyering  <meyering@lucent.com>
67556
67557         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67558         obstack.c.
67559
67560 2000-01-22  Jim Meyering  <meyering@lucent.com>
67561
67562         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67563
67564         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67565
67566         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67567         configure.in
67568         (AC_CHECK_HEADERS): Likewise for sh-utils.
67569         (AC_CHECK_HEADERS): Likewise for textutils.
67570         Merge the three lists of headers.
67571
67572         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67573         from fileutils' configure.in.
67574
67575         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67576         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67577         check-decl.m4.
67578
67579         * m4/check-decl.m4: Use #if rather than #ifdef.
67580         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67581         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67582         (_jm_DECL_HEADERS): Define new function.
67583         (jm_CHECK_DECLARATIONS): Require it.
67584
67585 2000-01-22  Jim Meyering  <meyering@lucent.com>
67586
67587         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67588         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67589         Required for some AIX systems.  Reported by Christian Krackowizer.
67590         [TESTING] (main): New function.
67591
67592         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67593         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67594         letters.
67595
67596         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67597         iswprint.
67598
67599         * lib/strverscmp.c (ISDIGIT): Define.
67600         (strverscmp): Use ISDIGIT, not isdigit.
67601
67602 2000-01-19  Jim Meyering  <meyering@lucent.com>
67603
67604         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67605         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67606         defines `struct timespec' in <sys/time.h>
67607
67608         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67609         Thanks to Akim for explaining.
67610
67611 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67612
67613         * lib/nanosleep.c (nanosleep):
67614         Don't use SA_INTERRUPT to decide whether to call sigaction, as
67615         POSIX.1 doesn't require SA_INTERRUPT and some systems
67616         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
67617         it's been part of POSIX.1 since day 1 (in 1988).
67618
67619 2000-01-17  Jim Meyering  <meyering@lucent.com>
67620
67621         * lib/interlock: Remove unused file.  Reported by François Pinard.
67622
67623 2000-01-16  Paul Eggert  <eggert@twinsun.com>
67624
67625         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
67626         alert, backslash, formfeed, and vertical tab unnecessarily in
67627         shell quoting style.
67628
67629 2000-01-16  Jim Meyering  <meyering@lucent.com>
67630
67631         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
67632         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
67633         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
67634         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
67635
67636 2000-01-16  Jim Meyering  <meyering@lucent.com>
67637
67638         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
67639         because the latter didn't work.
67640
67641 2000-01-15  Jim Meyering  <meyering@lucent.com>
67642
67643         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67644         (AC_REPLACE_FUNCS): Add memcpy and memset.
67645         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67646         Add strpbrk.
67647         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67648
67649 2000-01-12  Jim Meyering  <meyering@lucent.com>
67650
67651         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67652         (jm_PREREQ): Use it.
67653         (jm_PREREQ_READUTMP): New macro.
67654         (jm_PREREQ): Use it.
67655
67656 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67657
67658         Quote multibyte characters correctly.
67659         * m4/c-bs-a.m4: New file.
67660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67661         (jm_PREREQ): Use it.
67662
67663 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67664
67665         * m4/uintmax_t.m4: Port to autoconf 2.13.
67666
67667 2000-01-08  Jim Meyering  <meyering@ascend.com>
67668
67669         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67670         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67671
67672 2000-01-04  Jim Meyering  <meyering@ascend.com>
67673
67674         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67675         jm_STRUCT_DIRENT_D_TYPE.
67676         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67677         jm_STRUCT_DIRENT_D_INO.
67678         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67679         jm_STRUCT_UTIMBUF.
67680         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67681         renamings.
67682         * m4/utime.m4: Likewise.
67683
67684         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67685         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67686
67687 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67688
67689         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67690         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67691
67692 2000-01-02  Jim Meyering  <meyering@ascend.com>
67693
67694         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67695         remember if this is necessary.
67696
67697 1999-12-26  Jim Meyering  <meyering@ascend.com>
67698
67699         * m4/jm-macros.m4: Use it here.
67700         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67701
67702 1999-12-23  Jim Meyering  <meyering@ascend.com>
67703
67704         * m4/jm-macros.m4: Check for clock_gettime (moved from
67705         fileutils/configure.in)
67706         Check for gettimeofday.
67707
67708 1999-12-20  Jim Meyering  <meyering@ascend.com>
67709
67710         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
67711         autoconf-2.14a-1999-12-20.
67712
67713 1999-12-19  Jim Meyering  <meyering@ascend.com>
67714
67715         * m4/lstat-slash.m4: New file.
67716         * m4/jm-macros.m4: Use the new macro:
67717         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67718
67719 1999-12-07  Jim Meyering  <meyering@ascend.com>
67720
67721         * m4/perl.m4: Require that File::Compare be available, too.
67722         Too many systems seem to lack it.
67723
67724         * m4/strftime.m4: Add checks for most of the cpp macros tested in
67725         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
67726
67727 1999-11-18  Paul Eggert  <eggert@twinsun.com>
67728
67729         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
67730         problem with the QNX 4.25 shell, which doesn't propagate exit
67731         status of failed commands inside shell assignments.
67732
67733 1999-11-17  Jim Meyering  <meyering@ascend.com>
67734
67735         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
67736
67737 1999-11-07  Jim Meyering  <meyering@ascend.com>
67738
67739         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
67740
67741 1999-11-06  Jim Meyering  <meyering@ascend.com>
67742
67743         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
67744         * m4/jm-macros.m4 (jm_MACROS): Use it here.
67745
67746 1999-11-05  Jim Meyering  <meyering@ascend.com>
67747
67748         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
67749         configure.in of textutils, fileutils, and sh-utils into this one
67750         (shared between those packages) file.
67751         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
67752         AC_STRUCT_ST_BLKSIZE.
67753
67754 1999-11-03  Jim Meyering  <meyering@ascend.com>
67755
67756         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
67757         of AC_CHECK_TYPE checks includes unistd.h.
67758         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
67759         Suggestion from Akim Demaille.
67760
67761 1999-10-30  Jim Meyering  <meyering@ascend.com>
67762
67763         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
67764         m4-quoted string.
67765         * m4/ls-mntd-fs.m4: Likewise.
67766         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
67767         * m4/jm-winsz1.m4: Likewise.
67768
67769         * m4/const.m4: Remove file, since the fix made it into the experimental
67770         version of autoconf.
67771         * m4/mktime.m4: Likewise.
67772
67773         * m4/check-type.m4: Remove file, now that the latest version of
67774         AC_CHECK_TYPE takes a third arg to specify additional #includes.
67775
67776         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
67777         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
67778         AC_CHECK_TYPE.
67779
67780 1999-10-04  Jim Meyering  <meyering@ascend.com>
67781
67782         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
67783
67784 1999-09-22  Paul Eggert  <eggert@twinsun.com>
67785
67786         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
67787         2.95.1 bug with HP-UX 10.20.
67788
67789 1999-09-17  Jim Meyering  <meyering@ascend.com>
67790
67791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
67792         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
67793         due to missing strdup (against sh-utils-2.0).
67794
67795 1999-08-29  Jim Meyering  <meyering@ascend.com>
67796
67797         * m4/jm-macros.m4: Require jm_BISON.
67798         * m4/bison.m4: New file.
67799
67800 1999-08-17  Paul Eggert  <eggert@twinsun.com>
67801
67802         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
67803         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
67804
67805 1999-08-05  Jim Meyering  <meyering@ascend.com>
67806
67807         * m4/getline.m4: Rename test file from conftestdata to conftest.data
67808         to avoid conflicts with `conftest' on 8+3 filesystems.
67809         Suggestion from Eli Zaretskii.
67810
67811 1999-08-04  Jim Meyering  <meyering@ascend.com>
67812
67813         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
67814         fileutils and sh-utils (textutils's getline test was inadequate).
67815         (AM_FUNC_GETLINE): Run this test.
67816         (AC_CHECK_FUNCS): Check for getdelim.
67817         Reported by Bob Proulx.
67818
67819 1999-08-02  Jim Meyering  <meyering@ascend.com>
67820
67821         * m4/jm-macros.m4: Add a comment.
67822
67823 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67824
67825         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
67826         <inttypes.h> defines strtoumax as a macro (and not as a
67827         function).
67828
67829 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67830
67831         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
67832         that we can shift, multiply and divide unsigned long long
67833         values; Ultrix cc can't do it.
67834
67835 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67836
67837         * m4/mktime.m4: New file, which is a preview of what should appear
67838         in the next public autoconf release.
67839
67840 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67841
67842         * m4/lfs.m4: Remove this file.
67843         * m4/largefile.m4: New file.  It contains the old contents of
67844         lfs.m4, except that all names with prefix AC_LFS have been
67845         changed to use the prefix AC_SYS_LARGEFILE instead, to be
67846         compatible with future autoconf versions.  Also, some minor m4
67847         quoting problems have been fixed.
67848
67849 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67850
67851         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
67852         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
67853         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
67854         and simplify the shell code.
67855
67856 1999-08-01  Jim Meyering  <meyering@ascend.com>
67857
67858         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
67859         m4.
67860
67861 1999-07-20  Jim Meyering  <meyering@ascend.com>
67862
67863         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
67864
67865 1999-07-15  Jim Meyering  <meyering@ascend.com>
67866
67867         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
67868
67869 1999-05-22  Jim Meyering  <meyering@ascend.com>
67870
67871         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
67872
67873 1999-05-20  Jim Meyering  <meyering@ascend.com>
67874
67875         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
67876         Add a colon after each `then' in case $4 is empty.
67877
67878 1999-05-16  Jim Meyering  <meyering@ascend.com>
67879
67880         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
67881
67882 1999-05-10  Jim Meyering  <meyering@ascend.com>
67883
67884         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
67885
67886         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
67887         AC_FUNC_MKTIME.
67888
67889 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
67890
67891         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
67892
67893 1999-05-04  Paul Eggert  <eggert@twinsun.com>
67894
67895         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
67896         not CPPFLAGS, so that linking works correctly in IRIX.
67897
67898 1999-04-30  Paul Eggert  <eggert@twinsun.com>
67899
67900         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
67901
67902 1999-04-20  Paul Eggert  <eggert@twinsun.com>
67903
67904         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
67905         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
67906         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
67907         jm_AC_TYPE_UNSIGNED_LONG_LONG.
67908         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
67909
67910         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
67911
67912 1999-04-20  Jim Meyering  <meyering@ascend.com>
67913
67914         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
67915         AC_REPLACE xstroull if necessary.  From Paul Eggert.
67916         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
67917
67918 1999-04-18  Jim Meyering  <meyering@ascend.com>
67919
67920         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
67921         * m4/jm-macros.m4: Use it.
67922
67923 1999-04-06  Jim Meyering  <meyering@ascend.com>
67924
67925         * m4/strftime.m4: Remove test for %f.
67926
67927 1999-03-29  Jim Meyering  <meyering@ascend.com>
67928
67929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
67930         superset of the AC_TYPE_* checks in the textutils, fileutils,
67931         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
67932         AC_TYPE_PID_T.
67933
67934 1999-03-28  Jim Meyering  <meyering@ascend.com>
67935
67936         * m4/jm-macros.m4: Define GNU_PACKAGE here.
67937         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
67938         replaced e.g., in the *.sh files of the sh-utils.
67939
67940 1999-03-20  Jim Meyering  <meyering@ascend.com>
67941
67942         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
67943         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
67944         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
67945
67946 1999-03-19  Jim Meyering  <meyering@ascend.com>
67947
67948         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
67949
67950 1999-03-12  Jim Meyering  <meyering@ascend.com>
67951
67952         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
67953
67954 1999-03-07  Jim Meyering  <meyering@ascend.com>
67955
67956         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
67957         declared.
67958
67959 1999-02-17  Jim Meyering  <meyering@ascend.com>
67960
67961         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
67962         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
67963
67964 1999-02-07  Jim Meyering  <meyering@ascend.com>
67965
67966         * m4/group-member.m4: New file -- extracted from sh-utils'
67967         configure.in.
67968
67969         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
67970         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
67971
67972 1999-02-06  Jim Meyering  <meyering@ascend.com>
67973
67974         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
67975         * m4/fnmatch.m4: Likewise.
67976         * m4/getgroups.m4: Likewise.
67977         * m4/lstat.m4: Likewise.
67978         * m4/malloc.m4: Likewise.
67979         * m4/putenv.m4: Likewise.
67980         * m4/realloc.m4: Likewise.
67981         * m4/regex.m4: Likewise.
67982         * m4/stat.m4: Likewise.
67983         * m4/strftime.m4: Likewise.
67984         Suggestion from Alain Magloire.
67985
67986         * m4/chown.m4: Use `.$ac_objext', not `.o'.
67987         * m4/fnmatch.m4: Likewise.
67988         * m4/getgroups.m4: Likewise.
67989         * m4/getline.m4: Likewise.
67990         * m4/lstat.m4: Likewise.
67991         * m4/malloc.m4: Likewise.
67992         * m4/memcmp.m4: Likewise.
67993         * m4/putenv.m4: Likewise.
67994         * m4/realloc.m4: Likewise.
67995         * m4/regex.m4: Likewise.
67996         * m4/stat.m4: Likewise.
67997         * m4/strftime.m4: Likewise.
67998         Suggestion from Alain Magloire.
67999
68000         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68001         an argument.
68002
68003         * m4/regex.m4: Add a run-time Test for proper operation of
68004         re_compile_pattern.
68005
68006 1999-01-31  Jim Meyering  <meyering@ascend.com>
68007
68008         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68009
68010 1999-01-30  Jim Meyering  <meyering@ascend.com>
68011
68012         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68013
68014         * m4/jm-mktime.m4: Make this a wrapper around the official
68015         AM_FUNC_MKTIME rather than my private copy, now that the official one
68016         is up to date.
68017         * m4/mktime.m4: Remove file.
68018
68019         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68020         * m4/uptime.m4: Likewise.
68021         * m4/uintmax_t.m4: Likewise.
68022
68023 1999-01-28  Jim Meyering  <meyering@ascend.com>
68024
68025         * m4/jm-macros.m4: Use jm_AFS.
68026         * m4/afs.m4: New file (from fileutils' configure.in).
68027
68028         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68029         * m4/chown.m4: Likewise.
68030         * m4/d-ino.m4: Likewise.
68031         * m4/d-type.m4: Likewise.
68032         * m4/fnmatch.m4: Likewise.
68033         * m4/getgroups.m4: Likewise.
68034         * m4/gettext.m4: Likewise.
68035         * m4/jm-mktime.m4: Likewise.
68036         * m4/jm-winsz2.m4: Likewise.
68037         * m4/lcmessage.m4: Likewise.
68038         * m4/ls-mntd-fs.m4: Likewise.
68039         * m4/malloc.m4: Likewise.
68040         * m4/memcmp.m4: Likewise.
68041         * m4/putenv.m4: Likewise.
68042         * m4/realloc.m4: Likewise.
68043         * m4/st_mtim.m4: Likewise.
68044         * m4/strftime.m4: Likewise.
68045
68046 1999-01-16  Jim Meyering  <meyering@ascend.com>
68047
68048         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68049         (ARGMATCH_DIE_DECL): Define.
68050
68051 1999-01-12  Jim Meyering  <meyering@ascend.com>
68052
68053         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68054         Reported by Lars Hecking.
68055
68056 1999-01-10  Jim Meyering  <meyering@ascend.com>
68057
68058         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68059         gross kludge.
68060         * m4/inttypes_h.m4: Likewise.
68061         * m4/lstat.m4: Likewise.
68062         * m4/malloc.m4: Likewise.
68063         * m4/readdir.m4: Likewise.
68064         * m4/realloc.m4: Likewise.
68065         * m4/st_dm_mode.m4: Likewise.
68066         * m4/stat.m4: Likewise.
68067         * m4/utimbuf.m4: Likewise.
68068         * m4/utimes.m4: Likewise.
68069
68070         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68071         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68072         comments in config.h.in are meaningful.
68073
68074         * m4/jm-macros.m4: Require autoconf-2.13 here.
68075
68076         * m4/regex.m4: By default, don't use the included regex.c on systems
68077         with glibc 2.  Suggestion from Uli Drepper.
68078
68079 1999-01-02  Jim Meyering  <meyering@ascend.com>
68080
68081         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68082
68083 1998-12-18  Jim Meyering  <meyering@ascend.com>
68084
68085         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68086         Based on a suggestion from Lars Hecking.
68087
68088 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68089
68090         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68091
68092 1998-11-16  Jim Meyering  <meyering@ascend.com>
68093
68094         * m4/lfs.m4: Double-quote the `uname...` expression.
68095
68096 1998-11-14  Jim Meyering  <meyering@ascend.com>
68097
68098         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68099         * m4/stat.m4: Likewise.
68100
68101 1998-11-03  Jim Meyering  <meyering@ascend.com>
68102
68103         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68104         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68105
68106 1998-10-18  Jim Meyering  <meyering@ascend.com>
68107
68108         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68109
68110 1998-10-17  Jim Meyering  <meyering@ascend.com>
68111
68112         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68113         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68114         calls for those previously hard-coded headers.  Instead, take a new
68115         parameter.
68116         (jm_CHECK_DECLARATIONS): Reflect interface change.
68117         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68118         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68119
68120         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68121
68122 1998-10-14  Jim Meyering  <meyering@ascend.com>
68123
68124         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68125         instead of "TZ=America/Vancouver".  From Paul Eggert.
68126
68127 1998-10-11  Jim Meyering  <meyering@ascend.com>
68128
68129         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68130         This adds a test for a recently added compatibility fix for mktime.c.
68131         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68132
68133 1998-09-27  Jim Meyering  <meyering@ascend.com>
68134
68135         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68136
68137         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68138         ../configure.in, including a change from Gordon Matzigkeit to allow
68139         cross-compiling for the Hurd.
68140
68141         * m4/glibc.m4: New file/macro to test for the GNU C Library
68142         versions 1 and 2.  From Gordon Matzigkeit.
68143         Indent.
68144
68145 1998-09-21  Jim Meyering  <meyering@ascend.com>
68146
68147         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68148
68149 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68150
68151         Port nanosecond-resolution times to UnixWare 2.1.2 and
68152         pedantic Solaris 2.6.
68153
68154         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68155         AC_STRUCT_ST_MTIM.
68156         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68157         Generate name of ns member, instead of just 1 or undef.
68158         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68159
68160 1998-08-15  Jim Meyering  <meyering@ascend.com>
68161
68162         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68163         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68164         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68165         instead of jm_TYPE_SSIZE_T.
68166
68167 1998-08-12  Jim Meyering  <meyering@ascend.com>
68168
68169         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68170
68171 1998-08-02  Jim Meyering  <meyering@ascend.com>
68172
68173         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68174         in acconfig.h manually.
68175
68176 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68177
68178         * m4/st_mtim.m4: New file.
68179
68180 1998-07-28  Jim Meyering  <meyering@ascend.com>
68181
68182         * m4/utimes.m4: Undef stat.
68183
68184 1998-07-25  Jim Meyering  <meyering@ascend.com>
68185
68186         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68187         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68188
68189 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68190
68191         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68192         uid and gid actually remain unchanged.
68193
68194 1998-07-07  Jim Meyering  <meyering@ascend.com>
68195
68196         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68197
68198 1998-07-04  Jim Meyering  <meyering@ascend.com>
68199
68200         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68201         to prove that this macro can be used in packages without regex.c.
68202
68203 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68204
68205         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68206         is to be used.
68207
68208 1998-07-03  Jim Meyering  <meyering@ascend.com>
68209
68210         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68211
68212         * m4/gettext.m4: New file -- from gettext-0.10.35.
68213         * m4/lcmessage.m4: Likewise.
68214         * m4/progtest.m4: Likewise.
68215
68216         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68217         * m4/jm-macros.m4: Require the new macro.
68218
68219 1998-06-29  Jim Meyering  <meyering@ascend.com>
68220
68221         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68222         for the definition of NGROUPS (used in a system header included
68223         by sys/mount.h).
68224
68225 1998-06-28  Jim Meyering  <meyering@ascend.com>
68226
68227         * m4/ls-mntd-fs.m4: New file.
68228         * m4/fstypename.m4: New file.
68229
68230         * m4/jm-macros.m4: Require the new macro.
68231         * m4/jm-glibc-io.m4: New file.
68232
68233 1998-05-19  Jim Meyering  <meyering@ascend.com>
68234
68235         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68236         * m4/lchown.m4: New file.
68237
68238         * m4/Makefile.am.in: New file.
68239         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68240
68241 1998-05-14  Jim Meyering  <meyering@ascend.com>
68242
68243         * m4/Makefile.am (EXTRA_DIST): Add them.
68244         * m4/jm-macros.m4: New file.
68245         * m4/utimbuf.m4: New file.
68246
68247 1998-05-12  Jim Meyering  <meyering@ascend.com>
68248
68249         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68250
68251 1998-05-11  Jim Meyering  <meyering@ascend.com>
68252
68253         * m4/isc-posix.m4: New file.
68254
68255 1998-05-10  Jim Meyering  <meyering@ascend.com>
68256
68257         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68258
68259 1998-05-09  Jim Meyering  <meyering@ascend.com>
68260
68261         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68262         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68263         with automake.
68264
68265         * m4/ssize_t.m4: New file.
68266         * m4/mktime.m4: Remove file -- the new automake has this now.
68267
68268 1998-04-26  Jim Meyering  <meyering@ascend.com>
68269
68270         * m4/assert.m4: New file.
68271         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68272
68273 1998-04-05  Jim Meyering  <meyering@ascend.com>
68274
68275         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68276         (jm_PREREQ): Use it here.
68277
68278 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68279
68280         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68281         in acconfig.h.
68282
68283 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68284
68285         * m4/prereq.m4: New file.
68286         * m4/error.m4: New file.
68287         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68288
68289 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68290
68291         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68292         cache-check for the same variable -- that defeated the purpose of
68293         the test; the test program was never run.  This was a problem only
68294         on systems with losing getline functions -- HP-UX 10.20 is one.
68295         Reported by Bjorn Helgaas.
68296
68297 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68298
68299         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68300
68301 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68302
68303         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68304
68305         * m4/const.m4: New file.  Use an initializer in this declaration
68306         typedef int charset[2]; const charset x;
68307         Reported by Bob Glickstein.
68308
68309 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68310
68311         * m4/chown.m4: Fix reversed types on -1 args to chown.
68312         From Kaveh Ghazi.
68313
68314 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68315
68316         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68317         Add lseek and memchr.
68318
68319         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68320         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68321         have a 20-character limit on names.
68322
68323 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68324
68325         * m4/inttypes_h.m4: New file.
68326         * m4/uintmax_t.m4: New file.
68327         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68328
68329
68330         -----
68331
68332         Local Variables:
68333         coding: utf-8
68334         End:
68335
68336         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68337
68338         Copying and distribution of this file, with or without
68339         modification, are permitted provided the copyright notice
68340         and this notice are preserved.