pthread: Add enough so that coreutils/src/sort.c compiles.
[gnulib.git] / ChangeLog
1 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
2
3         pthread: Add enough so that coreutils/src/sort.c compiles.
4         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
5         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
6         gnulib. Include <sched.h> and <time.h>, as per POSIX.
7         Include <sys/types.h>, in case it defines pthread_t.
8         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
9         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11         (pthread_rwlockattr_t, pthread_spinlock_t):
12         New typedefs, if HAVE_PTHREAD_T is not defined.
13         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
16         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24         New macros.
25         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29         (pthread_spin_unlock): New dummy functions.
30         (pthread_create): Return EAGAIN; don't set errno.
31         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32         require AC_C_INLINE.
33         * modules/pthread (Depends-on): Add sched, time.
34         (pthread.h): Use AM_V_GEN.
35
36 2010-07-13  Bruno Haible  <bruno@clisp.org>
37
38         striconveh: Don't malloc memory if the result buffer is sufficient.
39         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
40         buffer if its size is sufficient.
41         Reported by Ludovic Courtès <ludo@gnu.org>.
42
43 2010-07-13  Bruno Haible  <bruno@clisp.org>
44
45         strtod: Add safety check.
46         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
47
48 2010-07-12  Bruno Haible  <bruno@clisp.org>
49
50         Unify tests that set gl_cv_func_ldexpl_no_libm.
51         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
52         gl_FUNC_LDEXPL.
53         (gl_FUNC_LDEXPL): Invoke it.
54         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55
56 2010-07-12  Bruno Haible  <bruno@clisp.org>
57
58         Unify tests that set gl_cv_func_ldexp_no_libm.
59         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
60         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
61         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63         * modules/strtod (Files): Add m4/ldexp.m4.
64
65 2010-07-12  Bruno Haible  <bruno@clisp.org>
66
67         Unify tests that set gl_cv_func_frexpl_no_libm.
68         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
69         gl_FUNC_FREXPL_NO_LIBM.
70         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
71         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
72
73 2010-07-12  Bruno Haible  <bruno@clisp.org>
74
75         Unify tests that set gl_cv_func_frexp_no_libm.
76         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
77         gl_FUNC_FREXP_NO_LIBM.
78         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
79         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
80
81 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
82
83         memcoll: clarify sizes versus lengths, document better, and tweak perf
84         * lib/memcoll.c (strcoll_loop, memcoll0):
85         Improve quality of descriptive comments.  Name variables
86         consistently as to whether they are lengths (which do not include
87         terminating null) versus sizes (which do).
88         * lib/xmemcoll.c (xmemcoll0): Likewise.
89         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
90         returned when s1size == 0; this is easier to compile and saves
91         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
92
93 2010-07-12  Bruno Haible  <bruno@clisp.org>
94
95         Tests for module '_Exit'.
96         * modules/_Exit-tests: New file.
97         * tests/test-_Exit.sh: New file.
98         * tests/test-_Exit.c: New file.
99
100         New module '_Exit'.
101         * lib/stdlib.in.h (__attribute__): New macro.
102         (_Exit): New declaration.
103         * lib/_Exit.c: New file.
104         * m4/_Exit.m4: New file.
105         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
106         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
107         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
108         * modules/_Exit: New file.
109         * tests/test-stdlib-c++.cc (_Exit): Check signature.
110         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
111
112 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
113
114         strtod: make it more-accurate typically, and don't require libm
115         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
116         Include limits.h.  Don't include string.h.
117         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
118         (locale_isspace): New function, so that no casts are needed to
119         check whether *s is a space.
120         (ldexp): Provide an unused dummy if not available.
121         (scale_radix_exp, parse_number, underlying_strtod): New functions.
122         (strtod): Use them.  This implementation prefers to use the
123         underlying strtod if available, falling back on our own code
124         only to fix known bugs.  This is more likely to produce an
125         accurate result.  Also, it avoids the use of libm functions.
126         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
127         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
128         was absent, but it caused a test failure with coreutils.
129         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
130         with libm.
131         * modules/strtod (Makefile.am, Link): libm is no longer needed.
132         * modules/strtod-tests (Makefile.am): Likewise.
133
134 2010-07-11  Pádraig Brady  <P@draigBrady.com>
135             Bruno Haible  <bruno@clisp.org>
136
137         unistr/u8-strchr: Optimize ASCII argument case.
138         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
139
140 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
141
142         (x)memcoll: minor tweaks
143         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
144         is after the type that it qualifies.
145         (memcoll0): Likewise.
146         * lib/memcoll.h (memcoll0): Likewise.
147         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
148         * lib/xmemcoll.h (xmemcoll0): Likewise.
149         * lib/memcoll.c (memcoll0): Correct the comment.  This function
150         differs from memcoll in that the NUL byte is part of the argument.
151         Omit the abort-checks, as performance is a real issue here.  Plus,
152         the checks were wrong anyway (an off-by-one error).  Omit local
153         variable 'diff', as it's a bit clearer that way.
154         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
155         no longer needed.
156
157 2010-07-08  Chen Guo <chenguo4@yahoo.com>
158
159         (x)memcoll: speedup when input is known to be NUL delimited
160         * lib/memcoll.c: Include stdlib.
161         (memcoll0) New function.
162         (strcoll_loop) New function, refactored for use in both memcoll
163         and memcoll0.
164         * lib/memcoll.h: Add prototype for memcoll0.
165         * lib/xmemcoll.c: (xmemcoll0) New function.
166         (collate_error) New function, refactored for use in both xmemcoll
167         and xmemcoll0.
168         * lib/xmemcoll.h: Add prototype for xmemcoll0.
169         * m4/memcoll.m4: add inline invocation.
170
171 2010-07-06  Pádraig Brady  <P@draigBrady.com>
172
173         * build-aux/bootstrap: Remove any local translations
174         from the translation project synchronization directory,
175         so that local only translations are not distributed.
176
177 2010-07-04  Bruno Haible  <bruno@clisp.org>
178
179         fsusage: Clarify which code applies to which platforms.
180         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
181         platform.
182         * lib/fsusage.c (get_fs_usage): Likewise.
183
184 2010-07-04  Bruno Haible  <bruno@clisp.org>
185
186         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
187         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
188         Reported by Martin Lambers <marlam@marlam.de>.
189
190 2010-07-04  Jim Meyering  <meyering@redhat.com>
191
192         hash: once again explicitly disallow insertion of NULL
193         * lib/hash.c (hash_insert0): Reinstate just-removed test:
194         inserting a NULL pointer cannot work with these functions.
195         Add a comment with details.
196         This reverts part of the 2010-07-01 commit, 5bef1a35
197         "hash: extend module to deal with non-pointer keys".
198
199 2010-07-01  Bruno Haible  <bruno@clisp.org>
200
201         stdbool: Update doc.
202         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
203         Info from Christian Weisgerber <naddy@mips.inka.de>.
204
205 2010-07-01  Jim Meyering  <meyering@redhat.com>
206
207         hash: extend module to deal with non-pointer keys
208         * lib/hash.c (hash_insert0): New interface, much like hash_insert
209         but that allows insertion of non-pointer entries.
210         Do not disallow an ENTRY value of NULL.
211         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
212         * lib/hash.h (hash_insert0): Declare.
213
214 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
215
216         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
217         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
218         not present (i.e. with autoconf 2.59 and when using gettextize, not
219         gnulib), require AC_GNU_SOURCE instead.
220
221 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
222
223         idpriv-drop: Fix tests.
224         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
225         not to the test-idpriv-droptemp program.
226
227 2010-06-29  Bruno Haible  <bruno@clisp.org>
228
229         string: Fix syntax error with g++ 2.96.
230         * lib/string.in.h (__pure__): Remove definition.
231         (_GL_ATTRIBUTE_PURE): New macro.
232         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
233         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
234         Reported by Christian Weisgerber <naddy@mips.inka.de>.
235
236 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
237
238         unitypes: Fix bug introduced on 2010-05-18.
239         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
240
241 2010-06-22  Eric Blake  <eblake@redhat.com>
242
243         memmem: slight optimization
244         * lib/str-two-way.h (critical_factorization): Update comments.
245         Reduce work during factorization phase.
246         Reported by Carlos Bueno <carlos@bueno.org>.
247
248 2010-06-21  Bruno Haible  <bruno@clisp.org>
249
250         Fix HAVE_CALLOC_POSIX misnomer.
251         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
252         !HAVE_CALLOC_POSIX.
253         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
254         HAVE_CALLOC_POSIX.
255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
256         instead of HAVE_CALLOC_POSIX.
257         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
258         HAVE_CALLOC_POSIX.
259
260         Use modern idiom for calloc() replacement.
261         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
262         AC_FUNC_CALLOC.
263         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
264         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
265         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
266         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
267         (gl_REPLACE_CALLOC): New macro.
268
269 2010-06-21  Bruno Haible  <bruno@clisp.org>
270
271         Fix HAVE_REALLOC_POSIX misnomer.
272         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
273         !HAVE_REALLOC_POSIX.
274         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
275         HAVE_REALLOC_POSIX.
276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
277         instead of HAVE_REALLOC_POSIX.
278         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
279         HAVE_REALLOC_POSIX.
280
281         Use modern idiom for realloc() replacement.
282         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
283         AC_FUNC_REALLOC.
284         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
285         Autoconf's AC_FUNC_REALLOC.
286         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
287         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
288         (gl_REPLACE_REALLOC): New macro.
289         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
290
291 2010-06-21  Bruno Haible  <bruno@clisp.org>
292
293         Fix HAVE_MALLOC_POSIX misnomer.
294         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
295         !HAVE_MALLOC_POSIX.
296         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
297         HAVE_MALLOC_POSIX.
298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
299         instead of HAVE_MALLOC_POSIX.
300         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
301         HAVE_MALLOC_POSIX.
302
303         Use modern idiom for malloc() replacement.
304         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
305         AC_FUNC_MALLOC.
306         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
307         Autoconf's AC_FUNC_MALLOC.
308         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
309         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
310         (gl_REPLACE_MALLOC): New macro.
311         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
312
313 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
314
315         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
316         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
317         This macro takes 3 arguments, not 4.
318
319 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
320
321         ipv6: fix detection under mingw
322         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
323         in6_addr.
324
325 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
326
327         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
328         that strtod() works when cross-compiling to a glibc version known
329         to work.
330
331 2010-06-15  Bruno Haible  <bruno@clisp.org>
332
333         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
334
335 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
336
337         select: Correct timeout.
338         * lib/select.c (rpl_select): Compute wait_timeout correctly.
339
340 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
341
342         git-version-gen: init shell var to avoid env var influence
343         * build-aux/git-version-gen (v): Init shell var to empty.
344
345 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
346
347         priv-set: Don't assume that priv.h exists merely because getppriv does.
348         See Jan Andersen's bug report about AIX 5L in
349         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
350         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
351         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
352         * lib/priv-set.h: Likewise.
353         * tests/test-priv-set.c: Likewise.
354
355 2010-06-13  Bruno Haible  <bruno@clisp.org>
356
357         relocatable: Make it easier to test whether to install wrappers.
358         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
359         RELOCATABLE_VIA_WRAPPER.
360
361 2010-06-13  Bruno Haible  <bruno@clisp.org>
362
363         gnulib-tool: Display specified modules and dependencies differently.
364         * gnulib-tool (func_show_module_list): New function.
365         (func_import, func_create_testdir): Invoke it.
366         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
367
368 2010-06-13  Bruno Haible  <bruno@clisp.org>
369
370         gnulib-tool: Align code of func_import and func_create_testdir.
371         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
372         specified_modules.
373
374 2010-06-12  Jim Meyering  <meyering@redhat.com>
375
376         test-inttostr: avoid spurious failure on Solaris 9
377         * tests/test-inttostr.c (main): Skip the test when snprintf fails
378         to accept "%ju".  Reported by Bruno Haible.
379
380 2010-06-11  Jim Meyering  <meyering@redhat.com>
381
382         test-sys_socket: mark variables as used more readably
383         * tests/test-sys_socket.c (main): Mark otherwise unused variables
384         as "used" explicitly via (void) statement casts.  This is more
385         readable than using them in an artificial return expression.
386         Suggestion from Bruno Haible.
387
388 2010-06-11  Bruno Haible  <bruno@clisp.org>
389
390         Avoid some more warnings from "gcc -Wwrite-strings".
391         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
392         to 'const char *'.
393         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
394         * tests/test-c-strcasestr.c (main): Likewise.
395         * tests/test-mbscasestr1.c (main): Likewise.
396         * tests/test-mbscasestr2.c (main): Likewise.
397         * tests/test-memmem.c (main): Likewise.
398         * tests/test-strstr.c (main): Likewise.
399         * tests/test-strcasestr.c (main): Likewise.
400
401 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
402
403         init.sh: change framework_failure_ to fail with status 99, not 1
404         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
405         automake's parallel-tests rule that this is an unexpected failure,
406         even if the test is listed in XFAIL_TESTS.
407
408 2010-06-11  Jim Meyering  <meyering@redhat.com>
409
410         test-inttostr: avoid warnings about 4-6KB literal strings
411         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
412         Include "macros.h", for its definition of ASSERT.
413         (CK): s/assert/ASSERT/
414         * modules/inttostr-tests (Files): Add macros.h.
415
416         init.sh: don't use $ME_ or skip_ before they are defined
417         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
418         their first uses.  Also hoist their companions: warn_, fail_,
419         framework_failure_, $stderr_fileno.  Prompted by a patch from
420         Stefano Lattarini.
421
422         test-sys_socket: avoid set-but-not-used warnings from gcc
423         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
424         avoid warning about set-but-not-used variables.
425
426         test-xvasprintf: avoid 'const' discard warnings
427         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
428         "const" when assigning from literal strings.
429         (test_xasprintf): Add "void" in function argument list to placate
430         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
431
432         tests: avoid compilation warnings in argmatch and exclude tests...
433         in packages that define ARGMATCH_DIE_DECL, like coreutils.
434         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
435         Since it always exits, declare with the "noreturn" attribute.
436         * tests/test-argmatch.c: Likewise.
437
438         tests: avoid 'const' discard warnings in mbsstr tests
439         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
440         * tests/test-mbsstr2.c (main): Likewise.
441
442         test-verify: avoid warning from gcc's -Wmissing-declarations
443         * tests/test-verify.c (function): Declare to be static.
444
445         test-inttostr.c: include <string.h> for use of strcmp
446         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
447
448         test-linkat: avoid failed assertion on "other" architectures
449         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
450         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
451         sparc: https://bugs.launchpad.net/bugs/591968
452
453 2010-06-11  Jim Meyering  <meyering@redhat.com>
454
455         printf.m4: avoid autoconf's "Expanded Before Required" warning
456         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
457         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
458         autoconf warning.
459
460 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
461
462         Replacement header templates are now named with ".in", not "_".
463         * doc/gnulib-intro.texi: Correct.
464
465 2010-06-10  Jim Meyering  <meyering@redhat.com>
466
467         inttostr-tests: depend on snprintf, not snprintf-posix
468         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
469         snprintf-posix, to avoid this aclocal failure:
470           missing file gnulib-tests/vasnprintf.c
471           configure.ac:45: error: expected source file, required through \
472           AC_LIBSOURCES, not found
473
474 2010-06-10  Jim Meyering  <meyering@redhat.com>
475
476         inttostr: add a new function, inttostr, and tests
477         The namesake function was not available.  The existence of the
478         template file, inttostr.c makes its addition nontrivial.
479         * lib/anytostr.c: Rename from inttostr.c.
480         (anytostr): Rename from inttostr.
481         * lib/inttostr.c: New file.
482         * modules/inttostr (Files): Add anytostr.c.
483         (Makefile.am): Set lib_SOURCES instead of ...
484         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
485         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
486         * lib/offtostr.c: Likewise.
487         * lib/uinttostr.c: Likewise.
488         * lib/umaxtostr.c: Likewise.
489         * modules/inttostr-tests: New file.
490         * tests/test-inttostr.c: New file.  Test these functions.
491
492 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
493             Bruno Haible  <bruno@clisp.org>
494
495         Add "Extending Gnulib" chapter to manual.
496         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
497         chapter.
498         (Extending Gnulib): New chapter.
499         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
500         chapter.
501
502 2010-06-09  Bruno Haible  <bruno@clisp.org>
503
504         Avoid relocwrapper link errors due to gnulib replacement functions.
505         * lib/areadlink.c: Use the system's malloc, realloc functions.
506         (areadlink): Set errno to ENOMEM explicitly.
507         * modules/areadlink (Depends-on): Remove malloc-posix.
508         Reported by Ben Pfaff <blp@cs.stanford.edu>.
509
510 2010-06-09  Bruno Haible  <bruno@clisp.org>
511
512         Avoid relocwrapper link errors due to gnulib replacement functions.
513         * lib/canonicalize-lgpl.c: Use the system's malloc function.
514         * lib/malloca.c: Likewise.
515         * lib/relocatable.c: Likewise.
516         * lib/progreloc.c: Use the system's malloc, sprintf functions.
517         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
518         * lib/setenv.c: Use the system's malloc, realloc functions.
519         * lib/strerror.c: Use the system's sprintf function.
520         Reported by Ben Pfaff <blp@cs.stanford.edu>.
521
522 2010-06-04  Bruno Haible  <bruno@clisp.org>
523
524         Prefer documented low-level autoconf macro names.
525         * m4/lib-link.m4: Use m4_translit instead of translit.
526         * m4/environ.m4: Likewise.
527         * m4/mathfunc.m4: Likewise.
528         * m4/onceonly.m4: Likewise.
529         * m4/stdint.m4: Likewise.
530         Suggested by Eric Blake.
531
532 2010-06-04  Martin Lambers  <marlam@marlam.de>
533             Bruno Haible  <bruno@clisp.org>
534
535         havelib: Allow library names with '+' characters.
536         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
537         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
538
539 2010-06-09  Bruno Haible  <bruno@clisp.org>
540
541         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
542         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
543         realloc failed.
544
545 2010-06-08  Peter Simons  <simons@cryp.to>
546
547         maint.mk: make the news-check rule more configurable
548         * top/maint.mk (news-check-lines-spec) New variable.
549         (news-check): Use "sed -n 1,10p" in place of "head".
550
551 2010-06-07  Jim Meyering  <meyering@redhat.com>
552
553         do-release-commit-and-tag: fix typo in --help
554         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
555
556         regex: avoid new dead-code warning with gcc-4.6.0
557         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
558         if-block containing a while-loop.  It's been unused for at least
559         5 years.
560
561 2010-06-05  Bruno Haible  <bruno@clisp.org>
562
563         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
564         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
565
566 2010-06-04  Bruno Haible  <bruno@clisp.org>
567
568         Update to GNU gettext 0.18.1.
569         * modules/gettext (configure.ac): Require gettext infrastructure from
570         version 0.18.1.
571
572 2010-06-03  Bruno Haible  <bruno@clisp.org>
573
574         Don't use AC_LIBOBJ with file names in subdirectories.
575         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
576         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
577         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
578         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
579         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
580         gl_LIBUNISTRING_LIBSOURCE.
581         (Makefile.am): Augment lib_SOURCES here, conditionally.
582         * NEWS: Drop requirement for Automake option 'subdir-objects'.
583
584 2010-06-03  Bruno Haible  <bruno@clisp.org>
585
586         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
587         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
588         expansion does not end with a newline.
589         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
590         unnecessary newline.
591
592 2010-06-03  Bruno Haible  <bruno@clisp.org>
593
594         Reduce dependencies.
595         * tests/test-quotearg.h: New file, extracted from
596         tests/test-quotearg.c.
597         * tests/test-quotearg-simple.c: New file, extracted from
598         tests/test-quotearg.c.
599         * tests/test-quotearg.c: Don't include <ctype.h>.
600         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
601         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
602         use_quote_double_quotes, use_quotearg_colon): Moved to
603         tests/test-quotearg.h.
604         (results_g, flag_results, custom_quotes, custom_results): Moved
605         to tests/test-quotearg-simple.c.
606         (main): Moved the part that does not depend on gettext to
607         tests/test-quotearg-simple.c. Return 77 if the test cannot be
608         performed.
609         * modules/quotearg-simple: New file.
610         * modules/quotearg-simple-tests: New file.
611         * modules/quotearg (Depends-on): Add quotearg-simple.
612         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
613         (Files): Add tests/test-quotearg.h.
614         Reported by Paolo Bonzini.
615
616 2010-06-03  Bruno Haible  <bruno@clisp.org>
617
618         Reduce dependencies.
619         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
620
621 2010-06-03  Bruno Haible  <bruno@clisp.org>
622
623         time: Undefine more broken macros.
624         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
625         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
626         Reported by Eric Blake.
627
628 2010-06-03  Bruno Haible  <bruno@clisp.org>
629
630         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
631         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
632         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
633         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
634         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
635         Reported by Ludovic Courtès <ludo@gnu.org>.
636
637 2010-06-02  Eric Blake  <eblake@redhat.com>
638
639         time: work with mingw + pthreads-win32 library
640         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
641         if timespec is defined only in pthread.h.
642         * modules/time (Makefile.am): Substitute it.
643         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
644         <pthread.h>, when needed.
645         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
646         from the library.
647
648 2010-05-31  Bruno Haible  <bruno@clisp.org>
649
650         Avoid expanding two macros in the wrong order.
651         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
652         gl_LIBUNISTRING if it is defined.
653         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
654         autoconf >= 2.64.
655         Reported by Ludovic Courtès <ludo@gnu.org>.
656
657 2010-05-27  Jim Meyering  <meyering@redhat.com>
658
659         maint.mk: also prohibit "#undef" of always-defined symbols
660         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
661         Allow more than one space before the symbol name.
662         (sc_prohibit_always-defined_macros): Use grep's -E, now that
663         the regexp uses alternation.
664
665 2010-05-26  Eric Blake  <eblake@redhat.com>
666
667         maint.mk: avoid echo -e
668         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
669         Convert all uses of echo -* to printf.
670         Reported by Matthias Bolte.
671
672 2010-05-25  Bruno Haible  <bruno@clisp.org>
673
674         Update to GNU gettext 0.18, part 2.
675         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
676         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
677
678 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
679
680         Add missing include in test-pwrite.c.
681         * tests/test-pwrite.c: Include string.h, for strcmp.
682
683 2010-05-24  Bruno Haible  <bruno@clisp.org>
684
685         * NEWS: Mention requirement for Automake option 'subdir-objects'.
686
687 2010-05-24  Bruno Haible  <bruno@clisp.org>
688
689         Don't use conversion with transliteration in u{8,16,32}_strcoll.
690         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
691         iconveh_error argument.
692         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
693         U_STRCONV_TO_LOCALE.
694         * lib/unistr/u16-strcoll.c: Likewise.
695         * lib/unistr/u32-strcoll.c: Likewise.
696         * modules/unistr/u8-strcoll (Depends-on): Add
697         uniconv/u8-strconv-to-enc, localcharset. Remove
698         uniconv/u8-strconv-to-locale.
699         (configure.ac): Bump version number.
700         * modules/unistr/u16-strcoll (Depends-on): Add
701         uniconv/u16-strconv-to-enc, localcharset. Remove
702         uniconv/u16-strconv-to-locale.
703         (configure.ac): Bump version number.
704         * modules/unistr/u32-strcoll (Depends-on): Add
705         uniconv/u32-strconv-to-enc, localcharset. Remove
706         uniconv/u32-strconv-to-locale.
707         (configure.ac): Bump version number.
708
709 2010-05-24  Bruno Haible  <bruno@clisp.org>
710
711         Avoid a test failure on NetBSD 5.0.
712         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
713         an iconv() bug.
714
715 2010-05-24  Bruno Haible  <bruno@clisp.org>
716
717         Adjust #include directive style.
718         * modules/regex (Includes): Recommend to write <regex.h>.
719
720 2010-05-24  Bruno Haible  <bruno@clisp.org>
721
722         regex: Don't require alloca.
723         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
724         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
725         only inside if (0).
726
727 2010-05-23  Jim Meyering  <meyering@redhat.com>
728
729         test-renameat.c: include <sys/stat.h>
730         * tests/test-renameat.c: Include <sys/stat.h>; required for
731         definition of S_IS* macros.
732
733 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
734
735         Update maintainer documentation for 'relocatable-prog' module.
736         * doc/relocatable-maint.texi: Update.
737         Comments by Bruno Haible.
738
739 2010-05-23  Bruno Haible  <bruno@clisp.org>
740
741         git-merge-changelog: Enable --split-merged-entry by default.
742         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
743         (usage): Don't mention this option any more.
744         Reported by Ralf Wildenhues.
745
746 2010-05-23  Jim Meyering  <meyering@redhat.com>
747
748         test-pwrite: do not leave behind a test file named "out"
749         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
750         The trivial-looking use of init.sh is really necessary.
751         It ensures that the temporary file, "out", is created in
752         a temporary directory, and removed upon termination.
753         * tests/test-pwrite.sh: Re-add file.
754         * modules/pwrite-tests: Reference it.
755
756 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
757
758         Fix output redirection buglet in init.sh.
759         * tests/init.sh: Fix redirection of stderr.
760
761 2010-05-20  Simon Josefsson  <simon@josefsson.org>
762
763         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
764
765 2010-05-17  Simon Josefsson  <simon@josefsson.org>
766
767         * modules/valgrind-tests: New file.
768         * m4/valgrind-tests.m4: New file.
769         * doc/valgrind-tests.texi: New file.
770         * doc/gnulib.texi (Running self-tests under valgrind): New
771         section.
772
773 2010-05-19  Bruno Haible  <bruno@clisp.org>
774
775         Clean up dead code in recent commit.
776         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
777         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
778         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
779         Suggested by Paolo Bonzini.
780
781 2010-05-19  Bruno Haible  <bruno@clisp.org>
782
783         Avoid valgrind error reports from libunistring.
784         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
785         * modules/libunistring (Files): Add it.
786         * modules/libunistring-optional (Files): Likewise.
787
788 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
789             Bruno Haible  <bruno@clisp.org>
790
791         New module 'libunistring-optional'.
792         * modules/libunistring-optional: New file.
793         * m4/libunistring-base.m4: New file.
794         * m4/libunistring-optional.m4: New file.
795         * lib/unicase.in.h: Renamed from lib/unicase.h.
796         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
797         * lib/unictype.in.h: Renamed from lib/unictype.h.
798         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
799         * lib/uniname.in.h: Renamed from lib/uniname.h.
800         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
801         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
802         * lib/unistr.in.h: Renamed from lib/unistr.h.
803         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
804         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
805         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
806         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
807         gl_LIBUNISTRING. If the library was found, determine the installed
808         version and set LIBUNISTRING_VERSION.
809         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
810         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
811         handle a configuration option --with-included-libunistring.
812         * modules/libunistring (Files): Add m4/absolute-header.m4.
813         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
814         Add m4/libunistring-base.m4.
815         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
816         (Makefile.am): Build unicase.h from unicase.in.h.
817         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
818         Add m4/libunistring-base.m4.
819         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
820         (Makefile.am): Build uniconv.h from uniconv.in.h.
821         * modules/unictype/base (Files): Use unictype.in.h instead of
822         unictype.h. Add m4/libunistring-base.m4.
823         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
824         (Makefile.am): Build unictype.h from unictype.in.h.
825         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
826         Add m4/libunistring-base.m4.
827         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
828         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
829         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
830         Add m4/libunistring-base.m4.
831         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
832         (Makefile.am): Build uniname.h from uniname.in.h.
833         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
834         Add m4/libunistring-base.m4.
835         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
836         (Makefile.am): Build uninorm.h from uninorm.in.h.
837         * modules/unistdio/base (Files): Use unistdio.in.h instead of
838         unistdio.h. Add m4/libunistring-base.m4.
839         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
840         (Makefile.am): Build unistdio.h from unistdio.in.h.
841         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
842         Add m4/libunistring-base.m4.
843         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
844         (Makefile.am): Build unistr.h from unistr.in.h.
845         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
846         Add m4/libunistring-base.m4.
847         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
848         (Makefile.am): Build unitypes.h from unitypes.in.h.
849         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
850         Add m4/libunistring-base.m4.
851         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
852         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
853         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
854         uniwidth.h. Add m4/libunistring-base.m4.
855         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
856         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
857         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
858         instead of augmenting lib_SOURCES.
859         * modules/unicase/empty-suffix-context: Likewise.
860         * modules/unicase/locale-language: Likewise.
861         * modules/unicase/tolower: Likewise.
862         * modules/unicase/totitle: Likewise.
863         * modules/unicase/toupper: Likewise.
864         * modules/unicase/u8-casecmp: Likewise.
865         * modules/unicase/u8-casecoll: Likewise.
866         * modules/unicase/u8-casefold: Likewise.
867         * modules/unicase/u8-casexfrm: Likewise.
868         * modules/unicase/u8-ct-casefold: Likewise.
869         * modules/unicase/u8-ct-tolower: Likewise.
870         * modules/unicase/u8-ct-totitle: Likewise.
871         * modules/unicase/u8-ct-toupper: Likewise.
872         * modules/unicase/u8-is-cased: Likewise.
873         * modules/unicase/u8-is-casefolded: Likewise.
874         * modules/unicase/u8-is-lowercase: Likewise.
875         * modules/unicase/u8-is-titlecase: Likewise.
876         * modules/unicase/u8-is-uppercase: Likewise.
877         * modules/unicase/u8-prefix-context: Likewise.
878         * modules/unicase/u8-suffix-context: Likewise.
879         * modules/unicase/u8-tolower: Likewise.
880         * modules/unicase/u8-totitle: Likewise.
881         * modules/unicase/u8-toupper: Likewise.
882         * modules/unicase/u16-casecmp: Likewise.
883         * modules/unicase/u16-casecoll: Likewise.
884         * modules/unicase/u16-casefold: Likewise.
885         * modules/unicase/u16-casexfrm: Likewise.
886         * modules/unicase/u16-ct-casefold: Likewise.
887         * modules/unicase/u16-ct-tolower: Likewise.
888         * modules/unicase/u16-ct-totitle: Likewise.
889         * modules/unicase/u16-ct-toupper: Likewise.
890         * modules/unicase/u16-is-cased: Likewise.
891         * modules/unicase/u16-is-casefolded: Likewise.
892         * modules/unicase/u16-is-lowercase: Likewise.
893         * modules/unicase/u16-is-titlecase: Likewise.
894         * modules/unicase/u16-is-uppercase: Likewise.
895         * modules/unicase/u16-prefix-context: Likewise.
896         * modules/unicase/u16-suffix-context: Likewise.
897         * modules/unicase/u16-tolower: Likewise.
898         * modules/unicase/u16-totitle: Likewise.
899         * modules/unicase/u16-toupper: Likewise.
900         * modules/unicase/u32-casecmp: Likewise.
901         * modules/unicase/u32-casecoll: Likewise.
902         * modules/unicase/u32-casefold: Likewise.
903         * modules/unicase/u32-casexfrm: Likewise.
904         * modules/unicase/u32-ct-casefold: Likewise.
905         * modules/unicase/u32-ct-tolower: Likewise.
906         * modules/unicase/u32-ct-totitle: Likewise.
907         * modules/unicase/u32-ct-toupper: Likewise.
908         * modules/unicase/u32-is-cased: Likewise.
909         * modules/unicase/u32-is-casefolded: Likewise.
910         * modules/unicase/u32-is-lowercase: Likewise.
911         * modules/unicase/u32-is-titlecase: Likewise.
912         * modules/unicase/u32-is-uppercase: Likewise.
913         * modules/unicase/u32-prefix-context: Likewise.
914         * modules/unicase/u32-suffix-context: Likewise.
915         * modules/unicase/u32-tolower: Likewise.
916         * modules/unicase/u32-totitle: Likewise.
917         * modules/unicase/u32-toupper: Likewise.
918         * modules/unicase/ulc-casecmp: Likewise.
919         * modules/unicase/ulc-casecoll: Likewise.
920         * modules/unicase/ulc-casexfrm: Likewise.
921         * modules/uniconv/u8-conv-from-enc: Likewise.
922         * modules/uniconv/u8-conv-to-enc: Likewise.
923         * modules/uniconv/u8-strconv-from-enc: Likewise.
924         * modules/uniconv/u8-strconv-from-locale: Likewise.
925         * modules/uniconv/u8-strconv-to-enc: Likewise.
926         * modules/uniconv/u8-strconv-to-locale: Likewise.
927         * modules/uniconv/u16-conv-from-enc: Likewise.
928         * modules/uniconv/u16-conv-to-enc: Likewise.
929         * modules/uniconv/u16-strconv-from-enc: Likewise.
930         * modules/uniconv/u16-strconv-from-locale: Likewise.
931         * modules/uniconv/u16-strconv-to-enc: Likewise.
932         * modules/uniconv/u16-strconv-to-locale: Likewise.
933         * modules/uniconv/u32-conv-from-enc: Likewise.
934         * modules/uniconv/u32-conv-to-enc: Likewise.
935         * modules/uniconv/u32-strconv-from-enc: Likewise.
936         * modules/uniconv/u32-strconv-from-locale: Likewise.
937         * modules/uniconv/u32-strconv-to-enc: Likewise.
938         * modules/uniconv/u32-strconv-to-locale: Likewise.
939         * modules/unictype/bidicategory-byname: Likewise.
940         * modules/unictype/bidicategory-name: Likewise.
941         * modules/unictype/bidicategory-of: Likewise.
942         * modules/unictype/bidicategory-test: Likewise.
943         * modules/unictype/block-list: Likewise.
944         * modules/unictype/block-test: Likewise.
945         * modules/unictype/category-C: Likewise.
946         * modules/unictype/category-Cc: Likewise.
947         * modules/unictype/category-Cf: Likewise.
948         * modules/unictype/category-Cn: Likewise.
949         * modules/unictype/category-Co: Likewise.
950         * modules/unictype/category-Cs: Likewise.
951         * modules/unictype/category-L: Likewise.
952         * modules/unictype/category-Ll: Likewise.
953         * modules/unictype/category-Lm: Likewise.
954         * modules/unictype/category-Lo: Likewise.
955         * modules/unictype/category-Lt: Likewise.
956         * modules/unictype/category-Lu: Likewise.
957         * modules/unictype/category-M: Likewise.
958         * modules/unictype/category-Mc: Likewise.
959         * modules/unictype/category-Me: Likewise.
960         * modules/unictype/category-Mn: Likewise.
961         * modules/unictype/category-N: Likewise.
962         * modules/unictype/category-Nd: Likewise.
963         * modules/unictype/category-Nl: Likewise.
964         * modules/unictype/category-No: Likewise.
965         * modules/unictype/category-P: Likewise.
966         * modules/unictype/category-Pc: Likewise.
967         * modules/unictype/category-Pd: Likewise.
968         * modules/unictype/category-Pe: Likewise.
969         * modules/unictype/category-Pf: Likewise.
970         * modules/unictype/category-Pi: Likewise.
971         * modules/unictype/category-Po: Likewise.
972         * modules/unictype/category-Ps: Likewise.
973         * modules/unictype/category-S: Likewise.
974         * modules/unictype/category-Sc: Likewise.
975         * modules/unictype/category-Sk: Likewise.
976         * modules/unictype/category-Sm: Likewise.
977         * modules/unictype/category-So: Likewise.
978         * modules/unictype/category-Z: Likewise.
979         * modules/unictype/category-Zl: Likewise.
980         * modules/unictype/category-Zp: Likewise.
981         * modules/unictype/category-Zs: Likewise.
982         * modules/unictype/category-and: Likewise.
983         * modules/unictype/category-and-not: Likewise.
984         * modules/unictype/category-byname: Likewise.
985         * modules/unictype/category-name: Likewise.
986         * modules/unictype/category-none: Likewise.
987         * modules/unictype/category-of: Likewise.
988         * modules/unictype/category-or: Likewise.
989         * modules/unictype/category-test: Likewise.
990         * modules/unictype/combining-class: Likewise.
991         * modules/unictype/ctype-alnum: Likewise.
992         * modules/unictype/ctype-alpha: Likewise.
993         * modules/unictype/ctype-blank: Likewise.
994         * modules/unictype/ctype-cntrl: Likewise.
995         * modules/unictype/ctype-digit: Likewise.
996         * modules/unictype/ctype-graph: Likewise.
997         * modules/unictype/ctype-lower: Likewise.
998         * modules/unictype/ctype-print: Likewise.
999         * modules/unictype/ctype-punct: Likewise.
1000         * modules/unictype/ctype-space: Likewise.
1001         * modules/unictype/ctype-upper: Likewise.
1002         * modules/unictype/ctype-xdigit: Likewise.
1003         * modules/unictype/decimal-digit: Likewise.
1004         * modules/unictype/digit: Likewise.
1005         * modules/unictype/mirror: Likewise.
1006         * modules/unictype/numeric: Likewise.
1007         * modules/unictype/property-alphabetic: Likewise.
1008         * modules/unictype/property-ascii-hex-digit: Likewise.
1009         * modules/unictype/property-bidi-arabic-digit: Likewise.
1010         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1011         * modules/unictype/property-bidi-block-separator: Likewise.
1012         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1013         * modules/unictype/property-bidi-common-separator: Likewise.
1014         * modules/unictype/property-bidi-control: Likewise.
1015         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1016         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1017         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1018         * modules/unictype/property-bidi-european-digit: Likewise.
1019         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1020         * modules/unictype/property-bidi-left-to-right: Likewise.
1021         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1022         * modules/unictype/property-bidi-other-neutral: Likewise.
1023         * modules/unictype/property-bidi-pdf: Likewise.
1024         * modules/unictype/property-bidi-segment-separator: Likewise.
1025         * modules/unictype/property-bidi-whitespace: Likewise.
1026         * modules/unictype/property-byname: Likewise.
1027         * modules/unictype/property-combining: Likewise.
1028         * modules/unictype/property-composite: Likewise.
1029         * modules/unictype/property-currency-symbol: Likewise.
1030         * modules/unictype/property-dash: Likewise.
1031         * modules/unictype/property-decimal-digit: Likewise.
1032         * modules/unictype/property-default-ignorable-code-point: Likewise.
1033         * modules/unictype/property-deprecated: Likewise.
1034         * modules/unictype/property-diacritic: Likewise.
1035         * modules/unictype/property-extender: Likewise.
1036         * modules/unictype/property-format-control: Likewise.
1037         * modules/unictype/property-grapheme-base: Likewise.
1038         * modules/unictype/property-grapheme-extend: Likewise.
1039         * modules/unictype/property-grapheme-link: Likewise.
1040         * modules/unictype/property-hex-digit: Likewise.
1041         * modules/unictype/property-hyphen: Likewise.
1042         * modules/unictype/property-id-continue: Likewise.
1043         * modules/unictype/property-id-start: Likewise.
1044         * modules/unictype/property-ideographic: Likewise.
1045         * modules/unictype/property-ids-binary-operator: Likewise.
1046         * modules/unictype/property-ids-trinary-operator: Likewise.
1047         * modules/unictype/property-ignorable-control: Likewise.
1048         * modules/unictype/property-iso-control: Likewise.
1049         * modules/unictype/property-join-control: Likewise.
1050         * modules/unictype/property-left-of-pair: Likewise.
1051         * modules/unictype/property-line-separator: Likewise.
1052         * modules/unictype/property-logical-order-exception: Likewise.
1053         * modules/unictype/property-lowercase: Likewise.
1054         * modules/unictype/property-math: Likewise.
1055         * modules/unictype/property-non-break: Likewise.
1056         * modules/unictype/property-not-a-character: Likewise.
1057         * modules/unictype/property-numeric: Likewise.
1058         * modules/unictype/property-other-alphabetic: Likewise.
1059         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1060         * modules/unictype/property-other-grapheme-extend: Likewise.
1061         * modules/unictype/property-other-id-continue: Likewise.
1062         * modules/unictype/property-other-id-start: Likewise.
1063         * modules/unictype/property-other-lowercase: Likewise.
1064         * modules/unictype/property-other-math: Likewise.
1065         * modules/unictype/property-other-uppercase: Likewise.
1066         * modules/unictype/property-paired-punctuation: Likewise.
1067         * modules/unictype/property-paragraph-separator: Likewise.
1068         * modules/unictype/property-pattern-syntax: Likewise.
1069         * modules/unictype/property-pattern-white-space: Likewise.
1070         * modules/unictype/property-private-use: Likewise.
1071         * modules/unictype/property-punctuation: Likewise.
1072         * modules/unictype/property-quotation-mark: Likewise.
1073         * modules/unictype/property-radical: Likewise.
1074         * modules/unictype/property-sentence-terminal: Likewise.
1075         * modules/unictype/property-soft-dotted: Likewise.
1076         * modules/unictype/property-space: Likewise.
1077         * modules/unictype/property-terminal-punctuation: Likewise.
1078         * modules/unictype/property-test: Likewise.
1079         * modules/unictype/property-titlecase: Likewise.
1080         * modules/unictype/property-unassigned-code-value: Likewise.
1081         * modules/unictype/property-unified-ideograph: Likewise.
1082         * modules/unictype/property-uppercase: Likewise.
1083         * modules/unictype/property-variation-selector: Likewise.
1084         * modules/unictype/property-white-space: Likewise.
1085         * modules/unictype/property-xid-continue: Likewise.
1086         * modules/unictype/property-xid-start: Likewise.
1087         * modules/unictype/property-zero-width: Likewise.
1088         * modules/unictype/scripts: Likewise.
1089         * modules/unictype/syntax-c-ident: Likewise.
1090         * modules/unictype/syntax-c-whitespace: Likewise.
1091         * modules/unictype/syntax-java-ident: Likewise.
1092         * modules/unictype/syntax-java-whitespace: Likewise.
1093         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1094         * modules/unilbrk/u8-width-linebreaks: Likewise.
1095         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1096         * modules/unilbrk/u16-width-linebreaks: Likewise.
1097         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1098         * modules/unilbrk/u32-width-linebreaks: Likewise.
1099         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1100         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1101         * modules/uniname/uniname: Likewise.
1102         * modules/uninorm/canonical-decomposition: Likewise.
1103         * modules/uninorm/composition: Likewise.
1104         * modules/uninorm/decomposing-form: Likewise.
1105         * modules/uninorm/decomposition: Likewise.
1106         * modules/uninorm/filter: Likewise.
1107         * modules/uninorm/nfc: Likewise.
1108         * modules/uninorm/nfd: Likewise.
1109         * modules/uninorm/nfkc: Likewise.
1110         * modules/uninorm/nfkd: Likewise.
1111         * modules/uninorm/u8-normalize: Likewise.
1112         * modules/uninorm/u8-normcmp: Likewise.
1113         * modules/uninorm/u8-normcoll: Likewise.
1114         * modules/uninorm/u8-normxfrm: Likewise.
1115         * modules/uninorm/u16-normalize: Likewise.
1116         * modules/uninorm/u16-normcmp: Likewise.
1117         * modules/uninorm/u16-normcoll: Likewise.
1118         * modules/uninorm/u16-normxfrm: Likewise.
1119         * modules/uninorm/u32-normalize: Likewise.
1120         * modules/uninorm/u32-normcmp: Likewise.
1121         * modules/uninorm/u32-normcoll: Likewise.
1122         * modules/uninorm/u32-normxfrm: Likewise.
1123         * modules/unistdio/u8-asnprintf: Likewise.
1124         * modules/unistdio/u8-asprintf: Likewise.
1125         * modules/unistdio/u8-snprintf: Likewise.
1126         * modules/unistdio/u8-sprintf: Likewise.
1127         * modules/unistdio/u8-u8-asnprintf: Likewise.
1128         * modules/unistdio/u8-u8-asprintf: Likewise.
1129         * modules/unistdio/u8-u8-snprintf: Likewise.
1130         * modules/unistdio/u8-u8-sprintf: Likewise.
1131         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1132         * modules/unistdio/u8-u8-vasprintf: Likewise.
1133         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1134         * modules/unistdio/u8-u8-vsprintf: Likewise.
1135         * modules/unistdio/u8-vasnprintf: Likewise.
1136         * modules/unistdio/u8-vasprintf: Likewise.
1137         * modules/unistdio/u8-vsnprintf: Likewise.
1138         * modules/unistdio/u8-vsprintf: Likewise.
1139         * modules/unistdio/u16-asnprintf: Likewise.
1140         * modules/unistdio/u16-asprintf: Likewise.
1141         * modules/unistdio/u16-snprintf: Likewise.
1142         * modules/unistdio/u16-sprintf: Likewise.
1143         * modules/unistdio/u16-u16-asnprintf: Likewise.
1144         * modules/unistdio/u16-u16-asprintf: Likewise.
1145         * modules/unistdio/u16-u16-snprintf: Likewise.
1146         * modules/unistdio/u16-u16-sprintf: Likewise.
1147         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1148         * modules/unistdio/u16-u16-vasprintf: Likewise.
1149         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1150         * modules/unistdio/u16-u16-vsprintf: Likewise.
1151         * modules/unistdio/u16-vasnprintf: Likewise.
1152         * modules/unistdio/u16-vasprintf: Likewise.
1153         * modules/unistdio/u16-vsnprintf: Likewise.
1154         * modules/unistdio/u16-vsprintf: Likewise.
1155         * modules/unistdio/u32-asnprintf: Likewise.
1156         * modules/unistdio/u32-asprintf: Likewise.
1157         * modules/unistdio/u32-snprintf: Likewise.
1158         * modules/unistdio/u32-sprintf: Likewise.
1159         * modules/unistdio/u32-u32-asnprintf: Likewise.
1160         * modules/unistdio/u32-u32-asprintf: Likewise.
1161         * modules/unistdio/u32-u32-snprintf: Likewise.
1162         * modules/unistdio/u32-u32-sprintf: Likewise.
1163         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1164         * modules/unistdio/u32-u32-vasprintf: Likewise.
1165         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1166         * modules/unistdio/u32-u32-vsprintf: Likewise.
1167         * modules/unistdio/u32-vasnprintf: Likewise.
1168         * modules/unistdio/u32-vasprintf: Likewise.
1169         * modules/unistdio/u32-vsnprintf: Likewise.
1170         * modules/unistdio/u32-vsprintf: Likewise.
1171         * modules/unistdio/ulc-asnprintf: Likewise.
1172         * modules/unistdio/ulc-asprintf: Likewise.
1173         * modules/unistdio/ulc-fprintf: Likewise.
1174         * modules/unistdio/ulc-snprintf: Likewise.
1175         * modules/unistdio/ulc-sprintf: Likewise.
1176         * modules/unistdio/ulc-vasnprintf: Likewise.
1177         * modules/unistdio/ulc-vasprintf: Likewise.
1178         * modules/unistdio/ulc-vfprintf: Likewise.
1179         * modules/unistdio/ulc-vsnprintf: Likewise.
1180         * modules/unistdio/ulc-vsprintf: Likewise.
1181         * modules/unistr/u8-check: Likewise.
1182         * modules/unistr/u8-chr: Likewise.
1183         * modules/unistr/u8-cmp: Likewise.
1184         * modules/unistr/u8-cmp2: Likewise.
1185         * modules/unistr/u8-cpy: Likewise.
1186         * modules/unistr/u8-cpy-alloc: Likewise.
1187         * modules/unistr/u8-endswith: Likewise.
1188         * modules/unistr/u8-mblen: Likewise.
1189         * modules/unistr/u8-mbsnlen: Likewise.
1190         * modules/unistr/u8-mbtouc: Likewise.
1191         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1192         * modules/unistr/u8-mbtoucr: Likewise.
1193         * modules/unistr/u8-move: Likewise.
1194         * modules/unistr/u8-next: Likewise.
1195         * modules/unistr/u8-prev: Likewise.
1196         * modules/unistr/u8-set: Likewise.
1197         * modules/unistr/u8-startswith: Likewise.
1198         * modules/unistr/u8-stpcpy: Likewise.
1199         * modules/unistr/u8-stpncpy: Likewise.
1200         * modules/unistr/u8-strcat: Likewise.
1201         * modules/unistr/u8-strchr: Likewise.
1202         * modules/unistr/u8-strcmp: Likewise.
1203         * modules/unistr/u8-strcoll: Likewise.
1204         * modules/unistr/u8-strcpy: Likewise.
1205         * modules/unistr/u8-strcspn: Likewise.
1206         * modules/unistr/u8-strdup: Likewise.
1207         * modules/unistr/u8-strlen: Likewise.
1208         * modules/unistr/u8-strmblen: Likewise.
1209         * modules/unistr/u8-strmbtouc: Likewise.
1210         * modules/unistr/u8-strncat: Likewise.
1211         * modules/unistr/u8-strncmp: Likewise.
1212         * modules/unistr/u8-strncpy: Likewise.
1213         * modules/unistr/u8-strnlen: Likewise.
1214         * modules/unistr/u8-strpbrk: Likewise.
1215         * modules/unistr/u8-strrchr: Likewise.
1216         * modules/unistr/u8-strspn: Likewise.
1217         * modules/unistr/u8-strstr: Likewise.
1218         * modules/unistr/u8-strtok: Likewise.
1219         * modules/unistr/u8-to-u16: Likewise.
1220         * modules/unistr/u8-to-u32: Likewise.
1221         * modules/unistr/u8-uctomb: Likewise.
1222         * modules/unistr/u16-check: Likewise.
1223         * modules/unistr/u16-chr: Likewise.
1224         * modules/unistr/u16-cmp: Likewise.
1225         * modules/unistr/u16-cmp2: Likewise.
1226         * modules/unistr/u16-cpy: Likewise.
1227         * modules/unistr/u16-cpy-alloc: Likewise.
1228         * modules/unistr/u16-endswith: Likewise.
1229         * modules/unistr/u16-mblen: Likewise.
1230         * modules/unistr/u16-mbsnlen: Likewise.
1231         * modules/unistr/u16-mbtouc: Likewise.
1232         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1233         * modules/unistr/u16-mbtoucr: Likewise.
1234         * modules/unistr/u16-move: Likewise.
1235         * modules/unistr/u16-next: Likewise.
1236         * modules/unistr/u16-prev: Likewise.
1237         * modules/unistr/u16-set: Likewise.
1238         * modules/unistr/u16-startswith: Likewise.
1239         * modules/unistr/u16-stpcpy: Likewise.
1240         * modules/unistr/u16-stpncpy: Likewise.
1241         * modules/unistr/u16-strcat: Likewise.
1242         * modules/unistr/u16-strchr: Likewise.
1243         * modules/unistr/u16-strcmp: Likewise.
1244         * modules/unistr/u16-strcoll: Likewise.
1245         * modules/unistr/u16-strcpy: Likewise.
1246         * modules/unistr/u16-strcspn: Likewise.
1247         * modules/unistr/u16-strdup: Likewise.
1248         * modules/unistr/u16-strlen: Likewise.
1249         * modules/unistr/u16-strmblen: Likewise.
1250         * modules/unistr/u16-strmbtouc: Likewise.
1251         * modules/unistr/u16-strncat: Likewise.
1252         * modules/unistr/u16-strncmp: Likewise.
1253         * modules/unistr/u16-strncpy: Likewise.
1254         * modules/unistr/u16-strnlen: Likewise.
1255         * modules/unistr/u16-strpbrk: Likewise.
1256         * modules/unistr/u16-strrchr: Likewise.
1257         * modules/unistr/u16-strspn: Likewise.
1258         * modules/unistr/u16-strstr: Likewise.
1259         * modules/unistr/u16-strtok: Likewise.
1260         * modules/unistr/u16-to-u32: Likewise.
1261         * modules/unistr/u16-to-u8: Likewise.
1262         * modules/unistr/u16-uctomb: Likewise.
1263         * modules/unistr/u32-check: Likewise.
1264         * modules/unistr/u32-chr: Likewise.
1265         * modules/unistr/u32-cmp: Likewise.
1266         * modules/unistr/u32-cmp2: Likewise.
1267         * modules/unistr/u32-cpy: Likewise.
1268         * modules/unistr/u32-cpy-alloc: Likewise.
1269         * modules/unistr/u32-endswith: Likewise.
1270         * modules/unistr/u32-mblen: Likewise.
1271         * modules/unistr/u32-mbsnlen: Likewise.
1272         * modules/unistr/u32-mbtouc: Likewise.
1273         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1274         * modules/unistr/u32-mbtoucr: Likewise.
1275         * modules/unistr/u32-move: Likewise.
1276         * modules/unistr/u32-next: Likewise.
1277         * modules/unistr/u32-prev: Likewise.
1278         * modules/unistr/u32-set: Likewise.
1279         * modules/unistr/u32-startswith: Likewise.
1280         * modules/unistr/u32-stpcpy: Likewise.
1281         * modules/unistr/u32-stpncpy: Likewise.
1282         * modules/unistr/u32-strcat: Likewise.
1283         * modules/unistr/u32-strchr: Likewise.
1284         * modules/unistr/u32-strcmp: Likewise.
1285         * modules/unistr/u32-strcoll: Likewise.
1286         * modules/unistr/u32-strcpy: Likewise.
1287         * modules/unistr/u32-strcspn: Likewise.
1288         * modules/unistr/u32-strdup: Likewise.
1289         * modules/unistr/u32-strlen: Likewise.
1290         * modules/unistr/u32-strmblen: Likewise.
1291         * modules/unistr/u32-strmbtouc: Likewise.
1292         * modules/unistr/u32-strncat: Likewise.
1293         * modules/unistr/u32-strncmp: Likewise.
1294         * modules/unistr/u32-strncpy: Likewise.
1295         * modules/unistr/u32-strnlen: Likewise.
1296         * modules/unistr/u32-strpbrk: Likewise.
1297         * modules/unistr/u32-strrchr: Likewise.
1298         * modules/unistr/u32-strspn: Likewise.
1299         * modules/unistr/u32-strstr: Likewise.
1300         * modules/unistr/u32-strtok: Likewise.
1301         * modules/unistr/u32-to-u16: Likewise.
1302         * modules/unistr/u32-to-u8: Likewise.
1303         * modules/unistr/u32-uctomb: Likewise.
1304         * modules/uniwbrk/u8-wordbreaks: Likewise.
1305         * modules/uniwbrk/u16-wordbreaks: Likewise.
1306         * modules/uniwbrk/u32-wordbreaks: Likewise.
1307         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1308         * modules/uniwbrk/wordbreak-property: Likewise.
1309         * modules/uniwidth/u8-strwidth: Likewise.
1310         * modules/uniwidth/u8-width: Likewise.
1311         * modules/uniwidth/u16-strwidth: Likewise.
1312         * modules/uniwidth/u16-width: Likewise.
1313         * modules/uniwidth/u32-strwidth: Likewise.
1314         * modules/uniwidth/u32-width: Likewise.
1315         * modules/uniwidth/width: Likewise.
1316         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1317         with $(LIBUNISTRING).
1318         * modules/unicase/ignorable-tests: Likewise.
1319         * modules/unicase/locale-language-tests: Likewise.
1320         * modules/unicase/tolower-tests: Likewise.
1321         * modules/unicase/totitle-tests: Likewise.
1322         * modules/unicase/toupper-tests: Likewise.
1323         * modules/unicase/u8-casecmp-tests: Likewise.
1324         * modules/unicase/u8-casecoll-tests: Likewise.
1325         * modules/unicase/u8-casefold-tests: Likewise.
1326         * modules/unicase/u8-is-cased-tests: Likewise.
1327         * modules/unicase/u8-is-casefolded-tests: Likewise.
1328         * modules/unicase/u8-is-lowercase-tests: Likewise.
1329         * modules/unicase/u8-is-titlecase-tests: Likewise.
1330         * modules/unicase/u8-is-uppercase-tests: Likewise.
1331         * modules/unicase/u8-tolower-tests: Likewise.
1332         * modules/unicase/u8-totitle-tests: Likewise.
1333         * modules/unicase/u8-toupper-tests: Likewise.
1334         * modules/unicase/u16-casecmp-tests: Likewise.
1335         * modules/unicase/u16-casecoll-tests: Likewise.
1336         * modules/unicase/u16-casefold-tests: Likewise.
1337         * modules/unicase/u16-is-cased-tests: Likewise.
1338         * modules/unicase/u16-is-casefolded-tests: Likewise.
1339         * modules/unicase/u16-is-lowercase-tests: Likewise.
1340         * modules/unicase/u16-is-titlecase-tests: Likewise.
1341         * modules/unicase/u16-is-uppercase-tests: Likewise.
1342         * modules/unicase/u16-tolower-tests: Likewise.
1343         * modules/unicase/u16-totitle-tests: Likewise.
1344         * modules/unicase/u16-toupper-tests: Likewise.
1345         * modules/unicase/u32-casecmp-tests: Likewise.
1346         * modules/unicase/u32-casecoll-tests: Likewise.
1347         * modules/unicase/u32-casefold-tests: Likewise.
1348         * modules/unicase/u32-is-cased-tests: Likewise.
1349         * modules/unicase/u32-is-casefolded-tests: Likewise.
1350         * modules/unicase/u32-is-lowercase-tests: Likewise.
1351         * modules/unicase/u32-is-titlecase-tests: Likewise.
1352         * modules/unicase/u32-is-uppercase-tests: Likewise.
1353         * modules/unicase/u32-tolower-tests: Likewise.
1354         * modules/unicase/u32-totitle-tests: Likewise.
1355         * modules/unicase/u32-toupper-tests: Likewise.
1356         * modules/unicase/ulc-casecmp-tests: Likewise.
1357         * modules/unicase/ulc-casecoll-tests: Likewise.
1358         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1359         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1360         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1361         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1362         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1363         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1364         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1365         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1366         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1367         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1368         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1369         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1370         * modules/unictype/bidicategory-byname-tests: Likewise.
1371         * modules/unictype/bidicategory-name-tests: Likewise.
1372         * modules/unictype/bidicategory-of-tests: Likewise.
1373         * modules/unictype/bidicategory-test-tests: Likewise.
1374         * modules/unictype/block-list-tests: Likewise.
1375         * modules/unictype/block-of-tests: Likewise.
1376         * modules/unictype/block-test-tests: Likewise.
1377         * modules/unictype/category-C-tests: Likewise.
1378         * modules/unictype/category-Cc-tests: Likewise.
1379         * modules/unictype/category-Cf-tests: Likewise.
1380         * modules/unictype/category-Cn-tests: Likewise.
1381         * modules/unictype/category-Co-tests: Likewise.
1382         * modules/unictype/category-Cs-tests: Likewise.
1383         * modules/unictype/category-L-tests: Likewise.
1384         * modules/unictype/category-Ll-tests: Likewise.
1385         * modules/unictype/category-Lm-tests: Likewise.
1386         * modules/unictype/category-Lo-tests: Likewise.
1387         * modules/unictype/category-Lt-tests: Likewise.
1388         * modules/unictype/category-Lu-tests: Likewise.
1389         * modules/unictype/category-M-tests: Likewise.
1390         * modules/unictype/category-Mc-tests: Likewise.
1391         * modules/unictype/category-Me-tests: Likewise.
1392         * modules/unictype/category-Mn-tests: Likewise.
1393         * modules/unictype/category-N-tests: Likewise.
1394         * modules/unictype/category-Nd-tests: Likewise.
1395         * modules/unictype/category-Nl-tests: Likewise.
1396         * modules/unictype/category-No-tests: Likewise.
1397         * modules/unictype/category-P-tests: Likewise.
1398         * modules/unictype/category-Pc-tests: Likewise.
1399         * modules/unictype/category-Pd-tests: Likewise.
1400         * modules/unictype/category-Pe-tests: Likewise.
1401         * modules/unictype/category-Pf-tests: Likewise.
1402         * modules/unictype/category-Pi-tests: Likewise.
1403         * modules/unictype/category-Po-tests: Likewise.
1404         * modules/unictype/category-Ps-tests: Likewise.
1405         * modules/unictype/category-S-tests: Likewise.
1406         * modules/unictype/category-Sc-tests: Likewise.
1407         * modules/unictype/category-Sk-tests: Likewise.
1408         * modules/unictype/category-Sm-tests: Likewise.
1409         * modules/unictype/category-So-tests: Likewise.
1410         * modules/unictype/category-Z-tests: Likewise.
1411         * modules/unictype/category-Zl-tests: Likewise.
1412         * modules/unictype/category-Zp-tests: Likewise.
1413         * modules/unictype/category-Zs-tests: Likewise.
1414         * modules/unictype/category-and-not-tests: Likewise.
1415         * modules/unictype/category-and-tests: Likewise.
1416         * modules/unictype/category-byname-tests: Likewise.
1417         * modules/unictype/category-name-tests: Likewise.
1418         * modules/unictype/category-none-tests: Likewise.
1419         * modules/unictype/category-of-tests: Likewise.
1420         * modules/unictype/category-or-tests: Likewise.
1421         * modules/unictype/category-test-withtable-tests: Likewise.
1422         * modules/unictype/combining-class-tests: Likewise.
1423         * modules/unictype/ctype-alnum-tests: Likewise.
1424         * modules/unictype/ctype-alpha-tests: Likewise.
1425         * modules/unictype/ctype-blank-tests: Likewise.
1426         * modules/unictype/ctype-cntrl-tests: Likewise.
1427         * modules/unictype/ctype-digit-tests: Likewise.
1428         * modules/unictype/ctype-graph-tests: Likewise.
1429         * modules/unictype/ctype-lower-tests: Likewise.
1430         * modules/unictype/ctype-print-tests: Likewise.
1431         * modules/unictype/ctype-punct-tests: Likewise.
1432         * modules/unictype/ctype-space-tests: Likewise.
1433         * modules/unictype/ctype-upper-tests: Likewise.
1434         * modules/unictype/ctype-xdigit-tests: Likewise.
1435         * modules/unictype/decimal-digit-tests: Likewise.
1436         * modules/unictype/digit-tests: Likewise.
1437         * modules/unictype/mirror-tests: Likewise.
1438         * modules/unictype/numeric-tests: Likewise.
1439         * modules/unictype/property-alphabetic-tests: Likewise.
1440         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1441         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1442         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1443         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1444         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1445         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1446         * modules/unictype/property-bidi-control-tests: Likewise.
1447         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1448         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1449         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1450         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1451         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1452         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1453         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1454         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1455         * modules/unictype/property-bidi-pdf-tests: Likewise.
1456         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1457         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1458         * modules/unictype/property-byname-tests: Likewise.
1459         * modules/unictype/property-combining-tests: Likewise.
1460         * modules/unictype/property-composite-tests: Likewise.
1461         * modules/unictype/property-currency-symbol-tests: Likewise.
1462         * modules/unictype/property-dash-tests: Likewise.
1463         * modules/unictype/property-decimal-digit-tests: Likewise.
1464         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1465         * modules/unictype/property-deprecated-tests: Likewise.
1466         * modules/unictype/property-diacritic-tests: Likewise.
1467         * modules/unictype/property-extender-tests: Likewise.
1468         * modules/unictype/property-format-control-tests: Likewise.
1469         * modules/unictype/property-grapheme-base-tests: Likewise.
1470         * modules/unictype/property-grapheme-extend-tests: Likewise.
1471         * modules/unictype/property-grapheme-link-tests: Likewise.
1472         * modules/unictype/property-hex-digit-tests: Likewise.
1473         * modules/unictype/property-hyphen-tests: Likewise.
1474         * modules/unictype/property-id-continue-tests: Likewise.
1475         * modules/unictype/property-id-start-tests: Likewise.
1476         * modules/unictype/property-ideographic-tests: Likewise.
1477         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1478         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1479         * modules/unictype/property-ignorable-control-tests: Likewise.
1480         * modules/unictype/property-iso-control-tests: Likewise.
1481         * modules/unictype/property-join-control-tests: Likewise.
1482         * modules/unictype/property-left-of-pair-tests: Likewise.
1483         * modules/unictype/property-line-separator-tests: Likewise.
1484         * modules/unictype/property-logical-order-exception-tests: Likewise.
1485         * modules/unictype/property-lowercase-tests: Likewise.
1486         * modules/unictype/property-math-tests: Likewise.
1487         * modules/unictype/property-non-break-tests: Likewise.
1488         * modules/unictype/property-not-a-character-tests: Likewise.
1489         * modules/unictype/property-numeric-tests: Likewise.
1490         * modules/unictype/property-other-alphabetic-tests: Likewise.
1491         * modules/unictype/property-other-default-ignorable-code-point-tests:
1492         Likewise.
1493         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1494         * modules/unictype/property-other-id-continue-tests: Likewise.
1495         * modules/unictype/property-other-id-start-tests: Likewise.
1496         * modules/unictype/property-other-lowercase-tests: Likewise.
1497         * modules/unictype/property-other-math-tests: Likewise.
1498         * modules/unictype/property-other-uppercase-tests: Likewise.
1499         * modules/unictype/property-paired-punctuation-tests: Likewise.
1500         * modules/unictype/property-paragraph-separator-tests: Likewise.
1501         * modules/unictype/property-pattern-syntax-tests: Likewise.
1502         * modules/unictype/property-pattern-white-space-tests: Likewise.
1503         * modules/unictype/property-private-use-tests: Likewise.
1504         * modules/unictype/property-punctuation-tests: Likewise.
1505         * modules/unictype/property-quotation-mark-tests: Likewise.
1506         * modules/unictype/property-radical-tests: Likewise.
1507         * modules/unictype/property-sentence-terminal-tests: Likewise.
1508         * modules/unictype/property-soft-dotted-tests: Likewise.
1509         * modules/unictype/property-space-tests: Likewise.
1510         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1511         * modules/unictype/property-test-tests: Likewise.
1512         * modules/unictype/property-titlecase-tests: Likewise.
1513         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1514         * modules/unictype/property-unified-ideograph-tests: Likewise.
1515         * modules/unictype/property-uppercase-tests: Likewise.
1516         * modules/unictype/property-variation-selector-tests: Likewise.
1517         * modules/unictype/property-white-space-tests: Likewise.
1518         * modules/unictype/property-xid-continue-tests: Likewise.
1519         * modules/unictype/property-xid-start-tests: Likewise.
1520         * modules/unictype/property-zero-width-tests: Likewise.
1521         * modules/unictype/scripts-tests: Likewise.
1522         * modules/unictype/syntax-c-ident-tests: Likewise.
1523         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1524         * modules/unictype/syntax-java-ident-tests: Likewise.
1525         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1526         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
1527         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
1528         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
1529         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
1530         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
1531         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
1532         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
1533         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
1534         * modules/uniname/uniname-tests: Likewise.
1535         * modules/uninorm/canonical-decomposition-tests: Likewise.
1536         * modules/uninorm/compat-decomposition-tests: Likewise.
1537         * modules/uninorm/composition-tests: Likewise.
1538         * modules/uninorm/decomposing-form-tests: Likewise.
1539         * modules/uninorm/decomposition-tests: Likewise.
1540         * modules/uninorm/filter-tests: Likewise.
1541         * modules/uninorm/nfc-tests: Likewise.
1542         * modules/uninorm/nfd-tests: Likewise.
1543         * modules/uninorm/nfkc-tests: Likewise.
1544         * modules/uninorm/nfkd-tests: Likewise.
1545         * modules/uninorm/u8-normcmp-tests: Likewise.
1546         * modules/uninorm/u8-normcoll-tests: Likewise.
1547         * modules/uninorm/u16-normcmp-tests: Likewise.
1548         * modules/uninorm/u16-normcoll-tests: Likewise.
1549         * modules/uninorm/u32-normcmp-tests: Likewise.
1550         * modules/uninorm/u32-normcoll-tests: Likewise.
1551         * modules/unistdio/u8-asnprintf-tests: Likewise.
1552         * modules/unistdio/u8-vasnprintf-tests: Likewise.
1553         * modules/unistdio/u8-vasprintf-tests: Likewise.
1554         * modules/unistdio/u8-vsnprintf-tests: Likewise.
1555         * modules/unistdio/u8-vsprintf-tests: Likewise.
1556         * modules/unistdio/u16-asnprintf-tests: Likewise.
1557         * modules/unistdio/u16-vasnprintf-tests: Likewise.
1558         * modules/unistdio/u16-vasprintf-tests: Likewise.
1559         * modules/unistdio/u16-vsnprintf-tests: Likewise.
1560         * modules/unistdio/u16-vsprintf-tests: Likewise.
1561         * modules/unistdio/u32-asnprintf-tests: Likewise.
1562         * modules/unistdio/u32-vasnprintf-tests: Likewise.
1563         * modules/unistdio/u32-vasprintf-tests: Likewise.
1564         * modules/unistdio/u32-vsnprintf-tests: Likewise.
1565         * modules/unistdio/u32-vsprintf-tests: Likewise.
1566         * modules/unistdio/ulc-asnprintf-tests: Likewise.
1567         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
1568         * modules/unistdio/ulc-vasprintf-tests: Likewise.
1569         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
1570         * modules/unistdio/ulc-vsprintf-tests: Likewise.
1571         * modules/unistr/u8-check-tests: Likewise.
1572         * modules/unistr/u8-chr-tests: Likewise.
1573         * modules/unistr/u8-cmp-tests: Likewise.
1574         * modules/unistr/u8-cmp2-tests: Likewise.
1575         * modules/unistr/u8-cpy-alloc-tests: Likewise.
1576         * modules/unistr/u8-cpy-tests: Likewise.
1577         * modules/unistr/u8-mblen-tests: Likewise.
1578         * modules/unistr/u8-mbsnlen-tests: Likewise.
1579         * modules/unistr/u8-mbtouc-tests: Likewise.
1580         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
1581         * modules/unistr/u8-mbtoucr-tests: Likewise.
1582         * modules/unistr/u8-move-tests: Likewise.
1583         * modules/unistr/u8-next-tests: Likewise.
1584         * modules/unistr/u8-prev-tests: Likewise.
1585         * modules/unistr/u8-set-tests: Likewise.
1586         * modules/unistr/u8-stpcpy-tests: Likewise.
1587         * modules/unistr/u8-stpncpy-tests: Likewise.
1588         * modules/unistr/u8-strcat-tests: Likewise.
1589         * modules/unistr/u8-strcmp-tests: Likewise.
1590         * modules/unistr/u8-strcoll-tests: Likewise.
1591         * modules/unistr/u8-strcpy-tests: Likewise.
1592         * modules/unistr/u8-strdup-tests: Likewise.
1593         * modules/unistr/u8-strlen-tests: Likewise.
1594         * modules/unistr/u8-strmblen-tests: Likewise.
1595         * modules/unistr/u8-strmbtouc-tests: Likewise.
1596         * modules/unistr/u8-strncat-tests: Likewise.
1597         * modules/unistr/u8-strncmp-tests: Likewise.
1598         * modules/unistr/u8-strncpy-tests: Likewise.
1599         * modules/unistr/u8-strnlen-tests: Likewise.
1600         * modules/unistr/u8-to-u16-tests: Likewise.
1601         * modules/unistr/u8-to-u32-tests: Likewise.
1602         * modules/unistr/u8-uctomb-tests: Likewise.
1603         * modules/unistr/u16-check-tests: Likewise.
1604         * modules/unistr/u16-chr-tests: Likewise.
1605         * modules/unistr/u16-cmp-tests: Likewise.
1606         * modules/unistr/u16-cmp2-tests: Likewise.
1607         * modules/unistr/u16-cpy-alloc-tests: Likewise.
1608         * modules/unistr/u16-cpy-tests: Likewise.
1609         * modules/unistr/u16-mblen-tests: Likewise.
1610         * modules/unistr/u16-mbsnlen-tests: Likewise.
1611         * modules/unistr/u16-mbtouc-tests: Likewise.
1612         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
1613         * modules/unistr/u16-mbtoucr-tests: Likewise.
1614         * modules/unistr/u16-move-tests: Likewise.
1615         * modules/unistr/u16-next-tests: Likewise.
1616         * modules/unistr/u16-prev-tests: Likewise.
1617         * modules/unistr/u16-set-tests: Likewise.
1618         * modules/unistr/u16-stpcpy-tests: Likewise.
1619         * modules/unistr/u16-stpncpy-tests: Likewise.
1620         * modules/unistr/u16-strcat-tests: Likewise.
1621         * modules/unistr/u16-strcmp-tests: Likewise.
1622         * modules/unistr/u16-strcoll-tests: Likewise.
1623         * modules/unistr/u16-strcpy-tests: Likewise.
1624         * modules/unistr/u16-strdup-tests: Likewise.
1625         * modules/unistr/u16-strlen-tests: Likewise.
1626         * modules/unistr/u16-strmblen-tests: Likewise.
1627         * modules/unistr/u16-strmbtouc-tests: Likewise.
1628         * modules/unistr/u16-strncat-tests: Likewise.
1629         * modules/unistr/u16-strncmp-tests: Likewise.
1630         * modules/unistr/u16-strncpy-tests: Likewise.
1631         * modules/unistr/u16-strnlen-tests: Likewise.
1632         * modules/unistr/u16-to-u32-tests: Likewise.
1633         * modules/unistr/u16-to-u8-tests: Likewise.
1634         * modules/unistr/u16-uctomb-tests: Likewise.
1635         * modules/unistr/u32-check-tests: Likewise.
1636         * modules/unistr/u32-chr-tests: Likewise.
1637         * modules/unistr/u32-cmp-tests: Likewise.
1638         * modules/unistr/u32-cmp2-tests: Likewise.
1639         * modules/unistr/u32-cpy-alloc-tests: Likewise.
1640         * modules/unistr/u32-cpy-tests: Likewise.
1641         * modules/unistr/u32-mblen-tests: Likewise.
1642         * modules/unistr/u32-mbsnlen-tests: Likewise.
1643         * modules/unistr/u32-mbtouc-tests: Likewise.
1644         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
1645         * modules/unistr/u32-mbtoucr-tests: Likewise.
1646         * modules/unistr/u32-move-tests: Likewise.
1647         * modules/unistr/u32-next-tests: Likewise.
1648         * modules/unistr/u32-prev-tests: Likewise.
1649         * modules/unistr/u32-set-tests: Likewise.
1650         * modules/unistr/u32-stpcpy-tests: Likewise.
1651         * modules/unistr/u32-stpncpy-tests: Likewise.
1652         * modules/unistr/u32-strcat-tests: Likewise.
1653         * modules/unistr/u32-strcmp-tests: Likewise.
1654         * modules/unistr/u32-strcoll-tests: Likewise.
1655         * modules/unistr/u32-strcpy-tests: Likewise.
1656         * modules/unistr/u32-strdup-tests: Likewise.
1657         * modules/unistr/u32-strlen-tests: Likewise.
1658         * modules/unistr/u32-strmblen-tests: Likewise.
1659         * modules/unistr/u32-strmbtouc-tests: Likewise.
1660         * modules/unistr/u32-strncat-tests: Likewise.
1661         * modules/unistr/u32-strncmp-tests: Likewise.
1662         * modules/unistr/u32-strncpy-tests: Likewise.
1663         * modules/unistr/u32-strnlen-tests: Likewise.
1664         * modules/unistr/u32-to-u16-tests: Likewise.
1665         * modules/unistr/u32-to-u8-tests: Likewise.
1666         * modules/unistr/u32-uctomb-tests: Likewise.
1667         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
1668         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
1669         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
1670         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
1671         * modules/uniwidth/u8-strwidth-tests: Likewise.
1672         * modules/uniwidth/u8-width-tests: Likewise.
1673         * modules/uniwidth/u16-strwidth-tests: Likewise.
1674         * modules/uniwidth/u16-width-tests: Likewise.
1675         * modules/uniwidth/u32-strwidth-tests: Likewise.
1676         * modules/uniwidth/u32-width-tests: Likewise.
1677         * modules/uniwidth/width-tests: Likewise.
1678
1679 2010-05-18  Richard Jones  <rjones@redhat.com>
1680
1681         doc: users.txt: list hivex
1682         * users.txt: Add hivex.
1683
1684 2010-05-18  Richard Jones  <rjones@redhat.com>
1685
1686         doc: users.txt: list febootstrap
1687         * users.txt: Add febootstrap.
1688
1689 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
1690
1691         bootstrap: fix an error when gnulib is not used as a git submodule
1692         * build-aux/bootstrap (gnulib_path): If its length is zero then
1693         assign "gnulib" to it.
1694         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
1695
1696 2010-05-16  Bruno Haible  <bruno@clisp.org>
1697
1698         Avoid autoconf warnings about AM_ICONV.
1699         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
1700         2.64.
1701
1702 2010-05-16  Bruno Haible  <bruno@clisp.org>
1703
1704         absolute-header: Make the macro usable in more situations.
1705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
1706         from gl_ABSOLUTE_HEADER.
1707         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
1708
1709 2010-05-16  James Youngman  <jay@gnu.org>
1710
1711         doc: update users.txt
1712         * users.txt: Add CSSC.
1713
1714 2010-05-16  Jim Meyering  <meyering@redhat.com>
1715
1716         init.sh: fix an error in the previous change; add more comments
1717         * tests/init.sh: Compare exit code in loop against 9, not 2.
1718         Patch by Bruno Haible.
1719         Make the two tests more similar by adding an empty "then" clause.
1720         Add comments.
1721
1722         init.sh: avoid unnecessary shell re-exec
1723         * tests/init.sh: Improve the re-exec-required check to first test the
1724         current shell.  If it passes the test, do not search for a shell that
1725         does pass, and do not re-exec.  This test is particularly contorted to
1726         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
1727         of $(...) evokes a syntax error and causes immediate shell exit with
1728         status 2.  Bruno Haible reported that the re-exec made it impossible
1729         to single-step through any init.sh-using script.
1730
1731 2010-05-16  Bruno Haible  <bruno@clisp.org>
1732
1733         Fix collision between gnulib's and libintl's printf replacements.
1734         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
1735         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
1736         (printf): When using GNU C, map the __printf__ function to rpl_printf
1737         via __asm__. When not using GNU C, define rpl_printf instead of
1738         __printf__.
1739         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
1740         commit.
1741         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
1742         commit.
1743         * m4/asm-underscore.m4: New file.
1744         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
1745         * modules/stdio (Files): Add m4/asm-underscore.m4.
1746         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
1747         Reported by Ben Pfaff.
1748
1749 2010-05-16  Bruno Haible  <bruno@clisp.org>
1750
1751         verify: Avoid skipping the test on openSUSE 11.0.
1752         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
1753
1754 2010-05-13  Bruno Haible  <bruno@clisp.org>
1755
1756         Avoid useless warnings from G++.
1757         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
1758         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
1759         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1760
1761 2010-05-11  Jim Meyering  <meyering@redhat.com>
1762
1763         maint.mk: tweak preceding change
1764         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
1765         regexps tighter by anchoring at EOL, and make the new group "shy"
1766         for slightly decreased overhead.
1767
1768 2010-05-11  Eric Blake  <eblake@redhat.com>
1769
1770         maint.mk: gnulib doesn't guarantee NSIG
1771         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
1772
1773 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1774
1775         test-pwrite.c: Remove unused variable declaration.
1776         * tests/test-pwrite.c (main): Remove read_buf declaration.
1777
1778         Remove useless test-pwrite.sh file.
1779         * tests/test-pwrite.sh: Delete file.
1780         * modules/pwrite-tests: Remove references.
1781         Reported by Bruno Haible.
1782
1783 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
1784
1785         init.sh: fix a typo
1786         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
1787
1788 2010-05-10  Jim Meyering  <meyering@redhat.com>
1789
1790         maint.mk: avoid using a temporary file in the always-defined-macros check
1791         * top/maint.mk (.re-defmac): Remove rule.
1792         (gl_trap_): Remove definition.
1793         (sc_prohibit_always-defined_macros): Rewrite not to create and
1794         depend on a temporary file.  Instead, depend on GNU grep's ability
1795         to read a list of regular expressions from stdin when given "-f -".
1796
1797 2010-05-09  Bruno Haible  <bruno@clisp.org>
1798
1799         Update to GNU gettext 0.18, part 1.
1800         * m4/gettext.m4: Update to GNU gettext 0.18.
1801         * m4/intl.m4: Likewise.
1802         * m4/po.m4: Likewise.
1803         * modules/gettext (Files): Add m4/fcntl-o.m4.
1804         (configure.ac): Require gettext infrastructure from version 0.18.
1805
1806 2010-05-09  Jim Meyering  <meyering@redhat.com>
1807
1808         init.sh: enable MALLOC_PERTURB_
1809         * tests/init.sh: Enable glibc's malloc-perturbing option.
1810
1811         maint.mk: improve sc_cross_check_PATH_usage_in_tests
1812         With my recent change in init.sh from the two-line form:
1813             -#   : ${srcdir=.}
1814             -#   . "$srcdir/init.sh"; path_prepend_ .
1815             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
1816         I noticed that using the one-line form would cause this test
1817         to fail with a false-positive, or to stop working altogether,
1818         depending on whether help-version changed or all the tests did.
1819         * top/maint.mk (_hv_regex): Remove this definition.
1820         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
1821         (_hv_regex_strong): Use a stronger regex to check for conformance.
1822         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
1823         Give a separate diagnostic for lack of conforming use.
1824
1825         maint.mk: prohibit definition of symbols defined by gnulib
1826         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
1827         definition of symbols defined by gnulib.
1828
1829 2010-05-09  Bruno Haible  <bruno@clisp.org>
1830
1831         acl: Avoid test failure on Cygwin-hosted mingw.
1832         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
1833
1834 2010-05-09  Bruno Haible  <bruno@clisp.org>
1835
1836         error: Use system's fcntl function.
1837         * lib/error.c (fcntl): Undefine.
1838
1839 2010-05-09  Jim Meyering  <meyering@redhat.com>
1840
1841         verify: adjust formatting to be more consistent
1842         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
1843         argument-list '('s, and after one comma.
1844
1845 2010-05-09  Bruno Haible  <bruno@clisp.org>
1846
1847         error: More reliable output on mingw.
1848         * lib/error.c: Include <windows.h>.
1849         (is_open): New function.
1850         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
1851         defined.
1852
1853 2010-05-09  Bruno Haible  <bruno@clisp.org>
1854
1855         vasnprintf: Fix syntax errors in libintl build on mingw.
1856         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
1857         pad_ourselves and prec_ourselves after use.
1858
1859 2010-05-08  Bruno Haible  <bruno@clisp.org>
1860
1861         * lib/config.charset: Update comments for Cygwin 1.7.
1862         * lib/localcharset.c: Likewise.
1863
1864 2010-05-07  Jim Meyering  <meyering@redhat.com>
1865
1866         init.sh: improve comments
1867         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
1868         . "${srcdir=.}/init.sh"; path_prepend_ .
1869         Add a note about path_prepend_ and the alternative of using
1870         TESTS_ENVIRONMENT.
1871
1872 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
1873
1874         exclude: Unescape hashed patterns in wildcard mode.
1875         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
1876         to the hash list.
1877         * tests/test-exclude8.sh: New test case.
1878         * modules/exclude-tests: Add new test.
1879
1880 2010-05-05  Eric Blake  <eblake@redhat.com>
1881
1882         verify: automate tests
1883         * modules/verify-tests: New module.
1884         * tests/test-verify.sh: New file.
1885         * tests/test-verify.c: Guard each negative test with a unique id.
1886         Also avoid warning about unused left hand of comma expressions.
1887
1888 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         Further improvements to verify.h, suggested by Eric Blake.
1891         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
1892         the GL_* versions, to avoid collision with OpenGL.
1893         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
1894         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
1895         than testing merely whether it's defined.
1896
1897         Modify verify.h to pacify gcc -Wredundant_decls.
1898         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
1899         These use the prefix "GL_" since they're likely to be useful elsewhere.
1900         We may need to break them out into a different .h file.
1901         (__COUNTER__): Define to 0 if the compiler doesn't support it.
1902         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
1903         of verify_function__.
1904
1905 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1906
1907         Tests for module pwrite.
1908         * modules/pwrite-tests: New file.
1909         * tests/test-pwrite.sh: New file.
1910         * tests/test-pwrite.c: New file.
1911
1912         New module pwrite.
1913         * lib/unistd.in.h (pwrite): New declaration.
1914         * lib/pwrite.c: New file, from glibc with modifications.
1915         * m4/pwrite.m4: New file.
1916         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
1917         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
1918         REPLACE_PWRITE.
1919         * modules/pwrite: New file.
1920         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
1921         REPLACE_PWRITE.
1922         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
1923         * doc/posix-functions/pwrite.texi: Mention the new module.
1924
1925 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
1926
1927         pread: Update documentation.
1928         * doc/posix-functions/pread.texi: Mention the 'pread' module.
1929
1930 2010-05-04  Eric Blake  <eblake@redhat.com>
1931
1932         docs: update cygwin progress
1933         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
1934         this bug.
1935         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
1936         Added in cygwin 1.7.2.
1937         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
1938         Likewise.
1939         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
1940         Likewise.
1941         * doc/glibc-functions/dup3.texi (dup3): Likewise.
1942         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
1943         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1944         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
1945         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
1946         Mention nproc module.
1947         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
1948         bug in cygwin 1.7.5 addition.
1949         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
1950         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
1951         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
1952         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
1953         1.7.5.
1954         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
1955         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
1956         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
1957         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
1958         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
1959         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
1960         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
1961         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
1962         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
1963         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
1964         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
1965         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
1966         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
1967         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
1968         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
1969         Likewise.
1970         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
1971         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
1972         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
1973         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
1974         Likewise.
1975         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
1976         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
1977         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
1978         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
1979         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
1980         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
1981         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
1982         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
1983         Likewise.
1984         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
1985         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
1986         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
1987         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
1988         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
1989         Likewise.
1990         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
1991         Likewise.
1992         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
1993         Likewise.
1994         * doc/glibc-functions/xdrrec_endofrecord.texi
1995         (xdrrec_endofrecord): Likewise.
1996         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
1997         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
1998         Likewise.
1999         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2000         Likewise.
2001
2002 2010-05-04  Jim Meyering  <meyering@redhat.com>
2003
2004         gendocs.sh: make its "-s FILE" option more useful
2005         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2006         $PACKAGE to reflect the probably-different basename of "FILE".
2007
2008 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2009
2010         bootstrap: don't ignore download_po_files failure
2011         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2012         failure.
2013
2014 2010-05-03  Jim Meyering  <meyering@redhat.com>
2015
2016         maint.mk: allow to pass options to gendocs.sh
2017         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2018         (gendocs_options_): New overridable variable.
2019
2020         gnu-web-doc-update: don't ignore configure or build failure
2021         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2022
2023         announce-gen: backslash-escape '@'s in --help output
2024         * build-aux/announce-gen: Fix syntax errors.
2025
2026         maint.mk, announce-gen: allow project-specific announcement mail headers
2027         * top/maint.mk (translation_project_): Define default.
2028         (announcement_Cc_, announcement_mail_headers_): Likewise.
2029         (announcement): Invoke announce-gen with new --mail-headers option.
2030         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2031
2032         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2033         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2034         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2035         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2036         line in the "err2" output file when running "make check" in verbose
2037         mode (i.e., with set -x enabled).
2038
2039 2010-05-03  Bruno Haible  <bruno@clisp.org>
2040
2041         wctob: Fix for weird platforms.
2042         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2043         argument value.
2044
2045 2010-05-03  Jim Meyering  <meyering@redhat.com>
2046
2047         maint.mk: prohibit unwarranted use of <strings.h>
2048         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2049         strings.h in a file that does not also use strcasecmp, strncasecmp,
2050         ffs or ffsll.
2051
2052         maint.mk: remove obsolete comments
2053         * top/maint.mk: Remove stale, commented-out rules.
2054
2055 2010-05-02  Bruno Haible  <bruno@clisp.org>
2056
2057         wcwidth: Declare also when it's aliased.
2058         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2059         macro.
2060
2061 2010-05-02  Bruno Haible  <bruno@clisp.org>
2062
2063         Fix regression from 2010-04-25.
2064         * gnulib-tool (func_modules_transitive_closure): Check the status of
2065         all modules, not only of the tests that are of the form foo-tests where
2066         foo is a module.
2067
2068 2010-05-02  Bruno Haible  <bruno@clisp.org>
2069
2070         wctob: Work around nasty Cygwin 1.7.2 bug.
2071         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2072         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2073
2074 2010-05-01  Bruno Haible  <bruno@clisp.org>
2075
2076         fpurge: Sharper test.
2077         * tests/test-fpurge.c (main): Add one more ftell check.
2078         * modules/fpurge-tests (Depends-on): Add ftell.
2079         Suggested by Eric Blake.
2080
2081 2010-05-01  Bruno Haible  <bruno@clisp.org>
2082
2083         ftello: Another test.
2084         * tests/test-ftello3.c: New file.
2085         * modules/ftello-tests (Files): Add it.
2086         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2087         MOSTLYCLEANFILES.
2088
2089         ftell: Another test.
2090         * tests/test-ftell3.c: New file.
2091         * modules/ftell-tests (Files): Add it.
2092         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2093         MOSTLYCLEANFILES.
2094
2095 2010-05-01  Bruno Haible  <bruno@clisp.org>
2096
2097         ftell, ftello: Work around Solaris bug.
2098         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2099         * lib/ftello.c: Include stdio-impl.h.
2100         (ftello): On Solaris, when _IOWRT is set, compute the result without
2101         looking at _IOREAD.
2102         * modules/ftello (Files): Add lib/stdio-impl.h.
2103         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2104         * doc/posix-functions/ftello.texi: Likewise.
2105         Reported by Eric Blake.
2106
2107 2010-05-01  Bruno Haible  <bruno@clisp.org>
2108
2109         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2110         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2111         the _IOWRT flag is also set.
2112
2113 2010-05-01  Bruno Haible  <bruno@clisp.org>
2114
2115         Fix doc about a HP-UX stdio bug.
2116         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2117         * doc/posix-functions/ftello.texi: Likewise.
2118
2119 2010-05-01  Bruno Haible  <bruno@clisp.org>
2120
2121         lseek test: Fix failure on Solaris.
2122         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2123         output.
2124
2125 2010-04-30  Jim Meyering  <meyering@redhat.com>
2126
2127         bootstrap: don't ignore failure to generate po*/Makevars
2128         * build-aux/bootstrap (with_gettext): Don't ignore failure
2129         to create po/Makevars or runtime-po/Makevars.
2130
2131 2010-04-29  Eric Blake  <eblake@redhat.com>
2132
2133         headers: relax license to LGPLv2+
2134         * modules/fcntl-h (License): Relax license.
2135         * modules/getopt-posix (License): Likewise.
2136         * modules/locale (License): Likewise.
2137         * modules/math (License): Likewise.
2138         * modules/pty (License): Likewise.
2139         * modules/sched (License): Likewise.
2140         * modules/search (License): Likewise.
2141         * modules/spawn (License): Likewise.
2142         * modules/stdarg (License): Likewise.
2143         * modules/sysexits (License): Likewise.
2144
2145 2010-04-29  Jim Meyering  <meyering@redhat.com>
2146
2147         inttypes: relax license to LGPLv2+
2148         * modules/inttypes (License): Relax license.
2149
2150 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2151
2152         * top/maint.mk (indent): Run twice to produce idempotent results.
2153
2154 2010-04-28  Bruno Haible  <bruno@clisp.org>
2155
2156         getdate: Generate getdate.c in the source directory.
2157         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2158         MOSTLYCLEANFILES.
2159         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2160
2161 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2162
2163         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2164         is not declared as a const *; avoid warnings in that case.
2165
2166 2010-04-28  Eric Blake  <eblake@redhat.com>
2167
2168         canonicalize-lgpl: avoid compiler warning
2169         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2170         declaration' / 'extraneous semicolon' warning with some compilers.
2171         Reported by Andreas Gruenbacher.
2172
2173 2010-04-28  Jim Meyering  <meyering@redhat.com>
2174
2175         init.sh: ensure a more reliable exit status when exiting via trap
2176         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2177         Inspired by patches from Dmitry V. Levin.
2178         Also trap on signal 3 (SIGQUIT).
2179
2180 2010-04-27  Bruno Haible  <bruno@clisp.org>
2181
2182         Update doc about utimes().
2183         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2184         'utimens' module.
2185         Reported by Andreas Gruenbacher <agruen@suse.de>.
2186
2187 2010-04-27  Eric Blake  <eblake@redhat.com>
2188
2189         full-read, full-write: relax license
2190         * modules/full-read (License): Drop to LGPLv2+.
2191         * modules/full-write (License): Likewise.
2192         * modules/safe-read (License): Likewise.
2193         * modules/safe-write (License): Likewise.
2194
2195         pthread: mention library for linking
2196         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2197
2198 2010-04-27  Jim Meyering  <meyering@redhat.com>
2199
2200         maint.mk: fix a bug introduced in last change
2201         * top/maint.mk (gl_assured_headers_): Now that all names are on
2202         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2203         is not anchored to end of word, it should be adequate.
2204
2205         maint.mk: avoid side-effect in latest syntax-check
2206         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2207         to run commands via $(shell...), and hence to incur cost only when
2208         the new rule is actually run.
2209
2210         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2211         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2212         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2213         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2214         (gl_assured_headers_, az_, AZ_): Define.
2215         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2216
2217 2010-04-26  Jim Meyering  <jim@meyering.net>
2218             Bruno Haible  <bruno@clisp.org>
2219
2220         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2221         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2222         Prompted by an exchange with Gilles Espinasse.
2223
2224 2010-04-26  Jim Meyering  <meyering@redhat.com>
2225
2226         git-version-gen: aesthetic tweak
2227         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2228         so that the command remains on a single line.
2229
2230 2010-04-26  Eric Blake  <eblake@redhat.com>
2231
2232         git-version-gen: allow use on EBCDIC hosts
2233         * build-aux/git-version-gen (dirty): Use literal rather than tying
2234         ourselves to ascii.
2235         Reported by Steve Goetze.
2236
2237 2010-04-25  Bruno Haible  <bruno@clisp.org>
2238
2239         netdb: Add support for GNULIB_POSIXCHECK.
2240         * lib/netdb.in.h: Include warn-on-use.h.
2241         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2242         functions are used when GNULIB_POSIXCHECK is defined and the
2243         getaddrinfo module is not in use.
2244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2245         freeaddrinfo, gai_strerror, getnameinfo are declared.
2246         * modules/netdb (Depends-on): Add warn-on-use.
2247         (Makefile.am): Include warn-on-use.h in netdb.h.
2248
2249 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2250
2251         build: avoid "make check" failure without .git/ directory
2252         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2253         there is no .git/ directory.
2254
2255 2010-04-25  Bruno Haible  <bruno@clisp.org>
2256
2257         ptsname: Fix misuse of ttyname_r.
2258         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2259         of errno.
2260
2261 2010-04-25  Bruno Haible  <bruno@clisp.org>
2262
2263         ttyname_r: Make it work on Solaris 10.
2264         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2265         if the system function has the POSIX declaration. Test whether the
2266         function fails if the buffer is less than 128 bytes large.
2267         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2268         system's ttyname_r function. Provide a reasonably large buffer.
2269         * modules/ttyname_r (Depends-on): Add extensions.
2270         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2271
2272 2010-04-25  Bruno Haible  <bruno@clisp.org>
2273
2274         Use the 'extensions' module for some more functions on Solaris.
2275         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2276         module.
2277         * doc/posix-functions/ctime_r.texi: Likewise.
2278         * doc/posix-functions/getgrgid_r.texi: Likewise.
2279         * doc/posix-functions/getgrnam_r.texi: Likewise.
2280         * doc/posix-functions/getpwnam_r.texi: Likewise.
2281         * doc/posix-functions/getpwuid_r.texi: Likewise.
2282         * doc/posix-functions/readdir_r.texi: Likewise.
2283         * doc/posix-functions/sigwait.texi: Likewise.
2284         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2285         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2286
2287 2010-04-25  Bruno Haible  <bruno@clisp.org>
2288
2289         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2290         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2291         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2292         * lib/ttyname_r.c: Include <limits.h>.
2293         (ttyname_r): Define using the system's ttyname_r function, if it exists
2294         and not on Solaris.
2295         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2296         set.
2297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2298         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2299         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2300         Reported by Simon Josefsson.
2301
2302 2010-04-25  Bruno Haible  <bruno@clisp.org>
2303
2304         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2305         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2306         * doc/posix-functions/ctime_r.texi: Likewise.
2307         * doc/posix-functions/getgrgid_r.texi: Likewise.
2308         * doc/posix-functions/getgrnam_r.texi: Likewise.
2309         * doc/posix-functions/getlogin_r.texi: Likewise.
2310         * doc/posix-functions/getpwnam_r.texi: Likewise.
2311         * doc/posix-functions/getpwuid_r.texi: Likewise.
2312         * doc/posix-functions/readdir_r.texi: Likewise.
2313         * doc/posix-functions/sigwait.texi: Likewise.
2314         * doc/posix-functions/ttyname_r.texi: Likewise.
2315         Reported by Simon Josefsson.
2316
2317 2010-04-25  Bruno Haible  <bruno@clisp.org>
2318
2319         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2320         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2321         also to --create-testdir.
2322         (func_acceptable): Don't consider the status of *-tests modules here.
2323         (func_modules_transitive_closure): Consider it here, before including a
2324         test module.
2325         (func_import, func_create_testdir): Set inc_all_direct_tests,
2326         inc_all_indirect_tests.
2327         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2328         --create-testdir and --create-megatestdir.
2329
2330 2010-04-25  Bruno Haible  <bruno@clisp.org>
2331
2332         gnulib-tool: Add --without-*-tests options.
2333         * gnulib-tool (func_usage): Document the --without-*-tests options.
2334         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2335         excl_unportable_tests): New variables.
2336         Fail if they are specified with --import or --update.
2337         (func_acceptable): Respect the excl_*_tests variables.
2338         (func_import): Set the excl_*_tests variables to empty.
2339
2340 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2341             Bruno Haible  <bruno@clisp.org>
2342
2343         Work around a MacOS X 10.4 bug with openpty.
2344         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2345         * tests/test-openpty.c (main): Close the master side explicitly.
2346
2347 2010-04-25  Bruno Haible  <bruno@clisp.org>
2348
2349         strnlen: Fix a C++ test error on MacOS X and Solaris.
2350         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2351         the function is not declared.
2352         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2353         Simon Josefsson.
2354
2355 2010-04-24  Bruno Haible  <bruno@clisp.org>
2356
2357         Avoid a gcc warning.
2358         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2359         of correct type for %08lx directive.
2360         Reported by Eric Blake.
2361
2362 2010-04-24  Bruno Haible  <bruno@clisp.org>
2363
2364         vasnprintf: Correct errno value in case of out-of-memory.
2365         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2366         or sprintf. Use the errno value from SNPRINTF or sprintf.
2367         Reported by Ian Beckwith <ianb@erislabs.net>.
2368
2369 2010-04-24  Bruno Haible  <bruno@clisp.org>
2370
2371         ansi-c++-opt: Find correct compiler when cross-compiling.
2372         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2373         AC_CHECK_PROGS.
2374         Reported by Simon Josefsson.
2375
2376 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2377
2378         vc-list-files: Add support for subversion
2379         * build-aux/vc-list-files: Use "svn list" to generate the list of
2380         files controlled by subversion.
2381
2382 2010-04-23  Jim Meyering  <meyering@redhat.com>
2383
2384         vc-list-files tests: convert to use init.sh
2385         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2386         path_prepend_.
2387         Use Exit, not exit.
2388         Use skip_ rather than open coding it.
2389         Remove trap set-up and compare definitions.
2390         * tests/test-vc-list-files-git.sh: Likewise.
2391         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2392
2393 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2394
2395         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2396         backup files.
2397
2398 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2399
2400         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2401
2402 2010-04-20  Eric Blake  <eblake@redhat.com>
2403
2404         tests: be robust to ignored SIGPIPE
2405         * tests/test-select-in.sh: Consume all output.
2406         * tests/test-lseek.sh: Check correct exit status, while avoiding
2407         EPIPE.
2408
2409 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2410             Bruno Haible  <bruno@clisp.org>
2411
2412         visibility: Don't use -fvisibility if it leads to a warning.
2413         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2414         yes, don't pretend that visibility works if it leads to a warning.
2415         Reported by Mike Gran <spk121@yahoo.com>.
2416
2417 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2418
2419         * build-aux/bootstrap: Use "git -h" for testing for supported options
2420         instead of "git --help".  The short-form option only shows a summary,
2421         and doesn't layout the full man page.  Grep for the full option name
2422         in the summary, too.
2423
2424 2010-04-19  Bruno Haible  <bruno@clisp.org>
2425
2426         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2427         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2428         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2429         mention of RELOCATABLE_STRIP.
2430         Reported by Sylvain Beucler <beuc@beuc.net>.
2431
2432 2010-04-19  Bruno Haible  <bruno@clisp.org>
2433
2434         * lib/diffseq.h: Fix typo in comment.
2435         Reported by Eric Blake.
2436
2437 2010-04-19  Bruno Haible  <bruno@clisp.org>
2438
2439         ioctl: Move autoconf macro to a .m4 file.
2440         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2441         * modules/ioctl (Files): Add it.
2442         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2443         Reported by Ian Beckwith <ianb@erislabs.net>.
2444
2445 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2446             Bruno Haible  <bruno@clisp.org>
2447
2448         diffseq: Accommodate use-case with abstract arrays.
2449         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2450         is not defined.
2451         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2452         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2453
2454 2010-04-18  Bruno Haible  <bruno@clisp.org>
2455
2456         * doc/posix-headers/stdbool.texi: More precise wording.
2457
2458 2010-04-17  Jim Meyering  <meyering@redhat.com>
2459
2460         maint.mk: use gnu-style indentation in an embedded perl script
2461         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2462         Rename variable: s/two/last_two_bytes/
2463
2464 2010-04-16  Eric Blake  <eblake@redhat.com>
2465
2466         test-stdbool: skip test that fails with Solaris CC
2467         * tests/test-stdbool.c (f): Skip test that causes compilation
2468         error under buggy C++ compiler.
2469         * lib/stdbool.in.h: Document the limitation.
2470         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2471
2472         setenv: allow compilation with C++
2473         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2474         register keyword.
2475
2476         stdint: allow test to pass with C++
2477         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2478
2479         getopt: allow compilation with C++
2480         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2481         struct.
2482         * lib/getopt.c (_getopt_internal_r): Use correct type.
2483         Reported by Dagobert Michelson, via Joel E. Denny.
2484
2485 2010-04-16  Bruno Haible  <bruno@clisp.org>
2486
2487         Override netdb.h always.
2488         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2489         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2490         Reported by Ludovic Courtès <ludo@gnu.org>.
2491
2492 2010-04-15  Bruno Haible  <bruno@clisp.org>
2493
2494         openpty: Fix mistake from 2010-03-21.
2495         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2496         Reported by Simon Josefsson.
2497
2498 2010-04-15  Eric Blake  <eblake@redhat.com>
2499
2500         test-forkpty: fix expected signature
2501         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2502         Reported by Simon Josefsson.
2503
2504 2010-04-15  Jim Meyering  <meyering@redhat.com>
2505
2506         maint.mk: texinfo_suffix_re_: correct the default regexp
2507         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2508
2509         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2510         make it configurable via texinfo_suffix_re_.
2511
2512 2010-04-14  Eric Blake  <eblake@redhat.com>
2513
2514         strtok_r: relax license to LGPLv2+
2515         * modules/strtok_r (License): Relax license.
2516         Reported by Matthias Bolte.
2517
2518 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2519
2520         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2521         version 1.4.4 by default instead of requiring the libgcrypt
2522         version used during build.  This makes it possible to use the
2523         application with older but still binary compatible libgcrypt
2524         versions.
2525
2526 2010-04-13  Eric Blake  <eblake@redhat.com>
2527
2528         getopt-gnu: match recent glibc fixes and posix ruling
2529         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
2530         '+' handling, when requesting extensions.
2531         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
2532         'W;' handling.
2533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
2534         * doc/posix-functions/getopt.texi (getopt): Document this.
2535         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2536         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2537         Likewise.
2538
2539         getopt: merge bug fixes from glibc
2540         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
2541         diagnostics.  Honor '+:' correctly.  Reject ';'.
2542
2543         getopt-posix: detect MacOS bug
2544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
2545         optind when missing a required argument.
2546         * doc/posix-functions/getopt.texi (getopt): Document the bug.
2547         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2548         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2549         Likewise.
2550
2551         getopt-posix: avoid spurious failure on Solaris
2552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
2553         an indicator that setting optind=1 is sufficient for reset.
2554
2555         getopt-posix: avoid spurious failure on FreeBSD
2556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
2557         in POSIX mode, since the m4 test uses it.
2558
2559         gnulib-tool: silence warning on BSD sh
2560         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
2561
2562 2010-04-13  Jim Meyering  <meyering@redhat.com>
2563
2564         doc: users.txt: GNU patch now uses gnulib
2565         * users.txt: Add patch.
2566
2567 2010-04-12  Jim Meyering  <meyering@redhat.com>
2568
2569         maint.mk: generate more concise timing data for syntax-check rules
2570         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
2571         " done" from each line that reports a syntax-check test duration.
2572
2573 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
2574
2575         git-version-gen: use "git update-index..." rather than "git status"
2576         * build-aux/git-version-gen: Use git update-index --refresh, not
2577         "git status".  With some versions of git, "git status" would fail
2578         to update the index and result in an unwarranted "-dirty" suffix.
2579
2580 2010-04-11  Jim Meyering  <meyering@redhat.com>
2581
2582         openat: correct formatting (no semantic change)
2583         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
2584         Suggested by Bruno Haible.
2585
2586 2010-04-11  Bruno Haible  <bruno@clisp.org>
2587
2588         Stricter declaration checking in testdirs.
2589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2590         If for_tests is true, augment AM_CPPFLAGS to define
2591         GNULIB_STRICT_CHECKING.
2592         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
2593         GNULIB_STRICT_CHECKING is defined, verify that the function is
2594         declared.
2595
2596 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
2597             Bruno Haible  <bruno@clisp.org>
2598
2599         libunistring: Improve configure output.
2600         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
2601         Don't say "consider installing GNU libunistring" when checking again
2602         with libiconv.
2603
2604 2010-04-11  Bruno Haible  <bruno@clisp.org>
2605
2606         libunistring: Correct value of $LTLIBUNISTRING.
2607         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
2608         correct the value of $LTLIBUNISTRING.
2609
2610 2010-04-11  Bruno Haible  <bruno@clisp.org>
2611
2612         havelib: Add static libraries to LIBS in the right order.
2613         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
2614         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
2615
2616 2010-04-11  Bruno Haible  <bruno@clisp.org>
2617
2618         libunistring: Detect libunistring also when it depends on libiconv.
2619         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
2620         the second AC_LIB_HAVE_LINKFLAGS invocation.
2621
2622 2010-04-11  James Youngman  <jay@gnu.org>
2623
2624         close-stream: declare local scalars to be "const"
2625         * lib/close-stream.c (close_stream): Make boolean variables const
2626         to document the fact that we set but do not change them.
2627
2628 2010-04-11  Bruno Haible  <bruno@clisp.org>
2629
2630         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
2631
2632 2010-04-11  Jim Meyering  <meyering@redhat.com>
2633
2634         maint.mk: don't include dist-check.mk
2635         * top/maint.mk: Remove bogus include directive.
2636
2637         maint.mk: improve empty-line-at-EOF check
2638         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
2639         solution, rather than tail+Perl-based one.  The latter would read
2640         a few kilobytes from the end of each file, and did not handle empty
2641         files properly.
2642
2643         maint.mk: print the elapsed time for each syntax-check rule
2644         * top/maint.mk (sc_m_rules_): Save start time in a file.
2645         (sc_z_rules_): New rules: remove temp file and print elapsed time.
2646         (local-check): Interpose the .z rules
2647
2648 2010-04-11  Jim Meyering  <meyering@redhat.com>
2649
2650         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
2651         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
2652         empty file with one that ends in an empty line.
2653
2654 2010-04-10  Bruno Haible  <bruno@clisp.org>
2655
2656         mkdir: Make it work on mingw64.
2657         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
2658         * lib/mkdir.c: Update comment.
2659         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
2660
2661 2010-04-10  Bruno Haible  <bruno@clisp.org>
2662
2663         Don't override improved macro from newer autoconf.
2664         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
2665         autoconf >= 2.62.
2666         Reported by Joel E. Denny <jdenny@clemson.edu>.
2667
2668 2010-04-10  Jim Meyering  <meyering@redhat.com>
2669
2670         maint.mk: new syntax-check rule: prohibit empty lines at end of file
2671         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
2672
2673         maint.mk: correct a diagnostic
2674         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
2675         in diagnostic; now use $prohibit.
2676
2677 2010-04-10  Bruno Haible  <address@hidden>
2678
2679         fchownat: Fix a C++ test error on Solaris 8.
2680         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
2681         the function does not exist.
2682
2683 2010-04-10  Bruno Haible  <bruno@clisp.org>
2684
2685         vasnprintf: Add more tests.
2686         * tests/test-vasnprintf-posix.c: Include <errno.h>.
2687         (test_function): Test converting an invalid wide string.
2688
2689         vasnprintf: Correct handling of unconvertible wide string arguments.
2690         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
2691         VASNPRINTF.
2692         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
2693         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
2694         smaller than the expected maximum need for the directive. Set errno to
2695         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
2696         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
2697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
2698         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
2699         * modules/vasnprintf (Files): Add m4/printf.m4.
2700         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2701
2702 2010-04-10  Bruno Haible  <bruno@clisp.org>
2703
2704         vasnprintf: Fix crash in %ls directive.
2705         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
2706         string is passed as argument to %ls, with no precision and no width.
2707         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2708
2709 2010-04-10  Bruno Haible  <bruno@clisp.org>
2710
2711         vasnprintf: Fix multiple test failures on mingw.
2712         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
2713         _snprintf, or snwprintf, not _snwprintf.
2714
2715 2010-04-10  Bruno Haible  <bruno@clisp.org>
2716
2717         write: Fix a C++ test error on mingw.
2718         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
2719
2720 2010-04-10  Bruno Haible  <bruno@clisp.org>
2721
2722         vasnprintf test: Reduce code duplication.
2723         * tests/test-vasnprintf.c (test_function): New function, extracted from
2724         test_vasnprintf.
2725         (test_vasnprintf, test_asnprintf): Invoke it.
2726
2727 2010-04-10  Bruno Haible  <bruno@clisp.org>
2728
2729         strnlen: Fix warning in C++ mode on MacOS X.
2730         * lib/string.in.h (strnlen): Use the modern idiom.
2731         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
2732         defining strnlen as a macro already in <config.h>.
2733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2734         REPLACE_STRNLEN.
2735         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
2736         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2737
2738 2010-04-08  James Youngman  <jay@gnu.org>
2739
2740         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
2741         the example.
2742
2743 2010-04-09  Jim Meyering  <meyering@redhat.com>
2744
2745         maint.mk: print better diagnostic when there is no $(_hv_file)
2746         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
2747         announce that when $(_hv_file) (aka help-version) does not exist.
2748
2749         init.sh: run tr in the "C" locale to avoid multibyte interpretation
2750         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
2751         not try to interpret its random input bytes.  Jarno Rajahalme reported
2752         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
2753         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
2754         (mktempd_): Likewise, just in case.
2755
2756         ftruncate: add two years to projected module removal date: 2012
2757         * m4/ftruncate.m4: Adjust comments.
2758
2759         ftruncate: mark module as obsolete; even MinGW provides it, now
2760         * modules/ftruncate (Status): Obsolete.
2761         (Notice): Say that.
2762         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
2763         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
2764
2765 2010-04-08  Bruno Haible  <bruno@clisp.org>
2766
2767         Fix side effects from tests-related modules.
2768         * modules/dprintf-posix (Comment): New section.
2769         * modules/fprintf-posix (Comment): Likewise.
2770         * modules/obstack-printf-posix (Comment): Likewise.
2771         * modules/printf-posix (Comment): Likewise.
2772         * modules/snprintf-posix (Comment): Likewise.
2773         * modules/sprintf-posix (Comment): Likewise.
2774         * modules/vasnprintf-posix (Comment): Likewise.
2775         * modules/vasprintf-posix (Comment): Likewise.
2776         * modules/vdprintf-posix (Comment): Likewise.
2777         * modules/vfprintf-posix (Comment): Likewise.
2778         * modules/vprintf-posix (Comment): Likewise.
2779         * modules/vsnprintf-posix (Comment): Likewise.
2780         * modules/vsprintf-posix (Comment): Likewise.
2781         * modules/xprintf-posix (Comment): Likewise.
2782         * modules/xvasprintf-posix (Comment): Likewise.
2783         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
2784         * modules/floorf-tests (Depends-on): Likewise.
2785         * modules/round-tests (Depends-on): Likewise.
2786         * modules/roundf-tests (Depends-on): Likewise.
2787         * modules/trunc-tests (Depends-on): Likewise.
2788         * modules/truncf-tests (Depends-on): Likewise.
2789         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
2790         'fprintf-posix' module is not present.
2791         * tests/test-floorf2.c (check): Likewise.
2792         * tests/test-trunc2.c (check): Likewise.
2793         * tests/test-truncf2.c (check): Likewise.
2794         * tests/test-round2.c (equal): Likewise.
2795         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2796
2797 2010-04-07  Karl Berry  <karl@gnu.org>
2798
2799         * config/srclist.txt,
2800         * config/srclistvars.sh,
2801         * config/srclist-update: doc fixes.
2802
2803 2010-04-07  Jim Meyering  <meyering@redhat.com>
2804
2805         maint.mk: add a PATH crosschecking syntax-check rule
2806         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
2807         Useful if you use a test like the one in help-version (coreutils,
2808         diffutils, grep, gzip) that ensures $(VERSION) matches what is
2809         printed by prog --version.
2810
2811 2010-04-06  Bruno Haible  <bruno@clisp.org>
2812
2813         Fix link error on mingw.
2814         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
2815         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
2816
2817 2010-04-06  Bruno Haible  <bruno@clisp.org>
2818
2819         Assume rmdir exists.
2820         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
2821
2822 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
2823
2824         doc: update users.txt
2825         * users.txt: Add gcal.
2826
2827 2010-04-06  Jim Meyering  <meyering@redhat.com>
2828
2829         init.sh: simply unset TMPDIR rather than risking env -i
2830         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
2831         although it probably works fine on all Unix-based systems, some
2832         systems (Cygwin?) cannot tolerate a totally cleared environment.
2833         Suggestion from Eric Blake.
2834
2835 2010-04-06  Jim Meyering  <meyering@redhat.com>
2836
2837         init.sh: portability fix: use env's POSIX-specified -i option not -u
2838         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
2839         than unportable env -u.  Solaris 5.11's env lacks support for -u.
2840
2841 2010-04-05  Bruno Haible  <bruno@clisp.org>
2842
2843         btowc: Work around Cygwin 1.7.2 bug.
2844         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
2845         does not map NUL to 0.
2846         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
2847
2848 2010-04-05  Bruno Haible  <bruno@clisp.org>
2849
2850         Make the multithread modules work on Cygwin 1.7.2.
2851         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
2852         imported symbols can be declared weak, so that it returns "no" on
2853         Cygwin 1.7.2.
2854
2855 2010-04-05  Bruno Haible  <bruno@clisp.org>
2856
2857         Use the module 'strncat'.
2858         * modules/unistr/u8-strncat (Depends-on): Add strncat.
2859
2860         Tests for module 'strncat'.
2861         * modules/strncat-tests: New file.
2862         * tests/test-strncat.c: New file.
2863
2864         New module 'strncat'.
2865         * lib/string.in.h (strncat): New declaration.
2866         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
2867         * m4/strncat.m4: New file, based on m4/memchr.m4.
2868         * modules/strncat: New file.
2869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
2870         is declared.
2871         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
2872         REPLACE_STRNCAT.
2873         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
2874         REPLACE_STRNCAT.
2875         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
2876         module.
2877         * tests/test-string-c++.cc: Check signature of strncat.
2878
2879 2010-04-05  Jim Meyering  <meyering@redhat.com>
2880
2881         xstrtoumax-tests: convert to use init.sh
2882         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
2883         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2884         Use Exit, not exit.
2885         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2886
2887         xstrtoimax-tests: convert to use init.sh
2888         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
2889         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2890         Use Exit, not exit.
2891         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2892
2893 2010-04-05  Bruno Haible  <bruno@clisp.org>
2894
2895         sys_socket: Avoid #define replacements in C++ mode.
2896         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
2897         warning to the function if possible, rather than #defining the symbol
2898         to a dysfunctional alias.
2899
2900 2010-04-05  Bruno Haible  <bruno@clisp.org>
2901
2902         fseeko: Fix C++ test error on mingw.
2903         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
2904         gl_FUNC_FSEEKO.
2905         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
2906         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
2907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
2908         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
2909
2910 2010-04-05  Bruno Haible  <bruno@clisp.org>
2911
2912         duplocale: Improve test output.
2913         * tests/test-duplocale.c (main): Print reason for skipped test.
2914
2915 2010-04-05  Bruno Haible  <bruno@clisp.org>
2916
2917         Assume rmdir exists.
2918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
2919         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
2920
2921 2010-04-05  Bruno Haible  <bruno@clisp.org>
2922
2923         Fix link error on Solaris 8 with cc.
2924         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
2925
2926 2010-04-05  Bruno Haible  <bruno@clisp.org>
2927
2928         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
2929         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
2930
2931 2010-04-05  Bruno Haible  <bruno@clisp.org>
2932
2933         vasprintf: Update documentation.
2934         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
2935
2936 2010-04-05  Bruno Haible  <bruno@clisp.org>
2937
2938         ptsname: Improve test.
2939         * tests/test-ptsname.c (main): Also try the various master names of BSD
2940         systems.
2941
2942 2010-04-05  Bruno Haible  <bruno@clisp.org>
2943
2944         memchr: Avoid a possible C++ test error.
2945         * lib/string.in.h (memchr): Provide declaration if function is missing.
2946         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
2947         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
2948         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
2949         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
2950
2951 2010-04-05  Bruno Haible  <bruno@clisp.org>
2952
2953         strtok_r: Improve idiom.
2954         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
2955         AC_LIBOBJ is used.
2956
2957 2010-04-05  Bruno Haible  <bruno@clisp.org>
2958
2959         strdup: Improve idiom.
2960         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
2961         AC_LIBOBJ is used.
2962         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
2963         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
2964         when AC_LIBOBJ is used.
2965
2966 2010-04-05  Bruno Haible  <bruno@clisp.org>
2967
2968         mbsinit, mbrtowc, wcrtomb: Improve idioms.
2969         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
2970         don't set REPLACE_MBSINIT to 1.
2971         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
2972         don't set REPLACE_MBRTOWC to 1.
2973         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
2974         exist, don't set REPLACE_MBSRTOWCS to 1.
2975         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
2976         exist, don't set REPLACE_MBSNRTOWCS to 1.
2977         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
2978         don't set REPLACE_WCRTOMB to 1.
2979         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
2980         exist, don't set REPLACE_WCSRTOMBS to 1.
2981         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
2982         exist, don't set REPLACE_WCSNRTOMBS to 1.
2983
2984 2010-04-05  Bruno Haible  <bruno@clisp.org>
2985
2986         ldexpl: Improve idiom.
2987         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
2988         make sure to set HAVE_DECL_LDEXPL to 0.
2989
2990 2010-04-05  Jim Meyering  <meyering@redhat.com>
2991
2992         xstrtol-tests: convert to use init.sh
2993         * modules/xstrtol-tests (Files): Add tests/init.sh.
2994         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
2995         Use Exit, not exit.
2996         Remove uses of $EXEEXT and "./" to run a program in the current dir.
2997
2998         atexit-tests: convert to use init.sh
2999         * modules/atexit-tests (Files): Add tests/init.sh.
3000         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3001         Use Exit, not exit.
3002         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3003
3004         init.sh: fix typo
3005         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3006
3007         init.sh: make it easier for a test script to write to the tty, ...
3008         when using automake's parallel-tests mode.
3009         * tests/init.sh (stderr_fileno_): Define overridable variable.
3010         (warn_): New function, to use it.
3011         (fail_, skip_, framework_failure_): Use warn_.
3012
3013 2010-04-04  Bruno Haible  <bruno@clisp.org>
3014
3015         btowc: Avoid warning.
3016         * lib/btowc.c: Include <stdlib.h>.
3017         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3018
3019 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3020             Bruno Haible  <bruno@clisp.org>
3021
3022         wchar: Port to NetBSD 1.5.
3023         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3024         * lib/wctype.in.h (WEOF): Likewise.
3025
3026 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3027             Bruno Haible  <bruno@clisp.org>
3028
3029         Port extended stdio to NetBSD 1.5.
3030         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3031         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3032         older.
3033
3034 2010-04-04  Bruno Haible  <bruno@clisp.org>
3035
3036         string: Remove unused substitution.
3037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3038         HAVE_DECL_STRERROR.
3039         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3040
3041 2010-04-04  Bruno Haible  <bruno@clisp.org>
3042
3043         strtod: Avoid a possible C++ test error.
3044         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3045         set REPLACE_STRTOD.
3046
3047 2010-04-04  Bruno Haible  <bruno@clisp.org>
3048
3049         strerror: Update documentation.
3050         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3051
3052 2010-04-04  Bruno Haible  <bruno@clisp.org>
3053
3054         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3055         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3056         _GL_CXXALIAS_SYS_CAST.
3057
3058 2010-04-04  Bruno Haible  <bruno@clisp.org>
3059
3060         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3061         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3062         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3063         REPLACE_FREXPL to 1.
3064         * doc/posix-functions/frexpl.texi: Update documentation.
3065
3066 2010-04-04  Bruno Haible  <bruno@clisp.org>
3067
3068         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3069         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3070
3071 2010-04-04  Bruno Haible  <bruno@clisp.org>
3072
3073         Implement nanosleep for native Windows.
3074         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3075
3076 2010-04-04  Bruno Haible  <bruno@clisp.org>
3077
3078         math: Fix some C++ test errors on Solaris 8.
3079         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3080
3081 2010-04-04  Bruno Haible  <bruno@clisp.org>
3082
3083         math: Fix some C++ test errors on Cygwin.
3084         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3085         truncl): Provide declaration if the system does not have it.
3086         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3087         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3088         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3089         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3090         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3091         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3092         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3093         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3094         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3095         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3096         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3097         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3098         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3099         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3100         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3101         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3103         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3104         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3105         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3106         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3107         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3108
3109 2010-04-04  Bruno Haible  <bruno@clisp.org>
3110
3111         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3112         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3113         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3114         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3115         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3116         * m4/isinf.m4 (gl_ISINF): Likewise.
3117         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3118
3119 2010-04-04  Bruno Haible  <bruno@clisp.org>
3120
3121         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3122         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3123
3124 2010-04-04  Bruno Haible  <bruno@clisp.org>
3125
3126         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3127         * modules/tmpfile (configure.ac): Update.
3128
3129         tmpfile: Fix C++ test error on mingw.
3130         * lib/stdio.in.h (tmpfile): New declaration.
3131         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3132         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3133         * modules/tmpfile (Depends-on): Add stdio.
3134         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3135         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3136         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3137         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3138         REPLACE_TMPFILE.
3139         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3140
3141 2010-04-04  Bruno Haible  <bruno@clisp.org>
3142
3143         ioctl: Fix C++ test error on mingw.
3144         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3145         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3146         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3147
3148 2010-04-03  Bruno Haible  <bruno@clisp.org>
3149
3150         wcwidth: Fix C++ test error on mingw.
3151         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3153         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3154
3155 2010-04-03  Bruno Haible  <bruno@clisp.org>
3156
3157         nanosleep: Fix C++ test error on mingw.
3158         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3159         * lib/time.in.h (nanosleep): Use modern idiom.
3160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3161         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3162         REPLACE_NANOSLEEP to 1.
3163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3164         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3165
3166 2010-04-03  Bruno Haible  <bruno@clisp.org>
3167
3168         strptime: Fix C++ test error on mingw.
3169         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3170         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3171         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3172         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3173         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3174         not REPLACE_STRPTIME.
3175         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3176         REPLACE_STRPTIME.
3177
3178 2010-04-03  Bruno Haible  <bruno@clisp.org>
3179
3180         timegm: Fix C++ test error on mingw.
3181         * lib/time.in.h (timegm): Use modern idiom.
3182         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3183         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3184         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3185         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3186
3187 2010-04-03  Bruno Haible  <bruno@clisp.org>
3188
3189         timegm: Assume declaration if function exists.
3190         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3191         if it exists. Don't clobber ac_cv_func_timegm.
3192
3193 2010-04-03  Bruno Haible  <bruno@clisp.org>
3194
3195         time_r: Fix C++ test error on mingw.
3196         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3197         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3198         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3199         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3200         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3201
3202 2010-04-03  Bruno Haible  <bruno@clisp.org>
3203
3204         time_r: Minor updates.
3205         * modules/time_r (Description): Mention the provided functions.
3206         * lib/time_r.c: Don't include <string.h>.
3207         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3208         * doc/posix-functions/localtime_r.texi: Likewise.
3209
3210 2010-04-03  Bruno Haible  <bruno@clisp.org>
3211
3212         time: Fix regression introduced on 2010-03-08.
3213         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3214         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3215
3216 2010-04-03  Jim Meyering  <meyering@redhat.com>
3217
3218         maint.mk: don't silently disable project-specific syntax-check rules
3219         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3220         that they need to convert their project-specific syntax-check rules
3221         to use the new _sc_search_regexp.
3222
3223 2010-04-03  Bruno Haible  <bruno@clisp.org>
3224
3225         fchdir: Fix regression introduced on 2010-03-08.
3226         * lib/unistd.in.h (fchdir): Fix declaration.
3227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3229         REPLACE_FCHDIR.
3230         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3231         REPLACE_FCHDIR.
3232
3233 2010-04-03  Bruno Haible  <bruno@clisp.org>
3234
3235         getpagesize: Fix C++ test error on mingw.
3236         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3237         system does not declare the function.
3238         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3239         declared.
3240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3241         HAVE_DECL_GETPAGESIZE.
3242         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3243
3244 2010-04-03  Bruno Haible  <bruno@clisp.org>
3245
3246         stdio: Make C++ tests work on mingw.
3247         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3248         does not declare the function.
3249
3250 2010-04-03  Bruno Haible  <bruno@clisp.org>
3251
3252         ftello: Fix C++ test error on mingw.
3253         * lib/stdio.in.h (ftello): Use modern idiom.
3254         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3255         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3256         is missing and that it needs to be replaced.
3257         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3259         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3260
3261 2010-04-03  Bruno Haible  <bruno@clisp.org>
3262
3263         fseeko: Fix C++ test error on mingw.
3264         * lib/stdio.in.h (fseeko): Use modern idiom.
3265         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3266         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3267         is missing and that it needs to be replaced.
3268         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3270         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3271
3272 2010-04-03  Bruno Haible  <bruno@clisp.org>
3273
3274         mkstemp: Fix C++ test error on mingw.
3275         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3277         function is missing and that it needs to be replaced.
3278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3279         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3280
3281 2010-04-03  Bruno Haible  <bruno@clisp.org>
3282
3283         stpncpy: Fix C++ test error on mingw.
3284         * lib/string.in.h (stpncpy): Use modern idiom.
3285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3286         function is missing and that it needs to be replaced.
3287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3288         REPLACE_STPNCPY.
3289         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3290
3291 2010-04-03  Bruno Haible  <bruno@clisp.org>
3292
3293         sys_stat: Fix C++ test error on mingw.
3294         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3295         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3296
3297 2010-04-03  Bruno Haible  <bruno@clisp.org>
3298
3299         pty: Update doc.
3300         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3301
3302 2010-04-03  Bruno Haible  <bruno@clisp.org>
3303
3304         unistd: Fix C++ test error on mingw.
3305         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3306
3307 2010-04-03  Bruno Haible  <bruno@clisp.org>
3308
3309         Update doc regarding mingw.
3310         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3311         * doc/glibc-functions/login_tty.texi: Likewise.
3312         * doc/glibc-functions/forkpty.texi: Likewise.
3313
3314 2010-04-03  Bruno Haible  <bruno@clisp.org>
3315
3316         stdlib: Avoid compilation failure of c-strtold on mingw.
3317         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3318
3319 2010-04-03  Bruno Haible  <bruno@clisp.org>
3320
3321         locale: Make C++ tests work on Cygwin and mingw.
3322         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3323         cannot provide the function.
3324         Reported by Simon Josefsson.
3325
3326 2010-04-03  Bruno Haible  <bruno@clisp.org>
3327
3328         localename: Port to MacOS X 10.6.
3329         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3330         memory layout of the locales in MacOS X 10.6 as well.
3331         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3332
3333 2010-04-02  Bruno Haible  <bruno@clisp.org>
3334
3335         gnulib-tool: Ensure that long-running tests are executed last.
3336         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3337         running tests after the one for the other tests.
3338
3339 2010-04-02  Bruno Haible  <bruno@clisp.org>
3340
3341         gnulib-tool: Ensure the tests in the main directory are executed first.
3342         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3343         start with the current directory.
3344
3345 2010-04-02  Bruno Haible  <bruno@clisp.org>
3346
3347         Tests for module 'havelib', moved here from GNU gettext.
3348         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3349         modifications.
3350         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3351         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3352         with modifications.
3353         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3354         modifications.
3355         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3356         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3357         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3358         with modifications.
3359         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3360         with modifications.
3361         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3362         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3363         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3364         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3365         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3366         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3367         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3368         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3369         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3370         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3371         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3372         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3373         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3374         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3375         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3376         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3377         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3378         with modifications.
3379         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3380         with modifications.
3381         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3382         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3383         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3384         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3385         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3386         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3387         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3388         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3389         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3390         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3391         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3392         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3393         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3394         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3395         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3396         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3397         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3398         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3399         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3400         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3401         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3402         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3403         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3404         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3405         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3406         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3407         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3408         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3409         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3410         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3411         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3412         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3413         * tests/havelib/rpathx/rpathx.c: New file, from
3414         gettext/autoconf-lib-link.
3415         * tests/havelib/rpathx/Makefile.am: New file, from
3416         gettext/autoconf-lib-link.
3417         * tests/havelib/rpathx/configure.ac: New file, from
3418         gettext/autoconf-lib-link with modifications.
3419         * tests/havelib/rpathy/rpathy.c: New file, from
3420         gettext/autoconf-lib-link.
3421         * tests/havelib/rpathy/Makefile.am: New file, from
3422         gettext/autoconf-lib-link.
3423         * tests/havelib/rpathy/configure.ac: New file, from
3424         gettext/autoconf-lib-link with modifications.
3425         * tests/havelib/rpathz/rpathz.c: New file, from
3426         gettext/autoconf-lib-link.
3427         * tests/havelib/rpathz/Makefile.am: New file, from
3428         gettext/autoconf-lib-link.
3429         * tests/havelib/rpathz/configure.ac: New file, from
3430         gettext/autoconf-lib-link with modifications.
3431         * tests/havelib/rpathlx/usex.c: New file, from
3432         gettext/autoconf-lib-link.
3433         * tests/havelib/rpathlx/Makefile.am: New file, from
3434         gettext/autoconf-lib-link.
3435         * tests/havelib/rpathlx/configure.ac: New file, from
3436         gettext/autoconf-lib-link with modifications.
3437         * tests/havelib/rpathly/usey.c: New file, from
3438         gettext/autoconf-lib-link.
3439         * tests/havelib/rpathly/Makefile.am: New file, from
3440         gettext/autoconf-lib-link.
3441         * tests/havelib/rpathly/configure.ac: New file, from
3442         gettext/autoconf-lib-link with modifications.
3443         * tests/havelib/rpathlz/usez.c: New file, from
3444         gettext/autoconf-lib-link.
3445         * tests/havelib/rpathlz/Makefile.am: New file, from
3446         gettext/autoconf-lib-link.
3447         * tests/havelib/rpathlz/configure.ac: New file, from
3448         gettext/autoconf-lib-link with modifications.
3449         * tests/havelib/rpathlyx/usey.c: New file, from
3450         gettext/autoconf-lib-link.
3451         * tests/havelib/rpathlyx/Makefile.am: New file, from
3452         gettext/autoconf-lib-link.
3453         * tests/havelib/rpathlyx/configure.ac: New file, from
3454         gettext/autoconf-lib-link with modifications.
3455         * tests/havelib/rpathlzyx/usez.c: New file, from
3456         gettext/autoconf-lib-link.
3457         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3458         gettext/autoconf-lib-link.
3459         * tests/havelib/rpathlzyx/configure.ac: New file, from
3460         gettext/autoconf-lib-link with modifications.
3461         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3462         with modifications.
3463
3464 2010-04-02  Bruno Haible  <bruno@clisp.org>
3465
3466         gnulib-tool: Create distributed built sources also for the tests.
3467         * gnulib-tool (func_create_testdir): Also generate distributed built
3468         sources in the tests directory.
3469
3470 2010-04-02  Bruno Haible  <bruno@clisp.org>
3471
3472         gnulib-tool: Obey user's environment variables.
3473         * gnulib-tool (func_create_testdir): When creating built sources,
3474         respect the environment variables for autoconf, automake, etc. given by
3475         the user.
3476
3477 2010-04-02  Bruno Haible  <bruno@clisp.org>
3478
3479         gnulib-tool: Provide the value of --m4-base to modules.
3480         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3481         of gl_m4_base.
3482
3483 2010-04-02  Eric Blake  <eblake@redhat.com>
3484
3485         maint.mk: fix some fallout
3486         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3487         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3488
3489 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3490
3491         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3492         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3493         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3494         (sc_cast_of_x_alloc_return_value): Likewise.
3495         (sc_cast_of_alloca_return_value): Likewise.
3496         (sc_space_tab): Likewise.
3497         (sc_prohibit_atoi_atof): Likewise.
3498         (sc_prohibit_magic_number_exit): Likewise.
3499         (sc_error_exit_success): Likewise.
3500         (sc_file_system): Likewise.
3501         (sc_prohibit_have_config_h): Likewise.
3502         (sc_require_config_h): Likewise.
3503         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3504         (sc_obsolete_symbols): Likewise.
3505         (sc_changelog): Likewise.
3506         (sc_program_name): Likewise.
3507         (sc_the_the): Likewise.
3508         (sc_trailing_blank): Likewise.
3509         (sc_two_space_separator_in_usage): Likewise.
3510         (sc_useless_cpp_parens): Likewise.
3511         (sc_GPL_version): Likewise.
3512         (sc_GFDL_version): Likewise.
3513         (sc_texinfo_acronym): Likewise.
3514         (sc_prohibit_cvs_keyword): Likewise.
3515         (sc_prohibit_stat_st_blocks): Likewise.
3516         (sc_prohibit_S_IS_definition): Likewise.
3517         (sc_redundant_const): Likewise.
3518         (sc_makefile_TAB_only_indentation): Likewise.
3519         (sc_m4_quote_check): Likewise.
3520         (sc_makefile_path_separator_check): Likewise.
3521         (sc_copyright_check): Likewise.
3522         (sc_Wundef_boolean): Likewise.
3523         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3524
3525         maint.mk: match 0 or more whitespace-before-function-call '('
3526         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
3527         that have zero or two-and-more spaces between the function name
3528         and the open parenthesis.
3529         (sc_error_message_warn_fatal): Likewise.
3530         (sc_error_message_uppercase): Likewise.
3531         (sc_error_message_period): Likewise.
3532
3533 2010-03-31  Eric Blake  <eblake@redhat.com>
3534
3535         maint.mk: check for [ as well as test
3536         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
3537         Based on a libvirt report by Matthias Bolte.
3538
3539         gnumakefile: don't squelch _version output
3540         * top/GNUmakefile (_version): Create one-shot dependency rather
3541         than using $(shell) when version must be regenerated.
3542         (_autoreconf): Run verbosely, by default.
3543
3544         sys_time: avoid compiler warnings
3545         * lib/sys_time.in.h (includes): Ensure gcc pragma is
3546         unconditional, fixing regression from 2010-03-29.
3547         Reported by Simon Josefsson.
3548
3549 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3550
3551         maint.mk: s/_header_without_use/_sc_header_without_use/
3552         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
3553         (sc_prohibit_assert_without_use): Use the new name.
3554         (sc_prohibit_close_stream_without_use): Likewise.
3555         (sc_prohibit_getopt_without_use): Likewise.
3556         (sc_prohibit_quotearg_without_use): Likewise.
3557         (sc_prohibit_quote_without_use): Likewise.
3558         (sc_prohibit_long_options_without_use): Likewise.
3559         (sc_prohibit_inttostr_without_use): Likewise.
3560         (sc_prohibit_ignore_value_without_use): Likewise.
3561         (sc_prohibit_error_without_use): Likewise.
3562         (sc_prohibit_xalloc_without_use): Likewise.
3563         (sc_prohibit_hash_without_use): Likewise.
3564         (sc_prohibit_hash_pjw_without_use): Likewise.
3565         (sc_prohibit_safe_read_without_use): Likewise.
3566         (sc_prohibit_argmatch_without_use): Likewise.
3567         (sc_prohibit_canonicalize_without_use): Likewise.
3568         (sc_prohibit_root_dev_ino_without_use): Likewise.
3569         (sc_prohibit_openat_without_use): Likewise.
3570         (sc_prohibit_c_ctype_without_use): Likewise.
3571         (sc_prohibit_signal_without_use): Likewise.
3572         (sc_prohibit_intprops_without_use): Likewise.
3573
3574 2010-03-30  Eric Blake  <eblake@redhat.com>
3575
3576         maint: improve module indicators
3577         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
3578         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
3579         columns, and avoid extra macro expansion.
3580
3581         fdopendir: work around FreeBSD bug
3582         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3583         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
3584         * modules/dirent (Makefile.am): Substitute it.
3585         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
3586         declaration.
3587         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
3588         fix.
3589         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3590
3591 2010-03-29  Bruno Haible  <bruno@clisp.org>
3592
3593         Emit #pragma system_header after the inclusion guard, not before.
3594         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
3595         guard that spans the entire file, not before. This enables an
3596         optimization in GCC's preprocessor.
3597         * lib/ctype.in.h: Likewise.
3598         * lib/dirent.in.h: Likewise.
3599         * lib/errno.in.h: Likewise.
3600         * lib/float.in.h: Likewise.
3601         * lib/getopt.in.h: Likewise.
3602         * lib/iconv.in.h: Likewise.
3603         * lib/langinfo.in.h: Likewise.
3604         * lib/locale.in.h: Likewise.
3605         * lib/math.in.h: Likewise.
3606         * lib/netdb.in.h: Likewise.
3607         * lib/netinet_in.in.h: Likewise.
3608         * lib/pty.in.h: Likewise.
3609         * lib/sched.in.h: Likewise.
3610         * lib/se-selinux.in.h: Likewise.
3611         * lib/search.in.h: Likewise.
3612         * lib/spawn.in.h: Likewise.
3613         * lib/stdarg.in.h: Likewise.
3614         * lib/stdint.in.h: Likewise.
3615         * lib/string.in.h: Likewise.
3616         * lib/strings.in.h: Likewise.
3617         * lib/sys_file.in.h: Likewise.
3618         * lib/sys_ioctl.in.h: Likewise.
3619         * lib/sys_time.in.h: Likewise.
3620         * lib/sys_times.in.h: Likewise.
3621         * lib/sys_utsname.in.h: Likewise.
3622         * lib/sys_wait.in.h: Likewise.
3623         * lib/sysexits.in.h: Likewise.
3624         * lib/wctype.in.h: Likewise.
3625
3626 2010-03-28  James Youngman  <jay@gnu.org>
3627
3628         save-cwd: don't leak a file descriptor when the caller execs.
3629         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
3630         saved file descriptor.
3631         * modules/save-cwd (Depends-on): Depend on cloexec.
3632
3633 2010-03-29  Bruno Haible  <bruno@clisp.org>
3634
3635         Remove vestiges of fts-lgpl module.
3636         * lib/fts_.h: Assume GNULIB_FTS is 1.
3637         * lib/fts.c: Likewise.
3638         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3639
3640 2010-03-28  Bruno Haible  <bruno@clisp.org>
3641
3642         Fix definition of tests witness macro.
3643         * gnulib-tool (func_import): Fix definition of witness macro.
3644
3645 2010-03-28  Bruno Haible  <bruno@clisp.org>
3646
3647         Fix ioctl's protoype on glibc systems.
3648         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
3649         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
3650         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
3651         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
3652         signature. If not, arrange to replace the ioctl function.
3653         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3654         REPLACE_IOCTL.
3655         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
3656         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
3657         Reported by Ludovic Courtès <ludo@gnu.org>.
3658
3659 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
3660
3661         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
3662         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
3663         made it so grep -r --include=GLOB* ... did not work.
3664
3665 2010-03-26  Jim Meyering  <meyering@redhat.com>
3666             Eric Blake  <eblake@redhat.com>
3667
3668         maint.mk: prohibit use of test's -o and -a operators
3669         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
3670
3671 2010-03-28  Bruno Haible  <bruno@clisp.org>
3672
3673         Remove unused GNULIB_XYZ macro definitions.
3674         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
3675         invocation.
3676
3677 2010-03-28  Bruno Haible  <bruno@clisp.org>
3678
3679         Mark privileged tests modules.
3680         * modules/idpriv-drop-tests (Status): New section.
3681         * modules/idpriv-droptemp-tests (Status): New section.
3682
3683 2010-03-28  Bruno Haible  <bruno@clisp.org>
3684
3685         Split C++ tests into separate tests modules.
3686         * modules/dirent-c++-tests: New file, extracted from
3687         modules/dirent-tests.
3688         * modules/dirent-tests: Depend on it.
3689         * modules/fcntl-h-c++-tests: New file, extracted from
3690         modules/fcntl-h-tests.
3691         * modules/fcntl-h-tests: Depend on it.
3692         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
3693         * modules/glob-tests: Depend on it.
3694         * modules/iconv-h-c++-tests: New file, extracted from
3695         modules/iconv-h-tests.
3696         * modules/iconv-h-tests: Depend on it.
3697         * modules/langinfo-c++-tests: New file, extracted from
3698         modules/langinfo-tests.
3699         * modules/langinfo-tests: Depend on it.
3700         * modules/locale-c++-tests: New file, extracted from
3701         modules/locale-tests.
3702         * modules/locale-tests: Depend on it.
3703         * modules/math-c++-tests: New file, extracted from modules/math-tests.
3704         * modules/math-tests: Depend on it.
3705         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
3706         * modules/pty-tests: Depend on it.
3707         * modules/search-c++-tests: New file, extracted from
3708         modules/search-tests.
3709         * modules/search-tests: Depend on it.
3710         * modules/signal-c++-tests: New file, extracted from
3711         modules/signal-tests.
3712         * modules/signal-tests: Depend on it.
3713         * modules/spawn-c++-tests: New file, extracted from
3714         modules/spawn-tests.
3715         * modules/spawn-tests: Depend on it.
3716         * modules/stdio-c++-tests: New file, extracted from
3717         modules/stdio-tests.
3718         * modules/stdio-tests: Depend on it.
3719         * modules/stdlib-c++-tests: New file, extracted from
3720         modules/stdlib-tests.
3721         * modules/stdlib-tests: Depend on it.
3722         * modules/string-c++-tests: New file, extracted from
3723         modules/string-tests.
3724         * modules/string-tests: Depend on it.
3725         * modules/sys_ioctl-c++-tests: New file, extracted from
3726         modules/sys_ioctl-tests.
3727         * modules/sys_ioctl-tests: Depend on it.
3728         * modules/sys_select-c++-tests: New file, extracted from
3729         modules/sys_select-tests.
3730         * modules/sys_select-tests: Depend on it.
3731         * modules/sys_socket-c++-tests: New file, extracted from
3732         modules/sys_socket-tests.
3733         * modules/sys_socket-tests: Depend on it.
3734         * modules/sys_stat-c++-tests: New file, extracted from
3735         modules/sys_stat-tests.
3736         * modules/sys_stat-tests: Depend on it.
3737         * modules/sys_time-c++-tests: New file, extracted from
3738         modules/sys_time-tests.
3739         * modules/sys_time-tests: Depend on it.
3740         * modules/time-c++-tests: New file, extracted from modules/time-tests.
3741         * modules/time-tests: Depend on it.
3742         * modules/unistd-c++-tests: New file, extracted from
3743         modules/unistd-tests.
3744         * modules/unistd-tests: Depend on it.
3745         * modules/wchar-c++-tests: New file, extracted from
3746         modules/wchar-tests.
3747         * modules/wchar-tests: Depend on it.
3748         * modules/wctype-c++-tests: New file, extracted from
3749         modules/wctype-tests.
3750         * modules/wctype-tests: Depend on it.
3751         Reported by Simon Josefsson.
3752
3753 2010-03-28  Bruno Haible  <bruno@clisp.org>
3754
3755         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
3756         * gnulib-tool (func_exists_module): New function, extracted from
3757         func_verify_module.
3758         (func_verify_module): Use it.
3759         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
3760         'foo' only if 'foo' exists.
3761         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
3762         module.
3763
3764 2010-03-28  Bruno Haible  <bruno@clisp.org>
3765
3766         gnulib-tool: Add support for special categories of tests.
3767         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
3768         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
3769         (func_usage): Document them.
3770         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
3771         inc_unportable_tests, inc_all_tests): New variables.
3772         (func_acceptable): Consider these variables.
3773         (func_modules_transitive_closure): Make it work when the 'Status' field
3774         consists of multiple words.
3775         (func_import): Store and restore the values of inc_cxx_tests,
3776         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
3777         inc_all_tests in gnulib-comp.m4.
3778         (func_create_testdir): Set inc_all_tests to true.
3779         * doc/gnulib.texi (Extra tests modules): New section.
3780         Suggested by Jim Meyering.
3781
3782 2010-03-28  Bruno Haible  <bruno@clisp.org>
3783
3784         ansi-c++-opt: Allow turning off the C++ build by default.
3785         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
3786         gl_CXX_CHOICE_DEFAULT_NO is defined.
3787         Requested by Eric Blake.
3788
3789 2010-03-28  Bruno Haible  <bruno@clisp.org>
3790
3791         unistd: Avoid #define replacements in C++ mode.
3792         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3793         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3794         setsockopt, shutdown, select): In C++, attach a warning to the function
3795         if possible, rather than #defining the symbol to a dysfunctional alias.
3796         Reported by John W. Eaton <jwe@gnu.org>.
3797
3798 2010-03-28  Bruno Haible  <bruno@clisp.org>
3799
3800         Fix link errors on mingw.
3801         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
3802         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
3803         $(LIBSOCKET).
3804         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
3805         $(LIBSOCKET).
3806
3807 2010-03-28  Bruno Haible  <bruno@clisp.org>
3808             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3809
3810         lib-ignore: Determine different options for different compilers.
3811         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
3812         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
3813         Add comments.
3814         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
3815         * NEWS: Mention the change.
3816
3817 2010-03-27  Bruno Haible  <bruno@clisp.org>
3818
3819         Remove unused GNULIB_XYZ macro definitions.
3820         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
3821         * modules/fseek (configure.ac): Likewise.
3822         * modules/ioctl (configure.ac): Likewise.
3823         * modules/open (configure.ac): Likewise.
3824         * modules/stdlib-safer (configure.ac): Likewise.
3825
3826 2010-03-27  Bruno Haible  <bruno@clisp.org>
3827
3828         Add a remark about certain modules.
3829         * modules/malloc (Comment): New section.
3830         * modules/realloc (Comment): Likewise.
3831         * modules/sigpipe (Comment): Likewise.
3832
3833 2010-03-27  Bruno Haible  <bruno@clisp.org>
3834
3835         Resolve conflict between the two kinds of module indicators.
3836         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
3837         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
3838         * modules/canonicalize (configure.ac): Invoke
3839         gl_MODULE_INDICATOR_FOR_TESTS.
3840         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
3841         GNULIB_XYZ.
3842         * tests/test-dirent-c++.cc: Likewise.
3843         * tests/test-dirent-safer.c: Likewise.
3844         * tests/test-dup2.c: Likewise.
3845         * tests/test-fchdir.c: Likewise.
3846         * tests/test-fcntl-h-c++.cc: Likewise.
3847         * tests/test-getopt.c: Likewise.
3848         * tests/test-getopt.h: Likewise.
3849         * tests/test-langinfo-c++.cc: Likewise.
3850         * tests/test-locale-c++.cc: Likewise.
3851         * tests/test-math-c++.cc: Likewise.
3852         * tests/test-pty-c++.cc: Likewise.
3853         * tests/test-search-c++.cc: Likewise.
3854         * tests/test-signal-c++.cc: Likewise.
3855         * tests/test-spawn-c++.cc: Likewise.
3856         * tests/test-stdio-c++.cc: Likewise.
3857         * tests/test-stdlib-c++.cc: Likewise.
3858         * tests/test-string-c++.cc: Likewise.
3859         * tests/test-sys_ioctl-c++.cc: Likewise.
3860         * tests/test-sys_select-c++.cc: Likewise.
3861         * tests/test-sys_socket-c++.cc: Likewise.
3862         * tests/test-sys_stat-c++.cc: Likewise.
3863         * tests/test-sys_time-c++.cc: Likewise.
3864         * tests/test-time-c++.cc: Likewise.
3865         * tests/test-unistd-c++.cc: Likewise.
3866         * tests/test-wchar-c++.cc: Likewise.
3867         * tests/uninorm/test-u8-nfc.c: Likewise.
3868         * tests/uninorm/test-u8-nfd.c: Likewise.
3869         * tests/uninorm/test-u8-nfkc.c: Likewise.
3870         * tests/uninorm/test-u8-nfkd.c: Likewise.
3871         * tests/uninorm/test-u16-nfc.c: Likewise.
3872         * tests/uninorm/test-u16-nfd.c: Likewise.
3873         * tests/uninorm/test-u16-nfkc.c: Likewise.
3874         * tests/uninorm/test-u16-nfkd.c: Likewise.
3875         * tests/uninorm/test-u32-nfc.c: Likewise.
3876         * tests/uninorm/test-u32-nfc-big.c: Likewise.
3877         * tests/uninorm/test-u32-nfd.c: Likewise.
3878         * tests/uninorm/test-u32-nfd-big.c: Likewise.
3879         * tests/uninorm/test-u32-nfkc.c: Likewise.
3880         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
3881         * tests/uninorm/test-u32-nfkd.c: Likewise.
3882         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
3883         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3884
3885 2010-03-27  Bruno Haible  <bruno@clisp.org>
3886
3887         Distinguish two kinds of module indicators.
3888         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
3889         gl_MODULE_INDICATOR.
3890         (gl_MODULE_INDICATOR): New macro.
3891         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
3892         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
3893         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3894         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3895         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3896         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3897         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3898         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3899         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3900         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3901         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3902         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3904         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3905         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3906         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3907         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3908         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3909         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3910         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3911         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3912         * modules/cloexec (configure.ac): Likewise.
3913         * modules/getopt-gnu (configure.ac): Likewise.
3914         * modules/uninorm/u8-normalize (configure.ac): Likewise.
3915         * modules/uninorm/u16-normalize (configure.ac): Likewise.
3916         * modules/uninorm/u32-normalize (configure.ac): Likewise.
3917         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
3918
3919 2010-03-27  Bruno Haible  <bruno@clisp.org>
3920
3921         New module description field 'Comment'.
3922         * gnulib-tool: New option --extract-comment.
3923         (func_usage): Document it.
3924         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
3925         (func_get_comment): New function.
3926         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
3927
3928 2010-03-27  Bruno Haible  <bruno@clisp.org>
3929
3930         Addendum to 2010-02-07 commit.
3931         * gnulib-tool (func_usage): Document --extract-applicability option.
3932
3933 2010-03-27  Bruno Haible  <bruno@clisp.org>
3934
3935         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
3936         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
3937         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
3938         rather than link errors.
3939
3940 2010-03-27  Bruno Haible  <bruno@clisp.org>
3941
3942         Avoid side effects from tests-related modules on the compilation of lib.
3943         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
3944         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
3945         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
3946         parameter. Emit into AM_CPPFLAGS a definition of the designated C
3947         macro.
3948         (func_import): Define a witness macro. Assign it a value that depends
3949         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
3950         tests-related modules.
3951         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
3952         Reported by Jim Meyering.
3953
3954 2010-03-27  Bruno Haible  <bruno@clisp.org>
3955
3956         Factorize common .m4 code.
3957         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
3958         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
3959         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
3960         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
3961         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
3962         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
3963         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
3964         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
3965         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
3966         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
3967         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
3968         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
3969         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
3970         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
3971         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
3972         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
3973         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
3974         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
3975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
3976         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
3977         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
3978         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
3979         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
3980         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
3981         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
3982         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
3983         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
3984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
3985         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
3986         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
3987         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
3988         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
3989
3990 2010-03-27  Bruno Haible  <bruno@clisp.org>
3991
3992         Fix a compilation error on Cygwin with g++ >= 4.3.
3993         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
3994         if it is undefined or if we alias it to chmod.
3995         (lstat): Don't warn about the use of this function if it is undefined
3996         or if we alias it to stat.
3997         Reported by Simon Josefsson.
3998
3999 2010-03-27  Bruno Haible  <bruno@clisp.org>
4000
4001         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4002         * modules/getlogin (configure.ac): Update.
4003
4004         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4005         * modules/getlogin_r (configure.ac): Update.
4006
4007         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4008         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4009         * modules/inet_ntop (configure.ac): Update.
4010
4011         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4012         * modules/inet_pton (configure.ac): Update.
4013
4014         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4015         * modules/mbslen (configure.ac): Update.
4016
4017         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4018         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4019         * modules/forkpty (configure.ac): Update.
4020         * modules/openpty (configure.ac): Update.
4021
4022 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4023
4024         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4025         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4026
4027 2010-03-25  Eric Blake  <eblake@redhat.com>
4028
4029         maint: use pragma consistently across replacement headers
4030         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4031         * lib/dirent.in.h (system_header): Likewise.
4032         * lib/errno.in.h (system_header): Likewise.
4033         * lib/float.in.h (system_header): Likewise.
4034         * lib/getopt.in.h (system_header): Likewise.
4035         * lib/iconv.in.h (system_header): Likewise.
4036         * lib/inttypes.in.h (system_header): Likewise.
4037         * lib/langinfo.in.h (system_header): Likewise.
4038         * lib/locale.in.h (system_header): Likewise.
4039         * lib/math.in.h (system_header): Likewise.
4040         * lib/netdb.in.h (system_header): Likewise.
4041         * lib/netinet_in.in.h (system_header): Likewise.
4042         * lib/pty.in.h (system_header): Likewise.
4043         * lib/sched.in.h (system_header): Likewise.
4044         * lib/se-selinux.in.h (system_header): Likewise.
4045         * lib/search.in.h (system_header): Likewise.
4046         * lib/spawn.in.h (system_header): Likewise.
4047         * lib/stdarg.in.h (system_header): Likewise.
4048         * lib/stdint.in.h (system_header): Likewise.
4049         * lib/string.in.h (system_header): Likewise.
4050         * lib/strings.in.h (system_header): Likewise.
4051         * lib/sys_file.in.h (system_header): Likewise.
4052         * lib/sys_ioctl.in.h (system_header): Likewise.
4053         * lib/sys_socket.in.h (system_header): Likewise.
4054         * lib/sys_times.in.h (system_header): Likewise.
4055         * lib/sys_utsname.in.h (system_header): Likewise.
4056         * lib/sys_wait.in.h (system_header): Likewise.
4057         * lib/sysexits.in.h (system_header): Likewise.
4058         * lib/unistd.in.h (system_header): Likewise.
4059         * lib/wctype.in.h (system_header): Likewise.
4060
4061         arpa/inet: fix mingw compilation warning
4062         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4063         Reported by Matthew Bolte.
4064
4065 2010-03-25  Bruno Haible  <bruno@clisp.org>
4066
4067         Avoid collision between gnulib wrapper and libintl wrapper.
4068         * lib/printf.c (printf): Don't define if a printf wrapper is already
4069         defined in intl/printf.c.
4070         Reported by Michel Boaventura <michel@michelboaventura.com>.
4071
4072 2010-03-25  Bruno Haible  <bruno@clisp.org>
4073
4074         Use ANSI C.
4075         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4076
4077 2010-03-25  Bruno Haible  <bruno@clisp.org>
4078
4079         Minor formatting changes.
4080         * lib/acosl.c: Insert space before function argument list.
4081         * lib/argz.c: Likewise.
4082         * lib/asinl.c: Likewise.
4083         * lib/expl.c: Likewise.
4084         * lib/gen-uni-tables.c: Likewise.
4085         * lib/gettext.h: Likewise.
4086         * lib/glthread/lock.h: Likewise.
4087         * lib/tanl.c: Likewise.
4088         * lib/uniname/uniname.c: Likewise.
4089         * tests/test-idpriv-drop.c: Likewise.
4090         * tests/test-idpriv-droptemp.c: Likewise.
4091         * tests/test-lock.c: Likewise.
4092         * tests/test-tls.c: Likewise.
4093         * lib/argp-help.c: Insert space before function-like macro argument
4094         list.
4095         * lib/memcmp.c: Likewise.
4096         * tests/test-base64.c: Likewise.
4097         * lib/localename.c: Insert space before sizeof's argument list.
4098         * lib/safe-alloc.h: Likewise.
4099         * lib/file-set.h: Insert space before macro argument list.
4100         * tests/test-argp.c: Likewise.
4101         * lib/argp-namefrob.h: Insert space before function parameter list.
4102         * lib/getaddrinfo.c: Likewise.
4103         * lib/netdb.in.h: Likewise.
4104         * lib/parse-duration.h: Likewise.
4105         * lib/parse-duration.c: Likewise.
4106         * lib/poll.c: Likewise.
4107         * lib/select.c: Likewise.
4108         * lib/trim.h: Likewise.
4109         * tests/test-usleep.c: Likewise.
4110         * lib/ldexpl.c: Insert space before function parameter list and before
4111         function argument list.
4112         * lib/logl.c: Likewise.
4113         * lib/sqrtl.c: Likewise.
4114         * lib/trim.c: Likewise.
4115         * lib/cosl.c: Use GNU style indentation. Insert space before function
4116         argument list.
4117         * lib/sinl.c: Likewise.
4118         * lib/tsearch.c: Insert space after 'for'.
4119         Reported by Jim Meyering.
4120
4121 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4122
4123         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4124         config header before grepping, as it's not present before
4125         autoreconf/configure are run.  Reported by Simon Josefsson.
4126
4127 2010-03-23  Bruno Haible  <bruno@clisp.org>
4128
4129         pt_chown: Make it work with automake < 1.11.
4130         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4131         Reported by Simon Josefsson.
4132
4133 2010-03-23  Bruno Haible  <bruno@clisp.org>
4134
4135         pt_chown: Don't depend on GPLed modules.
4136         * lib/pt_chown.c: Don't include idpriv.h.
4137         (main): Don't drop privileges.
4138         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4139         Reported by Simon Josefsson.
4140
4141 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4142
4143         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4144         suggestions from karl@freefriends.org (Karl Berry).
4145
4146 2010-03-22  Eric Blake  <eblake@redhat.com>
4147
4148         gethostname: further tweaks
4149         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4150         are overriding gethostname.
4151         Suggested by Bruno Haible.
4152
4153 2010-03-21  Bruno Haible  <bruno@clisp.org>
4154
4155         Fix comments.
4156         * lib/forkpty.c (rpl_forkpty): Fix comment.
4157         * lib/openpty.c (rpl_openpty): Likewise.
4158         Reported by Eric Blake.
4159
4160 2010-03-22  Eric Blake  <eblake@redhat.com>
4161
4162         gethostname: fix build on mingw
4163         * lib/unistd.in.h (includes): Work around fact that mingw
4164         <winsock2.h> re-includes <unistd.h>, by avoiding any
4165         redeclarations if we are being included by <winsock2.h>.
4166         Reported by Matthias Bolte.
4167
4168 2010-03-21  Bruno Haible  <bruno@clisp.org>
4169
4170         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4171         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4172         modifications.
4173         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4174         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4175         provide the replacement.
4176         * modules/forkpty (Depends-on): Add openpty, login_tty.
4177         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4178         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4179         * doc/glibc-functions/forkpty.texi: More supported platforms.
4180         * config/srclist.txt: Add forkpty.c (commented).
4181
4182 2010-03-21  Bruno Haible  <bruno@clisp.org>
4183
4184         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4185         (Makefile.am): Verify that PTY_LIB is defined.
4186
4187         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4188
4189 2010-03-21  Bruno Haible  <bruno@clisp.org>
4190
4191         Tests for module 'login_tty'.
4192         * modules/login_tty-tests: New file.
4193         * tests/test-login_tty.c: New file.
4194
4195         New module 'login_tty'.
4196         * lib/login_tty.c: New file.
4197         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4198         * modules/login_tty: New file.
4199         * doc/glibc-functions/login_tty.texi: Mention the new module.
4200
4201 2010-03-21  Bruno Haible  <bruno@clisp.org>
4202
4203         login_tty: Documentation.
4204         * doc/glibc-functions/login_tty.texi: New file.
4205         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4206
4207 2010-03-21  Bruno Haible  <bruno@clisp.org>
4208
4209         pty: Consistent macro naming.
4210         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4211         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4212         * modules/pty (configure.ac): Update.
4213
4214 2010-03-21  Bruno Haible  <bruno@clisp.org>
4215
4216         Tests for openpty: Make stricter.
4217         * tests/test-openpty.c (main): Add test of canonical processing and
4218         erase.
4219         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4220
4221         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4222         * lib/openpty.c (openpty): New replacement function.
4223         * lib/pty.in.h: Include <termios.h>.
4224         (openpty): Update declaration. Add comments.
4225         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4226         is not declared, arrange to provide the replacement. Check for _getpty
4227         and posix_openpt.
4228         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4229         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4230         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4231         * modules/pty-tests (test_pty_c___LDADD): New variable.
4232         * doc/glibc-functions/openpty.texi: More supported platforms.
4233
4234 2010-03-21  Bruno Haible  <bruno@clisp.org>
4235
4236         setenv: Tweaks.
4237         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4238         the test program.
4239         * doc/posix-functions/setenv.texi: Update platforms list.
4240
4241 2010-03-21  Bruno Haible  <bruno@clisp.org>
4242
4243         New module 'unlockpt'.
4244         * lib/unlockpt.c: New file, from glibc with modifications.
4245         * m4/unlockpt.m4: New file.
4246         * modules/unlockpt: New file.
4247         * lib/stdlib.in.h (unlockpt): New declaration.
4248         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4249         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4250         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4251         HAVE_UNLOCKPT.
4252         * doc/posix-functions/unlockpt.texi: Mention the new module.
4253         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4254         * config/srclist.txt: Add unlockpt.c (commented).
4255
4256 2010-03-21  Jim Meyering  <meyering@redhat.com>
4257
4258         maint.mk: prohibit inclusion of "intprops.h" without use
4259         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4260
4261 2010-03-21  Bruno Haible  <bruno@clisp.org>
4262
4263         New module 'grantpt'.
4264         * lib/grantpt.c: New file, from glibc with modifications.
4265         * m4/grantpt.m4: New file.
4266         * modules/grantpt: New file.
4267         * lib/stdlib.in.h (grantpt): New declaration.
4268         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4269         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4270         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4271         HAVE_GRANTPT.
4272         * doc/posix-functions/grantpt.texi: Mention the new module.
4273         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4274         * config/srclist.txt: Add grantpt.c (commented).
4275
4276 2010-03-21  Bruno Haible  <bruno@clisp.org>
4277
4278         New module 'pt_chown'.
4279         * lib/pt_chown.c: New file, from glibc with modifications.
4280         * lib/pty-private.h: New file, from glibc with modifications.
4281         * modules/pt_chown: New file.
4282         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4283
4284 2010-03-21  Bruno Haible  <bruno@clisp.org>
4285
4286         Tests for module 'ptsname'.
4287         * modules/ptsname-tests: New file.
4288         * tests/test-ptsname.c: New file.
4289
4290         New module 'ptsname'.
4291         * lib/ptsname.c: New file, from glibc with modifications.
4292         * m4/ptsname.m4: New file.
4293         * modules/ptsname: New file.
4294         * lib/stdlib.in.h (ptsname): New declaration.
4295         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4296         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4297         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4298         HAVE_PTSNAME.
4299         * doc/posix-functions/ptsname.texi: Mention the new module.
4300         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4301         * config/srclist.txt: Add ptsname.c (commented).
4302
4303 2010-03-21  Bruno Haible  <bruno@clisp.org>
4304
4305         Tests for module 'ttyname_r'.
4306         * modules/ttyname_r-tests: New file.
4307         * tests/test-ttyname_r.c: New file.
4308
4309         New module 'ttyname_r'.
4310         * lib/ttyname_r.c: New file.
4311         * m4/ttyname_r.m4: New file.
4312         * modules/ttyname_r: New file.
4313         * lib/unistd.in.h (ttyname_r): New declaration.
4314         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4315         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4316         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4317         HAVE_TTYNAME_R.
4318         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4319         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4320
4321 2010-03-20  Bruno Haible  <bruno@clisp.org>
4322
4323         signal: Undefine macro definitions in C++ mode.
4324         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4325         sigfillset): Undefine macro definitions from the system header in C++
4326         mode.
4327         Reported by John W. Eaton <jwe@gnu.org>.
4328
4329 2010-03-20  Bruno Haible  <bruno@clisp.org>
4330
4331         Ensure no #include statements inside extern "C" { ... }.
4332         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4333         contain #include statements.
4334         * lib/time.in.h: Likewise.
4335
4336 2010-03-20  Bruno Haible  <bruno@clisp.org>
4337
4338         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4339         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4340         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4341         Reported by John W. Eaton <jwe@gnu.org>.
4342
4343 2010-03-20  Bruno Haible  <bruno@clisp.org>
4344
4345         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4346         Reported by Jim Meyering.
4347
4348 2010-03-20  Bruno Haible  <bruno@clisp.org>
4349
4350         pipe: Set errno upon failure.
4351         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4352         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4353         errno value in error message.
4354
4355 2010-03-20  Bruno Haible  <bruno@clisp.org>
4356             Jim Meyering  <meyering@redhat.com>
4357
4358         lchown: Avoid "unused variable" warning.
4359         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4360
4361 2010-03-20  Bruno Haible  <bruno@clisp.org>
4362
4363         Work around unlink() bug on MacOS X 10.5.6.
4364         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4365         attempting to unlink a parent directory.
4366         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4367         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4368         activate for the replacement function.
4369         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4370
4371 2010-03-20  Bruno Haible  <bruno@clisp.org>
4372
4373         Fix link errors on Solaris 8.
4374         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4375         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4376
4377 2010-03-19  Jim Meyering  <meyering@redhat.com>
4378
4379         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4380         The _LIBC implementation of build_range_exp correctly honors the
4381         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4382         However, the non-_LIBC implementation would ignore that syntax-bit
4383         flag and return REG_ERANGE unconditionally.
4384         This change makes it honor that flag.
4385         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4386         Make two pointer parameters "const".
4387         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4388         (parse_bracket_exp): Update caller.
4389
4390         regex.m4: correct the reversed range endpoint ([b-a]) test
4391         * m4/regex.m4: When requiring that [b-a] evoke failure,
4392         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4393         test pass once again for x86-based systems.
4394
4395 2010-03-19  Bruno Haible  <bruno@clisp.org>
4396
4397         scandir: Fix link error on Solaris 8.
4398         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4399         macros.
4400
4401 2010-03-19  Bruno Haible  <bruno@clisp.org>
4402
4403         getusershell: Fix documentation.
4404         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4405         module.
4406         * doc/glibc-functions/setusershell.texi: Likewise.
4407
4408         getusershell: Provide declaration, missing on Solaris 9.
4409         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4410         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4411         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4412         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4414         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4415         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4416         HAVE_GETUSERSHELL.
4417         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4418
4419 2010-03-19  Bruno Haible  <bruno@clisp.org>
4420
4421         wctype: Provide iswblank function.
4422         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4423         exists and is fine.
4424         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4425         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4426         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4427         * doc/posix-functions/iswblank.texi: Update.
4428
4429 2010-03-19  Bruno Haible  <bruno@clisp.org>
4430
4431         Tests of module 'pty' in C++ mode.
4432         * modules/pty-tests: New file.
4433         * tests/test-pty-c++.cc: New file.
4434         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4435
4436 2010-03-19  Eric Blake  <eblake@redhat.com>
4437
4438         logb: fix documentation
4439         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4440         1.5 declaration bug.
4441
4442         forkpty, openpty: prefer glibc's const-safe prototype
4443         * lib/forkpty.c (rpl_forkpty): New file.
4444         * lib/openpty.c (rpl_openpty): Likewise.
4445         * modules/forkpty (Files): Distribute it.
4446         * modules/openpty (Files): Likewise.
4447         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4448         check...
4449         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4450         replacement for for non-const BSD signature.
4451         * modules/pty (Makefile.am): Substitute witnesses.
4452         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4453         * tests/test-forkpty.c: Update signature check.
4454         * tests/test-openpty.c: Likewise.
4455         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4456         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4457
4458         forkpty, openpty: split functions into new modules
4459         * modules/pty (Makefile.am): Substitute new witnesses.
4460         (Libraries): Move library detection...
4461         * modules/forkpty: ...into new module.
4462         * modules/openpty: Another new module.
4463         * modules/pty-tests: Rename and split...
4464         * modules/forkpty-tests: ...to this...
4465         * modules/openpty-tests: ...and this.
4466         * tests/test-pty.c: Rename and split...
4467         * tests/test-forkpty.c: ...to this...
4468         * tests/test-openpty.c: ...and this.
4469         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4470         (gl_PTY): Split library searching...
4471         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4472         (gl_FORKPTY, gl_OPENPTY): New macros.
4473         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4474         * NEWS: Mention the split.
4475         * MODULES.html.sh (Misc): Document the modules.
4476         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4477         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4478
4479         pty: improve replacement header
4480         * lib/pty.in.h: New file.
4481         * modules/pty (Files): Ship it.
4482         (Makefile.am): Always build replacement.
4483         * m4/pty.m4: Rename...
4484         * m4/pty_h.m4: ...to this.
4485         (gl_PTY): Modernize setting of witness macros; update check of
4486         forkpty to take proper advantage of cache.
4487         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4488
4489         getopt: avoid compiler warning
4490         * lib/getopt.c (attribute_hidden): Remove unused macro.
4491
4492 2010-03-18  Bruno Haible  <bruno@clisp.org>
4493
4494         Fix link errors on Solaris 8.
4495         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4496         * modules/search-tests (test_search_c___LDADD): Likewise.
4497         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4498         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4499         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4500         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4501         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4502         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4503         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4504
4505 2010-03-18  Bruno Haible  <bruno@clisp.org>
4506
4507         Fix bug introduced on 2010-03-14.
4508         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4509         (gl_SPAWN_H): Require it.
4510         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4511         Reported by Simon Josefsson.
4512
4513 2010-03-18  Bruno Haible  <bruno@clisp.org>
4514
4515         Fix typo introduced on 2009-12-31.
4516         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4517         posix_spawn_file_actions_adddup2.
4518
4519 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4520         and Eric Blake  <eblake@redhat.com>
4521
4522         test-vc-list-files-git: make more robust
4523         * tests/test-vc-list-files-git.sh: Unset problematic environment
4524         variables.  Chain commands together.
4525
4526 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
4527
4528         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
4529         `AC_CHECK_DECL' invocation.
4530
4531 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
4532
4533         * lib/inttostr.c (inttostr): Make sure the invocation of verify
4534         appears before executable statements. Suggested by Petr Sumbera
4535         <Petr.Sumbera@Sun.COM>.
4536
4537 2010-03-14  Bruno Haible  <bruno@clisp.org>
4538
4539         * tests/test-flock.c (test_exclusive): Comment out a test that causes
4540         portability problems. Instead use a simpler test.
4541         (main): Check that invalid arguments are rejected only on Linux.
4542
4543 2010-03-14  Bruno Haible  <bruno@clisp.org>
4544
4545         Fix bug introduced on 2009-12-31.
4546         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4547         gl_PREREQ_SYS_H_WINSOCK2 always.
4548         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
4549         SYS_SOCKET_H variable.
4550         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
4551         Update comments.
4552         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
4553         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4554         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4555         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4556         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4557
4558 2010-03-14  Bruno Haible  <bruno@clisp.org>
4559
4560         Fix values returned by sinl, cosl.
4561         * lib/trigl.h: Add specification comments.
4562         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
4563         that combines the values from the precomputed table with the values of
4564         the Chebyshev polynomials.
4565
4566 2010-03-14  Bruno Haible  <bruno@clisp.org>
4567
4568         Fix compilation error when modules 'posix_spawn[p]' are not used.
4569         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
4570         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
4571
4572 2010-03-14  Bruno Haible  <bruno@clisp.org>
4573
4574         Fix compilation error on mingw when module 'time_r' is not used.
4575         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
4576         is 1.
4577         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
4578         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4579         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
4580         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
4581
4582 2010-03-14  Bruno Haible  <bruno@clisp.org>
4583
4584         Fix compilation error with Sun C.
4585         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
4586         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
4587         instead of GCC specific ULONG_LONG_MAX.
4588         * lib/xstrtoll.c: Likewise.
4589         * lib/xstrtoull.c: Likewise.
4590
4591 2010-03-13  Bruno Haible  <bruno@clisp.org>
4592
4593         Allow the user to disable C++ code and tests.
4594         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
4595         (gl_PROG_ANSI_CXX): Require it.
4596
4597 2010-03-13  Bruno Haible  <bruno@clisp.org>
4598
4599         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4600         cases.
4601
4602 2010-03-13  Bruno Haible  <bruno@clisp.org>
4603
4604         Test that gnulib does not break the standard C++ headers.
4605         * tests/test-locale-c++2.cc: New file.
4606         * modules/locale-tests (Files): Add it.
4607         (Makefile.am): Compile it for test-locale-c++.
4608         * tests/test-math-c++2.cc: New file.
4609         * modules/math-tests (Files): Add it.
4610         (Makefile.am): Compile it for test-math-c++.
4611         * tests/test-signal-c++2.cc: New file.
4612         * modules/signal-tests (Files): Add it.
4613         (Makefile.am): Compile it for test-signal-c++.
4614         * tests/test-stdio-c++2.cc: New file.
4615         * modules/stdio-tests (Files): Add it.
4616         (Makefile.am): Compile it for test-stdio-c++.
4617         * tests/test-stdlib-c++2.cc: New file.
4618         * modules/stdlib-tests (Files): Add it.
4619         (Makefile.am): Compile it for test-stdlib-c++.
4620         * tests/test-string-c++2.cc: New file.
4621         * modules/string-tests (Files): Add it.
4622         (Makefile.am): Compile it for test-string-c++.
4623         * tests/test-time-c++2.cc: New file.
4624         * modules/time-tests (Files): Add it.
4625         (Makefile.am): Compile it for test-time-c++.
4626         Reported by John W. Eaton <jwe@gnu.org>.
4627
4628 2010-03-13  Bruno Haible  <bruno@clisp.org>
4629
4630         * gnulib-tool (func_usage): Clarify which options are available for
4631         --create-testdir and --create-megatestdir.
4632
4633 2010-03-13  Bruno Haible  <bruno@clisp.org>
4634
4635         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
4636         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
4637         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
4638         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
4639         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
4640         when appropriate.
4641         Reported by Jim Meyering.
4642
4643 2010-03-12  Simon Josefsson  <simon@josefsson.org>
4644
4645         * gnulib-tool (func_import): Explain origin of code.
4646
4647 2010-03-12  Bruno Haible  <bruno@clisp.org>
4648
4649         Fix problem with automake's definition of CXXLINK.
4650         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
4651         Reported by Simon Josefsson and Ludovic Courtès.
4652
4653 2010-03-12  Bruno Haible  <bruno@clisp.org>
4654
4655         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
4656         stable releases.
4657
4658 2010-03-11  Bruno Haible  <bruno@clisp.org>
4659
4660         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
4661         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
4662         whether the system provides one variant or multiple variants of the
4663         function.
4664         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
4665         C++ compilers.
4666         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
4667         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
4668         Reported by Jim Meyering.
4669
4670 2010-03-09  Simon Josefsson  <simon@josefsson.org>
4671
4672         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
4673
4674 2010-03-08  Bruno Haible  <bruno@clisp.org>
4675
4676         gnulib-tool: Add support for --libtool in --create-testdir.
4677         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
4678         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
4679
4680 2010-03-08  Eric Blake  <eblake@redhat.com>
4681
4682         gnulib-tool.texi: mention possibility of git submodule
4683         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
4684         submodules.
4685         * doc/.gitignore: Ignore another generated file.
4686
4687 2010-03-08  Karl Berry  <karl@gnu.org>
4688
4689         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4690         of committing gnulib files while skipping others.
4691
4692 2010-03-07  Bruno Haible  <bruno@clisp.org>
4693
4694         Tests of module 'wctype' in C++ mode.
4695         * tests/test-wctype-c++.cc: New file.
4696         * modules/wctype-tests (Files): Add it and tests/signature.h.
4697         (Depends-on): Add ansi-c++-opt.
4698         (Makefile.am): Arrange to compile and run test-wctype-c++.
4699
4700         Tests of module 'wchar' in C++ mode.
4701         * tests/test-wchar-c++.cc: New file.
4702         * modules/wchar-tests (Files): Add it and tests/signature.h.
4703         (Depends-on): Add ansi-c++-opt.
4704         (Makefile.am): Arrange to compile and run test-wchar-c++.
4705         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
4706         gl_MODULE_INDICATOR.
4707
4708         Tests of module 'unistd' in C++ mode.
4709         * tests/test-unistd-c++.cc: New file.
4710         * modules/unistd-tests (Files): Add it and tests/signature.h.
4711         (Depends-on): Add ansi-c++-opt.
4712         (Makefile.am): Arrange to compile and run test-unistd-c++.
4713         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
4714         gl_MODULE_INDICATOR.
4715
4716         Tests of module 'time' in C++ mode.
4717         * tests/test-time-c++.cc: New file.
4718         * modules/time-tests (Files): Add it and tests/signature.h.
4719         (Depends-on): Add ansi-c++-opt.
4720         (Makefile.am): Arrange to compile and run test-time-c++.
4721         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4722
4723         Tests of module 'sys_time' in C++ mode.
4724         * tests/test-sys_time-c++.cc: New file.
4725         * modules/sys_time-tests (Files): Add it and tests/signature.h.
4726         (Depends-on): Add ansi-c++-opt.
4727         (Makefile.am): Arrange to compile and run test-sys_time-c++.
4728         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
4729         gl_MODULE_INDICATOR.
4730
4731         Tests of module 'sys_stat' in C++ mode.
4732         * tests/test-sys_stat-c++.cc: New file.
4733         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
4734         (Depends-on): Add ansi-c++-opt.
4735         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
4736         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
4737         gl_MODULE_INDICATOR.
4738
4739         Tests of module 'sys_socket' in C++ mode.
4740         * tests/test-sys_socket-c++.cc: New file.
4741         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
4742         (Depends-on): Add ansi-c++-opt.
4743         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
4744         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
4745         gl_MODULE_INDICATOR.
4746
4747         Tests of module 'sys_select' in C++ mode.
4748         * tests/test-sys_select-c++.cc: New file.
4749         * modules/sys_select-tests (Files): Add it and tests/signature.h.
4750         (Depends-on): Add ansi-c++-opt.
4751         (Makefile.am): Arrange to compile and run test-sys_select-c++.
4752         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
4753         gl_MODULE_INDICATOR.
4754
4755         Tests of module 'sys_ioctl' in C++ mode.
4756         * tests/test-sys_ioctl-c++.cc: New file.
4757         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
4758         (Depends-on): Add ansi-c++-opt.
4759         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
4760         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
4761         gl_MODULE_INDICATOR.
4762
4763         Tests of module 'string' in C++ mode.
4764         * tests/test-string-c++.cc: New file.
4765         * modules/string-tests (Files): Add it and tests/signature.h.
4766         (Depends-on): Add ansi-c++-opt.
4767         (Makefile.am): Arrange to compile and run test-string-c++.
4768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
4769         gl_MODULE_INDICATOR.
4770
4771         Tests of module 'stdlib' in C++ mode.
4772         * tests/test-stdlib-c++.cc: New file.
4773         * modules/stdlib-tests (Files): Add it and tests/signature.h.
4774         (Depends-on): Add ansi-c++-opt.
4775         (Makefile.am): Arrange to compile and run test-stdlib-c++.
4776         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
4777         gl_MODULE_INDICATOR.
4778
4779         Tests of module 'stdio' in C++ mode.
4780         * tests/test-stdio-c++.cc: New file.
4781         * modules/stdio-tests (Files): Add it and tests/signature.h.
4782         (Depends-on): Add ansi-c++-opt.
4783         (Makefile.am): Arrange to compile and run test-stdio-c++.
4784         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
4785         gl_MODULE_INDICATOR.
4786
4787         Tests of module 'spawn' in C++ mode.
4788         * tests/test-spawn-c++.cc: New file.
4789         * modules/spawn-tests (Files): Add it and tests/signature.h.
4790         (Depends-on): Add ansi-c++-opt.
4791         (Makefile.am): Arrange to compile and run test-spawn-c++.
4792         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
4793         gl_MODULE_INDICATOR.
4794
4795         Tests of module 'signal' in C++ mode.
4796         * tests/test-signal-c++.cc: New file.
4797         * modules/signal-tests (Files): Add it and tests/signature.h.
4798         (Depends-on): Add ansi-c++-opt.
4799         (Makefile.am): Arrange to compile and run test-signal-c++.
4800         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
4801         gl_MODULE_INDICATOR.
4802
4803         Tests of module 'search' in C++ mode.
4804         * tests/test-search-c++.cc: New file.
4805         * modules/search-tests (Files): Add it and tests/signature.h.
4806         (Depends-on): Add ansi-c++-opt.
4807         (Makefile.am): Arrange to compile and run test-search-c++.
4808         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
4809         gl_MODULE_INDICATOR.
4810
4811         Tests of module 'math' in C++ mode.
4812         * tests/test-math-c++.cc: New file.
4813         * modules/math-tests (Files): Add it and tests/signature.h.
4814         (Depends-on): Add ansi-c++-opt.
4815         (Makefile.am): Arrange to compile and run test-math-c++.
4816         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4817
4818         Tests of module 'locale' in C++ mode.
4819         * tests/test-locale-c++.cc: New file.
4820         * modules/locale-tests (Files): Add it and tests/signature.h.
4821         (Depends-on): Add ansi-c++-opt.
4822         (Makefile.am): Arrange to compile and run test-locale-c++.
4823         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
4824         gl_MODULE_INDICATOR.
4825
4826         Tests of module 'langinfo' in C++ mode.
4827         * tests/test-langinfo-c++.cc: New file.
4828         * modules/langinfo-tests (Files): Add it and tests/signature.h.
4829         (Depends-on): Add ansi-c++-opt.
4830         (Makefile.am): Arrange to compile and run test-langinfo-c++.
4831         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
4832         gl_MODULE_INDICATOR.
4833
4834         Tests of module 'iconv-h' in C++ mode.
4835         * tests/test-iconv-h-c++.cc: New file.
4836         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
4837         (Depends-on): Add ansi-c++-opt.
4838         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
4839
4840         Tests of module 'glob' in C++ mode.
4841         * tests/test-glob-c++.cc: New file.
4842         * modules/glob-tests (Files): Add it.
4843         (Depends-on): Add ansi-c++-opt.
4844         (Makefile.am): Arrange to compile and run test-glob-c++.
4845
4846         Tests of module 'fcntl-h' in C++ mode.
4847         * tests/test-fcntl-h-c++.cc: New file.
4848         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
4849         (Depends-on): Add ansi-c++-opt.
4850         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
4851         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
4852         gl_MODULE_INDICATOR.
4853
4854         Tests of module 'dirent' in C++ mode.
4855         * tests/test-dirent-c++.cc: New file.
4856         * modules/dirent-tests (Files): Add it and tests/signature.h.
4857         (Depends-on): Add ansi-c++-opt.
4858         (Makefile.am): Arrange to compile and run test-dirent-c++.
4859         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4860         gl_MODULE_INDICATOR.
4861
4862         New module 'ansi-c++-opt'.
4863         * modules/ansi-c++-opt: New file.
4864         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
4865
4866         Document C++ namespace mode.
4867         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
4868
4869         wctype: Avoid #define replacements in C++ mode.
4870         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
4871         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
4872         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
4873         In C++, define a namespaced alias symbol.
4874         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
4875         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
4876         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
4877         rule.
4878
4879         wchar: Avoid #define replacements in C++ mode.
4880         * lib/wchar.in.h: Include c++defs.h.
4881         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
4882         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
4883         symbol.
4884         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
4885         * modules/wchar (Depends-on): Add c++defs.
4886         (Makefile.am): Update wchar.h rule.
4887
4888         unistd: Avoid #define replacements in C++ mode.
4889         * lib/unistd.in.h: Include c++defs.h.
4890         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
4891         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
4892         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
4893         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
4894         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
4895         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
4896         symbol.
4897         (environ): Update.
4898         * modules/unistd (Depends-on): Add c++defs.
4899         (Makefile.am): Update unistd.h rule.
4900
4901         time: Avoid #define replacements in C++ mode.
4902         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
4903         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
4904         define a namespaced alias symbol.
4905         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
4906         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
4907         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
4908         * modules/time (Depends-on): Add c++defs, warn-on-use.
4909         (Makefile.am): Update time.h rule.
4910         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
4911         * modules/nanosleep (configure.ac): Likewise.
4912         * modules/strptime (configure.ac): Likewise.
4913         * modules/timegm (configure.ac): Likewise.
4914
4915         sys_time: Avoid #define replacements in C++ mode.
4916         * lib/sys_time.in.h: Include c++defs.h.
4917         (gettimeofday): In C++, define a namespaced alias symbol.
4918         * modules/sys_time (Depends-on): Add c++defs.
4919         (Makefile.am): Update sys/time.h rule.
4920
4921         sys_stat: Avoid #define replacements in C++ mode.
4922         * lib/sys_stat.in.h: Include c++defs.h.
4923         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
4924         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
4925         namespaced alias symbol.
4926         In C++, define a namespaced alias symbol.
4927         * modules/sys_stat (Depends-on): Add c++defs.
4928         (Makefile.am): Update sys/stat.h rule.
4929
4930         sys_socket: Avoid #define replacements in C++ mode.
4931         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
4932         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
4933         definitions also when the system has a <sys/socket.h>.
4934         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4935         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
4936         In C++, define a namespaced alias symbol.
4937         * modules/sys_socket (Depends-on): Add c++defs.
4938         (Makefile.am): Update sys/socket.h rule.
4939
4940         sys_select: Avoid #define replacements in C++ mode.
4941         * lib/sys_select.in.h: Include c++defs.h. Enable the function
4942         definitions also when the system has a <sys/select.h>.
4943         (select): In C++, define a namespaced alias symbol.
4944         * modules/sys_select (Depends-on): Add c++defs.
4945         (Makefile.am): Update sys/select.h rule.
4946
4947         sys_ioctl: Avoid #define replacements in C++ mode.
4948         * lib/sys_ioctl.in.h: Include c++defs.h.
4949         (ioctl): In C++, define a namespaced alias symbol.
4950         * modules/sys_ioctl (Depends-on): Add c++defs.
4951         (Makefile.am): Update sys/ioctl.h rule.
4952
4953         string: Avoid #define replacements in C++ mode.
4954         * lib/string.in.h: Include c++defs.h.
4955         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
4956         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4957         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4958         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
4959         strsignal, strverscmp): In C++, define a namespaced alias symbol.
4960         * modules/string (Depends-on): Add c++defs.
4961         (Makefile.am): Update string.h rule.
4962
4963         stdlib: Avoid #define replacements in C++ mode.
4964         * lib/stdlib.in.h: Include c++defs.h.
4965         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
4966         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
4967         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
4968         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
4969         symbol.
4970         * modules/stdlib (Depends-on): Add c++defs.
4971         (Makefile.am): Update stdlib.h rule.
4972
4973         stdio: Avoid #define replacements in C++ mode.
4974         * lib/stdio.in.h: Include c++defs.h.
4975         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
4976         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
4977         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
4978         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
4979         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
4980         namespaced alias symbol.
4981         * modules/stdio (Depends-on): Add c++defs.
4982         (Makefile.am): Update stdio.h rule.
4983
4984         spawn: Avoid #define replacements in C++ mode.
4985         * lib/spawn.in.h: Include c++defs.h.
4986         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4987         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4988         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4989         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4990         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4991         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4992         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4993         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4994         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4995         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4996         In C++, define a namespaced alias symbol.
4997         * modules/spawn (Depends-on): Add c++defs.
4998         (Makefile.am): Update spawn.h rule.
4999
5000         signal: Avoid #define replacements in C++ mode.
5001         * lib/signal.in.h: Include c++defs.h.
5002         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5003         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5004         namespaced alias symbol.
5005         * modules/signal (Depends-on): Add c++defs.
5006         (Makefile.am): Update signal.h rule.
5007
5008         search: Avoid #define replacements in C++ mode.
5009         * lib/search.in.h: Include c++defs.h.
5010         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5011         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5012         symbol.
5013         * modules/search (Depends-on): Add c++defs.
5014         (Makefile.am): Update search.h rule.
5015
5016         math: Avoid #define replacements in C++ mode.
5017         * lib/math.in.h: Include c++defs.h.
5018         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5019         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5020         trunc, truncl): In C++, define a namespaced alias symbol.
5021         * modules/math (Depends-on): Add c++defs.
5022         (Makefile.am): Update math.h rule.
5023
5024         locale: Avoid #define replacements in C++ mode.
5025         * lib/locale.in.h: Include c++defs.h.
5026         (duplocale): In C++, define a namespaced alias symbol.
5027         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5028         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5029         * modules/locale (Depends-on): Add c++defs.
5030         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5031
5032         langinfo: Avoid #define replacements in C++ mode.
5033         * lib/langinfo.in.h: Include c++defs.h.
5034         (nl_langinfo): In C++, define a namespaced alias symbol.
5035         * modules/langinfo (Depends-on): Add c++defs.
5036         (Makefile.am): Update langinfo.h rule.
5037
5038         iconv-h: Avoid #define replacements in C++ mode.
5039         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5040         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5041         symbol.
5042         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5043         whenever iconv is present.
5044         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5045         (Makefile.am): Update iconv.h rule.
5046
5047         glob: Avoid #define replacements in C++ mode.
5048         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5049         (_gl_glob_errfunc_fn): New type.
5050         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5051         symbol.
5052         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5053         (Makefile.am): Update glob.h rule.
5054
5055         fcntl-h: Avoid #define replacements in C++ mode.
5056         * lib/fcntl.in.h: Include c++defs.h.
5057         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5058         * modules/fcntl-h (Depends-on): Add c++defs.
5059         (Makefile.am): Update fcntl.h rule.
5060
5061         dirent: Avoid #define replacements in C++ mode.
5062         * lib/dirent.in.h: Include c++defs.h.
5063         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5064         namespaced alias symbol.
5065         (dirfd): Update declaration.
5066         * modules/dirent (Depends-on): Add c++defs.
5067         (Makefile.am): Update dirent.h rule.
5068
5069         ctype: Make it usable in C++ code.
5070         * lib/ctype.in.h: Include c++defs.h.
5071         (isblank): Declare as extern "C".
5072         * modules/ctype (Depends-on): Add c++defs.
5073         (Makefile.am): Update ctype.h rule.
5074
5075         New module 'c++defs'.
5076         * modules/c++defs: New file.
5077         * build-aux/c++defs.h: New file.
5078         Reported by John W. Eaton <jwe@gnu.org>.
5079
5080 2010-03-07  Bruno Haible  <bruno@clisp.org>
5081
5082         logb: Provide missing declaration for Cygwin.
5083         * lib/math.in.h (logb): New declaration.
5084         * m4/logb.m4: New file.
5085         * modules/logb (Files): Add m4/logb.m4.
5086         (Depends-on): Add math.
5087         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5088         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5090         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5091         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5092
5093 2010-03-07  Bruno Haible  <bruno@clisp.org>
5094
5095         Fix test-cond link error.
5096         * tests/test-cond.c: Include <stdio.h>.
5097
5098 2010-03-07  Bruno Haible  <bruno@clisp.org>
5099
5100         Fix test-dirent-safer link error.
5101         * modules/dirent-safer-tests (Makefile.am): Define
5102         test_dirent_safer_LDADD.
5103
5104 2010-03-07  Bruno Haible  <bruno@clisp.org>
5105
5106         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5107         among default module list.
5108
5109 2010-03-07  Bruno Haible  <bruno@clisp.org>
5110
5111         Fix link error on platforms with GNU libiconv.
5112         * modules/unistr/u8-strcoll-tests (Makefile): Define
5113         test_u8_strcoll_LDADD.
5114         * modules/unistr/u16-strcoll-tests (Makefile): Define
5115         test_u16_strcoll_LDADD.
5116         * modules/unistr/u32-strcoll-tests (Makefile): Define
5117         test_u32_strcoll_LDADD.
5118
5119 2010-03-07  Bruno Haible  <bruno@clisp.org>
5120
5121         Use POSIX declarations for socket functions.
5122         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5123         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5124         rpl_sendto): Change declaration to match POSIX.
5125         * lib/connect.c (rpl_connect): Likewise.
5126         * lib/accept.c (rpl_accept): Likewise.
5127         * lib/bind.c (rpl_bind): Likewise.
5128         * lib/getpeername.c (rpl_getpeername): Likewise.
5129         * lib/getsockname.c (rpl_getsockname): Likewise.
5130         * lib/recv.c (rpl_recv): Likewise.
5131         * lib/send.c (rpl_send): Likewise.
5132         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5133         * lib/sendto.c (rpl_sendto): Likewise.
5134
5135 2010-03-06  Bruno Haible  <bruno@clisp.org>
5136
5137         Clarify access, euidaccess, faccessat.
5138         * doc/posix-functions/faccessat.texi: Mention security problem under
5139         "Other problems", not "Portability problems".
5140         * doc/posix-functions/access.texi: Likewise. Mention a related security
5141         problem.
5142         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5143         * lib/euidaccess.c: Add comments about platforms.
5144         * lib/unistd.in.h (access, euidaccess): Add warnings.
5145
5146 2010-03-07  Bruno Haible  <bruno@clisp.org>
5147
5148         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5149         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5150         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5151         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5152         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5153         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5154         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5155         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5156         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5157         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5158         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5159         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5160         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5161         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5162         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5163         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5164         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5165         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5166         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5167         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5168         Likewise.
5169         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5170         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5171         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5172         Likewise.
5173         * tests/test-spawn.c (main): Make it work when
5174         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5175
5176 2010-03-07  Bruno Haible  <bruno@clisp.org>
5177
5178         Fix incorrect Makefile.am generation in German locale.
5179         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5180         Execute sed command with character range in C locale.
5181
5182 2010-03-06  Bruno Haible  <bruno@clisp.org>
5183
5184         Tests for module 'iconv-h'.
5185         * modules/iconv-h-tests: New file.
5186         * tests/test-iconv-h.c: New file.
5187
5188         New module 'iconv-h'.
5189         * modules/iconv-h: New file.
5190         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5191         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5192         (configure.ac): Remove gl_ICONV_H.
5193         (Makefile.am): Remove rule for iconv.h.
5194
5195 2010-03-06  Bruno Haible  <bruno@clisp.org>
5196
5197         More consistent naming of *.m4 files.
5198         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5199         * modules/wctype (Files): Update.
5200
5201         More consistent naming of *.m4 files.
5202         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5203         * modules/wchar (Files): Update.
5204
5205 2010-03-06  Jim Meyering  <meyering@redhat.com>
5206
5207         euidaccess: relax license to LGPLv2+
5208         * modules/euidaccess (License): Relax to LGPLv2+.
5209
5210 2010-03-06  Bruno Haible  <bruno@clisp.org>
5211
5212         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5213         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5214         (Makefile.am): Augment lib_SOURCES instead.
5215
5216 2010-03-04  Jim Meyering  <meyering@redhat.com>
5217
5218         utime: remove obsolete module
5219         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5220         unnecessary for years, and has been marked as obsolete for 10 months.
5221         * modules/utime: Remove file.
5222         * lib/utime.c: Remove file.
5223         * m4/utime.m4: Remove file.
5224         * m4/utimes-null.m4: Remove file.
5225         * doc/posix-functions/utime.texi (utime): Remove reference to
5226         the module.  Move the sole "fixed by gnulib" item into the
5227         "problems not fixed by Gnulib" list.
5228         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5229
5230 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5231
5232         * modules/exit (License): Relax license to LGPLv2+.
5233         (Status): Mark as obsolete.
5234         * NEWS: Mention deprecated 'exit' module.
5235         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5236         of now obsolete 'exit'.
5237
5238 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5239
5240         fts-lgpl: remove unused module
5241         * modules/fts-lgpl: Remove.
5242         * MODULES.html.sh (func_all_modules): Adjust.
5243         * check-module (find_included_lib_files): Adjust.
5244         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5245
5246 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5247
5248         copy-acl: enhance Solaris ACL error handling
5249         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5250         * lib/set-mode-acl.c (qset_acl): Likewise.
5251
5252 2010-03-02  Bruno Haible  <bruno@clisp.org>
5253
5254         spawn: Don't override the system defined values on FreeBSD 8.
5255         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5256         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5257         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5258         if HAVE_POSIX_SPAWN is 1.
5259         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5260
5261 2010-03-01  Bruno Haible  <bruno@clisp.org>
5262
5263         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5264         regarding Automake.
5265
5266 2010-02-25  Bruno Haible  <bruno@clisp.org>
5267
5268         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5269         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5270         setting, not afterwards.
5271         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5272
5273 2010-02-24  Eric Blake  <eblake@redhat.com>
5274
5275         bootstrap, git-version-gen: use timestamp
5276         * build-aux/git-version-gen (scriptversion): Force UTC.
5277         * build-aux/bootstrap (scriptversion): New variable.
5278
5279         bootstrap: allow older git
5280         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5281         older than 1.6.4.  Requested by the libvirt project.
5282
5283 2010-02-23  Eric Blake  <eblake@redhat.com>
5284
5285         warn-on-use: work with old autoconf
5286         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5287         AS_VAR semantics of autoconf 2.60.
5288         Reported by Bruno Haible.
5289
5290         bootstrap: improve some comments
5291         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5292         clarification comments.
5293
5294         gettimeofday: provide correct function
5295         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5296         when replacement is declared, otherwise provide gettimeofday.
5297         Reported by Michael Goffioul.
5298
5299 2010-02-23  Jim Meyering  <meyering@redhat.com>
5300
5301         lib-ignore: relax license to "unlimited", not LGPLv2+
5302         * modules/lib-ignore (License): Relax to "unlimited".
5303
5304 2010-02-23  Jim Meyering  <meyering@redhat.com>
5305
5306         lib-ignore: relax license to LGPLv2+
5307         * modules/lib-ignore (License): Relax to LGPLv2+.
5308
5309 2010-02-22  Eric Blake  <eblake@redhat.com>
5310
5311         lseek: avoid bash 3.2 broken pipe bug
5312         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5313         warning from bash 3.2.
5314         Reported by Ben Pfaff, with analysis from Bruno Haible.
5315
5316         bootstrap: support non-FSF copyright holder
5317         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5318         bootstrap.conf override of COPYRIGHT_HOLDER.
5319         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5320
5321         bootstrap: interoperate with gettext 0.14.1
5322         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5323
5324         bootstrap: allow for alternate submodule location
5325         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5326         hardcoding submodule location.
5327         (gnulib_mk): Allow direct use of Makefile.am.
5328
5329         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5330         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5331         rather than reconfiguring where the submodule points.
5332
5333         gettimeofday: restore support for platforms that lack function
5334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5335         replacement if function is missing.
5336         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5337         * modules/sys_time (Makefile.am): Substitute it.
5338         * lib/sys_time.in.h (gettimeofday): Check it.
5339         Reported by Michael Goffioul.
5340
5341 2010-02-21  Bruno Haible  <bruno@clisp.org>
5342
5343         * lib/stdio.in.h (obstack_printf): Fix typo.
5344
5345 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5346
5347         vc-list-files: use bzr ls's -R option
5348         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5349         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5350
5351 2010-02-21  Jim Meyering  <meyering@redhat.com>
5352
5353         init.sh: fix EXEEXT shims to work also for names like test-prog
5354         * tests/init.sh: Re-exec a better shell, when needed.
5355         If the current shell lacks support for posix $(...), an init.sh-using
5356         test will now try to find a shell that supports that.  If EXEEXT is
5357         nonempty, we also require support for hyphen-in-alias-name and shell
5358         substitutions like ${var#glob}.  Failure to find such a shell results
5359         in a skipped test.
5360
5361 2010-02-21  Bruno Haible  <bruno@clisp.org>
5362
5363         Really work around around "broken pipe" error message from bash 3.2.
5364         * gnulib-tool (func_reset_sigpipe): Remove function.
5365         (echo): In bash 3.2, define to a function that uses printf.
5366         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5367
5368 2010-02-20  Bruno Haible  <bruno@clisp.org>
5369
5370         Restore support for automake 1.9.6 with autoconf 2.61.
5371         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5372         Reported by James Youngman <jay@gnu.org>.
5373
5374 2010-02-20  Bruno Haible  <bruno@clisp.org>
5375
5376         Improve *printf warning condition.
5377         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5378         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5379         and the function is overridden due to SIGPIPE emulation.
5380
5381 2010-02-20  Bruno Haible  <bruno@clisp.org>
5382
5383         * lib/stdio.in.h: Tweak comments.
5384
5385 2010-02-19  Bruno Haible  <bruno@clisp.org>
5386
5387         Make it easier to find modules. New gnulib-tool option '--find'.
5388         * gnulib-tool: New option --find.
5389         (func_usage): Document it.
5390         (func_sanitize_modulelist): New function, extracted from
5391         func_all_modules.
5392         (func_all_modules): Invoke it.
5393         * doc/gnulib-tool.texi (Which modules?): New node.
5394
5395 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5396
5397         * lib/sys_select.in.h: Provide select replacement even if
5398         sys/select.h exists on a system, for Interix.
5399
5400 2010-02-18  Jim Meyering  <meyering@redhat.com>
5401
5402         init.sh: don't use $(...) just yet
5403         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5404         to accommodate e.g., Solaris' /bin/sh.
5405
5406 2010-02-17  Bruno Haible  <bruno@clisp.org>
5407
5408         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5409         Reported by Ludovic Courtès <ludo@gnu.org>.
5410
5411 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5412
5413         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5414         linking with -lintl.
5415
5416 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5417
5418         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5419         if not provided by the system's netdb.h.  Reported by
5420         ludo@gnu.org (Ludovic Courtès).
5421
5422 2010-02-15  Jim Meyering  <meyering@redhat.com>
5423
5424         init.sh: improve portability and efficiency
5425         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5426         "dummy" in a for loop.
5427         Use '!', not '^' to select the complement of a character set used
5428         in a "case" statement.
5429         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5430         Suggestions from Eric Blake.
5431
5432         init.sh: automatically accommodate programs with the .exe suffix
5433         Automatically arrange for an invocation of "prog" to execute the
5434         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5435         may use the simpler "prog", yet still work when built on a system
5436         that requires specifying the added suffix.
5437         Do this by constructing a function named "prog" that invokes
5438         "prog.exe" for each .exe file in selected directories.
5439         * tests/init.sh (find_exe_basenames_): New function.
5440         (create_exe_shim_functions_): New function.
5441         (path_prepend_): Use it.
5442
5443         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5444         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5445         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5446
5447 2010-02-14  Jim Meyering  <meyering@redhat.com>
5448
5449         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5450         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5451         (sc_prohibit_hash_pjw_without_use): New rule.
5452
5453         maint.mk: allow the default upload destination dir to be overridden
5454         * top/maint.mk (upload_dest_dir_): Define with a default that
5455         preserves the status quo.
5456         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5457         Reported by Peter Simons.
5458
5459         maint.mk: prohibit inclusion of "hash.h" without_use
5460         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5461
5462 2010-02-10  Jim Meyering  <meyering@redhat.com>
5463
5464         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5465         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5466
5467 2010-02-09  Eric Blake  <ebb9@byu.net>
5468         and Bruno Haible  <bruno@clisp.org>
5469
5470         obstack-printf-posix: ensure declaration
5471         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5472         extracted from gl_FUNC_OBSTACK_PRINTF.
5473         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5474         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5475         Likewise.
5476         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5477         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5478         0.
5479
5480 2010-02-08  Bruno Haible  <bruno@clisp.org>
5481
5482         gnulib-tool: Fix typo in 2010-02-07 commit.
5483         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5484         Reported by Eric Blake.
5485
5486 2010-02-07  Bruno Haible  <bruno@clisp.org>
5487
5488         gnulib-tool: Fix up caching patches.
5489         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5490         option --no-cache. Use associative arrays when supported by the shell.
5491         (sed_comments): New variable.
5492         (modcache): Renamed from do_cache.
5493         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5494         abbreviate unnecessarily.
5495         (have_associative): New variable.
5496         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5497         way also for ksh and zsh.
5498         (func_init_sed_convert_to_cache_statements): New function, extracted
5499         from func_cache_lookup_module. Add support for associative arrays.
5500         Don't set the c_MODULE_cached variable here. Ignore all lines before
5501         the first field header. Remove only the final newline, not all trailing
5502         newlines. Support empty fields correctly. Limit the use of 'eval' to
5503         assignments.
5504         (func_get_description, func_get_status, func_get_notice,
5505         func_get_applicability, func_get_filelist, func_get_dependencies,
5506         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5507         func_get_automake_snippet, func_get_include_directive,
5508         func_get_link_directive, func_get_license, func_get_maintainer):
5509         Update documentation. List the unoptimized code first. Add support for
5510         associative arrays. Limit the use of 'eval' to assignments.
5511         (func_get_applicability): Undo stylistic pessimisations.
5512         (func_get_automake_snippet, func_get_include_directive): Reduce code
5513         duplication.
5514         (func_modules_transitive_closure, func_modules_add_dummy,
5515         func_modules_notice, func_modules_to_filelist, func_add_file,
5516         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5517         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5518         func_create_testdir, func_create_megatestdir): Update documentation.
5519
5520 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5521
5522         * gnulib-tool (func_cache_lookup_module): Store the module name
5523         belonging to the cache variable; error out if two different
5524         module names map to the same cache variable name.
5525
5526 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5527
5528         gnulib-tool: Make caching optional.
5529         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5530         Update matching short versions of --no-changelog.
5531         (func_usage): Update.
5532         (sed_extract_cache_prog): Renamed from ...
5533         (sed_extract_prog): ... this; revert to old extraction script.
5534         (func_get_description, func_get_status)
5535         (func_get_notice, func_get_applicability, func_get_filelist)
5536         (func_get_dependencies, func_get_autoconf_early_snippet)
5537         (func_get_autoconf_snippet, func_get_automake_snippet)
5538         (func_get_include_directive, func_get_link_directive)
5539         (func_get_license, func_get_maintainer): If $do_cache is false,
5540         use old, non-caching extraction scripts.
5541         Suggestion by Bruno Haible.
5542
5543 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5544
5545         gnulib-tool: cache module metainformation.
5546         * gnulib-tool (sed_extract_prog): Match newline before each
5547         header, and rewrite header to a shell variable suffix.
5548         (func_cache_var, func_cache_lookup_module): New functions,
5549         to turn a module name into a cache variable prefix, and to
5550         look up and cache module metainformation.
5551         (func_get_description, func_get_status)
5552         (func_get_notice, func_get_applicability, func_get_filelist)
5553         (func_get_dependencies, func_get_autoconf_early_snippet)
5554         (func_get_autoconf_snippet, func_get_automake_snippet)
5555         (func_get_include_directive, func_get_link_directive)
5556         (func_get_license, func_get_maintainer): Use
5557         func_cache_lookup_module.
5558
5559 2010-02-07  Bruno Haible  <bruno@clisp.org>
5560
5561         fnctl: Fix missing dependency.
5562         * modules/fcntl (Depends-on): Add getdtablesize.
5563         Reported by John W. Eaton <jwe@gnu.org>.
5564
5565 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5566
5567         Argp: fix recognition of short alias options.
5568
5569         * lib/argp-parse.c (convert_options): Fix improper use of
5570         `|' between character values.
5571         * tests/test-argp.c (group1_option): New alias option
5572         --read (-r).
5573         (group1_parser): Special handling for 'r'.
5574         (test15): New test case.
5575         (test_fun): Add test15.
5576         * tests/test-argp-2.sh: Update expected --help and --usage
5577         outputs.
5578
5579 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
5580
5581         * tests/test-argp.c: Fix indentation.
5582
5583 2010-02-04  Eric Blake  <ebb9@byu.net>
5584
5585         gettimeofday: expose type of second argument
5586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
5587         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
5588         * tests/test-gettimeofday.c: Use it to silence warning.
5589         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
5590         the issue.
5591
5592 2010-02-03  Jim Meyering  <meyering@redhat.com>
5593
5594         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
5595         * lib/regcomp.c (TYPE_SIGNED): Define.
5596         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
5597
5598         regcomp.c: avoid a new -Wshadow warning
5599         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
5600
5601 2010-02-01  Jim Meyering  <meyering@redhat.com>
5602
5603         removing useless parentheses in cpp #define directives
5604         For motivation, see commit c0221df4, "define STREQ(a,b)
5605         consistently, removing useless parentheses"
5606         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
5607         * lib/mountlist.c (MNT_IGNORE): Likewise.
5608         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
5609
5610 2010-02-01  Eric Blake  <ebb9@byu.net>
5611
5612         sys_time: use link-warning
5613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
5614         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
5615         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
5616         * modules/sys_time (Depends-on): Add warn-on-use.
5617         (Makefile.am): Always build replacement.
5618         (configure.ac): Update substitutions.
5619         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
5620         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
5621         bother with SYS_TIME_H.
5622         * modules/gettimeofday (configure.ac): Declare indicator.
5623         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
5624         in use.
5625
5626         closein-tests: silence compiler warning
5627         * tests/test-closein.c (main): Ignore fread result.
5628         * modules/closein-tests (Depends-on): Add ignore-value.
5629
5630         tests: silence warning about system return
5631         * tests/test-areadlink-with-size.c (main): Ignore system result.
5632         * tests/test-areadlink.c (main): Likewise.
5633         * tests/test-areadlinkat-with-size.c (main): Likewise.
5634         * tests/test-areadlinkat.c (main): Likewise.
5635         * tests/test-canonicalize-lgpl.c (main): Likewise.
5636         * tests/test-canonicalize.c (main): Likewise.
5637         * tests/test-chown.c (main): Likewise.
5638         * tests/test-fchownat.c (main): Likewise.
5639         * tests/test-fdutimensat.c (main): Likewise.
5640         * tests/test-fstatat.c (main): Likewise.
5641         * tests/test-futimens.c (main): Likewise.
5642         * tests/test-lchown.c (main): Likewise.
5643         * tests/test-link.c (main): Likewise.
5644         * tests/test-linkat.c (main): Likewise.
5645         * tests/test-lstat.c (main): Likewise.
5646         * tests/test-mkdir.c (main): Likewise.
5647         * tests/test-mkdirat.c (main): Likewise.
5648         * tests/test-mkfifo.c (main): Likewise.
5649         * tests/test-mkfifoat.c (main): Likewise.
5650         * tests/test-mknod.c (main): Likewise.
5651         * tests/test-readlink.c (main): Likewise.
5652         * tests/test-remove.c (main): Likewise.
5653         * tests/test-rename.c (main): Likewise.
5654         * tests/test-renameat.c (main): Likewise.
5655         * tests/test-rmdir.c (main): Likewise.
5656         * tests/test-symlink.c (main): Likewise.
5657         * tests/test-symlinkat.c (main): Likewise.
5658         * tests/test-unlink.c (main): Likewise.
5659         * tests/test-unlinkat.c (main): Likewise.
5660         * tests/test-utimens.c (main): Likewise.
5661         * tests/test-utimensat.c (main): Likewise.
5662         * modules/areadlink-tests (Depends-on): Add ignore-value.
5663         * modules/areadlink-with-size-tests (Depends-on): Likewise.
5664         * modules/areadlinkat-tests (Depends-on): Likewise.
5665         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
5666         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5667         * modules/canonicalize-tests (Depends-on): Likewise.
5668         * modules/chown-tests (Depends-on): Likewise.
5669         * modules/fdutimensat-tests (Depends-on): Likewise.
5670         * modules/futimens-tests (Depends-on): Likewise.
5671         * modules/lchown-tests (Depends-on): Likewise.
5672         * modules/link-tests (Depends-on): Likewise.
5673         * modules/linkat-tests (Depends-on): Likewise.
5674         * modules/lstat-tests (Depends-on): Likewise.
5675         * modules/mkdir-tests (Depends-on): Likewise.
5676         * modules/mkfifo-tests (Depends-on): Likewise.
5677         * modules/mkfifoat-tests (Depends-on): Likewise.
5678         * modules/mknod-tests (Depends-on): Likewise.
5679         * modules/openat-tests (Depends-on): Likewise.
5680         * modules/readlink-tests (Depends-on): Likewise.
5681         * modules/remove-tests (Depends-on): Likewise.
5682         * modules/rename-tests (Depends-on): Likewise.
5683         * modules/renameat-tests (Depends-on): Likewise.
5684         * modules/rmdir-tests (Depends-on): Likewise.
5685         * modules/symlink-tests (Depends-on): Likewise.
5686         * modules/symlinkat-tests (Depends-on): Likewise.
5687         * modules/unlink-tests (Depends-on): Likewise.
5688         * modules/utimens-tests (Depends-on): Likewise.
5689         * modules/utimensat-tests (Depends-on): Likewise.
5690
5691 2010-01-31  Bruno Haible  <bruno@clisp.org>
5692
5693         Perform the same test for many <math.h> functions.
5694         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
5695         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
5696         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
5697         of gl_MATHFUNC.
5698         * modules/acos (configure.ac): Likewise.
5699         * modules/asin (configure.ac): Likewise.
5700         * modules/atan (configure.ac): Likewise.
5701         * modules/atan2 (configure.ac): Likewise.
5702         * modules/cbrt (configure.ac): Likewise.
5703         * modules/copysign (configure.ac): Likewise.
5704         * modules/cos (configure.ac): Likewise.
5705         * modules/cosh (configure.ac): Likewise.
5706         * modules/erf (configure.ac): Likewise.
5707         * modules/erfc (configure.ac): Likewise.
5708         * modules/exp (configure.ac): Likewise.
5709         * modules/fmod (configure.ac): Likewise.
5710         * modules/hypot (configure.ac): Likewise.
5711         * modules/j0 (configure.ac): Likewise.
5712         * modules/j1 (configure.ac): Likewise.
5713         * modules/jn (configure.ac): Likewise.
5714         * modules/lgamma (configure.ac): Likewise.
5715         * modules/log (configure.ac): Likewise.
5716         * modules/log10 (configure.ac): Likewise.
5717         * modules/log1p (configure.ac): Likewise.
5718         * modules/pow (configure.ac): Likewise.
5719         * modules/remainder (configure.ac): Likewise.
5720         * modules/sin (configure.ac): Likewise.
5721         * modules/sinh (configure.ac): Likewise.
5722         * modules/tan (configure.ac): Likewise.
5723         * modules/tanh (configure.ac): Likewise.
5724         * modules/y0 (configure.ac): Likewise.
5725         * modules/y1 (configure.ac): Likewise.
5726         * modules/yn (configure.ac): Likewise.
5727         Suggested by Paolo Bonzini.
5728
5729 2010-01-31  Bruno Haible  <bruno@clisp.org>
5730
5731         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
5732
5733 2010-01-31  Bruno Haible  <bruno@clisp.org>
5734
5735         Work around getdelim() bug on FreeBSD 8.0.
5736         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
5737         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
5738         not work.
5739         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
5740         is 1.
5741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
5742         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
5743         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
5744         a non-zero size.
5745         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
5746
5747 2010-01-31  Bruno Haible  <bruno@clisp.org>
5748
5749         Work around getline() bug on FreeBSD 8.0.
5750         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
5751         and a non-zero size.
5752         * tests/test-getline.c (main): Likewise.
5753         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
5754         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
5755
5756 2010-01-28  Eric Blake  <ebb9@byu.net>
5757
5758         regex: fix build failure
5759         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
5760         platforms.
5761
5762 2010-01-28  Jim Meyering  <meyering@redhat.com>
5763
5764         regex: do not ignore memory allocation failure
5765         * lib/regex_internal.c (create_cd_newstate): Detect
5766         re_node_set_init_copy failure.   Extracted from glibc commit
5767         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5768
5769         regex: sync more white-space changes from libc
5770         * lib/regex_internal.c: White-space only changes.
5771         * lib/regexec.c: Likewise.
5772
5773         regex: add many uses of __attribute_warn_unused_result__
5774         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
5775         * lib/regexec.c: Likewise.
5776         Extracted from a messy glibc commit.
5777
5778         regcomp.c: spelling and merge-artifact from glibc
5779         * lib/regcomp.c: Merge remainder of glibc's
5780         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5781
5782         regcomp.c: sync white-space changes from glibc
5783         * lib/regcomp.c: Merge to accommodate white space
5784         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
5785
5786         regcomp.c: do not ignore internal return values
5787         * lib/regcomp.c: Do not ignore internal return values.
5788         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
5789         but without its white-space changes and spelling fixes.
5790
5791         regex_internal.h: define __attribute_warn_unused_result__
5792         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
5793
5794         maint: add a syntax-check rule to check for vulnerable Makefile.in
5795         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
5796
5797 2010-01-27  Jim Meyering  <meyering@redhat.com>
5798
5799         ncftpput-ftp: clean up spaces
5800         * build-aux/ncftpput-ftp: Make Copyright line consistent.
5801         Remove trailing blanks.
5802
5803 2010-01-27  Simon Josefsson  <simon@josefsson.org>
5804
5805         * build-aux/git-version-gen: Fix copyright statement.
5806         * build-aux/gnupload: Likewise.
5807         * tests/test-arcfour.c: Likewise.
5808         * tests/test-arctwo.c: Likewise.
5809         * tests/test-count-one-bits.c: Likewise.
5810         * tests/test-crc.c: Likewise.
5811         * tests/test-des.c: Likewise.
5812         * tests/test-gc-arcfour.c: Likewise.
5813         * tests/test-gc-arctwo.c: Likewise.
5814         * tests/test-gc-des.c: Likewise.
5815         * tests/test-gc-hmac-md5.c: Likewise.
5816         * tests/test-gc-hmac-sha1.c: Likewise.
5817         * tests/test-gc-md2.c: Likewise.
5818         * tests/test-gc-md4.c: Likewise.
5819         * tests/test-gc-md5.c: Likewise.
5820         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5821         * tests/test-gc-rijndael.c: Likewise.
5822         * tests/test-gc-sha1.c: Likewise.
5823         * tests/test-gc.c: Likewise.
5824         * tests/test-gethostname.c: Likewise.
5825         * tests/test-gettimeofday.c: Likewise.
5826         * tests/test-hash.c: Likewise.
5827         * tests/test-hmac-md5.c: Likewise.
5828         * tests/test-hmac-sha1.c: Likewise.
5829         * tests/test-md2.c: Likewise.
5830         * tests/test-md4.c: Likewise.
5831         * tests/test-md5.c: Likewise.
5832         * tests/test-memchr.c: Likewise.
5833         * tests/test-memchr2.c: Likewise.
5834         * tests/test-memcmp.c: Likewise.
5835         * tests/test-memmem.c: Likewise.
5836         * tests/test-memrchr.c: Likewise.
5837         * tests/test-rawmemchr.c: Likewise.
5838         * tests/test-read-file.c: Likewise.
5839         * tests/test-rijndael.c: Likewise.
5840         * tests/test-sockets.c: Likewise.
5841         * tests/test-strchrnul.c: Likewise.
5842         * tests/test-strstr.c: Likewise.
5843         * tests/test-strtod.c: Likewise.
5844         * build-aux/ncftpput-ftp: Likewise.
5845
5846 2010-01-26  Eric Blake  <ebb9@byu.net>
5847
5848         ignore-value: update recommended header name
5849         * modules/ignore-value (Include): Only use <> for headers that
5850         exist in glibc.
5851
5852 2010-01-26  Jim Meyering  <meyering@redhat.com>
5853
5854         test-userspec.c: avoid compiler warnings
5855         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
5856         and "initialization discards qualifiers..." warnings.
5857         Put the first "uid" in its own scope, and make char* members "const".
5858
5859 2010-01-25  Bruno Haible  <bruno@clisp.org>
5860
5861         gnulib-tool: Make warning diagnostics consistent.
5862         * gnulib-tool (func_warning): New function.
5863         Use it everywhere where gnulib-tool produces output to stderr and it is
5864         not a fatal error.
5865
5866 2010-01-25  Bruno Haible  <bruno@clisp.org>
5867
5868         Fix test dependencies.
5869         * modules/xstrtol-tests (Depends-on): Add inttypes.
5870         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
5871
5872 2010-01-25 Pádraig Brady <P@draigBrady.com>
5873
5874         syntax-check: detect incorrect boolean macro values in config.h
5875         * modules/maintainer-makefile (configure.ac): Parameterize the location
5876         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
5877         The logic is from Eric Blake and the location indicated by Jim Meyering.
5878         Note the more natural CONFIG_HEADER name is prohibited by automake
5879         for backwards compatibility reasons.
5880         * top/maint.mk (sc_Wundef_boolean): New rule.
5881
5882 2010-01-25  Jim Meyering  <meyering@redhat.com>
5883
5884         bootstrap: detect MacOS 10.6's shasum, too
5885         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
5886         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
5887
5888 2010-01-23  Jim Meyering  <meyering@redhat.com>
5889
5890         xstrtoll: new module
5891         * modules/xstrtoll: New file.
5892         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
5893         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
5894         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
5895         ./configure fails if you use this module and lack "long long".
5896         * modules/xstrtoll-tests: New module.
5897         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
5898         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
5899         new init.sh-based test framework.
5900
5901 2010-01-24  Bruno Haible  <bruno@clisp.org>
5902
5903         Tests for module 'yn'.
5904         * modules/yn-tests: New file.
5905         * tests/test-yn.c: New file.
5906
5907         Tests for module 'y1'.
5908         * modules/y1-tests: New file.
5909         * tests/test-y1.c: New file.
5910
5911         Tests for module 'y0'.
5912         * modules/y0-tests: New file.
5913         * tests/test-y0.c: New file.
5914
5915         Tests for module 'tanh'.
5916         * modules/tanh-tests: New file.
5917         * tests/test-tanh.c: New file.
5918
5919         Tests for module 'tan'.
5920         * modules/tan-tests: New file.
5921         * tests/test-tan.c: New file.
5922
5923         Tests for module 'sqrt'.
5924         * modules/sqrt-tests: New file.
5925         * tests/test-sqrt.c: New file.
5926
5927         Tests for module 'sinh'.
5928         * modules/sinh-tests: New file.
5929         * tests/test-sinh.c: New file.
5930
5931         Tests for module 'sin'.
5932         * modules/sin-tests: New file.
5933         * tests/test-sin.c: New file.
5934
5935         Tests for module 'rint'.
5936         * modules/rint-tests: New file.
5937         * tests/test-rint.c: New file.
5938
5939         Tests for module 'remainder'.
5940         * modules/remainder-tests: New file.
5941         * tests/test-remainder.c: New file.
5942
5943         Tests for module 'pow'.
5944         * modules/pow-tests: New file.
5945         * tests/test-pow.c: New file.
5946
5947         Tests for module 'nextafter'.
5948         * modules/nextafter-tests: New file.
5949         * tests/test-nextafter.c: New file.
5950
5951         Tests for module 'modf'.
5952         * modules/modf-tests: New file.
5953         * tests/test-modf.c: New file.
5954
5955         Tests for module 'logb'.
5956         * modules/logb-tests: New file.
5957         * tests/test-logb.c: New file.
5958
5959         Tests for module 'log1p'.
5960         * modules/log1p-tests: New file.
5961         * tests/test-log1p.c: New file.
5962
5963         Tests for module 'log10'.
5964         * modules/log10-tests: New file.
5965         * tests/test-log10.c: New file.
5966
5967         Tests for module 'log'.
5968         * modules/log-tests: New file.
5969         * tests/test-log.c: New file.
5970
5971         Tests for module 'lgamma'.
5972         * modules/lgamma-tests: New file.
5973         * tests/test-lgamma.c: New file.
5974
5975         Tests for module 'ldexp'.
5976         * modules/ldexp-tests: New file.
5977         * tests/test-ldexp.c: New file.
5978
5979         Tests for module 'jn'.
5980         * modules/jn-tests: New file.
5981         * tests/test-jn.c: New file.
5982
5983         Tests for module 'j1'.
5984         * modules/j1-tests: New file.
5985         * tests/test-j1.c: New file.
5986
5987         Tests for module 'j0'.
5988         * modules/j0-tests: New file.
5989         * tests/test-j0.c: New file.
5990
5991         Tests for module 'hypot'.
5992         * modules/hypot-tests: New file.
5993         * tests/test-hypot.c: New file.
5994
5995         Tests for module 'fmod'.
5996         * modules/fmod-tests: New file.
5997         * tests/test-fmod.c: New file.
5998
5999         Tests for module 'fabs'.
6000         * modules/fabs-tests: New file.
6001         * tests/test-fabs.c: New file.
6002
6003         Tests for module 'exp'.
6004         * modules/exp-tests: New file.
6005         * tests/test-exp.c: New file.
6006
6007         Tests for module 'erfc'.
6008         * modules/erfc-tests: New file.
6009         * tests/test-erfc.c: New file.
6010
6011         Tests for module 'erf'.
6012         * modules/erf-tests: New file.
6013         * tests/test-erf.c: New file.
6014
6015         Tests for module 'cosh'.
6016         * modules/cosh-tests: New file.
6017         * tests/test-cosh.c: New file.
6018
6019         Tests for module 'cos'.
6020         * modules/cos-tests: New file.
6021         * tests/test-cos.c: New file.
6022
6023         Tests for module 'copysign'.
6024         * modules/copysign-tests: New file.
6025         * tests/test-copysign.c: New file.
6026
6027         Tests for module 'cbrt'.
6028         * modules/cbrt-tests: New file.
6029         * tests/test-cbrt.c: New file.
6030
6031         Tests for module 'atan2'.
6032         * modules/atan2-tests: New file.
6033         * tests/test-atan2.c: New file.
6034
6035         Tests for module 'atan'.
6036         * modules/atan-tests: New file.
6037         * tests/test-atan.c: New file.
6038
6039         Tests for module 'asin'.
6040         * modules/asin-tests: New file.
6041         * tests/test-asin.c: New file.
6042
6043         Tests for module 'acos'.
6044         * modules/acos-tests: New file.
6045         * tests/test-acos.c: New file.
6046
6047 2010-01-24  Bruno Haible  <bruno@clisp.org>
6048
6049         Fix tests for common <math.h> functions.
6050         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6051         code snippet that references the function pointer, rather than merely
6052         calling the function. Substitute the FUNC_LIBM variable.
6053         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6054         * modules/acos (configure.ac): Likewise.
6055         * modules/asin (configure.ac): Likewise.
6056         * modules/atan (configure.ac): Likewise.
6057         * modules/atan2 (configure.ac): Likewise.
6058         * modules/cbrt (configure.ac): Likewise.
6059         * modules/copysign (configure.ac): Likewise.
6060         * modules/cos (configure.ac): Likewise.
6061         * modules/cosh (configure.ac): Likewise.
6062         * modules/erf (configure.ac): Likewise.
6063         * modules/erfc (configure.ac): Likewise.
6064         * modules/exp (configure.ac): Likewise.
6065         * modules/fabs (configure.ac): Likewise.
6066         * modules/fmod (configure.ac): Likewise.
6067         * modules/hypot (configure.ac): Likewise.
6068         * modules/j0 (configure.ac): Likewise.
6069         * modules/j1 (configure.ac): Likewise.
6070         * modules/jn (configure.ac): Likewise.
6071         * modules/ldexp (configure.ac): Likewise.
6072         * modules/lgamma (configure.ac): Likewise.
6073         * modules/log (configure.ac): Likewise.
6074         * modules/log10 (configure.ac): Likewise.
6075         * modules/log1p (configure.ac): Likewise.
6076         * modules/logb (configure.ac): Likewise.
6077         * modules/modf (configure.ac): Likewise.
6078         * modules/nextafter (configure.ac): Likewise.
6079         * modules/pow (configure.ac): Likewise.
6080         * modules/remainder (configure.ac): Likewise.
6081         * modules/rint (configure.ac): Likewise.
6082         * modules/sin (configure.ac): Likewise.
6083         * modules/sinh (configure.ac): Likewise.
6084         * modules/tan (configure.ac): Likewise.
6085         * modules/tanh (configure.ac): Likewise.
6086         * modules/y0 (configure.ac): Likewise.
6087         * modules/y1 (configure.ac): Likewise.
6088         * modules/yn (configure.ac): Likewise.
6089
6090 2010-01-24  Bruno Haible  <bruno@clisp.org>
6091
6092         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6093         * tests/test-acosl.c (x): New variable.
6094         (main): Store argument in x and fetch it from x.
6095         * tests/test-asinl.c (x): New variable.
6096         (main): Store argument in x and fetch it from x.
6097         * tests/test-atanl.c (x): New variable.
6098         (main): Store argument in x and fetch it from x.
6099         * tests/test-cosl.c (x): New variable.
6100         (main): Store argument in x and fetch it from x.
6101         * tests/test-expl.c (x): New variable.
6102         (main): Store argument in x and fetch it from x.
6103         * tests/test-logl.c (x): New variable.
6104         (main): Store argument in x and fetch it from x.
6105         * tests/test-sinl.c (x): New variable.
6106         (main): Store argument in x and fetch it from x.
6107         * tests/test-sqrtl.c (x): New variable.
6108         (main): Store argument in x and fetch it from x.
6109         * tests/test-tanl.c (x): New variable.
6110         (main): Store argument in x and fetch it from x.
6111
6112 2010-01-24  Bruno Haible  <bruno@clisp.org>
6113
6114         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6115         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6116         assignments to the initial TESTS_ENVIRONMENT.
6117         * doc/gnulib.texi (Unit test modules): Document it.
6118         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6119         TESTS_ENVIRONMENT.
6120         * modules/btowc-tests (Makefile.am): Likewise.
6121         * modules/c-stack-tests (Makefile.am): Likewise.
6122         * modules/c-strcase-tests (Makefile.am): Likewise.
6123         * modules/copy-file-tests (Makefile.am): Likewise.
6124         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6125         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6126         * modules/mbrtowc-tests (Makefile.am): Likewise.
6127         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6128         * modules/mbscasestr-tests (Makefile.am): Likewise.
6129         * modules/mbschr-tests (Makefile.am): Likewise.
6130         * modules/mbscspn-tests (Makefile.am): Likewise.
6131         * modules/mbsinit-tests (Makefile.am): Likewise.
6132         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6133         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6134         * modules/mbspbrk-tests (Makefile.am): Likewise.
6135         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6136         * modules/mbsrchr-tests (Makefile.am): Likewise.
6137         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6138         * modules/mbsspn-tests (Makefile.am): Likewise.
6139         * modules/mbsstr-tests (Makefile.am): Likewise.
6140         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6141         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6142         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6143         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6144         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6145         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6146         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6147         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6148         * modules/wcrtomb-tests (Makefile.am): Likewise.
6149         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6150         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6151         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6152         assignments from TESTS_ENVIRONMENT.
6153         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6154         augmentation.
6155         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6156         * modules/atexit-tests (Makefile.am): Likewise.
6157         * modules/binary-io-tests (Makefile.am): Likewise.
6158         * modules/closein-tests (Makefile.am): Likewise.
6159         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6160         * modules/exclude-tests (Makefile.am): Likewise.
6161         * modules/fflush-tests (Makefile.am): Likewise.
6162         * modules/fpending-tests (Makefile.am): Likewise.
6163         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6164         * modules/freadahead-tests (Makefile.am): Likewise.
6165         * modules/freadptr-tests (Makefile.am): Likewise.
6166         * modules/freadseek-tests (Makefile.am): Likewise.
6167         * modules/fseek-tests (Makefile.am): Likewise.
6168         * modules/fseeko-tests (Makefile.am): Likewise.
6169         * modules/ftell-tests (Makefile.am): Likewise.
6170         * modules/ftello-tests (Makefile.am): Likewise.
6171         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6172         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6173         * modules/lseek-tests (Makefile.am): Likewise.
6174         * modules/parse-duration-tests (Makefile.am): Likewise.
6175         * modules/perror-tests (Makefile.am): Likewise.
6176         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6177         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6178         * modules/pipe-tests (Makefile.am): Likewise.
6179         * modules/pread-tests (Makefile.am): Likewise.
6180         * modules/printf-posix-tests (Makefile.am): Likewise.
6181         * modules/select-tests (Makefile.am): Likewise.
6182         * modules/sigpipe-tests (Makefile.am): Likewise.
6183         * modules/tsearch-tests (Makefile.am): Likewise.
6184         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6185         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6186         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6187         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6188         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6189         * modules/version-etc-tests (Makefile.am): Likewise.
6190         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6191         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6192         * modules/xalloc-die-tests (Makefile.am): Likewise.
6193         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6194         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6195         * modules/xstrtol-tests (Makefile.am): Likewise.
6196         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6197         * modules/yesno-tests (Makefile.am): Likewise.
6198         Suggested by Jim Meyering.
6199
6200 2010-01-24  Bruno Haible  <bruno@clisp.org>
6201
6202         More documentation.
6203         * doc/gnulib.texi (Writing modules): New chapter.
6204         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6205         the new chapter.
6206
6207 2010-01-24  Jim Meyering  <meyering@redhat.com>
6208
6209         maint.mk: do not prepend "./" after filtering
6210         * top/maint.mk (_prepend_srcdir_prefix): New variable
6211         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6212         "./" when $(srcdir) is ".".
6213
6214         define STREQ(a,b) consistently, removing useless parentheses
6215         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6216         since the only risk is that "a" or "b" contains an unparenthesized
6217         comma, but if either did that, STREQ would have 3 or more arguments.
6218         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6219         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6220         * lib/hash-triple.c (STREQ): Likewise.
6221         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6222         * lib/getugroups.c (STREQ): Likewise.
6223
6224 2010-01-23  Jim Meyering  <meyering@redhat.com>
6225
6226         maint.mk: fix syntax-check in a non-srcdir build directory
6227         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6228         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6229
6230 2010-01-22  Jim Meyering  <meyering@redhat.com>
6231
6232         userspec: add unit tests
6233         * tests/test-userspec.c: New file.
6234         * modules/userspec-tests: Likewise.
6235
6236 2010-01-21  Jim Meyering  <meyering@redhat.com>
6237
6238         maint.mk: handle source file names containing "." robustly
6239         * top/maint.mk (_dot_escaped_srcdir): Define.
6240         (VC_LIST): Use it in LHS of sed substitution.
6241
6242 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6243
6244         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6245         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6246         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6247         from a non-srcdir build.
6248
6249 2010-01-20  Eric Blake  <ebb9@byu.net>
6250
6251         warn-on-use: use instead of link-warning
6252         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6253         * modules/unistd (Depends-on, Makefile.am): Likewise.
6254         * modules/arpa_inet (Depends-on): Replace link-warning with
6255         warn-on-use.
6256         (Makefile.am): Update rules accordingly.
6257         * modules/ctype (Depends-on, Makefile.am): Likewise.
6258         * modules/dirent (Depends-on, Makefile.am): Likewise.
6259         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6260         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6261         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6262         * modules/locale (Depends-on, Makefile.am): Likewise.
6263         * modules/math (Depends-on, Makefile.am): Likewise.
6264         * modules/search (Depends-on, Makefile.am): Likewise.
6265         * modules/signal (Depends-on, Makefile.am): Likewise.
6266         * modules/spawn (Depends-on, Makefile.am): Likewise.
6267         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6268         * modules/string (Depends-on, Makefile.am): Likewise.
6269         * modules/strings (Depends-on, Makefile.am): Likewise.
6270         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6271         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6272         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6273         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6274         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6275         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6276         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6277         * modules/wchar (Depends-on, Makefile.am): Likewise.
6278         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6279         should be poisoned.
6280         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6281         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6282         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6283         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6284         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6285         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6286         * m4/math_h.m4 (gl_MATH_H): Likewise.
6287         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6288         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6289         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6290         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6291         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6292         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6293         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6294         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6295         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6298         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6299         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6300         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6301         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6302         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6303         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6304         GL_LINK_WARNING.
6305         * lib/ctype.in.h: Likewise.
6306         * lib/dirent.in.h: Likewise.
6307         * lib/fcntl.in.h: Likewise.
6308         * lib/inttypes.in.h: Likewise.
6309         * lib/langinfo.in.h: Likewise.
6310         * lib/locale.in.h: Likewise.
6311         * lib/math.in.h: Likewise.
6312         * lib/search.in.h: Likewise.
6313         * lib/signal.in.h: Likewise.
6314         * lib/spawn.in.h: Likewise.
6315         * lib/stdio.in.h: Likewise.
6316         * lib/stdlib.in.h: Likewise.
6317         * lib/string.in.h: Likewise.
6318         * lib/strings.in.h: Likewise.
6319         * lib/sys_file.in.h: Likewise.
6320         * lib/sys_ioctl.in.h: Likewise.
6321         * lib/sys_select.in.h: Likewise.
6322         * lib/sys_socket.in.h: Likewise.
6323         * lib/sys_stat.in.h: Likewise.
6324         * lib/sys_times.in.h: Likewise.
6325         * lib/sys_utsname.in.h: Likewise.
6326         * lib/unistd.in.h: Likewise.
6327         * lib/wchar.in.h: Likewise.
6328
6329 2010-01-20  Bruno Haible  <bruno@clisp.org>
6330
6331         Avoid duplicate -lm.
6332         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6333         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6335         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6336         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6337         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6338         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6339         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6340         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6341         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6342         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6343         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6344         Reported by Paolo Bonzini.
6345
6346 2010-01-19  Bruno Haible  <bruno@clisp.org>
6347
6348         langinfo, nl_langinfo: Relicense under LGPLv2+.
6349         * modules/langinfo (License): Change to LGPLv2+.
6350         * modules/nl_langinfo (License): Likewise.
6351         Patch by David Lutterkort <lutter@redhat.com>.
6352
6353 2010-01-19  Bruno Haible  <bruno@clisp.org>
6354
6355         Avoid compilation error with cc on OSF/1 5.1.
6356         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6357         statement, not before.
6358         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6359
6360 2010-01-18  Bruno Haible  <bruno@clisp.org>
6361
6362         Avoid a link error due to the __printf__ symbol.
6363         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6364         and 2.6.x.
6365         (__format__, __printf__): Remove definitions.
6366         * lib/argp-fmtstream.h: Likewise.
6367         * lib/argp.h: Likewise.
6368         * lib/error.h: Likewise.
6369         * lib/vasnprintf.h: Likewise.
6370         * lib/xprintf.h: Likewise.
6371         * lib/xvasprintf.h: Likewise.
6372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6373
6374 2010-01-18  Bruno Haible  <bruno@clisp.org>
6375
6376         Tests for module 'tanl'.
6377         * modules/tanl-tests: New file.
6378         * tests/test-tanl.c: New file.
6379
6380         Tests for module 'sqrtl'.
6381         * modules/sqrtl-tests: New file.
6382         * tests/test-sqrtl.c: New file.
6383
6384         Tests for module 'sinl'.
6385         * modules/sinl-tests: New file.
6386         * tests/test-sinl.c: New file.
6387
6388         Tests for module 'logl'.
6389         * modules/logl-tests: New file.
6390         * tests/test-logl.c: New file.
6391
6392         Tests for module 'expl'.
6393         * modules/expl-tests: New file.
6394         * tests/test-expl.c: New file.
6395
6396         Tests for module 'cosl'.
6397         * modules/cosl-tests: New file.
6398         * tests/test-cosl.c: New file.
6399
6400         Tests for module 'atanl'.
6401         * modules/atanl-tests: New file.
6402         * tests/test-atanl.c: New file.
6403
6404         Tests for module 'asinl'.
6405         * modules/asinl-tests: New file.
6406         * tests/test-asinl.c: New file.
6407
6408         Tests for module 'acosl'.
6409         * modules/acosl-tests: New file.
6410         * tests/test-acosl.c: New file.
6411
6412         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6413         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6414         tanl): Use the standard gnulib idiom.
6415         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6416         * lib/sinl.c: Likewise.
6417         * lib/tanl.c: Don't include trigl.c.
6418         (kernel_tanl): Make static.
6419         * lib/sincosl.c: Include trigl.h first.
6420         * lib/trigl.c: Likewise.
6421         * m4/acosl.m4: New file.
6422         * m4/asinl.m4: New file.
6423         * m4/atanl.m4: New file.
6424         * m4/cosl.m4: New file.
6425         * m4/expl.m4: New file.
6426         * m4/logl.m4: New file.
6427         * m4/sinl.m4: New file.
6428         * m4/sqrtl.m4: New file.
6429         * m4/tanl.m4: New file.
6430         * m4/mathl.m4: Remove file.
6431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6432         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6433         Don't initialize GNULIB_MATHL.
6434         * modules/acosl: New file.
6435         * modules/asinl: New file.
6436         * modules/atanl: New file.
6437         * modules/cosl: New file.
6438         * modules/expl: New file.
6439         * modules/logl: New file.
6440         * modules/sinl: New file.
6441         * modules/sqrtl: New file.
6442         * modules/tanl: New file.
6443         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6444         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6445         substitute GNULIB_MATHL.
6446         * modules/mathl: Rewritten.
6447         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6448         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6449         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6450         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6451         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6452         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6453         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6454         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6455         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6456
6457 2010-01-18  Bruno Haible  <bruno@clisp.org>
6458
6459         sqrt: Make gl_FUNC_SQRT requirable.
6460         * m4/sqrt.m4: New file.
6461         * modules/sqrt (Files): Add it.
6462         (configure.ac): Invoke gl_FUNC_SQRT.
6463
6464 2010-01-18  Bruno Haible  <bruno@clisp.org>
6465
6466         New modules for common <math.h> functions.
6467         * m4/mathfunc.m4: New file.
6468         * modules/acos: New file.
6469         * modules/asin: New file.
6470         * modules/atan: New file.
6471         * modules/atan2: New file.
6472         * modules/cbrt: New file.
6473         * modules/copysign: New file.
6474         * modules/cos: New file.
6475         * modules/cosh: New file.
6476         * modules/erf: New file.
6477         * modules/erfc: New file.
6478         * modules/exp: New file.
6479         * modules/fabs: New file.
6480         * modules/fmod: New file.
6481         * modules/hypot: New file.
6482         * modules/j0: New file.
6483         * modules/j1: New file.
6484         * modules/jn: New file.
6485         * modules/ldexp: New file.
6486         * modules/lgamma: New file.
6487         * modules/log: New file.
6488         * modules/log10: New file.
6489         * modules/log1p: New file.
6490         * modules/logb: New file.
6491         * modules/modf: New file.
6492         * modules/nextafter: New file.
6493         * modules/pow: New file.
6494         * modules/remainder: New file.
6495         * modules/rint: New file.
6496         * modules/sin: New file.
6497         * modules/sinh: New file.
6498         * modules/sqrt: New file.
6499         * modules/tan: New file.
6500         * modules/tanh: New file.
6501         * modules/y0: New file.
6502         * modules/y1: New file.
6503         * modules/yn: New file.
6504         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6505         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6506         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6507         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6508         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6509         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6510         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6511         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6512         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6513         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6514         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6515         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6516         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6517         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6518         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6519         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6520         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6521         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6522         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6523         * doc/posix-functions/log.texi: Mention the 'log' module.
6524         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6525         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6526         * doc/posix-functions/logb.texi: Mention the 'logb' module.
6527         * doc/posix-functions/modf.texi: Mention the 'modf' module.
6528         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
6529         * doc/posix-functions/pow.texi: Mention the 'pow' module.
6530         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
6531         * doc/posix-functions/rint.texi: Mention the 'rint' module.
6532         * doc/posix-functions/sin.texi: Mention the 'sin' module.
6533         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
6534         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
6535         * doc/posix-functions/tan.texi: Mention the 'tan' module.
6536         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
6537         * doc/posix-functions/y0.texi: Mention the 'y0' module.
6538         * doc/posix-functions/y1.texi: Mention the 'y1' module.
6539         * doc/posix-functions/yn.texi: Mention the 'yn' module.
6540
6541 2010-01-18  Jim Meyering  <meyering@redhat.com>
6542
6543         ignore-value: relax license to LGPLv2+
6544         * modules/ignore-value (License): Relax to LGPLv2+.
6545
6546         getdate: don't leak when TZ contains two or more '"'s
6547         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
6548         double quote in TZ after the first one.
6549
6550         readtokens: do not leak internal token_lengths buffer
6551         * lib/readtokens.c (readtokens): Free the local, lengths,
6552         when the supplied "token_lengths" parameter is NULL.
6553
6554 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6555
6556         Fix a couple of missing LIBTHREAD link failures on AIX.
6557         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
6558         $(LIBTHREAD).
6559         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
6560
6561         Link test-poll against INET_PTON_LIB.
6562         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
6563         for inet_pton on Solaris 10.
6564
6565 2010-01-17  Bruno Haible  <bruno@clisp.org>
6566
6567         unistdio/*-sprintf: Fix typo in module description.
6568         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
6569         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
6570         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
6571         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
6572         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
6573         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
6574         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
6575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6576
6577 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6578
6579         gnulib-tool: fix filelist for AIX, HP-UX ksh.
6580         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
6581         variables in shell case patterns, for AIX and HP-UX ksh.
6582
6583         Split large sed scripts, for HP-UX sed.
6584         * modules/stdio: Split sed scripts around 50 sed commands,
6585         to avoid HP-UX limit of 99 commands, in the near future.
6586         * modules/string: Likewise.
6587         * modules/unistd: Likewise.
6588
6589         gnulib-tool: avoid writing in the current directory.
6590         * gnulib-tool (func_emit_lib_Makefile_am)
6591         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
6592         not in the current directory, so concurrent gnulib-tool
6593         instances do not interfere.
6594
6595 2010-01-16  Jim Meyering  <meyering@redhat.com>
6596
6597         doc: update users.txt
6598         * users.txt: Add grep.
6599         (diffutils, gzip): Update URLs.
6600
6601 2010-01-12  Bruno Haible  <bruno@clisp.org>
6602
6603         posix_spawn: Avoid test failure on Cygwin.
6604         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
6605         characters.
6606         Reported by Simon Josefsson.
6607
6608 2010-01-12  Bruno Haible  <bruno@clisp.org>
6609
6610         * tests/test-cond.c (main): When skipping the test, show the reason.
6611
6612 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6613
6614         * lib/striconv.c (str_cd_iconv): Avoid if before free.
6615
6616 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6617
6618         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
6619         VC_LIST_ALWAYS_EXCLUDE_REGEX.
6620
6621 2010-01-12  Eric Blake  <ebb9@byu.net>
6622
6623         build: guarantee AS_VAR_IF
6624         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
6625         (gl_AS_VAR_IF): Move...
6626         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
6627         Reported by Simon Josefsson.
6628
6629 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6630
6631         * lib/stdio.in.h: Fix typo.
6632
6633 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6634
6635         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
6636         libgpg-error.
6637
6638 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6639
6640         * tests/test-xalloc-die.sh: Use $EXEEXT.
6641
6642 2010-01-12  Simon Josefsson  <simon@josefsson.org>
6643             Bruno Haible  <bruno@clisp.org>
6644
6645         getlogin, getlogin_r: Avoid test failure.
6646         * tests/test-getlogin.c: Include <stdio.h>.
6647         (main): Skip the test when the function fails because stdin is not a
6648         tty.
6649         * tests/test-getlogin_r.c: Include <stdio.h>.
6650         (main): Skip the test when the function fails because stdin is not a
6651         tty.
6652
6653 2010-01-11  Eric Blake  <ebb9@byu.net>
6654
6655         tests: avoid more large file warnings
6656         * tests/test-fflush.c: Avoid warning about ftell use.
6657         * tests/test-fseek.c: Avoid warning about fseek use.
6658
6659 2010-01-10  Bruno Haible  <bruno@clisp.org>
6660
6661         nproc: Work better on Linux when /proc and /sys are not mounted.
6662         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
6663         as lower bound when, on glibc/Linux systems,
6664         sysconf (_SC_NPROCESSORS_CONF) returns 1.
6665         Suggested by Pádraig Brady <P@draigbrady.com>.
6666         Reported by Dmitry V. Levin <ldv@altlinux.org>.
6667
6668         nproc: Refactor.
6669         * lib/nproc.c (num_processors_via_affinity_mask): New function,
6670         extracted from num_processors.
6671         (num_processors): Call it.
6672
6673 2010-01-11  Jim Meyering  <meyering@redhat.com>
6674
6675         utimecmp: avoid new warning from upcoming gcc-4.5.0
6676         * lib/utimecmp.c (BILLION): Define using #define rather than an
6677         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
6678
6679 2010-01-11  Eric Blake  <ebb9@byu.net>
6680
6681         math: add portability warnings for classification macros
6682         * modules/math (Depends-on): Add warn-on-use.
6683         (Makefile.am): Provide new substitutions.
6684         * m4/math_h.m4 (gl_MATH_H): Require inline.
6685         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
6686         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
6687         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
6688         implement warnings.
6689
6690         unistd: warn on use of environ without module
6691         * modules/unistd (Depends-on): Add warn-on-use.
6692         (Makefile.am): Provide new substitutions.
6693         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
6694         * lib/unistd.in.h (environ): Wrap with a warning helper function.
6695
6696         stdio: warn on suspicious uses
6697         * modules/stdio (Depends-on): Add warn-on-use.
6698         (Makefile.am): Provide new substitutions.
6699         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
6700         fseeko.
6701         * lib/stdio.in.h (gets): Always warn on use.
6702         (fseek, ftell): Adjust when warnings are issued, and honor
6703         _GL_NO_LARGE_FILES as a way to silence the warning.
6704         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
6705         any warning about large file offsets.
6706         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
6707         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
6708         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
6709         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
6710         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
6711         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
6712         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
6713         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
6714
6715         warn-on-use: new module
6716         * modules/warn-on-use: New file.
6717         * build-aux/warn-on-use.h: Likewise.
6718         * m4/warn-on-use.m4: Likewise.
6719         * MODULES.html.sh (Support for building): Mention it.
6720
6721 2010-01-10  Bruno Haible  <bruno@clisp.org>
6722
6723         Tests for module 'unistr/u32-strdup'.
6724         * modules/unistr/u32-strdup-tests: New file.
6725         * tests/unistr/test-u32-strdup.c: New file.
6726
6727         Tests for module 'unistr/u16-strdup'.
6728         * modules/unistr/u16-strdup-tests: New file.
6729         * tests/unistr/test-u16-strdup.c: New file.
6730
6731         Tests for module 'unistr/u8-strdup'.
6732         * modules/unistr/u8-strdup-tests: New file.
6733         * tests/unistr/test-u8-strdup.c: New file.
6734         * tests/unistr/test-strdup.h: New file.
6735
6736         Tests for module 'unistr/u32-strncmp'.
6737         * modules/unistr/u32-strncmp-tests: New file.
6738         * tests/unistr/test-u32-strncmp.c: New file.
6739
6740         Tests for module 'unistr/u16-strncmp'.
6741         * modules/unistr/u16-strncmp-tests: New file.
6742         * tests/unistr/test-u16-strncmp.c: New file.
6743
6744         Tests for module 'unistr/u8-strncmp'.
6745         * modules/unistr/u8-strncmp-tests: New file.
6746         * tests/unistr/test-u8-strncmp.c: New file.
6747         * tests/unistr/test-strncmp.h: New file.
6748
6749         Tests for module 'unistr/u32-strcoll'.
6750         * modules/unistr/u32-strcoll-tests: New file.
6751         * tests/unistr/test-u32-strcoll.c: New file.
6752
6753         Tests for module 'unistr/u16-strcoll'.
6754         * modules/unistr/u16-strcoll-tests: New file.
6755         * tests/unistr/test-u16-strcoll.c: New file.
6756
6757         Tests for module 'unistr/u8-strcoll'.
6758         * modules/unistr/u8-strcoll-tests: New file.
6759         * tests/unistr/test-u8-strcoll.c: New file.
6760
6761         Tests for module 'unistr/u32-strcmp'.
6762         * modules/unistr/u32-strcmp-tests: New file.
6763         * tests/unistr/test-u32-strcmp.c: New file.
6764         * tests/unistr/test-u32-strcmp.h: New file.
6765
6766         Tests for module 'unistr/u16-strcmp'.
6767         * modules/unistr/u16-strcmp-tests: New file.
6768         * tests/unistr/test-u16-strcmp.c: New file.
6769         * tests/unistr/test-u16-strcmp.h: New file.
6770
6771         Tests for module 'unistr/u8-strcmp'.
6772         * modules/unistr/u8-strcmp-tests: New file.
6773         * tests/unistr/test-u8-strcmp.c: New file.
6774         * tests/unistr/test-u8-strcmp.h: New file.
6775         * tests/unistr/test-strcmp.h: New file.
6776
6777         Tests for module 'unistr/u32-strncat'.
6778         * modules/unistr/u32-strncat-tests: New file.
6779         * tests/unistr/test-u32-strncat.c: New file.
6780
6781         Tests for module 'unistr/u16-strncat'.
6782         * modules/unistr/u16-strncat-tests: New file.
6783         * tests/unistr/test-u16-strncat.c: New file.
6784
6785         Tests for module 'unistr/u8-strncat'.
6786         * modules/unistr/u8-strncat-tests: New file.
6787         * tests/unistr/test-u8-strncat.c: New file.
6788         * tests/unistr/test-strncat.h: New file.
6789
6790         Tests for module 'unistr/u32-strcat'.
6791         * modules/unistr/u32-strcat-tests: New file.
6792         * tests/unistr/test-u32-strcat.c: New file.
6793
6794         Tests for module 'unistr/u16-strcat'.
6795         * modules/unistr/u16-strcat-tests: New file.
6796         * tests/unistr/test-u16-strcat.c: New file.
6797
6798         Tests for module 'unistr/u8-strcat'.
6799         * modules/unistr/u8-strcat-tests: New file.
6800         * tests/unistr/test-u8-strcat.c: New file.
6801         * tests/unistr/test-strcat.h: New file.
6802
6803         Tests for module 'unistr/u32-stpncpy'.
6804         * modules/unistr/u32-stpncpy-tests: New file.
6805         * tests/unistr/test-u32-stpncpy.c: New file.
6806
6807         Tests for module 'unistr/u16-stpncpy'.
6808         * modules/unistr/u16-stpncpy-tests: New file.
6809         * tests/unistr/test-u16-stpncpy.c: New file.
6810
6811         Tests for module 'unistr/u8-stpncpy'.
6812         * modules/unistr/u8-stpncpy-tests: New file.
6813         * tests/unistr/test-u8-stpncpy.c: New file.
6814         * tests/unistr/test-stpncpy.h: New file.
6815
6816         Tests for module 'unistr/u32-strncpy'.
6817         * modules/unistr/u32-strncpy-tests: New file.
6818         * tests/unistr/test-u32-strncpy.c: New file.
6819
6820         Tests for module 'unistr/u16-strncpy'.
6821         * modules/unistr/u16-strncpy-tests: New file.
6822         * tests/unistr/test-u16-strncpy.c: New file.
6823
6824         Tests for module 'unistr/u8-strncpy'.
6825         * modules/unistr/u8-strncpy-tests: New file.
6826         * tests/unistr/test-u8-strncpy.c: New file.
6827         * tests/unistr/test-strncpy.h: New file.
6828
6829         Tests for module 'unistr/u32-stpcpy'.
6830         * modules/unistr/u32-stpcpy-tests: New file.
6831         * tests/unistr/test-u32-stpcpy.c: New file.
6832
6833         Tests for module 'unistr/u16-stpcpy'.
6834         * modules/unistr/u16-stpcpy-tests: New file.
6835         * tests/unistr/test-u16-stpcpy.c: New file.
6836
6837         Tests for module 'unistr/u8-stpcpy'.
6838         * modules/unistr/u8-stpcpy-tests: New file.
6839         * tests/unistr/test-u8-stpcpy.c: New file.
6840         * tests/unistr/test-stpcpy.h: New file.
6841
6842         Tests for module 'unistr/u32-strcpy'.
6843         * modules/unistr/u32-strcpy-tests: New file.
6844         * tests/unistr/test-u32-strcpy.c: New file.
6845
6846         Tests for module 'unistr/u16-strcpy'.
6847         * modules/unistr/u16-strcpy-tests: New file.
6848         * tests/unistr/test-u16-strcpy.c: New file.
6849
6850         Tests for module 'unistr/u8-strcpy'.
6851         * modules/unistr/u8-strcpy-tests: New file.
6852         * tests/unistr/test-u8-strcpy.c: New file.
6853         * tests/unistr/test-strcpy.h: New file.
6854
6855         Tests for module 'unistr/u32-strnlen'.
6856         * modules/unistr/u32-strnlen-tests: New file.
6857         * tests/unistr/test-u32-strnlen.c: New file.
6858
6859         Tests for module 'unistr/u16-strnlen'.
6860         * modules/unistr/u16-strnlen-tests: New file.
6861         * tests/unistr/test-u16-strnlen.c: New file.
6862
6863         Tests for module 'unistr/u8-strnlen'.
6864         * modules/unistr/u8-strnlen-tests: New file.
6865         * tests/unistr/test-u8-strnlen.c: New file.
6866         * tests/unistr/test-strnlen.h: New file.
6867
6868         Tests for module 'unistr/u32-strlen'.
6869         * modules/unistr/u32-strlen-tests: New file.
6870         * tests/unistr/test-u32-strlen.c: New file.
6871
6872         Tests for module 'unistr/u16-strlen'.
6873         * modules/unistr/u16-strlen-tests: New file.
6874         * tests/unistr/test-u16-strlen.c: New file.
6875
6876         Tests for module 'unistr/u8-strlen'.
6877         * modules/unistr/u8-strlen-tests: New file.
6878         * tests/unistr/test-u8-strlen.c: New file.
6879
6880         Tests for module 'unistr/u32-prev'.
6881         * modules/unistr/u32-prev-tests: New file.
6882         * tests/unistr/test-u32-prev.c: New file.
6883
6884         Tests for module 'unistr/u16-prev'.
6885         * modules/unistr/u16-prev-tests: New file.
6886         * tests/unistr/test-u16-prev.c: New file.
6887
6888         Tests for module 'unistr/u8-prev'.
6889         * modules/unistr/u8-prev-tests: New file.
6890         * tests/unistr/test-u8-prev.c: New file.
6891
6892         Tests for module 'unistr/u32-next'.
6893         * modules/unistr/u32-next-tests: New file.
6894         * tests/unistr/test-u32-next.c: New file.
6895
6896         Tests for module 'unistr/u16-next'.
6897         * modules/unistr/u16-next-tests: New file.
6898         * tests/unistr/test-u16-next.c: New file.
6899
6900         Tests for module 'unistr/u8-next'.
6901         * modules/unistr/u8-next-tests: New file.
6902         * tests/unistr/test-u8-next.c: New file.
6903
6904         Tests for module 'unistr/u32-strmbtouc'.
6905         * modules/unistr/u32-strmbtouc-tests: New file.
6906         * tests/unistr/test-u32-strmbtouc.c: New file.
6907
6908         Tests for module 'unistr/u16-strmbtouc'.
6909         * modules/unistr/u16-strmbtouc-tests: New file.
6910         * tests/unistr/test-u16-strmbtouc.c: New file.
6911
6912         Tests for module 'unistr/u8-strmbtouc'.
6913         * modules/unistr/u8-strmbtouc-tests: New file.
6914         * tests/unistr/test-u8-strmbtouc.c: New file.
6915
6916         Tests for module 'unistr/u32-strmblen'.
6917         * modules/unistr/u32-strmblen-tests: New file.
6918         * tests/unistr/test-u32-strmblen.c: New file.
6919
6920         Tests for module 'unistr/u16-strmblen'.
6921         * modules/unistr/u16-strmblen-tests: New file.
6922         * tests/unistr/test-u16-strmblen.c: New file.
6923
6924         Tests for module 'unistr/u8-strmblen'.
6925         * modules/unistr/u8-strmblen-tests: New file.
6926         * tests/unistr/test-u8-strmblen.c: New file.
6927
6928         Tests for module 'unistr/u32-cpy-alloc'.
6929         * modules/unistr/u32-cpy-alloc-tests: New file.
6930         * tests/unistr/test-u32-cpy-alloc.c: New file.
6931
6932         Tests for module 'unistr/u16-cpy-alloc'.
6933         * modules/unistr/u16-cpy-alloc-tests: New file.
6934         * tests/unistr/test-u16-cpy-alloc.c: New file.
6935
6936         Tests for module 'unistr/u8-cpy-alloc'.
6937         * modules/unistr/u8-cpy-alloc-tests: New file.
6938         * tests/unistr/test-u8-cpy-alloc.c: New file.
6939         * tests/unistr/test-cpy-alloc.h: New file.
6940
6941         Tests for module 'unistr/u32-mbsnlen'.
6942         * modules/unistr/u32-mbsnlen-tests: New file.
6943         * tests/unistr/test-u32-mbsnlen.c: New file.
6944
6945         Tests for module 'unistr/u16-mbsnlen'.
6946         * modules/unistr/u16-mbsnlen-tests: New file.
6947         * tests/unistr/test-u16-mbsnlen.c: New file.
6948
6949         Tests for module 'unistr/u8-mbsnlen'.
6950         * modules/unistr/u8-mbsnlen-tests: New file.
6951         * tests/unistr/test-u8-mbsnlen.c: New file.
6952
6953         Tests for module 'unistr/u32-chr'.
6954         * modules/unistr/u32-chr-tests: New file.
6955         * tests/unistr/test-u32-chr.c: New file.
6956
6957         Tests for module 'unistr/u16-chr'.
6958         * modules/unistr/u16-chr-tests: New file.
6959         * tests/unistr/test-u16-chr.c: New file.
6960
6961         Tests for module 'unistr/u8-chr'.
6962         * modules/unistr/u8-chr-tests: New file.
6963         * tests/unistr/test-u8-chr.c: New file.
6964         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
6965
6966         Tests for module 'unistr/u32-cmp2'.
6967         * modules/unistr/u32-cmp2-tests: New file.
6968         * tests/unistr/test-u32-cmp2.c: New file.
6969
6970         Tests for module 'unistr/u16-cmp2'.
6971         * modules/unistr/u16-cmp2-tests: New file.
6972         * tests/unistr/test-u16-cmp2.c: New file.
6973
6974         Tests for module 'unistr/u8-cmp2'.
6975         * modules/unistr/u8-cmp2-tests: New file.
6976         * tests/unistr/test-u8-cmp2.c: New file.
6977         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
6978
6979         Tests for module 'unistr/u32-cmp'.
6980         * modules/unistr/u32-cmp-tests: New file.
6981         * tests/unistr/test-u32-cmp.c: New file.
6982
6983         Tests for module 'unistr/u16-cmp'.
6984         * modules/unistr/u16-cmp-tests: New file.
6985         * tests/unistr/test-u16-cmp.c: New file.
6986
6987         Tests for module 'unistr/u8-cmp'.
6988         * modules/unistr/u8-cmp-tests: New file.
6989         * tests/unistr/test-u8-cmp.c: New file.
6990         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
6991
6992         Tests for module 'unistr/u32-set'.
6993         * modules/unistr/u32-set-tests: New file.
6994         * tests/unistr/test-u32-set.c: New file.
6995
6996         Tests for module 'unistr/u16-set'.
6997         * modules/unistr/u16-set-tests: New file.
6998         * tests/unistr/test-u16-set.c: New file.
6999
7000         Tests for module 'unistr/u8-set'.
7001         * modules/unistr/u8-set-tests: New file.
7002         * tests/unistr/test-u8-set.c: New file.
7003         * tests/unistr/test-set.h: New file.
7004
7005         Tests for module 'unistr/u32-move'.
7006         * modules/unistr/u32-move-tests: New file.
7007         * tests/unistr/test-u32-move.c: New file.
7008
7009         Tests for module 'unistr/u16-move'.
7010         * modules/unistr/u16-move-tests: New file.
7011         * tests/unistr/test-u16-move.c: New file.
7012
7013         Tests for module 'unistr/u8-move'.
7014         * modules/unistr/u8-move-tests: New file.
7015         * tests/unistr/test-u8-move.c: New file.
7016         * tests/unistr/test-move.h: New file.
7017
7018         Tests for module 'unistr/u32-cpy'.
7019         * modules/unistr/u32-cpy-tests: New file.
7020         * tests/unistr/test-u32-cpy.c: New file.
7021
7022         Tests for module 'unistr/u16-cpy'.
7023         * modules/unistr/u16-cpy-tests: New file.
7024         * tests/unistr/test-u16-cpy.c: New file.
7025
7026         Tests for module 'unistr/u8-cpy'.
7027         * modules/unistr/u8-cpy-tests: New file.
7028         * tests/unistr/test-u8-cpy.c: New file.
7029         * tests/unistr/test-cpy.h: New file.
7030
7031 2010-01-09  Bruno Haible  <bruno@clisp.org>
7032
7033         Tests for module 'unistr/u32-uctomb'.
7034         * modules/unistr/u32-uctomb-tests: New file.
7035         * tests/unistr/test-u32-uctomb.c: New file.
7036
7037         Tests for module 'unistr/u16-uctomb'.
7038         * modules/unistr/u16-uctomb-tests: New file.
7039         * tests/unistr/test-u16-uctomb.c: New file.
7040
7041         Tests for module 'unistr/u8-uctomb'.
7042         * modules/unistr/u8-uctomb-tests: New file.
7043         * tests/unistr/test-u8-uctomb.c: New file.
7044
7045         Tests for module 'unistr/u32-mbtoucr'.
7046         * modules/unistr/u32-mbtoucr-tests: New file.
7047         * tests/unistr/test-u32-mbtoucr.c: New file.
7048
7049         Tests for module 'unistr/u16-mbtoucr'.
7050         * modules/unistr/u16-mbtoucr-tests: New file.
7051         * tests/unistr/test-u16-mbtoucr.c: New file.
7052
7053         Tests for module 'unistr/u8-mbtoucr'.
7054         * modules/unistr/u8-mbtoucr-tests: New file.
7055         * tests/unistr/test-u8-mbtoucr.c: New file.
7056
7057         Tests for module 'unistr/u32-mbtouc'.
7058         * modules/unistr/u32-mbtouc-tests: New file.
7059         * tests/unistr/test-u32-mbtouc.c: New file.
7060
7061         Tests for module 'unistr/u16-mbtouc'.
7062         * modules/unistr/u16-mbtouc-tests: New file.
7063         * tests/unistr/test-u16-mbtouc.c: New file.
7064
7065         Tests for module 'unistr/u8-mbtouc'.
7066         * modules/unistr/u8-mbtouc-tests: New file.
7067         * tests/unistr/test-u8-mbtouc.c: New file.
7068
7069         Tests for module 'unistr/u32-mbtouc-unsafe'.
7070         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7071         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7072         * tests/unistr/test-u32-mbtouc.h: New file.
7073
7074         Tests for module 'unistr/u16-mbtouc-unsafe'.
7075         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7076         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7077         * tests/unistr/test-u16-mbtouc.h: New file.
7078
7079         Tests for module 'unistr/u8-mbtouc-unsafe'.
7080         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7081         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7082         * tests/unistr/test-u8-mbtouc.h: New file.
7083
7084         Tests for module 'unistr/u32-mblen'.
7085         * modules/unistr/u32-mblen-tests: New file.
7086         * tests/unistr/test-u32-mblen.c: New file.
7087
7088         Tests for module 'unistr/u16-mblen'.
7089         * modules/unistr/u16-mblen-tests: New file.
7090         * tests/unistr/test-u16-mblen.c: New file.
7091
7092         Tests for module 'unistr/u8-mblen'.
7093         * modules/unistr/u8-mblen-tests: New file.
7094         * tests/unistr/test-u8-mblen.c: New file.
7095
7096         Tests for module 'unistr/u32-to-u16'.
7097         * modules/unistr/u32-to-u16-tests: New file.
7098         * tests/unistr/test-u32-to-u16.c: New file.
7099
7100         Tests for module 'unistr/u32-to-u8'.
7101         * modules/unistr/u32-to-u8-tests: New file.
7102         * tests/unistr/test-u32-to-u8.c: New file.
7103
7104         Tests for module 'unistr/u16-to-u32'.
7105         * modules/unistr/u16-to-u32-tests: New file.
7106         * tests/unistr/test-u16-to-u32.c: New file.
7107
7108         Tests for module 'unistr/u16-to-u8'.
7109         * modules/unistr/u16-to-u8-tests: New file.
7110         * tests/unistr/test-u16-to-u8.c: New file.
7111
7112         Tests for module 'unistr/u8-to-u32'.
7113         * modules/unistr/u8-to-u32-tests: New file.
7114         * tests/unistr/test-u8-to-u32.c: New file.
7115
7116         Tests for module 'unistr/u8-to-u16'.
7117         * modules/unistr/u8-to-u16-tests: New file.
7118         * tests/unistr/test-u8-to-u16.c: New file.
7119
7120         Tests for module 'unistr/u32-check'.
7121         * modules/unistr/u32-check-tests: New file.
7122         * tests/unistr/test-u32-check.c: New file.
7123
7124         Tests for module 'unistr/u16-check'.
7125         * modules/unistr/u16-check-tests: New file.
7126         * tests/unistr/test-u16-check.c: New file.
7127
7128         Tests for module 'unistr/u8-check'.
7129         * modules/unistr/u8-check-tests: New file.
7130         * tests/unistr/test-u8-check.c: New file.
7131
7132         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7133         (category_equals): New function.
7134         (main): Add more tests.
7135         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7136
7137         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7138
7139 2010-01-10  Bruno Haible  <bruno@clisp.org>
7140
7141         unistr/u*-strcoll: Try harder to distinguish different strings.
7142         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7143         compare s1 and s2 to see if they are different.
7144
7145 2010-01-10  Bruno Haible  <bruno@clisp.org>
7146
7147         unistr/u*-stpncpy: Fix the return value.
7148         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7149         description of the return value consistent with stpncpy in glibc.
7150         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7151         written non-NUL unit.
7152
7153 2010-01-10  Bruno Haible  <bruno@clisp.org>
7154
7155         unistr/u*-next: Add missing dependencies.
7156         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7157         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7158         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7159
7160 2010-01-10  Bruno Haible  <bruno@clisp.org>
7161
7162         unistr/u8-mbsnlen: Fix return value for incomplete character.
7163         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7164         u8_mblen.
7165         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7166         Remove unistr/u8-mblen.
7167         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7168         u16_mblen.
7169         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7170         Remove unistr/u16-mblen.
7171
7172 2010-01-10  Bruno Haible  <bruno@clisp.org>
7173
7174         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7175         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7176         Reported by Brian Gough <bjg@gnu.org> and
7177         Chris Clayton <chris2553@googlemail.com> via
7178         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7179
7180 2010-01-09  Bruno Haible  <bruno@clisp.org>
7181
7182         unistr/u16-to-u32: Reject invalid input.
7183         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7184         u16_mbtouc.
7185         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7186         Remove unistr/u16-mbtouc.
7187
7188         unistr/u16-to-u8: Reject invalid input.
7189         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7190         u16_mbtouc.
7191         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7192         Remove unistr/u16-mbtouc.
7193
7194         unistr/u8-to-u32: Reject invalid input.
7195         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7196         u8_mbtouc.
7197         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7198         Remove unistr/u8-mbtouc.
7199
7200         unistr/u8-to-u16: Reject invalid input.
7201         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7202         u8_mbtouc.
7203         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7204         Remove unistr/u8-mbtouc.
7205
7206 2010-01-09  Bruno Haible  <bruno@clisp.org>
7207
7208         Tests for module 'getlogin'.
7209         * modules/getlogin-tests: New file.
7210         * tests/test-getlogin.c: New file.
7211
7212         New module 'getlogin'.
7213         * lib/unistd.in.h (getlogin): New declaration.
7214         * lib/getlogin.c: New file.
7215         * m4/getlogin.m4: New file.
7216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7217         HAVE_GETLOGIN.
7218         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7219         HAVE_GETLOGIN.
7220         * modules/getlogin: New file.
7221         * doc/posix-functions/getlogin.texi: Mention the new module.
7222         Reported by John W. Eaton <jwe@gnu.org>.
7223
7224 2010-01-09  Bruno Haible  <bruno@clisp.org>
7225
7226         getlogin_r: Support for native Windows.
7227         * lib/getlogin_r.c: Include <windows.h>
7228         (getlogin_r): Implement for native Windows.
7229         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7230         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7231         via John W. Eaton <jwe@gnu.org>.
7232
7233 2010-01-09  Bruno Haible  <bruno@clisp.org>
7234
7235         getlogin_r: Small fixes.
7236         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7237         succeeds.
7238         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7239         before testing whether getlogin_r is declared. No need to set
7240         HAVE_DECL_GETLOGIN_R to 1.
7241         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7242
7243 2010-01-09  Bruno Haible  <bruno@clisp.org>
7244
7245         * lib/unistd.in.h (getlogin_r): Add comment.
7246
7247 2010-01-09  Bruno Haible  <bruno@clisp.org>
7248
7249         Tests for module 'getlogin_r'.
7250         * modules/getlogin_r-tests: New file.
7251         * tests/test-getlogin_r.c: New file.
7252
7253 2010-01-09  Jim Meyering  <meyering@redhat.com>
7254
7255         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7256         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7257         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7258
7259 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7260
7261         * lib/dup2.c (rpl_dup2): Improve comment.
7262
7263 2010-01-08  Eric Blake  <ebb9@byu.net>
7264
7265         maint.mk: allow packages to add makefile @@ exceptions
7266         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7267         (sc_makefile_check): Rename...
7268         (sc_makefile_at_at_check): ...to this, and use hook.
7269
7270         dup2: work around mingw bug
7271         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7272         Reported by Simon Josefsson.
7273
7274 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7275
7276         glob: Fix C++ compilation.
7277         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7278         C++.
7279
7280 2010-01-07  Bruno Haible  <bruno@clisp.org>
7281
7282         Fix indentation of wctype.in.h, broken since 2007-01-06.
7283         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7284
7285 2010-01-07  Bruno Haible  <bruno@clisp.org>
7286
7287         mbslen: Avoid collision with system function.
7288         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7289         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7290         * m4/mbslen.m4: New file.
7291         * modules/mbslen (Files): Add it.
7292         (configure.ac): Invoke gl_MBSLEN.
7293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7294         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7295         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7296         via Ian Beckwith <ianb@erislabs.net>.
7297
7298 2010-01-07  Bruno Haible  <bruno@clisp.org>
7299
7300         dirent: Document the last fix.
7301         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7302
7303 2010-01-07  Bruno Haible  <bruno@clisp.org>
7304
7305         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7306         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7307         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7308         va_list are defined.
7309         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7310         Reported by Eric Blake.
7311
7312 2010-01-07  Bruno Haible  <bruno@clisp.org>
7313
7314         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7315         * modules/xlist (Depends-on): Add 'list',
7316         * modules/xoset (Depends-on): Add 'oset'.
7317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7318
7319 2010-01-07  Bruno Haible  <bruno@clisp.org>
7320
7321         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7322         * doc/posix-functions/strncasecmp.texi: Likewise.
7323
7324 2010-01-07  Bruno Haible  <bruno@clisp.org>
7325
7326         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7327
7328 2010-01-07  John W. Eaton  <jwe@octave.org>
7329
7330         wctype: allow C++ use
7331         * lib/wctype.in.h: Add extern "C" block for C++.
7332
7333 2010-01-06  Eric Blake  <ebb9@byu.net>
7334
7335         maint.mk: detect incorrect GFDL usage
7336         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7337
7338 2010-01-06  Jim Meyering  <meyering@redhat.com>
7339         and Eric Blake  <ebb9@byu.net>
7340
7341         maint.mk: ignore multi-line copyright in NEWS
7342         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7343
7344 2010-01-06  Eric Blake  <ebb9@byu.net>
7345
7346         select: add missing dependency
7347         * modules/select-tests (Depends-on): Move sockets dependency...
7348         * modules/select (Depends-on): ...here.
7349         Reported by Ian Beckwith.
7350
7351         doc: regenerate INSTALL
7352         * doc/INSTALL: Reflect recent autoconf update.
7353         * doc/INSTALL.ISO: Likewise.
7354         * doc/INSTALL.UTF-8: Likewise.
7355
7356         pread: fix compilation on glibc
7357         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7358         Reported by Ralf Wildenhues.
7359
7360         dirent: fix test failure
7361         * lib/dirent.in.h (includes): Guarantee ino_t.
7362         Reported by Ralf Wildenhues.
7363
7364 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7365
7366         linkat, renameat: avoid bad free
7367         * lib/at-func2.c (at_func2): Fix typo.
7368         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7369
7370 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7371
7372         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7373         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7374         to avoid failure of symlink test later.
7375
7376 2010-01-06  Eric Blake  <ebb9@byu.net>
7377
7378         stdio, unistd: guarantee ssize_t
7379         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7380         2008 are exposed when needed.
7381         * lib/stdio.in.h (includes): Likewise.
7382         Reported by Ralf Wildenhues.
7383
7384 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7385
7386         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7387         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7388         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7389
7390 2010-01-06  Jim Meyering  <meyering@redhat.com>
7391
7392         readtokens: this module *does* require xalloc.h
7393         It uses only functions that were omitted by the old syntax-check rule.
7394         * lib/readtokens.c: Include "xalloc.h" once again.
7395         * modules/readtokens (Depends-on): Add xalloc.
7396         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7397
7398 2010-01-05  Eric Blake  <ebb9@byu.net>
7399
7400         maint: support 'make announcement' from a VPATH build
7401         * top/maint.mk (announcement): Look for correct NEWS file.
7402
7403 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7404
7405         utimens (fdutimens): ignore a negative FD, per contract
7406         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7407         when we have a valid file descriptor.  Otherwise, using a brand
7408         new glibc (with just-patched futimens that now fails with EBADF)
7409         would cause this function to fail with ENOSYS.
7410         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7411         See also http://bugzilla.redhat.com/552320.
7412
7413 2010-01-05  Eric Blake  <ebb9@byu.net>
7414
7415         strcase: document what it provides
7416         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7417         gnulib module.
7418         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7419         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7420
7421 2010-01-05  Jim Meyering  <meyering@redhat.com>
7422
7423         maint: remove useless inclusions of "xalloc.h"
7424         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7425         * lib/readtokens.c: Likewise.
7426         * lib/same.c: Likewise.
7427         * modules/getloadavg (Depends-on): Remove xalloc.
7428         * modules/readtokens: Likewise.
7429         * modules/same: Likewise.
7430
7431         maint.mk: include 4 more function names in alloca.h-checking regexp
7432         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7433         regexp.  Before, we would give a false-positive (saying alloca.h
7434         is included unnecessarily) when the only uses involved omitted symbols.
7435
7436         xalloc.h: use consistent formatting
7437         * lib/xalloc.h: Move declarations to start in the first column.
7438
7439 2010-01-05  Eric Blake  <ebb9@byu.net>
7440
7441         mkdir: avoid xalloc
7442         * lib/mkdir.c (includes): Drop unused header.
7443         Reported by John W. Eaton.
7444
7445 2010-01-04  Jim Meyering  <meyering@redhat.com>
7446
7447         nl_langinfo: avoid configure-time syntax error
7448         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7449         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7450         the empty string.  Don't let that provoke a shell syntax error.
7451
7452         regcomp, regexec, fnmatch: avoid array bounds read error
7453         * lib/regcomp.c (build_equiv_class): From glibc:
7454         Use only the low 24 bits of a findidx return value as an index
7455         into the weights array.  Patch by Ulrich Drepper:
7456         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7457         * lib/regexec.c (check_node_accept_bytes): Likewise.
7458         * lib/fnmatch_loop.c (FCT): Likewise.
7459
7460         regcomp: skip collseq lookup when there are no rules
7461         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7462         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7463
7464         regcomp: recognize ill-formed { } expressions
7465         * lib/regcomp.c (parse_dup_op): From glibc:
7466         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7467
7468         regcomp: fix typo in comment
7469         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7470         s/satisfy/satisfies/.
7471
7472         regcomp: sync from glibc: remove dead store
7473         * lib/regcomp.c (duplicate_node_closure): Remove useless
7474         search_duplicated_node call and dead store.
7475
7476         regcomp: sync from glibc; always use nl_langinfo
7477         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7478         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7479         * modules/regex (Depends-on): Add nl_langinfo.
7480
7481 2010-01-04  Eric Blake  <ebb9@byu.net>
7482
7483         fdopendir: fix configure test
7484         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7485
7486 2010-01-01  Bruno Haible  <bruno@clisp.org>
7487
7488         wchar: Remove unused configure check.
7489         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7490
7491 2010-01-01  Eric Blake  <ebb9@byu.net>
7492
7493         headers: make check of system header explicit
7494         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7495         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7496         ourselves.
7497         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7499         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7500         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7501         internals.
7502         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7503         missing.
7504         Suggested by Bruno Haible.
7505
7506 2010-01-01  Jim Meyering  <meyering@redhat.com>
7507
7508         ChangeLog: tweak to eliminate unnecessary copyright line
7509         * ChangeLog: Remove a copyright line that was mistakenly updated
7510         by today's update-copyright run.  Reported by Eric Blake.
7511
7512         test-update-copyright: don't let envvar setting cause test failure
7513         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7514
7515 2010-01-01  Bruno Haible  <bruno@clisp.org>
7516
7517         localename: Avoid gcc warning.
7518         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7519         function if it is not used.
7520
7521 2010-01-01  Jim Meyering  <meyering@redhat.com>
7522
7523         update nearly all FSF copyright year lists to include 2010
7524         Use the same procedure as for 2009, outlined in
7525         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7526
7527         version-etc: set COPYRIGHT_YEAR to 2010
7528         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
7529
7530 2009-12-31  Eric Blake  <ebb9@byu.net>
7531
7532         doc: correct availability of cygwin 1.5.x getopt
7533         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
7534         variables.
7535         * doc/posix-functions/opterr.texi (opterr): Likewise.
7536         * doc/posix-functions/optind.texi (optind): Likewise.
7537         * doc/posix-functions/optopt.texi (optopt): Likewise.
7538         * doc/posix-functions/tzname.texi (tzname): Likewise.
7539
7540         openat: update maintainer
7541         * modules/openat (Maintainer): Add myself.
7542
7543         utimens: avoid shadowing warning
7544         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
7545         buffers into one, to avoid shadowing, as well as avoiding a
7546         redundant stat.
7547         Reported by Jim Meyering.
7548
7549         test-dup2: avoid compiler warning
7550         * tests/test-dup2.c (is_inheritable): Only define if used.
7551
7552 2010-01-01  Bruno Haible  <bruno@clisp.org>
7553
7554         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
7555         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
7556         defined, use wctomb instead of wcrtomb.
7557
7558 2010-01-01  Bruno Haible  <bruno@clisp.org>
7559
7560         iconv: Reject native Solaris iconv.
7561         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
7562         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
7563
7564 2009-12-31  Bruno Haible  <bruno@clisp.org>
7565
7566         * tests/test-signal.c (main): Remove test of 'SIG'.
7567
7568 2009-12-31  Bruno Haible  <bruno@clisp.org>
7569
7570         spawn: Fix incomplete fix.
7571         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7572         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7573         warnings for GNULIB_POSIXCHECK again.
7574         Reported by Eric Blake.
7575
7576 2009-12-31  Bruno Haible  <bruno@clisp.org>
7577
7578         Avoid namespace pollution on glibc systems.
7579         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
7580         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
7581         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
7582         glibc systems.
7583
7584 2009-12-31  Bruno Haible  <bruno@clisp.org>
7585
7586         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
7587         (gl_REPLACE_WCHAR_H): Turn into a no-op.
7588         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
7589         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7590         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7591         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7592         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7593
7594 2009-12-31  Bruno Haible  <bruno@clisp.org>
7595
7596         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7597         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
7598         afterwards.
7599
7600 2009-12-31  Bruno Haible  <bruno@clisp.org>
7601
7602         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
7603         SYS_UTSNAME_H.
7604
7605 2009-12-31  Bruno Haible  <bruno@clisp.org>
7606
7607         spawn: Fix misapplied patch.
7608         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
7609         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
7610         warnings for GNULIB_POSIXCHECK.
7611
7612 2009-12-31  Bruno Haible  <bruno@clisp.org>
7613
7614         times: Update after sys_times changed.
7615         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
7616         * modules/times (Files): Add it.
7617         (configure.ac): Invoke gl_FUNC_TIMES.
7618
7619 2009-12-31  Bruno Haible  <bruno@clisp.org>
7620
7621         Use AC_C_INLINE where necessary.
7622         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
7623         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
7624         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7625         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
7626         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7627         * m4/mbiter.m4 (gl_MBITER): Likewise.
7628         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7629         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7630         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
7631         * modules/u64 (configure.ac): Likewise.
7632
7633 2009-12-31  Bruno Haible  <bruno@clisp.org>
7634
7635         Use AC_C_INLINE instead of module 'inline' where possible.
7636         * modules/inline (Description): Clarify purpose.
7637         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
7638         * modules/count-one-bits (Depends-on): Remove inline.
7639         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
7640         * modules/openat (Depends-on): Remove inline.
7641         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
7642         instead of depending on module 'inline'.
7643         * modules/filevercmp (Depends-on, configure.ac): Likewise.
7644         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
7645         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
7646         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
7647         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
7648         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
7649         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
7650         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
7651         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
7652         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
7653         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
7654         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
7655         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
7656         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
7657         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
7658         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
7659         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
7660         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
7661         Likewise.
7662         * modules/unictype/property-ascii-hex-digit (Depends-on,
7663         configure.ac): Likewise.
7664         * modules/unictype/property-bidi-arabic-digit (Depends-on,
7665         configure.ac): Likewise.
7666         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
7667         configure.ac): Likewise.
7668         * modules/unictype/property-bidi-block-separator (Depends-on,
7669         configure.ac): Likewise.
7670         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
7671         configure.ac): Likewise.
7672         * modules/unictype/property-bidi-common-separator (Depends-on,
7673         configure.ac): Likewise.
7674         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
7675         Likewise.
7676         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
7677         configure.ac): Likewise.
7678         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
7679         configure.ac): Likewise.
7680         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
7681         configure.ac): Likewise.
7682         * modules/unictype/property-bidi-european-digit (Depends-on,
7683         configure.ac): Likewise.
7684         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
7685         configure.ac): Likewise.
7686         * modules/unictype/property-bidi-left-to-right (Depends-on,
7687         configure.ac): Likewise.
7688         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
7689         configure.ac): Likewise.
7690         * modules/unictype/property-bidi-other-neutral (Depends-on,
7691         configure.ac): Likewise.
7692         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
7693         Likewise.
7694         * modules/unictype/property-bidi-segment-separator (Depends-on,
7695         configure.ac): Likewise.
7696         * modules/unictype/property-bidi-whitespace (Depends-on,
7697         configure.ac): Likewise.
7698         * modules/unictype/property-combining (Depends-on, configure.ac):
7699         Likewise.
7700         * modules/unictype/property-composite (Depends-on, configure.ac):
7701         Likewise.
7702         * modules/unictype/property-currency-symbol (Depends-on,
7703         configure.ac): Likewise.
7704         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
7705         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
7706         Likewise.
7707         * modules/unictype/property-default-ignorable-code-point (Depends-on,
7708         configure.ac): Likewise.
7709         * modules/unictype/property-deprecated (Depends-on, configure.ac):
7710         Likewise.
7711         * modules/unictype/property-diacritic (Depends-on, configure.ac):
7712         Likewise.
7713         * modules/unictype/property-extender (Depends-on, configure.ac):
7714         Likewise.
7715         * modules/unictype/property-format-control (Depends-on, configure.ac):
7716         Likewise.
7717         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
7718         Likewise.
7719         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
7720         Likewise.
7721         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
7722         Likewise.
7723         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
7724         Likewise.
7725         * modules/unictype/property-hyphen (Depends-on, configure.ac):
7726         Likewise.
7727         * modules/unictype/property-id-continue (Depends-on, configure.ac):
7728         Likewise.
7729         * modules/unictype/property-id-start (Depends-on, configure.ac):
7730         Likewise.
7731         * modules/unictype/property-ideographic (Depends-on, configure.ac):
7732         Likewise.
7733         * modules/unictype/property-ids-binary-operator (Depends-on,
7734         configure.ac): Likewise.
7735         * modules/unictype/property-ids-trinary-operator (Depends-on,
7736         configure.ac): Likewise.
7737         * modules/unictype/property-ignorable-control (Depends-on,
7738         configure.ac): Likewise.
7739         * modules/unictype/property-iso-control (Depends-on, configure.ac):
7740         Likewise.
7741         * modules/unictype/property-join-control (Depends-on, configure.ac):
7742         Likewise.
7743         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
7744         Likewise.
7745         * modules/unictype/property-line-separator (Depends-on, configure.ac):
7746         Likewise.
7747         * modules/unictype/property-logical-order-exception (Depends-on,
7748         configure.ac): Likewise.
7749         * modules/unictype/property-lowercase (Depends-on, configure.ac):
7750         Likewise.
7751         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
7752         * modules/unictype/property-non-break (Depends-on, configure.ac):
7753         Likewise.
7754         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
7755         Likewise.
7756         * modules/unictype/property-numeric (Depends-on, configure.ac):
7757         Likewise.
7758         * modules/unictype/property-other-alphabetic (Depends-on,
7759         configure.ac): Likewise.
7760         * modules/unictype/property-other-default-ignorable-code-point
7761         (Depends-on, configure.ac): Likewise.
7762         * modules/unictype/property-other-grapheme-extend (Depends-on,
7763         configure.ac): Likewise.
7764         * modules/unictype/property-other-id-continue (Depends-on,
7765         configure.ac): Likewise.
7766         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
7767         Likewise.
7768         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
7769         Likewise.
7770         * modules/unictype/property-other-math (Depends-on, configure.ac):
7771         Likewise.
7772         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
7773         Likewise.
7774         * modules/unictype/property-paired-punctuation (Depends-on,
7775         configure.ac): Likewise.
7776         * modules/unictype/property-paragraph-separator (Depends-on,
7777         configure.ac): Likewise.
7778         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
7779         Likewise.
7780         * modules/unictype/property-pattern-white-space (Depends-on,
7781         configure.ac): Likewise.
7782         * modules/unictype/property-private-use (Depends-on, configure.ac):
7783         Likewise.
7784         * modules/unictype/property-punctuation (Depends-on, configure.ac):
7785         Likewise.
7786         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
7787         Likewise.
7788         * modules/unictype/property-radical (Depends-on, configure.ac):
7789         Likewise.
7790         * modules/unictype/property-sentence-terminal (Depends-on,
7791         configure.ac): Likewise.
7792         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
7793         Likewise.
7794         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
7795         * modules/unictype/property-terminal-punctuation (Depends-on,
7796         configure.ac): Likewise.
7797         * modules/unictype/property-titlecase (Depends-on, configure.ac):
7798         Likewise.
7799         * modules/unictype/property-unassigned-code-value (Depends-on,
7800         configure.ac): Likewise.
7801         * modules/unictype/property-unified-ideograph (Depends-on,
7802         configure.ac): Likewise.
7803         * modules/unictype/property-uppercase (Depends-on, configure.ac):
7804         Likewise.
7805         * modules/unictype/property-variation-selector (Depends-on,
7806         configure.ac): Likewise.
7807         * modules/unictype/property-white-space (Depends-on, configure.ac):
7808         Likewise.
7809         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
7810         Likewise.
7811         * modules/unictype/property-xid-start (Depends-on, configure.ac):
7812         Likewise.
7813         * modules/unictype/property-zero-width (Depends-on, configure.ac):
7814         Likewise.
7815         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
7816         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
7817         Likewise.
7818
7819 2009-12-31  Bruno Haible  <bruno@clisp.org>
7820
7821         Remove unnecessary AC_C_INLINE invocation.
7822         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
7823         since 2009-08-21.
7824
7825 2009-12-31  Jim Meyering  <meyering@redhat.com>
7826
7827         maint.mk: don't require explicit gpg_key_ID in cfg.mk
7828         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
7829         With this change, we can all remove the gpg_key_ID = ... definition
7830         from our respective cfg.mk files.
7831
7832         maint.mk: create announcement template in ~/, not in /tmp
7833         * top/maint.mk (emit_upload_commands): Adjust.
7834         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
7835         Remove temporary file, .ci-msg.
7836
7837 2009-12-31  Eric Blake  <ebb9@byu.net>
7838
7839         link-warning: always build headers with link warnings
7840         * modules/arpa_inet (Makefile.am): Always build replacement
7841         header.
7842         * modules/ctype (Makefile.am): Likewise.
7843         * modules/dirent (Makefile.am): Likewise.
7844         * modules/inttypes (Makefile.am): Likewise.
7845         * modules/langinfo (Makefile.am): Likewise.
7846         * modules/locale (Makefile.am): Likewise.
7847         * modules/spawn (Makefile.am): Likewise.
7848         * modules/sys_file (Makefile.am): Likewise.
7849         * modules/sys_ioctl (Makefile.am): Likewise.
7850         * modules/sys_select (Makefile.am): Likewise.
7851         * modules/sys_socket (Makefile.am): Likewise.
7852         * modules/sys_times (Makefile.am): Likewise.
7853         * modules/sys_utsname (Makefile.am): Likewise.
7854         * modules/sys_wait (Makefile.am): Likewise.
7855         * modules/wchar (Makefile.am): Likewise.
7856         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
7857         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
7858         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
7859         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
7860         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
7861         Likewise.
7862         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7863         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7864         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
7865         Likewise.
7866         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
7867         Likewise.
7868         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7869         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
7870         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
7871         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7872         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7873         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7874         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7875         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
7876         (gl_WCHAR_H_DEFAULTS): Likewise.
7877
7878 2009-12-31  Eric Blake  <ebb9@byu.net>
7879
7880         signal, spawn: use link warnings
7881         * lib/signal.in.h (sigset_t): Make unconditional.
7882         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
7883         (sigpending, sigprocmask, sigaction): Add link warnings.
7884         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
7885         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
7886         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
7887         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
7888         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
7889         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
7890         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
7891         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
7892         (posix_spawn_file_actions_destroy)
7893         (posix_spawn_file_actions_addopen)
7894         (posix_spawn_file_actions_addclose)
7895         (posix_spawn_file_actions_adddup2): Likewise.
7896         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
7897         * tests/test-signal.c (main): Enhance test.
7898
7899         spawn: improve wrapper support
7900         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
7901         (gl_SPAWN_H_DEFAULTS): New defaults.
7902         * modules/spawn (Makefile.am): Substitute them.
7903         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
7904         Only declare if missing or broken.
7905
7906         sys_times, sys_utsname: use include_next
7907         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
7908         header.
7909         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
7910         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
7911         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
7912         * modules/sys_times (Depends-on): Add include_next.
7913         (Makefile.am): Substitute additional values.
7914         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
7915         * lib/sys_times.in.h (includes): Include native header, if
7916         available.
7917         * lib/sys_utsname.in.h (includes): Likewise.
7918         * tests/test-sys_times.c (main): Enhance test.
7919
7920         fdutimensat: revert prior patch
7921         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
7922         utimens.h.
7923         Reported by Bruno Haible.
7924
7925 2009-12-30  Eric Blake  <ebb9@byu.net>
7926
7927         sys_wait: drop link-warning dependency
7928         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
7929         link-warning efforts.
7930         * lib/sys_wait.in.h: Likewise.
7931
7932         fdutimensat: remove bogus dependency
7933         * modules/fdutimensat (Depends-on): Drop inline.
7934
7935         unistd: fix typo
7936         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
7937
7938 2009-12-30  Bruno Haible  <bruno@clisp.org>
7939
7940         Fix compilation error with Solaris cc.
7941         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
7942         * lib/unicase/u16-is-invariant.c: Likewise.
7943         * lib/unicase/u32-is-invariant.c: Likewise.
7944         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
7945
7946 2009-12-30  Bruno Haible  <bruno@clisp.org>
7947
7948         Fix test crash.
7949         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
7950         locales.
7951         Reported by Simon Josefsson <simon@josefsson.org>.
7952
7953 2009-12-30  Bruno Haible  <bruno@clisp.org>
7954
7955         Fix compilation error on most platforms.
7956         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
7957         Reported by Simon Josefsson <simon@josefsson.org>
7958         and Nelson H. F. Beebe <beebe@math.utah.edu>.
7959
7960 2009-12-30  Eric Blake  <ebb9@byu.net>
7961
7962         futimens, utimensat: work around ntfs-3g bug
7963         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
7964         a ctime bug is present, and expand workaround to cover ntfs-3g.
7965         * lib/utimens.c (fdutimens, lutimens): Likewise.
7966         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
7967         (validate_timespec): Adjust return value.
7968         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
7969         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7970         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
7971
7972 2009-12-29  Eric Blake  <ebb9@byu.net>
7973
7974         link-warning: make usage consistent
7975         * modules/ctype (Depends-on): Add link-warning.
7976         (Makefile.am): Update rules accordingly.
7977         * modules/langinfo (Depends-on, Makefile.am): Likewise.
7978         * modules/locale (Depends-on, Makefile.am): Likewise.
7979         * modules/sys_file (Makefile.am): Likewise.
7980         * modules/getopt-posix (Makefile.am): Delete unused link warning
7981         efforts.
7982         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
7983         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
7984         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
7985         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
7986
7987         stdio: remove unused variables
7988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
7989         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
7990         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7991
7992         tests: test more substitute headers
7993         * modules/ctype-tests: New file.
7994         * modules/dirent-tests: Likewise.
7995         * modules/spawn-tests: Likewise.
7996         * modules/sys_file-tests: Likewise.
7997         * modules/sys_ioctl-tests: Likewise.
7998         * modules/sys_wait-tests: Likewise.
7999         * tests/test-ctype.c: Likewise.
8000         * tests/test-dirent.c: Likewise.
8001         * tests/test-spawn.c: Likewise.
8002         * tests/test-sys_file.c: Likewise.
8003         * tests/test-sys_ioctl.c: Likewise.
8004         * tests/test-sys_wait.c: Likewise.
8005         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8006         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8007         whether or not flock is in use.
8008
8009         tests: remove License section from module
8010         * modules/arpa_inet-tests: Remove unneeded section.
8011         * modules/byteswap-tests: Likewise.
8012         * modules/ceilf-tests: Likewise.
8013         * modules/ceill-tests: Likewise.
8014         * modules/crypto/des-tests: Likewise.
8015         * modules/crypto/gc-arcfour-tests: Likewise.
8016         * modules/crypto/gc-arctwo-tests: Likewise.
8017         * modules/crypto/gc-des-tests: Likewise.
8018         * modules/crypto/gc-hmac-md5-tests: Likewise.
8019         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8020         * modules/crypto/gc-md2-tests: Likewise.
8021         * modules/crypto/gc-md4-tests: Likewise.
8022         * modules/crypto/gc-md5-tests: Likewise.
8023         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8024         * modules/crypto/gc-rijndael-tests: Likewise.
8025         * modules/crypto/gc-sha1-tests: Likewise.
8026         * modules/crypto/gc-tests: Likewise.
8027         * modules/crypto/md2-tests: Likewise.
8028         * modules/crypto/md4-tests: Likewise.
8029         * modules/fcntl-h-tests: Likewise.
8030         * modules/floorf-tests: Likewise.
8031         * modules/floorl-tests: Likewise.
8032         * modules/frexp-nolibm-tests: Likewise.
8033         * modules/frexp-tests: Likewise.
8034         * modules/frexpl-nolibm-tests: Likewise.
8035         * modules/frexpl-tests: Likewise.
8036         * modules/getaddrinfo-tests: Likewise.
8037         * modules/inttypes-tests: Likewise.
8038         * modules/isfinite-tests: Likewise.
8039         * modules/isinf-tests: Likewise.
8040         * modules/ldexpl-tests: Likewise.
8041         * modules/locale-tests: Likewise.
8042         * modules/math-tests: Likewise.
8043         * modules/netdb-tests: Likewise.
8044         * modules/netinet_in-tests: Likewise.
8045         * modules/printf-frexp-tests: Likewise.
8046         * modules/printf-frexpl-tests: Likewise.
8047         * modules/priv-set-tests: Likewise.
8048         * modules/random_r-tests: Likewise.
8049         * modules/round-tests: Likewise.
8050         * modules/roundf-tests: Likewise.
8051         * modules/roundl-tests: Likewise.
8052         * modules/search-tests: Likewise.
8053         * modules/select-tests: Likewise.
8054         * modules/signal-tests: Likewise.
8055         * modules/stdbool-tests: Likewise.
8056         * modules/stddef-tests: Likewise.
8057         * modules/stdint-tests: Likewise.
8058         * modules/stdio-tests: Likewise.
8059         * modules/stdlib-tests: Likewise.
8060         * modules/string-tests: Likewise.
8061         * modules/strings-tests: Likewise.
8062         * modules/sys_select-tests: Likewise.
8063         * modules/sys_socket-tests: Likewise.
8064         * modules/sys_stat-tests: Likewise.
8065         * modules/sys_time-tests: Likewise.
8066         * modules/sys_utsname-tests: Likewise.
8067         * modules/sysexits-tests: Likewise.
8068         * modules/time-tests: Likewise.
8069         * modules/trunc-tests: Likewise.
8070         * modules/truncf-tests: Likewise.
8071         * modules/truncl-tests: Likewise.
8072         * modules/tsearch-tests: Likewise.
8073         * modules/unistd-tests: Likewise.
8074         * modules/wchar-tests: Likewise.
8075         * modules/wctype-tests: Likewise.
8076
8077         tests: fix license on several tests
8078         * tests/test-des.c: Update to GPLv3+.
8079         * tests/test-flock.c: Likewise.
8080         * tests/test-fsync.c: Likewise.
8081         * tests/test-futimens.h: Likewise.
8082         * tests/test-gc-arcfour.c: Likewise.
8083         * tests/test-gc-arctwo.c: Likewise.
8084         * tests/test-gc-des.c: Likewise.
8085         * tests/test-gc-hmac-md5.c: Likewise.
8086         * tests/test-gc-hmac-sha1.c: Likewise.
8087         * tests/test-gc-md2.c: Likewise.
8088         * tests/test-gc-md4.c: Likewise.
8089         * tests/test-gc-md5.c: Likewise.
8090         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8091         * tests/test-gc-rijndael.c: Likewise.
8092         * tests/test-gc-sha1.c: Likewise.
8093         * tests/test-gc.c: Likewise.
8094         * tests/test-getcwd.c: Likewise.
8095         * tests/test-link.c: Likewise.
8096         * tests/test-link.h: Likewise.
8097         * tests/test-lutimens.h: Likewise.
8098         * tests/test-md2.c: Likewise.
8099         * tests/test-md4.c: Likewise.
8100         * tests/test-mkdir.h: Likewise.
8101         * tests/test-rename.c: Likewise.
8102         * tests/test-rename.h: Likewise.
8103         * tests/test-safe-alloc.c: Likewise.
8104         * tests/test-utimens-common.h: Likewise.
8105         * tests/test-utimens.h: Likewise.
8106
8107         maint: sync license texts
8108         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8109         * doc/gpl-3.0.texi: Revert copyright year update.
8110         * doc/lgpl-3.0.texi: Likewise.
8111
8112 2009-12-29  Jim Meyering  <meyering@redhat.com>
8113
8114         update nearly all FSF copyright year lists to include 2009
8115         The files named by the following are exempted:
8116             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8117               test -f "$dst" && { echo "$dst"; continue; }
8118               test -d "$dst" || continue
8119               echo "$dst"/$(basename "$src")
8120             done > exempt
8121             git ls-files tests/unictype >> exempt
8122         In the remaining files, convert to all-interval notation if
8123         - there is already at least one year interval like 2000-2003
8124         - the file is maintained by me
8125         - the file is in lib/uni*/, where that style already prevails
8126         Otherwise, use update-copyright's default.
8127
8128 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8129         and Eric Blake  <ebb9@byu.net>
8130
8131         tests: don't require debug system() to pass
8132         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8133         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8134         * tests/test-unlink.h (test_unlink_func): Likewise.
8135         * tests/test-fstatat.c (main): ...into callers.
8136         * tests/test-lstat.c (main): Likewise.
8137         * tests/test-rmdir.c (main): Likewise.
8138         * tests/test-unlink.c (main): Likewise.
8139         * tests/test-unlinkat.c (main): Likewise.
8140         * tests/test-areadlink-with-size.c (main): Don't require a
8141         debug-only system call to pass, aiding cross-testing to mingw.
8142         * tests/test-areadlink.c (main): Likewise.
8143         * tests/test-areadlinkat-with-size.c (main): Likewise.
8144         * tests/test-areadlinkat.c (main): Likewise.
8145         * tests/test-canonicalize-lgpl.c (main): Likewise.
8146         * tests/test-canonicalize.c (main): Likewise.
8147         * tests/test-chown.c (main): Likewise.
8148         * tests/test-fchownat.c (main): Likewise.
8149         * tests/test-lchown.c (main): Likewise.
8150         * tests/test-fdutimensat.c (main): Likewise.
8151         * tests/test-futimens.c (main): Likewise.
8152         * tests/test-link.c (main): Likewise.
8153         * tests/test-linkat.c (main): Likewise.
8154         * tests/test-mkdir.c (main): Likewise.
8155         * tests/test-mkdirat.c (main): Likewise.
8156         * tests/test-mkfifo.c (main): Likewise.
8157         * tests/test-mkfifoat.c (main): Likewise.
8158         * tests/test-mknod.c (main): Likewise.
8159         * tests/test-readlink.c (main): Likewise.
8160         * tests/test-remove.c (main): Likewise.
8161         * tests/test-rename.c (main): Likewise.
8162         * tests/test-renameat.c (main): Likewise.
8163         * tests/test-symlink.c (main): Likewise.
8164         * tests/test-symlinkat.c (main): Likewise.
8165         * tests/test-utimens.c (main): Likewise.
8166         * tests/test-utimensat.c (main): Likewise.
8167
8168 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8169
8170         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8171         on $(UNUSED_PARAMETER_H) to avoid build failure.
8172
8173 2009-12-28  Jim Meyering  <meyering@redhat.com>
8174
8175         update-copyright: you may specify a max. line length other than 72
8176         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8177
8178         maint: use consistent FSF copyright line syntax
8179         * lib/posixtm.c: Add missing comma in FSF copyright line.
8180         * lib/posixtm.h: Likewise.
8181         * lib/getugroups.c: Add missing ", Inc.".
8182
8183         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8184         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8185         FSF copyright line.  Remove trailing blanks.
8186
8187 2009-12-28  Eric Blake  <ebb9@byu.net>
8188
8189         test-dup2: reduce dependencies
8190         * modules/cloexec (Configure.ac): Set witness.
8191         * modules/dup2-tests (Depends-on): Drop cloexec.
8192         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8193         not present.
8194         Suggested by Bruno Haible.
8195
8196 2009-12-26  Bruno Haible  <bruno@clisp.org>
8197
8198         Remove an unneeded dependency.
8199         * modules/fseterr (Depends-on): Remove dup2.
8200
8201 2009-12-26  Eric Blake  <ebb9@byu.net>
8202
8203         tests: use macros.h in more places
8204         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8205         (ASSERT_STREAM): Provide default of stderr.
8206         * tests/test-dirent-safer.c: Include macros.h, using alternate
8207         stream for assertions.
8208         * tests/test-dup-safer.c: Likewise.
8209         * tests/test-freopen-safer.c: Likewise.
8210         * tests/test-getopt.c: Likewise.
8211         * tests/test-openat-safer.c: Likewise.
8212         * tests/test-pipe.c: Likewise.
8213         * tests/test-popen-safer.c: Likewise.
8214         * modules/dirent-safer-tests (Files): Include macros.h.
8215         * modules/unistd-safer-tests (Files): Likewise.
8216         * modules/freopen-safer-tests (Files): Likewise.
8217         * modules/getopt-posix-tests (Files): Likewise.
8218         * modules/openat-safer-tests (Files): Likewise.
8219         * modules/pipe-tests (Files): Likewise.
8220
8221 2009-12-26  Bruno Haible  <bruno@clisp.org>
8222
8223         javacomp: Portability fix.
8224         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8225         that it also works on Solaris.
8226
8227 2009-12-26  Bruno Haible  <bruno@clisp.org>
8228
8229         localename: Fix storage allocation of gl_locale_name_thread's result.
8230         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8231         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8232         all platforms that have 'uselocale'.
8233         (gl_locale_name_thread_unsafe): New function, extracted from
8234         gl_locale_name_thread.
8235         (gl_locale_name_thread): Call struniq on all platforms that have
8236         'uselocale'.
8237         * tests/test-localename.c (test_locale_name_thread): Check that the
8238         resulting strings are permanently allocated.
8239         * modules/localename-tests (Depends-on): Add strdup.
8240
8241 2009-12-26  Bruno Haible  <bruno@clisp.org>
8242
8243         * tests/test-localename.c (categories): Fill in the strings.
8244
8245 2009-12-26  Jim Meyering  <meyering@redhat.com>
8246
8247         isdir: complete the removal of m4/isdir.m4
8248         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8249
8250         isdir: clean up, since at least grep still uses it
8251         * lib/isdir.c: Include "isdir.h".
8252         (S_ISDIR): Remove now-unneeded definition.
8253         * modules/isdir (Files): Add lib/isdir.h.
8254         * lib/isdir.h: New file, with declaration.
8255         * m4/isdir.m4: Remove file -- unneeded.
8256
8257 2009-12-25  Bruno Haible  <bruno@clisp.org>
8258
8259         selinux-h: Make generated .h files standalone.
8260         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8261         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8262         * lib/se-selinux.in.h: Likewise.
8263         * modules/selinux-h (Depends-on): Add unused-parameter.
8264         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8265         selinux/selinux.h and selinux/context.h.
8266         Suggested by Eric Blake.
8267
8268 2009-12-25  Bruno Haible  <bruno@clisp.org>
8269
8270         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8271         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8272         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8273         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8274         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8275
8276 2009-12-24  Bruno Haible  <bruno@clisp.org>
8277
8278         openat: Fix warning.
8279         * lib/openat-proc.c: Include <unistd.h>.
8280
8281 2009-12-24  Bruno Haible  <bruno@clisp.org>
8282
8283         New module 'unused-parameter'.
8284         * build-aux/unused-parameter.h: New file, extracted from earlier
8285         gnulib-common.m4.
8286         * modules/unused-parameter: New file.
8287         * lib/unistr.h: Include unused-parameter.h.
8288         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8289         _GL_UNUSED.
8290         * modules/unistr/base (Depends-on): Add unused-parameter.
8291
8292 2009-12-24  Bruno Haible  <bruno@clisp.org>
8293
8294         Add missing dependencies to 'extensions' module.
8295         * m4/extensions.m4: Add comment.
8296         * modules/accept4 (Depends-on): Add extensions.
8297         * modules/dup3 (Depends-on): Likewise.
8298         * modules/fcntl (Depends-on): Likewise.
8299         * modules/futimens (Depends-on): Likewise.
8300         * modules/mknod (Depends-on): Likewise.
8301         * modules/pipe2 (Depends-on): Likewise.
8302         * modules/stat-time (Depends-on): Likewise.
8303         * modules/strcasestr-simple (Depends-on): Likewise.
8304         * modules/strsignal (Depends-on): Likewise.
8305         * modules/utimensat (Depends-on): Likewise.
8306         * modules/localcharset (Depends-on): Likewise. Needed because of
8307         gl_FCNTL_O_FLAGS.
8308         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8309         AC_TYPE_MBSTATE_T.
8310         * modules/wcsnrtombs (Depends-on): Likewise.
8311         * modules/wcsrtombs (Depends-on): Likewise.
8312
8313 2009-12-24  Bruno Haible  <bruno@clisp.org>
8314
8315         binary-io: Avoid gcc warning due to SET_BINARY.
8316         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8317         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8318
8319 2009-12-24  Bruno Haible  <bruno@clisp.org>
8320
8321         Avoid future namespace pollution on glibc systems.
8322         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8323         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8324         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8325         glibc systems.
8326
8327 2009-12-24  Bruno Haible  <bruno@clisp.org>
8328
8329         Refactor common macros used in tests.
8330         * tests/macros.h: New file.
8331         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8332         and/or <stdlib.h>, if appropriate.
8333         (ASSERT, SIZEOF): Remove macros.
8334         * tests/test-areadlink-with-size.c: Likewise.
8335         * tests/test-areadlinkat.c: Likewise.
8336         * tests/test-areadlinkat-with-size.c: Likewise.
8337         * tests/test-argmatch.c: Likewise.
8338         * tests/test-argv-iter.c: Likewise.
8339         * tests/test-array-mergesort.c: Likewise.
8340         * tests/test-array_list.c: Likewise.
8341         * tests/test-array_oset.c: Likewise.
8342         * tests/test-avltree_list.c: Likewise.
8343         * tests/test-avltree_oset.c: Likewise.
8344         * tests/test-avltreehash_list.c: Likewise.
8345         * tests/test-base64.c: Likewise.
8346         * tests/test-binary-io.c: Likewise.
8347         * tests/test-bitrotate.c: Likewise.
8348         * tests/test-btowc.c: Likewise.
8349         * tests/test-byteswap.c: Likewise.
8350         * tests/test-c-ctype.c: Likewise.
8351         * tests/test-c-stack.c: Likewise.
8352         * tests/test-c-strcasecmp.c: Likewise.
8353         * tests/test-c-strcasestr.c: Likewise.
8354         * tests/test-c-strncasecmp.c: Likewise.
8355         * tests/test-c-strstr.c: Likewise.
8356         * tests/test-canonicalize-lgpl.c: Likewise.
8357         * tests/test-canonicalize.c: Likewise.
8358         * tests/test-carray_list.c: Likewise.
8359         * tests/test-ceilf1.c: Likewise.
8360         * tests/test-ceilf2.c: Likewise.
8361         * tests/test-ceill.c: Likewise.
8362         * tests/test-chown.c: Likewise.
8363         * tests/test-cloexec.c: Likewise.
8364         * tests/test-copy-acl.c: Likewise.
8365         * tests/test-copy-file.c: Likewise.
8366         * tests/test-count-one-bits.c: Likewise.
8367         * tests/test-dprintf-posix.c: Likewise.
8368         * tests/test-dup2.c: Likewise.
8369         * tests/test-dup3.c: Likewise.
8370         * tests/test-duplocale.c: Likewise.
8371         * tests/test-fbufmode.c: Likewise.
8372         * tests/test-fchdir.c: Likewise.
8373         * tests/test-fchownat.c: Likewise.
8374         * tests/test-fcntl-safer.c: Likewise.
8375         * tests/test-fcntl.c: Likewise.
8376         * tests/test-fdopendir.c: Likewise.
8377         * tests/test-fdutimensat.c: Likewise.
8378         * tests/test-fflush2.c: Likewise.
8379         * tests/test-file-has-acl.c: Likewise.
8380         * tests/test-filevercmp.c: Likewise.
8381         * tests/test-flock.c: Likewise.
8382         * tests/test-floorf1.c: Likewise.
8383         * tests/test-floorf2.c: Likewise.
8384         * tests/test-floorl.c: Likewise.
8385         * tests/test-fnmatch.c: Likewise.
8386         * tests/test-fopen.h: Likewise.
8387         * tests/test-fpending.c: Likewise.
8388         * tests/test-fprintf-posix.c: Likewise.
8389         * tests/test-fpurge.c: Likewise.
8390         * tests/test-freadable.c: Likewise.
8391         * tests/test-freadahead.c: Likewise.
8392         * tests/test-freading.c: Likewise.
8393         * tests/test-freadptr.c: Likewise.
8394         * tests/test-freadptr2.c: Likewise.
8395         * tests/test-freadseek.c: Likewise.
8396         * tests/test-freopen.c: Likewise.
8397         * tests/test-frexp.c: Likewise.
8398         * tests/test-frexpl.c: Likewise.
8399         * tests/test-fseek.c: Likewise.
8400         * tests/test-fseeko.c: Likewise.
8401         * tests/test-fstatat.c: Likewise.
8402         * tests/test-fstrcmp.c: Likewise.
8403         * tests/test-fsync.c: Likewise.
8404         * tests/test-ftell.c: Likewise.
8405         * tests/test-ftello.c: Likewise.
8406         * tests/test-func.c: Likewise.
8407         * tests/test-futimens.c: Likewise.
8408         * tests/test-fwritable.c: Likewise.
8409         * tests/test-fwriting.c: Likewise.
8410         * tests/test-getcwd.c: Likewise.
8411         * tests/test-getdate.c: Likewise.
8412         * tests/test-getdelim.c: Likewise.
8413         * tests/test-getdtablesize.c: Likewise.
8414         * tests/test-getgroups.c: Likewise.
8415         * tests/test-getline.c: Likewise.
8416         * tests/test-getndelim2.c: Likewise.
8417         * tests/test-glob.c: Likewise.
8418         * tests/test-hash.c: Likewise.
8419         * tests/test-i-ring.c: Likewise.
8420         * tests/test-iconv-utf.c: Likewise.
8421         * tests/test-iconv.c: Likewise.
8422         * tests/test-idpriv-drop.c: Likewise.
8423         * tests/test-idpriv-droptemp.c: Likewise.
8424         * tests/test-inet_ntop.c: Likewise.
8425         * tests/test-inet_pton.c: Likewise.
8426         * tests/test-isblank.c: Likewise.
8427         * tests/test-isfinite.c: Likewise.
8428         * tests/test-isinf.c: Likewise.
8429         * tests/test-isnan.c: Likewise.
8430         * tests/test-isnand.h: Likewise.
8431         * tests/test-isnanf.h: Likewise.
8432         * tests/test-isnanl.h: Likewise.
8433         * tests/test-lchown.c: Likewise.
8434         * tests/test-ldexpl.c: Likewise.
8435         * tests/test-link.c: Likewise.
8436         * tests/test-linkat.c: Likewise.
8437         * tests/test-linked_list.c: Likewise.
8438         * tests/test-linkedhash_list.c: Likewise.
8439         * tests/test-localename.c: Likewise.
8440         * tests/test-lseek.c: Likewise.
8441         * tests/test-lstat.c: Likewise.
8442         * tests/test-mbmemcasecmp.c: Likewise.
8443         * tests/test-mbmemcasecoll.c: Likewise.
8444         * tests/test-mbrtowc.c: Likewise.
8445         * tests/test-mbscasecmp.c: Likewise.
8446         * tests/test-mbscasestr1.c: Likewise.
8447         * tests/test-mbscasestr2.c: Likewise.
8448         * tests/test-mbscasestr3.c: Likewise.
8449         * tests/test-mbscasestr4.c: Likewise.
8450         * tests/test-mbschr.c: Likewise.
8451         * tests/test-mbscspn.c: Likewise.
8452         * tests/test-mbsinit.c: Likewise.
8453         * tests/test-mbsncasecmp.c: Likewise.
8454         * tests/test-mbsnrtowcs.c: Likewise.
8455         * tests/test-mbspbrk.c: Likewise.
8456         * tests/test-mbspcasecmp.c: Likewise.
8457         * tests/test-mbsrchr.c: Likewise.
8458         * tests/test-mbsrtowcs.c: Likewise.
8459         * tests/test-mbsspn.c: Likewise.
8460         * tests/test-mbsstr1.c: Likewise.
8461         * tests/test-mbsstr2.c: Likewise.
8462         * tests/test-mbsstr3.c: Likewise.
8463         * tests/test-memchr.c: Likewise.
8464         * tests/test-memchr2.c: Likewise.
8465         * tests/test-memcmp.c: Likewise.
8466         * tests/test-memmem.c: Likewise.
8467         * tests/test-memrchr.c: Likewise.
8468         * tests/test-mkdir.c: Likewise.
8469         * tests/test-mkdirat.c: Likewise.
8470         * tests/test-mkfifo.c: Likewise.
8471         * tests/test-mkfifoat.c: Likewise.
8472         * tests/test-mknod.c: Likewise.
8473         * tests/test-nanosleep.c: Likewise.
8474         * tests/test-nl_langinfo.c: Likewise.
8475         * tests/test-obstack-printf.c: Likewise.
8476         * tests/test-open.c: Likewise.
8477         * tests/test-openat.c: Likewise.
8478         * tests/test-pipe-filter-gi1.c: Likewise.
8479         * tests/test-pipe-filter-gi2-main.c: Likewise.
8480         * tests/test-pipe-filter-ii1.c: Likewise.
8481         * tests/test-pipe-filter-ii2-main.c: Likewise.
8482         * tests/test-pipe2.c: Likewise.
8483         * tests/test-popen.h: Likewise.
8484         * tests/test-posixtm.c: Likewise.
8485         * tests/test-pread.c: Likewise.
8486         * tests/test-printf-frexp.c: Likewise.
8487         * tests/test-printf-frexpl.c: Likewise.
8488         * tests/test-printf-posix.c: Likewise.
8489         * tests/test-priv-set.c: Likewise.
8490         * tests/test-quotearg.c: Likewise.
8491         * tests/test-random_r.c: Likewise.
8492         * tests/test-rawmemchr.c: Likewise.
8493         * tests/test-rbtree_list.c: Likewise.
8494         * tests/test-rbtree_oset.c: Likewise.
8495         * tests/test-rbtreehash_list.c: Likewise.
8496         * tests/test-readlink.c: Likewise.
8497         * tests/test-remove.c: Likewise.
8498         * tests/test-rename.c: Likewise.
8499         * tests/test-renameat.c: Likewise.
8500         * tests/test-rmdir.c: Likewise.
8501         * tests/test-round1.c: Likewise.
8502         * tests/test-roundf1.c: Likewise.
8503         * tests/test-roundl.c: Likewise.
8504         * tests/test-safe-alloc.c: Likewise.
8505         * tests/test-sameacls.c: Likewise.
8506         * tests/test-set-mode-acl.c: Likewise.
8507         * tests/test-setenv.c: Likewise.
8508         * tests/test-sigaction.c: Likewise.
8509         * tests/test-signbit.c: Likewise.
8510         * tests/test-sleep.c: Likewise.
8511         * tests/test-snprintf-posix.c: Likewise.
8512         * tests/test-snprintf.c: Likewise.
8513         * tests/test-sprintf-posix.c: Likewise.
8514         * tests/test-stat-time.c: Likewise.
8515         * tests/test-stat.c: Likewise.
8516         * tests/test-strcasestr.c: Likewise.
8517         * tests/test-strchrnul.c: Likewise.
8518         * tests/test-strerror.c: Likewise.
8519         * tests/test-striconv.c: Likewise.
8520         * tests/test-striconveh.c: Likewise.
8521         * tests/test-striconveha.c: Likewise.
8522         * tests/test-strsignal.c: Likewise.
8523         * tests/test-strstr.c: Likewise.
8524         * tests/test-strtod.c: Likewise.
8525         * tests/test-strverscmp.c: Likewise.
8526         * tests/test-symlink.c: Likewise.
8527         * tests/test-symlinkat.c: Likewise.
8528         * tests/test-trunc1.c: Likewise.
8529         * tests/test-trunc2.c: Likewise.
8530         * tests/test-truncf1.c: Likewise.
8531         * tests/test-truncf2.c: Likewise.
8532         * tests/test-truncl.c: Likewise.
8533         * tests/test-uname.c: Likewise.
8534         * tests/test-unlink.c: Likewise.
8535         * tests/test-unlinkat.c: Likewise.
8536         * tests/test-unsetenv.c: Likewise.
8537         * tests/test-usleep.c: Likewise.
8538         * tests/test-utimens.c: Likewise.
8539         * tests/test-utimensat.c: Likewise.
8540         * tests/test-vasnprintf-posix.c: Likewise.
8541         * tests/test-vasnprintf-posix2.c: Likewise.
8542         * tests/test-vasnprintf.c: Likewise.
8543         * tests/test-vasprintf-posix.c: Likewise.
8544         * tests/test-vasprintf.c: Likewise.
8545         * tests/test-vdprintf-posix.c: Likewise.
8546         * tests/test-vfprintf-posix.c: Likewise.
8547         * tests/test-vprintf-posix.c: Likewise.
8548         * tests/test-vsnprintf-posix.c: Likewise.
8549         * tests/test-vsnprintf.c: Likewise.
8550         * tests/test-vsprintf-posix.c: Likewise.
8551         * tests/test-wcrtomb.c: Likewise.
8552         * tests/test-wcsnrtombs.c: Likewise.
8553         * tests/test-wcsrtombs.c: Likewise.
8554         * tests/test-wctype.c: Likewise.
8555         * tests/test-wcwidth.c: Likewise.
8556         * tests/test-xfprintf-posix.c: Likewise.
8557         * tests/test-xmemdup0.c: Likewise.
8558         * tests/test-xprintf-posix.c: Likewise.
8559         * tests/test-xvasprintf.c: Likewise.
8560         * tests/unicase/test-locale-language.c: Likewise.
8561         * tests/unicase/test-mapping-part1.h: Likewise.
8562         * tests/unicase/test-predicate-part1.h: Likewise.
8563         * tests/unicase/test-u8-casecmp.c: Likewise.
8564         * tests/unicase/test-u8-casecoll.c: Likewise.
8565         * tests/unicase/test-u8-casefold.c: Likewise.
8566         * tests/unicase/test-u8-is-cased.c: Likewise.
8567         * tests/unicase/test-u8-is-casefolded.c: Likewise.
8568         * tests/unicase/test-u8-is-lowercase.c: Likewise.
8569         * tests/unicase/test-u8-is-titlecase.c: Likewise.
8570         * tests/unicase/test-u8-is-uppercase.c: Likewise.
8571         * tests/unicase/test-u8-tolower.c: Likewise.
8572         * tests/unicase/test-u8-totitle.c: Likewise.
8573         * tests/unicase/test-u8-toupper.c: Likewise.
8574         * tests/unicase/test-u16-casecmp.c: Likewise.
8575         * tests/unicase/test-u16-casecoll.c: Likewise.
8576         * tests/unicase/test-u16-casefold.c: Likewise.
8577         * tests/unicase/test-u16-is-cased.c: Likewise.
8578         * tests/unicase/test-u16-is-casefolded.c: Likewise.
8579         * tests/unicase/test-u16-is-lowercase.c: Likewise.
8580         * tests/unicase/test-u16-is-titlecase.c: Likewise.
8581         * tests/unicase/test-u16-is-uppercase.c: Likewise.
8582         * tests/unicase/test-u16-tolower.c: Likewise.
8583         * tests/unicase/test-u16-totitle.c: Likewise.
8584         * tests/unicase/test-u16-toupper.c: Likewise.
8585         * tests/unicase/test-u32-casecmp.c: Likewise.
8586         * tests/unicase/test-u32-casecoll.c: Likewise.
8587         * tests/unicase/test-u32-casefold.c: Likewise.
8588         * tests/unicase/test-u32-is-cased.c: Likewise.
8589         * tests/unicase/test-u32-is-casefolded.c: Likewise.
8590         * tests/unicase/test-u32-is-lowercase.c: Likewise.
8591         * tests/unicase/test-u32-is-titlecase.c: Likewise.
8592         * tests/unicase/test-u32-is-uppercase.c: Likewise.
8593         * tests/unicase/test-u32-tolower.c: Likewise.
8594         * tests/unicase/test-u32-totitle.c: Likewise.
8595         * tests/unicase/test-u32-toupper.c: Likewise.
8596         * tests/unicase/test-ulc-casecmp.c: Likewise.
8597         * tests/unicase/test-ulc-casecoll.c: Likewise.
8598         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8599         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
8600         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8601         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8602         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
8603         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
8604         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8605         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8606         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8607         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
8608         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8609         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8610         * tests/unictype/test-bidi_byname.c: Likewise.
8611         * tests/unictype/test-bidi_name.c: Likewise.
8612         * tests/unictype/test-bidi_of.c: Likewise.
8613         * tests/unictype/test-bidi_test.c: Likewise.
8614         * tests/unictype/test-block_list.c: Likewise.
8615         * tests/unictype/test-block_of.c: Likewise.
8616         * tests/unictype/test-block_test.c: Likewise.
8617         * tests/unictype/test-categ_and.c: Likewise.
8618         * tests/unictype/test-categ_and_not.c: Likewise.
8619         * tests/unictype/test-categ_byname.c: Likewise.
8620         * tests/unictype/test-categ_name.c: Likewise.
8621         * tests/unictype/test-categ_none.c: Likewise.
8622         * tests/unictype/test-categ_of.c: Likewise.
8623         * tests/unictype/test-categ_or.c: Likewise.
8624         * tests/unictype/test-categ_test_withtable.c: Likewise.
8625         * tests/unictype/test-combining.c: Likewise.
8626         * tests/unictype/test-decdigit.c: Likewise.
8627         * tests/unictype/test-digit.c: Likewise.
8628         * tests/unictype/test-mirror.c: Likewise.
8629         * tests/unictype/test-numeric.c: Likewise.
8630         * tests/unictype/test-pr_byname.c: Likewise.
8631         * tests/unictype/test-pr_test.c: Likewise.
8632         * tests/unictype/test-predicate-part1.h: Likewise.
8633         * tests/unictype/test-scripts.c: Likewise.
8634         * tests/unictype/test-sy_c_ident.c: Likewise.
8635         * tests/unictype/test-sy_java_ident.c: Likewise.
8636         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
8637         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
8638         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
8639         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
8640         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
8641         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
8642         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
8643         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
8644         * tests/uninorm/test-canonical-decomposition.c: Likewise.
8645         * tests/uninorm/test-compat-decomposition.c: Likewise.
8646         * tests/uninorm/test-composition.c: Likewise.
8647         * tests/uninorm/test-decomposing-form.c: Likewise.
8648         * tests/uninorm/test-decomposition.c: Likewise.
8649         * tests/uninorm/test-u8-nfc.c: Likewise.
8650         * tests/uninorm/test-u8-nfd.c: Likewise.
8651         * tests/uninorm/test-u8-nfkc.c: Likewise.
8652         * tests/uninorm/test-u8-nfkd.c: Likewise.
8653         * tests/uninorm/test-u8-normcmp.c: Likewise.
8654         * tests/uninorm/test-u8-normcoll.c: Likewise.
8655         * tests/uninorm/test-u16-nfc.c: Likewise.
8656         * tests/uninorm/test-u16-nfd.c: Likewise.
8657         * tests/uninorm/test-u16-nfkc.c: Likewise.
8658         * tests/uninorm/test-u16-nfkd.c: Likewise.
8659         * tests/uninorm/test-u16-normcmp.c: Likewise.
8660         * tests/uninorm/test-u16-normcoll.c: Likewise.
8661         * tests/uninorm/test-u32-nfc.c: Likewise.
8662         * tests/uninorm/test-u32-nfd.c: Likewise.
8663         * tests/uninorm/test-u32-nfkc.c: Likewise.
8664         * tests/uninorm/test-u32-nfkd.c: Likewise.
8665         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8666         * tests/uninorm/test-u32-normcmp.c: Likewise.
8667         * tests/uninorm/test-u32-normcoll.c: Likewise.
8668         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
8669         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
8670         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
8671         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
8672         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
8673         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
8674         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
8675         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
8676         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
8677         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
8678         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
8679         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
8680         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
8681         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
8682         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
8683         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
8684         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
8685         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
8686         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
8687         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
8688         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
8689         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
8690         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
8691         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
8692         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
8693         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
8694         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
8695         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
8696         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
8697         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
8698         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
8699         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
8700         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
8701         * tests/uniwidth/test-u8-strwidth.c: Likewise.
8702         * tests/uniwidth/test-u8-width.c: Likewise.
8703         * tests/uniwidth/test-u16-strwidth.c: Likewise.
8704         * tests/uniwidth/test-u16-width.c: Likewise.
8705         * tests/uniwidth/test-u32-strwidth.c: Likewise.
8706         * tests/uniwidth/test-u32-width.c: Likewise.
8707         * tests/uniwidth/test-uc_width.c: Likewise.
8708         * tests/uniwidth/test-uc_width2.c: Likewise.
8709         * modules/acl-tests (Files): Add tests/macros.h.
8710         * modules/areadlink-tests (Files): Likewise.
8711         * modules/areadlink-with-size-tests (Files): Likewise.
8712         * modules/areadlinkat-tests (Files): Likewise.
8713         * modules/areadlinkat-with-size-tests (Files): Likewise.
8714         * modules/argmatch-tests (Files): Likewise.
8715         * modules/argv-iter-tests (Files): Likewise.
8716         * modules/array-list-tests (Files): Likewise.
8717         * modules/array-mergesort-tests (Files): Likewise.
8718         * modules/array-oset-tests (Files): Likewise.
8719         * modules/avltree-list-tests (Files): Likewise.
8720         * modules/avltree-oset-tests (Files): Likewise.
8721         * modules/avltreehash-list-tests (Files): Likewise.
8722         * modules/base64-tests (Files): Likewise.
8723         * modules/binary-io-tests (Files): Likewise.
8724         * modules/bitrotate-tests (Files): Likewise.
8725         * modules/btowc-tests (Files): Likewise.
8726         * modules/byteswap-tests (Files): Likewise.
8727         * modules/c-ctype-tests (Files): Likewise.
8728         * modules/c-stack-tests (Files): Likewise.
8729         * modules/c-strcase-tests (Files): Likewise.
8730         * modules/c-strcasestr-tests (Files): Likewise.
8731         * modules/c-strstr-tests (Files): Likewise.
8732         * modules/canonicalize-lgpl-tests (Files): Likewise.
8733         * modules/canonicalize-tests (Files): Likewise.
8734         * modules/carray-list-tests (Files): Likewise.
8735         * modules/ceilf-tests (Files): Likewise.
8736         * modules/ceill-tests (Files): Likewise.
8737         * modules/chown-tests (Files): Likewise.
8738         * modules/cloexec-tests (Files): Likewise.
8739         * modules/copy-file-tests (Files): Likewise.
8740         * modules/count-one-bits-tests (Files): Likewise.
8741         * modules/dprintf-posix-tests (Files): Likewise.
8742         * modules/dup2-tests (Files): Likewise.
8743         * modules/dup3-tests (Files): Likewise.
8744         * modules/duplocale-tests (Files): Likewise.
8745         * modules/fbufmode-tests (Files): Likewise.
8746         * modules/fchdir-tests (Files): Likewise.
8747         * modules/fcntl-safer-tests (Files): Likewise.
8748         * modules/fcntl-tests (Files): Likewise.
8749         * modules/fdopendir-tests (Files): Likewise.
8750         * modules/fdutimensat-tests (Files): Likewise.
8751         * modules/fflush-tests (Files): Likewise.
8752         * modules/filevercmp-tests (Files): Likewise.
8753         * modules/flock-tests (Files): Likewise.
8754         * modules/floorf-tests (Files): Likewise.
8755         * modules/floorl-tests (Files): Likewise.
8756         * modules/fnmatch-tests (Files): Likewise.
8757         * modules/fopen-safer-tests (Files): Likewise.
8758         * modules/fopen-tests (Files): Likewise.
8759         * modules/fpending-tests (Files): Likewise.
8760         * modules/fprintf-posix-tests (Files): Likewise.
8761         * modules/fpurge-tests (Files): Likewise.
8762         * modules/freadable-tests (Files): Likewise.
8763         * modules/freadahead-tests (Files): Likewise.
8764         * modules/freading-tests (Files): Likewise.
8765         * modules/freadptr-tests (Files): Likewise.
8766         * modules/freadseek-tests (Files): Likewise.
8767         * modules/freopen-tests (Files): Likewise.
8768         * modules/frexp-nolibm-tests (Files): Likewise.
8769         * modules/frexp-tests (Files): Likewise.
8770         * modules/frexpl-nolibm-tests (Files): Likewise.
8771         * modules/frexpl-tests (Files): Likewise.
8772         * modules/fseek-tests (Files): Likewise.
8773         * modules/fseeko-tests (Files): Likewise.
8774         * modules/fstrcmp-tests (Files): Likewise.
8775         * modules/fsync-tests (Files): Likewise.
8776         * modules/ftell-tests (Files): Likewise.
8777         * modules/ftello-tests (Files): Likewise.
8778         * modules/func-tests (Files): Likewise.
8779         * modules/futimens-tests (Files): Likewise.
8780         * modules/fwritable-tests (Files): Likewise.
8781         * modules/fwriting-tests (Files): Likewise.
8782         * modules/getcwd-tests (Files): Likewise.
8783         * modules/getdate-tests (Files): Likewise.
8784         * modules/getdelim-tests (Files): Likewise.
8785         * modules/getdtablesize-tests (Files): Likewise.
8786         * modules/getgroups-tests (Files): Likewise.
8787         * modules/getline-tests (Files): Likewise.
8788         * modules/getndelim2-tests (Files): Likewise.
8789         * modules/glob-tests (Files): Likewise.
8790         * modules/hash-tests (Files): Likewise.
8791         * modules/i-ring-tests (Files): Likewise.
8792         * modules/iconv-tests (Files): Likewise.
8793         * modules/iconv_open-utf-tests (Files): Likewise.
8794         * modules/idpriv-drop-tests (Files): Likewise.
8795         * modules/idpriv-droptemp-tests (Files): Likewise.
8796         * modules/inet_ntop-tests (Files): Likewise.
8797         * modules/inet_pton-tests (Files): Likewise.
8798         * modules/isblank-tests (Files): Likewise.
8799         * modules/isfinite-tests (Files): Likewise.
8800         * modules/isinf-tests (Files): Likewise.
8801         * modules/isnan-tests (Files): Likewise.
8802         * modules/isnand-nolibm-tests (Files): Likewise.
8803         * modules/isnand-tests (Files): Likewise.
8804         * modules/isnanf-nolibm-tests (Files): Likewise.
8805         * modules/isnanf-tests (Files): Likewise.
8806         * modules/isnanl-nolibm-tests (Files): Likewise.
8807         * modules/isnanl-tests (Files): Likewise.
8808         * modules/lchown-tests (Files): Likewise.
8809         * modules/ldexpl-tests (Files): Likewise.
8810         * modules/link-tests (Files): Likewise.
8811         * modules/linkat-tests (Files): Likewise.
8812         * modules/linked-list-tests (Files): Likewise.
8813         * modules/linkedhash-list-tests (Files): Likewise.
8814         * modules/localename-tests (Files): Likewise.
8815         * modules/lseek-tests (Files): Likewise.
8816         * modules/lstat-tests (Files): Likewise.
8817         * modules/mbmemcasecmp-tests (Files): Likewise.
8818         * modules/mbmemcasecoll-tests (Files): Likewise.
8819         * modules/mbrtowc-tests (Files): Likewise.
8820         * modules/mbscasecmp-tests (Files): Likewise.
8821         * modules/mbscasestr-tests (Files): Likewise.
8822         * modules/mbschr-tests (Files): Likewise.
8823         * modules/mbscspn-tests (Files): Likewise.
8824         * modules/mbsinit-tests (Files): Likewise.
8825         * modules/mbsncasecmp-tests (Files): Likewise.
8826         * modules/mbsnrtowcs-tests (Files): Likewise.
8827         * modules/mbspbrk-tests (Files): Likewise.
8828         * modules/mbspcasecmp-tests (Files): Likewise.
8829         * modules/mbsrchr-tests (Files): Likewise.
8830         * modules/mbsrtowcs-tests (Files): Likewise.
8831         * modules/mbsspn-tests (Files): Likewise.
8832         * modules/mbsstr-tests (Files): Likewise.
8833         * modules/memchr-tests (Files): Likewise.
8834         * modules/memchr2-tests (Files): Likewise.
8835         * modules/memcmp-tests (Files): Likewise.
8836         * modules/memmem-tests (Files): Likewise.
8837         * modules/memrchr-tests (Files): Likewise.
8838         * modules/mkdir-tests (Files): Likewise.
8839         * modules/mkfifo-tests (Files): Likewise.
8840         * modules/mkfifoat-tests (Files): Likewise.
8841         * modules/mknod-tests (Files): Likewise.
8842         * modules/nanosleep-tests (Files): Likewise.
8843         * modules/nl_langinfo-tests (Files): Likewise.
8844         * modules/obstack-printf-tests (Files): Likewise.
8845         * modules/open-tests (Files): Likewise.
8846         * modules/openat-tests (Files): Likewise.
8847         * modules/pipe-filter-gi-tests (Files): Likewise.
8848         * modules/pipe-filter-ii-tests (Files): Likewise.
8849         * modules/pipe2-tests (Files): Likewise.
8850         * modules/popen-safer-tests (Files): Likewise.
8851         * modules/popen-tests (Files): Likewise.
8852         * modules/posixtm-tests (Files): Likewise.
8853         * modules/pread-tests (Files): Likewise.
8854         * modules/printf-frexp-tests (Files): Likewise.
8855         * modules/printf-frexpl-tests (Files): Likewise.
8856         * modules/printf-posix-tests (Files): Likewise.
8857         * modules/priv-set-tests (Files): Likewise.
8858         * modules/quotearg-tests (Files): Likewise.
8859         * modules/random_r-tests (Files): Likewise.
8860         * modules/rawmemchr-tests (Files): Likewise.
8861         * modules/rbtree-list-tests (Files): Likewise.
8862         * modules/rbtree-oset-tests (Files): Likewise.
8863         * modules/rbtreehash-list-tests (Files): Likewise.
8864         * modules/readlink-tests (Files): Likewise.
8865         * modules/remove-tests (Files): Likewise.
8866         * modules/rename-tests (Files): Likewise.
8867         * modules/renameat-tests (Files): Likewise.
8868         * modules/rmdir-tests (Files): Likewise.
8869         * modules/round-tests (Files): Likewise.
8870         * modules/roundf-tests (Files): Likewise.
8871         * modules/roundl-tests (Files): Likewise.
8872         * modules/safe-alloc-tests (Files): Likewise.
8873         * modules/setenv-tests (Files): Likewise.
8874         * modules/sigaction-tests (Files): Likewise.
8875         * modules/signbit-tests (Files): Likewise.
8876         * modules/sleep-tests (Files): Likewise.
8877         * modules/snprintf-posix-tests (Files): Likewise.
8878         * modules/snprintf-tests (Files): Likewise.
8879         * modules/sprintf-posix-tests (Files): Likewise.
8880         * modules/stat-tests (Files): Likewise.
8881         * modules/stat-time-tests (Files): Likewise.
8882         * modules/strcasestr-tests (Files): Likewise.
8883         * modules/strchrnul-tests (Files): Likewise.
8884         * modules/strerror-tests (Files): Likewise.
8885         * modules/striconv-tests (Files): Likewise.
8886         * modules/striconveh-tests (Files): Likewise.
8887         * modules/striconveha-tests (Files): Likewise.
8888         * modules/strsignal-tests (Files): Likewise.
8889         * modules/strstr-tests (Files): Likewise.
8890         * modules/strtod-tests (Files): Likewise.
8891         * modules/strverscmp-tests (Files): Likewise.
8892         * modules/symlink-tests (Files): Likewise.
8893         * modules/symlinkat-tests (Files): Likewise.
8894         * modules/trunc-tests (Files): Likewise.
8895         * modules/truncf-tests (Files): Likewise.
8896         * modules/truncl-tests (Files): Likewise.
8897         * modules/uname-tests (Files): Likewise.
8898         * modules/unicase/cased-tests (Files): Likewise.
8899         * modules/unicase/ignorable-tests (Files): Likewise.
8900         * modules/unicase/locale-language-tests (Files): Likewise.
8901         * modules/unicase/tolower-tests (Files): Likewise.
8902         * modules/unicase/totitle-tests (Files): Likewise.
8903         * modules/unicase/toupper-tests (Files): Likewise.
8904         * modules/unicase/u8-casecmp-tests (Files): Likewise.
8905         * modules/unicase/u8-casecoll-tests (Files): Likewise.
8906         * modules/unicase/u8-casefold-tests (Files): Likewise.
8907         * modules/unicase/u8-is-cased-tests (Files): Likewise.
8908         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
8909         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
8910         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
8911         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
8912         * modules/unicase/u8-tolower-tests (Files): Likewise.
8913         * modules/unicase/u8-totitle-tests (Files): Likewise.
8914         * modules/unicase/u8-toupper-tests (Files): Likewise.
8915         * modules/unicase/u16-casecmp-tests (Files): Likewise.
8916         * modules/unicase/u16-casecoll-tests (Files): Likewise.
8917         * modules/unicase/u16-casefold-tests (Files): Likewise.
8918         * modules/unicase/u16-is-cased-tests (Files): Likewise.
8919         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
8920         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
8921         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
8922         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
8923         * modules/unicase/u16-tolower-tests (Files): Likewise.
8924         * modules/unicase/u16-totitle-tests (Files): Likewise.
8925         * modules/unicase/u16-toupper-tests (Files): Likewise.
8926         * modules/unicase/u32-casecmp-tests (Files): Likewise.
8927         * modules/unicase/u32-casecoll-tests (Files): Likewise.
8928         * modules/unicase/u32-casefold-tests (Files): Likewise.
8929         * modules/unicase/u32-is-cased-tests (Files): Likewise.
8930         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
8931         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
8932         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
8933         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
8934         * modules/unicase/u32-tolower-tests (Files): Likewise.
8935         * modules/unicase/u32-totitle-tests (Files): Likewise.
8936         * modules/unicase/u32-toupper-tests (Files): Likewise.
8937         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
8938         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
8939         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
8940         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
8941         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
8942         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
8943         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
8944         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
8945         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
8946         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
8947         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
8948         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
8949         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
8950         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
8951         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
8952         * modules/unictype/bidicategory-name-tests (Files): Likewise.
8953         * modules/unictype/bidicategory-of-tests (Files): Likewise.
8954         * modules/unictype/bidicategory-test-tests (Files): Likewise.
8955         * modules/unictype/block-list-tests (Files): Likewise.
8956         * modules/unictype/block-of-tests (Files): Likewise.
8957         * modules/unictype/block-test-tests (Files): Likewise.
8958         * modules/unictype/category-C-tests (Files): Likewise.
8959         * modules/unictype/category-Cc-tests (Files): Likewise.
8960         * modules/unictype/category-Cf-tests (Files): Likewise.
8961         * modules/unictype/category-Cn-tests (Files): Likewise.
8962         * modules/unictype/category-Co-tests (Files): Likewise.
8963         * modules/unictype/category-Cs-tests (Files): Likewise.
8964         * modules/unictype/category-L-tests (Files): Likewise.
8965         * modules/unictype/category-Ll-tests (Files): Likewise.
8966         * modules/unictype/category-Lm-tests (Files): Likewise.
8967         * modules/unictype/category-Lo-tests (Files): Likewise.
8968         * modules/unictype/category-Lt-tests (Files): Likewise.
8969         * modules/unictype/category-Lu-tests (Files): Likewise.
8970         * modules/unictype/category-M-tests (Files): Likewise.
8971         * modules/unictype/category-Mc-tests (Files): Likewise.
8972         * modules/unictype/category-Me-tests (Files): Likewise.
8973         * modules/unictype/category-Mn-tests (Files): Likewise.
8974         * modules/unictype/category-N-tests (Files): Likewise.
8975         * modules/unictype/category-Nd-tests (Files): Likewise.
8976         * modules/unictype/category-Nl-tests (Files): Likewise.
8977         * modules/unictype/category-No-tests (Files): Likewise.
8978         * modules/unictype/category-P-tests (Files): Likewise.
8979         * modules/unictype/category-Pc-tests (Files): Likewise.
8980         * modules/unictype/category-Pd-tests (Files): Likewise.
8981         * modules/unictype/category-Pe-tests (Files): Likewise.
8982         * modules/unictype/category-Pf-tests (Files): Likewise.
8983         * modules/unictype/category-Pi-tests (Files): Likewise.
8984         * modules/unictype/category-Po-tests (Files): Likewise.
8985         * modules/unictype/category-Ps-tests (Files): Likewise.
8986         * modules/unictype/category-S-tests (Files): Likewise.
8987         * modules/unictype/category-Sc-tests (Files): Likewise.
8988         * modules/unictype/category-Sk-tests (Files): Likewise.
8989         * modules/unictype/category-Sm-tests (Files): Likewise.
8990         * modules/unictype/category-So-tests (Files): Likewise.
8991         * modules/unictype/category-Z-tests (Files): Likewise.
8992         * modules/unictype/category-Zl-tests (Files): Likewise.
8993         * modules/unictype/category-Zp-tests (Files): Likewise.
8994         * modules/unictype/category-Zs-tests (Files): Likewise.
8995         * modules/unictype/category-and-not-tests (Files): Likewise.
8996         * modules/unictype/category-and-tests (Files): Likewise.
8997         * modules/unictype/category-byname-tests (Files): Likewise.
8998         * modules/unictype/category-name-tests (Files): Likewise.
8999         * modules/unictype/category-none-tests (Files): Likewise.
9000         * modules/unictype/category-of-tests (Files): Likewise.
9001         * modules/unictype/category-or-tests (Files): Likewise.
9002         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9003         * modules/unictype/combining-class-tests (Files): Likewise.
9004         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9005         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9006         * modules/unictype/ctype-blank-tests (Files): Likewise.
9007         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9008         * modules/unictype/ctype-digit-tests (Files): Likewise.
9009         * modules/unictype/ctype-graph-tests (Files): Likewise.
9010         * modules/unictype/ctype-lower-tests (Files): Likewise.
9011         * modules/unictype/ctype-print-tests (Files): Likewise.
9012         * modules/unictype/ctype-punct-tests (Files): Likewise.
9013         * modules/unictype/ctype-space-tests (Files): Likewise.
9014         * modules/unictype/ctype-upper-tests (Files): Likewise.
9015         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9016         * modules/unictype/decimal-digit-tests (Files): Likewise.
9017         * modules/unictype/digit-tests (Files): Likewise.
9018         * modules/unictype/mirror-tests (Files): Likewise.
9019         * modules/unictype/numeric-tests (Files): Likewise.
9020         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9021         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9022         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9023         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9024         Likewise.
9025         * modules/unictype/property-bidi-block-separator-tests (Files):
9026         Likewise.
9027         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9028         Likewise.
9029         * modules/unictype/property-bidi-common-separator-tests (Files):
9030         Likewise.
9031         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9032         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9033         Likewise.
9034         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9035         Likewise.
9036         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9037         Likewise.
9038         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9039         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9040         Likewise.
9041         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9042         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9043         Likewise.
9044         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9045         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9046         * modules/unictype/property-bidi-segment-separator-tests (Files):
9047         Likewise.
9048         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9049         * modules/unictype/property-byname-tests (Files): Likewise.
9050         * modules/unictype/property-combining-tests (Files): Likewise.
9051         * modules/unictype/property-composite-tests (Files): Likewise.
9052         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9053         * modules/unictype/property-dash-tests (Files): Likewise.
9054         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9055         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9056         Likewise.
9057         * modules/unictype/property-deprecated-tests (Files): Likewise.
9058         * modules/unictype/property-diacritic-tests (Files): Likewise.
9059         * modules/unictype/property-extender-tests (Files): Likewise.
9060         * modules/unictype/property-format-control-tests (Files): Likewise.
9061         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9062         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9063         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9064         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9065         * modules/unictype/property-hyphen-tests (Files): Likewise.
9066         * modules/unictype/property-id-continue-tests (Files): Likewise.
9067         * modules/unictype/property-id-start-tests (Files): Likewise.
9068         * modules/unictype/property-ideographic-tests (Files): Likewise.
9069         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9070         * modules/unictype/property-ids-trinary-operator-tests (Files):
9071         Likewise.
9072         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9073         * modules/unictype/property-iso-control-tests (Files): Likewise.
9074         * modules/unictype/property-join-control-tests (Files): Likewise.
9075         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9076         * modules/unictype/property-line-separator-tests (Files): Likewise.
9077         * modules/unictype/property-logical-order-exception-tests (Files):
9078         Likewise.
9079         * modules/unictype/property-lowercase-tests (Files): Likewise.
9080         * modules/unictype/property-math-tests (Files): Likewise.
9081         * modules/unictype/property-non-break-tests (Files): Likewise.
9082         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9083         * modules/unictype/property-numeric-tests (Files): Likewise.
9084         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9085         * modules/unictype/property-other-default-ignorable-code-point-tests
9086         (Files): Likewise.
9087         * modules/unictype/property-other-grapheme-extend-tests (Files):
9088         Likewise.
9089         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9090         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9091         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9092         * modules/unictype/property-other-math-tests (Files): Likewise.
9093         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9094         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9095         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9096         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9097         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9098         * modules/unictype/property-private-use-tests (Files): Likewise.
9099         * modules/unictype/property-punctuation-tests (Files): Likewise.
9100         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9101         * modules/unictype/property-radical-tests (Files): Likewise.
9102         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9103         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9104         * modules/unictype/property-space-tests (Files): Likewise.
9105         * modules/unictype/property-terminal-punctuation-tests (Files):
9106         Likewise.
9107         * modules/unictype/property-test-tests (Files): Likewise.
9108         * modules/unictype/property-titlecase-tests (Files): Likewise.
9109         * modules/unictype/property-unassigned-code-value-tests (Files):
9110         Likewise.
9111         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9112         * modules/unictype/property-uppercase-tests (Files): Likewise.
9113         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9114         * modules/unictype/property-white-space-tests (Files): Likewise.
9115         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9116         * modules/unictype/property-xid-start-tests (Files): Likewise.
9117         * modules/unictype/property-zero-width-tests (Files): Likewise.
9118         * modules/unictype/scripts-tests (Files): Likewise.
9119         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9120         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9121         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9122         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9123         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9124         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9125         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9126         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9127         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9128         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9129         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9130         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9131         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9132         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9133         * modules/uninorm/composition-tests (Files): Likewise.
9134         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9135         * modules/uninorm/decomposition-tests (Files): Likewise.
9136         * modules/uninorm/filter-tests (Files): Likewise.
9137         * modules/uninorm/nfc-tests (Files): Likewise.
9138         * modules/uninorm/nfd-tests (Files): Likewise.
9139         * modules/uninorm/nfkc-tests (Files): Likewise.
9140         * modules/uninorm/nfkd-tests (Files): Likewise.
9141         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9142         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9143         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9144         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9145         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9146         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9147         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9148         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9149         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9150         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9151         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9152         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9153         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9154         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9155         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9156         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9157         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9158         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9159         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9160         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9161         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9162         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9163         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9164         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9165         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9166         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9167         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9168         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9169         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9170         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9171         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9172         * modules/uniwidth/u8-width-tests (Files): Likewise.
9173         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9174         * modules/uniwidth/u16-width-tests (Files): Likewise.
9175         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9176         * modules/uniwidth/u32-width-tests (Files): Likewise.
9177         * modules/uniwidth/width-tests (Files): Likewise.
9178         * modules/unlink-tests (Files): Likewise.
9179         * modules/unsetenv-tests (Files): Likewise.
9180         * modules/usleep-tests (Files): Likewise.
9181         * modules/utimens-tests (Files): Likewise.
9182         * modules/utimensat-tests (Files): Likewise.
9183         * modules/vasnprintf-posix-tests (Files): Likewise.
9184         * modules/vasnprintf-tests (Files): Likewise.
9185         * modules/vasprintf-posix-tests (Files): Likewise.
9186         * modules/vasprintf-tests (Files): Likewise.
9187         * modules/vdprintf-posix-tests (Files): Likewise.
9188         * modules/vfprintf-posix-tests (Files): Likewise.
9189         * modules/vprintf-posix-tests (Files): Likewise.
9190         * modules/vsnprintf-posix-tests (Files): Likewise.
9191         * modules/vsnprintf-tests (Files): Likewise.
9192         * modules/vsprintf-posix-tests (Files): Likewise.
9193         * modules/wcrtomb-tests (Files): Likewise.
9194         * modules/wcsnrtombs-tests (Files): Likewise.
9195         * modules/wcsrtombs-tests (Files): Likewise.
9196         * modules/wctype-tests (Files): Likewise.
9197         * modules/wcwidth-tests (Files): Likewise.
9198         * modules/xmemdup0-tests (Files): Likewise.
9199         * modules/xprintf-posix-tests (Files): Likewise.
9200         * modules/xvasprintf-tests (Files): Likewise.
9201
9202 2009-12-24  Eric Blake  <ebb9@byu.net>
9203
9204         test-nanosleep: fix typo
9205         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9206         patch.
9207         Reported by Bruno Haible.
9208
9209 2009-12-24  Bruno Haible  <bruno@clisp.org>
9210
9211         Reduce namespace pollution on glibc systems.
9212         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9213         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9214         systems.
9215         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9216         <getopt.h> on glibc systems.
9217         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9218         systems.
9219         * lib/fcntl.c: Include <unistd.h> here instead.
9220
9221 2009-12-24  Bruno Haible  <bruno@clisp.org>
9222
9223         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9224
9225 2009-12-24  Eric Blake  <ebb9@byu.net>
9226
9227         tests: add signature checks
9228         * tests/signature.h (SIGNATURE_CHECK): New file.
9229         * modules/atexit-tests (Files): Use it.
9230         * modules/btowc-tests (Files): Likewise.
9231         * modules/canonicalize-lgpl-tests (Files): Likewise.
9232         * modules/ceilf-tests (Files): Likewise.
9233         * modules/ceill-tests (Files): Likewise.
9234         * modules/chown-tests (Files): Likewise.
9235         * modules/dprintf-posix-tests (Files): Likewise.
9236         * modules/dup2-tests (Files): Likewise.
9237         * modules/dup3-tests (Files): Likewise.
9238         * modules/duplocale-tests (Files): Likewise.
9239         * modules/fchdir-tests (Files): Likewise.
9240         * modules/fcntl-tests (Files): Likewise.
9241         * modules/fdopendir-tests (Files): Likewise.
9242         * modules/fflush-tests (Files): Likewise.
9243         * modules/flock-tests (Files): Likewise.
9244         * modules/floorf-tests (Files): Likewise.
9245         * modules/floorl-tests (Files): Likewise.
9246         * modules/fnmatch-tests (Files): Likewise.
9247         * modules/fopen-tests (Files): Likewise.
9248         * modules/fprintf-posix-tests (Files): Likewise.
9249         * modules/freopen-tests (Files): Likewise.
9250         * modules/frexp-nolibm-tests (Files): Likewise.
9251         * modules/frexp-tests (Files): Likewise.
9252         * modules/frexpl-nolibm-tests (Files): Likewise.
9253         * modules/frexpl-tests (Files): Likewise.
9254         * modules/fseek-tests (Files): Likewise.
9255         * modules/fseeko-tests (Files): Likewise.
9256         * modules/fsync-tests (Files): Likewise.
9257         * modules/ftell-tests (Files): Likewise.
9258         * modules/ftello-tests (Files): Likewise.
9259         * modules/futimens-tests (Files): Likewise.
9260         * modules/getaddrinfo-tests (Files): Likewise.
9261         * modules/getcwd-tests (Files): Likewise.
9262         * modules/getdelim-tests (Files): Likewise.
9263         * modules/getdtablesize-tests (Files): Likewise.
9264         * modules/getgroups-tests (Files): Likewise.
9265         * modules/gethostname-tests (Files): Likewise.
9266         * modules/getline-tests (Files): Likewise.
9267         * modules/getopt-posix-tests (Files): Likewise.
9268         * modules/gettimeofday-tests (Files): Likewise.
9269         * modules/glob-tests (Files): Likewise.
9270         * modules/iconv-tests (Files): Likewise.
9271         * modules/inet_ntop-tests (Files): Likewise.
9272         * modules/inet_pton-tests (Files): Likewise.
9273         * modules/isblank-tests (Files): Likewise.
9274         * modules/lchown-tests (Files): Likewise.
9275         * modules/ldexpl-tests (Files): Likewise.
9276         * modules/link-tests (Files): Likewise.
9277         * modules/linkat-tests (Files): Likewise.
9278         * modules/lseek-tests (Files): Likewise.
9279         * modules/lstat-tests (Files): Likewise.
9280         * modules/mbrtowc-tests (Files): Likewise.
9281         * modules/mbsinit-tests (Files): Likewise.
9282         * modules/mbsnrtowcs-tests (Files): Likewise.
9283         * modules/mbsrtowcs-tests (Files): Likewise.
9284         * modules/memchr-tests (Files): Likewise.
9285         * modules/memcmp-tests (Files): Likewise.
9286         * modules/memmem-tests (Files): Likewise.
9287         * modules/memrchr-tests (Files): Likewise.
9288         * modules/mkdir-tests (Files): Likewise.
9289         * modules/mkfifo-tests (Files): Likewise.
9290         * modules/mkfifoat-tests (Files): Likewise.
9291         * modules/mknod-tests (Files): Likewise.
9292         * modules/nanosleep-tests (Files): Likewise.
9293         * modules/nl_langinfo-tests (Files): Likewise.
9294         * modules/obstack-printf-tests (Files): Likewise.
9295         * modules/open-tests (Files): Likewise.
9296         * modules/openat-tests (Files): Likewise.
9297         * modules/perror-tests (Files): Likewise.
9298         * modules/pipe2-tests (Files): Likewise.
9299         * modules/poll-tests (Files): Likewise.
9300         * modules/popen-tests (Files): Likewise.
9301         * modules/posix_spawn-tests (Files): Likewise.
9302         * modules/posix_spawnp-tests (Files): Likewise.
9303         * modules/pread-tests (Files): Likewise.
9304         * modules/printf-posix-tests (Files): Likewise.
9305         * modules/pty-tests (Files): Likewise.
9306         * modules/random_r-tests (Files): Likewise.
9307         * modules/rawmemchr-tests (Files): Likewise.
9308         * modules/readlink-tests (Files): Likewise.
9309         * modules/remove-tests (Files): Likewise.
9310         * modules/rename-tests (Files): Likewise.
9311         * modules/renameat-tests (Files): Likewise.
9312         * modules/rmdir-tests (Files): Likewise.
9313         * modules/round-tests (Files): Likewise.
9314         * modules/roundf-tests (Files): Likewise.
9315         * modules/roundl-tests (Files): Likewise.
9316         * modules/select-tests (Files): Likewise.
9317         * modules/setenv-tests (Files): Likewise.
9318         * modules/sigaction-tests (Files): Likewise.
9319         * modules/sleep-tests (Files): Likewise.
9320         * modules/snprintf-posix-tests (Files): Likewise.
9321         * modules/snprintf-tests (Files): Likewise.
9322         * modules/sprintf-posix-tests (Files): Likewise.
9323         * modules/stat-tests (Files): Likewise.
9324         * modules/strcasestr-tests (Files): Likewise.
9325         * modules/strchrnul-tests (Files): Likewise.
9326         * modules/strerror-tests (Files): Likewise.
9327         * modules/strsignal-tests (Files): Likewise.
9328         * modules/strstr-tests (Files): Likewise.
9329         * modules/strtod-tests (Files): Likewise.
9330         * modules/strverscmp-tests (Files): Likewise.
9331         * modules/symlink-tests (Files): Likewise.
9332         * modules/symlinkat-tests (Files): Likewise.
9333         * modules/times-tests (Files): Likewise.
9334         * modules/trunc-tests (Files): Likewise.
9335         * modules/truncf-tests (Files): Likewise.
9336         * modules/truncl-tests (Files): Likewise.
9337         * modules/tsearch-tests (Files): Likewise.
9338         * modules/uname-tests (Files): Likewise.
9339         * modules/unlink-tests (Files): Likewise.
9340         * modules/unsetenv-tests (Files): Likewise.
9341         * modules/usleep-tests (Files): Likewise.
9342         * modules/utimensat-tests (Files): Likewise.
9343         * modules/vasprintf-tests (Files): Likewise.
9344         * modules/vdprintf-posix-tests (Files): Likewise.
9345         * modules/vfprintf-posix-tests (Files): Likewise.
9346         * modules/vprintf-posix-tests (Files): Likewise.
9347         * modules/vsnprintf-posix-tests (Files): Likewise.
9348         * modules/vsnprintf-tests (Files): Likewise.
9349         * modules/vsprintf-posix-tests (Files): Likewise.
9350         * modules/wcrtomb-tests (Files): Likewise.
9351         * modules/wcsnrtombs-tests (Files): Likewise.
9352         * modules/wcsrtombs-tests (Files): Likewise.
9353         * modules/wcwidth-tests (Files): Likewise.
9354         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9355         * tests/test-isinf.c (isinf): Likewise.
9356         * tests/test-isnan.c (isnan): Likewise.
9357         * tests/test-signbit.c (signbit): Likewise.
9358         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9359         declaration, either as macro or with correct signature.
9360         (select): Ensure function under test is declared with correct
9361         signature in correct header.
9362         * tests/test-atexit.c (atexit): Likewise.
9363         * tests/test-btowc.c (btowc): Likewise.
9364         * tests/test-canonicalize-lgpl.c (realpath)
9365         (canonicalize_file_name): Likewise.
9366         * tests/test-ceilf1.c (ceilf): Likewise.
9367         * tests/test-ceill.c (ceill): Likewise.
9368         * tests/test-chown.c (chown): Likewise.
9369         * tests/test-dprintf-posix.c (dprintf): Likewise.
9370         * tests/test-dup2.c (dup2): Likewise.
9371         * tests/test-dup3.c (dup3): Likewise.
9372         * tests/test-duplocale.c (duplocale): Likewise.
9373         * tests/test-fchdir.c (fchdir): Likewise.
9374         * tests/test-fchownat.c (fchownat): Likewise.
9375         * tests/test-fcntl.c (fcntl): Likewise.
9376         * tests/test-fdopendir.c (fdopendir): Likewise.
9377         * tests/test-fflush.c (fflush): Likewise.
9378         * tests/test-flock.c (flock): Likewise.
9379         * tests/test-floorf1.c (floorf): Likewise.
9380         * tests/test-floorl.c (floorl): Likewise.
9381         * tests/test-fnmatch.c (fnmatch): Likewise.
9382         * tests/test-fopen.c (fopen): Likewise.
9383         * tests/test-fprintf-posix.c (fprintf): Likewise.
9384         * tests/test-freopen.c (freopen): Likewise.
9385         * tests/test-frexp.c (frexp): Likewise.
9386         * tests/test-frexpl.c (frexpl): Likewise.
9387         * tests/test-fseek.c (fseek): Likewise.
9388         * tests/test-fseeko.c (fseeko): Likewise.
9389         * tests/test-fstatat.c (fstatat): Likewise.
9390         * tests/test-fsync.c (fsync): Likewise.
9391         * tests/test-ftell.c (ftell): Likewise.
9392         * tests/test-ftello.c (ftello): Likewise.
9393         * tests/test-futimens.c (futimens): Likewise.
9394         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9395         (gai_strerror): Likewise.
9396         * tests/test-getcwd.c (getcwd): Likewise.
9397         * tests/test-getdelim.c (getdelim): Likewise.
9398         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9399         * tests/test-getgroups.c (getgroups): Likewise.
9400         * tests/test-gethostname.c (gethostname): Likewise.
9401         * tests/test-getline.c (getline): Likewise.
9402         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9403         Likewise.
9404         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9405         * tests/test-glob.c (glob, globfree): Likewise.
9406         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9407         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9408         * tests/test-inet_pton.c (inet_pton): Likewise.
9409         * tests/test-isblank.c (isblank): Likewise.
9410         * tests/test-lchown.c (lchown): Likewise.
9411         * tests/test-ldexpl.c (ldexpl): Likewise.
9412         * tests/test-link.c (link): Likewise.
9413         * tests/test-linkat.c (linkat): Likewise.
9414         * tests/test-lseek.c (lseek): Likewise.
9415         * tests/test-lstat.c (lstat): Likewise.
9416         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9417         * tests/test-mbsinit.c (mbsinit): Likewise.
9418         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9419         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9420         * tests/test-memchr.c (memchr): Likewise.
9421         * tests/test-memcmp.c (memcmp): Likewise.
9422         * tests/test-memmem.c (memmem): Likewise.
9423         * tests/test-memrchr.c (memrchr): Likewise.
9424         * tests/test-mkdir.c (mkdir): Likewise.
9425         * tests/test-mkdirat.c (mkdirat): Likewise.
9426         * tests/test-mkfifo.c (mkfifo): Likewise.
9427         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9428         * tests/test-mknod.c (mknod): Likewise.
9429         * tests/test-nanosleep.c (nanosleep): Likewise.
9430         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9431         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9432         Likewise.
9433         * tests/test-open.c (open): Likewise.
9434         * tests/test-openat.c (openat): Likewise.
9435         * tests/test-perror.c (perror): Likewise.
9436         * tests/test-pipe2.c (pipe2): Likewise.
9437         * tests/test-poll.c (poll): Likewise.
9438         * tests/test-popen.c (popen, pclose): Likewise.
9439         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9440         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9441         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9442         (posix_spawn_file_actions_destroy)
9443         (posix_spawn_file_actions_addclose)
9444         (posix_spawn_file_actions_addopen)
9445         (posix_spawn_file_actions_adddup2): Likewise.
9446         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9447         * tests/test-pread.c (pread): Likewise.
9448         * tests/test-printf-posix.c (printf): Likewise.
9449         * tests/test-pty.c (openpty, forkpty): Likewise.
9450         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9451         (random_r): Likewise.
9452         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9453         * tests/test-readlink.c (readlink): Likewise.
9454         * tests/test-remove.c (remove): Likewise.
9455         * tests/test-rename.c (rename): Likewise.
9456         * tests/test-renameat.c (renameat): Likewise.
9457         * tests/test-rmdir.c (rmdir): Likewise.
9458         * tests/test-round1.c (round): Likewise.
9459         * tests/test-roundf1.c (roundf): Likewise.
9460         * tests/test-roundl.c (roundl): Likewise.
9461         * tests/test-setenv.c (setenv): Likewise.
9462         * tests/test-sigaction.c (sigaction): Likewise.
9463         * tests/test-sleep.c (sleep): Likewise.
9464         * tests/test-snprintf.c (snprintf): Likewise.
9465         * tests/test-sprintf-posix.c (sprintf): Likewise.
9466         * tests/test-stat.c (stat): Likewise.
9467         * tests/test-stpncpy.c (stpncpy): Likewise.
9468         * tests/test-strcasestr.c (strcasestr): Likewise.
9469         * tests/test-strchrnul.c (strchrnul): Likewise.
9470         * tests/test-strerror.c (strerror): Likewise.
9471         * tests/test-strsignal.c (strsignal): Likewise.
9472         * tests/test-strstr.c (strstr): Likewise.
9473         * tests/test-strtod.c (strtod): Likewise.
9474         * tests/test-strverscmp.c (strverscmp): Likewise.
9475         * tests/test-symlink.c (symlink): Likewise.
9476         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9477         * tests/test-times.c (times): Likewise.
9478         * tests/test-trunc1.c (trunc): Likewise.
9479         * tests/test-truncf1.c (truncf): Likewise.
9480         * tests/test-truncl.c (truncl): Likewise.
9481         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9482         Likewise.
9483         * tests/test-uname.c (uname): Likewise.
9484         * tests/test-unlink.c (unlink): Likewise.
9485         * tests/test-unlinkat.c (unlinkat): Likewise.
9486         * tests/test-unsetenv.c (unsetenv): Likewise.
9487         * tests/test-usleep.c (usleep): Likewise.
9488         * tests/test-utimensat.c (utimensat): Likewise.
9489         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9490         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9491         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9492         * tests/test-vprintf-posix.c (vprintf): Likewise.
9493         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9494         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9495         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9496         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9497         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9498         * tests/test-wcwidth.c (wcwidth): Likewise.
9499
9500         build: pull in conditional headers during GNULIB_POSIXCHECK
9501         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9502         definitions from any conditionally-included headers.
9503         * lib/stdlib.in.h (includes): Likewise.
9504         * lib/unistd.in.h (includes): Likewise.
9505
9506 2009-12-24  Bruno Haible  <bruno@clisp.org>
9507
9508         * tests/test-argv-iter.c: Include header file being tested immediately
9509         after config.h.
9510         * tests/test-base64.c: Likewise.
9511         * tests/test-flock.c: Likewise.
9512         * tests/test-fsync.c: Likewise.
9513         * tests/test-getdate.c: Likewise.
9514         * tests/test-getndelim2.c: Likewise.
9515         * tests/test-isfinite.c: Likewise.
9516         * tests/test-isinf.c: Likewise.
9517         * tests/test-strerror.c: Likewise.
9518         * tests/test-strsignal.c: Likewise.
9519
9520 2009-12-23  Eric Blake  <ebb9@byu.net>
9521
9522         unistd: work around cygwin bug
9523         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9524         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9525         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9526
9527 2009-12-23  Bruno Haible  <bruno@clisp.org>
9528
9529         localename: More tests.
9530         * tests/test-localename.c (SIZEOF): New macro.
9531         (categories): New variable.
9532         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
9533         test_locale_name_default): Add test w.r.t. thread locale.
9534         (test_locale_name_thread): New function.
9535         (main): Invoke it.
9536
9537         localename: Make aware of thread locale.
9538         * lib/localename.h (gl_locale_name_thread): New declaration.
9539         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
9540         behaviour with respect to thread locale.
9541         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
9542         <langinfo.h>, glthread/lock.h.
9543         (SIZE_BITS): New macro.
9544         (string_hash): New function.
9545         (struct hash_node): New type.
9546         (HASH_TABLE_SIZE): New macro.
9547         (struniq_hash_table, struniq_lock): New variables.
9548         (struniq): New function.
9549         (gl_locale_name_thread): New function.
9550         (gl_locale_name): Invoke it.
9551         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
9552         * modules/localename (Depends-on): Add lock.
9553         Reported by Mike Gran <spk121@yahoo.com>.
9554
9555 2009-12-23  Eric Blake  <ebb9@byu.net>
9556
9557         va-args: new module
9558         * modules/va-args: New file.
9559         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
9560         * MODULES.html.sh (Core language properties): Mention it.
9561
9562         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
9563         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
9564         named alias for __attribute__((__unused__)).
9565         * lib/chown.c: Update client.
9566         * lib/fchmodat.c: Likewise.
9567         * lib/fts.c: Likewise.
9568         * lib/getdate.y: Likewise.
9569         * lib/getgroups.c: Likewise.
9570         * lib/getopt.c: Likewise.
9571         * lib/getugroups.c: Likewise.
9572         * lib/mkdir.c: Likewise.
9573         * lib/mkfifo.c: Likewise.
9574         * lib/mkfifoat.c: Likewise.
9575         * lib/mknod.c: Likewise.
9576         * lib/mknodat.c: Likewise.
9577         * lib/readlink.c: Likewise.
9578         * lib/se-context.in.h: Likewise.
9579         * lib/se-selinux.in.h: Likewise.
9580         * lib/sockets.c: Likewise.
9581         * lib/symlink.c: Likewise.
9582         * lib/symlinkat.c: Likewise.
9583         * lib/unicodeio.c: Likewise.
9584         * lib/unistr.h: Likewise.
9585         * tests/test-areadlink.c: Likewise.
9586         * tests/test-areadlinkat.c: Likewise.
9587         * tests/test-filenamecat.c: Likewise.
9588         * tests/test-fseeko.c: Likewise.
9589         * tests/test-ftello.c: Likewise.
9590         * tests/test-getdate.c: Likewise.
9591         * tests/test-getgroups.c: Likewise.
9592         * tests/test-gethostname.c: Likewise.
9593         * tests/test-quotearg.c: Likewise.
9594         * tests/test-version-etc.c: Likewise.
9595         * tests/test-xalloc-die.c: Likewise.
9596         * tests/test-xfprintf-posix.c: Likewise.
9597         * tests/test-xprintf-posix.c: Likewise.
9598         * tests/test-xvasprintf.c: Likewise.
9599
9600         tests: avoid compiler warnings
9601         * tests/test-fcntl.c (main): Delete unused parameters.
9602         * tests/test-freopen-safer.c (main): Likewise.
9603         * tests/test-xalloc-die.c (main): Mark unused parameters.
9604         * tests/test-fseeko.c (main): Likewise.
9605         * tests/test-ftello.c (main): Likewise.
9606         * tests/test-nanosleep.c (main): Avoid declaration warning.
9607         * tests/test-sleep.c (main): Likewise.
9608         * tests/test-unsetenv.c (main): Silence warning about string
9609         literal.
9610         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9611
9612 2009-12-23  Bruno Haible  <bruno@clisp.org>
9613
9614         * tests/test-localename.c (test_locale_name): New function, extracted
9615         from main. Also test mixed situations.
9616         (test_locale_name_posix, test_locale_name_environ,
9617         test_locale_name_default): New functions.
9618         (main): Invoke them all.
9619         * modules/localename-tests (configure.ac): Test for newlocale.
9620
9621 2009-12-23  Bruno Haible  <bruno@clisp.org>
9622
9623         unistd: Ensure getcwd gets declared before being overridden.
9624         * lib/unistd.in.h: Conditionally include <io.h>.
9625
9626 2009-12-22  Bruno Haible  <bruno@clisp.org>
9627
9628         wchar: Diagnose broken combination of glibc and gcc versions and flags.
9629         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
9630         (gl_WCHAR_H): Invoke it.
9631         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
9632         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
9633         Reported by Karl Berry <karl@freefriends.org>.
9634
9635 2009-12-22  Eric Blake  <ebb9@byu.net>
9636
9637         math, unistd: avoid redundant includes
9638         * lib/math.in.h (isnan): No need to re-include <math.h>.
9639         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
9640
9641         getsubopt: work around cygwin bug
9642         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
9643         avoid conflicting with system getsubopt.
9644         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
9645         bug.
9646
9647         getopt: synchronize from glibc
9648         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
9649         parameter order.  Adjust all callers.
9650         (_getopt_internal_r, main): Adjust quoting in error messages.
9651         Drop considerations for outdated POSIX 1003.2 error message.
9652         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
9653         callers.
9654         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
9655
9656         test-getopt: test stderr behavior
9657         * modules/getopt-posix-tests (Depends-on): Add dup2.
9658         * tests/test-getopt.c (ASSERT): Avoid stderr.
9659         (main): Move stderr to a temporary file.
9660         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
9661         Instead, add parameter to inform caller if output occurred.
9662         (test_getopt): Adjust all existing tests to expect silence, and
9663         add new tests of leading ":".
9664         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9665         glibc shortcomings with leading "-:" or "+:" in optstring.
9666         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9667         Likewise.
9668         * doc/posix-functions/getopt.texi (getopt): Likewise.
9669
9670         test-getopt: enhance test
9671         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
9672         supports optind=0.
9673         * tests/test-getopt.c (OPTIND_MIN): Move...
9674         * tests/test-getopt.h (OPTIND_MIN): ...here.
9675         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
9676         Require that optind=0 works, since modern BSD supports it in
9677         addition to optreset, and since coreutils expects it.
9678         (test_getopt_long_only): New test.
9679         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
9680         glibc shortcomings with 'W;', and enforcement of optind=0.
9681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
9682         Likewise.
9683
9684 2009-12-21  Bruno Haible  <bruno@clisp.org>
9685
9686         localename: Improvements for MacOS X and Cygwin.
9687         * lib/localename.h (gl_locale_name_environ): New declaration.
9688         * lib/localename.c (gl_locale_name_environ): New function, extracted from
9689         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
9690         (gl_locale_name_posix): Invoke it.
9691         (gl_locale_name_default): Add comments. Use Windows native API also on
9692         Cygwin.
9693
9694 2009-12-21  Bruno Haible  <bruno@clisp.org>
9695
9696         Update list of Win32 locale ids.
9697         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
9698         (LANG_SAMI): Renamed from LANG_SAAMI.
9699         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
9700         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
9701         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
9702         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
9703         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
9704         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
9705         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
9706         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
9707         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
9708         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
9709         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
9710         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
9711         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
9712         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
9713         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
9714         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
9715         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
9716         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
9717         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
9718         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
9719         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
9720         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
9721         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
9722         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
9723         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
9724         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
9725         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
9726         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
9727         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
9728         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
9729         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
9730         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
9731         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
9732         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
9733         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
9734         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
9735         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
9736         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
9737         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
9738         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
9739         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
9740         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
9741         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
9742         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
9743         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
9744         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
9745         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
9746         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
9747         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
9748         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
9749         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
9750         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
9751         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
9752         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
9753         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
9754         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
9755         Add more languages and countries for Sami, Sorbian. Add more countries
9756         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
9757         for Pashto. Change country for Syriac, Tswana.
9758
9759 2009-12-21  Eric Blake  <ebb9@byu.net>
9760
9761         test-utimens: avoid spurious failure
9762         * tests/test-chown.h (nap): Factor...
9763         * tests/nap.h: ...into new file.
9764         * tests/test-lchown.h (nap): Avoid duplication.
9765         * tests/test-utimens-common.h (nap): Use shared implementation,
9766         necessary on file systems with 1-second resolution.
9767         * modules/chown-tests (Files): Include new file.
9768         * modules/fdutimensat-tests (Files): Likewise.
9769         * modules/futimens-tests (Files): Likewise.
9770         * modules/lchown-tests (Files): Likewise.
9771         * modules/openat-tests (Files): Likewise.
9772         * modules/utimens-tests (Files): Likewise.
9773         * modules/utimensat-tests (Files): Likewise.
9774
9775 2009-12-19  Eric Blake  <ebb9@byu.net>
9776
9777         futimens, utimensat: work around Linux bug
9778         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
9779         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9780         * lib/utimensat.c (rpl_utimensat): Work around it.
9781         * lib/futimens.c (rpl_futimens): Adjust comment.
9782
9783         utimens: work around Linux ctime bug
9784         * lib/utimens.c (detect_ctime_bug): New helper function.
9785         (update_timespec): Differentiate between workaround needed for
9786         this bug vs. what is needed for systems that lack utimensat.
9787         (fdutimens, lutimens): Work around bug.
9788
9789         utimens: check for ctime update
9790         * tests/test-utimens-common.h (check_ctime): Define.
9791         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
9792         * tests/test-futimens.h (test_futimens): Likewise.
9793         * tests/test-lutimens.h (test_lutimens): Likewise.
9794         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9795         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9796
9797 2009-12-19  Bruno Haible  <bruno@clisp.org>
9798
9799         dprintf-posix: Check against memory leak fixed on 2009-12-15.
9800         * tests/test-dprintf-posix2.sh: New file.
9801         * tests/test-dprintf-posix2.c: New file.
9802         * modules/dprintf-posix-tests (Files): Add them.
9803         (configure.ac): Check for getrlimit and setrlimit.
9804         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9805
9806 2009-12-19  Bruno Haible  <bruno@clisp.org>
9807
9808         fprintf-posix: Check against memory leak fixed on 2009-12-15.
9809         * tests/test-fprintf-posix3.sh: New file.
9810         * tests/test-fprintf-posix3.c: New file.
9811         * modules/fprintf-posix-tests (Files): Add them.
9812         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
9813
9814 2009-12-19  Eric Blake  <ebb9@byu.net>
9815
9816         dirfd: fix prototype
9817         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
9818         * lib/dirfd.c (dirfd): Likewise.
9819
9820         canonicalize: reduce memory usage
9821         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
9822         allocation to size.
9823         Reported by Solar Designer <solar@openwall.com>.
9824
9825 2009-12-19  Bruno Haible  <bruno@clisp.org>
9826
9827         New module attribute 'Applicability'.
9828         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
9829         * gnulib-tool: New option --extract-applicability.
9830         (func_usage): Document it.
9831         (sed_extract_prog): Recognize it.
9832         (func_get_applicability): New function.
9833         (func_import): Generalize handling of 'link-warning' module.
9834         * modules/link-warning (Applicability): New section.
9835         * modules/arg-nonnull (Applicability): New section.
9836         Repoted by Simon Josefsson <simon@josefsson.org>.
9837
9838 2009-12-19  Bruno Haible  <bruno@clisp.org>
9839
9840         fflush: tweak
9841         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
9842         * lib/fseeko.c (rpl_fseeko): Likewise.
9843
9844 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
9845
9846         * lib/gl_list.h: Fix typo in comment.
9847
9848 2009-12-16  Eric Blake  <ebb9@byu.net>
9849
9850         fcntl: use to simplify other modules
9851         * modules/cloexec (Depends-on): Add fcntl.
9852         * modules/fchdir (Depends-on): Likewise.
9853         * modules/fd-safer-flag (Depends-on): Likewise.
9854         * modules/unistd-safer (Depends-on): Likewise.
9855         * modules/dup3 (configure.ac): Set module indicator.
9856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
9857         missing.
9858         * lib/fchdir.c (_gl_register_dup): Fix comment.
9859         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
9860         * lib/dup-safer.c (dup_safer): Likewise.
9861         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
9862         * lib/dup3.c (dup3): Likewise.
9863         * tests/test-fchdir.c (main): Enhance test.
9864         Fixes a dup_cloexec bug reported by Ondřej Vašík.
9865
9866         fcntl: port portions of fcntl to mingw
9867         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
9868         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
9869         replacement for mingw.
9870         * modules/fcntl (Description): Update.
9871         (Depends-on): Add dup2.
9872         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
9873         * modules/fcntl-h (Makefile.am): Substitute it.
9874         * lib/fcntl.in.h (fcntl): Update declaration.
9875         (F_DUPFD, F_GETFD): New macros, when needed.
9876         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9877         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
9878         * tests/test-fcntl.c (check_flags, main): Enhance test for items
9879         we now guarantee.
9880
9881         fcntl: work around cygwin bug in F_DUPFD
9882         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
9883         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
9884         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
9885         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
9886         * doc/posix-functions/fcntl.texi (fcntl): Document it.
9887
9888         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
9889         * modules/fcntl (Files): List new files.
9890         (configure.ac): Run a test.
9891         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
9892         * lib/fcntl.c (rpl_fcntl): Likewise.
9893         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
9894         (gl_FCNTL_H): Always replace fcntl.h.
9895         * modules/fcntl-h (Makefile.am): Substitute witnesses.
9896         * lib/fcntl.in.h (fcntl): Declare replacement.
9897         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
9898         needed, plus a witness.
9899         * doc/posix-functions/fcntl.texi (fcntl): Document this.
9900         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9901         * tests/test-fcntl.c: New file.
9902         * modules/fcntl-tests: Likewise.
9903
9904         binary-io: avoid potential compilation warning
9905         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
9906         directives.
9907
9908         fflush: avoid compilation error on NetBSD
9909         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
9910         between off_t and fpos_t, since the latter is sometimes a struct.
9911         * lib/fseeko.c (rpl_fseeko): Likewise.
9912         Reported by Alexander Nasonov <alnsn@yandex.ru>.
9913
9914 2009-12-15  Eric Blake  <ebb9@byu.net>
9915
9916         fcntl-h, stdio, sys_ioctl: fix declarations
9917         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
9918         function must not take arguments.
9919         * lib/sys_ioctl.in.h (ioctl): Likewise.
9920         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
9921         (open): Add a link warning.
9922
9923 2009-12-15  Jim Meyering  <meyering@redhat.com>
9924
9925         areadlink, areadlink-with-size: relax license to LGPLv2+
9926         * modules/areadlink (License): Relax to LGPLv2+.
9927         * modules/areadlink-with-size (License): Likewise.
9928
9929 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
9930             Bruno Haible  <bruno@clisp.org>
9931
9932         *printf: Fix memory leak.
9933         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
9934         * lib/vfprintf.c (vfprintf): Likewise.
9935         * lib/dprintf.c (dprintf): Likewise.
9936         * lib/vdprintf.c (vdprintf): Likewise.
9937
9938 2009-12-14  Eric Blake  <ebb9@byu.net>
9939
9940         accept4: adjust module dependencies
9941         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
9942
9943         utimens: one more try at avoiding compiler warning
9944         * lib/utimens.c (lutimens): Lower scope of result.
9945
9946 2009-12-13  Bruno Haible  <bruno@clisp.org>
9947
9948         Move the malloc checking from module 'list' to new module 'xlist'.
9949         * modules/xlist: New file.
9950         * lib/gl_xlist.h: New file.
9951         * lib/gl_xlist.c: New file.
9952         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
9953         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
9954         gl_list_add_last, gl_list_add_before, gl_list_add_after,
9955         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
9956         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
9957         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
9958         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
9959         gl_sortedlist_nx_add): New declarations.
9960         (struct gl_list_implementation): Rename and change methods accordingly.
9961         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
9962         (gl_list_nx_create): Renamed from gl_list_create.
9963         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9964         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9965         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9966         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9967         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9968         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9969         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9970         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9971         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
9972         gl_list_create_empty.
9973         (gl_list_nx_create): Renamed from gl_list_create.
9974         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
9975         (gl_list_nx_set_at): Renamed from gl_list_set_at.
9976         (gl_list_nx_add_first): Renamed from gl_list_add_first.
9977         (gl_list_nx_add_last): Renamed from gl_list_add_last.
9978         (gl_list_nx_add_before): Renamed from gl_list_add_before.
9979         (gl_list_nx_add_after): Renamed from gl_list_add_after.
9980         (gl_list_nx_add_at): Renamed from gl_list_add_at.
9981         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
9982         * lib/gl_array_list.c: Don't include xalloc.h.
9983         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
9984         NULL upon out-of-memory.
9985         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
9986         out-of-memory.
9987         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
9988         Change return type to 'int'.
9989         (gl_array_nx_set_at): Renamed from gl_array_set_at.
9990         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
9991         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
9992         upon out-of-memory.
9993         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
9994         upon out-of-memory.
9995         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
9996         upon out-of-memory.
9997         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
9998         upon out-of-memory.
9999         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10000         out-of-memory.
10001         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10002         Update.
10003         (gl_array_list_implementation): Update.
10004         * lib/gl_carray_list.c: Don't include xalloc.h.
10005         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10006         Return NULL upon out-of-memory.
10007         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10008         out-of-memory.
10009         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10010         Change return type to 'int'.
10011         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10012         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10013         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10014         upon out-of-memory.
10015         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10016         upon out-of-memory.
10017         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10018         out-of-memory.
10019         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10020         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10021         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10022         Update.
10023         (gl_carray_list_implementation): Update.
10024         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10025         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10026         gl_linked_create_empty. Return NULL upon out-of-memory.
10027         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10028         out-of-memory.
10029         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10030         Change return type to 'int'. Return -1 upon out-of-memory.
10031         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10032         out-of-memory.
10033         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10034         upon out-of-memory.
10035         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10036         upon out-of-memory.
10037         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10038         NULL upon out-of-memory.
10039         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10040         upon out-of-memory.
10041         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10042         out-of-memory.
10043         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10044         Update.
10045         * lib/gl_linked_list.c: Don't include xalloc.h.
10046         (gl_linked_list_implementation): Update.
10047         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10048         (add_to_bucket): Change return type to 'int'.
10049         (gl_linkedhash_list_implementation): Update.
10050         * lib/gl_anytree_list1.h (free_subtree): New function.
10051         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10052         gl_tree_create_empty. Return NULL upon out-of-memory.
10053         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10054         Change return type to 'int'. Return -1 upon out-of-memory.
10055         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10056         out-of-memory.
10057         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10058         (gl_tree_remove_node): New function, moved here from
10059         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10060         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10061         Update.
10062         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10063         malloc, not xmalloc. Return NULL upon out-of-memory.
10064         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10065         out-of-memory.
10066         (gl_tree_remove_node_from_tree): New function, extracted from
10067         gl_tree_remove_node.
10068         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10069         upon out-of-memory.
10070         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10071         out-of-memory.
10072         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10073         upon out-of-memory.
10074         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10075         upon out-of-memory.
10076         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10077         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10078         not xmalloc. Return NULL upon out-of-memory.
10079         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10080         out-of-memory.
10081         (gl_tree_remove_node_from_tree): New function, extracted from
10082         gl_tree_remove_node.
10083         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10084         upon out-of-memory.
10085         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10086         out-of-memory.
10087         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10088         upon out-of-memory.
10089         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10090         upon out-of-memory.
10091         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10092         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10093         gl_anytree_list1.h before gl_anyavltree_list2.h.
10094         (gl_avltree_list_implementation): Update.
10095         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10096         gl_anytree_list1.h before gl_anyavltree_list2.h.
10097         (gl_rbtree_list_implementation): Update.
10098         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10099         Change return type to 'int'. Return -1 upon out-of-memory. Use
10100         __builtin_expect.
10101         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10102         (gl_avltreehash_list_implementation): Update.
10103         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10104         (gl_rbtreehash_list_implementation): Update.
10105         * modules/array-list (Depends-on): Remove xalloc.
10106         * modules/carray-list (Depends-on): Likewise.
10107         * modules/linked-list (Depends-on): Likewise.
10108         * modules/linkedhash-list (Depends-on): Likewise.
10109         * modules/avltree-list (Depends-on): Likewise.
10110         * modules/rbtree-list (Depends-on): Likewise.
10111         * modules/avltreehash-list (Depends-on): Likewise.
10112         * modules/rbtreehash-list (Depends-on): Likewise.
10113
10114         * modules/xsublist: New file.
10115         * lib/gl_xsublist.h: New file.
10116         * lib/gl_xsublist.c: New file.
10117         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10118         (gl_sublist_nx_create): New declaration.
10119         * lib/gl_sublist.c: Don't include xalloc.h.
10120         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10121         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10122         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10123         Change return type to 'int'. Return -1 upon out-of-memory.
10124         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10125         upon out-of-memory.
10126         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10127         NULL upon out-of-memory.
10128         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10129         upon out-of-memory.
10130         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10131         NULL upon out-of-memory.
10132         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10133         NULL upon out-of-memory.
10134         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10135         upon out-of-memory.
10136         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10137         (gl_sublist_list_implementation): Update.
10138         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10139         upon out-of-memory.
10140         * modules/sublist (Depends-on): Remove xalloc.
10141
10142         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10143         * tests/test-carray_list.c: Likewise.
10144         * tests/test-linked_list.c: Likewise.
10145         * tests/test-linkedhash_list.c: Likewise.
10146         * tests/test-avltree_list.c: Likewise.
10147         * tests/test-rbtree_list.c: Likewise.
10148         * tests/test-avltreehash_list.c: Likewise.
10149         * tests/test-rbtreehash_list.c: Likewise.
10150         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10151         * modules/carray-list-tests (Makefile.am): Likewise.
10152         * modules/linked-list-tests (Makefile.am): Likewise.
10153         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10154         * modules/avltree-list-tests (Makefile.am): Likewise.
10155         * modules/rbtree-list-tests (Makefile.am): Likewise.
10156         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10157         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10158
10159         * NEWS: Mention the changes.
10160
10161         * lib/clean-temp.c: Include gl_xlist.h.
10162         * modules/clean-temp (Depends-on): Add xlist.
10163
10164         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10165         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10166
10167         * tests/test-array_oset.c: Include gl_xlist.h.
10168         * modules/array-oset-tests (Depends-on): Add xlist.
10169
10170         Reported by José E. Marchesi <jemarch@gnu.org>.
10171
10172 2009-12-13  Bruno Haible  <bruno@clisp.org>
10173
10174         Move the malloc checking from module 'oset' to new module 'xoset'.
10175         * modules/xoset: New file.
10176         * lib/gl_xoset.h: New file.
10177         * lib/gl_xoset.c: New file.
10178         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10179         declarations.
10180         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10181         (struct gl_oset_implementation): Rename and change methods accordingly.
10182         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10183         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10184         'int'. Mark as __warn_unused_result__.
10185         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10186         gl_oset_create_empty.
10187         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10188         'int'.
10189         * lib/gl_array_oset.c: Don't include xalloc.h.
10190         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10191         malloc, not xmalloc.
10192         (grow): Change return type to 'int'. Don't call xalloc_die.
10193         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10194         to 'int'.
10195         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10196         'int'.
10197         (gl_array_oset_implementation): Update.
10198         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10199         gl_tree_create_empty.
10200         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10201         'int'.
10202         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10203         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10204         xmalloc.
10205         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10206         not xmalloc.
10207         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10208         xmalloc.
10209         (gl_avltree_oset_implementation): Update.
10210         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10211         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10212         xmalloc.
10213         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10214         not xmalloc.
10215         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10216         xmalloc.
10217         (gl_rbtree_oset_implementation): Update.
10218         * modules/array-oset (Depends-on): Remove xalloc.
10219         * modules/avltree-oset (Depends-on): Likewise.
10220         * modules/rbtree-oset (Depends-on): Likewise.
10221         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10222         * tests/test-avltree_oset.c: Likewise.
10223         * tests/test-rbtree_oset.c: Likewise.
10224         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10225         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10226         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10227         * NEWS: Mention the change.
10228
10229 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10230
10231         maint.mk: allow a project to override release-prep commands
10232         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10233         commands into a new rule.
10234         (release-prep): New rule.
10235         (release-prep-hook): New overridable variable.
10236
10237 2009-12-13  Bruno Haible  <bruno@clisp.org>
10238
10239         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10240
10241 2009-12-13  Jim Meyering  <meyering@redhat.com>
10242
10243         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10244         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10245
10246 2009-12-12  Bruno Haible  <bruno@clisp.org>
10247
10248         duplocale: Tweak.
10249         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10250
10251 2009-12-12  Karl Berry  <karl@gnu.org>
10252
10253         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10254
10255 2009-12-12  Bruno Haible  <bruno@clisp.org>
10256
10257         * m4/po.m4: Undo incorrect untabification.
10258
10259 2009-12-12  Bruno Haible  <bruno@clisp.org>
10260
10261         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10262         * modules/c-strtod (Depends-on): Add locale.
10263         * modules/c-strtold (Depends-on): Likewise.
10264
10265 2009-12-12  Bruno Haible  <bruno@clisp.org>
10266
10267         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10268
10269 2009-12-11  Eric Blake  <ebb9@byu.net>
10270
10271         setenv: relax requirement in light of POSIX ruling
10272         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10273         not NULL.
10274         * tests/test-setenv.c (main): Relax test.
10275         * tests/test-unsetenv.c (main): Likewise.
10276         * doc/posix-functions/setenv.texi (setenv): Document this.
10277         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10278
10279 2009-12-11  Bruno Haible  <bruno@clisp.org>
10280
10281         New module 'fd-safer-flag'.
10282         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10283         * lib/dup-safer.c (dup_safer_flag): Remove function.
10284         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10285         * lib/fd-safer.c (fd_safer_flag): Remove function.
10286         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10287         * modules/cloexec (configure.ac): Drop indicator macro.
10288         * modules/fd-safer-flag: New file.
10289         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10290         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10291         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10292
10293 2009-12-11  Bruno Haible  <bruno@clisp.org>
10294
10295         Tests for module 'nl_langinfo'.
10296         * modules/nl_langinfo-tests: New file.
10297         * tests/test-nl_langinfo.sh: New file.
10298         * tests/test-nl_langinfo.c: New file.
10299
10300         New module 'nl_langinfo'.
10301         * lib/nl_langinfo.c: New file.
10302         * m4/nl_langinfo.m4: New file.
10303         * modules/nl_langinfo: New file.
10304         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10305
10306 2009-12-11  Bruno Haible  <bruno@clisp.org>
10307
10308         Tests for module 'langinfo'.
10309         * modules/langinfo-tests: New file.
10310         * tests/test-langinfo.c: New file.
10311
10312         New module 'langinfo'.
10313         * lib/langinfo.in.h: New file.
10314         * m4/langinfo_h.m4: New file.
10315         * modules/langinfo: New file.
10316         * doc/posix-headers/langinfo.texi: Mention the new module.
10317
10318 2009-12-11  Bruno Haible  <bruno@clisp.org>
10319
10320         * lib/config.charset: Untabify.
10321
10322 2009-12-11  Bruno Haible  <bruno@clisp.org>
10323
10324         * modules/unistd-safer (configure.ac): Drop indicator macro.
10325
10326 2009-12-11  Bruno Haible  <bruno@clisp.org>
10327
10328         Move pipe2-safer code to its own file.
10329         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10330         * lib/pipe-safer.c (pipe2_safer): Remove function.
10331         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10332         (Makefile.am): Add it to lib_SOURCES.
10333
10334 2009-12-10  Bruno Haible  <bruno@clisp.org>
10335
10336         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10337
10338 2009-12-10  Bruno Haible  <bruno@clisp.org>
10339
10340         Declare which arguments expect non-NULL values, for GCC and clang.
10341         * build-aux/arg-nonnull.h: New file.
10342         * modules/arg-nonnull: New file.
10343         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10344         (inet_ntop, inet_pton): Use it.
10345         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10346         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10347         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10348         (open, openat): Use it.
10349         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10350         (fnmatch): Use it.
10351         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10352         (getopt, getopt_long, getopt_long_only): Use it.
10353         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10354         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10355         Use it.
10356         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10357         (iconv_open): Use it.
10358         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10359         (strtoimax, strtoumax): Use it.
10360         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10361         (duplocale): Use it.
10362         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10363         (frexp, frexpl): Use it.
10364         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10365         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10366         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10367         (tsearch, tfind, tdelete, twalk): Use it.
10368         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10369         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10370         sigpending): Use it.
10371         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10372         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10373         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10374         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10375         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10376         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10377         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10378         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10379         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10380         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10381         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10382         Use it.
10383         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10384         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10385         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10386         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10387         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10388         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10389         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10390         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10391         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10392         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10393         strtoull, unsetenv): Use it.
10394         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10395         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10396         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10397         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10398         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10399         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10400         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10401         (strcasecmp, strncasecmp): Use it.
10402         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10403         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10404         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10405         rpl_setsockopt): Use it.
10406         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10407         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10408         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10409         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10410         (gettimeofday): Use it.
10411         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10412         (times): Use it.
10413         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10414         (uname): Use it.
10415         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10416         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10417         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10418         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10419         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10420         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10421         unlinkat, write): Use it.
10422         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10423         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10424         * lib/argv-iter.h: Include arg-nonnull.h.
10425         (_ATTRIBUTE_NONNULL_): Remove macro.
10426         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10427         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10428         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10429         optimization.
10430         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10431         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10432         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10433         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10434         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10435         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10436         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10437         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10438         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10439         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10440         * modules/dirent (Depends-on): Add arg-nonnull.
10441         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10442         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10443         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10444         * modules/fnmatch (Depends-on): Add arg-nonnull.
10445         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10446         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10447         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10448         * modules/glob (Depends-on): Add arg-nonnull.
10449         (Makefile.am): Insert arg-nonnull.h into glob.h.
10450         * modules/iconv_open (Depends-on): Add arg-nonnull.
10451         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10452         * modules/inttypes (Depends-on): Add arg-nonnull.
10453         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10454         * modules/locale (Depends-on): Add arg-nonnull.
10455         (Makefile.am): Insert arg-nonnull.h into locale.h.
10456         * modules/math (Depends-on): Add arg-nonnull.
10457         (Makefile.am): Insert arg-nonnull.h into math.h.
10458         * modules/netdb (Depends-on): Add arg-nonnull.
10459         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10460         * modules/search (Depends-on): Add arg-nonnull.
10461         (Makefile.am): Insert arg-nonnull.h into search.h.
10462         * modules/signal (Depends-on): Add arg-nonnull.
10463         (Makefile.am): Insert arg-nonnull.h into signal.h.
10464         * modules/spawn (Depends-on): Add arg-nonnull.
10465         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10466         * modules/stdio (Depends-on): Add arg-nonnull.
10467         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10468         * modules/stdlib (Depends-on): Add arg-nonnull.
10469         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10470         * modules/string (Depends-on): Add arg-nonnull.
10471         (Makefile.am): Insert arg-nonnull.h into string.h.
10472         * modules/strings (Depends-on): Add arg-nonnull.
10473         (Makefile.am): Insert arg-nonnull.h into strings.h.
10474         * modules/sys_socket (Depends-on): Add arg-nonnull.
10475         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10476         * modules/sys_stat (Depends-on): Add arg-nonnull.
10477         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10478         * modules/sys_time (Depends-on): Add arg-nonnull.
10479         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10480         * modules/sys_times (Depends-on): Add arg-nonnull.
10481         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10482         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10483         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10484         * modules/time (Depends-on): Add arg-nonnull.
10485         (Makefile.am): Insert arg-nonnull.h into time.h.
10486         * modules/unistd (Depends-on): Add arg-nonnull.
10487         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10488         * modules/wchar (Depends-on): Add arg-nonnull.
10489         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10490         * modules/argv-iter (Depends-on): Add arg-nonnull.
10491         * tests/test-canonicalize.c (null_ptr): New function.
10492         (main): Use it.
10493         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10494         (main): Use it.
10495         * tests/test-memmem.c (null_ptr): New function.
10496         (main): Use it.
10497         Reported by Jim Meyering.
10498
10499 2009-12-10  Bruno Haible  <bruno@clisp.org>
10500
10501         Use spaces for indentation, not tabs.
10502         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10503         * m4/*.m4: Untabify.
10504         * build-aux/*.h: Untabify.
10505         * tests/**/*.[hc]: Untabify.
10506         * README: New section "Indent with spaces, not TABs", based on
10507         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10508         * NEWS: Mention the change.
10509
10510 2009-12-10  Bruno Haible  <bruno@clisp.org>
10511
10512         pty test: Fix link error.
10513         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10514         test_pty_LDADD.
10515
10516 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10517
10518         * modules/pty: New file.
10519         * modules/pty-tests: New file.
10520         * m4/pty.m4: New file.
10521         * tests/test-pty.c: New file.
10522         * doc/glibc-headers/pty.texi: Modified.
10523         * doc/glibc-functions/forkpty.texi: Modified.
10524         * doc/glibc-functions/openpty.texi: Modified.
10525
10526 2009-12-10  Bruno Haible  <bruno@clisp.org>
10527
10528         Avoid syntax error in C++ mode.
10529         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
10530
10531 2009-12-10  Bruno Haible  <bruno@clisp.org>
10532
10533         Use sed with option -e.
10534         * gnulib-tool (func_version, func_emit_copyright_notice,
10535         func_emit_initmacro_end, func_import, func_create_testdir): Pass
10536         option -e to sed.
10537         * modules/link-warning (Makefile.am): Likewise.
10538
10539 2009-12-10  Jim Meyering  <meyering@redhat.com>
10540
10541         mgetgroups: do not write bytes beyond end of malloc'd buffer
10542         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
10543         username, we call getgroups with a one-element-shorter buffer,
10544         but still told it the length was original, max_n_groups.
10545
10546 2009-12-09  Eric Blake  <ebb9@byu.net>
10547
10548         cloexec: relax license
10549         * modules/cloexec (Maintainer): Add myself.
10550         (License): Use LGPL, not GPL.
10551
10552         link-warning: optimize generation
10553         * modules/link-warning (Makefile.am): Reduce process usage.
10554
10555 2009-12-09  Bruno Haible  <bruno@clisp.org>
10556
10557         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
10558         workaround was added on 2009-11-17.
10559
10560 2009-12-09  Jim Meyering  <meyering@redhat.com>
10561             Bruno Haible  <bruno@clisp.org>
10562
10563         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
10564         * modules/link-warning (Makefile.am): Make the comment-removing sed
10565         command more robust in the face of bootstrap-prepended comment lines.
10566
10567 2009-12-09  Bruno Haible  <bruno@clisp.org>
10568
10569         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
10570         most one group.
10571
10572 2009-12-09  Simon Josefsson <simon@josefsson.org>
10573             Bruno Haible  <bruno@clisp.org>
10574
10575         * build-aux/link-warning.h: Add copyright notice.
10576         * modules/link-warning (Makefile.am): Generate link-warning.h from
10577         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
10578         * NEWS: Mention change in link-warning module.
10579         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
10580         * modules/dirent (Makefile.am): Add dependency to dirent.h.
10581         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
10582         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
10583         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
10584         * modules/math (Makefile.am): Add dependency to math.h.
10585         * modules/search (Makefile.am): Add dependency to search.h.
10586         * modules/signal (Makefile.am): Add dependency to signal.h.
10587         * modules/spawn (Makefile.am): Add dependency to spawn.h.
10588         * modules/stdio (Makefile.am): Add dependency to stdio.h.
10589         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
10590         * modules/string (Makefile.am): Add dependency to string.h.
10591         * modules/strings (Makefile.am): Add dependency to strings.h.
10592         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
10593         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
10594         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
10595         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
10596         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
10597         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
10598         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
10599         * modules/unistd (Makefile.am): Add dependency to unistd.h.
10600         * modules/wchar (Makefile.am): Add dependency to wchar.h.
10601
10602 2009-12-09  Bruno Haible  <bruno@clisp.org>
10603
10604         fchdir: Optimize away rpl_fstat when possible.
10605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
10606         REPLACE_OPEN_DIRECTORY.
10607         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
10608
10609 2009-12-09  Bruno Haible  <bruno@clisp.org>
10610
10611         * lib/fchdir.c: Update comment.
10612
10613 2009-12-09  Bruno Haible  <bruno@clisp.org>
10614
10615         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
10616
10617 2009-12-08  Eric Blake  <ebb9@byu.net>
10618
10619         fchdir: avoid memory leak on re-registration.
10620         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
10621
10622 2009-12-08  Jim Meyering  <meyering@redhat.com>
10623
10624         init.sh: avoid Solaris 10 /bin/sh portability problem
10625         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
10626         sourced script:
10627           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
10628           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
10629           bar
10630         tests/init.sh relied on that, accepting a --set-path=DIR argument,
10631         and two tests used that idiom.
10632         * tests/init.sh: Update suggested usage comments.
10633         (path_prepend_): New function, to be used in place
10634         of the --src-path=DIR option.
10635         (setup_): Move PATH-prepending code into path_prepend_.
10636         * tests/test-pread.sh: Adapt to new usage.
10637         * tests/test-xalloc-die.sh: Likewise.
10638
10639 2009-12-08  Simon Josefsson  <simon@josefsson.org>
10640
10641         * doc/gnulib.texi (Glibc pty.h): Add.
10642         * doc/glibc-functions/forkpty.texi: Add.
10643         * doc/glibc-functions/openpty.texi: Add.
10644         Suggested by Bruno Haible.
10645
10646 2009-12-08  Eric Blake  <ebb9@byu.net>
10647
10648         fchdir: fix logic bugs
10649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
10650         * tests/test-fchdir.c (main): Enhance test.
10651         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
10652         is in use.
10653
10654         dup2: fix logic bugs
10655         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
10656         REPLACE_DUP2 to decide when rpl_dup2 is needed.
10657         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
10658         exists.
10659         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
10660
10661 2009-12-07  Eric Blake  <ebb9@byu.net>
10662
10663         unlink: fix m4 detection
10664         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
10665
10666         unistd-safer: add unit test
10667         * modules/unistd-safer-tests: New file.
10668         * tests/test-dup-safer.c: Likewise.
10669         * tests/test-cloexec.c (setmode): Avoid compiler warning.
10670         * tests/test-dup2.c (setmode): Likewise.
10671         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
10672
10673         cloexec: preserve text vs. binary across dup_cloexec
10674         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
10675         mode.
10676         * modules/dup2-tests (Depends-on): Add binary-io.
10677         * modules/cloexec-tests (Depends-on): Likewise.
10678         * tests/test-dup2.c (setmode, is_mode): New helpers.
10679         (main): Add tests that translation mode is preserved.
10680         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
10681         Reported by Bruno Haible.
10682
10683         mgetgroups: reduce duplicate listings
10684         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
10685         resulting array.
10686         * tests/test-chown.h (test_chown): Simplify client.
10687         * tests/test-lchown.h (test_lchown): Likewise.
10688
10689 2009-12-06  Bruno Haible  <bruno@clisp.org>
10690
10691         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
10692         value.
10693
10694 2009-12-06  Bruno Haible  <bruno@clisp.org>
10695
10696         * lib/progname.c: Include stdio.h, stdlib.h.
10697         (set_program_name): Reject a NULL argument.
10698
10699 2009-12-05  Eric Blake  <ebb9@byu.net>
10700
10701         pipe2-safer: new module
10702         * modules/pipe2-safer: New file.
10703         * lib/unistd-safer.h (pipe2_safer): New prototype.
10704         * lib/unistd--.h (pipe2): New wrapper.
10705         * lib/pipe-safer.c (pipe2_safer): New function.
10706         * modules/pipe (Depends-on): Add pipe2-safer.
10707         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
10708
10709         stdlib-safer: preserve cloexec flag for mkostemp[s]
10710         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
10711         fd_safer_flag.
10712
10713         unistd-safer: allow preservation of cloexec status via flag
10714         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
10715         prototypes.
10716         * lib/dup-safer.c (dup_safer_flag): New function.
10717         * lib/fd-safer.c (fd_safer_flag): Likewise.
10718         * modules/cloexec (configure.ac): Set witness.
10719
10720         test-dup2: enhance test
10721         * modules/dup2-tests (Depends-on): Add cloexec.
10722         * tests/test-dup2.c (main): Enhance test.
10723
10724         cloexec: add dup_cloexec
10725         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
10726         header and comments.
10727         * lib/cloexec.c (set_cloexec_flag): Add comments.
10728         (dup_cloexec): New function, with mingw implementation borrowed
10729         from...
10730         * lib/w32spawn.h (dup_noinherit): ...here.
10731         * modules/execute (Depends-on): Add cloexec.
10732         * modules/pipe (Depends-on): Likewise.
10733         * modules/cloexec (Depends-on): Add dup2.
10734         * modules/cloexec-tests (Files): New file.
10735         * tests/test-cloexec.c: Likewise.
10736
10737         test-xalloc-die: fix test for mingw
10738         * modules/xalloc-die-tests (Files): Add tests/init.sh.
10739         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
10740         directory and .exe suffix off argv[0] output.
10741
10742         test-fseeko: fix test for mingw
10743         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
10744         than undefining fseek, so test will pass on mingw.
10745
10746 2009-12-05  Bruno Haible  <bruno@clisp.org>
10747
10748         * lib/progname.h (set_program_name): Clarify specification.
10749         * lib/progname.c (set_program_name): Likewise.
10750         Reported by Jim Meyering.
10751
10752 2009-12-05  Jim Meyering  <meyering@redhat.com>
10753
10754         maint.mk: backslash-escape parens in default regexp
10755         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
10756         backslash-escape the literal parentheses.
10757
10758         maint.mk: news-date-check: use grep -E
10759         * top/maint.mk (today): Define a Make variable, not a...
10760         (news-date-check): ...shell variable.
10761         (news-date-regexp): Use the Make variable.
10762         Use grep's -E option.  Change the failing diagnostic to mention
10763         the variable, $(news-date-regexp).
10764
10765 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
10766
10767         maintainer-makefile: allow customization of NEWS entry format
10768         * top/maint.mk (news-date-regexp): New overridable variable.
10769         (news-date-check): Use it.
10770
10771 2009-12-04  Eric Blake  <ebb9@byu.net>
10772
10773         mgetgroups: add xgetgroups, and avoid ENOSYS failures
10774         * lib/mgetgroups.h (xgetgroups): New prototype.
10775         * lib/mgetgroups.c (xgetgroups): New wrapper.
10776         (mgetgroups): Handle ENOSYS.
10777         * modules/mgetgroups (Depends-on): Add realloc.
10778         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
10779
10780         mgetgroups: avoid argument promotion issues with -1
10781         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
10782         for invalid gid_t.
10783         * tests/test-chown.h (getegid, test_chown): Likewise.
10784         * tests/test-lchown.h (getegid, test_lchown): Likewise.
10785
10786 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
10787
10788         exclude: Fix header file problems.
10789         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
10790
10791 2009-12-01  Jim Meyering  <meyering@redhat.com>
10792
10793         fts: fts_open: do not let an empty string cause immediate failure
10794         This is required in support of GNU rm, for which the command
10795         "rm A '' B" must process and remove both A and B, in spite of
10796         the empty string argument.
10797         * lib/fts.c (fts_open): Do not let the presence of an empty string
10798         cause fts_open to fail immediately.  Most fts-using tools must be
10799         able to process all arguments, in order, and can be expected to
10800         diagnose such arguments themselves.
10801
10802 2009-11-30  Eric Blake  <ebb9@byu.net>
10803
10804         utimens: fix compilation error
10805         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
10806         Declare variable at right scope.
10807
10808 2009-11-29  Jim Meyering  <meyering@redhat.com>
10809
10810         bootstrap: handle perl-5.11's changed --version output
10811         * build-aux/bootstrap (get_version): Handle perl separately,
10812         since perl-5.11's --version output is different.
10813
10814 2009-11-28  Jim Meyering  <meyering@redhat.com>
10815
10816         userspec: depend on the inttostr module, too
10817         * modules/userspec (Depends-on): Add inttostr.
10818
10819         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
10820         * lib/userspec.c (parse_with_separator): Do not accept a user ID
10821         number of MAXUID when it evaluates to (uid_t) -1.
10822         Likewise for group ID.  Reported by Matt McCutchen in
10823         <http://savannah.gnu.org/bugs/?28113>
10824
10825         userspec: reformat to use spaces, not TABs
10826         * lib/userspec.c: Expand TABs to spaces.
10827         Add Emacs' "indent-tabs-mode: nil" hint.
10828
10829 2009-11-27  Eric Blake  <ebb9@byu.net>
10830
10831         getopt-gnu: flush out another BSD bug
10832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
10833         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
10834         flush out BSD bug.
10835         * tests/test-getopt.h (test_getopt): End lists with NULL.
10836         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10837         (test_getopt_long_posix): Enhance test.
10838         * modules/getopt-posix-tests (Depends-on): Add stdbool.
10839         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
10840         getopt-gnu.
10841         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10842         Likewise.
10843
10844 2009-11-27  Simon Josefsson  <simon@josefsson.org>
10845
10846         * modules/idpriv-droptemp-tests (Notice): Fix text.
10847
10848 2009-11-27  Jim Meyering  <meyering@redhat.com>
10849
10850         test-xalloc-die: avoid spurious failure due to libtool argv difference
10851         In a libtool-enabled project, this test would fail due to a difference
10852         in the emitted program name, e.g.,
10853         -test-xalloc-die: memory exhausted
10854         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
10855         Use program to avoid that.
10856         * modules/xalloc-die-tests (Depends-on): Add progname.
10857         * tests/test-xalloc-die.c: Include progname.h".
10858         (program_name): Remove decl.
10859         (main): Call set_program_name.
10860         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
10861
10862 2009-11-26  Richard Jones  <rjones@redhat.com>
10863
10864         w32sock: leave win32 error in place.
10865         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
10866
10867 2009-11-26  Eric Blake  <ebb9@byu.net>
10868
10869         init.sh: suggest to use skip_ and fail_ functions in comments
10870         * tests/init.sh: Add a sentence.
10871
10872 2009-11-25  Bruno Haible  <bruno@clisp.org>
10873
10874         init.sh: add documentation in comments
10875         * tests/init.sh: Add some developer and user documentation.
10876
10877 2009-11-26  Jim Meyering  <meyering@redhat.com>
10878
10879         init.sh: accommodate even those who specify bogus srcdir manually
10880         * tests/init.sh: Normally, srcdir is guaranteed by automake and
10881         configure-time tests to be sanitized, so that there is no need to
10882         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
10883         (with no double quotes) suffices.  However, since tests may be
10884         invoked manually, and since you may explicitly set srcdir to the
10885         name of a directory containing spaces, do quote its uses here.
10886         * tests/test-pread.sh: Likewise.
10887         Suggested by Bruno Haible.
10888
10889         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
10890         * tests/test-pread.sh: Write no data into the pipe, because
10891         test-pread actually reads none.  This avoids a diagnostic,
10892         "bash: echo: write error: Broken pipe", that arises in the unusual
10893         event something is ignoring SIGPIPE, and might be interpreted
10894         as some sort of failure.  Reported by Bruno Haible.
10895
10896 2009-11-25  Jim Meyering  <meyering@redhat.com>
10897
10898         test-pread: cover failure with ESPIPE and EINVAL
10899         * tests/test-pread.c (main): Test for failure, too.
10900         * tests/test-pread.sh: Invoke with stdin on a pipe.
10901         Suggested by Eric Blake.
10902
10903         pread: improvement and fix
10904         * modules/pread (Depends-on): Depend on lseek, for portability to
10905         e.g., mingw.  Suggested by Eric Blake.
10906         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
10907
10908         unistd.in.h: correct declaration of pread
10909         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
10910         Reported by Richard W.M. Jones.
10911
10912         test-pread.sh: distribute the test script
10913         * modules/pread-tests (Files): Include test-pread.sh.
10914
10915         test-pread.sh: clean up
10916         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
10917         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
10918         That is unnecessary, since it's always ".".
10919         Suggestion from Eric Blake.
10920
10921         test-pread.sh: make executable
10922         * tests/test-pread.sh: Set executable bit.
10923         Reported by Eric Blake.
10924
10925         correct typo in test-pread.sh
10926         * tests/test-pread.sh: Add #! line.
10927
10928         test pread
10929         * tests/test-pread.c: New file.
10930         * tests/test-pread.sh: Likewise.
10931         * modules/pread-tests: Likewise.
10932
10933         pread: new module
10934         * modules/pread: New file.
10935         * lib/unistd.in.h (pread): Define/declare.
10936         * lib/pread.c (pread): New file.
10937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
10938         * modules/unistd (Makefile.am): Substitute witnesses.
10939         * doc/posix-functions/pread.texi (pread): Update.
10940         * MODULES.html.sh: Add pread.
10941
10942 2009-11-25  Jim Meyering  <meyering@redhat.com>
10943
10944         tests/init.sh: new file to be used via most *.sh tests
10945         * tests/init.sh: New file.
10946
10947 2009-11-25  Eric Blake  <ebb9@byu.net>
10948
10949         utimens: work around older Linux failure with symlinks
10950         * lib/utimens.c (lutimensat_works_really): New variable.
10951         (fdutimens, lutimens): Use it to manage kernels that support
10952         nanosecond times on files, but not on symlinks.
10953         Reported by Ondřej Vašík.
10954
10955         utimes: fix configure grammar
10956         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
10957
10958 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
10959
10960         regex: Fix fastmap for multibyte character ranges.
10961         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
10962         characters when a multibyte character range is included.
10963
10964 2009-11-22  Andy Wingo  <wingo@pobox.com>
10965
10966         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
10967         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
10968
10969 2009-11-24  Bruno Haible  <bruno@clisp.org>
10970
10971         doc: Most *_l functions exist in MacOS X 10.5.
10972         * doc/posix-functions/duplocale.texi: Update platforms list.
10973         * doc/posix-functions/freelocale.texi: Likewise.
10974         * doc/posix-functions/newlocale.texi: Likewise.
10975         * doc/posix-functions/uselocale.texi: Likewise.
10976         * doc/posix-functions/isalnum_l.texi: Likewise.
10977         * doc/posix-functions/isalpha_l.texi: Likewise.
10978         * doc/posix-functions/isblank_l.texi: Likewise.
10979         * doc/posix-functions/iscntrl_l.texi: Likewise.
10980         * doc/posix-functions/isdigit_l.texi: Likewise.
10981         * doc/posix-functions/isgraph_l.texi: Likewise.
10982         * doc/posix-functions/islower_l.texi: Likewise.
10983         * doc/posix-functions/isprint_l.texi: Likewise.
10984         * doc/posix-functions/ispunct_l.texi: Likewise.
10985         * doc/posix-functions/isspace_l.texi: Likewise.
10986         * doc/posix-functions/isupper_l.texi: Likewise.
10987         * doc/posix-functions/iswalnum_l.texi: Likewise.
10988         * doc/posix-functions/iswalpha_l.texi: Likewise.
10989         * doc/posix-functions/iswblank_l.texi: Likewise.
10990         * doc/posix-functions/iswcntrl_l.texi: Likewise.
10991         * doc/posix-functions/iswctype_l.texi: Likewise.
10992         * doc/posix-functions/iswdigit_l.texi: Likewise.
10993         * doc/posix-functions/iswgraph_l.texi: Likewise.
10994         * doc/posix-functions/iswlower_l.texi: Likewise.
10995         * doc/posix-functions/iswprint_l.texi: Likewise.
10996         * doc/posix-functions/iswpunct_l.texi: Likewise.
10997         * doc/posix-functions/iswspace_l.texi: Likewise.
10998         * doc/posix-functions/iswupper_l.texi: Likewise.
10999         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11000         * doc/posix-functions/isxdigit_l.texi: Likewise.
11001         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11002         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11003         * doc/posix-functions/strcoll_l.texi: Likewise.
11004         * doc/posix-functions/strfmon_l.texi: Likewise.
11005         * doc/posix-functions/strftime_l.texi: Likewise.
11006         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11007         * doc/posix-functions/strxfrm_l.texi: Likewise.
11008         * doc/posix-functions/tolower_l.texi: Likewise.
11009         * doc/posix-functions/toupper_l.texi: Likewise.
11010         * doc/posix-functions/towctrans_l.texi: Likewise.
11011         * doc/posix-functions/towlower_l.texi: Likewise.
11012         * doc/posix-functions/towupper_l.texi: Likewise.
11013         * doc/posix-functions/wcscoll_l.texi: Likewise.
11014         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11015         * doc/posix-functions/wctrans_l.texi: Likewise.
11016         * doc/posix-functions/wctype_l.texi: Likewise.
11017         * doc/glibc-functions/strptime_l.texi: Likewise.
11018         * doc/glibc-functions/strtod_l.texi: Likewise.
11019         * doc/glibc-functions/strtof_l.texi: Likewise.
11020         * doc/glibc-functions/strtol_l.texi: Likewise.
11021         * doc/glibc-functions/strtold_l.texi: Likewise.
11022         * doc/glibc-functions/strtoll_l.texi: Likewise.
11023         * doc/glibc-functions/strtoul_l.texi: Likewise.
11024         * doc/glibc-functions/strtoull_l.texi: Likewise.
11025         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11026         * doc/glibc-functions/wcstod_l.texi: Likewise.
11027         * doc/glibc-functions/wcstof_l.texi: Likewise.
11028         * doc/glibc-functions/wcstol_l.texi: Likewise.
11029         * doc/glibc-functions/wcstold_l.texi: Likewise.
11030         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11031         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11032         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11033
11034 2009-11-24  Bruno Haible  <bruno@clisp.org>
11035
11036         duplocale: Fix logic bug.
11037         * lib/duplocale.c: Don't include <langinfo.h>.
11038         (_NL_LOCALE_NAME): Remove macro.
11039         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11040         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11041
11042 2009-11-23  Jim Meyering  <meyering@redhat.com>
11043
11044         test-update-copyright: don't hard-code /usr/bin/perl
11045         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11046         perl to print the current year.  Gilles Espinasse reported that
11047         the replaced use of perl was hard-coded as /usr/bin/perl.
11048
11049 2009-11-23  Bruno Haible  <bruno@clisp.org>
11050
11051         duplocale: Add support for glibc 2.3.x.
11052         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11053
11054 2009-11-22  Bruno Haible  <bruno@clisp.org>
11055
11056         vasnprintf: Tiny optimization.
11057         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11058         MacOS X.
11059
11060 2009-11-22  Bruno Haible  <bruno@clisp.org>
11061
11062         Tests for module 'duplocale'.
11063         * modules/duplocale-tests: New file.
11064         * tests/test-duplocale.c: New file.
11065
11066         New module 'duplocale'.
11067         * m4/duplocale.m4: New file.
11068         * lib/locale.in.h (duplocale): New declaration.
11069         * lib/duplocale.c: New file.
11070         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11071         gl_LOCALE_H_DEFAULTS): New macros.
11072         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11073         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11074         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11075         REPLACE_DUPLOCALE.
11076         * modules/duplocale: New file.
11077         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11078
11079 2009-11-22  Bruno Haible  <bruno@clisp.org>
11080
11081         * modules/locale-tests (configure.ac): Test for newlocale function.
11082         * tests/test-locale.c: When the system has extended locale functions,
11083         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11084
11085         locale: Make locale_t available when possible.
11086         * lib/locale.in.h: Include <xlocale.h> when it exists.
11087         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11088         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11089         * modules/locale (Depends-on): Add extensions.
11090         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11091         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11092
11093 2009-11-22  Bruno Haible  <bruno@clisp.org>
11094
11095         Add comments.
11096         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11097         invocation.
11098         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11099         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11100         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11101
11102 2009-11-22  Bruno Haible  <bruno@clisp.org>
11103
11104         error: account for the possibility of freopen (stdout).
11105         * lib/error.c: Include <unistd.h>.
11106         (flush_stdout): New function, extracted from error and error_at_line.
11107         Determine stdout's fd dynamically.
11108         (error, error_at_line): Invoke flush_stdout.
11109         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11110         * modules/error (Depends-on): Add unistd.
11111
11112 2009-11-22  Bruno Haible  <bruno@clisp.org>
11113
11114         diffseq: Add comment.
11115         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11116
11117 2009-11-22  Jim Meyering  <meyering@redhat.com>
11118
11119         c-stack: avoid defining an unused static function
11120         * lib/c-stack.c (find_stack_direction): Do not define this function
11121         when it will not be used.
11122
11123         diffseq: avoid spurious gcc warnings
11124         * lib/diffseq.h (IF_LINT2): Define.
11125         (compareseq): Use it to initialize two members of "part".
11126         This avoids two used-uninitialized warnings.
11127
11128 2009-11-21  Jim Meyering  <meyering@redhat.com>
11129
11130         c-stack: avoid "ignoring return value of `write'" warning
11131         * lib/c-stack.c: Include "ignore-value.h".
11132         (die): Explicitly ignore each write return value.
11133         * modules/c-stack (Depends-on): Add ignore-value.
11134
11135 2009-11-21  Bruno Haible  <bruno@clisp.org>
11136
11137         diffseq: reduce scope of variable 'best'.
11138         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11139         variable, earlier used for two different purposes.
11140
11141 2009-11-21  Jim Meyering  <meyering@redhat.com>
11142
11143         diffseq: remove useless assignment to "best"
11144         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11145         assignment.  At that point "best" is already guaranteed to be zero.
11146
11147 2009-11-20  Eric Blake  <ebb9@byu.net>
11148
11149         build: mention ftp redirector in release announcements
11150         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11151         values that used to come from cfg.mk; mention FTP redirect URL.
11152         * build-aux/announce-gen: Mention the mirror list.
11153         Suggested by Karl Berry.
11154
11155         nanosleep: improve port to mingw
11156         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11158         LIB_NANOSLEEP, but only when needed.
11159         * modules/select (Link): Document LIBSOCKET.
11160         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11161         enough.
11162
11163         nanosleep: work around cygwin bug
11164         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11165         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11166         bug.
11167         (getnow): Delete, not needed.
11168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11169         LIB_CLOCK_GETTIME.
11170         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11171         clock-time, gettime.
11172         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11173         bug.
11174         * modules/nanosleep-tests: New test.
11175         * tests/test-nanosleep.c: New file.
11176
11177         sleep: work around cygwin bug
11178         * lib/sleep.c (rpl_sleep): Work around the bug.
11179         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11180         (gl_PREREQ_SLEEP): Delete unused macro.
11181         * modules/sleep (Depends-on): Add verify.
11182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11183         * modules/unistd (Makefile.am): Substitute witness.
11184         * lib/unistd.in.h (sleep): Update prototype.
11185         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11186         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11187         * modules/sleep-tests (Depends-on): Check for alarm.
11188
11189 2009-11-20  Jim Meyering  <meyering@redhat.com>
11190
11191         maint.mk: improve sc_prohibit_magic_number_exit
11192         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11193         so it does not match uses like System.exit(1).
11194         Add comments showing how to correct all offenders.
11195
11196 2009-11-19  Eric Blake  <ebb9@byu.net>
11197
11198         xalloc-die-tests: add missing library
11199         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11200
11201         test-xvasprintf: silence compiler warnings
11202         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11203         empty string from gcc.
11204
11205 2009-11-19  Jim Meyering  <meyering@redhat.com>
11206
11207         xfreopen: new module, from coreutils
11208         * modules/xfreopen: New module.
11209         * lib/xfreopen.c: New file.
11210         * lib/xfreopen.h: New file.
11211         * MODULES.html.sh (File stream based Input/Output"): Add it.
11212
11213 2009-11-19  Eric Blake  <ebb9@byu.net>
11214
11215         manywarnings: depend on warnings
11216         * modules/manywarnings (Depends-on): Add warnings.
11217
11218         build: avoid compiler warnings
11219         * lib/select.c (rpl_select): Delete unused variable.
11220         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11221
11222 2009-11-18  Eric Blake  <ebb9@byu.net>
11223
11224         tests: avoid false negative with --with-packager
11225         * tests/test-version-etc.sh: Discard packager information.
11226         * tests/test-argp-version-etc-1.sh: Likewise.
11227         Reported by Mike Frysinger.
11228
11229         utimens: fix regression on Solaris
11230         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11231         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11232         can only change fd timestamps via futimesat.  Instead, use an
11233         additional witness macro to avoid BSD bug.
11234         Reported by Jim Meyering.
11235
11236 2009-11-17  Eric Blake  <ebb9@byu.net>
11237
11238         usleep: use it to simplify tests
11239         * modules/stat-time-tests (Depends-on): Add usleep.
11240         (configure.ac): Drop usleep check.
11241         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11242         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11243         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11244         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11245         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11246         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11247         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11248         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11249         Likewise.
11250         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11251         * tests/test-lchown.h (nap): Likewise.
11252         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11253         * tests/test-stat-time.c (nap): Likewise.
11254         * tests/test-utimens-common.h (nap): Update comments.
11255
11256         usleep: new module
11257         * modules/usleep: New file.
11258         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11259         * lib/usleep.c (usleep): Likewise.
11260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11261         * modules/unistd (Makefile.am): Substitute witnesses.
11262         * lib/unistd.in.h (usleep): Add declaration.
11263         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11264         * MODULES.html.sh (Date and time): Likewise.
11265         * modules/usleep-tests (Depends-on): New test.
11266         * tests/test-usleep.c: New file.
11267
11268         chown: work around OpenBSD bug
11269         * lib/chown.c (rpl_chown): Work around the bug.
11270         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11271         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11272         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11273         * modules/chown (Depends-on): Add stdbool.
11274         * modules/lchown (Depends-on): Likewise.
11275         * doc/posix-functions/chown.texi (chown): Document the bug.
11276         * doc/posix-functions/lchown.texi (lchown): Likewise.
11277         * tests/test-lchown.h (test_chown): Relax test.
11278
11279         mkstemp: avoid conflict with C++ keyword template
11280         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11281         * lib/mkostemp.c (mkostemp): Likewise.
11282         * lib/mkostemps.c (mkostemps): Likewise.
11283         * lib/mkstemp.c (mkstemp): Likewise.
11284         * lib/mkstemps.c (mkstemps): Likewise.
11285
11286         xalloc-die-tests: optimize
11287         * tests/test-xalloc-die.sh: Reduce number of processes.
11288
11289 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11290
11291         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11292         patch from ludo@gnu.org (Ludovic Courtès).
11293
11294 2009-11-17  Jim Meyering  <meyering@redhat.com>
11295
11296         version-etc: use proper license string
11297         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11298         * modules/version-etc-fsf: Likewise.
11299
11300 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11301
11302         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11303         printed to stdout.  Deal with EOL differences.
11304
11305 2009-11-17  Eric Blake  <ebb9@byu.net>
11306
11307         unsetenv: work around Solaris bug
11308         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11309         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11310         Reported by Jim Meyering.
11311
11312         vasnprintf: avoid compiler warnings
11313         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11314         variables.
11315         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11316
11317 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11318
11319         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11320         settings since xalloc-die is no longer the self test,
11321         xalloc-die.sh is.
11322
11323 2009-11-17  Jim Meyering  <meyering@redhat.com>
11324
11325         test-xalloc-die.sh: make the code agree with the commit log
11326         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11327         at the end, just in case you happen to have a test-xalloc-die
11328         program in some other PATH directory.
11329
11330         test-xalloc-die.sh: fix a portability bug
11331         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11332         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11333         Otherwise, argv[0] (as often seen in diagnostics) would be too
11334         system-dependent, sometimes with, and sometimes without the leading "./".
11335
11336         version-etc-fsf: relax license to LGPLv3+
11337         * modules/version-etc-fsf (License): Relax license.
11338
11339 2009-11-16  Eric Blake  <ebb9@byu.net>
11340
11341         xalloc-die-tests: avoid printing null pointer
11342         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11343         shell script.
11344         * tests/test-xalloc-die.c (program_name): Declare.
11345         * tests/test-xalloc-die.sh (tmpfiles): New file.
11346
11347         setenv, unsetenv: work around various bugs
11348         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11349         (setenv) [HAVE_SETENV]: Work around bugs.
11350         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11351         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11352         for bugs.
11353         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11354         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11356         * modules/stdlib (Makefile.am): Update substitutions.
11357         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11358         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11359         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11360         * modules/setenv-tests: New test.
11361         * modules/unsetenv-tests: Likewise.
11362         * tests/test-setenv.c: New file.
11363         * tests/test-unsetenv.c: Likewise.
11364
11365 2009-11-16  Jim Meyering  <meyering@redhat.com>
11366
11367         version-etc: relax license to LGPLv3+
11368         * modules/version-etc (License): Relax license.
11369
11370         better AC_REQUIRE expanded-before-required-warning avoidance
11371         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11372         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11373         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11374         which is no longer needed.
11375
11376 2009-11-16  Eric Blake  <ebb9@byu.net>
11377
11378         test-freading: clean up temporary file
11379         * tests/test-freading.c (main): Remove file on success, and use
11380         ASSERT more liberally.
11381         Reported by Jim Meyering.
11382
11383 2009-11-16  Jim Meyering  <meyering@redhat.com>
11384
11385         avoid new AC_REQUIRE expanded-before-required warnings
11386         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11387         merely using it.
11388         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11389         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11390
11391 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11392
11393         * tests/test-xalloc-die.c: New file.
11394         * modules/xalloc-die-tests: New file.
11395         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11396         XFAIL_TESTS so it can be appended by modules.
11397
11398 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11399
11400         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11401         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11402
11403 2009-11-14  Eric Blake  <ebb9@byu.net>
11404
11405         fnmatch: avoid compiler warning
11406         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11407         to silence compiler warning about mismatch signedness in ?:.
11408         Reported by Robert Millan.
11409
11410         intprops: add double-inclusion guard
11411         * lib/intprops.h: Allow idempotent includes.
11412         Suggested by Bruce Korb.
11413
11414         openat: detect Solaris fchownat bug
11415         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11416         penalizing glibc chownat when only lchownat is broken.
11417         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11418         trailing slash bugs.
11419         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11420         * modules/openat-tests (Files): Include more files.
11421         (Depends-on): Add mgetgroups, sleep, stat-time.
11422         (configure.ac): Add additional checks.
11423         (Makefile.am): Build new test.
11424         * tests/test-fchownat.c: New file.
11425
11426         lchown: detect Solaris and FreeBSD bug
11427         * lib/lchown.c (rpl_lchown): Work around bug.
11428         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11430         * modules/unistd (Makefile.am): Populate it.
11431         * lib/unistd.in.h (lchown): Update declaration.
11432         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11433         * modules/lchown-tests: New file.
11434         * tests/test-lchown.h (test_lchown): Likewise.
11435         * tests/test-lchown.c (main): Likewise.
11436
11437         chown: detect Solaris and FreeBSD bug
11438         * lib/chown.c (rpl_chown): Work around bug.
11439         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11440         (gl_PREREQ_CHOWN): Delete.
11441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11442         * modules/unistd (Makefile.am): Populate it.
11443         * lib/unistd.in.h (chown): Update declaration.
11444         * lib/lchown.c (chown): Update client.
11445         * modules/lchown (Depends-on): Add lstat.
11446         * doc/posix-functions/chown.texi (chown): Document the bug.
11447         * doc/posix-functions/getgroups.texi (getgroups): Document
11448         getgroups pitfall.
11449         * modules/chown-tests: New file.
11450         * tests/test-chown.h (test_chown): Likewise.
11451         * tests/test-chown.c (main): Likewise.
11452
11453 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11454
11455         gnulib-tool: correctly detect absence of m4 directories
11456         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11457
11458 2009-11-14  Jim Meyering  <meyering@redhat.com>
11459
11460         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11461         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11462
11463 2009-11-14  John W. Eaton  <jwe@gnu.org>
11464
11465         strftime.h: wrap funtion declaration in extern "C" block
11466         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11467
11468 2009-11-13  Eric Blake  <ebb9@byu.net>
11469
11470         getgroups: avoid compiler warning
11471         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11472
11473         getgroups: work around FreeBSD bug
11474         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11475         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11476         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11477         * tests/test-getgroups.c (main): Fix buffer overrun.
11478
11479         getgroups: avoid compilation failure
11480         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11481         * modules/getgroups (Depends-on): Add stdint.
11482
11483 2009-11-13  Jim Meyering  <meyering@redhat.com>
11484
11485         test-getgroups: avoid compilation failure
11486         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11487
11488 2009-11-13  Eric Blake  <ebb9@byu.net>
11489
11490         mgetgroups: new module, taken from coreutils
11491         * modules/mgetgroups: New file.
11492         * lib/mgetgroups.h: Likewise.
11493         * lib/mgetgroups.c (mgetgroups): Likewise.
11494         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11495         * MODULES.html.sh (Users and groups): Mention it.
11496
11497         getgroups: don't expose GETGROUPS_T to user
11498         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11499         an element at a time if GETGROUPS_T is wrong size.
11500         * lib/getugroups.h (getugroups): Change signature.
11501         * lib/unistd.in.h (getgroups): Likewise.
11502         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11503         signature needs fixing.
11504         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11505         AC_TYPE_GETGROUPS.
11506         * modules/group-member (Depends-on): Add getgroups.
11507         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11508         (group_member): Rely on getgroups replacement.
11509         * lib/getugroups.c (getugroups): Use gid_t.
11510         * tests/test-getgroups.c (main): Likewise.
11511         * NEWS: Mention the signature change.
11512         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11513         problem with signature.
11514         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11515         GETGROUPS_T is still useful for setgroups.
11516
11517         getgroups, getugroups: provide stubs for mingw
11518         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11519         * lib/getugroups.c (getugroups): Likewise.
11520         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11521         function.  Modernize replacement scheme.
11522         (gl_PREREQ_GETGROUPS): Delete.
11523         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11524         * modules/getgroups (configure.ac): Declare witness.
11525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11526         * modules/unistd (Depends-on): Substitute witness.
11527         * lib/unistd.in.h (getgroups): Declare replacement.
11528
11529         getgroups: avoid calling exit
11530         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
11531         drop xalloc.
11532         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
11533         dependencies.
11534         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
11535         exiting, in the rare case of malloc failure.
11536
11537         getgroups: fix logic error
11538         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
11539         has more than 20 groups.
11540         * modules/getgroups-tests: New test.
11541         * tests/test-getgroups.c: New file.
11542
11543 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11544
11545         * tests/test-base64.c: Improve.
11546
11547 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11548
11549         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
11550         Blake <ebb9@byu.net>.
11551
11552 2009-11-13  Simon Josefsson  <simon@josefsson.org>
11553
11554         * tests/test-xvasprintf.c: Add %s%s related checks.
11555
11556 2009-11-12  Eric Blake  <ebb9@byu.net>
11557
11558         version-etc: match standards.texi style
11559         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
11560         and use <> only for URLs.
11561
11562 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
11563
11564         fts: do not fail on a submount during traversal
11565         * lib/fts.c (fts_build): Read the stat info again after opening
11566         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
11567         Original report at http://bugzilla.redhat.com/501848.
11568
11569 2009-11-12  Jim Meyering  <meyering@redhat.com>
11570
11571         bootstrap: sync from coreutils
11572         * build-aux/bootstrap (bootstrap_epilogue): New function.
11573         Use git_modules_config in one more place.  This make bootstrap's
11574         --gnulib-srcdir option more useful for testing.
11575
11576         bootstrap: generalize autoheader check
11577         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
11578         AC_CONFIG_HEADERS.
11579
11580 2009-11-11  Eric Blake  <ebb9@byu.net>
11581
11582         mkfifoat: use new modules for Solaris and BSD bugs
11583         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
11584         * lib/mkfifoat.c (mknodat): Split...
11585         * lib/mknodat.c (mknodat): ...into new file.
11586         * modules/mkfifoat (Files): Ship new file.
11587         (Depends-on): Add mkfifo, mknod.
11588         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
11589         (Depends-on): Add symlink.
11590         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
11591         redundant with test_mkfifo.h.
11592         (do_mkfifoat, do_mknodat): New helpers.
11593
11594         mknod: new module
11595         * modules/mknod: New file.
11596         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
11597         * lib/mknod.c (mknod): Likewise.
11598         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11599         defaults.
11600         * modules/sys_stat (Makefile.am): Substitute them.
11601         * lib/sys_stat.in.h (mknod): Declare replacement.
11602         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11603         Document it.
11604         * doc/posix-functions/mknod.texi (mknod): Likewise.
11605         * modules/mknod-tests: New test.
11606         * tests/test-mknod.c: Likewise.
11607
11608         mkfifo: new module
11609         * modules/mkfifo: New file.
11610         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11611         * lib/mkfifo.c (mkfifo): Likewise.
11612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
11613         defaults.
11614         * modules/sys_stat (Makefile.am): Substitute them.
11615         * lib/sys_stat.in.h (mkfifo): Declare replacement.
11616         * MODULES.html.sh (Support for systems lacking POSIX:2008):
11617         Document it.
11618         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
11619         * modules/mkfifo-tests: New test.
11620         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
11621         from test-mkfifoat.c.
11622         * tests/test-mkfifo.c: New file.
11623
11624         readlink: detect FreeBSD bug
11625         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
11626         slash on symlink.
11627         * doc/posix-functions/readlink.texi (readlink): Document the bug.
11628         * tests/test-readlink.h (test_readlink): Enhance test.
11629
11630         symlink: detect FreeBSD bug
11631         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
11632         slash on symlink.
11633         * doc/posix-functions/symlink.texi (symlink): Document the bug.
11634         * tests/test-symlink.h (test_symlink): Enhance test.
11635
11636 2009-11-10  Eric Blake  <ebb9@byu.net>
11637
11638         link: detect FreeBSD bug
11639         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
11640         symlink.
11641         * doc/posix-functions/link.texi (link): Document the bug.
11642         * tests/test-link.h (test_link): Enhance test.
11643         * tests/test-linkat.c (main): Update caller.
11644
11645         unlink, remove: detect FreeBSD bug
11646         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
11647         slash on symlink.
11648         * doc/posix-functions/unlink.texi (unlink): Document the bug.
11649         * doc/posix-functions/remove.texi (remove): Likewise.
11650         * tests/test-unlink.h (test_unlink): Enhance test.
11651         * tests/test-remove.c (main): Likewise.
11652
11653 2009-11-09  Eric Blake  <ebb9@byu.net>
11654
11655         rename: detect FreeBSD bug
11656         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
11657         slash on symlink.
11658         * modules/renameat-tests (Depends-on): Add filenamecat.
11659         * tests/test-rename.h (test_rename): Allow one more errno.
11660         * tests/test-renameat.c (main): Likewise.
11661         * doc/posix-functions/rename.texi (rename): Document the bug.
11662
11663         open: detect FreeBSD bug
11664         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
11665         symlink.
11666         * doc/posix-functions/open.texi (open): Document the bug.
11667         * doc/posix-functions/utimes.texi (utimes): Likewise.
11668         * tests/test-open.h (test_open): Add parameters, and test symlink
11669         handling.
11670         * tests/test-open.c (main): Adjust caller.
11671         * tests/test-fcntl-safer.c (main): Likewise.
11672         * modules/open-tests (Depends-on): Add stdbool, symlink.
11673         * modules/fcntl-safer-tests (Depends-on): Likewise.
11674         * tests/test-openat.c (main): Add test-open tests.
11675
11676         stat: detect FreeBSD bug
11677         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
11678         symlink.
11679         * doc/posix-functions/stat.texi (stat): Document the bug.
11680         * tests/test-stat.h (test_stat_func): Add argument.
11681         * tests/test-stat.c (main): Adjust caller.
11682         * tests/test-fstatat.c (main): Likewise.
11683         * modules/stat-tests (Depends-on): Add stdbool, symlink.
11684         Reported by Jim Meyering.
11685
11686 2009-11-09  James Youngman  <jay@gnu.org>
11687
11688         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
11689         * lib/strftime.c: Correct placement of #include "ignore-value.h".
11690
11691 2009-11-08  Jim Meyering  <meyering@redhat.com>
11692
11693         utimens: remove invalid futimesat call
11694         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
11695         It used the file descriptor of the target file as the DIR_FD
11696         parameter and NULL as the file name.  That caused failure with
11697         errno == EFAULT on FreeBSD-8.0-rc2
11698
11699 2009-11-07  Eric Blake  <ebb9@byu.net>
11700
11701         fflush, freadseek: use fseeko, not fseek
11702         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
11703         (clear_ungetc_buffer): Avoid potential problems on large files.
11704         * lib/freadseek.c (freadseek): Likewise.
11705         * modules/freadseek (Depends-on): Add fseeko.
11706         * modules/fseek (configure.ac): Set a witness.
11707         * tests/test-fflush.c (main): Use fseeko.
11708         * tests/test-fpurge.c (fseek): Disable link warning.
11709         * tests/test-freadable.c (fseek): Likewise.
11710         * tests/test-freading.c (fseek): Likewise.
11711         * tests/test-fseeko.c (fseek): Likewise.
11712         * tests/test-ftell.c (fseek): Likewise.
11713         * tests/test-ftello.c (fseek): Likewise.
11714         * tests/test-fwritable.c (fseek): Likewise.
11715         * tests/test-fwriting.c (fseek): Likewise.
11716
11717 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11718
11719         * modules/memchr (Depends-on): Drop getpagesize dependency.
11720
11721 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11722
11723         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
11724         Reported by Ludovic Courtès.
11725         * build-aux/pmccabe2html: Improve example usage.
11726         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
11727
11728 2009-11-06  Jim Meyering  <meyering@redhat.com>
11729
11730         do-release-commit-and-tag: New module.
11731         Automate the release-commit and tag process.
11732         * build-aux/do-release-commit-and-tag: New script, from coreutils.
11733         * modules/do-release-commit-and-tag: New file.
11734         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11735
11736 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11737
11738         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
11739         because test-select.c uses inet_pton.
11740
11741 2009-11-06  Simon Josefsson  <simon@josefsson.org>
11742
11743         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
11744         GETADDRINFO_LIB.  Bump serial number.
11745         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
11746         Suggested by Eric Blake <ebb9@byu.net>.
11747
11748 2009-11-05  Eric Blake  <ebb9@byu.net>
11749
11750         strtod: detect darwin bug
11751         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
11752         Reported by Leo Davis.
11753
11754         freopen-safer: new module
11755         * modules/freopen-safer: New module.
11756         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
11757         * lib/freopen-safer.c (freopen_safer): New file.
11758         * lib/stdio-safer.h (freopen_safer): New declaration.
11759         * lib/stdio--.h (freopen): New override.
11760         * MODULES.html.sh (File stream based Input/Output): Mention it.
11761         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
11762         freopen-safer module.
11763         * doc/posix-functions/stderr.texi (stderr): Likewise.
11764         * doc/posix-functions/stdin.texi (stdin): Likewise.
11765         * doc/posix-functions/stdout.texi (stdout): Likewise.
11766         * modules/freopen-safer-tests: New test.
11767         * tests/test-reopen-safer.c: New file.
11768
11769 2009-11-05  Jim Meyering  <meyering@redhat.com>
11770
11771         maint.mk: Prohibit inclusion of "close-stream.h" without use.
11772         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11773
11774 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11775
11776         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
11777
11778 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11779
11780         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
11781
11782 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11783
11784         Fix link error.
11785         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11786         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11787
11788 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11789
11790         * tests/test-func.c: Also test value of __func__.
11791
11792 2009-11-05  Simon Josefsson  <simon@josefsson.org>
11793
11794         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
11795         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
11796
11797 2009-11-05  Bruno Haible  <bruno@clisp.org>
11798
11799         Fix link error.
11800         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
11801         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11802         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
11803
11804 2009-11-05  Bruno Haible  <bruno@clisp.org>
11805
11806         Tests for module 'inet_pton'.
11807         * modules/inet_pton-tests: New file.
11808         * tests/test-inet_pton.c: New file.
11809
11810 2009-11-05  Bruno Haible  <bruno@clisp.org>
11811
11812         Tests for module 'inet_ntop'.
11813         * modules/inet_ntop-tests: New file.
11814         * tests/test-inet_ntop.c: New file.
11815
11816 2009-11-04  Eric Blake  <ebb9@byu.net>
11817
11818         stdlib-safer: wrap all mkstemp variants
11819         * modules/mkostemp (configure.ac): Set witness.
11820         * modules/mkostemps (configure.ac): Likewise.
11821         * modules/mkstemps (configure.ac): Likewise.
11822         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
11823         (mkstemps_safer): Wrap more functions.
11824         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
11825         wrapping.
11826         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
11827         (mkstemps_safer): Implement the wrappers.
11828
11829         mkstemps, mkostemps: new modules
11830         * modules/mkostemps: New module.
11831         * modules/mkstemps: Likewise.
11832         * lib/mkostemps.c (mkostemps): New file.
11833         * lib/mkstemps.c (mkstemps): Likewise.
11834         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
11835         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
11836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
11837         * modules/stdlib (Makefile.am): Substitute them.
11838         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
11839         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
11840         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11841         * doc/gnulib.texi (Glibc stdlib.h): Include them.
11842         * MODULES.html.sh (File system functions): Mention them.
11843
11844         tempname: resync from glibc
11845         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
11846         same values for __GT_FILE as glibc.  Abort even when assertions
11847         are disabled.
11848         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
11849         match its value otherwise.  Allow idempotent inclusion.
11850         * lib/mkdtemp.c (mkdtemp): Adjust caller.
11851         * lib/mkostemp.c (mkostemp): Likewise.
11852         * lib/mkstemp.c (mkstemp): Likewise.
11853         * lib/tmpfile.c (tmpfile): Likewise.
11854         * NEWS: Document this.
11855
11856         utimens: fix use of futimens on older Linux
11857         * lib/utimens.c (fdutimens): Use updated, rather than original,
11858         timespec to avoid bug in older Linux kernel.
11859         Reported by Simon Josefsson.
11860
11861 2009-11-04  Bruno Haible  <bruno@clisp.org>
11862
11863         Make num_processors more flexible and consistent.
11864         * lib/nproc.h (enum nproc_query): New type.
11865         (num_processors): Add a 'query' argument.
11866         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
11867         (num_processors): Add a 'query' argument. Test the value of the
11868         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
11869         mingw, count the number of CPUs available for the current process.
11870         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
11871         Check for sched_getaffinity and sched_getaffinity_np.
11872         * modules/nproc (Depends-on): Add c-ctype, extensions.
11873         * NEWS: Mention the change.
11874
11875 2009-11-03  Bruno Haible  <bruno@clisp.org>
11876
11877         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
11878
11879 2009-11-03  Jim Meyering  <meyering@redhat.com>
11880
11881         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
11882         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
11883         if it is defined.
11884
11885 2009-11-02  Eric Blake  <ebb9@byu.net>
11886
11887         mktime, timegm: share common declaration
11888         * lib/mktime-internal.h: New file.
11889         * lib/mktime.c: Use it rather than open-coding a declaration.
11890         * lib/timegm.c: Likewise.
11891         * modules/mktime (Files): Ship it.
11892         * modules/timegm (Files): Likewise.
11893         Suggested by Bruno Haible.
11894
11895         test-update-copyright: update test to match script changes
11896         * tests/test-update-copyright.sh: Avoid hard-coding perl
11897         location.  Don't update *.bak created by earlier runs.
11898
11899 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11900             Simon Josefsson  <simon@josefsson.org>
11901             Bruno Haible  <bruno@clisp.org>
11902
11903         Fix link error on Solaris 8.
11904         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
11905         also in libnsl. Define also INET_PTON_LIB.
11906         * modules/inet_pton (Link): New section.
11907
11908 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11909             Bruno Haible  <bruno@clisp.org>
11910
11911         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
11912         * modules/inet_ntop (Link): New section.
11913         Reported by Boyan Kasarov <bkasarov@gmail.com>.
11914
11915 2009-11-02  Eric Blake  <ebb9@byu.net>
11916
11917         maint: avoid compiler warnings in m4 macros
11918         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
11919         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
11920
11921 2009-11-02  Simon Josefsson  <simon@josefsson.org>
11922
11923         * m4/pmccabe2html.m4: Remove file.
11924         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
11925         function.  Change maintainer.
11926         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
11927         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
11928         Courtès).
11929
11930 2009-10-31  Eric Blake  <ebb9@byu.net>
11931
11932         fseeko: fix m4 regression
11933         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
11934         regression from 2009-10-27.
11935         Reported by Ralf Wildenhues.
11936
11937 2009-10-31  Jim Meyering  <meyering@redhat.com>
11938
11939         inttostr: aesthetics and improved (compile-time) safety
11940         Define inttype_is_signed rather than inttype_is_unsigned,
11941         since the sole use is via "#if inttype_is_signed".
11942         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
11943         inttype_is_unsigned.
11944         * lib/offtostr.c (inttype_is_signed): Likewise.
11945         * lib/uinttostr.c (inttype_is_signed): Likewise.
11946         * lib/umaxtostr.c (inttype_is_signed): Likewise.
11947         * lib/inttostr.c (inttostr): Use verify to cross-check the
11948         inttype_is_signed value and the signedness of the actual type.
11949         * modules/inttostr (Depends-on): Add verify.
11950
11951 2009-10-30  Eric Blake  <ebb9@byu.net>
11952
11953         build: avoid compiler warnings
11954         * lib/fchmodat.c (lchmod): Mark unused variables.
11955         * lib/getopt.c (_getopt_initialize): Likewise.
11956         * lib/mktime.c (__mktime_internal): Provide prototype.
11957         * lib/inttostr.c (inttostr): Avoid compiler warning even with
11958         older gcc that do not understand #pragma GCC diagnostic.
11959         * lib/uinttostr.c (inttype_is_unsigned): Define.
11960         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
11961
11962 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
11963
11964         stat: fix compilation on AIX
11965         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
11966         only see struct stat64.
11967
11968 2009-10-30  Eric Blake  <ebb9@byu.net>
11969
11970         exclude: make more robust
11971         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
11972         rather than masking a coding bug.
11973         Suggested by Bruno Haible.
11974
11975 2009-10-30  Jim Meyering  <meyering@redhat.com>
11976
11977         perl scripts: remove #!/usr/bin/perl in favor of more portable...
11978         Rather than putting #!/usr/bin/perl on the first line,
11979         start with a variant of what's recommended by "man perlrun" that
11980         invokes the first "perl" program from your shell's search path.
11981         * build-aux/gitlog-to-changelog: Replace #!... as above.
11982         Add a "Local Variables" perl mode setting.
11983         Prompted by a patch from Ludovic Courtès.
11984         Improved by Eric Blake.
11985         * build-aux/useless-if-before-free: Likewise.
11986         * build-aux/announce-gen: Likewise.
11987         * build-aux/update-copyright: Likewise.
11988
11989 2009-10-29  Eric Blake  <ebb9@byu.net>
11990
11991         filenamecat-lgpl: adjust clients
11992         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
11993         filenamecat.
11994         * modules/renameat (Depends-on): Likewise.
11995
11996         filenamecat: split into filenamecat-lgpl
11997         * modules/filenamecat-lgpl: New module.
11998         * modules/filenamecat (Files): Move library-safe files into
11999         filenamecat-lgpl.
12000         (Depends-on): Add filenamecat-lgpl.
12001         (configure.ac): Declare witness.
12002         * lib/filenamecat.h (file_name_concat): Only declare when using
12003         GPL module.
12004         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12005         Move...
12006         * lib/filenamecat-lgpl.c: ...into new file.
12007         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12008         (gl_FILE_NAME_CONCAT): Use it.
12009         * MODULES.html.sh (File system functions): Mention new module.
12010
12011         argp: avoid memory leak
12012         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12013         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12014         base_name, since the latter malloc()s and can call exit().
12015         Leak introduced 2006-07-03.
12016
12017         dirname-lgpl: adjust clients that don't need full dirname
12018         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12019         * modules/filenamecat (Depends-on): Likewise.
12020         * modules/linkat (Depends-on): Likewise.
12021         * modules/mkancesdirs (Depends-on): Likewise.
12022         * modules/mkdir (Depends-on): Likewise.
12023         * modules/openat (Depends-on): Likewise.
12024         * modules/savewd (Depends-on): Likewise.
12025         * modules/rename (Depends-on): Likewise.
12026         (License): Relax license.
12027         * modules/mkdir-tests (Depends-on): Drop progname.
12028         (Makefile.am): Delete unneeded LDADD.
12029         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12030
12031         dirname: split into dirname-lgpl
12032         * modules/dirname-lgpl: New module.
12033         * modules/dirname (Files): Move library-safe files into
12034         dirname-lgpl.
12035         (Depends-on): Add dirname-lgpl.
12036         (configure.ac): Declare witness.
12037         * modules/double-slash-root (License): Relax license.
12038         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12039         module.
12040         * lib/dirname.c (dir_len, mdir_name): Move...
12041         * lib/dirname-lgpl.c: ...into new file.
12042         * lib/basename.c (last_component, base_len): Move...
12043         * lib/basename-lgpl.c: ...into new file.
12044         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12045         (gl_DIRNAME): Use it.
12046         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12047         Mention new module.
12048         * modules/dirname-tests (Depends-on): Add progname.
12049         * tests/test-dirname.c (program_name): Delete.
12050
12051         mkdir: make safe for libraries
12052         * modules/mkdir (Depends-on): Drop xalloc.
12053         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12054         exit.
12055
12056         tests: avoid some compiler warnings
12057         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12058         literals.
12059         * tests/test-memchr.c (main): Avoid type mismatch.
12060         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12061         * tests/test-base64.c (main): Likewise.
12062         * tests/test-getdelim.c (main): Likewise.
12063         * tests/test-gethostname.c (main): Likewise.
12064         * tests/test-getline.c (main): Likewise.
12065         * tests/test-netinet_in.c (main): Likewise.
12066         * tests/test-select.c (open_server_socket, main): Likewise.
12067         * tests/test-select-stdin.c (main): Likewise.
12068         * tests/test-sockets.c (main): Likewise.
12069         * tests/test-strsignal.c (main): Likewise.
12070         * tests/test-sys_select.c (main): Likewise.
12071         * tests/test-sys_socket.c (main): Likewise.
12072         * tests/test-u64.c (main): Likewise.
12073         * tests/test-xfprintf-posix.c (main): Likewise.
12074         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12075
12076         sockets: avoid compiler warning
12077         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12078
12079         maint: detect usage(1) and other suspicious exits
12080         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12081
12082 2009-10-29  Jim Meyering  <meyering@redhat.com>
12083
12084         timespec: long-to-int truncation could make timespec_cmp malfunction
12085         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12086         a multiple of 2^32 nanoseconds as no difference.
12087
12088 2009-10-28  Jim Meyering  <meyering@redhat.com>
12089
12090         fprintftime: wrap macro code argument in "do {...} while(0)"
12091         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12092         cpy macro must be a statement that can be followed by a semicolon.
12093         Now that the else clause contains a comment and is hence longer
12094         than one line, I require curly braces.  That in turn requires
12095         that we wrap this code block in the standard do...while(0).
12096
12097         fprintftime: remove stray semicolon from previous change
12098         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12099
12100         fprintftime: avoid a warning about ignored fwrite return value
12101         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12102         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12103         that is unsafe.
12104         * modules/fprintftime (Depends-on): Add ignore-value.
12105
12106         exclude: avoid an unwarranted warning
12107         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12108
12109 2009-10-27  Eric Blake  <ebb9@byu.net>
12110
12111         fseek: avoid compilation failure when fflush is replaced
12112         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12113         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12114         module is in use.
12115         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12116         module is not in use; since REPLACE_FSEEK worked otherwise.
12117         (GNULIB_FTELLO): Likewise for ftell.
12118         Reported by Ian Beckwith and others.
12119
12120 2009-10-27  Bruno Haible  <bruno@clisp.org>
12121
12122         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12123         Reported by Jim Meyering.
12124
12125 2009-10-27  Jim Meyering  <jim@meyering.net>
12126             Bruno Haible  <bruno@clisp.org>
12127
12128         Avoid warning despite dropping the return value of fwrite.
12129         * lib/unicodeio.c: Include ignore-value.h.
12130         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12131         * modules/unicodeio (Depends-on): Add ignore-value.
12132
12133 2009-10-26  Eric Blake  <ebb9@byu.net>
12134
12135         areadlinkat: fix fallback path
12136         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12137         pointer and zero.
12138
12139 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12140
12141         Use a better IO block size for modern systems
12142         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12143         * lib/md2.c: Likewise.
12144         * lib/md4.c: Likewise.
12145         * lib/md5.c: Likewise.
12146         * lib/sha1.c: Likewise.
12147         * lib/sha256.c: Likewise.
12148         * lib/sha512.c: Likewise.
12149
12150 2009-10-22  Eric Blake  <ebb9@byu.net>
12151
12152         tests: avoid several compiler warnings
12153         * tests/test-getcwd.c (main): Avoid buffer underflow.
12154         * tests/test-getdate.c (main): String literals are not safe with
12155         putenv, so use setenv.  Declare unused argument.
12156         * modules/getdate-tests (Depends-on): Add setenv.
12157         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12158         problems with string literals in char *.
12159         * tests/test-hash.c (main): Avoid shadowing declaration.
12160         (insert_new): Treat string literals as char const *.
12161         * tests/test-getopt.h (test_getopt): Likewise.
12162         (getopt_loop): Alter types to minimize casting elsewhere.
12163         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12164         (test_getopt_long_posix): Likewise.
12165         (do_getopt_long): Add wrapper to minimize casting.
12166         * tests/test-atexit.c (clear_temp_file): Use void.
12167         * tests/test-areadlink-with-size.c (main): Declare unused
12168         arguments.
12169         * tests/test-areadlink.c (main): Likewise.
12170         * tests/test-areadlinkat-with-size.c (main): Likewise.
12171         * tests/test-areadlinkat.c (main): Likewise.
12172         * tests/test-canonicalize-lgpl.c (main): Likewise.
12173         * tests/test-canonicalize.c (main): Likewise.
12174         * tests/test-dirent-safer.c (main): Likewise.
12175         * tests/test-dirname.c (main): Likewise.
12176         * tests/test-dup2.c (main): Likewise.
12177         * tests/test-fchdir.c (main): Likewise.
12178         * tests/test-fcntl-h.c (main): Likewise.
12179         * tests/test-fcntl-safer.c (main): Likewise.
12180         * tests/test-fdopendir.c (main): Likewise.
12181         * tests/test-fdutimensat.c (main): Likewise.
12182         * tests/test-fflush.c (main): Likewise.
12183         * tests/test-filenamecat.c (main): Likewise.
12184         * tests/test-filevercmp.c (main): Likewise.
12185         * tests/test-fopen-safer.c (main): Likewise.
12186         * tests/test-fopen.c (main): Likewise.
12187         * tests/test-fpending.c (main): Likewise.
12188         * tests/test-fpurge.c (main): Likewise.
12189         * tests/test-freading.c (main): Likewise.
12190         * tests/test-fstatat.c (main): Likewise.
12191         * tests/test-fsync.c (main): Likewise.
12192         * tests/test-futimens.c (main): Likewise.
12193         * tests/test-getndelim2.c (main): Likewise.
12194         * tests/test-gettimeofday.c (main): Likewise.
12195         * tests/test-getopt.c (main): Likewise.
12196         * tests/test-i-ring.c (main): Likewise.
12197         * tests/test-inttypes.c (main): Likewise.
12198         * tests/test-link.c (main): Likewise.
12199         * tests/test-lstat.c (main): Likewise.
12200         * tests/test-math.c (main): Likewise.
12201         * tests/test-md5.c (main): Likewise.
12202         * tests/test-memchr2.c (main): Likewise.
12203         * tests/test-memrchr.c (main): Likewise.
12204         * tests/test-mkdir.c (main): Likewise.
12205         * tests/test-mkdirat.c (main): Likewise.
12206         * tests/test-mkfifoat.c (main): Likewise.
12207         * tests/test-open.c (main): Likewise.
12208         * tests/test-openat-safer.c (main): Likewise.
12209         * tests/test-openat.c (main): Likewise.
12210         * tests/test-quotearg.c (main): Likewise.
12211         * tests/test-rawmemchr.c (main): Likewise.
12212         * tests/test-readlink.c (main): Likewise.
12213         * tests/test-remove.c (main): Likewise.
12214         * tests/test-rename.c (main): Likewise.
12215         * tests/test-renameat.c (main): Likewise.
12216         * tests/test-rmdir.c (main): Likewise.
12217         * tests/test-sha1.c (main): Likewise.
12218         * tests/test-signal.c (main): Likewise.
12219         * tests/test-sigaction.c (main): Likewise.
12220         * tests/test-stat.c (main): Likewise.
12221         * tests/test-stat-time.c (main): Likewise.
12222         * tests/test-stddef.c (main): Likewise.
12223         * tests/test-stdint.c (main): Likewise.
12224         * tests/test-stdio.c (main): Likewise.
12225         * tests/test-stdlib.c (main): Likewise.
12226         * tests/test-strchrnul.c (main): Likewise.
12227         * tests/test-strerror.c (main): Likewise.
12228         * tests/test-string.c (main): Likewise.
12229         * tests/test-strtod.c (main): Likewise.
12230         * tests/test-strverscmp.c (main): Likewise.
12231         * tests/test-symlink.c (main): Likewise.
12232         * tests/test-symlinkat.c (main): Likewise.
12233         * tests/test-sys_stat.c (main): Likewise.
12234         * tests/test-sys_time.c (main): Likewise.
12235         * tests/test-time.c (main): Likewise.
12236         * tests/test-unistd.c (main): Likewise.
12237         * tests/test-unlink.c (main): Likewise.
12238         * tests/test-unlinkat.c (main): Likewise.
12239         * tests/test-utimens.c (main): Likewise.
12240         * tests/test-utimensat.c (main): Likewise.
12241         * tests/test-version-etc.c (main): Likewise.
12242         * tests/test-wchar.c (main): Likewise.
12243         * tests/test-wctype.c (main): Likewise.
12244         * tests/test-xprintf-posix.c (main): Likewise.
12245         * tests/test-posixtm.c (main): Likewise.
12246         (STREQ): Delete unused macro.
12247         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12248         shadowed variables.
12249         * tests/test-memchr.c (main): Likewise.
12250
12251 2009-10-21  Eric Blake  <ebb9@byu.net>
12252
12253         areadlinkat: avoid failure on older glibc
12254         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12255         rather than mis-comparing 0 against FUNC_RESULT of char*.
12256
12257 2009-10-21  Bruno Haible  <bruno@clisp.org>
12258
12259         * modules/stpncpy (License): Relicense under LGPLv2+.
12260         Reported by David Lutterkort <lutter@redhat.com>.
12261
12262 2009-10-20  Eric Blake  <ebb9@byu.net>
12263
12264         utimensat: work around Solaris 9 bug
12265         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12266         has trailing slash bugs.
12267         * tests/test-lutimens.h (test_lutimens): Enhance test.
12268         * tests/test-utimens.h (test_utimens): Likewise.
12269         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12270         * doc/posix-functions/utimes.texi (utimes): Likewise.
12271         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12272         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12273         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12274         * doc/posix-functions/futimens.texi (futimens): Likewise.
12275
12276         fdutimensat: new module
12277         * modules/fdutimensat: New file.
12278         * lib/fdutimensat.c (fdutimensat): Likewise.
12279         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12280         * MODULES.html.sh (File system functions): Mention module.
12281         * modules/fdutimensat-tests: New test.
12282         * tests/test-fdutimensat.c: Likewise.
12283
12284         doc: regenerate INSTALL
12285         * doc/INSTALL: Reflect recent autoconf update.
12286         * doc/INSTALL.ISO: Likewise.
12287         * doc/INSTALL.UTF-8: Likewise.
12288
12289 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12290
12291         acl: warn if ACL support is not detected
12292         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12293
12294 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12295
12296         * lib/nproc.h: Add extern "C" block for C++.
12297
12298 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12299             Bruno Haible  <bruno@clisp.org>
12300
12301         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12302         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12303         * doc/posix-functions/isalpha.texi: Likewise.
12304         * doc/posix-functions/isblank.texi: Likewise.
12305         * doc/posix-functions/iscntrl.texi: Likewise.
12306         * doc/posix-functions/isdigit.texi: Likewise.
12307         * doc/posix-functions/isgraph.texi: Likewise.
12308         * doc/posix-functions/islower.texi: Likewise.
12309         * doc/posix-functions/isprint.texi: Likewise.
12310         * doc/posix-functions/ispunct.texi: Likewise.
12311         * doc/posix-functions/isspace.texi: Likewise.
12312         * doc/posix-functions/isupper.texi: Likewise.
12313         * doc/posix-functions/isxdigit.texi: Likewise.
12314
12315 2009-10-18  Bruno Haible  <bruno@clisp.org>
12316
12317         Tests for module 'isblank'.
12318         * modules/isblank-tests: New file.
12319         * tests/test-isblank.c: New file.
12320
12321         New module 'isblank'.
12322         * lib/isblank.c: New file.
12323         * m4/isblank.m4: New file.
12324         * modules/isblank: New file.
12325         * doc/posix-functions/isblank.texi: Mention the new module.
12326
12327 2009-10-18  Bruno Haible  <bruno@clisp.org>
12328
12329         New module 'ctype'.
12330         * lib/ctype.in.h: New file.
12331         * m4/ctype.m4: New file.
12332         * modules/ctype: New file.
12333         * doc/posix-headers/ctype.texi: Mention the new module.
12334
12335 2009-10-18  Jim Meyering  <meyering@redhat.com>
12336
12337         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12338         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12339         right after its initialization, rather than farther down.
12340         Keeping these in close proximity makes it easier to ensure
12341         that each such variable is initialized.  E.g.,
12342
12343             LIB_CLOCK_GETTIME=
12344             AC_SUBST([LIB_CLOCK_GETTIME])
12345
12346         This change also increments these serial numbers.
12347         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12348         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12350
12351 2009-10-18  Bruno Haible  <bruno@clisp.org>
12352
12353         Don't let environment variables perturb build.
12354         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12355         (gl_PREREQ_GETHRXTIME): ... not here.
12356
12357 2009-10-18  Bruno Haible  <bruno@clisp.org>
12358
12359         Avoid symlink attack in localcharset module.
12360         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12361         (O_NOFOLLOW): Define fallback.
12362         (get_charset_aliases): Don't open the file if it is a symbolic link.
12363         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12364         gl_FCNTL_H.
12365         (gl_FCNTL_H): Require it.
12366         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12367         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12368         Reported by Fergal Glynn <fglynn@veracode.com>.
12369
12370 2009-10-18  Bruno Haible  <bruno@clisp.org>
12371
12372         Implement nproc for mingw.
12373         * lib/nproc.c: Include <windows.h>
12374         (num_processors): On native Windows platforms, try GetSystemInfo.
12375
12376 2009-10-18  Bruno Haible  <bruno@clisp.org>
12377
12378         Implement nproc for IRIX.
12379         * lib/nproc.c: Include <sys/sysmp.h>.
12380         (num_processors): On IRIX systems, try sysmp.
12381         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12382
12383 2009-10-18  Bruno Haible  <bruno@clisp.org>
12384
12385         Implement nproc for HP-UX.
12386         * lib/nproc.c: Include <sys/pstat.h>
12387         (num_processors): On HP-UX systems, try pstat_getdynamic.
12388         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12389         pstat_getdynamic.
12390
12391 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12392             Bruno Haible  <bruno@clisp.org>
12393
12394         Implement nproc for NetBSD, OpenBSD.
12395         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12396         (ARRAY_SIZE): New macro.
12397         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12398         * m4/nproc.m4: New file.
12399         * modules/nproc (Files): Add m4/nproc.m4.
12400         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12401         (Makefile.am): Instead, augment lib_SOURCES.
12402
12403 2009-10-18  Bruno Haible  <bruno@clisp.org>
12404
12405         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12406         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12407         sys/param.h.
12408
12409 2009-10-16  Eric Blake  <ebb9@byu.net>
12410
12411         utimensat: new module
12412         * modules/utimensat: New file.
12413         * lib/utimensat.c (utimensat): Likewise.
12414         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12415         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12416         so we can work around Linux bugs.
12417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12418         * modules/sys_stat (Makefile.am): Substitute them.
12419         * lib/sys_stat.in.h (utimensat): Declare it.
12420         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12421         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12422         * modules/utimensat-tests: New test.
12423         * tests/test-utimensat.c: Likewise.
12424
12425         utimens: let lutimens work on non-symlinks
12426         * lib/utimens.c (lutimens): Fall back to utimens rather than
12427         failing with ENOSYS, when file is not a symlink.
12428         (utimens): Reduce redirection.
12429         * tests/test-lutimens.h (test_lutimens): Update test to cover
12430         non-symlinks.
12431         * tests/test-utimens.h (test_utimens): Update test to cover
12432         symlinks.
12433         * tests/test-utimens.c (main): Update caller.
12434
12435         utimens: cache whether utimensat syscall works
12436         * lib/utimens.c (utimensat_works_really): New cache variable.
12437         (fdutimens, lutimens): Use it to avoid failing syscall.
12438
12439         test-stat-time, test-utimens: improve portability
12440         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12441         ext4 on alpha, and for cygwin.
12442         * tests/test-utimens-common.h: New file.
12443         (nap): Factor delays into single function.
12444         * tests/test-lutimens.h (test_lutimens): Use new header.
12445         * tests/test-futimens.h (test_futimens): Likewise.
12446         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12447         timestamps to occur from same machine, as was done previously for
12448         test_utimens.
12449         * modules/utimens-tests (Files): Ship new file.
12450         * modules/futimens-tests (Files): Likewise.
12451         Reported in part by Jim Meyering.
12452
12453         sys_stat: sort replacement declarations
12454         * lib/sys_stat.in.h: Sort declarations.
12455         * lib/futimens.c (futimens): Fix typo.
12456
12457 2009-10-15  Jim Meyering  <meyering@redhat.com>
12458
12459         don't let environment settings perturb build
12460         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12461         could cause a configure-time and/or build-time malfunction.
12462         Typically, a configure-time function-in-library test is performed
12463         via code like this:
12464
12465           LIB_VAR=
12466           AC_SUBST([LIB_VAR])
12467           prefix_saved_LIBS=$LIBS
12468             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12469                        [test "$ac_cv_search_FUNC" = "none required" ||
12470                         LIB_VAR=$ac_cv_search_FUNC])
12471           LIBS=$prefix_saved_LIBS
12472
12473         However, in each of the files affected by this change, the LIB_VAR=
12474         initialization was omitted.  Thus, when set in the environment, its
12475         value would propagate into generated Makefiles when FUNC is not found
12476         in LIB_NAME.
12477         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12478         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12480
12481 2009-10-14  Eric Blake  <ebb9@byu.net>
12482
12483         fchdir: avoid infinite recursion in mingw
12484         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12485         recursing.
12486
12487         test-stat-time: port to mingw
12488         * tests/test-stat-time.c (force_unlink): Return a value.
12489         (test_ctime) [W32]: Fix compilation error.
12490         (nap): Don't call usleep with too large an argument.  Use
12491         force_unlink.
12492         * doc/pastposix-functions/usleep.texi (usleep): Document the
12493         portability issue.
12494
12495 2009-10-13  Jim Meyering  <meyering@redhat.com>
12496
12497         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12498         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12499         * modules/pipe-filter-ii: Likewise.
12500         * modules/sys_socket-tests: Likewise.
12501         * modules/tsearch-tests: Likewise.
12502         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12503         (check): Depend on it.
12504
12505 2009-10-12  Eric Blake  <ebb9@byu.net>
12506
12507         utimens-tests: port to NFS file systems
12508         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12509         comparisons to avoid spurious failures from timestamp drift
12510         between NFS machines.
12511
12512 2009-10-12  Eric Blake  <ebb9@byu.net>
12513
12514         stat-time-tests: minor cleanups
12515         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12516         * tests/test-stat-time.c (nap): Separate assignment from call.
12517         Suggested by Paolo Bonzini and Bruno Haible.
12518
12519         sys_stat: guarantee struct timespec
12520         * lib/sys_stat.in.h (includes): Always include <time.h>
12521         * modules/sys_stat (Depends-on): Add time.
12522         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12523         mode_t permission values.
12524         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12525         get at subsecond timestamps.
12526
12527 2009-10-10  Eric Blake  <ebb9@byu.net>
12528
12529         futimens: new module
12530         * modules/futimens: New file.
12531         * lib/futimens.c (futimens): Likewise.
12532         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
12533         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
12534         we can work around Linux bugs.
12535         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12536         * modules/sys_stat (Makefile.am): Substitute them.
12537         * lib/sys_stat.in.h (futimens): Declare it.
12538         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12539         * doc/posix-functions/futimens.texi (futimens): Likewise.
12540         * modules/futimens-tests: New test.
12541         * tests/test-futimens.c: Likewise.
12542
12543         utimens: introduce fdutimens
12544         * lib/utimens.h (fdutimens): New prototype.
12545         * lib/utimens.c (gl_futimens): Move guts...
12546         (fdutimens): ...to new interface.
12547         * tests/test-utimens.c (do_fdutimens): Use it.
12548
12549         utimens: add UTIME_NOW and UTIME_OMIT support
12550         * lib/utimens.c (validate_timespec, update_timespec): New helper
12551         functions.
12552         (gl_futimens, lutimens): Use them.
12553         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
12554         stdbool, sys_stat.
12555         (Link): Mention resulting library dependency.
12556         * modules/utimecmp (Link): Likewise.
12557         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
12558         (Makefile.am): Pick up library dependency.
12559         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
12560         definition.
12561         * tests/test-sys_stat.c: Test the definitions.
12562         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
12563         * NEWS: Document library dependency.
12564
12565         utimecmp: support symlink timestamps
12566         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
12567         hashing when possible.  Use pathconf when available.
12568         (SYSCALL_RESOLUTION): Recognize tighter resolution.
12569         * modules/utimecmp (Depends-on): Add lstat.
12570
12571         utimens: add lutimens interface
12572         * lib/utimens.c (lutimens): New function.
12573         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
12574         * lib/utimens.h (lutimens): Declare new interface.
12575         * tests/test-utimens.c (main): Enhance test.
12576         * tests/test-lutimens.h (test_lutimens): New file.
12577         * modules/utimens-tests (Files): Distribute it.
12578         (Depends-on): Add symlink.
12579         (configure.ac): Check for usleep.
12580
12581         utimens: validate futimens usage
12582         * lib/utimens.c (gl_futimens): Require valid fd up front, using
12583         fewer syscalls on failure later on.  Avoid compiler warning on
12584         mingw.
12585         * modules/utimens (Depends-on): Add dup2.
12586
12587         utimens: add test
12588         * modules/utimens-tests: New test.
12589         * tests/test-utimens.h: New file.
12590         * tests/test-futimens.h: Likewise.
12591         * tests/test-utimens.c: Likewise.
12592
12593         doc: mention timestamp portability issues
12594         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
12595         instead.
12596         * doc/posix-functions/utime.texi (utime): Likewise.
12597         * doc/posix-functions/utimes.texi (utimes): Likewise.
12598         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
12599         instead.
12600         * doc/posix-functions/futimens.texi (futimens): Mention utimens
12601         module.
12602         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12603         Mention weakness with symlink timestamps.
12604         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
12605         to utimensat/futimens instead.
12606         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
12607
12608         test-dup2: enhance test
12609         * tests/test-dup2.c (main): Also check AT_FDCWD.
12610
12611         test-stat-time: avoid more spurious failures
12612         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
12613         xfs; and avoid race if the two timestamps cross quantization edge.
12614
12615         relocatable: prefer 'file system' over 'filesystem'
12616         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
12617         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
12618         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
12619         * doc/relocatable.texi (Enabling Relocatability): Likewise.
12620         * lib/relocatable.c (compute_curr_prefix): Likewise.
12621
12622 2009-10-10  Jim Meyering  <meyering@redhat.com>
12623
12624         stat-time-tests: check for the usleep function
12625         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
12626
12627 2009-10-10  Bruno Haible  <bruno@clisp.org>
12628
12629         * modules/xnanosleep: Put the Link section after the Include section.
12630
12631 2009-10-09  Eric Blake  <ebb9@byu.net>
12632
12633         dup2: work around FreeBSD 6.1 bug
12634         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
12635         * doc/posix-functions/dup2.texi (dup2): Document it.
12636         Reported by Nelson H. F. Beebe and Jim Meyering.
12637
12638         test-stat-time: port to buggy NFS clients
12639         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
12640         (test_ctime): Also skip test if mtime and ctime are skewed.
12641
12642         maint: prefer 'file system' over 'filesystem'
12643         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
12644         * doc/posix-functions/lstat.texi (lstat): Likewise.
12645         * lib/file-has-acl.c (file_has_acl): Likewise.
12646         * lib/fwriteerror.c [TEST]: Likewise.
12647         * tests/test-areadlink.h (test_areadlink): Likewise.
12648         * tests/test-areadlinkat-with-size.c (main): Likewise.
12649         * tests/test-areadlinkat.c (main): Likewise.
12650         * tests/test-canonicalize-lgpl.c (main): Likewise.
12651         * tests/test-canonicalize.c (main): Likewise.
12652         * tests/test-fstatat.c (main): Likewise.
12653         * tests/test-linkat.c (main): Likewise.
12654         * tests/test-lstat.h (test_lstat_func): Likewise.
12655         * tests/test-mkdir.h (test_mkdir): Likewise.
12656         * tests/test-readlink.h (test_readlink): Likewise.
12657         * tests/test-remove.c (main): Likewise.
12658         * tests/test-rename.h (test_rename): Likewise.
12659         * tests/test-renameat.c (main): Likewise.
12660         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12661         * tests/test-symlink.h (test_symlink): Likewise.
12662         * tests/test-symlinkat.c (main): Likewise.
12663         * tests/test-unlink.h (test_unlink_func): Likewise.
12664         * tests/test-unlinkat.c (main): Likewise.
12665
12666         maint: make realtime library usage explicit
12667         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
12668         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
12669         * modules/settime (Link): Likewise.
12670         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
12671
12672         test-stat-time: speed up execution
12673         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
12674         warning on mingw.
12675         (nap): New helper function.
12676         (prepare_test): Use it to reduce sleep time.
12677         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
12678         execution.
12679         * modules/stat-time-tests (configure.ac): Check for usleep.
12680
12681 2009-10-09  Jim Meyering  <meyering@redhat.com>
12682
12683         selinux-h: always use getfilecon wrappers
12684         * lib/getfilecon.c: New file.
12685         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
12686         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
12687         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
12688         (fgetfilecon): Provide a stub.
12689         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
12690         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
12691         file unconditionally.
12692         When <selinux/selinux.h> is found, arrange to use wrappers.
12693         * modules/selinux-h (Files): Add getfilecon.c.
12694         (Makefile.am): Substitute include-next-related bits
12695         into the now-always-generated selinux/selinux.h file.
12696         * doc/glibc-functions/lgetfilecon.texi: New file.
12697         * doc/glibc-functions/fgetfilecon.texi: New file.
12698         * doc/glibc-functions/getfilecon.texi: New file.
12699         * doc/glibc-functions/getfilecon-desc.texi: New file.
12700         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
12701         which to pull in the new files.
12702         * MODULES.html.sh (Misc): Add selinux-h.
12703
12704 2009-10-08  Jim Meyering  <meyering@redhat.com>
12705
12706         unistd: fix comment typo
12707         * lib/unistd.in.h (euidaccess): Fix a comment typo.
12708
12709 2009-10-08  Eric Blake  <ebb9@byu.net>
12710
12711         areadlink: use SIZE_MAX consistently
12712         * modules/areadlink (Depends-on): Add stdint.
12713         * modules/areadlink-with-size (Depends-on): Likewise.
12714         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
12715         gives NULL; drop sys/types, since unistd gives size_t; and add
12716         stdint for SIZE_MAX.
12717         (SIZE_MAX): Rely on headers.
12718         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
12719         and add stdint.
12720         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
12721         (SIZE_MAX): Likewise.
12722         (INITIAL_BUF_SIZE): Turn into enum.
12723         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
12724
12725 2009-10-08  Jim Meyering  <meyering@redhat.com>
12726
12727         areadlinkat: avoid compilation failure
12728         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
12729         Fix typo in comment.
12730
12731 2009-10-07  Eric Blake  <ebb9@byu.net>
12732
12733         areadlinkat-with-size: new module
12734         * modules/areadlinkat-with-size: New module.
12735         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
12736         * lib/areadlink.h (areadlinkat): Declare it.
12737         * MODULES.html.sh (File system functions): Mention it.
12738         * modules/areadlinkat-with-size-tests: New test.
12739         * tests/test-areadlinkat-with-size.c: New file.
12740
12741         xreadlinkat: new module
12742         * modules/xreadlinkat: New module.
12743         * lib/xreadlinkat.c (xreadlinkat): New file.
12744         * lib/xreadlink.h (xreadlinkat): Declare it.
12745         * MODULES.html.sh (File system functions): Mention it.
12746
12747         areadlinkat: new module
12748         * lib/at-func.c (FUNC_FAIL): New define.
12749         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
12750         * modules/areadlinkat: New module.
12751         * lib/linkat.c (areadlinkat): Move...
12752         * lib/areadlinkat.c (areadlinkat): ...to new file.
12753         * lib/areadlink.h (areadlinkat): Declare it.
12754         * modules/linkat (Depends-on): Add areadlinkat.
12755         * MODULES.html.sh (File system functions): Mention it.
12756         * modules/areadlinkat-tests: New test.
12757         * tests/test-areadlinkat.c: New file.
12758
12759         areadlink, areadlink-with-size: add tests
12760         * modules/areadlink-tests: New test.
12761         * modules/areadlink-with-size-tests: Likewise.
12762         * tests/test-areadlink.h: New file.
12763         * tests/test-areadlink.c: Likewise.
12764         * tests/test-areadlink-with-size.c: Likewise.
12765
12766         maint: minor cleanups
12767         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
12768         _UNUSED_PARAMETER_ instead.
12769         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
12770         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
12771         * modules/linkat-tests (Files): Distribute test-link.h.
12772
12773         openat, utimens: whitespace cleanup
12774         * lib/openat.c: Prefer space throughout, rather than mix of 8
12775         spaces vs. tabs.
12776         * lib/at-func.c: Likewise.
12777         * lib/utimens.c: Likewise.
12778
12779         openat: avoid using wrong fd
12780         * lib/openat.c (openat_permissive): Reject user's fd if saving the
12781         working directory chooses same fd.
12782         * lib/at-func.c (AT_FUNC_NAME): Likewise.
12783
12784         mkdir, mkdirat: fix cygwin 1.5.x bug
12785         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
12786         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
12787         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
12788         bug.
12789         (gl_PREREQ_MKDIR): Delete unused macro.
12790         * modules/mkdir (Files): Track file rename.
12791         (configure.ac): Update macro name.
12792         * modules/openat (Depends-on): Add mkdir.
12793         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
12794
12795         mkdir, mkdirat: add tests
12796         * modules/mkdir-tests: New test.
12797         * tests/test-mkdir.h: New file.
12798         * tests/test-mkdir.c: Likewise.
12799         * tests/test-mkdirat.c: Likewise.
12800         * modules/openat-tests (Files): Add new files.
12801         (Makefile.am): Run new test.
12802
12803 2009-10-06  Eric Blake  <ebb9@byu.net>
12804
12805         doc: tweak *at function documentation
12806         * doc/posix-functions/faccessat.texi (faccessat): Mention
12807         known issue with replacement.
12808         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
12809         * doc/posix-functions/linkat.texi (linkat): Likewise.
12810         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
12811         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
12812         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12813         * doc/posix-functions/renameat.texi (renameat): Likewise.
12814         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12815
12816         openat: fix GNU/Hurd bug in unlinkat
12817         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
12818         broken.
12819         * doc/posix-functions/unlink.texi (unlink): Document this.
12820         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
12821
12822         fdopendir: fix GNU/Hurd bug
12823         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
12824         allowing non-directory fds.
12825         * lib/fdopendir.c (rpl_fdopendir): Work around it.
12826         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
12827         * modules/dirent (Makefile.am): Substitute it.
12828         * lib/dirent.in.h (fdopendir): Declare replacement.
12829         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
12830         * tests/test-fdopendir.c (main): Test something other than
12831         /dev/null, since on Hurd that behaves like a directory.
12832
12833         test-symlink: port to GNU/Hurd
12834         * tests/test-symlink.h (test_symlink): Relax expected errno.
12835
12836         doc: tweak more cygwin information
12837         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
12838         now compatible with glibc.
12839         * doc/posix-functions/getopt.texi (getopt): Likewise.
12840
12841         getopt-gnu: add another test
12842         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
12843         guarantee behavior relied on by m4.
12844         * tests/test-getopt.c (main): Use it.
12845         * modules/getopt-posix-tests (Depends-on): Add setenv.
12846         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
12847
12848         getopt: fix compilation on darwin
12849         * lib/getopt.in.h (includes): Leave breadcrumbs during system
12850         include.
12851         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
12852         Reported by Ludovic Courtès.
12853
12854 2009-10-06  Bruno Haible  <bruno@clisp.org>
12855
12856         * modules/size_max (Description): Discourage its use.
12857         Reported by Simon Josefsson.
12858
12859 2009-10-06  Jim Meyering  <meyering@redhat.com>
12860
12861         linkat: avoid compilation failure
12862         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
12863
12864 2009-10-05  Eric Blake  <ebb9@byu.net>
12865
12866         linkat: support Linux 2.6.17
12867         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
12868         linkat on Linux, but allow cache variable override.
12869         * lib/linkat.c (rpl_linkat): Define override.
12870         * modules/linkat (Depends-on): Add symlinkat.
12871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
12872         * modules/unistd (Makefile.am): Substitute it.
12873         * lib/unistd.in.h (linkat): Declare replacement.
12874         Reported by Pádraig Brady.
12875
12876         quotearg: port test to systems with C.UTF-8 locale
12877         * tests/test-quotearg.c (struct result_strings): Add another
12878         member, differentiating between C.ASCII and C.UTF-8 handling.
12879         (compare_strings): Add parameter.
12880         (main): Adjust all callers.
12881
12882         getopt: avoid clash with FreeBSD _getopt_internal
12883         * lib/getopt.in.h (_getopt_internal): Override the name.
12884         * lib/getopt_int.h (includes): Pick up any overrides.
12885         Reported by Reuben Thomas.
12886
12887         hash: allow C89 compilation
12888         * lib/hash.c (check_tuning): Move declaration before statement.
12889         Reported by Reuben Thomas.
12890
12891 2009-10-05  Karl Berry  <karl@gnu.org>
12892
12893         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
12894
12895 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
12896             Bruno Haible  <bruno@clisp.org>
12897
12898         * lib/uname.c (uname): Use a table-driven algorithm to compute
12899         Windows NT versions.
12900
12901 2009-10-04  Bruno Haible  <bruno@clisp.org>
12902
12903         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
12904         program_invocation_short_name.
12905         * modules/progname (configure.ac): Test for presence of
12906         program_invocation_short_name.
12907         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
12908
12909 2009-10-04  Bruno Haible  <bruno@clisp.org>
12910
12911         * lib/progname.c (set_program_name): Fix comment.
12912         Reported by Jim Meyering.
12913
12914 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12915             Bruno Haible  <bruno@clisp.org>
12916
12917         * lib/uname.c: Include <string.h>.
12918         (uname): Do only one call to GetVersionEx in the common case.
12919
12920 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
12921             Bruno Haible  <bruno@clisp.org>
12922
12923         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
12924         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
12925         (uname): Add support for Windows CE and various non-x86 CPU types.
12926
12927 2009-10-03  Bruno Haible  <bruno@clisp.org>
12928
12929         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
12930         invocation to tests/configure.ac.
12931         Reported by Ian Beckwith <ianb@erislabs.net>.
12932
12933 2009-10-02  Eric Blake  <ebb9@byu.net>
12934
12935         fchdir: avoid compiler warning
12936         * lib/fchdir.c (canonicalize_file_name)
12937         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
12938
12939         test-open: support mingw errno values
12940         * tests/test-open.h (test_open): Relax test.
12941         * tests/test-fopen.h (test_fopen): Likewise.
12942         * tests/test-openat-safer.c (main): Likewise.
12943
12944         open: fix opening directory on mingw
12945         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
12946
12947         test-open: on GNU/Hurd, /dev/null is a directory
12948         * tests/test-fopen.h (main): Rename...
12949         (test_fopen): ...to this.  Use a guaranteed non-directory when
12950         confirming open behavior on trailing slash.
12951         * tests/test-openat-safer.c (main): Likewise.
12952         * tests/test-open.h (main): Likewise....
12953         (test_open): ...to this.
12954         * tests/test-fopen.c (main): Adjust caller.
12955         * tests/test-fopen-safer.c (main): Likewise.
12956         * tests/test-open.c (main): Likewise.
12957         * tests/test-fcntl-safer.c (main): Likewise.
12958         Reported by Samuel Thibault.
12959
12960         rename, fchdir: don't ignore chdir failure
12961         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
12962         * lib/rename.c (rpl_rename) [W32]: Likewise.
12963         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
12964         an empty destination directory if source cannot be renamed,
12965         although there is still possibility for failure.
12966         * doc/posix-functions/rename.texi (rename): Document the race.
12967         Reported by Jim Meyering.
12968
12969         maint: cleanup whitespace in recent commits
12970         * lib/rename.c (rpl_rename): Remove tabs.
12971         * tests/test-link.h (test_link): Likewise.
12972         * lib/fchdir.c (get_name): Likewise.
12973         Reported by Jim Meyering.
12974
12975 2009-10-02  Ben Pfaff  <blp@gnu.org>
12976
12977         relocatable-prog-wrapper: Add missing dependency on
12978         double-slash-root.
12979         * modules/relocatable-prog-wrapper: Add dependency.
12980         Reported by Ian Beckwith <ianb@erislabs.net>.
12981
12982 2009-10-02  Eric Blake  <ebb9@byu.net>
12983
12984         renameat: fix Solaris bugs
12985         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
12986         needed fixing.
12987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
12988         * modules/stdio (Makefile.am): Substitute it.
12989         * lib/stdio.in.h (renameat): Declare replacement.
12990         * lib/renameat.c (rpl_renameat): Implement fix.
12991
12992         renameat: new module
12993         * modules/renameat: New file.
12994         * lib/renameat.c (renameat): Likewise.
12995         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
12996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
12997         * modules/stdio (Makefile.am): Substitute them.
12998         * lib/stdio.in.h (renameat): Declare it.
12999         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13000         * doc/posix-functions/renameat.texi (renameat): Likewise.
13001         * modules/renameat-tests: New test.
13002         * tests/test-renameat.c: Likewise.
13003
13004         rename: fix mingw bugs
13005         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13006         directory overwrite bugs.
13007
13008         rename: fix another cygwin 1.5 bug
13009         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13010         checks.
13011         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13012         unnecessary cygwin workarounds.  Also work around bug with moving
13013         full directory onto an empty one.
13014         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13015
13016         rename-dest-slash: merge into rename module
13017         * modules/rename-dest-slash (Status): Mark obsolete.
13018         (Depends-on): Add rename.
13019         (Files): Let rename do it all.
13020         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13021         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13022         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13023         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13024         * lib/rename.c (rpl_rename): Update comments.
13025
13026         rename: fix cygwin 1.5.x bugs
13027         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13028         * lib/rename.c (rpl_rename): Work around them.
13029         * modules/rename (Depends-on): Add same-inode.
13030
13031         rename: fix Solaris 10 bug
13032         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13033         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13034         was the only bug.
13035
13036         rename: fix Solaris 9 bug
13037         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13038         on non-directory.  Avoid calling exit.
13039         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13040         strdup.
13041         * modules/rename-tests (Depends-on): Drop lstat.
13042         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13043         (gl_PREREQ_RENAME): Delete unused macro.
13044
13045         rename-dest-slash: fix NetBSD bug
13046         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13047         links.
13048         * modules/rename-dest-slash (Depends-on): Add same-inode.
13049
13050         rename-tests: new test, exposes several platform bugs
13051         * modules/rename-tests: New file.
13052         * tests/test-rename.h: Likewise.
13053         * tests/test-rename.c: Likewise.
13054         * doc/posix-functions/rename.texi (rename): Improve documentation,
13055         including bugs that will eventually be fixed in gnulib.
13056
13057 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13058
13059         * lib/uname.c: Include <stdlib.h>
13060         (uname): Assume version info is available.
13061
13062 2009-10-02  Jim Meyering  <meyering@redhat.com>
13063
13064         gnu-web-doc-update: correct --help output
13065         * build-aux/gnu-web-doc-update: Make --help output relevant.
13066
13067         gnu-web-doc-update: add standard options
13068         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13069
13070         gnu-web-doc-update: New module.
13071         Use this script to automatically update the on-line web documentation
13072         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13073         * modules/gnu-web-doc-update: New file, from coreutils.
13074         * build-aux/gnu-web-doc-update: New script.
13075
13076 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13077
13078         link: LoadLibrary is not needed.
13079         * lib/link.c: Use GetModuleHandle.
13080
13081 2009-10-01  Eric Blake  <ebb9@byu.net>
13082
13083         getopt: bump serial number
13084         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13085         change.
13086
13087         tests: tighten link, rmdir, and remove tests
13088         * tests/test-link.h (includes): No need to use <config.h> here.
13089         Clean up if directory hard link was created, otherwise test for
13090         trailing '.'.
13091         * tests/test-linkat.c (main): Simplify.
13092         * tests/test-remove.c (main): Enhance test for trailing '.'.
13093         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13094
13095 2009-10-01  Jim Meyering  <meyering@redhat.com>
13096
13097         maint.mk: requiring "make major" was annoying, for a "minor" release.
13098         What is intended is "stable", to contrast with alpha and beta,
13099         so require "make stable", not "make major".
13100         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13101         (get_tool_versions): Likewise.
13102         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13103
13104 2009-09-30  Ben Pfaff  <blp@gnu.org>
13105
13106         Fix broken build of replacement for Windows tmpfile().
13107         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13108         flags argument added along with the 'mkostemp' module.
13109
13110 2009-09-28  Bruno Haible  <bruno@clisp.org>
13111
13112         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13113         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13114         to 'remove_elt'.
13115         (gl_list_remove): Update.
13116         * lib/gl_list.c (gl_list_remove): Update.
13117         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13118         to 'remove_elt'.
13119         (gl_oset_remove): Update.
13120         * lib/gl_list.c (gl_oset_remove): Update.
13121         Reported by Eric Blake.
13122
13123 2009-09-28  Eric Blake  <ebb9@byu.net>
13124
13125         doc: mention yet more cygwin 1.7 status
13126         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13127         cygwin.
13128         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13129         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13130
13131         argp: fix test failure
13132         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13133         that are not upper-case.  Pass correct range to tolower.
13134
13135 2009-09-27  Jim Meyering  <meyering@redhat.com>
13136
13137         test-yesno: work around sparc-dash here-document infelicity
13138         Without this change, the literal \177 byte in a here document
13139         would make dash 0.5.5.1-3 access uninitialized memory.
13140         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13141         Instead, use a marker, "@", and filter through tr to create the desired
13142         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13143
13144 2009-09-27  Bruno Haible  <bruno@clisp.org>
13145
13146         Disable untested support for new flavours of ACLs on AIX.
13147         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13148         progress.
13149         * lib/set-mode-acl.c (qset_acl): Likewise.
13150
13151 2008-12-07  Bruno Haible  <bruno@clisp.org>
13152
13153         Add support for new flavours of ACLs on AIX. (Untested.)
13154         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13155         (file_has_acl): Add support for newer AIX.
13156         * lib/set-mode-acl.c (qset_acl): Likewise.
13157         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13158         Rainer Tammer <tammer@tammer.net>.
13159
13160 2009-09-26  Eric Blake  <ebb9@byu.net>
13161
13162         argp: fix compilation of getopt
13163         * lib/getopt.in.h (includes): Use different guard than glibc.
13164         Reported by Sergey Poznyakoff.
13165
13166         doc: mention more cygwin 1.7 status
13167         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13168         bug.
13169         * doc/posix-functions/execl.texi (execl): Likewise.
13170         * doc/posix-functions/execle.texi (execle): Likewise.
13171         * doc/posix-functions/execlp.texi (execlp): Likewise.
13172         * doc/posix-functions/execv.texi (execv): Likewise.
13173         * doc/posix-functions/execve.texi (execve): Likewise.
13174         * doc/posix-functions/execvp.texi (execvp): Likewise.
13175         * doc/glibc-functions/canonicalize_file_name.texi
13176         (canonicalize_file_name): Cygwin 1.7 now provides this.
13177         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13178         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13179         on AT_SYMLINK_NOFOLLOW.
13180
13181 2009-09-24  Eric Blake  <ebb9@byu.net>
13182
13183         test-linkat: make test more robust
13184         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13185
13186         getopt: fix inclusion guards for cygwin
13187         * modules/getopt-posix (Depends-on): Add include-next.
13188         (Makefile.am): Substitute more items in replacement header.
13189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13190         <getopt.h>.
13191         * lib/getopt.in.h (includes): Use split inclusion guard, and
13192         prefer <getopt.h> over include <unistd.h> when one is present.
13193         (option): Also override name of 'struct option'.
13194
13195         same-inode: revert prior change; it is not yet ready
13196         * NEWS: Undo mention of this change.
13197         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13198         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13199         * lib/cycle-check.c (cycle_check): Likewise.
13200         * lib/same.c (same_name): Likewise.
13201         * lib/at-func2.c (at_func2): Likewise.
13202
13203 2009-09-23  Eric Blake  <ebb9@byu.net>
13204
13205         linkat: new module
13206         * modules/linkat: New file.
13207         * lib/at-func2.c (at_func2): Likewise.
13208         * lib/linkat.c (linkat): Likewise.
13209         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13210         * lib/openat-priv.h (at_func2): Add declaration.
13211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13212         * modules/unistd (Makefile.am): Substitute them.
13213         * lib/unistd.in.h (linkat): Declare it.
13214         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13215         * doc/posix-functions/linkat.texi (linkat): Likewise.
13216         * doc/posix-functions/link.texi (link): Tweak wording.
13217         * tests/test-link.c (main): Move guts...
13218         * tests/test-link.h (test_link): ...into new file.
13219         * modules/linkat-tests: New test.
13220         * tests/test-linkat.c: Likewise.
13221         * modules/link-tests (Files): Ship new file.
13222         (Depends-on): Add stdbool.
13223
13224         dirname: add library-safe mdir_name
13225         * lib/dirname.h (mdir_name): New prototype.
13226         * lib/dirname.c (dir_name): Move guts...
13227         (mdir_name): ...to new function that avoids xalloc_die.
13228
13229         fchdir: another mingw fix
13230         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13231         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13232         on mingw (where it has not yet been ported), and make it optional
13233         elsewhere.
13234         (_gl_register_fd): Use it.
13235
13236         same-inode: make SAME_INODE tri-state, to port to mingw
13237         * NEWS: Mention this change.
13238         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13239         st_ino always being 0.
13240         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13241         * lib/cycle-check.c (cycle_check): Likewise.
13242         * lib/same.c (same_name): Likewise.
13243
13244         lstat: avoid mingw compilation error
13245         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13247         lstat ourselves.
13248         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13249         was adequate.
13250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13251         the checks for lstat.
13252         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13253
13254         link: fix test failure on Solaris 9
13255         * lib/link.c (rpl_link): Don't assume link will catch bogus
13256         trailing slash on source.
13257
13258         test-symlinkat: enhance test
13259         * tests/test-readlink.c (main): Move guts...
13260         * tests/test-readlink.h (test_readlink): ...into new file.
13261         * tests/test-symlink.c (main): Move guts...
13262         * tests/test-symlink.h (test_symlink): ...into new file.
13263         * tests/test-symlinkat.c (main): Use new files for further
13264         coverage.
13265         (do_symlink, do_readlink): New helper functions.
13266         * modules/symlink-tests (Files): Ship new file.
13267         (Depends-on): Add stdbool.
13268         * modules/readlink-tests (Files): Ship new file.
13269         (Depends-on): Add stdbool.
13270         * modules/symlinkat-tests (Files): Use new files.
13271
13272 2009-09-23  Eric Blake  <ebb9@byu.net>
13273
13274         readlink: document portability issue with symlink length
13275         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13276         systems have bogus st_size on symlinks, and mention the
13277         areadlink-with-size module.
13278         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13279         * doc/posix-functions/readlink.texi (readlink): Mention the
13280         areadlink module, and ERANGE failure.
13281         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13282         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13283
13284         readlink: fix Solaris 9 bug with trailing slash
13285         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13286         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13287         * doc/posix-functions/readlink.texi (readlink): Document this.
13288         * modules/readlink-tests: New test.
13289         * tests/test-readlink.c: Likewise.
13290
13291         readlink: fix cygwin 1.5.x bug with return type
13292         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13293         * lib/unistd.in.h (readlink): Use ssize_t.
13294         * lib/readlink.c (readlink): Likewise.
13295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13296         * modules/unistd (Makefile.am): Substitute it.
13297         * lib/unistd.in.h (readlink): Declare replacement.
13298         * doc/posix-functions/readlink.texi (readlink): Document this.
13299
13300         symlink: use throughout gnulib
13301         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13302         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13303         symlink is not used.
13304         * modules/symlinkat (Depends-on): Add symlink.
13305         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13306         * modules/canonicalize-tests (Depends-on): Likewise.
13307         * modules/lstat-tests (Depends-on): Likewise.
13308         * modules/openat-tests (Depends-on): Likewise.
13309         * modules/remove-tests (Depends-on): Likewise.
13310         * modules/rmdir-tests (Depends-on): Likewise.
13311         * modules/unlink-tests (Depends-on): Likewise.
13312         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13313         * tests/test-canonicalize.c (symlink): Likewise.
13314         * tests/test-fstatat.c (symlink): Likewise.
13315         * tests/test-lstat.c (symlink): Likewise.
13316         * tests/test-remove.c (symlink): Likewise.
13317         * tests/test-rmdir.c (symlink): Likewise.
13318         * tests/test-unlink.c (symlink): Likewise.
13319         * tests/test-unlinkat.c (symlink): Likewise.
13320
13321         symlink: new module, for Solaris 9 bug
13322         * modules/symlink: New file.
13323         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13324         * lib/symlink.c: Likewise.
13325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13326         * modules/unistd (Makefile.am): Substitute them.
13327         * lib/unistd.in.h (symlink): Declare replacement.
13328         * MODULES.html.sh (File system functions): Mention it.
13329         * doc/posix-functions/symlink.texi (symlink): Likewise.
13330         * modules/symlink-tests: New test.
13331         * tests/test-symlink.c: Likewise.
13332
13333 2009-09-23  Bruno Haible  <bruno@clisp.org>
13334
13335         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13336         when needed.
13337         Test case: gnulib-tool --import --with-tests atexit inttypes.
13338         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13339
13340 2009-09-23  Bruno Haible  <bruno@clisp.org>
13341
13342         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13343         subcommand, not in a subshell.
13344
13345 2009-09-22  Eric Blake  <ebb9@byu.net>
13346
13347         unistd: sort replacement declarations
13348         * lib/unistd.in.h: Sort declarations.
13349
13350         open, openat: minor optimization
13351         * lib/open.c (open): If open succeeded, len is non-zero.
13352         * lib/openat.c (rpl_openat): Likewise.
13353
13354         link-follow: ensure correct result
13355         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13356         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13357         distinguish between possible failures.
13358
13359 2009-09-21  Eric Blake  <ebb9@byu.net>
13360
13361         fts: avoid compiler warning
13362         * lib/fts.c (dirent_inode_sort_may_be_useful)
13363         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13364
13365 2009-09-19  Bruno Haible  <bruno@clisp.org>
13366
13367         * lib/progreloc.c (canonicalize_file_name): New declaration.
13368
13369 2009-09-19  Eric Blake  <ebb9@byu.net>
13370
13371         link: fix quoting
13372         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13373
13374         openat: fix openat bugs on Solaris 9
13375         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13376         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13377         * modules/openat (Depends-on): Add open.
13378         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13379         * modules/fcntl-h (Makefile.am): Substitute it.
13380         * lib/fcntl.in.h (openat): Declare replacement.
13381         * doc/posix-functions/openat.texi (openat): Document this.
13382
13383         openat: move fstatat and unlinkat into correct files
13384         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13385         compiled.
13386         * lib/openat.c (fstatat, unlinkat): Move...
13387         * lib/fstatat.c (fstatat): ...into correct files.
13388         * lib/unlinkat.c (unlinkat): Likewise.
13389
13390         openat: fix unlinkat bugs on Solaris 9
13391         * lib/unlinkat.c (unlinkat): New file.
13392         * modules/openat (Depends-on): Add unlink.
13393         (Files): Distribute it.
13394         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13395         trailing slash behavior is broken.
13396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13397         * modules/unistd (Makefile.am): Substitute it.
13398         * lib/unistd.in.h (unlinkat): Declare replacement.
13399         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13400
13401         openat: fix fstatat bugs on Solaris 9
13402         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13403         stat.
13404         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13405
13406         test-unlinkat: enhance test, to expose Solaris 9 bug
13407         * tests/test-unlink.c (main): Factor guts...
13408         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13409         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13410         * tests/test-rmdir.c (main): Adjust caller.
13411         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13412         (unlinker): New helper function.
13413         (rmdirat): Enhance check.
13414         * modules/rmdir-tests (Depends-on): Add stdbool.
13415         * modules/unlink-tests (Depends-on): Likewise.
13416         (Files): Add test-unlink.h.
13417         * modules/openat-tests (Files): Likewise.
13418         (Depends-on): Add unlinkdir.
13419
13420         test-fstatat: new test, to expose Solaris 9 bugs
13421         * tests/test-stat.c (main): Factor guts...
13422         * tests/test-stat.h (test_stat_func): ...into new file.
13423         * tests/test-lstat.c (main): Factor guts...
13424         * tests/test-lstat.h (test_lstat_func): ...into new file.
13425         * tests/test-fstatat.c: New file.
13426         * modules/stat-tests (Files): Add test-stat.h.
13427         * modules/lstat-tests (Files): Add test-lstat.h.
13428         (Depends-on): Add stdbool.
13429         * modules/openat-tests (Depends-on): Add pathmax.
13430         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13431         (Makefile.am): Run new test.
13432
13433         remove: new module, for mingw and Solaris 9 bugs
13434         * modules/remove: New file.
13435         * lib/remove.c: Likewise.
13436         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13438         * modules/stdio (Makefile.am): Use them.
13439         * lib/stdio.in.h (remove): Declare replacement.
13440         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13441         * doc/posix-functions/remove.texi (remove): Likewise.
13442         * modules/remove-tests: New test.
13443         * tests/test-remove.c: Likewise.
13444
13445         unlink: new module, for Solaris 9 bug
13446         * modules/unlink: New file.
13447         * lib/unlink.c: Likewise.
13448         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13450         * modules/unistd (Makefile.am): Use them.
13451         * lib/unistd.in.h (stat): Declare replacement.
13452         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13453         * doc/posix-functions/unlink.texi (unlink): Likewise.
13454         * modules/unlink-tests: New test.
13455         * tests/test-unlink.c: Likewise.
13456
13457         lstat: fix Solaris 9 bug
13458         * lib/lstat.c (lstat): Also check for trailing slash on
13459         non-symlink, non-directories.  Use stat module to simplify logic.
13460         * doc/posix-functions/lstat.texi (lstat): Document it.
13461         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13462         (configure.ac): Check for symlink.
13463         * tests/test-lstat.c (main): Add more tests.
13464
13465         stat: add as dependency to other modules
13466         * modules/chown (Depends-on): Add stat.
13467         * modules/euidaccess (Depends-on): Likewise.
13468         * modules/fchdir (Depends-on): Likewise.
13469         * modules/isdir (Depends-on): Likewise.
13470         * modules/link (Depends-on): Likewise.
13471         * modules/lstat (Depends-on): Likewise.
13472         * modules/mkdir-p (Depends-on): Likewise.
13473         * modules/modechange (Depends-on): Likewise.
13474         * modules/open (Depends-on): Likewise.
13475         * modules/readlink (Depends-on): Likewise.
13476         * modules/same (Depends-on): Likewise.
13477
13478         stat: fix Solaris 9 bug
13479         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13480         slash.
13481         * lib/stat.c (rpl_stat): Work around it.
13482         * doc/posix-functions/stat.texi (stat): Update documentation.
13483
13484         stat: new module, for mingw bug
13485         * modules/stat: New file.
13486         * lib/stat.c: Likewise.
13487         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13489         * modules/sys_stat (Makefile.am): Use them.
13490         * lib/sys_stat.in.h (stat): Declare replacement.
13491         * lib/openat.c (fstatat): Deal with lstat and stat being function
13492         macros.
13493         * modules/openat (Depends-on): Add inline.
13494         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13495         * doc/posix-functions/stat.texi (stat): Likewise.
13496         * modules/stat-tests: New test.
13497         * tests/test-stat.c: Likewise.
13498
13499 2009-09-19  Jim Meyering  <meyering@redhat.com>
13500
13501         syntax-check: detect unnecessary inclusion of canonicalize.h
13502         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13503
13504 2009-09-19  Eric Blake  <ebb9@byu.net>
13505
13506         canonicalize-lgpl: adjust clients to use correct header
13507         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13508         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13509         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13510         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13511         * lib/progreloc.c (includes): Likewise.
13512
13513 2009-09-19  Jim Meyering  <meyering@redhat.com>
13514
13515         test-posixtm.c: correct a comment
13516         * tests/test-posixtm.c: Correct first-line comment.
13517         Spotted by Eric Blake.
13518
13519 2009-09-16  Jim Meyering  <meyering@redhat.com>
13520
13521         posixtm-tests: make T const-correct; add a test case
13522         * tests/test-posixtm.c (T): Declare const.
13523         Add a test for -(2^31+1).
13524         Remove useless can-succeed-only-in-2002 test.
13525
13526         posixtm-tests: adjust the sole failing test
13527         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
13528         expected output matches what mktime now produces.  Cross-checked via
13529         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
13530
13531         posixtm: move #ifdef'd tests into a new module
13532         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
13533         * tests/test-posixtm.c: ... this new file.
13534         * modules/posixtm-tests: New module.
13535
13536 2009-09-19  Eric Blake  <ebb9@byu.net>
13537
13538         openat: simplify use of at-func.c
13539         * lib/at-func.c (includes): Include prerequisites here, to
13540         simplify requirements on client files.
13541         * lib/openat-priv.h: Add double-inclusion guard.
13542         * lib/faccessat.c (includes): Simplify.
13543         * lib/fchmodat.c (includes): Likewise.
13544         * lib/fchownat.c (includes): Likewise.
13545         * lib/mkdirat.c (includes): Likewise.
13546         * lib/mkfifoat.c (includes): Likewise.
13547         * lib/symlinkat.c (includes): Likewise.
13548
13549         openat: allow return of fd 0
13550         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
13551         * modules/save-cwd (Depends-on): Replace fcntl-safer with
13552         unistd-safer.
13553         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
13554         <fcntl.h>; this module does not leak fds.
13555         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
13556         must be allowed to return 0, leaving openat_safer to add the
13557         safety.
13558         (openat_permissive): Avoid writing to just-opened fd 2 if
13559         restoring the current directory fails.
13560         * lib/openat-die.c (openat_restore_fail): Add comment.
13561         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
13562         (save_cwd): Guarantee safe fd, but without use of open_safer.
13563         * tests/test-openat.c: New test.
13564         * modules/openat-tests (Files, Makefile.am): Distribute and build
13565         new file.
13566
13567         relocatable-prog-wrapper: fix build
13568         * modules/relocatable-prog-wrapper (Files): Update name of
13569         canonicalize m4 file, broken on 2009-09-17.
13570         Reported by emad hajjar <aleppos@hotmail.com>.
13571
13572 2009-09-19  Bruno Haible  <bruno@clisp.org>
13573
13574         * lib/safe-alloc.h: Use the standard header with GPL copyright.
13575         * lib/safe-alloc.c: Likewise.
13576         Reported by Ian Beckwith <ianb@erislabs.net>.
13577
13578 2009-09-18  Bruno Haible  <bruno@clisp.org>
13579
13580         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
13581         Reported by <erobles@sensacd.com.mx>.
13582
13583 2009-09-17  Eric Blake  <ebb9@byu.net>
13584
13585         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
13586         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
13587         slashes when checking if last component is missing.
13588         * tests/test-canonicalize.c (main): Test this.
13589
13590         canonicalize, canonicalize-lgpl: honor // if distinct from /
13591         * modules/canonicalize (Files): Add double-slash-root.m4.
13592         * modules/canonicalize-lgpl (Files): Likewise.
13593         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13594         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
13595         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
13596         fallback definition.
13597         (canonicalize_filename_mode): Use it to protect //.
13598         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
13599         (__realpath): Likewise.
13600         * tests/test-canonicalize.c (main): Test this.
13601         * tests/test-canonicalize-lgpl.c (main): Likewise.
13602         * modules/canonicalize-tests (Depends-on): Add same-inode.
13603         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13604
13605         canonicalize-lgpl: fix glibc bug with trailing slash
13606         * m4/canonicalize-lgpl.m4: Move contents...
13607         * m4/canonicalize.m4: ...here.
13608         (gl_CANONICALIZE_LGPL): Factor realpath check...
13609         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
13610         glibc 2.3.5 bug, fixed 2005-04-27.
13611         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
13612         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
13613         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
13614         * modules/canonicalize-lgpl (Files): Manage file rename.
13615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13616         * modules/stdlib (Makefile.am): Substitute witness.
13617         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
13618         is needed.
13619         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
13620         replacement is required.
13621         * lib/canonicalize.c (canonicalize_file_name): Likewise.
13622         * doc/glibc-functions/canonicalize_file_name.texi
13623         (canonicalize_file_name): Document this.
13624         * doc/posix-functions/realpath.texi (realpath): Likewise.
13625
13626         canonicalize-lgpl: reject non-directory with trailing slash
13627         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
13628         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
13629         catches failures in glibc 2.3.5.
13630         * tests/test-canonicalize.c (main): Likewise.
13631
13632         canonicalize-lgpl: use native realpath if it works
13633         * lib/canonicalize-lgpl.c (realpath): Guard with
13634         FUNC_REALPATH_WORKS.
13635         * lib/stdlib.in.h (realpath): Make declaration optional based on
13636         HAVE_REALPATH.
13637         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
13638         native realpath works.
13639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
13640         * modules/stdlib (Makefile.am): Substitute witness.
13641
13642         canonicalize, canonicalize-lgpl: use <stdlib.h>
13643         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
13644         (Include): Mention <stdlib.h>.
13645         (configure.ac): Mention functions we provide.
13646         * modules/canonicalize (configure.ac): Likewise.
13647         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
13648         realpath if canonicalize_file_name is missing.
13649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
13650         * modules/stdlib (Makefile.am): Substitute witnesses.
13651         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
13652         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
13653         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
13654         * NEWS: Document this.
13655         * doc/glibc-functions/canonicalize_file_name.texi
13656         (canonicalize_file_name): Likewise.
13657         * doc/posix-functions/realpath.texi (realpath): Likewise.
13658         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
13659
13660         test-canonicalize: consolidate into single C program
13661         * tests/test-canonicalize.sh: Delete; move setup into...
13662         * tests/test-canonicalize.c (main): ...the program, making it
13663         easier to run in debugger.  Add some tests.
13664         * modules/canonicalize-tests (Files): Remove unused file.
13665         (Depends-on): Add progname.
13666         (configure.ac, Makefile.am): Simplify.
13667
13668         test-canonicalize-lgpl: consolidate into single C program
13669         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
13670         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
13671         easier to run in debugger.  Add some tests.
13672         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
13673         (configure.ac, Makefile.am): Simplify.
13674
13675         canonicalize: avoid resolvepath
13676         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
13677         unnecessary checks.
13678         * lib/canonicalize.c (includes): Simplify.
13679         (canonicalize_file_name): Drop resolvepath implementation.
13680         * modules/canonicalize (Depends-on): Drop filenamecat.
13681
13682         canonicalize: don't lose errno
13683         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
13684         over calls to free.
13685
13686         canonicalize: simplify errno handling
13687         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
13688         assignment.
13689
13690         canonicalize, canonicalize-lgpl: update module dependencies
13691         * modules/canonicalize (Depends-on): Add extensions, lstat,
13692         pathmax, stdlib.
13693         (Files): Drop pathmax.h.
13694         (configure.ac): Adjust macro name.
13695         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
13696         lstat, stdlib, sys_stat.
13697         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
13698         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
13699         extensions.
13700         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
13701         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
13702         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
13703         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
13704         declaration, if available.
13705         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
13706         we can rely on the readlink module.
13707         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
13708         (includes): Use <unistd.h> unconditionally.
13709
13710 2009-09-17  Eric Blake  <ebb9@byu.net>
13711
13712         maint: make Include sections of modules consistent
13713         * modules/alloca: Use only header name; no need to list #include.
13714         * modules/alloca-opt: Likewise.
13715         * modules/arpa_inet: Likewise.
13716         * modules/canon-host: Likewise.
13717         * modules/configmake: Likewise.
13718         * modules/dirent: Likewise.
13719         * modules/eealloc: Likewise.
13720         * modules/environ: Likewise.
13721         * modules/fchdir: Likewise.
13722         * modules/fcntl: Likewise.
13723         * modules/fcntl-h: Likewise.
13724         * modules/gethrxtime: Likewise.
13725         * modules/gettime: Likewise.
13726         * modules/ignore-value: Likewise.
13727         * modules/inet_ntop: Likewise.
13728         * modules/inet_pton: Likewise.
13729         * modules/inttypes: Likewise.
13730         * modules/isnand-nolibm: Likewise.
13731         * modules/isnanf-nolibm: Likewise.
13732         * modules/mbchar: Likewise.
13733         * modules/mbfile: Likewise.
13734         * modules/mbiter: Likewise.
13735         * modules/mbuiter: Likewise.
13736         * modules/netdb: Likewise.
13737         * modules/netinet_in: Likewise.
13738         * modules/nproc: Likewise.
13739         * modules/pagealign_alloc: Likewise.
13740         * modules/poll: Likewise.
13741         * modules/printf-frexp: Likewise.
13742         * modules/pthread: Likewise.
13743         * modules/putenv: Likewise.
13744         * modules/random_r: Likewise.
13745         * modules/relocatable-prog: Likewise.
13746         * modules/search: Likewise.
13747         * modules/select: Likewise.
13748         * modules/selinux-h: Likewise.
13749         * modules/settime: Likewise.
13750         * modules/signal: Likewise.
13751         * modules/size_max: Likewise.
13752         * modules/socklen: Likewise.
13753         * modules/ssize_t: Likewise.
13754         * modules/stdarg: Likewise.
13755         * modules/stdbool: Likewise.
13756         * modules/stddef: Likewise.
13757         * modules/stdint: Likewise.
13758         * modules/stdio: Likewise.
13759         * modules/stdlib: Likewise.
13760         * modules/string: Likewise.
13761         * modules/strings: Likewise.
13762         * modules/sys_file: Likewise.
13763         * modules/sys_ioctl: Likewise.
13764         * modules/sys_select: Likewise.
13765         * modules/sys_socket: Likewise.
13766         * modules/sys_stat: Likewise.
13767         * modules/sys_time: Likewise.
13768         * modules/sys_times: Likewise.
13769         * modules/sys_utsname: Likewise.
13770         * modules/sys_wait: Likewise.
13771         * modules/sysexits: Likewise.
13772         * modules/time: Likewise.
13773         * modules/times: Likewise.
13774         * modules/tmpfile: Likewise.
13775         * modules/trim: Likewise.
13776         * modules/unistd: Likewise.
13777         * modules/wchar: Likewise.
13778         * modules/wctype: Likewise.
13779
13780 2009-09-17  Bruno Haible  <bruno@clisp.org>
13781
13782         Make getdate.y compile on QNX and NetBSD 5 / i386.
13783         * m4/getdate.m4 (gl_GETDATE): Conditionally define
13784         TIME_T_FITS_IN_LONG_INT.
13785         * lib/getdate.y (long_time_t): New type.
13786         (relative_time): Change type of 'seconds' field to long_time_t.
13787         (get_date): Update types of local variables. Check against overflow
13788         during conversion from long_time_t to time_t.
13789         Reported by Matt Kraai <kraai@ftbfs.org>
13790         and Hasso Tepper <hasso@netbsd.org>.
13791
13792 2009-09-17  Bruno Haible  <bruno@clisp.org>
13793
13794         * modules/COPYING: Update copyright years.
13795         * modules/README: Likeiwse.
13796         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
13797         Reported by Ian Beckwith <ianb@erislabs.net>.
13798
13799 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13800
13801         * users.txt: Update references for gnuit package.
13802
13803 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
13804
13805         * m4/getdelim.m4: Fix typo in copyright line.
13806
13807 2009-09-17  Bruno Haible  <bruno@clisp.org>
13808
13809         * lib/atoll.c: Use the standard header with GPL copyright.
13810         * lib/argz.in.h: Likewise.
13811         * lib/glob.c: Likewise.
13812         * lib/glob-libc.h: Likewise.
13813         * lib/random_r.c: Likewise.
13814         * lib/siglist.h: Likewise.
13815         * lib/strsignal.c: Likewise.
13816         Reported by Ian Beckwith <ianb@erislabs.net>.
13817
13818 2009-09-17  Eric Blake  <ebb9@byu.net>
13819
13820         rmdir: ensure correct dependency order
13821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
13822
13823 2009-09-17  Bruno Haible  <bruno@clisp.org>
13824
13825         Disable assertion that fails on NetBSD 5 / i386.
13826         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
13827         Reported by Sam Steingold <sds@gnu.org>
13828         and Hasso Tepper <hasso@netbsd.org>.
13829
13830 2009-09-16  Eric Blake  <ebb9@byu.net>
13831
13832         unlinkdir: port to mingw
13833         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
13834         on which no one can unlink a directory.
13835
13836         stdlib: sort witness names
13837         * modules/stdlib (Makefile.am): Sort replacements.
13838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
13839         * lib/stdlib.in.h: Likewise.
13840
13841         parse-duration-tests: avoid link failure
13842         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
13843         LIBINTL.
13844         Reported by Tom G. Christensen.
13845
13846         openat-tests: ensure unlinkat behaves like rmdir
13847         * tests/test-rmdir.c (main): Factor guts...
13848         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
13849         * modules/rmdir-tests (Files): Ship new file.
13850         * modules/openat-tests: New test.
13851         * tests/test-unlinkat.c: Likewise.
13852
13853         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
13854         * modules/rmdir-errno (Status, Notice): Now obsolete.
13855
13856         rmdir: work around cygwin 1.5.x and mingw bugs
13857         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
13858         * lib/rmdir.c (rmdir): Work around it.
13859         * modules/rmdir (Status, Notice): No longer obsolete.
13860         (Files): Add dos.m4.
13861         (Depends-on): Add unistd.
13862         (configure.ac): Set witnesses.
13863         (License): Relax to LGPLv2+.
13864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
13865         * modules/unistd (Makefile.am): Substitute witnesses.
13866         * lib/unistd.in.h (rmdir): Declare replacement.
13867         * doc/posix-functions/rmdir.texi (rmdir): Document this.
13868         * modules/rmdir-tests: New tests.
13869         * tests/test-rmdir.c: Likewise.
13870
13871 2009-09-15  Eric Blake  <ebb9@byu.net>
13872
13873         fchdir: improve use of replacement functions
13874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
13875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
13876         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
13877         REPLACE_CLOSEDIR.
13878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
13879         * modules/sys_stat (Makefile.am): Substitute correct witness.
13880         * modules/dirent (Makefile.am): Likewise.
13881         * modules/unistd (Makefile.am): Likewise.
13882         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
13883         * lib/unistd.in.h (dup): Likewise.
13884         * lib/sys_stat.in.h (fstat): Likewise.
13885
13886         maint: ignore gnulib-tool temp files
13887         * .gitignore: Ignore files created during gnulib-tool --test.
13888
13889 2009-09-13  Jim Meyering  <meyering@redhat.com>
13890
13891         posixtm: don't reject a time that specify "60" as the number of seconds
13892         * lib/posixtm.c (posixtime): The code to reject invalid dates
13893         would also reject a time specified with the .60 suffix.
13894         But POSIX allows that, in order to accommodate leap seconds.
13895         So don't reject it.
13896         (main): Adjust tests accordingly.
13897         * modules/posixtm (Depends-on): Add stpcpy.
13898
13899 2009-09-11  Jim Meyering  <meyering@redhat.com>
13900
13901         announce-gen: include [$release_type] in emitted Subject:
13902         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
13903         e.g., [stable] in the emitted Subject: line.
13904
13905 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13906
13907         Remove obsolete macros from several modules.
13908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
13909         obsolete Autoconf macros with their modern counterparts.
13910         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
13911         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
13912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
13913         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
13914         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
13915         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13917         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13918         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13919         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
13920         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13921         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13922         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
13923         * m4/sockets.m4 (gl_SOCKETS): Likewise.
13924         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
13925         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
13926         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
13927         * m4/time_r.m4 (gl_TIME_R): Likewise.
13928         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13929         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
13930         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
13931
13932         Fix copyright header in build-aux scripts.
13933         * build-aux/git-version-gen: Fix copyright header to match GPLv3
13934         recommendation.
13935         * build-aux/ncftpput-ftp: Likewise.
13936         * build-aux/update-copyright: Likewise.
13937
13938 2009-09-09  Eric Blake  <ebb9@byu.net>
13939
13940         test-link: allow Linux choice of errno
13941         * tests/test-link.c (main): Relax test for alternate error.
13942
13943         strndup: fix improper m4 caching
13944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
13945         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
13946         (gl_PREREQ_STRNDUP): Delete.
13947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
13948         * modules/string (Makefile.am): Substitute it.
13949         * lib/string.in.h (strndup): Modernize prototype.
13950
13951         getcwd: port to mingw
13952         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
13953         different from the POSIX assumptions made throughout the getcwd
13954         module; fortunately, the mingw getcwd does not need replacement.
13955         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
13956         * modules/getcwd-tests: New test.
13957         * tests/test-getcwd.c: Likewise.
13958
13959         link: fix platform bugs
13960         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
13961         * lib/link.c (link): Work around them.  Fix related mingw bug.
13962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
13963         * modules/unistd (Makefile.am): Substitute it.
13964         * lib/unistd.in.h (link): Declare replacement.
13965         * doc/posix-functions/link.texi (link): Document this.
13966         * modules/link (Depends-on): Add strdup-posix, sys_stat.
13967
13968         test-link: consolidate into single C program, test more cases
13969         * tests/test-link.sh: Delete.
13970         * tests/test-link.c: Test more error conditions.  Exposes bugs on
13971         at least Cygwin and Solaris.
13972         * modules/link-tests (Files): Remove unused file.
13973         (Depends-on): Add errno, sys_stat.
13974         (Makefile.am): Simplify.
13975
13976 2009-09-08  Bruno Haible  <bruno@clisp.org>
13977
13978         Work around towlower, towupper bug on mingw.
13979         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
13980         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
13981         * doc/posix-functions/towlower.texi: Mention the mingw bug.
13982         * doc/posix-functions/towupper.texi: Likewise.
13983         Reported by Eric Blake.
13984
13985 2009-09-08  Jim Meyering  <meyering@redhat.com>
13986
13987         build: don't try to run autoheader if we don't use it
13988         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
13989         is not used in configure.ac.
13990
13991 2009-09-08  Eric Blake  <ebb9@byu.net>
13992
13993         euidaccess: fix compilation error
13994         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
13995
13996         rawmemchr: relax license
13997         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
13998         okay.
13999         Reported by Jim Meyering.
14000
14001         mkfifoat: new module
14002         * modules/mkfifoat: New file.
14003         * lib/mkfifoat.c: Likewise.
14004         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14005         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14006         * modules/sys_stat (Makefile.am): Use them.
14007         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14008         * MODULES.html.sh (File system functions): Mention module.
14009         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14010         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14011         * modules/mkfifoat-tests: New test.
14012         * tests/test-mkfifoat.c: Likewise.
14013
14014         strchrnul: relax license
14015         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14016         okay.
14017         Reported by Jim Meyering.
14018
14019 2009-09-08  Eric Blake  <ebb9@byu.net>
14020
14021         fstatat: fix compilation on Solaris
14022         * lib/fstatat.c (includes): Add fcntl.h.
14023         Reported by Pádraig Brady.
14024
14025 2009-09-07  Eric Blake  <ebb9@byu.net>
14026
14027         rename: modernize replacement
14028         * modules/rename (Depends-on): Add stdio.
14029         (configure.ac): Declare witness.
14030         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14031         stdio take care of replacement.
14032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14033         * modules/stdio (Makefile.am): Substitute them.
14034         * lib/stdio.in.h (rename): Declare replacement.
14035         * lib/rename.c (includes): Allow cross-compilation to non-windows
14036         machines.
14037         * doc/posix-functions/rename.texi (rename): Improve
14038         documentation.
14039
14040         stdio: sort witness names
14041         * modules/stdio (Makefile.am): Sort replacements.
14042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14043         * lib/stdio.in.h: Likewise.
14044
14045         getcwd: minor cleanups
14046         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14047         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14048
14049         openat: provide more convenience names
14050         * modules/faccessat (configure.ac): Add C witness.
14051         * lib/unistd.in.h (readlinkat): Fix typo.
14052         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14053         convenience wrappers.
14054         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14055         wrappers in syntax checks.
14056
14057 2009-09-06  Eric Blake  <ebb9@byu.net>
14058
14059         doc: fix comments in recent patches
14060         * lib/faccessat.c: Mention correct function.
14061         * lib/fchmodat.c: Likewise.
14062         * lib/fchownat.c: Likewise.
14063         * lib/symlinkat.c: Likewise.
14064         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14065         constants.
14066
14067         faccessat, symlinkat: continue cleanup of previous patch
14068         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14069         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14070         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14072         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14073         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14074         set.
14075
14076 2009-09-06  Bruno Haible  <bruno@clisp.org>
14077
14078         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14079         (fstatat): Declare if GNULIB_FSTATAT is set.
14080         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14081         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14082         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14083         * modules/fcntl-h (Files): Remove m4/openat.m4.
14084         * modules/sys_stat (Files): Remove m4/openat.m4.
14085         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14086         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14087         * modules/unistd (Files): Remove m4/openat.m4.
14088         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14089         GNULIB_OPENAT.
14090         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14091         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14093         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14094         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14095         gl_OPENAT_DEFAULTS.
14096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14097         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14098         Don't require gl_OPENAT_DEFAULTS.
14099         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14100         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14101         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14102         (gl_OPENAT_DEFAULTS): Remove macro.
14103
14104 2009-09-06  Bruno Haible  <bruno@clisp.org>
14105
14106         * modules/openat (configure.ac): Remove unneeded witness.
14107
14108 2009-09-06  Bruno Haible  <bruno@clisp.org>
14109
14110         Set errno to ENOSYS when a function is entirely unsupported.
14111         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14112         EOPNOTSUPP.
14113         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14114         * modules/chown (Depends-on): Remove errno.
14115
14116 2009-09-06  Bruno Haible  <bruno@clisp.org>
14117
14118         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14119
14120 2009-09-06  Bruno Haible  <bruno@clisp.org>
14121
14122         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14123
14124 2009-09-06  Ben Pfaff  <blp@gnu.org>
14125             Bruno Haible  <bruno@clisp.org>
14126
14127         Work around a glibc bug in strtok_r.
14128         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14129         Undefine if UNDEFINE_STRTOK_R is set.
14130         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14132         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14133         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14134         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14135         UNDEFINE_STRTOK_R.
14136         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14137
14138 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14139
14140         exclude: minor fix
14141         * lib/exclude.c: Include wctype.h
14142
14143 2009-09-06  Akim Demaille  <demaille@gostai.com>
14144
14145         bootstrap: improve error message
14146         * build-aux/bootstrap (find_tool): Upon failure, report the list
14147         of candidates.
14148         Honor the initial value of the envvar.
14149
14150 2009-09-05  Eric Blake  <ebb9@byu.net>
14151
14152         symlinkat: new module
14153         * modules/symlinkat: New file.
14154         * lib/symlinkat.c: Likewise.
14155         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14157         * modules/unistd (Makefile.am): Use them.
14158         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14159         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14160         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14161         * MODULES.html.sh (File system functions): Mention module.
14162         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14163         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14164         * modules/symlinkat-tests: New test.
14165         * tests/test-symlinkat.c: Likewise.
14166
14167         test-openat-safer: add more checks
14168         * tests/test-openat-safer.c (main): Check more code paths.
14169
14170 2009-09-05  Jim Meyering  <meyering@redhat.com>
14171
14172         syntax-check: detect unnecessary inclusion of openat.h
14173         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14174
14175 2009-09-05  Bruno Haible  <bruno@clisp.org>
14176
14177         Support towlower, towupper.
14178         * doc/posix-functions/towlower.texi: Mention module wctype.
14179         * doc/posix-functions/towupper.texi: Likewise.
14180         * lib/wctype.in.h (towlower, towupper): New functions.
14181         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14182         (ASSERT): New macro.
14183         (e): New variable.
14184         (main): Test also towlower, towupper. Test WEOF argument.
14185         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14186
14187 2009-09-05  Bruno Haible  <bruno@clisp.org>
14188
14189         Fix conversion behaviour when the input is invalid.
14190         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14191         mark occurring in first pass of indirect conversion.
14192         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14193         input.
14194         Found by clang's static analyzer.
14195
14196 2009-09-05  Bruno Haible  <bruno@clisp.org>
14197
14198         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14199         where direct conversion is possible.
14200
14201 2009-09-04  Eric Blake  <ebb9@byu.net>
14202
14203         openat: fail with ENOENT on empty name
14204         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14205         buffer.
14206
14207         link-follow: fix logic bug in prior patch
14208         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14209         reversed sense of yes and no in prior patch.  Avoid confusing
14210         compilation failure with desired semantics.
14211
14212         link-follow: accomodate mingw and cross-compilation
14213         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14214         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14215         cross-compilation results to -1, to make linkat easier to
14216         implement when cross-compiling.  Trivially support mingw.
14217         * modules/link-follow (configure.ac): Call new name.
14218         * NEWS: Mention this.
14219
14220 2009-09-03  Eric Blake  <ebb9@byu.net>
14221
14222         faccessat: compile replacement
14223         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14224         needed.
14225
14226         fts: fix compilation error
14227         * lib/fts.c (includes): Re-add "openat.h", for
14228         openat_needs_fchdir.
14229
14230         faccessat: new module
14231         * modules/faccessat: New file.
14232         * lib/faccessat.c: Likewise.
14233         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14235         * modules/unistd (Makefile.am): Use it.
14236         * lib/unistd.in.h (faccessat): Declare it.
14237         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14238         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14239         * MODULES.html.sh (File system functions): Mention it.
14240         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14241         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14242
14243         euidaccess: prefer POSIX over non-standard implementation
14244         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14245         * lib/euidaccess.c (euidaccess): Use it if available.
14246
14247         openat: make template easier to use
14248         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14249         AT_FUNC_F2 to be undefined.
14250         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14251         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14252         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14253         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14254         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14255         Likewise.
14256         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14257         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14258         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14259         Likewise.
14260
14261         openat: declare in POSIX headers
14262         * NEWS: Mention this.
14263         * modules/openat (configure.ac): Declare witnesses.
14264         (Depends-on): Add fcntl-h, sys_stat, unistd.
14265         (Include): Mention correct headers.
14266         * modules/fcntl-h (Depends-on): Add link-warning.
14267         (Files): Add openat.m4.
14268         (Makefile.am): Substitute witnesses.
14269         * modules/sys_stat (Files, Makefile.am): Likewise.
14270         * modules/unistd (Files, Makefile.am): Likewise.
14271         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14272         (gl_OPENAT_DEFAULTS): New macro.
14273         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14275         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14276         (SYS_STAT_H): Remove unused variable.
14277         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14278         * lib/fcntl--.h (includes): Remove unneeded header.
14279         * lib/openat-safer.c (includes): Likewise.
14280         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14281         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14282         appropriate headers.
14283         (__OPENAT_PREFIX): Delete.
14284         * lib/fcntl.in.h (openat): Provide declaration.
14285         (AT_FDCWD): Fix Solaris bug.
14286         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14287         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14288         * lib/fchmodat.c (includes):  Adjust to find declaration.
14289         * lib/fchownat.c (includes): Likewise.
14290         * lib/mkdirat.c (includes): Likewise.
14291         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14292         still visible.
14293
14294 2009-09-02  Eric Blake  <ebb9@byu.net>
14295
14296         errno: use consistently
14297         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14298         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14299         * lib/canonicalize.c (ELOOP): Likewise.
14300         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14301         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14302         * lib/lchown.c (EOPNOTSUPP): Likewise.
14303         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14304         * lib/savewd.c (ESTALE): Likewise.
14305         * lib/settime.c (ENOSYS): Likewise.
14306         * lib/utimens.c (ENOSYS): Likewise.
14307         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14308         * lib/chdir-safer.c (ELOOP): Likewise.
14309         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14310         * modules/c-stack (Depends-on): Add errno.
14311         * modules/canonicalize (Depends-on): Likewise.
14312         * modules/chdir-safer (Depends-on): Likewise.
14313         * modules/fdopendir (Depends-on): Likewise.
14314         * modules/inet_ntop (Depends-on): Likewise.
14315         * modules/inet_pton (Depends-on): Likewise.
14316         * modules/lchown (Depends-on): Likewise.
14317         * modules/openat (Depends-on): Likewise.
14318         * modules/savewd (Depends-on): Likewise.
14319         * modules/settime (Depends-on): Likewise.
14320         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14321
14322         fts: avoid leaking fds
14323         * modules/fts (Depends-on): Add cloexec.
14324         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14325         flag.
14326
14327         fts: make directory fds more robust
14328         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14329         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14330
14331         backupfile, chdir-long, fts, savedir: make safer
14332         * lib/backupfile.c (includes): Use "dirent--.h", since
14333         numbered_backup can write to stderr during readdir.
14334         * lib/savedir.c (includes): Likewise.
14335         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14336         emulation can write to stderr on failure.
14337         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14338         * lib/getcwd.c: Document why opendir_safer is unused.
14339         * lib/glob.c: Likewise.
14340         * lib/scandir.c: Likewise.
14341         * lib/openat-proc.c: Likewise, for open_safer.
14342         * modules/backupfile (Depends-on): Add dirent-safer.
14343         * modules/savedir (Depends-on): Likewise.
14344         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14345         * modules/chdir-long (Depends-on): Add openat-safer.
14346
14347         openat-safer: new module
14348         * modules/openat-safer: New file.
14349         * lib/openat-safer.c: Likewise.
14350         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14351         * lib/fcntl-safer.h (openat_safer): Declare.
14352         * lib/fcntl--.h (openat): Override.
14353         * MODULES.html.sh (File descriptor based I/O): Mention it.
14354         * lib/openat.h: Add double-inclusion guards.
14355         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14356         "fcntl--.h", so we can implement openat.
14357         * modules/openat-safer-tests: New test.
14358         * tests/test-openat-safer.c: New file.
14359
14360         dirent-safer: new module
14361         * modules/dirent-safer: New file.
14362         * lib/dirent--.h: Likewise.
14363         * lib/dirent-safer.h: Likewise.
14364         * lib/opendir-safer.c: Likewise.
14365         * m4/dirent-safer.m4: Likewise.
14366         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14367         * modules/dirent-safer-tests: New test.
14368         * tests/test-dirent-safer.c: New file.
14369         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14370
14371         fdopendir: optimize on mingw
14372         * lib/unistd.in.h (_gl_directory_name): New prototype.
14373         * lib/fchdir.c (_gl_directory_name): Implement it.
14374         (fchdir): Use it to simplify implementation.
14375         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14376         fchdir, when available, to avoid calling [f]chdir().
14377
14378         fdopendir: split into its own module
14379         * lib/openat.c (fdopendir): Move...
14380         * lib/fdopendir.c: ...into new file.
14381         * modules/fdopendir: New module.
14382         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14383         * modules/openat (Depends-on): Add fdopendir.
14384         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14385         fdopendir here.
14386         * modules/savedir (Depends-on): Only need fdopendir, not full
14387         openat.
14388         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14389         * lib/openat.h (fdopendir): Drop prototype.
14390         * lib/dirent.in.h (fdopendir): Provide prototype.
14391         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14392         * modules/dirent (Makefile.am): Substitute them.
14393         * MODULES.html.sh (File system functions): Mention it.
14394         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14395         * modules/fdopendir-tests: New file.
14396         * tests/test-fdopendir.c: Likewise.
14397
14398         fchdir: use more consistent macro convention
14399         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14400         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14401         REPLACE_FCHDIR, rather than relying on config.h macros.
14402         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14403         inside a single make-time REPLACE_FCHDIR block, rather than using
14404         the config.h FCHDIR_REPLACEMENT.
14405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14406         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14407         Manage fstat replacement.
14408         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14409         REPLACE_FCHDIR.
14410         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14411         (Makefile.am): Substitute REPLACE_FCHDIR.
14412         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14413         FCHDIR_REPLACEMENT.
14414         * lib/dup-safer.c (dup_safer): Likewise.
14415         * lib/dup2.c (rpl_dup2): Likewise.
14416         * lib/dup3.c (rpl_dup3): Likewise.
14417         * lib/open.c (rpl_open): Likewise.
14418
14419         fchdir: simplify error handling, and support dup3
14420         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14421         stdbool, malloc-posix, realloc-posix.
14422         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14423         (ensure_dirs_slot): Return false on allocation failure.
14424         (rpl_dup2): Delete.
14425         (_gl_register_dup): New function.
14426         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14427         (_gl_register_fd): Close fd on allocation failure.
14428         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14429         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14430         prototype.
14431         (rpl_dup2_fchdir): Delete prototype.
14432         * lib/open.c (open): Update caller.
14433         * lib/dup2.c (dup2): Track fchdir metadata.
14434         * lib/dup3.c (dup3): Likewise.
14435         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14437
14438 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14439
14440         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14441         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14442         don't pass arguments to AC_OUTPUT.
14443
14444 2009-09-02  Bruno Haible  <bruno@clisp.org>
14445
14446         * modules/mkdtemp (License): Relicense under LGPLv2+.
14447         Reported by Paolo Bonzini.
14448
14449 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14450
14451         Replace uses of obsolete autoconf macros in Jim's modules.
14452         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14453         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14454         can evoke a warning from autoconf when run with -Wobsolete
14455         enabled.  They were declared obsolete for good reasons (see
14456         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14457         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14458         should not continue using the deprecated macros.
14459         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14460         obsolete Autoconf macros with modern counterparts.
14461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14462         * m4/dos.m4 (gl_AC_DOS): Likewise.
14463         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14464         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14465         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14466         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14467         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14468         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14469         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14470         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14471         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14472         Likewise.
14473         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14474         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14475         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14476         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14477         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14478         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14479
14480 2009-09-01  Eric Blake  <ebb9@byu.net>
14481
14482         fchdir: fix off-by-one bug in previous patch
14483         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14484         (_gl_unregister_fd): Delete useless if.
14485
14486 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14487
14488         maint.mk: sort the list of syntax-check rules
14489         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14490         easier to get a sense of progress when the rules are run sequentially
14491         and take a long time.
14492
14493 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14494
14495         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14496         * modules/netinet_in: Likewise.
14497         * modules/sys_file: Likewise.
14498         * modules/sys_ioctl: Likewise.
14499         * modules/sys_select: Likewise.
14500         * modules/sys_socket: Likewise.
14501         * modules/sys_stat: Likewise.
14502         * modules/sys_time: Likewise.
14503         * modules/sys_times: Likewise.
14504         * modules/sys_utsname: Likewise.
14505         * modules/sys_wait: Likewise.
14506
14507 2009-09-01  Jim Meyering  <meyering@redhat.com>
14508
14509         fts: help ensure that return values are not ignored
14510         * lib/fts_.h (__GNUC_PREREQ): Define.
14511         (__attribute_warn_unused_result__): Define.
14512         (fts_children, fts_close, fts_open, fts_read): Declare with
14513         __attribute_warn_unused_result__.
14514
14515         fts: fts_close now fails also when closing a dir file descriptor fails
14516         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14517         and propagate to caller, along with errno.
14518
14519         announce-gen: correct formatting in --help output
14520         * build-aux/announce-gen (usage): Move the one-line description in
14521         --help output "up", to where it belongs, just after Usage:.
14522
14523 2009-08-31  Eric Blake  <ebb9@byu.net>
14524
14525         fchdir: port to mingw
14526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
14527         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
14528         opened, then use a substitute.
14529         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
14530         replacement.
14531         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
14532         (_gl_register_fd): No need to check stat if open already filters
14533         all directories.
14534         (fchdir): Fix error condition to match POSIX.
14535         * modules/fchdir (Depends-on): Add sys_stat.
14536         * doc/posix-functions/open.texi (open): Document the limitation.
14537         * modules/fchdir-tests: New file.
14538         * tests/test-fchdir.c: Likewise.
14539
14540         canonicalize: allow cross-testing from cygwin to mingw
14541         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
14542         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
14543         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
14544         Likewise.
14545         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
14546         target does not support symlinks.
14547         * tests/test-canonicalize-lgpl.sh: Likewise.
14548
14549         chown: avoid compilation warning on mingw
14550         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
14551         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
14552         mingw.
14553         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14554         * modules/chown (Depends-on): Add errno.
14555
14556 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14557
14558         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
14559         command.
14560
14561 2009-08-31  Jim Meyering  <meyering@redhat.com>
14562
14563         canonicalize: remove useless initialization
14564         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
14565         initialization of local, "end".
14566
14567 2009-08-30  Bruno Haible  <bruno@clisp.org>
14568
14569         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
14570         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
14571         ENOSYS.
14572
14573 2009-08-30  Bruno Haible  <bruno@clisp.org>
14574
14575         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
14576         /usr/xpg4/bin/tr when it exists.
14577         * tests/test-pipe-filter-gi1.sh: Likewise.
14578
14579 2009-08-30  Bruno Haible  <bruno@clisp.org>
14580
14581         Work around deficient /usr/bin/id program on Solaris.
14582         * tests/test-file-has-acl.sh (ID): New variable.
14583         * tests/test-set-mode-acl.sh (ID): Likewise.
14584         * tests/test-copy-acl.sh (ID): Likewise.
14585         * tests/test-copy-file.sh (ID): Likewise.
14586
14587 2009-08-30  Bruno Haible  <bruno@clisp.org>
14588
14589         New module 'xstriconveh'.
14590         * lib/xstriconveh.h: New file.
14591         * lib/xstriconveh.c: New file.
14592         * modules/xstriconveh: New file.
14593
14594 2009-08-30  Bruno Haible  <bruno@clisp.org>
14595
14596         Make it easier to use mem_cd_iconveh.
14597         * lib/striconveh.h (iconveh_t): New type.
14598         (iconveh_open, iconveh_close): New declarations.
14599         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14600         with a single 'const iconveh_t *' argument.
14601         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
14602         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
14603         with a single 'const iconveh_t *' argument.
14604         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
14605         * tests/test-striconveh.c (main): Update.
14606         * NEWS: Mention the change.
14607
14608 2009-08-30  Bruno Haible  <bruno@clisp.org>
14609
14610         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
14611         problem.
14612
14613 2009-08-30  Bruno Haible  <bruno@clisp.org>
14614
14615         Work around iconv_open problem on Solaris.
14616         * lib/iconv_open-solaris.gperf: New file.
14617         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
14618         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
14619         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
14620         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
14621         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
14622         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
14623
14624 2009-08-29  Jim Meyering  <meyering@redhat.com>
14625
14626         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
14627         * top/maint.mk (cvs-check): Remove target; it was just an alias
14628         to the better-named vc-diff-check.
14629         (maintainer-distcheck): Remove rule.  It was used only from
14630         the (alpha/beta/major) target, and all of its commands but one
14631         were coreutils-specific.
14632         (vc-dist): Remove rule.
14633         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
14634         Run vc-diff-check, not vc-dist.
14635         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
14636
14637 2009-08-27  Bruno Haible  <bruno@clisp.org>
14638
14639         * tests/test-bitrotate.c (main): Remove test that uses a shift count
14640         of 0.
14641
14642 2009-08-27  Bruno Haible  <bruno@clisp.org>
14643
14644         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
14645         compilers.
14646         * doc/func.texi: Document the SunPRO C bug.
14647
14648 2009-08-27  Bruno Haible  <bruno@clisp.org>
14649
14650         Fix link error on Solaris.
14651         * tests/test-parse-duration.c (xstrdup): Remove function.
14652
14653 2009-08-26  Pádraig Brady  <P@draigbrady.com>
14654
14655         ignore-value: handle pointer types, too
14656         * lib/ignore-value.h (__attribute__): Remove definition.
14657         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
14658         of a more concise and more-often effective "(void) i" statement.
14659         (ignore_ptr): New function to suppress warnings from functions that
14660         return pointers, and to make it explicit that one function doesn't
14661         handle all cases.
14662
14663 2009-08-25  Bruno Haible  <bruno@clisp.org>
14664
14665         dup2: work around a Linux bug.
14666         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
14667         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
14668         * doc/posix-functions/dup2.texi: Mention the Linux bug.
14669         Reported by Simon Josefsson.
14670
14671 2009-08-25  Jim Meyering  <meyering@redhat.com>
14672
14673         libguestfs uses gnulib
14674         * users.txt: Add libguestfs.
14675
14676 2009-08-24  Eric Blake  <ebb9@byu.net>
14677
14678         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
14679         * lib/pipe2.c (includes): Add binary-io.h.
14680         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
14681
14682 2009-08-24  Bruno Haible  <bruno@clisp.org>
14683
14684         Tolerate declared but missing accept4 syscall.
14685         * lib/accept4.c (accept4): Invoke original accept4 function first, if
14686         available.
14687         * lib/sys_socket.in.h (accept4): If the function is already present,
14688         override it.
14689         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
14690         * modules/accept4 (Makefile.am): Compile accept4.c always.
14691         Reported by Paolo Bonzini and Eric Blake.
14692
14693 2009-08-23  Bruno Haible  <bruno@clisp.org>
14694
14695         New module 'accept4'.
14696         * lib/sys_socket.in.h (accept4): New declaration.
14697         * lib/accept4.c: New file.
14698         * m4/accept4.m4: New file.
14699         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14700         GNULIB_ACCEPT4, HAVE_ACCEPT4.
14701         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
14702         HAVE_ACCEPT4.
14703         * modules/accept4: New file.
14704         * doc/glibc-functions/accept4.texi: Mention the new module.
14705
14706 2009-08-24  Jim Meyering  <meyering@redhat.com>
14707
14708         progname: also set global program_invocation_name, when possible
14709         Before this change, a libtool-enabled program that calls glibc's
14710         error function would report the program name as
14711         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
14712         * modules/progname (configure.ac): Check for a declaration of
14713         program_invocation_name.
14714         * lib/progname.c:  Include <errno.h>.
14715         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
14716         Set program_invocation_name.
14717
14718 2009-08-23  Bruno Haible  <bruno@clisp.org>
14719
14720         * lib/dup3.c: Include <string.h>.
14721
14722 2009-08-23  Bruno Haible  <bruno@clisp.org>
14723
14724         * lib/dup3.c (dup3): Test only once whether the system actually exists.
14725         * lib/pipe2.c (pipe2): Likewise.
14726         Suggested by Eric Blake.
14727
14728 2009-08-23  Bruno Haible  <bruno@clisp.org>
14729
14730         Tolerate declared but missing dup3 syscall.
14731         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
14732         * lib/unistd.in.h (dup3): If the function is already present,
14733         override it.
14734         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
14735         * modules/dup3 (Makefile.am): Compile dup3.c always.
14736         Reported by Paolo Bonzini.
14737
14738 2009-08-23  Bruno Haible  <bruno@clisp.org>
14739
14740         Tolerate declared but missing pipe2 syscall.
14741         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
14742         available.
14743         * lib/unistd.in.h (pipe2): If the function is already present,
14744         override it.
14745         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
14746         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
14747         Reported by Paolo Bonzini.
14748
14749 2009-08-23  Bruno Haible  <bruno@clisp.org>
14750
14751         * lib/pipe2.c (pipe2): Move #ifs inside function.
14752
14753 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14754
14755         quotearg: document limitations of quote_these_too
14756         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
14757         those limitations are created.
14758         * lib/quotearg.h (set_char_quoting): Document that digits and
14759         letters that are special after backslash are not permitted.
14760         (quotearg_char): Cross-reference set_char_quoting documentation.
14761
14762 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
14763
14764         quotearg: implement custom_quoting_style
14765         * lib/quotearg.c: (struct quoting_options): Add left_quote and
14766         right_quote fields.
14767         (set_custom_quoting): New public function.
14768         (quotearg_buffer_restyled): Add left_quote and right_quote
14769         arguments, handle them very much like locale quoting, and update
14770         all uses.
14771         (quotearg_n_custom): New public function.
14772         (quotearg_n_custom_mem): New public function.
14773         (quotearg_custom): New public function.
14774         (quotearg_custom_mem): New public function.
14775         * lib/quotearg.h: Prototype and document new public functions.
14776         (enum quoting_style): For escape_quoting_style and
14777         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
14778         ignored even though they're otherwise like c_quoting_style.
14779         Add custom_quoting_style member and document with comparison to
14780         clocale_quoting_style.
14781         * tests/test-quotearg.c (custom_quotes): New array.
14782         (custom_results): New array.
14783         (main): Extend to test custom quoting.
14784
14785 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14786
14787         quotearg: fix right quote escaping when it's in quote_these_too
14788         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
14789         quote, be sure to prepend only one backslash.
14790         * tests/test-quotearg.c (use_quote_double_quotes): New function.
14791         (main): Test it.
14792
14793 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
14794
14795         quotearg-tests: test escaping of embedded locale quotes
14796         * tests/test-quotearg.c (struct result_strings): Add member for
14797         new input.
14798         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
14799         (inputs): Add new input.
14800         (results_g): Add expected results.
14801         (flag_results): Likewise.
14802         (locale_results): Likewise.
14803         (compare_strings): Check those.
14804
14805 2009-08-23  Bruno Haible  <bruno@clisp.org>
14806
14807         Tests for module 'dup3'.
14808         * modules/dup3-tests: New file.
14809         * tests/test-dup3.c: New file.
14810
14811         New module 'dup3'.
14812         * lib/unistd.in.h (dup3): New declaration.
14813         * lib/dup3.c: New file.
14814         * m4/dup3.m4: New file.
14815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
14816         HAVE_DUP3.
14817         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
14818         * modules/dup3: New file.
14819         * doc/glibc-functions/dup3.texi: Mention the new module.
14820
14821 2009-08-23  Bruno Haible  <bruno@clisp.org>
14822
14823         Tweak the dup2 test.
14824         * tests/test-dup2.c (main): Create the test file empty. Verify that an
14825         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
14826         the test file is still empty. Fix argument order of lseek.
14827
14828 2009-08-23  Bruno Haible  <bruno@clisp.org>
14829
14830         Avoid test link errors when the modules getopt-gnu, gettext are used.
14831         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
14832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14833
14834 2009-08-23  Bruno Haible  <bruno@clisp.org>
14835
14836         Fix getdtablesize() on mingw.
14837         * lib/getdtablesize.c (getdtablesize): Implement differently.
14838         * lib/unistd.in.h (getdtablesize): Improve comment.
14839
14840 2009-08-23  Bruno Haible  <bruno@clisp.org>
14841
14842         New module 'mkostemp'.
14843         Based on Ulrich Drepper's 2007-08-10 change in glibc.
14844         * lib/stdlib.in.h (mksotemp): New declaration.
14845         * lib/mkostemp.c: New file, from glibc with modifications.
14846         * lib/tempname.h (GT_FILE): Remove outdated comment.
14847         (gen_tempname): Add flags argument.
14848         * lib/tempname.c (__GT_BIGFILE): Remove macro.
14849         (__GT_FILE): Map to 1.
14850         (small_open, large_open): Remove macros.
14851         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
14852         * lib/mkstemp.c (mkstemp): Update.
14853         * lib/mkdtemp.c (mkdtemp): Likewise.
14854         * m4/mkostemp.m4: New file.
14855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
14856         HAVE_MKOSTEMP.
14857         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
14858         HAVE_MKOSTEMP.
14859         * modules/mkostemp: New file, based on modules/mkstemp.
14860         * doc/glibc-functions/mkostemp.texi: Mention the new module.
14861         * NEWS: Mention the change.
14862
14863 2009-08-23  Bruno Haible  <bruno@clisp.org>
14864
14865         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
14866         Reported by Eric Blake.
14867
14868 2009-08-23  Bruno Haible  <bruno@clisp.org>
14869
14870         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
14871         Reported by Eric Blake.
14872
14873 2009-08-23  Bruno Haible  <bruno@clisp.org>
14874
14875         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
14876         * modules/pipe2 (Depends-on): Likewise.
14877
14878 2009-08-23  Eric Blake  <ebb9@byu.net>
14879
14880         fcntl-h: add O_TTY_INIT support
14881         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
14882         * tests/test-fcntl-h.c (o): Test it.
14883         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14884
14885         fcntl-h: rename from fcntl, in preparation for fcntl(2)
14886         * modules/fcntl: Move <fcntl.h> header replacement...
14887         * modules/fcntl-h: ...to new name, so as not to collide with
14888         like-named function.
14889         * tests/test-fcntl.c: Rename...
14890         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
14891         * modules/fcntl-tests: Rename...
14892         * modules/fcntl-h-tests: ...to this.  Update test file name.
14893         * modules/chdir-long (Depends-on): Update clients.
14894         * modules/chdir-safer (Depends-on): Likewise.
14895         * modules/fcntl-safer (Depends-on): Likewise.
14896         * modules/fts (Depends-on): Likewise.
14897         * modules/mkancesdirs (Depends-on): Likewise.
14898         * modules/mkdir-p (Depends-on): Likewise.
14899         * modules/open (Depends-on): Likewise.
14900         * modules/savewd (Depends-on): Likewise.
14901         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
14902         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14903
14904 2009-08-22  Bruno Haible  <bruno@clisp.org>
14905
14906         * modules/binary-io (License): Relicense under LGPL.
14907         * modules/pipe2 (License): Likewise.
14908
14909 2009-08-22  Bruno Haible  <bruno@clisp.org>
14910
14911         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
14912         return value.
14913         * lib/pipe-filter-gi.c (filter_init): Likewise.
14914         Reported by Eric Blake.
14915
14916 2009-08-22  Bruno Haible  <bruno@clisp.org>
14917
14918         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
14919         * modules/pipe (Depends-on): Add pipe2.
14920
14921 2009-08-22  Bruno Haible  <bruno@clisp.org>
14922
14923         Tests for module 'pipe2'.
14924         * modules/pipe2-tests: New file.
14925         * tests/test-pipe2.c: New file.
14926
14927         New module 'pipe2'.
14928         * lib/unistd.in.h (pipe2): New declaration.
14929         * lib/pipe2.c: New file.
14930         * m4/pipe2.m4: New file.
14931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
14932         HAVE_PIPE2.
14933         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
14934         * modules/pipe2: New file.
14935         * doc/glibc-functions/pipe2.texi: Mention the new module.
14936
14937 2009-08-22  Bruno Haible  <bruno@clisp.org>
14938
14939         Reference some new glibc functions.
14940         * doc/glibc-functions/accept4.texi: New file.
14941         * doc/glibc-functions/dup3.texi: New file.
14942         * doc/glibc-functions/mkostemp.texi: New file.
14943         * doc/glibc-functions/pipe2.texi: New file.
14944         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
14945         (Glibc sys/socket.h): Refer to accept4.
14946         (Glibc unistd.h): Refer to dup3, pipe2.
14947         Reported by Eric Blake.
14948
14949 2009-08-22  Jim Meyering  <meyering@redhat.com>
14950             Bruno Haible  <bruno@clisp.org>
14951
14952         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
14953         This makes it so packages using automake-1.11's silent-rules option
14954         can print e.g., a single "GEN    configmake.h" line, rather than
14955         the 30+ statements that perform the job.  If you want to see the
14956         actual commands, you can still run "make V=1".
14957         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
14958         so that make output is abbreviated when those variables are defined
14959         appropriately.
14960         * modules/argz: Likewise.
14961         * modules/arpa_inet: Likewise.
14962         * modules/byteswap: Likewise.
14963         * modules/configmake: Likewise.
14964         * modules/dirent: Likewise.
14965         * modules/errno: Likewise.
14966         * modules/fcntl: Likewise.
14967         * modules/float: Likewise.
14968         * modules/fnmatch: Likewise.
14969         * modules/getopt-posix: Likewise.
14970         * modules/glob: Likewise.
14971         * modules/iconv_open: Likewise.
14972         * modules/inttypes: Likewise.
14973         * modules/localcharset: Likewise.
14974         * modules/locale: Likewise.
14975         * modules/math: Likewise.
14976         * modules/netdb: Likewise.
14977         * modules/netinet_in: Likewise.
14978         * modules/poll: Likewise.
14979         * modules/posix_spawnp-tests: Likewise.
14980         * modules/sched: Likewise.
14981         * modules/search: Likewise.
14982         * modules/selinux-h: Likewise.
14983         * modules/signal: Likewise.
14984         * modules/spawn: Likewise.
14985         * modules/stdarg: Likewise.
14986         * modules/stdbool: Likewise.
14987         * modules/stddef: Likewise.
14988         * modules/stdint: Likewise.
14989         * modules/stdio: Likewise.
14990         * modules/stdlib: Likewise.
14991         * modules/string: Likewise.
14992         * modules/strings: Likewise.
14993         * modules/sys_file: Likewise.
14994         * modules/sys_ioctl: Likewise.
14995         * modules/sys_select: Likewise.
14996         * modules/sys_socket: Likewise.
14997         * modules/sys_stat: Likewise.
14998         * modules/sys_time: Likewise.
14999         * modules/sys_times: Likewise.
15000         * modules/sys_utsname: Likewise.
15001         * modules/sys_wait: Likewise.
15002         * modules/sysexits: Likewise.
15003         * modules/time: Likewise.
15004         * modules/unistd: Likewise.
15005         * modules/wchar: Likewise.
15006         * modules/wctype: Likewise.
15007
15008 2009-08-22  Jim Meyering  <meyering@redhat.com>
15009
15010         announce-gen: detect write failure
15011         * build-aux/announce-gen: Add Coda at end.
15012         Remove equivalent-but-more-verbose block at top.
15013
15014 2009-08-19  Akim Demaille  <demaille@gostai.com>
15015
15016         bootstrap: --help to stdout.
15017         * bootstrap (usage): Don't send --help to stderr.
15018         Use a here doc instead of a long string.
15019
15020 2009-08-21  Eric Blake  <ebb9@byu.net>
15021
15022         test-popen-safer: split from test-popen
15023         * tests/test-popen.c (main): Move...
15024         * tests/test-popen.h: ...into new file.
15025         * tests/test-popen-safer2.c: New file.
15026         * modules/popen-tests (Files): Add test-popen.h.
15027         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15028         Suggested by Bruno Haible.
15029
15030         test-fcntl-safer: split from test-open
15031         * tests/test-open.c (main): Move...
15032         * tests/test-open.h: ...into new file.
15033         * tests/test-fcntl-safer.c: New file.
15034         * modules/open-tests (Files): Add test-open.h.
15035         * modules/fcntl-safer-tests: New file.
15036         Suggested by Bruno Haible.
15037
15038         test-fopen-safer: split from test-fopen
15039         * tests/test-fopen.c (main): Move...
15040         * tests/test-fopen.h: ...into new file.
15041         * tests/test-fopen-safer.c: New file.
15042         * modules/fopen-tests (Files): Add test-fopen.h.
15043         * modules/fopen-safer-tests: New file.
15044         Suggested by Bruno Haible.
15045
15046 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15047
15048         popen-safer: test O_CLOEXEC at run-time.
15049         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15050
15051 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15052
15053         fcntl: move more flags to the header
15054         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15055         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15056         * lib/fcntl.in.h: Do both things here.
15057
15058 2009-08-21  Jim Meyering  <meyering@redhat.com>
15059
15060         consistently remove $@-t before redirecting to it
15061         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15062         * modules/alloca-opt: Likewise.
15063         * modules/byteswap: Likewise.
15064         * modules/fnmatch: Likewise.
15065         * modules/getopt-posix: Likewise.
15066         * modules/glob: Likewise.
15067         * modules/poll: Likewise.
15068         * modules/posix_spawnp-tests: Likewise.
15069         * modules/sys_socket: Likewise.
15070         * modules/sysexits: Likewise.
15071
15072 2009-08-21  Eric Blake  <ebb9@byu.net>
15073
15074         popen: simplify access to original popen
15075         * lib/popen.c (rpl_popen): No need to worry about popen being a
15076         macro.
15077         Reported by Bruno Haible.
15078
15079 2009-08-20  Eric Blake  <ebb9@byu.net>
15080
15081         build: avoid some compiler warnings
15082         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15083         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15084         type.
15085         (new_exclude_segment, excluded_file_pattern_p)
15086         (excluded_file_name_p): Reduce scope.
15087         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15088         old-style declaration.
15089
15090 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15091
15092         * tests/test-exclude1.sh: Handle Windows EOL.
15093         * tests/test-exclude2.sh: Likewise.
15094         * tests/test-exclude3.sh: Likewise.
15095         * tests/test-exclude4.sh: Likewise.
15096         * tests/test-exclude5.sh: Likewise.
15097         * tests/test-exclude6.sh: Likewise.
15098         * tests/test-exclude7.sh: Likewise.
15099
15100 2009-08-19  Akim Demaille  <demaille@gostai.com>
15101
15102         bootstrap: find sha1sum when named gsha1sum.
15103         * bootstrap (find_tool): New.
15104         ($SHA1SUM): New.
15105         Use it.
15106
15107 2009-08-20  Jim Meyering  <meyering@redhat.com>
15108
15109         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15110         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15111         expression that converts "." in a file name to "\." in the resulting
15112         regexp.  Start with a dummy statement, so that prior shell variable
15113         definitions are expanded portably.  Reported by Simon Josefsson.
15114
15115 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15116
15117         Fix polling for writeability of a screen buffer.
15118         * lib/poll.c: Distinguish input and screen buffers for the
15119         Win32 implementation.
15120         * lib/select.c: Likewise.
15121
15122 2009-08-19  Eric Blake  <ebb9@byu.net>
15123
15124         popen-safer: prevent popen from clobbering std descriptors
15125         * modules/popen-safer: New file.
15126         * lib/popen-safer.c: Likewise.
15127         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15128         * lib/stdio--.h (popen): Provide override.
15129         * lib/stdio-safer.h (popen_safer): Provide declaration.
15130         * tests/test-popen.c (includes): Partially test this.
15131         * modules/popen-safer-tests: New file, for more tests.
15132         * tests/test-popen-safer.c: Likewise.
15133         * MODULES.html.sh (file stream based Input/Output): Mention it.
15134
15135         tests: test some of the *-safer modules
15136         * modules/fopen-safer (Depends-on): Add fopen.
15137         * modules/fcntl-safer (Depends-on): Add fcntl.
15138         * modules/stdlib-safer (Depends-on): Add stdlib.
15139         (configure.ac): Set indicator.
15140         * modules/unistd-safer (configure.ac): Likewise.
15141         * modules/tmpfile-safer (configure.ac): Likewise.
15142         (Depends-on): Add tmpfile.
15143         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15144         active.
15145         * tests/test-fopen.c (includes): Test safer versions when they are
15146         in use.
15147         * tests/test-open.c (includes): Likewise.
15148
15149         popen: fix cygwin 1.5 bug when stdin closed
15150         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15151         * modules/popen: New file.
15152         * modules/popen-tests: Likewise.
15153         * tests/test-popen.c: Likewise.
15154         * m4/popen.m4: Likewise.
15155         * lib/popen.c: Likewise.
15156         * lib/stdio.in.h (popen): New declaration.
15157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15158         * modules/stdio (Makefile.am): Likewise.
15159         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15160
15161 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15162
15163         maint.mk: give full control over update-copyright exclusions
15164         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15165         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15166         (update-copyright): Don't force inclusion of top-level
15167         ChangeLog.  Don't force exclusion of all COPYING files, but make
15168         them the default exclusion instead.
15169
15170 2009-08-16  Bruno Haible  <bruno@clisp.org>
15171
15172         Fix test failures on Solaris 10.
15173         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15174         tests when Solaris iconv() is used.
15175         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15176         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15177         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15178         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15179         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15180
15181 2009-08-16  Bruno Haible  <bruno@clisp.org>
15182
15183         Fix test failures on Solaris 10.
15184         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15185         'tr' program and pass it as first argument.
15186         * tests/test-pipe-filter-gi1.sh: Likewise.
15187         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15188         program as first argument.
15189         * tests/test-pipe-filter-gi1.c (main): Likewise.
15190
15191 2009-08-16  Eric Blake  <ebb9@byu.net>
15192
15193         fpurge: fix previous commits
15194         * modules/fpurge (Makefile.am): Make replacement conditional,
15195         partially reverting 2007-04-29 change; missed in previous
15196         attempt.
15197         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15198         is missing.
15199
15200 2009-08-16  Bruno Haible  <bruno@clisp.org>
15201
15202         Clarify fpurge's effect on the file position.
15203         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15204         * tests/test-fpurge.c (main): Make a second pass for checking the file
15205         position.
15206
15207 2009-08-16  Bruno Haible  <bruno@clisp.org>
15208
15209         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15210         declaration of fpurge is missing.
15211         * tests/test-fpurge.c (main): Check that the file has not more contents
15212         than expected. Close the file before removing it.
15213
15214 2009-08-15  Eric Blake  <ebb9@byu.net>
15215
15216         fpurge: don't wrap working cygwin implementation
15217         * lib/fpurge.c (fpurge): Fix comment typo.
15218         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15219         1.7 to avoid replacement.
15220         * tests/test-fpurge.c (main): Enhance test.
15221
15222 2009-08-15  Eric Blake  <ebb9@byu.net>
15223         and Jim Meyering  <meyering@redhat.com>
15224
15225         test-update-copyright: skip if perl is insufficient
15226         * tests/test-update-copyright.sh: Failure to run maintainer tool
15227         should not cause testsuite failure on cygwin 1.5.
15228
15229 2009-08-14  Eric Blake  <ebb9@byu.net>
15230
15231         doc: mention more functions added in cygwin 1.7.0
15232         * doc/posix-headers/limits.texi (limits.h): Update for recent
15233         cygwin additions.
15234         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15235         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15236         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15237         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15238         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15239
15240 2009-08-14  Eric Blake  <ebb9@byu.net>
15241
15242         maint.mk: simplify update-copyright rule
15243         * top/maint.mk (update-copyright-local): Delete, and document how
15244         to do it in cfg.mk instead.
15245         (update-copyright-exclude-regexp): Delete, and document how to do
15246         it in .x-update-copyright instead.
15247         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15248         exclude ChangeLog.
15249
15250 2009-08-14  Bruno Haible  <bruno@clisp.org>
15251
15252         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15253
15254 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15255
15256         maint.mk: support update-copyright-env
15257         * top/maint.mk (update-copyright-env): Define place-holder.
15258         (update-copyright): Expand $(update-copyright-env) before
15259         invoking update-copyright.
15260
15261 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15262
15263         update-copyright: implement forced reformatting
15264         * build-aux/update-copyright: Implement and document
15265         UPDATE_COPYRIGHT_FORCE.
15266         * tests/test-update-copyright.sh: Test it.
15267
15268 2009-08-14  Eric Blake  <ebb9@byu.net>
15269         and Bruno Haible  <bruno@clisp.org>
15270
15271         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15272         * tests/test-locale.c: Revert previous patch related to NULL.
15273         * tests/test-stdio.c: Likewise.
15274         * tests/test-stdlib.c: Likewise.
15275         * tests/test-string.c: Likewise.
15276         * tests/test-unistd.c: Likewise.
15277         * modules/time-tests (Depends-on): Add verify.
15278         * modules/wchar-tests (Depends-on): Likewise.
15279         * tests/test-time.c: Test for NULL compliance.
15280         * tests/test-wchar.c: Likewise.
15281         * modules/locale (Depends-on): Add stddef.
15282         * modules/stdio (Depends-on): Likewise.
15283         * modules/stdlib (Depends-on): Likewise.
15284         * modules/string (Depends-on): Likewise.
15285         * modules/time (Depends-on): Likewise.
15286         * modules/unistd (Depends-on): Likewise.
15287         * modules/wchar (Depends-on): Likewise.
15288         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15289         * lib/stdlib.in.h (includes): Likewise.
15290         * lib/string.in.h (includes): Likewise.
15291         * lib/time.in.h (includes): Likewise.
15292         * lib/unistd.in.h (includes): Likewise.
15293         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15294         replaced.
15295         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15296         * m4/stddef_h.m4: New file.
15297         * modules/stddef: Likewise.
15298         * lib/stddef.in.h: Likewise.
15299         * modules/stddef-tests: Likewise.
15300         * tests/test-stddef.c: Likewise.
15301         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15302         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15303         * doc/posix-headers/locale.texi (locale.h): Likewise.
15304         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15305         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15306         * doc/posix-headers/string.texi (string.h): Likewise.
15307         * doc/posix-headers/time.texi (time.h): Likewise.
15308         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15309         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15310
15311 2009-08-14  Eric Blake  <ebb9@byu.net>
15312
15313         doc: improve git diff of texinfo files
15314         * .gitattributes: Add rule for *.texi files, with hint on how to
15315         use it.
15316         Copied from m4, and based on a report by Bruno Haible.
15317
15318 2009-08-14  Bruno Haible  <bruno@clisp.org>
15319
15320         Disable multithread support by default on Cygwin 1.5.x for real.
15321         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15322
15323 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15324
15325         update-copyright: much ado about intervals
15326         * build-aux/update-copyright: Implement and document
15327         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15328         of copyright year intervals.
15329         Also, document UPDATE_COPYRIGHT_YEAR.
15330         * tests/test-update-copyright.sh: Test it.
15331
15332         update-copyright: convert 2-digit to 4-digit years
15333         * build-aux/update-copyright: Implement and document.
15334         * tests/test-update-copyright.sh: Update.
15335
15336 2009-08-14  Jim Meyering  <meyering@redhat.com>
15337
15338         test-exclude: avoid coreutils "make check" failure
15339         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15340         just as in test-argmatch.c.
15341
15342 2009-08-13  Eric Blake  <ebb9@byu.net>
15343
15344         test-dup2: fix bad assumption
15345         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15346         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15347
15348         test-version-etc: fix CRLF portability issue
15349         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15350         recognize \r.
15351         * tests/test-argp-version-etc-1.sh: Likewise.
15352
15353         getopt: update client modules
15354         * modules/argp (Depends-on): Use getopt-gnu.
15355         * modules/git-merge-changelog (Depends-on): Likewise.
15356         * modules/long-options (Depends-on): Likewise.
15357         * modules/xstrtol (Depends-on): Likewise.
15358
15359 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15360
15361         * tests/test-version-etc.sh: Don't fail on different
15362         project/version.  Don't fail on CRLF differences.  Rewrite to use
15363         multiple -e instead of multiple sed forks, suggested by Eric Blake
15364         <ebb9@byu.net>.
15365         * tests/test-argp-version-etc-1.sh: Likewise.
15366
15367 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15368
15369         * tests/test-version-etc.sh: Don't fail on different
15370         project/version.
15371
15372 2009-08-12  Bruno Haible  <bruno@clisp.org>
15373
15374         Tests for modules 'getopt-posix', 'getopt-gnu'.
15375         * modules/getopt-posix-tests: New file.
15376         * tests/test-getopt.c: New file.
15377         * tests/test-getopt.h: New file.
15378         * tests/test-getopt_long.h: New file.
15379
15380         New modules 'getopt-posix', 'getopt-gnu'.
15381         * modules/getopt-gnu: New file, renamed from modules/getopt.
15382         * modules/getopt-posix: New file.
15383         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15384         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15385         (gl_GETOPT): Remove macro.
15386         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15387         Disable the test against BSD systems that declare optreset. Test
15388         against mingw bug. Test against lack of support of optional arguments
15389         on many platforms.
15390         * doc/glibc-headers/getopt.texi: Update module name and list of
15391         relevant platforms.
15392         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15393         'getopt-gnu' and more portability problems.
15394         * NEWS: Mention the changes.
15395
15396 2009-08-12  Bruno Haible  <bruno@clisp.org>
15397
15398         Ensure that optarg etc. get declared by <unistd.h>.
15399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15400         AC_USE_SYSTEM_EXTENSIONS.
15401         * modules/getopt (Depends-on): Add 'extensions'.
15402
15403 2009-08-12  Bruno Haible  <bruno@clisp.org>
15404
15405         Avoid test link errors.
15406         * modules/pipe-filter-ii-tests (Makefile.am): Define
15407         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15408         * modules/pipe-filter-gi-tests (Makefile.am): Define
15409         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15411
15412 2009-08-12  Bruno Haible  <bruno@clisp.org>
15413
15414         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15415         gl_GETOPT_SUBSTITUTE before.
15416         (gl_GETOPT): Use it.
15417         * m4/argp.m4 (gl_ARGP): Update.
15418         Reported by Sergey Poznyakoff.
15419
15420         * m4/getopt.m4: Reorder macros.
15421         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15422         (gl_GETOPT_SUBSTITUTE): Remove macro.
15423
15424 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15425
15426         Minor improvement in gitlog-to-changelog
15427
15428         * build-aux/gitlog-to-changelog: New option `--format' makes
15429         output format string configurable.
15430
15431 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15432
15433         Optimize exclude: use hash tables for non-wildcard patterns.
15434
15435         * lib/exclude.c: Include hash.h and mbuiter.h
15436         (struct exclude_pattern, exclude_segment): New data types.
15437         (struct exclude): Rewrite.
15438         (fnmatch_pattern_has_wildcards): New function.
15439         (new_exclude_segment, free_exclude_segment): New functions.
15440         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15441         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15442         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15443         * modules/exclude: Depend on hash and mbuiter.
15444
15445         * modules/exclude-tests: New file.
15446         * tests/test-exclude.c: New file.
15447         * tests/test-exclude1.sh: New file.
15448         * tests/test-exclude2.sh: New file.
15449         * tests/test-exclude3.sh: New file.
15450         * tests/test-exclude4.sh: New file.
15451         * tests/test-exclude5.sh: New file.
15452         * tests/test-exclude6.sh: New file.
15453         * tests/test-exclude7.sh: New file.
15454
15455 2009-08-12  Bruno Haible  <bruno@clisp.org>
15456
15457         Ensure that getopt() gets declared by <unistd.h>.
15458         * lib/unistd.in.h: Conditionally include getopt.h.
15459         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15460         Set GNULIB_UNISTD_H_GETOPT.
15461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15462         GNULIB_UNISTD_H_GETOPT.
15463         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15464
15465 2009-08-12  Bruno Haible  <bruno@clisp.org>
15466
15467         Clarify logic.
15468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15469         gl_replace_getopt instead of GETOPT_H.
15470
15471 2009-08-12  Bruno Haible  <bruno@clisp.org>
15472
15473         * m4/getopt.m4: Add comments.
15474
15475 2009-08-12  Bruno Haible  <bruno@clisp.org>
15476
15477         Disable multithread support by default on Cygwin 1.5.x.
15478         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15479         set gl_use_threads=no if not specified otherwise.
15480
15481 2009-08-11  Bruno Haible  <bruno@clisp.org>
15482
15483         Avoid compilation error on NetBSD 5.0.
15484         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15485         * tests/test-stdio.c: Likewise.
15486         * tests/test-stdlib.c: Likewise.
15487         * tests/test-string.c: Likewise.
15488         * tests/test-unistd.c: Likewise.
15489         Reported by Greg Troxel <gdt@ir.bbn.com>
15490         at <https://savannah.gnu.org/support/?106973>.
15491
15492 2009-08-11  Bruno Haible  <bruno@clisp.org>
15493
15494         * modules/dup2-tests (Depends-on): Remove close.
15495
15496         Undo 2009-07-19 commit.
15497         * modules/acl-tests (Depends-on): Remove close.
15498         * modules/binary-io-tests (Depends-on): Likewise.
15499         * modules/closein-tests (Depends-on): Likewise.
15500         * modules/flock-tests (Depends-on): Likewise.
15501         * modules/fsync-tests (Depends-on): Likewise.
15502         * modules/lseek-tests (Depends-on): Likewise.
15503         * modules/pipe-tests (Depends-on): Likewise.
15504         * modules/posix_spawn-tests (Depends-on): Likewise.
15505         * modules/posix_spawnp-tests (Depends-on): Likewise.
15506         * modules/stat-time-tests (Depends-on): Likewise.
15507         * modules/yesno-tests (Depends-on): Likewise.
15508
15509 2009-08-10  Bruno Haible  <bruno@clisp.org>
15510
15511         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15512
15513 2009-08-10  Bruno Haible  <bruno@clisp.org>
15514
15515         Fix a gcc warning.
15516         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15517
15518 2009-08-10  Bruno Haible  <bruno@clisp.org>
15519
15520         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15521         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15522         not only the first time.
15523         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15524         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15525         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15526         is 1, not only the the first time.
15527
15528 2009-08-10  Bruno Haible  <bruno@clisp.org>
15529
15530         Make it possible to use module 'gethostname' without module 'close'.
15531         * lib/unistd.in.h (close): Evoke a link error only if
15532         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15534         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15535         * modules/unistd (Makefile.am): Substitute
15536         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15537         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
15538         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
15539         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15540         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15541         * modules/sys_ioctl (Makefile.am): Substitute
15542         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15543         * modules/socket (configure.ac): On native Windows, set
15544         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
15545         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
15546         Reported by Sam Steingold <sds@gnu.org>.
15547
15548 2009-08-10  Bruno Haible  <bruno@clisp.org>
15549
15550         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
15551         * modules/ioctl (configure.ac): Likewise.
15552
15553 2009-08-10  Bruno Haible  <bruno@clisp.org>
15554
15555         Avoid collision between gnulib wrapper and libintl wrapper.
15556         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
15557         already defined in intl/printf.c.
15558         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
15559         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
15560
15561 2009-08-09  Bruno Haible  <bruno@clisp.org>
15562
15563         Make <sys/select.h> really self-contained, also on Solaris 10.
15564         * lib/sys_select.in.h: Include <string.h>.
15565         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
15566         Solaris 10 problem.
15567         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
15568         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
15569         Reported by Jim Meyering.
15570
15571 2009-08-09  Bruno Haible  <bruno@clisp.org>
15572
15573         Avoid warnings from 'aclocal' that are due to a use of macro name
15574         AM_XGETTEXT_OPTION that is not defined in automake.
15575         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
15576         automake.
15577         * modules/error (configure.ac): Likewise.
15578         * modules/propername (configure.ac): Likewise.
15579         * modules/vasprintf (configure.ac): Likewise.
15580         * modules/verror (configure.ac): Likewise.
15581         * modules/xprintf (configure.ac): Likewise.
15582         * modules/xvasprintf (configure.ac): Likewise.
15583
15584 2009-08-08  Bruno Haible  <bruno@clisp.org>
15585
15586         Avoid compilation error in C++ mode.
15587         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
15588         Reported by Sam Steingold <sds@gnu.org>.
15589
15590 2009-08-08  Bruno Haible  <bruno@clisp.org>
15591
15592         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
15593         for the various Unix platforms.
15594         * doc/posix-headers/limits.texi: Update platforms list regarding
15595         HOST_NAME_MAX.
15596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15597
15598 2009-08-07  Jim Meyering  <meyering@redhat.com>
15599
15600         selinux-at: fix typo in a comment
15601         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
15602         Spotted by Paolo Bonzini.
15603
15604         selinux-at: remove redundant m4 code, add documentation
15605         * modules/selinux-at (configure.ac): Remove redundant code.
15606         LIB_SELINUX is already set via the dependent module, selinux-h.
15607         (Include): Add quotes around selinux-at.h.
15608         * lib/selinux-at.h: Add documentation.
15609         Reported by Bruno Haible in
15610         http://marc.info/?l=gnulib-bug&m=124958988300749
15611
15612 2009-08-07  Bruno Haible  <bruno@clisp.org>
15613
15614         Avoid link error on MacOS X 10.3 and 10.4.
15615         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
15616         on non-ELF systems.
15617         * lib/argp-pv.c (argp_program_version): Likewise.
15618         Reported by Simon Josefsson.
15619
15620 2009-08-07  Simon Josefsson  <simon@josefsson.org>
15621
15622         * tests/test-version-etc.sh: Use $EXEEXT.
15623
15624 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
15625
15626         update-copyright: update documentation to point to maint.mk
15627         * build-aux/update-copyright: Here.
15628
15629 2009-08-06  Jim Meyering  <meyering@redhat.com>
15630
15631         maint.mk: support update-copyright-local
15632         * top/maint.mk (update-copyright-local): Define place-holder.
15633         (update-copyright): Depend on $(update-copyright-local).
15634
15635 2009-08-06  Jim Meyering  <meyering@redhat.com>
15636
15637         selinux-at: new module
15638         Initially written for coreutils, this module will soon be
15639         used by findutils, too.
15640         * MODULES.html.sh [Misc]: Add selinux-at.
15641         * lib/selinux-at.h: New file, from coreutils.
15642         * lib/selinux-at.c: Likewise.
15643         * modules/selinux-at: Likewise.
15644         (License): Change from LGPL to GPL, since it depends
15645         on the GPL'd openat module.
15646
15647         doc: update README
15648         * README: Remove references to cogito.
15649         Remove cvs-repo-updating instructions from 2007.
15650         Don't imply that CVS is better if you have limited disk space.
15651
15652 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15653
15654         update-copyright: support C-style comments
15655         * build-aux/update-copyright: Implement and document.
15656         * tests/test-update-copyright.sh: Test.
15657
15658 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15659
15660         update-copyright: support omitted "(C)"
15661         * build-aux/update-copyright: Implement and document.  Also,
15662         allow variable whitespace before "(C)".
15663         * tests/test-update-copyright.sh: Test.
15664
15665 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15666
15667         update-copyright: don't trip on non-FSF copyright statements
15668         * build-aux/update-copyright: Fix so that the first correctly
15669         formatted FSF copyright statement is recognized no matter what
15670         appears before it.  Update documentation.
15671         * tests/test-update-copyright.sh: Test that.
15672
15673 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15674
15675         update-copyright: clean up code a little
15676         * build-aux/update-copyright: Append "_re" to the name of any
15677         variable holding a regular expression.
15678         Replace "old" and "new" with "stmt" in variable names.
15679         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
15680         handled correctly.
15681         Format code more consistently.
15682
15683 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
15684
15685         update-copyright-tests: improve portability
15686         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
15687         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
15688
15689 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15690
15691         update-copyright: support @copyright{} and &copy;
15692         * build-aux/update-copyright: Implement and document.
15693         * tests/test-update-copyright.sh: Test.
15694
15695 2009-08-04  Jim Meyering  <meyering@redhat.com>
15696
15697         update-copyright-tests: correctly test EOL=\r\n handling
15698         * tests/test-update-copyright.sh: Put \r at the end of some lines
15699         for the dos-eol tests.  Based on a patch by Joel E. Denny.
15700
15701         maint.mk: make update-copyright exclusion list more configurable
15702         * top/maint.mk (update-copyright): Default to excluding COPYING,
15703         but allow an override, in case someone does want to update that file.
15704
15705         maint.mk: don't update copyright date in COPYING
15706         * top/maint.mk (update-copyright): Exclude COPYING.
15707
15708         maint.mk: add a copyright-updating rule
15709         * top/maint.mk (update-copyright): New rule.
15710         Derived from coreutils/Makefile.am.
15711
15712         update-copyright: rename some variables
15713         * build-aux/update-copyright: Rename a few variables for clarity.
15714         Tweak syntax.  List Joel E. Denny as coauthor.
15715
15716 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
15717
15718         update-copyright: fix bug for 2-digit last year and add tests
15719         * build-aux/update-copyright: Fix bug.
15720         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
15721         specified.
15722         * modules/update-copyright-tests: New
15723         * tests/test-update-copyright.sh: New.
15724
15725 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15726
15727         update-copyright: handle leading tabs in line prefix
15728         * build-aux/update-copyright: Count leading tabs as 8 spaces
15729         when computing margin.  This helps with the formatting of
15730         ChangeLogs, for example.
15731         Fix documentation a little.
15732
15733 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15734
15735         update-copyright: support EOL=\r\n
15736         * build-aux/update-copyright: Implement that.
15737
15738 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
15739
15740         update-copyright: automatically format copyright statements
15741         * build-aux/update-copyright: Implement that.
15742         Also, be a little more predictable and safer by always failing
15743         when the full copyright format is not perfectly recognized as an
15744         unbroken whole.  Discussed at
15745         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
15746         Rewrite documentation.
15747
15748 2009-08-03  Bruno Haible  <bruno@clisp.org>
15749
15750         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
15751
15752 2009-08-02  Bruno Haible  <bruno@clisp.org>
15753
15754         Tests for module 'uname'.
15755         * modules/uname-tests: New file.
15756         * tests/test-uname.c: New file.
15757
15758         New module 'uname'.
15759         * lib/uname.c: New file.
15760         * m4/uname.m4: New file.
15761         * modules/uname: New file.
15762         * doc/posix-functions/uname.texi: Mention the new module.
15763
15764 2009-08-02  Bruno Haible  <bruno@clisp.org>
15765
15766         Tests for module 'sys_utsname'.
15767         * modules/sys_utsname-tests: New file.
15768         * tests/test-sys_utsname.c: New file.
15769
15770         New module 'sys_utsname'.
15771         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
15772         * m4/sys_utsname_h.m4: New file.
15773         * modules/sys_utsname: New file.
15774         * doc/posix-headers/sys_utsname.texi: Mention the new module.
15775
15776 2009-08-02  Bruno Haible  <bruno@clisp.org>
15777
15778         Implicitly initialize the sockets library.
15779         * lib/gethostname.c: Include sockets.h.
15780         (rpl_gethostname): Invoke gl_sockets_startup.
15781         * lib/socket.c: Include sockets.h.
15782         (rpl_socket): Invoke gl_sockets_startup.
15783         * modules/gethostname (Depends-on): Add sockets.
15784         * modules/socket (Depends-on): Likewise.
15785         * tests/test-poll.c: Don't include sockets.h.
15786         (main): Don't invoke gl_sockets_startup.
15787         * tests/test-select.c: Don't include sockets.h.
15788         (main): Don't invoke gl_sockets_startup.
15789
15790 2009-08-02  Bruno Haible  <bruno@clisp.org>
15791
15792         Allow multiple calls to gl_sockets_startup.
15793         * lib/sockets.c (initialized_sockets_version): New variable.
15794         (gl_sockets_startup): Do nothing if already called for this or a higher
15795         version.
15796         (gl_sockets_cleanup): Reset initialized_sockets_version.
15797
15798 2009-08-03  Simon Josefsson  <simon@josefsson.org>
15799
15800         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
15801         different project/version.
15802
15803 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
15804             Bruno Haible  <bruno@clisp.org>
15805
15806         Tests for module 'pipe-filter-gi'.
15807         * modules/pipe-filter-gi-tests: New file.
15808         * tests/test-pipe-filter-gi1.sh: New file.
15809         * tests/test-pipe-filter-gi1.c: New file.
15810         * tests/test-pipe-filter-gi2.sh: New file.
15811         * tests/test-pipe-filter-gi2-main.c: New file.
15812         * tests/test-pipe-filter-gi2-child.c: New file.
15813
15814         New module 'pipe-filter-gi'.
15815         * lib/pipe-filter-gi.c: New file.
15816         * modules/pipe-filter-gi: New file.
15817
15818 2009-08-02  Bruno Haible  <bruno@clisp.org>
15819             Paolo Bonzini  <bonzini@gnu.org>
15820
15821         Tests for module 'pipe-filter-ii'.
15822         * modules/pipe-filter-ii-tests: New file.
15823         * tests/test-pipe-filter-ii1.sh: New file.
15824         * tests/test-pipe-filter-ii1.c: New file.
15825         * tests/test-pipe-filter-ii2.sh: New file.
15826         * tests/test-pipe-filter-ii2-main.c: New file.
15827         * tests/test-pipe-filter-ii2-child.c: New file.
15828
15829         New module 'pipe-filter-ii'.
15830         * lib/pipe-filter.h: New file.
15831         * lib/pipe-filter-ii.c: New file.
15832         * lib/pipe-filter-aux.h: New file.
15833         * modules/pipe-filter-ii: New file.
15834
15835 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15836
15837         * lib/gc-libgcrypt.c: Change copyright to FSF.
15838         * lib/gc-gnulib.c: Likewise.
15839
15840 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
15841
15842         * lib/gethostname.c: Include limits.h.
15843
15844 2009-08-02  Simon Josefsson  <simon@josefsson.org>
15845             Bruno Haible  <bruno@clisp.org>
15846
15847         Ensure HOST_NAME_MAX as part of the gethostname module.
15848         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
15849         define also HOST_NAME_MAX.
15850         * tests/test-gethostname.c: Include <limits.h>.
15851         (main): Check also HOST_NAME_MAX.
15852         * doc/posix-headers/limits.texi: Document the mingw problem.
15853
15854 2009-08-02  Bruno Haible  <bruno@clisp.org>
15855
15856         * lib/gethostname.c (gethostname): Fix handling of large len argument.
15857         Add comments.
15858
15859 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15860
15861         * lib/gethostname.c: Add Windows wrapper.
15862         * m4/gethostname.m4: Look for gethostname in -lws2_32.
15863         * modules/gethostname: Depend on sys_socket & errno, for also
15864         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
15865         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
15866
15867 2009-07-31  Jim Meyering  <meyering@redhat.com>
15868
15869         getloadavg: fix symbol name in comment
15870         * lib/getloadavg.c: Correct a typo I introduced when adding
15871         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
15872         Matt Kraai spotted the problem.
15873
15874 2009-07-29  Matt Kraai  <mkraai@beckman.com>
15875
15876         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
15877         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
15878         code also if ! defined N_NAME_POINTER.
15879         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
15880         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
15881         but the n_name member is a 12-byte array.
15882
15883 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
15884
15885         update-copyright: generalize comment handling
15886         * build-aux/update-copyright: Handle copyright statements
15887         within more comment styles.
15888         Document usage.
15889         Report any file with an external copyright holder or parse failure.
15890
15891 2009-07-29  Jim Meyering  <meyering@redhat.com>
15892
15893         mktime: correct setting of REPLACE_MKTIME
15894         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
15895
15896         update-copyright: new module
15897         * modules/update-copyright: New file.
15898         * build-aux/update-copyright: New file.
15899         * MODULES.html.sh (maint+release support): Add update-copyright.
15900
15901 2009-07-27  Bruno Haible  <bruno@clisp.org>
15902
15903         Fix compilation error when <ctime> is used and mktime is replaced.
15904         * lib/time.in.h (mktime): New declaration.
15905         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
15906         REPLACE_MKTIME instead of defining mktime in config.h.
15907         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
15908         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
15909         Reported by Ross McFarland <rwmcfa1@neces.com>.
15910
15911 2009-07-27  Bruno Haible  <bruno@clisp.org>
15912
15913         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
15914         Reported by Matt Kraai <mkraai@beckman.com>.
15915
15916 2009-07-25  Jim Meyering  <meyering@redhat.com>
15917
15918         maint.mk: avoid warnings about missing files
15919         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
15920         diagnostic when .prev-version does not exist.
15921         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
15922         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
15923         nonexistent cfg.mk.
15924         Suggestions from Simon Josefsson.
15925
15926 2009-07-25  Bruno Haible  <bruno@clisp.org>
15927
15928         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
15929         defined as macros. Needed on QNX 6.4.1.
15930         Reported by Matt Kraai <mkraai@beckman.com>.
15931
15932 2009-07-23  Jim Meyering  <meyering@redhat.com>
15933
15934         maint.mk: invoke "make dist" with a working value of XZ_OPT
15935         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
15936
15937 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
15938
15939         Make fseeko.c compile on QNX.
15940         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
15941
15942 2009-07-22  Peter Simons  <simons@cryp.to>
15943
15944         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
15945         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
15946         * lib/md4.h: Likewise.
15947         * lib/md5.h: Likewise.
15948         * lib/sha1.h: Likewise.
15949         * lib/sha256.h: Likewise.
15950         * lib/sha512.h: Likewise.
15951
15952         tests-sha1: don't assign literal string to 'char *' variable
15953         * tests/test-sha1.c (main): Declare locals with "const" to match
15954         attributes of the right hand side.
15955
15956 2009-07-21  Eric Blake  <ebb9@byu.net>
15957
15958         dup2: fix more mingw problems
15959         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
15960         fd to itself.
15961         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15962         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
15963         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
15964         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
15965         care of mingw bugs.
15966
15967 2009-07-21  Jim Meyering  <meyering@redhat.com>
15968
15969         vc-list-files: avoid failure when /bin/sh is dash
15970         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
15971         On some Debian based systems, /bin/sh is a symlink to dash, and running
15972         this command would omit the "/" following each 'tests' prefix:
15973           dash -x build-aux/vc-list-files -C . tests
15974         That is because bash and dash work differently:
15975           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
15976           bash ok
15977           dash odd
15978
15979 2009-07-21  Eric Blake  <ebb9@byu.net>
15980
15981         dup2-tests: test previous patch
15982         * modules/dup2-tests: New file.
15983         * tests/test-dup2.c: Likewise.
15984         * tests/test-open.c (main): Avoid unspecified behavior.
15985         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
15986         test.
15987
15988         dup2: work around mingw and cygwin 1.5 bug
15989         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
15990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15991         * modules/unistd (Makefile.am): Substitute it.
15992         * lib/unistd.in.h (dup2): Declare the replacement.
15993         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
15994         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
15995         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
15996         * modules/execute (Depends-on): Add dup2.
15997         * modules/fseterr (Depends-on): Likewise.
15998         * modules/pipe (Depends-on): Likewise.
15999         * modules/posix_spawn-internal (Depends-on): Likewise.
16000
16001 2009-07-21  Bruno Haible  <bruno@clisp.org>
16002
16003         * modules/.gitattributes: New file.
16004
16005 2009-07-20  Bruno Haible  <bruno@clisp.org>
16006
16007         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16008         (main): Use it.
16009
16010 2009-07-20  Eric Blake  <ebb9@byu.net>
16011
16012         test-pipe: make a bit more robust.
16013         * tests/test-pipe.c (myerr): Allow error messages regardless of
16014         what we do to stderr.
16015         (test_pipe): Rearrange to avoid deadlock.
16016         (child_main): Try a larger read, to ensure we avoided deadlock.
16017         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16018         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16019         if misused.
16020
16021 2009-07-19  Jim Meyering  <meyering@redhat.com>
16022
16023         fts: avoid false-positive cycle-detection
16024         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16025         for each new command line argument.
16026
16027 2009-07-19  Bruno Haible  <bruno@clisp.org>
16028
16029         Fix build error on mingw with the modules sys_select and unistd.
16030         * modules/acl-tests (Depends-on): Add close.
16031         * modules/binary-io-tests (Depends-on): Likewise.
16032         * modules/closein-tests (Depends-on): Likewise.
16033         * modules/flock-tests (Depends-on): Likewise.
16034         * modules/fsync-tests (Depends-on): Likewise.
16035         * modules/lseek-tests (Depends-on): Likewise.
16036         * modules/pipe-tests (Depends-on): Likewise.
16037         * modules/posix_spawn-tests (Depends-on): Likewise.
16038         * modules/posix_spawnp-tests (Depends-on): Likewise.
16039         * modules/stat-time-tests (Depends-on): Likewise.
16040         * modules/yesno-tests (Depends-on): Likewise.
16041
16042 2009-07-19  Bruno Haible  <bruno@clisp.org>
16043
16044         Unify conditionals.
16045         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16046         macros, not at the compiler macros.
16047         * lib/pipe.c: Likewise.
16048         * lib/execute.c: Likewise.
16049         * lib/spawni.c: Likewise.
16050
16051 2009-07-19  Bruno Haible  <bruno@clisp.org>
16052
16053         Fix handling of closed stdin/stdout/stderr on mingw.
16054         * lib/w32spawn.h: Include unistd.h.
16055         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16056         file descriptor with O_NOINHERIT flag.
16057         (fd_safer_noinherit): New function, based on fd-safer.c.
16058         (dup_safer_noinherit): New function, based on dup-safer.c.
16059         (undup_safer_noinherit): New function.
16060         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16061         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16062         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16063         instead of fd_safer.
16064         * tests/test-pipe.c: Include <windows.h>.
16065         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16066
16067         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16068         from main.
16069         (test_pipe): Pass an extra argument for disambiguation.
16070         (main): Invoke parent_main or child_main.
16071
16072         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16073         consistently.
16074
16075 2009-07-18  Eric Blake  <ebb9@byu.net>
16076
16077         test-pipe: fix mingw build
16078         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16079
16080 2009-07-18  Bruno Haible  <bruno@clisp.org>
16081
16082         * modules/pipe-tests (Makefile.am): Fix typo.
16083
16084 2009-07-18  Eric Blake  <ebb9@byu.net>
16085
16086         error: fix mingw build
16087         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16088         Reported by Bruno Haible.
16089
16090         error: avoid undefined use of stdout
16091         * lib/error.c (error, error_at_line): Check that fd 1 is open
16092         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16093         is handling faults and the close_stdout module wants to report the
16094         detection of closed stdout as an error.
16095
16096 2009-07-17  Eric Blake  <ebb9@byu.net>
16097
16098         pipe: be robust in face of closed fds
16099         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16100         should cause child to misbehave.
16101         * modules/pipe-tests: New module.
16102         * tests/test-pipe.c: New file.
16103         * tests/test-pipe.sh: New file.
16104         Reported by Akim Demaille.
16105
16106 2009-07-14  Bruno Haible  <bruno@clisp.org>
16107
16108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16109         Reported by anonymous kc.
16110
16111 2009-07-07  Jim Meyering  <meyering@redhat.com>
16112
16113         maint.mk: don't look for translatable strings in *.m4 or *.mk
16114         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16115         when searching for translatable strings.
16116
16117 2009-07-05  Jim Meyering  <meyering@redhat.com>
16118
16119         remove superfluous parentheses in STREQ definition
16120         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16121         * lib/getugroups.c (STREQ): Likewise.
16122         * lib/fnmatch.c (STREQ): Likewise.
16123         Spotted by Bruno Haible.
16124
16125 2009-07-04  Jim Meyering  <meyering@redhat.com>
16126
16127         argv-iter: new module
16128         * MODULES.html.sh: Add argv-iter.
16129         * lib/argv-iter.c, lib/argv-iter.h: New files.
16130         * modules/argv-iter: New file.
16131         * modules/argv-iter-tests: New file.
16132         * tests/test-argv-iter.c: Test it.
16133
16134 2009-07-04  Bruno Haible  <bruno@clisp.org>
16135
16136         Fix assertion.
16137         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16138         contains more exact copies of a given entry than file2, leave the extra
16139         copies unpaired rather than aborting.
16140         Reported by Eric Blake.
16141
16142 2009-07-02  Bruno Haible  <bruno@clisp.org>
16143
16144         Speedup git-merge-changelog for git cherry-pick.
16145         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16146         (entries_mapping_get): New function, extracted from compute_mapping.
16147         (entries_mapping_reverse_get): New function.
16148         (compute_mapping): Add a 'full' argument. Return the result in a
16149         'struct entries_mapping'.
16150         (main): Update. Access the mappings through entries_mapping_get.
16151         Reported by Eric Blake.
16152
16153 2009-07-02  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16156         best_i.
16157
16158 2009-07-02  Bruno Haible  <bruno@clisp.org>
16159
16160         Speed up approximate search for matching ChangeLog entries.
16161         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16162         argument. Call fstrcmp_bounded instead of fstrcmp.
16163         (compute_mapping, try_split_merged_entry, main): Update callers.
16164
16165 2009-07-02  Bruno Haible  <bruno@clisp.org>
16166
16167         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16168
16169 2009-06-30  Bruno Haible  <bruno@clisp.org>
16170
16171         Reduce the number of uc_is_cased calls.
16172         * lib/unicase.h (casing_suffix_context_t): Add
16173         'first_char_except_ignorable' field.
16174         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16175         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16176         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16177         Update initializer.
16178         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16179         case-ignorable characters.
16180         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16181         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16182         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16183         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16184         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16185
16186 2009-06-30  Bruno Haible  <bruno@clisp.org>
16187
16188         Tests for module 'unicase/ignorable'.
16189         * modules/unicase/ignorable-tests: New file.
16190         * tests/unicase/test-ignorable.c: New file, generated by
16191         gen-uni-tables.
16192
16193         Tests for module 'unicase/cased'.
16194         * modules/unicase/cased-tests: New file.
16195         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16196         * tests/unicase/test-predicate-part1.h: New file, derived from
16197         tests/unictype/test-predicate-part1.h.
16198         * tests/unicase/test-predicate-part2.h: New file, same as
16199         tests/unictype/test-predicate-part2.h.
16200
16201         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16202         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16203         (output_casing_properties): New function.
16204         (main): Call it.
16205         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16206         * lib/unicase/cased.c: Include unictype/bitmap.h.
16207         (uc_is_cased): Define through a bitmap lookup.
16208         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16209         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16210         (uc_is_case_ignorable): Define through a bitmap lookup.
16211         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16212         lib/unictype/bitmap.h.
16213         (Depends-on): Add inline. Clean up.
16214         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16215         lib/unictype/bitmap.h.
16216         (Depends-on): Add inline. Clean up.
16217         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16218         recognition.
16219         * tests/unicase/test-u16-tolower.c (main): Likewise.
16220         * tests/unicase/test-u32-tolower.c (main): Likewise.
16221
16222 2009-06-30  Bruno Haible  <bruno@clisp.org>
16223
16224         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16225         * lib/unicase/u16-casemap.c: Likewise.
16226         * lib/unicase/u32-casemap.c: Likewise.
16227
16228 2009-06-29  Bruno Haible  <bruno@clisp.org>
16229
16230         Define u32_casefold as a wrapper around u32_ct_casefold.
16231         * lib/unicase/u32-casefold.c: Update.
16232         * modules/unicase/u32-casefold (Depends-on): Add
16233         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16234         unicase/empty-suffix-context. Clean up.
16235
16236         Define u16_casefold as a wrapper around u16_ct_casefold.
16237         * lib/unicase/u16-casefold.c: Update.
16238         * modules/unicase/u16-casefold (Depends-on): Add
16239         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16240         unicase/empty-suffix-context. Clean up.
16241
16242         Define u8_casefold as a wrapper around u8_ct_casefold.
16243         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16244         * lib/unicase/u8-casefold.c: Update.
16245         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16246         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16247
16248         Define u32_totitle as a wrapper around u32_ct_totitle.
16249         * lib/unicase/u32-totitle.c: Update.
16250         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16251         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16252
16253         Define u16_totitle as a wrapper around u16_ct_totitle.
16254         * lib/unicase/u16-totitle.c: Update.
16255         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16256         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16257
16258         Define u8_totitle as a wrapper around u8_ct_totitle.
16259         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16260         functions.
16261         (FUNC): Delegate to U_CT_TOTITLE.
16262         * lib/unicase/u8-totitle.c: Update.
16263         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16264         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16265
16266         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16267         invocation.
16268         * modules/unicase/u32-tolower (Depends-on): Add
16269         unicase/empty-prefix-context, unicase/empty-suffix-context.
16270
16271         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16272         invocation.
16273         * modules/unicase/u16-tolower (Depends-on): Add
16274         unicase/empty-prefix-context, unicase/empty-suffix-context.
16275
16276         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16277         * modules/unicase/u8-tolower (Depends-on): Add
16278         unicase/empty-prefix-context, unicase/empty-suffix-context.
16279
16280         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16281         invocation.
16282         * modules/unicase/u32-toupper (Depends-on): Add
16283         unicase/empty-prefix-context, unicase/empty-suffix-context.
16284
16285         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16286         invocation.
16287         * modules/unicase/u16-toupper (Depends-on): Add
16288         unicase/empty-prefix-context, unicase/empty-suffix-context.
16289
16290         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16291         * modules/unicase/u8-toupper (Depends-on): Add
16292         unicase/empty-prefix-context, unicase/empty-suffix-context.
16293
16294         New module 'unicase/u32-ct-casefold'.
16295         * lib/unicase/u32-ct-casefold.c: New file.
16296         * modules/unicase/u32-ct-casefold: New file.
16297
16298         New module 'unicase/u16-ct-casefold'.
16299         * lib/unicase/u16-ct-casefold.c: New file.
16300         * modules/unicase/u16-ct-casefold: New file.
16301
16302         New module 'unicase/u8-ct-casefold'.
16303         * lib/unicase/u8-ct-casefold.c: New file.
16304         * lib/unicase/u-ct-casefold.h: New file, derived from
16305         lib/unicase/u-casefold.h.
16306         * modules/unicase/u8-ct-casefold: New file.
16307
16308         New module 'unicase/u32-ct-totitle'.
16309         * lib/unicase/u32-ct-totitle.c: New file.
16310         * modules/unicase/u32-ct-totitle: New file.
16311
16312         New module 'unicase/u16-ct-totitle'.
16313         * lib/unicase/u16-ct-totitle.c: New file.
16314         * modules/unicase/u16-ct-totitle: New file.
16315
16316         New module 'unicase/u8-ct-totitle'.
16317         * lib/unicase/u8-ct-totitle.c: New file.
16318         * lib/unicase/u-ct-totitle.h: New file, derived from
16319         lib/unicase/u-totitle.h.
16320         * modules/unicase/u8-ct-totitle: New file.
16321
16322         New module 'unicase/u32-ct-tolower'.
16323         * lib/unicase/u32-ct-tolower.c: New file.
16324         * modules/unicase/u32-ct-tolower: New file.
16325
16326         New module 'unicase/u16-ct-tolower'.
16327         * lib/unicase/u16-ct-tolower.c: New file.
16328         * modules/unicase/u16-ct-tolower: New file.
16329
16330         New module 'unicase/u8-ct-tolower'.
16331         * lib/unicase/u8-ct-tolower.c: New file.
16332         * modules/unicase/u8-ct-tolower: New file.
16333
16334         New module 'unicase/u32-ct-toupper'.
16335         * lib/unicase/u32-ct-toupper.c: New file.
16336         * modules/unicase/u32-ct-toupper: New file.
16337
16338         New module 'unicase/u16-ct-toupper'.
16339         * lib/unicase/u16-ct-toupper.c: New file.
16340         * modules/unicase/u16-ct-toupper: New file.
16341
16342         New module 'unicase/u8-ct-toupper'.
16343         * lib/unicase/u8-ct-toupper.c: New file.
16344         * modules/unicase/u8-ct-toupper: New file.
16345
16346         Add context arguments to u*_casemap functions.
16347         * lib/unicase/unicasemap.h: Include unicase.h.
16348         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16349         suffix_context arguments.
16350         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16351         functions.
16352         (FUNC): Add prefix_context and suffix_context arguments. Use
16353         uc_is_cased and uc_is_case_ignorable.
16354         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16355         * lib/unicase/u16-casemap.c: Likewise.
16356         * lib/unicase/u32-casemap.c: Likewise.
16357         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16358         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16359         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16360         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16361         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16362         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16363
16364         New module 'unicase/u32-suffix-context'.
16365         * lib/unicase/u32-suffix-context.c: New file.
16366         * modules/unicase/u32-suffix-context: New file.
16367
16368         New module 'unicase/u16-suffix-context'.
16369         * lib/unicase/u16-suffix-context.c: New file.
16370         * modules/unicase/u16-suffix-context: New file.
16371
16372         New module 'unicase/u8-suffix-context'.
16373         * lib/unicase/u8-suffix-context.c: New file.
16374         * lib/unicase/u-suffix-context.h: New file.
16375         * modules/unicase/u8-suffix-context: New file.
16376
16377         New module 'unicase/empty-suffix-context'.
16378         * lib/unicase/empty-suffix-context.c: New file.
16379         * modules/unicase/empty-suffix-context: New file.
16380
16381         New module 'unicase/u32-prefix-context'.
16382         * lib/unicase/u32-prefix-context.c: New file.
16383         * modules/unicase/u32-prefix-context: New file.
16384
16385         New module 'unicase/u16-prefix-context'.
16386         * lib/unicase/u16-prefix-context.c: New file.
16387         * modules/unicase/u16-prefix-context: New file.
16388
16389         New module 'unicase/u8-prefix-context'.
16390         * lib/unicase/u8-prefix-context.c: New file.
16391         * lib/unicase/u-prefix-context.h: New file.
16392         * lib/unicase/context.h: New file.
16393         * modules/unicase/u8-prefix-context: New file.
16394
16395         New module 'unicase/empty-prefix-context'.
16396         * lib/unicase/empty-prefix-context.c: New file.
16397         * modules/unicase/empty-prefix-context: New file.
16398
16399         New module 'unicase/ignorable'.
16400         * lib/unicase/ignorable.c: New file.
16401         * modules/unicase/ignorable: New file.
16402
16403         New module 'unicase/cased'.
16404         * lib/unicase/caseprop.h: New file.
16405         * lib/unicase/cased.c: New file.
16406         * modules/unicase/cased: New file.
16407
16408         New functions for case mapping of substrings.
16409         * lib/unicase.h (casing_prefix_context_t): New type.
16410         (unicase_empty_prefix_context): New variable.
16411         (u8_casing_prefix_context, u16_casing_prefix_context,
16412         u32_casing_prefix_context, u8_casing_prefixes_context,
16413         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16414         declarations.
16415         (casing_suffix_context_t): New type.
16416         (unicase_empty_suffix_context): New variable.
16417         (u8_casing_suffix_context, u16_casing_suffix_context,
16418         u32_casing_suffix_context, u8_casing_suffixes_context,
16419         u16_casing_suffixes_context, u32_casing_suffixes_context,
16420         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16421         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16422         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16423         declarations.
16424
16425 2009-06-28  Jim Meyering  <meyering@redhat.com>
16426
16427         boostrap: indent only with spaces
16428         * build-aux/bootstrap: Indent only with spaces, never TABs.
16429
16430         bootstrap: split long lines
16431         * build-aux/bootstrap: Keep line length < 80.
16432
16433         bootstrap: sync from coreutils
16434         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16435         just as autoreconf does.  Verify a list of prerequisite
16436         package-name,version-number pairs if defined in bootstrap.conf.
16437         Refer to README-prereq, if prerequisites are not satisfied.
16438
16439 2009-06-27  Eric Blake  <ebb9@byu.net>
16440
16441         tests: add test for bogus NULL definition
16442         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16443         * tests/test-stdlib.c: Likewise.
16444         * tests/test-string.c: Likewise.
16445         * tests/test-locale.c: Likewise.
16446         * tests/test-unistd.c: Likewise.
16447         * modules/stdio-tests (Depends-on): Add verify.
16448         * modules/stdlib-tests (Depends-on): Likewise.
16449         * modules/string-tests (Depends-on): Likewise.
16450         * modules/locale-tests (Depends-on): Likewise.
16451         * modules/unistd-tests (Depends-on): Likewise.
16452
16453 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16454
16455         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16456         self-explaining comment.
16457         * m4/selinux-selinux-h: Update serial.
16458         (gl_LIBSELINUX): New macro, adding a warning for missing development
16459         packages to code extracted from...
16460         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16461         Add warning for missing development packages here, too.
16462
16463 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16464
16465         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16466
16467 2009-06-25  Eric Blake  <ebb9@byu.net>
16468
16469         version-etc: fix regression
16470         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16471         gcc.
16472         (version_etc): Use it, to catch bugs with trailing NULL.
16473         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16474         (version_etc_va): Fix logic bug.
16475         * modules/version-etc-tests: Add test.
16476         * tests/test-version-etc.c: New file.
16477         * tests/test-version-etc.sh: Likewise.
16478
16479 2009-06-25  Sam Steingold  <sds@gnu.org>
16480
16481         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16482         mbtowc declaration.
16483
16484 2009-06-25  Eric Blake  <ebb9@byu.net>
16485
16486         fpurge: migrate into <stdio.h>
16487         * lib/fpurge.h: Delete...
16488         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16489         * lib/fpurge.c (fpurge): Change declaring header.
16490         * modules/fpurge (Files): Drop deleted file.
16491         (Depends-on): Add stdio.
16492         (configure.ac): Set witness.
16493         * modules/stdio (Makefile.am): Support fpurge macros.
16494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16495         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16496         * lib/fflush.c: Update client.
16497         * tests/test-fpurge.c: Likewise.
16498         * NEWS: Mention the change.
16499
16500 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16501
16502         * lib/argp-version-etc.c (program_authors): Add const
16503         qualifier.
16504         * lib/version-etc.c: Fix typos in the comments.
16505         * modules/argp-version-etc: Depends on version-etc.
16506
16507 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16508
16509         argp-version-etc: new module.
16510
16511         * lib/argp-version-etc.c: New file.
16512         * lib/argp-version-etc.h: New file.
16513         * modules/argp-version-etc: New file.
16514         * modules/argp-version-etc-tests: New file.
16515         * tests/test-argp-version-etc.c: New test.
16516         * tests/test-argp-version-etc-1.sh: New test.
16517
16518 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16519
16520         Provide additional interfaces and documentation for version-etc
16521         module.
16522
16523         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16524         interfaces.
16525         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16526         prototypes.
16527
16528 2009-06-24  Bruno Haible  <bruno@clisp.org>
16529
16530         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
16531         HAVE_LIB${NAME} macro.
16532         Reported by Sam Steingold <sds@gnu.org>.
16533
16534 2009-06-23  Simon Josefsson  <simon@josefsson.org>
16535
16536         * modules/hash-tests (test_hash_LDADD): Link to libintl when
16537         needed.
16538
16539 2009-06-21  Bruno Haible  <bruno@clisp.org>
16540
16541         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
16542         work.
16543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
16544         together with LIB${NAME}, LTLIB${NAME}.
16545         Reported by Sam Steingold <sds@gnu.org>.
16546
16547 2009-06-20  Jim Meyering  <meyering@redhat.com>
16548
16549         tests: make sc_require_test_exit_idiom more generic
16550         * top/maint.mk (Exit_witness_file): New overridable variable.
16551         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
16552         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
16553
16554 2009-06-19  Jim Meyering  <meyering@redhat.com>
16555
16556         hash: reverse order of src/dst parameters in an internal interface
16557         * lib/hash.c (transfer_entries): Reverse order of parameters to
16558         put DST before SRC.  Adjust callers.
16559
16560         tests: test-hash: avoid wholesale duplication
16561         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
16562         Instead, use a loop and add a single conditional.
16563
16564         tests: test-hash: allow seed selection via a command line argument
16565         * tests/test-hash.c (get_seed): New function.
16566         (main): Use it.
16567
16568 2009-06-19  Eric Blake  <ebb9@byu.net>
16569
16570         hash: avoid memory leak on allocation failure
16571         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
16572         failure.  Factor repeated algorithm...
16573         (transfer_entries): ...into new helper routine.
16574         (hash_delete): React to hash_rehash return value.
16575
16576         hash: reduce memory pressure in hash_rehash no-op case
16577         * lib/hash.c (next_prime): Avoid overflow.
16578         (hash_initialize): Factor bucket size computation...
16579         (compute_bucket_size): ...into new helper function.
16580         (hash_rehash): Use new function and open coding to reduce memory
16581         pressure, and avoid a memory leak in USE_OBSTACK code.
16582         Reported by Jim Meyering.
16583
16584 2009-06-18  Eric Blake  <ebb9@byu.net>
16585
16586         hash: make rotation more obvious
16587         * modules/hash (Depends-on): Add bitrotate and stdint.
16588         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
16589         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
16590         (SIZE_MAX): Rely on headers for definition.
16591         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
16592         (raw_hasher): Use rotr_sz.
16593         Suggested by Jim Meyering.
16594
16595         hash: fix memory leak in last patch
16596         * lib/hash.c (hash_rehash): Avoid memory leak.
16597
16598         hash: avoid no-op rehashing
16599         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
16600
16601         hash: provide default callback functions
16602         * lib/hash.c (raw_hasher, raw_comparator): New functions.
16603         (hash_initialize): Use them as defaults.
16604         * tests/test-hash.c (main): Test this.
16605
16606         hash: minor optimization
16607         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
16608         when possible.
16609         (hash_initialize): Document this promise.
16610         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
16611         * tests/test-hash.c (hash_compare_strings): Test this.
16612
16613 2009-06-18  Bruno Haible  <bruno@clisp.org>
16614
16615         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
16616         going to be replaced anyway.
16617
16618 2009-06-18  Bruno Haible  <bruno@clisp.org>
16619
16620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
16621         in one place.
16622         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
16623         be replaced anyway.
16624
16625 2009-06-18  Eric Blake  <ebb9@byu.net>
16626
16627         hash: check for resize before insertion
16628         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
16629         threshold before insertion, so that a pathological hash_rehash
16630         that fills every bucket can still trigger another rehash.
16631
16632 2009-06-18  Jim Meyering  <meyering@redhat.com>
16633
16634         hash-tests: add a loop around the small tests
16635         * tests/test-hash.c (main): Repeat small tests with selected
16636         small initial table sizes.
16637
16638 2009-06-17  Eric Blake  <ebb9@byu.net>
16639
16640         hash: minor cleanups
16641         * lib/hash.h (hash_entry): Make opaque, by moving...
16642         * lib/hash.c (hash_entry): ...here.
16643         (hash_insert): Clarify restrictions on what can be inserted.
16644         (hash_get_next): Clarify when it is safe to remove an element
16645         during traversal.
16646         (check_tuning): Skip verification when tuning is known safe.
16647         (hash_initialize): Clarify restrictions on tuning.
16648
16649 2009-06-17  Jim Meyering  <jim@meyering.net>
16650         and Eric Blake  <ebb9@byu.net>
16651
16652         hash-tests: new module
16653         * modules/hash-tests: New file.
16654         * tests/test-hash.c: New file.
16655
16656 2009-06-17  Eric Blake  <ebb9@byu.net>
16657
16658         strstr-simple: document new module
16659         * MODULES.html.sh: Document new module.
16660
16661         strstr, strcasestr: replace on platforms with broken memchr
16662         * modules/strstr: Split into...
16663         * modules/strstr-simple: ...new module that does not care about
16664         performance, but does care about glibc bug.
16665         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
16666         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
16667         if platform memchr is broken, per Debian bug 521737.
16668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
16669         memchr.
16670         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
16671         * doc/posix-functions/strstr.texi (strstr): Document the fix.
16672         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16673         * modules/mountlist (Depends-on): Add strstr-simple.
16674         * modules/gen-uni-tables (Depends-on): Likewise.
16675         * modules/argz (Depends-on): Add strstr.
16676
16677 2009-06-17  Bruno Haible  <bruno@clisp.org>
16678
16679         * modules/posix_spawn-internal (Depends-on): Add errno.
16680
16681 2009-06-17  Bruno Haible  <bruno@clisp.org>
16682
16683         Define missing ESTALE on Interix 3.5.
16684         * lib/errno.in.h (ESTALE): Assign a value if missing.
16685         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
16686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
16687         missing.
16688         * doc/posix-headers/errno.texi: Mention the Interix bug.
16689         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
16690
16691 2009-06-15  Eric Blake  <ebb9@byu.net>
16692
16693         memchr, memchr2: add valgrind exception
16694         * lib/memchr.valgrind: New file.
16695         * lib/memchr2.valgrind: New file.
16696         * modules/memchr (Files): Distribute valgrind file.
16697         * modules/memchr2 (Files): Likewise.
16698
16699         docs: memchr is no longer obsolete
16700         * MODULES.html.sh: Move memchr from obsolete to string.h section.
16701         * lib/string.in.h (memchr): Simplify logic.
16702
16703 2009-06-14  Jim Meyering  <meyering@redhat.com>
16704
16705         link-follow: fix the "checking..." message to not mention trailing slash
16706         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
16707         never considered trailing slashes.
16708
16709 2009-06-14  Bruno Haible  <bruno@clisp.org>
16710
16711         * m4/memchr.m4: Mention also the bug on IA-64.
16712         * doc/posix-functions/memchr.texi: Likewise.
16713
16714 2009-06-12  Eric Blake  <ebb9@byu.net>
16715
16716         memchr: detect broken x86_64 and alpha implementations
16717         * modules/memchr-tests (Depends-on): Move mmap detection...
16718         * modules/memchr (Depends-on): ...here.
16719         (configure.ac): Set indicator.
16720         * lib/string.in.h (memchr): Declare replacement.
16721         * modules/string (Makefile.am): Trigger replacement.
16722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16723         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
16724         bugs.
16725         * doc/posix-functions/memchr.texi (memchr): Document the bug.
16726         * modules/getpagesize (License): Relax license.
16727
16728 2009-06-11  Bruno Haible  <bruno@clisp.org>
16729
16730         * lib/idpriv.h: Add more references.
16731
16732 2009-06-08  Bruno Haible  <bruno@clisp.org>
16733
16734         Tests for module 'idpriv-droptemp'.
16735         * modules/idpriv-droptemp-tests: New file.
16736         * tests/test-idpriv-droptemp.sh: New file.
16737         * tests/test-idpriv-droptemp.su.sh: New file.
16738         * tests/test-idpriv-droptemp.c: New file.
16739
16740         New module 'idpriv-droptemp'.
16741         * lib/idpriv-droptemp.c: New file.
16742         * modules/idpriv-droptemp: New file.
16743
16744 2009-06-08  Bruno Haible  <bruno@clisp.org>
16745
16746         Tests for module 'idpriv-drop'.
16747         * modules/idpriv-drop-tests: New file.
16748         * tests/test-idpriv-drop.sh: New file.
16749         * tests/test-idpriv-drop.su.sh: New file.
16750         * tests/test-idpriv-drop.c: New file.
16751
16752         New module 'idpriv-drop'.
16753         * lib/idpriv.h: New file.
16754         * lib-idpriv-drop.c: New file.
16755         * m4/idpriv.m4: New file.
16756         * modules/idpriv-drop: New file.
16757
16758 2009-06-08  Bruno Haible  <bruno@clisp.org>
16759
16760         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
16761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16767
16768 2009-06-08  Eric Blake  <ebb9@byu.net>
16769
16770         test-strstr: use memory fence, when possible
16771         * tests/test-strstr.c (main): Use memory fence, in order to be
16772         more likely to trigger Debian bug 521737.
16773         * modules/strstr-tests (Files): Pull in additional files.
16774
16775         memchr: no longer obsolete, for wider field testing
16776         * modules/memchr (Status, Notice): Delete, this module is no
16777         longer obsolete.
16778         * modules/vasnprintf (Depends-on): Add memchr.
16779
16780 2009-06-07  Jim Meyering  <meyering@redhat.com>
16781
16782         hash: declare some functions with the warn_unused_result attribute
16783         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
16784
16785 2009-06-07  Bruno Haible  <bruno@clisp.org>
16786
16787         * tests/test-alignof.c: Don't test int64_t if it does not exist.
16788         Reported by Eric Blake.
16789
16790 2009-06-06  Eric Blake  <ebb9@byu.net>
16791
16792         test-alignof: fix typo with long double
16793         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
16794         compiler error.
16795
16796 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
16797
16798         Escape non-texinfo { and }s.
16799         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
16800         markup error.
16801
16802 2009-06-04  Jim Meyering  <meyering@redhat.com>
16803
16804         gitlog-to-changelog: don't infloop on an empty commit log
16805         * build-aux/gitlog-to-changelog: Warn about an empty log message.
16806         Reported by Boris Petersen <transacid@centerim.org>.
16807
16808 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
16809
16810         version-etc: extend for packagers
16811         Add three new configure options, intended for packagers:
16812           --with-packager="packager name"
16813           --with-packager-version="packager-specific version"
16814           --with-packager-bug-reports="packager bug reporting"
16815         An example with coreutils:
16816           $ ./configure \
16817             --with-packager=Gentoo \
16818             --with-packager-bug-report=http://bugs.gentoo.org/ \
16819             --with-packager-version="patchset 1.6"
16820           $ ./src/ls --version | head -n2
16821           ls (GNU coreutils) 7.1-dirty
16822           Packaged by Gentoo (patchset 1.6)
16823         Note that the bug reporting info via --help doesn't show up because
16824         coreutils uses its own custom emit_bug_reporting_address() implementation
16825         in src/system.h.  If it didn't, it'd look like:
16826           $ ./src/ls --help | tail -n4
16827           Report bugs to <bug-coreutils@gnu.org>.
16828           Report Gentoo bugs to <http://bugs.gentoo.org/>.
16829           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
16830           General help using GNU software: <http://www.gnu.org/gethelp/>.
16831         * lib/version-etc.c: Print new information, if provided.
16832         * m4/version-etc.m4: New file.
16833         * modules/version-etc (Files): Add m4/version-etc.m4.
16834         (configure.ac): Add gl_VERSION_ETC.
16835
16836 2009-05-31  Bruno Haible  <bruno@clisp.org>
16837
16838         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
16839         and 'int64_t'.
16840         * modules/alignof-tests (Dependencies): Add stdint.
16841         Reported by Eric Blake.
16842
16843 2009-05-31  Bruno Haible  <bruno@clisp.org>
16844
16845         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
16846         restriction due to compiler bugs.
16847         Reported by Eric Blake.
16848
16849 2009-05-31  Simon Josefsson  <simon@josefsson.org>
16850             Bruno Haible  <bruno@clisp.org>
16851
16852         Fix test-alignof failure.
16853         * lib/alignof.h (alignof_slot): New macro.
16854         (alignof_type): New macro, with the same semantics as the previous
16855         'alignof'.
16856         (alignof): Alias to alignof_slot.
16857         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
16858         check that the results are usable as constant expressions.
16859
16860 2009-05-31  Bruno Haible  <bruno@clisp.org>
16861
16862         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
16863         * tests/test-memchr.c (main): Check that memchr does not read past the
16864         first occurrence of the byte.
16865         * tests/test-strstr.c (main): Update comment.
16866         Suggested by Eric Blake.
16867
16868 2009-05-30  Bruno Haible  <bruno@clisp.org>
16869
16870         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
16871         detail how to use dumpbin.
16872         Reported by David Byron <dbyron@dbyron.com>.
16873
16874 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16875
16876         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
16877
16878 2009-06-02  Simon Josefsson  <simon@josefsson.org>
16879
16880         * m4/manywarnings.m4: Add GCC 4.4 warnings.
16881
16882 2009-05-28  Bruno Haible  <bruno@clisp.org>
16883
16884         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
16885         build-aux/ files.
16886
16887 2009-05-28  Simon Josefsson  <simon@josefsson.org>
16888
16889         * gnulib-tool (func_import): Transform license on build-aux/ files too.
16890
16891 2009-05-27  Simon Josefsson  <simon@josefsson.org>
16892
16893         * gnulib-tool (sed_transform_main_lib_file)
16894         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
16895         regexps.
16896
16897 2009-05-26  Simon Josefsson  <simon@josefsson.org>
16898
16899         * tests/test-strstr.c: Add another self-test.
16900         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
16901         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
16902
16903 2009-05-23  Bruno Haible  <bruno@clisp.org>
16904
16905         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
16906         change.
16907
16908 2009-05-21  Bruno Haible  <bruno@clisp.org>
16909
16910         Simplify use of mode_t varargs.
16911         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
16912         uses 'mode_t' or 'int'.
16913         * lib/openat.c (openat): Likewise.
16914         * lib/open-safer.c (open_safer): Likewise.
16915         * m4/mode_t.m4: New file.
16916         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
16917         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
16918         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
16919         * modules/open (Files): Add m4/mode_t.m4.
16920         * modules/openat (Files): Likewise.
16921         * modules/fcntl-safer (Files): Likewise.
16922         Suggested by Eric Blake.
16923
16924 2009-05-21  Pádraig Brady  <P@draigbrady.com>
16925
16926         * doc/glibc-functions/fallocate.texi: New file.
16927         * doc/gnulib.texi: Include it.
16928
16929 2009-05-21  Eric Blake  <ebb9@byu.net>
16930             Bruno Haible  <bruno@clisp.org>
16931
16932         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
16933         invocations.
16934         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16935
16936 2009-05-21  Eric Blake  <ebb9@byu.net>
16937             Bruno Haible  <bruno@clisp.org>
16938
16939         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
16940         include_next. Fix of 2008-11-20 commit.
16941         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
16942         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
16943         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
16944         NEXT_MATH_H.
16945         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
16946         instead of NEXT_MATH_H.
16947
16948 2009-05-21  Bruno Haible  <bruno@clisp.org>
16949
16950         Avoid redefinition warnings for SIZE_MAX.
16951         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
16952         Reported by Simon Josefsson.
16953
16954 2009-05-21  Bruno Haible  <bruno@clisp.org>
16955
16956         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
16957         AC_CACHE_VAL.
16958
16959 2009-05-20  Bruno Haible  <bruno@clisp.org>
16960
16961         Make zeroptr.h work on mingw.
16962         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
16963         mprotect.
16964         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
16965         * modules/memchr2-tests (configure.ac): Likewise.
16966         * modules/memcmp-tests (configure.ac): Likewise.
16967         * modules/memmem-tests (configure.ac): Likewise.
16968         * modules/memrchr-tests (configure.ac): Likewise.
16969         Reported by Simon Josefsson.
16970
16971 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16972
16973         * tests/test-glob.c: Include string.h for strcmp prototype.
16974
16975 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16976
16977         * modules/getdelim (Depends-on): Add explicit stdint, although it
16978         was implicitly already pulled in via realloc-posix.
16979         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
16980
16981 2009-05-20  Simon Josefsson  <simon@josefsson.org>
16982
16983         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
16984         G. Christensen" <tgc@jupiterrise.com>.
16985         * m4/sys_socket_h.m4: Check for sa_family_t.
16986         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
16987         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
16988         * tests/test-sys_socket.c: Check that sa_family_t works.
16989
16990 2009-05-18  Eric Blake  <ebb9@byu.net>
16991
16992         maint.mk: allow gnulib_dir in VPATH build
16993         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
16994
16995 2009-05-15  Jim Meyering  <meyering@redhat.com>
16996
16997         maint.mk: Give gnulib_dir a default definition.
16998         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
16999         Thus, most packages no longer need to specify this variable in cfg.mk
17000
17001 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17002
17003         rename.m4: fix typos that would make non-mingw cross-configure fail
17004         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17005
17006 2009-05-13  Eric Blake  <ebb9@byu.net>
17007
17008         mmap-anon: avoid out-of-order autoconf expansion
17009         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17010         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17011         * modules/memchr-tests (Depends-on): Add extensions.
17012         * modules/memchr2-tests (Depends-on): Add extensions.
17013         * modules/memcmp-tests (Depends-on): Add extensions.
17014         * modules/memmem-tests (Depends-on): Add extensions.
17015         * modules/memrchr-tests (Depends-on): Add extensions.
17016
17017 2009-05-13  Bruno Haible  <bruno@clisp.org>
17018
17019         Make some tests ISO C 99 compliant.
17020         * tests/zerosize-ptr.h: New file.
17021         * tests/test-memchr.c: Include zerosize-ptr.h.
17022         (main): Use a zero-size object pointer instead of NULL.
17023         * tests/test-memchr2.c: Include zerosize-ptr.h.
17024         (main): Use a zero-size object pointer instead of NULL.
17025         * tests/test-memcmp.c: Include zerosize-ptr.h.
17026         (main): Use a zero-size object pointer instead of NULL.
17027         * tests/test-memmem.c: Include zerosize-ptr.h.
17028         (main): Use a zero-size object pointer instead of NULL.
17029         * tests/test-memrchr.c: Include zerosize-ptr.h.
17030         (main): Use a zero-size object pointer instead of NULL.
17031         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17032         m4/mmap-anon.m4.
17033         (Depends-on): Add getpagesize.
17034         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17035         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17036         m4/mmap-anon.m4.
17037         (Depends-on): Add getpagesize.
17038         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17039         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17040         m4/mmap-anon.m4.
17041         (Depends-on): Add getpagesize.
17042         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17043         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17044         m4/mmap-anon.m4.
17045         (Depends-on): Add getpagesize.
17046         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17047         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17048         m4/mmap-anon.m4.
17049         (Depends-on): Add getpagesize.
17050         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17051
17052 2009-05-12  Bruno Haible  <bruno@clisp.org>
17053
17054         Tests for module 'alignof'.
17055         * modules/alignof-tests: New file.
17056         * tests/test-alignof.c: New file.
17057
17058 2009-05-12  Bruno Haible  <bruno@clisp.org>
17059
17060         Fix alignof macro.
17061         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17062         vendor compilers that are always correct.
17063
17064 2009-05-12  Bruno Haible  <bruno@clisp.org>
17065
17066         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17067         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17068         not whether its fully works.
17069
17070 2009-05-12  Bruno Haible  <bruno@clisp.org>
17071
17072         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17073
17074 2009-05-12  Jim Meyering  <meyering@redhat.com>
17075
17076         * top/maint.mk: Adjust backslash alignment.
17077
17078 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17079
17080         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17081
17082 2009-05-11  Eric Blake  <ebb9@byu.net>
17083
17084         argp: avoid undefined behavior
17085         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17086         macros.
17087
17088 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17089
17090         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17091         user.name to prevent git commit from complaining.
17092
17093 2009-05-10  Bruno Haible  <bruno@clisp.org>
17094
17095         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17096         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17097         it rewrites every file name only once.
17098         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17099
17100 2009-05-08  Bruno Haible  <bruno@clisp.org>
17101
17102         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17103         instead of 'max'.
17104
17105 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17106
17107         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17108         sockaddr_storage test.
17109
17110 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17111
17112         * modules/sys_socket (Makefile.am): Substitute
17113         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17114         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17115         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17116         * tests/test-sys_socket.c: Check sockaddr_storage.
17117
17118 2009-05-08  Bruno Haible  <bruno@clisp.org>
17119
17120         New module 'alignof'.
17121         * lib/alignof.h: New file.
17122         * modules/alignof: New file.
17123
17124 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17125             Bruno Haible  <bruno@clisp.org>
17126
17127         Fix test-file-has-acl on FreeBSD.
17128         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17129         mask is implicitly added.
17130         * tests/test-file-has-acl.c: Include <signal.h>.
17131         (main): Terminate the test after 5 seconds.
17132         * modules/acl-tests (configure.ac): Check for alarm function.
17133
17134 2009-05-04  Bruno Haible  <bruno@clisp.org>
17135
17136         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17138         * modules/errno (configure.ac): Drop AC_REQUIRE.
17139         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17140         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17141
17142 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17143
17144         * modules/glob-tests: New module.
17145         * tests/test-glob.c: Add.
17146
17147 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17148
17149         * modules/fnmatch-tests: New module.
17150         * tests/test-fnmatch.c: Add.
17151
17152 2009-05-04  Eric Blake  <ebb9@byu.net>
17153
17154         maint: make the new no-submodule-changes rule VPATH-safe
17155         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17156
17157 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17158             Bruno Haible  <bruno@clisp.org>
17159
17160         acl: Fix infinite loop on FreeBSD.
17161         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17162         of return value from acl_get_entry.
17163         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17164         Likewise.
17165
17166 2009-05-03  Bruno Haible  <bruno@clisp.org>
17167
17168         * lib/acl-internal.h (acl_entries): Clarify return value.
17169         * lib/acl_entries.c (acl_entries): Likewise.
17170
17171 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17172
17173         Bug fix in acl module.
17174         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17175
17176 2009-05-03  Bruno Haible  <bruno@clisp.org>
17177
17178         Create gperf-generated file in the source dir, not in the build dir.
17179         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17180         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17181         * modules/unicase/locale-language (unicase/locale-languages.h):
17182         Likewise.
17183         * modules/unicase/special-casing (unicase/special-casing-table.h):
17184         Likewise.
17185         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17186         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17187         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17188         Reported by Ralf Wildenhues.
17189
17190 2009-05-03  Bruno Haible  <bruno@clisp.org>
17191
17192         * modules/fnmatch (Description, configure.ac): Taken from
17193         fnmatch-posix.
17194         * modules/fnmatch-posix: Turn into a symbolic reference to the
17195         'fnmatch' module, and deprecate.
17196         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17197
17198 2009-05-03  Bruno Haible  <bruno@clisp.org>
17199
17200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17201         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17202         Reported by Ralf Wildenhues.
17203
17204 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17205
17206         * m4/fnmatch.m4: Fix fnmatch re-define.
17207
17208 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17209
17210         priv-set: new module and tests; adapt write-any-file
17211         * lib/priv-set.c: New file.
17212         * lib/priv-set.h: New file.
17213         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17214         * lib/write-any-file.c: Simplify by using priv-set module.
17215         * m4/priv-set.m4: New file.
17216         * modules/priv-set: New file.
17217         * modules/unlinkdir: Add dependency on priv-set module.
17218         * modules/write-any-file: Likewise.
17219
17220         Tests for module 'priv-set'.
17221         * modules/priv-set-tests: New file.
17222         * tests/test-priv-set.c: New file.
17223
17224 2009-05-03  Jim Meyering  <meyering@redhat.com>
17225             Bruno Haible  <bruno@clisp.org>
17226
17227         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17228         use the converted UTF-8 variant of the name instead.
17229
17230 2009-05-03  Jim Meyering  <meyering@redhat.com>
17231
17232         tests: tighten some getdate tests
17233         * tests/test-getdate.c (main): Tighten tests: require equality,
17234         not just greater than.  Set TZ envvar to UTC0.
17235
17236 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17237
17238         getdate: correctly interpret "next monday" when run on a Monday
17239         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17240         that e.g., "next tues" (when run on a tuesday) results in a date
17241         that is one week in the future, and not today's date.
17242         I.e., add a week when the wday is the same as the current one.
17243         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17244         and earlier by Martin Bernreuther and Jan Minář.
17245         * tests/test-getdate.c (main): Check that "next DAY" is always in
17246         the future and that "last DAY" is always in the past.
17247
17248 2009-05-02  Jim Meyering  <meyering@redhat.com>
17249
17250         build: ensure that a release build fails when a submodule is unclean
17251         * top/maint.mk (no-submodule-changes): New rule.
17252         (alpha beta major): Depend on it.
17253
17254 2009-05-02  Bruno Haible  <bruno@clisp.org>
17255
17256         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17257         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17258         shell variable gl_fnmatch_required to detect which variant is
17259         requested.
17260         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17261         gl_FUNC_FNMATCH_POSIX.
17262         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17263         exclude fnmatch-posix.
17264
17265 2009-05-02  Bruno Haible  <bruno@clisp.org>
17266
17267         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17268         * modules/mbsrtowcs (License): Change to LGPLv2+.
17269         * modules/strnlen1 (License): Likewise.
17270         Reported by Simon Josefsson.
17271
17272 2009-05-02  Bruno Haible  <bruno@clisp.org>
17273
17274         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17275         "cross".
17276         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17277         gnulib-tool was called with option --source-base=lib.
17278
17279 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17280
17281         Use automake *-local hooks without commands, for extensibility.
17282         * modules/localcharset (Makefile.am): Rename install-exec-local
17283         rule to install-exec-localcharset, and make it a prerequisite of
17284         install-exec-local.  Likewise, rename the uninstall-local rule to
17285         uninstall-localcharset, and make it a prerequisite of the former.
17286
17287 2009-05-01  Bruno Haible  <bruno@clisp.org>
17288
17289         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17290         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17291         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17293         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17294         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17295         m4/locale-zh.m4, m4/codeset.m4.
17296
17297         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17298         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17299         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17300         m4/locale-zh.m4.
17301
17302         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17303         REPLACE_WCRTOMB if mbstate_t must be replaced.
17304         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17305         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17306
17307 2009-05-01  Bruno Haible  <bruno@clisp.org>
17308
17309         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17310         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17311         dngettext, dcngettext, textdomain, bindtextdomain,
17312         bind_textdomain_codeset): Undefine before redefining.
17313
17314 2009-04-30  Bruno Haible  <bruno@clisp.org>
17315
17316         Fix bug introduced on 2009-04-25.
17317         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17318         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17319         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17320         is defined.
17321         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17322         is defined.
17323         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17324         is defined.
17325         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17326
17327 2009-04-28  Bruno Haible  <bruno@clisp.org>
17328
17329         Comment tweaks.
17330         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17331         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17332         * lib/unicase.h (u*_casexfrm): Likewise.
17333         Reported by Paolo Bonzini.
17334
17335 2009-04-28  Bruno Haible  <bruno@clisp.org>
17336
17337         Fix a compilation error.
17338         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17339         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17340         Reported by Jim Meyering.
17341
17342 2009-04-27  Bruno Haible  <bruno@clisp.org>
17343
17344         New module 'libunistring'.
17345         * modules/libunistring: New file.
17346         * m4/libunistring.m4: New file.
17347         * MODULES.html.sh (Unicode string functions): Add it.
17348
17349 2009-04-27  Eric Blake  <ebb9@byu.net>
17350
17351         maint.mk: allow package-specific header to provide <config.h>
17352         * top/maint.mk (sc_require_config_h): New variable.
17353         (sc_require_config_h, sc_require_config_h_first): Use it.
17354
17355 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17356
17357         * top/maint.mk (sc_avoid_if_before_free): Except
17358         useless-if-before-free script.
17359
17360 2009-04-27  Eric Blake  <ebb9@byu.net>
17361
17362         maintainer-makefile: depend on all required helper scripts
17363         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17364         useless-if-before-free.
17365         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17366         version, rather than assuming gnulib checkout is available.
17367         Reported by Simen Josefsson.
17368
17369 2009-04-26  Bruno Haible  <bruno@clisp.org>
17370
17371         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17372         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17373         "../" or "..".
17374
17375 2009-04-26  Bruno Haible  <bruno@clisp.org>
17376
17377         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17378         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17379         AC_LIB_HAVE_LINKFLAGS.
17380
17381 2009-04-26  Bruno Haible  <bruno@clisp.org>
17382
17383         Simplify calling convention of u*_conv_from_encoding.
17384         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17385         u32_conv_from_encoding): Expect a resultbuf argument and return the
17386         result directly as a pointer.
17387         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17388         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17389         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17390         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17391         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17392         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17393         Update.
17394         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17395         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17396         * lib/vasnprintf.c (VASNPRINTF): Update.
17397         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17398         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17399         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17400         * NEWS: Mention the change.
17401
17402 2009-04-26  Bruno Haible  <bruno@clisp.org>
17403
17404         Simplify calling convention of u*_conv_to_encoding.
17405         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17406         u32_conv_to_encoding): Expect a resultbuf argument and return the
17407         result directly as a pointer.
17408         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17409         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17410         freeing scaled_offsets if mem_iconveha failed.
17411         * lib/unicase/u-casexfrm.h (FUNC): Update.
17412         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17413         * lib/vasnprintf.c (VASNPRINTF): Update.
17414         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17415         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17416         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17417         * NEWS: Mention the change.
17418
17419 2009-04-26  Bruno Haible  <bruno@clisp.org>
17420
17421         Avoid test failures on AIX and OSF/1.
17422         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17423         malloc(0).
17424         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17425         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17426         Likewise.
17427         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17428         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17429         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17430         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17431         * doc/posix-functions/malloc.texi: Document the portability problem
17432         related to malloc(0).
17433
17434 2009-04-26  Bruno Haible  <bruno@clisp.org>
17435
17436         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17437         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17438         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17439
17440 2009-04-25  Bruno Haible  <bruno@clisp.org>
17441
17442         Avoid link error when creating a namespace clean library.
17443         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17444         as macro with arguments if already defined as an alias.
17445         * lib/signbitf.c (gl_signbitf): Don't undefine.
17446         * lib/signbitd.c (gl_signbitd): Don't undefine.
17447         * lib/signbitl.c (gl_signbitl): Don't undefine.
17448
17449 2009-04-25  Jim Meyering  <meyering@redhat.com>
17450
17451         vc-list-files: fix another quoting bug
17452         * build-aux/vc-list-files: Avoid sed backslash expansion
17453         of pathological directory names.
17454
17455 2009-04-25  Eric Blake  <ebb9@byu.net>
17456
17457         vc-list-files: fix shell quoting error
17458         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17459         timestamp.
17460
17461 2009-04-25  Jim Meyering  <meyering@redhat.com>
17462
17463         vc-list-files: restore lost functionality with subdir argument
17464         * build-aux/vc-list-files: When given a non-"." sub-directory
17465         argument, substitute the $dir/ prefix back onto each resulting name.
17466         Otherwise, coreutils' root_tests check would fail.
17467
17468 2009-04-24  Eric Blake  <ebb9@byu.net>
17469
17470         vc-list-files: ignore git symlinks
17471         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17472         than ls-files, to ignore git symlinks.
17473
17474         maint.mk: import improvements from m4
17475         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17476         (move_if_change): Delete unused macro.
17477         (news-date-check, vc-diff-check): Support VPATH builds.
17478         (announcement): Likewise.  Split --bootstrap-tools list...
17479         (boostrap-tools): ...into separate list, which can be overridden
17480         in cfg.mk.
17481         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17482         requiring dependency on useless-if-before-free module.
17483         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17484         Support VPATH builds.
17485
17486 2009-04-24  Jim Meyering  <meyering@redhat.com>
17487
17488         maint.mk: remove coreutils-specific rules and variables
17489         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17490         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17491         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17492
17493         maint.mk: remove obsolete rule
17494         * top/maint.mk (rel-check): Remove rule.
17495         (WGET, WGETFLAGS): Remove now-unused variables.
17496
17497 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17498
17499         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17500         consistency.
17501
17502         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17503         '$(PATH_SEPARATOR)' instead of ':'.
17504
17505 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17506
17507         * lib/getopt1.c (main): Use 'const' for static array.
17508
17509 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17510
17511         * top/maint.mk: Sync with coreutils.
17512         * NEWS: Explain incompatibilities.
17513
17514 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17515             Bruno Haible  <bruno@clisp.org>
17516
17517         Fix cross-compilation results.
17518         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17519         statement, as third argument of AC_TRY_RUN.
17520         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17521         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17522         Likewise.
17523         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17524         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17525         Likewise.
17526         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17527         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
17528         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
17529
17530 2009-04-20  Bruno Haible  <bruno@clisp.org>
17531
17532         Avoid test failure on mingw.
17533         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
17534
17535 2009-04-20  Bruno Haible  <bruno@clisp.org>
17536
17537         Avoid compilation error on mingw.
17538         * modules/localename-tests (Depends-on): Add locale.
17539
17540 2009-04-19  Bruno Haible  <bruno@clisp.org>
17541
17542         Support for building a shared library on Windows platforms.
17543         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
17544         (main): Test the presence of UNINORM_NFC here.
17545         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
17546         (main): Test the presence of UNINORM_NFD here.
17547         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
17548         (main): Test the presence of UNINORM_NFKC here.
17549         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
17550         (main): Test the presence of UNINORM_NFKD here.
17551
17552 2009-04-19  Bruno Haible  <bruno@clisp.org>
17553
17554         Avoid a compiler warning.
17555         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
17556         Change type of variable 'sequence'.
17557
17558 2009-04-19  Bruno Haible  <bruno@clisp.org>
17559
17560         * modules/configmake (Makefile.am): When the contents of configmake.h
17561         does not change, arrange to preserve its modification time.
17562
17563 2009-04-17  Simon Josefsson  <simon@josefsson.org>
17564
17565         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
17566         gettext domain.
17567
17568 2009-04-16  Jim Meyering  <meyering@redhat.com>
17569
17570         useless-if-before-free: improve conversion code
17571         * build-aux/useless-if-before-free: Adjust code-in-comment to match
17572         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
17573
17574 2009-04-14  Bruno Haible  <bruno@clisp.org>
17575
17576         * modules/fcntl (Depends-on): Add extensions.
17577         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
17578
17579 2009-04-12  Ben Pfaff  <blp@gnu.org>
17580
17581         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
17582         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
17583
17584 2009-03-20  Ben Pfaff  <blp@gnu.org>
17585
17586         Make rename replace existing destinations on Windows.
17587         * m4/rename.m4: Add test for Mingw.
17588         * lib/rename.c: Add rename replacement that uses MoveFileEx with
17589         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17590         * doc/posix-functions/rename.texi: Document.
17591
17592 2009-04-10  Bruno Haible  <bruno@clisp.org>
17593
17594         New include file "iconveh.h".
17595         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
17596         * lib/striconveh.h: Include it.
17597         (enum iconv_ilseq_handler): Remove definition.
17598         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
17599         striconveh.h.
17600         * lib/striconveha.c: Include striconveh.h.
17601         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
17602         * modules/striconveh (Files): Add lib/iconveh.h.
17603         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
17604         lib/striconveh.h.
17605
17606 2009-04-10  Bruno Haible  <bruno@clisp.org>
17607
17608         * lib/uniconv.h: Update comment.
17609
17610 2009-04-10  Bruno Haible  <bruno@clisp.org>
17611
17612         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
17613         always.
17614         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17615         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17616         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17617         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
17618         "unistring-notinline.h", so that the function gets defined always.
17619         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17620         * lib/unistr/u8-uctomb.c: Likewise.
17621         * lib/unistr/u16-mbtouc.c: Likewise.
17622         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17623         * lib/unistr/u16-uctomb.c: Likewise.
17624         * lib/unistr/u32-mbtouc.c: Likewise.
17625         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17626         * lib/unistr/u32-uctomb.c: Likewise.
17627
17628 2009-04-10  Bruno Haible  <bruno@clisp.org>
17629
17630         Mark 'utime' obsolete.
17631         * modules/utime (Status, Notice): New sections.
17632         Suggested by Jim Meyering.
17633
17634         Fix cross-compile guess for utime test.
17635         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
17636         autoconf.
17637         * doc/posix-functions/utime.texi: Give more precisions.
17638         Reported by Jan <ipif@ymail.com>.
17639
17640 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
17641
17642         filevercmp: correct today's change
17643         * lib/filevercmp.c: Also handle coreutils' test inputs.
17644         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
17645
17646         Fix regression in 'filevercmp' module. Thanks Sven Joachim
17647         for reporting it.
17648         * lib/filevercmp.c: Special handle for "", "." and "..".
17649         * tests/test-filevercmp.c: Enlarge the set suite.
17650
17651 2009-04-07  Jim Meyering  <meyering@redhat.com>
17652
17653         useless-if-before-free: show how to remove braced useless free, too
17654         * build-aux/useless-if-before-free: still only in a comment, though.
17655
17656 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
17657
17658         maint.mk: import changes to syntax-check macros from coreutils
17659         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
17660         Use them in the relevant macros.
17661
17662 2009-04-06  Bruno Haible  <bruno@clisp.org>
17663
17664         Fix unportable use of bit-fields.
17665         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
17666         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
17667         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
17668
17669 2009-04-06  Bruno Haible  <bruno@clisp.org>
17670
17671         Avoid test failures on AIX and OSF/1.
17672         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
17673         that malloc(0) = NULL.
17674         * tests/unicase/test-u8-tolower.c (check): Likewise.
17675         * tests/unicase/test-u8-totitle.c (check): Likewise.
17676         * tests/unicase/test-u8-toupper.c (check): Likewise.
17677         * tests/unicase/test-u16-casefold.c (check): Likewise.
17678         * tests/unicase/test-u16-tolower.c (check): Likewise.
17679         * tests/unicase/test-u16-totitle.c (check): Likewise.
17680         * tests/unicase/test-u16-toupper.c (check): Likewise.
17681         * tests/unicase/test-u32-casefold.c (check): Likewise.
17682         * tests/unicase/test-u32-tolower.c (check): Likewise.
17683         * tests/unicase/test-u32-totitle.c (check): Likewise.
17684         * tests/unicase/test-u32-toupper.c (check): Likewise.
17685         * tests/uninorm/test-u8-nfc.c (check): Likewise.
17686         * tests/uninorm/test-u8-nfd.c (check): Likewise.
17687         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
17688         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
17689         * tests/uninorm/test-u16-nfc.c (check): Likewise.
17690         * tests/uninorm/test-u16-nfd.c (check): Likewise.
17691         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
17692         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
17693         * tests/uninorm/test-u32-nfc.c (check): Likewise.
17694         * tests/uninorm/test-u32-nfd.c (check): Likewise.
17695         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
17696         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
17697
17698 2009-04-05  Bruno Haible  <bruno@clisp.org>
17699
17700         Work around an autoconf limitation.
17701         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
17702         comment line if it would be longer than 3 KB.
17703
17704 2009-04-05  Bruno Haible  <bruno@clisp.org>
17705
17706         Avoid test failure with libiconv-1.13.
17707         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
17708         of the expected test results.
17709
17710 2009-04-05  Bruno Haible  <bruno@clisp.org>
17711
17712         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
17713         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
17714         that it should be installed.
17715
17716 2009-04-05  Bruno Haible  <bruno@clisp.org>
17717
17718         * gnulib-tool: New option --copy-file.
17719         (func_usage): Document it.
17720         (func_dest_tmpfilename): Moved out of func_import.
17721         (func_add_file, func_update_file): New functions, extracted from
17722         func_import.
17723         (func_import): Update.
17724
17725 2009-04-05  Karl Berry  <karl@gnu.org>
17726
17727         * README: prominently mention gnulib-tool.
17728         Rearrange sections so getting the code is near the top.
17729
17730 2009-04-05  Bruno Haible  <bruno@clisp.org>
17731
17732         * lib/unicase.h: Mention u*_cmp2.
17733         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17734         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
17735         * lib/unicase/ulc-casecmp.c: Likewise.
17736         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
17737         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
17738         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
17739         unistr/u8-cmp.
17740         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
17741         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
17742         unistr/u16-cmp.
17743         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
17744         unistr/u32-cmp.
17745
17746         * lib/uninorm.h: Mention u*_cmp2.
17747         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
17748         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
17749         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
17750         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
17751         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
17752         unistr/u8-cmp.
17753         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
17754         unistr/u16-cmp.
17755         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
17756         unistr/u32-cmp.
17757
17758         New module 'unistr/u32-cmp2'.
17759         * lib/unistr/u32-cmp2.c: New file.
17760         * modules/unistr/u32-cmp2: New file.
17761
17762         New module 'unistr/u16-cmp2'.
17763         * lib/unistr/u16-cmp2.c: New file.
17764         * modules/unistr/u16-cmp2: New file.
17765
17766         New module 'unistr/u8-cmp2'.
17767         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
17768         * lib/unistr/u8-cmp2.c: New file.
17769         * lib/unistr/u-cmp2.h: New file.
17770         * modules/unistr/u8-cmp2: New file.
17771
17772 2009-04-05  Bruno Haible  <bruno@clisp.org>
17773
17774         * lib/unictype.h (uc_property_is_valid): New macro.
17775         * tests/unictype/test-pr_byname.c (main): Use it.
17776
17777         * lib/unistr.h: Doc fixes.
17778         * lib/uniconv.h: Doc fixes.
17779         * lib/unictype.h: Doc fixes.
17780
17781 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
17782
17783         Port coreutils 7.2 to Solaris 8.
17784
17785         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
17786         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
17787         for Solaris 8.  This is a bit of a hack, as it means it's the
17788         caller's responsibility to add -lnsl if needed, but most likely it
17789         won't be needed since only getaddrinfo uses this and getaddrinfo
17790         isn't needed on Solaris 8.
17791
17792         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
17793         problem to Solaris 8 encountered with coreutils 7.2, which
17794         resulted in a message "fnmatch.c:292: warning: passing argument 4
17795         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
17796         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
17797
17798 2009-04-03  Simon Josefsson  <simon@josefsson.org>
17799
17800         * m4/ld-version-script.m4: Add FIXME comment.
17801
17802 2009-04-02  Simon Josefsson  <simon@josefsson.org>
17803
17804         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
17805         SOVERSION variable.
17806
17807 2009-04-02  Bruno Haible  <bruno@clisp.org>
17808
17809         * Makefile (info, html, dvi, pdf): Combine the rules.
17810         Suggested by Jim Meyering.
17811
17812 2009-04-01  Bruno Haible  <bruno@clisp.org>
17813
17814         * Makefile (info, html, dvi, pdf): New targets.
17815         Reported by Reuben Thomas <rrt@sc3d.org>.
17816
17817 2009-04-01  Bruno Haible  <bruno@clisp.org>
17818
17819         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
17820         can be put into PATH.
17821         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
17822
17823 2009-04-01  Bruno Haible  <bruno@clisp.org>
17824
17825         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
17826
17827 2009-04-01  Bruno Haible  <bruno@clisp.org>
17828
17829         Rename module 'visibility'.
17830         * modules/lib-symbol-visibility: Renamed from modules/visibility.
17831         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
17832         * doc/gnulib.texi: Update.
17833         * MODULES.html.sh (Misc): Update.
17834         * NEWS: Mention the change.
17835
17836 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17837
17838         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
17839         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
17840         Eric Blake <ebb9@byu.net> for review.
17841         * MODULES.html.sh: Add lib-msvc-compat.
17842         * doc/gnulib.texi: Link to new section.
17843         * m4/ld-output-def.m4: New file.
17844         * doc/ld-output-def.texi: New file.
17845
17846 2009-04-01  Simon Josefsson  <simon@josefsson.org>
17847
17848         Rename ld-version-script to lib-symbol-versions.  Suggested by
17849         Bruno Haible <bruno@clisp.org>.
17850         * modules/ld-version-script: Renamed to lib-symbol-versions.
17851         * doc/ld-version-script.texi: Fix module name.
17852         * MODULES.html.sh: Add lib-symbol-versions.
17853
17854 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17855
17856         * modules/u64-tests: New file.
17857         * tests/test-u64.c: New file.
17858
17859 2009-03-04  Simon Josefsson  <simon@josefsson.org>
17860
17861         * MODULES.html.sh: Mention u64.
17862         * modules/u64: New module.
17863         * modules/crypto/sha512: Depend on u64 module instead of providing
17864         u64.h.
17865
17866 2009-03-27  Eric Blake  <ebb9@byu.net>
17867
17868         test-strerror: make debugging EAI_SYSTEM easier
17869         * modules/getaddrinfo-tests (Depends-on): Add strerror.
17870         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
17871         failure was EAI_SYSTEM.
17872
17873 2009-03-25  Bruno Haible  <bruno@clisp.org>
17874
17875         Fix a problem with --enable-relocatable on Solaris 7.
17876         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
17877         since 2008-02-24.
17878
17879 2009-03-25  Eric Blake  <ebb9@byu.net>
17880
17881         test-sockets: avoid gcc warning
17882         * tests/test-sockets.c (main): Silence compiler warning.
17883
17884 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
17885
17886         New modules nproc, pthread, contributed by Glen Lenker.
17887
17888         * MODULES.html.sh: Add pthread, nproc.
17889         * lib/nproc.c: New file.
17890         * lib/nproc.h: New file.
17891         * lib/pthread.in.h: New file.
17892         * m4/pthread.m4: New file.
17893         * modules/nproc: New file.
17894         * modules/pthread: New file.
17895
17896 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17897
17898         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
17899         New variable.
17900
17901 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
17902
17903         filevercmp: handle simple~ and numbered.~3~ backup suffixes
17904         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
17905         * tests/test-filevercmp.c: Add tests for backup suffixes.
17906
17907 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17908
17909         * modules/stdlib (Depends-on): Add stdint, needed when defining
17910         struct random_data on, for example, HP-UX 10.20.  Reported by
17911         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17912
17913 2009-03-24  Simon Josefsson  <simon@josefsson.org>
17914
17915         * lib/readline.c (readline): Call fflush on stdout after printing
17916         prompt.
17917
17918 2009-03-20  Bruno Haible  <bruno@clisp.org>
17919
17920         Remove dependency from 'close' module to -lws2_32 on native Windows.
17921         * lib/close-hook.h: New file.
17922         * lib/close-hook.c: New file.
17923         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
17924         w32sock.h.
17925         (_gl_close_fd_maybe_socket): Remove function.
17926         (rpl_close): Invoke execute_all_close_hooks instead of
17927         _gl_close_fd_maybe_socket.
17928         * lib/sockets.c: Include close-hook.h, w32sock.h.
17929         (close_fd_maybe_socket): New function, essentially from lib/close.c.
17930         (close_sockets_hook): New variable.
17931         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
17932         (gl_sockets_cleanup): Unregister it.
17933         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
17934         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
17935         * modules/close-hook: New file.
17936         * modules/close (Files): Remove lib/w32sock.h.
17937         (Depends-on): Add close-hook.
17938         (Link): Remove section.
17939         * modules/sockets (Files): Add lib/w32sock.h.
17940         (Depends-on): Add close-hook.
17941         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
17942         invocation.
17943         * NEWS: Mention that LIB_CLOSE is gone.
17944
17945 2009-03-23  Eric Blake  <ebb9@byu.net>
17946
17947         signal-tests: test previous patch
17948         * tests/test-signal.c: New file.
17949         * modules/signal-tests: Likewise.
17950
17951         signal.h: always support 'volatile sig_atomic_t'
17952         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
17953         (gl_SIGNAL_H_DEFAULTS): Add a default.
17954         * modules/signal (Makefile.am): Substitute if needed.
17955         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
17956         users can blindly add volatile.
17957         * doc/posix-headers/signal.texi (signal.h): Document it.
17958         Reported by Matthew Woehlke.
17959
17960 2009-03-23  Jim Meyering  <meyering@redhat.com>
17961
17962         pathmax: PATH_MAX: use pathconf only when available
17963         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
17964         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
17965         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
17966         This avoids a link failure in a PSP cross-compilation environment
17967         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
17968
17969         * lib/vasnprintf.c (divide): Fix typo in comment.
17970
17971 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17972
17973         * gnulib-tool (func_filter_filelist): Fix comment.
17974
17975 2009-03-20  Bruno Haible  <bruno@clisp.org>
17976
17977         Make sockets.h self-contained.
17978         * lib/sockets.c: Include sockets.h first.
17979         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
17980
17981 2009-03-19  Eric Blake  <ebb9@byu.net>
17982
17983         doc: mention more functions added in cygwin 1.7.0
17984         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
17985         addition.
17986         * doc/posix-functions/log2f.texi: Likewise.
17987
17988 2009-03-19  Jim Meyering  <meyering@redhat.com>
17989
17990         fsusage: avoid syntax error due to statement-before-declaration
17991         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
17992         after all declarations.  Reported by Matthew Woehlke in
17993         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
17994
17995 2009-03-18  Eric Blake  <ebb9@byu.net>
17996
17997         build-aux/compile: sync from automake
17998         * build-aux/compile: New file, from automake.
17999         * config/srclist.txt: Mention build-aux/compile.
18000
18001 2009-03-17  Bruno Haible  <bruno@clisp.org>
18002
18003         * lib/git-merge-changelog.c: Fix typo in comment.
18004         Reported by Reuben Thomas <rrt@sc3d.org>.
18005
18006 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18007
18008         * m4/regex.m4: update and improve help for
18009         --without-included-regex.
18010
18011 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18012
18013         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18014         failure on missing include files.
18015
18016 2009-03-17  Eric Blake  <ebb9@byu.net>
18017
18018         doc: mention more functions added in cygwin 1.7.0
18019         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18020         addition.
18021         * doc/posix-functions/fwscanf.texi: Likewise.
18022         * doc/posix-functions/swprintf.texi: Likewise.
18023         * doc/posix-functions/swscanf.texi: Likewise.
18024         * doc/posix-functions/vfwprintf.texi: Likewise.
18025         * doc/posix-functions/vfwscanf.texi: Likewise.
18026         * doc/posix-functions/vswprintf.texi: Likewise.
18027         * doc/posix-functions/vswscanf.texi: Likewise.
18028         * doc/posix-functions/vwprintf.texi: Likewise.
18029         * doc/posix-functions/vwscanf.texi: Likewise.
18030         * doc/posix-functions/wcscasecmp.texi: Likewise.
18031         * doc/posix-functions/wcsdup.texi: Likewise.
18032         * doc/posix-functions/wcsftime.texi: Likewise.
18033         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18034         * doc/posix-functions/wprintf.texi: Likewise.
18035         * doc/posix-functions/wscanf.texi: Likewise.
18036         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18037
18038 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18039
18040         maint.mk: really add $(AM_MAKEFLAGS)
18041         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18042         was inadvertently omitted in the last commit.
18043         Spotted by Bruno Haible.
18044
18045         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18046         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18047         $(AM_MAKEFLAGS)' rather than plain `make'.
18048
18049         gnulib-tool: execute $MAKE not make
18050         * gnulib-tool: Default $MAKE to 'make'.
18051         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18052         than make.  Initialize $MAKE in the do-autobuild script.
18053
18054         gnulib-tool: use $MAKE not make in generated files
18055         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18056         make, in generated files.  Initialize $MAKE in the do-autobuild
18057         script.
18058
18059         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18060
18061         GNUmakefile: disable parallelism only for multiple, recursive targets
18062         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18063         additions in the Makefile.
18064         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18065         by Automake.
18066         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18067         are listed on the command line and at least one of them is
18068         listed in $(ALL_RECURSIVE_TARGETS).
18069
18070 2009-03-14  Bruno Haible  <bruno@clisp.org>
18071
18072         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18073         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18074         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18075         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18076         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18077         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18078         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18079         unistr/u8-uctomb.
18080         * modules/unistr/u8-strchr (Depends-on): Likewise.
18081         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18082         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18083         unistr/u16-uctomb.
18084         * modules/unistr/u16-strchr (Depends-on): Likewise.
18085         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18086
18087 2009-03-12  Bruno Haible  <bruno@clisp.org>
18088
18089         Work around select() bug on Interix 3.5.
18090         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18091         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18092         * m4/select.m4: New file.
18093         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18094         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18095         * modules/select (Files): Add m4/select.m4.
18096         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18097         * modules/nanosleep (Depends-on): Add select.
18098         * modules/poll (Depends-on): Likewise.
18099         * doc/posix-functions/select.texi: Mention the Interix bug.
18100         Reported by Markus Duft <mduft@gentoo.org>.
18101
18102         * lib/select.c: Renamed from lib/winsock-select.c.
18103         * modules/select (Files): Add lib/select.c, remove
18104         lib/winsock-select.c.
18105         (configure.ac): Update.
18106
18107 2009-03-12  Jim Meyering  <meyering@redhat.com>
18108
18109         avoid gcc warnings about unused macro definitions
18110         * lib/readtokens.c (STREQ): Remove unused definition.
18111         * lib/xmalloc.c (SIZE_MAX): Likewise.
18112         * lib/openat-die.c (N_): Likewise.
18113         * lib/mountlist.c (SIZE_MAX): Remove definition.
18114         Instead, include <stdint.h>.
18115         * lib/readutmp.c: Likewise.
18116         * modules/readutmp (Depends-on): Add stdint.
18117         * modules/mountlist (Depends-on): Add stdint.
18118         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18119
18120 2009-03-10  Bruno Haible  <bruno@clisp.org>
18121
18122         Tests for module 'mbmemcasecoll'.
18123         * modules/mbmemcasecoll-tests: New file.
18124         * tests/test-mbmemcasecoll1.sh: New file.
18125         * tests/test-mbmemcasecoll2.sh: New file.
18126         * tests/test-mbmemcasecoll3.sh: New file.
18127         * tests/test-mbmemcasecoll.c: New file.
18128
18129         New module 'mbmemcasecoll'.
18130         * lib/mbmemcasecoll.h: New file.
18131         * lib/mbmemcasecoll.c: New file.
18132         * modules/mbmemcasecoll: New file.
18133
18134         * tests/test-mbmemcasecmp.h: New file, extracted from
18135         tests/test-mbmemcasecmp.c.
18136         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18137         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18138         (main): Update.
18139         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18140
18141 2009-03-09  Bruno Haible  <bruno@clisp.org>
18142
18143         Tests for module 'mbmemcasecmp'.
18144         * modules/mbmemcasecmp-tests: New file.
18145         * tests/test-mbmemcasecmp1.sh: New file.
18146         * tests/test-mbmemcasecmp2.sh: New file.
18147         * tests/test-mbmemcasecmp3.sh: New file.
18148         * tests/test-mbmemcasecmp.c: New file.
18149
18150         New module 'mbmemcasecmp'.
18151         * lib/mbmemcasecmp.h: New file.
18152         * lib/mbmemcasecmp.c: New file.
18153         * modules/mbmemcasecmp: New file.
18154
18155 2009-03-09  Bruno Haible  <bruno@clisp.org>
18156
18157         Tests for module 'unicase/ulc-casecoll'.
18158         * modules/unicase/ulc-casecoll-tests: New file.
18159         * tests/unicase/test-ulc-casecoll1.sh: New file.
18160         * tests/unicase/test-ulc-casecoll2.sh: New file.
18161         * tests/unicase/test-ulc-casecoll.c: New file.
18162
18163         New module 'unicase/ulc-casecoll'.
18164         * lib/unicase.h (ulc_casecoll): New declaration.
18165         * lib/unicase/ulc-casecoll.c: New file.
18166         * modules/unicase/ulc-casecoll: New file.
18167
18168         New module 'unicase/ulc-casexfrm'.
18169         * lib/unicase.h (ulc_casexfrm): New declaration.
18170         * lib/unicase/ulc-casexfrm.c: New file.
18171         * modules/unicase/ulc-casexfrm: New file.
18172
18173 2009-03-09  Bruno Haible  <bruno@clisp.org>
18174
18175         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18176         invocations.
18177
18178         * m4/mbscasecmp.m4: Remove file.
18179         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18180         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18181
18182         * m4/mbscasestr.m4: Remove file.
18183         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18184         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18185
18186         * m4/mbschr.m4: Remove file.
18187         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18188         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18189
18190         * m4/mbscspn.m4: Remove file.
18191         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18192         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18193
18194         * m4/mbslen.m4: Remove file.
18195         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18196         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18197
18198         * m4/mbsncasecmp.m4: Remove file.
18199         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18200         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18201
18202         * m4/mbsnlen.m4: Remove file.
18203         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18204         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18205
18206         * m4/mbspbrk.m4: Remove file.
18207         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18208         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18209
18210         * m4/mbspcasecmp.m4: Remove file.
18211         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18212         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18213
18214         * m4/mbsrchr.m4: Remove file.
18215         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18216         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18217
18218         * m4/mbssep.m4: Remove file.
18219         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18220         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18221
18222         * m4/mbsspn.m4: Remove file.
18223         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18224         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18225
18226         * m4/mbsstr.m4: Remove file.
18227         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18228         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18229
18230         * m4/mbstok_r.m4: Remove file.
18231         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18232         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18233
18234         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18235
18236         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18237         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18238
18239         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18240
18241 2009-03-08  Bruno Haible  <bruno@clisp.org>
18242
18243         Tests for module 'unicase/ulc-casecmp'.
18244         * modules/unicase/ulc-casecmp-tests: New file.
18245         * tests/unicase/test-ulc-casecmp1.sh: New file.
18246         * tests/unicase/test-ulc-casecmp2.sh: New file.
18247         * tests/unicase/test-ulc-casecmp.c: New file.
18248
18249         New module 'unicase/ulc-casecmp'.
18250         * lib/unicase.h (ulc_casecmp): New declaration.
18251         * lib/unicase/ulc-casecmp.c: New file.
18252         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18253         'const SRC_UNIT *'.
18254         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18255         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18256         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18257         * modules/unicase/ulc-casecmp: New file.
18258
18259         Tests for module 'unicase/u32-is-cased'.
18260         * modules/unicase/u32-is-cased-tests: New file.
18261         * tests/unicase/test-u32-is-cased.c: New file.
18262
18263         Tests for module 'unicase/u16-is-cased'.
18264         * modules/unicase/u16-is-cased-tests: New file.
18265         * tests/unicase/test-u16-is-cased.c: New file.
18266
18267         Tests for module 'unicase/u8-is-cased'.
18268         * modules/unicase/u8-is-cased-tests: New file.
18269         * tests/unicase/test-u8-is-cased.c: New file.
18270         * tests/unicase/test-is-cased.h: New file.
18271
18272         New module 'unicase/u32-is-cased'.
18273         * lib/unicase/u32-is-cased.c: New file.
18274         * modules/unicase/u32-is-cased: New file.
18275
18276         New module 'unicase/u16-is-cased'.
18277         * lib/unicase/u16-is-cased.c: New file.
18278         * modules/unicase/u16-is-cased: New file.
18279
18280         New module 'unicase/u8-is-cased'.
18281         * lib/unicase/u8-is-cased.c: New file.
18282         * lib/unicase/u-is-cased.h: New file.
18283         * modules/unicase/u8-is-cased: New file.
18284
18285         Tests for module 'unicase/u32-is-casefolded'.
18286         * modules/unicase/u32-is-casefolded-tests: New file.
18287         * tests/unicase/test-u32-is-casefolded.c: New file.
18288
18289         Tests for module 'unicase/u16-is-casefolded'.
18290         * modules/unicase/u16-is-casefolded-tests: New file.
18291         * tests/unicase/test-u16-is-casefolded.c: New file.
18292
18293         Tests for module 'unicase/u8-is-casefolded'.
18294         * modules/unicase/u8-is-casefolded-tests: New file.
18295         * tests/unicase/test-u8-is-casefolded.c: New file.
18296         * tests/unicase/test-is-casefolded.h: New file.
18297
18298         New module 'unicase/u32-is-casefolded'.
18299         * lib/unicase/u32-is-casefolded.c: New file.
18300         * modules/unicase/u32-is-casefolded: New file.
18301
18302         New module 'unicase/u16-is-casefolded'.
18303         * lib/unicase/u16-is-casefolded.c: New file.
18304         * modules/unicase/u16-is-casefolded: New file.
18305
18306         New module 'unicase/u8-is-casefolded'.
18307         * lib/unicase/u8-is-casefolded.c: New file.
18308         * modules/unicase/u8-is-casefolded: New file.
18309
18310         Tests for module 'unicase/u32-is-titlecase'.
18311         * modules/unicase/u32-is-titlecase-tests: New file.
18312         * tests/unicase/test-u32-is-titlecase.c: New file.
18313
18314         Tests for module 'unicase/u16-is-titlecase'.
18315         * modules/unicase/u16-is-titlecase-tests: New file.
18316         * tests/unicase/test-u16-is-titlecase.c: New file.
18317
18318         Tests for module 'unicase/u8-is-titlecase'.
18319         * modules/unicase/u8-is-titlecase-tests: New file.
18320         * tests/unicase/test-u8-is-titlecase.c: New file.
18321         * tests/unicase/test-is-titlecase.h: New file.
18322
18323         New module 'unicase/u32-is-titlecase'.
18324         * lib/unicase/u32-is-titlecase.c: New file.
18325         * modules/unicase/u32-is-titlecase: New file.
18326
18327         New module 'unicase/u16-is-titlecase'.
18328         * lib/unicase/u16-is-titlecase.c: New file.
18329         * modules/unicase/u16-is-titlecase: New file.
18330
18331         New module 'unicase/u8-is-titlecase'.
18332         * lib/unicase/u8-is-titlecase.c: New file.
18333         * modules/unicase/u8-is-titlecase: New file.
18334
18335         Tests for module 'unicase/u32-is-lowercase'.
18336         * modules/unicase/u32-is-lowercase-tests: New file.
18337         * tests/unicase/test-u32-is-lowercase.c: New file.
18338
18339         Tests for module 'unicase/u16-is-lowercase'.
18340         * modules/unicase/u16-is-lowercase-tests: New file.
18341         * tests/unicase/test-u16-is-lowercase.c: New file.
18342
18343         Tests for module 'unicase/u8-is-lowercase'.
18344         * modules/unicase/u8-is-lowercase-tests: New file.
18345         * tests/unicase/test-u8-is-lowercase.c: New file.
18346         * tests/unicase/test-is-lowercase.h: New file.
18347
18348         New module 'unicase/u32-is-lowercase'.
18349         * lib/unicase/u32-is-lowercase.c: New file.
18350         * modules/unicase/u32-is-lowercase: New file.
18351
18352         New module 'unicase/u16-is-lowercase'.
18353         * lib/unicase/u16-is-lowercase.c: New file.
18354         * modules/unicase/u16-is-lowercase: New file.
18355
18356         New module 'unicase/u8-is-lowercase'.
18357         * lib/unicase/u8-is-lowercase.c: New file.
18358         * modules/unicase/u8-is-lowercase: New file.
18359
18360         Tests for module 'unicase/u32-is-uppercase'.
18361         * modules/unicase/u32-is-uppercase-tests: New file.
18362         * tests/unicase/test-u32-is-uppercase.c: New file.
18363
18364         Tests for module 'unicase/u16-is-uppercase'.
18365         * modules/unicase/u16-is-uppercase-tests: New file.
18366         * tests/unicase/test-u16-is-uppercase.c: New file.
18367
18368         Tests for module 'unicase/u8-is-uppercase'.
18369         * modules/unicase/u8-is-uppercase-tests: New file.
18370         * tests/unicase/test-u8-is-uppercase.c: New file.
18371         * tests/unicase/test-is-uppercase.h: New file.
18372
18373         New module 'unicase/u32-is-uppercase'.
18374         * lib/unicase/u32-is-uppercase.c: New file.
18375         * modules/unicase/u32-is-uppercase: New file.
18376
18377         New module 'unicase/u16-is-uppercase'.
18378         * lib/unicase/u16-is-uppercase.c: New file.
18379         * modules/unicase/u16-is-uppercase: New file.
18380
18381         New module 'unicase/u8-is-uppercase'.
18382         * lib/unicase/u8-is-uppercase.c: New file.
18383         * modules/unicase/u8-is-uppercase: New file.
18384
18385         New module 'unicase/u32-is-invariant'.
18386         * lib/unicase/u32-is-invariant.c: New file.
18387         * modules/unicase/u32-is-invariant: New file.
18388
18389         New module 'unicase/u16-is-invariant'.
18390         * lib/unicase/u16-is-invariant.c: New file.
18391         * modules/unicase/u16-is-invariant: New file.
18392
18393         New module 'unicase/u8-is-invariant'.
18394         * lib/unicase/u8-is-invariant.c: New file.
18395         * lib/unicase/invariant.h: New file.
18396         * lib/unicase/u-is-invariant.h: New file.
18397         * modules/unicase/u8-is-invariant: New file.
18398
18399         Tests for module 'unicase/u32-casecoll'.
18400         * modules/unicase/u32-casecoll-tests: New file.
18401         * tests/unicase/test-u32-casecoll.c: New file.
18402
18403         Tests for module 'unicase/u16-casecoll'.
18404         * modules/unicase/u16-casecoll-tests: New file.
18405         * tests/unicase/test-u16-casecoll.c: New file.
18406
18407         Tests for module 'unicase/u8-casecoll'.
18408         * modules/unicase/u8-casecoll-tests: New file.
18409         * tests/unicase/test-u8-casecoll.c: New file.
18410
18411         New module 'unicase/u32-casecoll'.
18412         * lib/unicase/u32-casecoll.c: New file.
18413         * modules/unicase/u32-casecoll: New file.
18414
18415         New module 'unicase/u16-casecoll'.
18416         * lib/unicase/u16-casecoll.c: New file.
18417         * modules/unicase/u16-casecoll: New file.
18418
18419         New module 'unicase/u8-casecoll'.
18420         * lib/unicase/u8-casecoll.c: New file.
18421         * lib/unicase/u-casecoll.h: New file.
18422         * modules/unicase/u8-casecoll: New file.
18423
18424         New module 'unicase/u32-casexfrm'.
18425         * lib/unicase/u32-casexfrm.c: New file.
18426         * modules/unicase/u32-casexfrm: New file.
18427
18428         New module 'unicase/u16-casexfrm'.
18429         * lib/unicase/u16-casexfrm.c: New file.
18430         * modules/unicase/u16-casexfrm: New file.
18431
18432         New module 'unicase/u8-casexfrm'.
18433         * lib/unicase/u8-casexfrm.c: New file.
18434         * lib/unicase/u-casexfrm.h: New file.
18435         * modules/unicase/u8-casexfrm: New file.
18436
18437         Tests for module 'unicase/u32-casecmp'.
18438         * modules/unicase/u32-casecmp-tests: New file.
18439         * tests/unicase/test-u32-casecmp.c: New file.
18440
18441         Tests for module 'unicase/u16-casecmp'.
18442         * modules/unicase/u16-casecmp-tests: New file.
18443         * tests/unicase/test-u16-casecmp.c: New file.
18444
18445         Tests for module 'unicase/u8-casecmp'.
18446         * modules/unicase/u8-casecmp-tests: New file.
18447         * tests/unicase/test-u8-casecmp.c: New file.
18448         * tests/unicase/test-casecmp.h: New file.
18449
18450         New module 'unicase/u32-casecmp'.
18451         * lib/unicase/u32-casecmp.c: New file.
18452         * modules/unicase/u32-casecmp: New file.
18453
18454         New module 'unicase/u16-casecmp'.
18455         * lib/unicase/u16-casecmp.c: New file.
18456         * modules/unicase/u16-casecmp: New file.
18457
18458         New module 'unicase/u8-casecmp'.
18459         * lib/unicase/u8-casecmp.c: New file.
18460         * lib/unicase/u-casecmp.h: New file.
18461         * modules/unicase/u8-casecmp: New file.
18462
18463         Tests for module 'unicase/u32-casefold'.
18464         * modules/unicase/u32-casefold-tests: New file.
18465         * tests/unicase/test-u32-casefold.c: New file.
18466
18467         Tests for module 'unicase/u16-casefold'.
18468         * modules/unicase/u16-casefold-tests: New file.
18469         * tests/unicase/test-u16-casefold.c: New file.
18470
18471         Tests for module 'unicase/u8-casefold'.
18472         * modules/unicase/u8-casefold-tests: New file.
18473         * tests/unicase/test-u8-casefold.c: New file.
18474
18475         New module 'unicase/u32-casefold'.
18476         * lib/unicase/u32-casefold.c: New file.
18477         * modules/unicase/u32-casefold: New file.
18478
18479         New module 'unicase/u16-casefold'.
18480         * lib/unicase/u16-casefold.c: New file.
18481         * modules/unicase/u16-casefold: New file.
18482
18483         New module 'unicase/u8-casefold'.
18484         * lib/unicase/u8-casefold.c: New file.
18485         * lib/unicase/u-casefold.h: New file.
18486         * modules/unicase/u8-casefold: New file.
18487
18488         New module 'unicase/tocasefold'.
18489         * lib/unicase/casefold.h: New file.
18490         * lib/unicase/tocasefold.c: New file.
18491         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18492         * modules/unicase/tocasefold: New file.
18493
18494         Tests for module 'unicase/u32-totitle'.
18495         * modules/unicase/u32-totitle-tests: New file.
18496         * tests/unicase/test-u32-totitle.c: New file.
18497
18498         Tests for module 'unicase/u16-totitle'.
18499         * modules/unicase/u16-totitle-tests: New file.
18500         * tests/unicase/test-u16-totitle.c: New file.
18501
18502         Tests for module 'unicase/u8-totitle'.
18503         * modules/unicase/u8-totitle-tests: New file.
18504         * tests/unicase/test-u8-totitle.c: New file.
18505
18506         New module 'unicase/u32-totitle'.
18507         * lib/unicase/u32-totitle.c: New file.
18508         * modules/unicase/u32-totitle: New file.
18509
18510         New module 'unicase/u16-totitle'.
18511         * lib/unicase/u16-totitle.c: New file.
18512         * modules/unicase/u16-totitle: New file.
18513
18514         New module 'unicase/u8-totitle'.
18515         * lib/unicase/u8-totitle.c: New file.
18516         * lib/unicase/u-totitle.h: New file.
18517         * modules/unicase/u8-totitle: New file.
18518
18519         Tests for module 'unicase/u32-tolower'.
18520         * modules/unicase/u32-tolower-tests: New file.
18521         * tests/unicase/test-u32-tolower.c: New file.
18522
18523         Tests for module 'unicase/u16-tolower'.
18524         * modules/unicase/u16-tolower-tests: New file.
18525         * tests/unicase/test-u16-tolower.c: New file.
18526
18527         Tests for module 'unicase/u8-tolower'.
18528         * modules/unicase/u8-tolower-tests: New file.
18529         * tests/unicase/test-u8-tolower.c: New file.
18530
18531         New module 'unicase/u32-tolower'.
18532         * lib/unicase/u32-tolower.c: New file.
18533         * modules/unicase/u32-tolower: New file.
18534
18535         New module 'unicase/u16-tolower'.
18536         * lib/unicase/u16-tolower.c: New file.
18537         * modules/unicase/u16-tolower: New file.
18538
18539         New module 'unicase/u8-tolower'.
18540         * lib/unicase/u8-tolower.c: New file.
18541         * modules/unicase/u8-tolower: New file.
18542
18543         Tests for module 'unicase/u32-toupper'.
18544         * modules/unicase/u32-toupper-tests: New file.
18545         * tests/unicase/test-u32-toupper.c: New file.
18546
18547         Tests for module 'unicase/u16-toupper'.
18548         * modules/unicase/u16-toupper-tests: New file.
18549         * tests/unicase/test-u16-toupper.c: New file.
18550
18551         Tests for module 'unicase/u8-toupper'.
18552         * modules/unicase/u8-toupper-tests: New file.
18553         * tests/unicase/test-u8-toupper.c: New file.
18554
18555         New module 'unicase/u32-toupper'.
18556         * lib/unicase/u32-toupper.c: New file.
18557         * modules/unicase/u32-toupper: New file.
18558
18559         New module 'unicase/u16-toupper'.
18560         * lib/unicase/u16-toupper.c: New file.
18561         * modules/unicase/u16-toupper: New file.
18562
18563         New module 'unicase/u8-toupper'.
18564         * lib/unicase/u8-toupper.c: New file.
18565         * modules/unicase/u8-toupper: New file.
18566
18567         New module 'unicase/u32-casemap'.
18568         * lib/unicase/u32-casemap.c: New file.
18569         * modules/unicase/u32-casemap: New file.
18570
18571         New module 'unicase/u16-casemap'.
18572         * lib/unicase/u16-casemap.c: New file.
18573         * modules/unicase/u16-casemap: New file.
18574
18575         New module 'unicase/u8-casemap'.
18576         * lib/unicase/unicasemap.h: New file.
18577         * lib/unicase/u8-casemap.c: New file.
18578         * lib/unicase/u-casemap.h: New file.
18579         * modules/unicase/u8-casemap: New file.
18580
18581         New module 'unicase/special-casing'.
18582         * lib/unicase/special-casing.h: New file.
18583         * lib/unicase/special-casing.c: New file.
18584         * lib/unicase/special-casing-table.gperf: New file, generated by
18585         gen-uni-tables.c.
18586         * modules/unicase/special-casing: New file.
18587
18588         Tests for module 'unicase/locale-language'.
18589         * modules/unicase/locale-language-tests: New file.
18590         * tests/unicase/test-locale-language.sh: New file.
18591         * tests/unicase/test-locale-language.c: New file.
18592
18593         New module 'unicase/locale-language'.
18594         * lib/unicase/locale-language.c: New file.
18595         * lib/unicase/locale-languages.gperf: New file.
18596         * modules/unicase/locale-language: New file.
18597
18598         Generate more tables for case conversion and case folding.
18599         * lib/gen-uni-tables.c (SCC_*): New enum items.
18600         (struct special_casing_rule): New type.
18601         (casing_rules, num_casing_rules, allocated_casing_rules): New
18602         variables.
18603         (add_casing_rule, fill_casing_rules): New functions.
18604         (struct casefold_rule): New type.
18605         (casefolding_rules, num_casefolding_rules,
18606         allocated_casefolding_rules): New variables.
18607         (fill_casefolding_rules): New function.
18608         (unicode_casefold): New variable.
18609         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
18610         sort_casing_rules, output_casing_rules): New functions.
18611         (main): Accept to more arguments: SpecialCasing.txt and
18612         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
18613         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
18614         Output mapping for casefolding.
18615
18616         * lib/unicase.h: Include stdbool.h, uninorm.h.
18617         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
18618         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
18619         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
18620         arguments.
18621         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
18622         resultp arguments.
18623         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
18624         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
18625         resultp arguments.
18626         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
18627         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
18628         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
18629         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
18630         declarations.
18631         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
18632
18633 2009-03-08  Bruno Haible  <bruno@clisp.org>
18634
18635         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18636         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
18637         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
18638         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18639
18640 2009-03-07  Bruno Haible  <bruno@clisp.org>
18641
18642         Adjust u*_normcmp, u*_normcoll API.
18643         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
18644         u16_normcoll, u32_normcoll): Change failure conventions.
18645         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
18646         errno and return -1.
18647         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
18648
18649 2009-03-07  Bruno Haible  <bruno@clisp.org>
18650
18651         Tests for module 'uninorm/u32-normcoll'.
18652         * modules/uninorm/u32-normcoll-tests: New file.
18653         * tests/uninorm/test-u32-normcoll.c: New file.
18654
18655         Tests for module 'uninorm/u16-normcoll'.
18656         * modules/uninorm/u16-normcoll-tests: New file.
18657         * tests/uninorm/test-u16-normcoll.c: New file.
18658
18659         Tests for module 'uninorm/u8-normcoll'.
18660         * modules/uninorm/u8-normcoll-tests: New file.
18661         * tests/uninorm/test-u8-normcoll.c: New file.
18662
18663 2009-03-07  Bruno Haible  <bruno@clisp.org>
18664
18665         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
18666         tests/uninorm/test-u32-normcmp.c.
18667         * tests/uninorm/test-u32-normcmp.c: Include it.
18668         (test_nonascii): New function, extracted from main. Add some more
18669         tests.
18670         (main): Invoke test_ascii and test_nonascii.
18671         * modules/uninorm/u32-normcmp-tests (Files): Add
18672         tests/uninorm/test-u32-normcmp.h.
18673         (Depends-on): Remove uninorm/u32-normcmp.
18674
18675         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
18676         tests/uninorm/test-u16-normcmp.c.
18677         * tests/uninorm/test-u16-normcmp.c: Include it.
18678         (test_nonascii): New function, extracted from main. Add some more
18679         tests.
18680         (main): Invoke test_ascii and test_nonascii.
18681         * modules/uninorm/u16-normcmp-tests (Files): Add
18682         tests/uninorm/test-u16-normcmp.h.
18683         (Depends-on): Remove uninorm/u16-normcmp.
18684
18685         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
18686         tests/uninorm/test-u8-normcmp.c.
18687         * tests/uninorm/test-u8-normcmp.c: Include it.
18688         (test_nonascii): New function, extracted from main. Add some more
18689         tests.
18690         (main): Invoke test_ascii and test_nonascii.
18691         * modules/uninorm/u8-normcmp-tests (Files): Add
18692         tests/uninorm/test-u8-normcmp.h.
18693         (Depends-on): Remove uninorm/u8-normcmp.
18694
18695 2009-03-07  Bruno Haible  <bruno@clisp.org>
18696
18697         New module 'uninorm/u32-normcoll'.
18698         * lib/uninorm/u32-normcoll.c: New file.
18699         * modules/uninorm/u32-normcoll: New file.
18700
18701         New module 'uninorm/u16-normcoll'.
18702         * lib/uninorm/u16-normcoll.c: New file.
18703         * modules/uninorm/u16-normcoll: New file.
18704
18705         New module 'uninorm/u8-normcoll'.
18706         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
18707         declarations.
18708         * lib/uninorm/u8-normcoll.c: New file.
18709         * lib/uninorm/u-normcoll.h: New file.
18710         * modules/uninorm/u8-normcoll: New file.
18711
18712         New module 'uninorm/u32-normxfrm'.
18713         * lib/uninorm/u32-normxfrm.c: New file.
18714         * modules/uninorm/u32-normxfrm: New file.
18715
18716         New module 'uninorm/u16-normxfrm'.
18717         * lib/uninorm/u16-normxfrm.c: New file.
18718         * modules/uninorm/u16-normxfrm: New file.
18719
18720         New module 'uninorm/u8-normxfrm'.
18721         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
18722         declarations.
18723         * lib/uninorm/u8-normxfrm.c: New file.
18724         * lib/uninorm/u-normxfrm.h: New file.
18725         * modules/uninorm/u8-normxfrm: New file.
18726
18727 2009-03-07  Bruno Haible  <bruno@clisp.org>
18728
18729         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
18730         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
18731         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
18732
18733 2009-03-07  Bruno Haible  <bruno@clisp.org>
18734
18735         New module 'memxfrm'.
18736         * lib/memxfrm.h: New file.
18737         * lib/memxfrm.c: New file.
18738         * modules/memxfrm: New file.
18739
18740 2009-03-07  Bruno Haible  <bruno@clisp.org>
18741
18742         New module 'memcmp2'.
18743         * lib/memcmp2.h: New file.
18744         * lib/memcmp2.c: New file.
18745         * modules/memcmp2: New file.
18746
18747 2009-03-07  Bruno Haible  <bruno@clisp.org>
18748
18749         Tests for module 'uninorm/decomposing-form'.
18750         * modules/uninorm/decomposing-form-tests: New file.
18751         * tests/uninorm/test-decomposing-form.c: New file.
18752
18753         New module 'uninorm/decomposing-form'.
18754         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
18755         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
18756         Add 'decomposing_variant' field.
18757         * lib/uninorm/decomposing-form.c: New file.
18758         * lib/uninorm/nfc.c (uninorm_nfc): Update.
18759         * lib/uninorm/nfd.c (uninorm_nfd): Update.
18760         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
18761         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
18762         * modules/uninorm/decomposing-form: New file.
18763         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
18764         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
18765
18766 2009-03-07  Bruno Haible  <bruno@clisp.org>
18767
18768         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
18769         strings.
18770
18771 2009-03-06  Bruno Haible  <bruno@clisp.org>
18772
18773         Tests for module 'uninorm/u32-normcmp'.
18774         * tests/uninorm/test-u32-normcmp.c: New file.
18775         * modules/uninorm/u32-normcmp-tests: New file.
18776
18777         Tests for module 'uninorm/u16-normcmp'.
18778         * tests/uninorm/test-u16-normcmp.c: New file.
18779         * modules/uninorm/u16-normcmp-tests: New file.
18780
18781         Tests for module 'uninorm/u8-normcmp'.
18782         * tests/uninorm/test-u8-normcmp.c: New file.
18783         * modules/uninorm/u8-normcmp-tests: New file.
18784
18785         New module 'uninorm/u32-normcmp'.
18786         * lib/uninorm/u32-normcmp.c: New file.
18787         * modules/uninorm/u32-normcmp: New file.
18788
18789         New module 'uninorm/u16-normcmp'.
18790         * lib/uninorm/u16-normcmp.c: New file.
18791         * modules/uninorm/u16-normcmp: New file.
18792
18793         New module 'uninorm/u8-normcmp'.
18794         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
18795         declarations.
18796         * lib/uninorm/u8-normcmp.c: New file.
18797         * lib/uninorm/u-normcmp.h: New file.
18798         * modules/uninorm/u8-normcmp: New file.
18799
18800 2009-03-06  Bruno Haible  <bruno@clisp.org>
18801
18802         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
18803         Reported by Eric Blake.
18804
18805 2009-03-06  Eric Blake  <ebb9@byu.net>
18806             Bruno Haible  <bruno@clisp.org>
18807
18808         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
18809         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
18810         condition.
18811         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18812         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
18813         condition.
18814         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
18815
18816 2009-03-06  Eric Blake  <ebb9@byu.net>
18817
18818         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
18819         to avoid compiler warnings.
18820         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
18821
18822 2009-03-05  Bruno Haible  <bruno@clisp.org>
18823
18824         * tests/test-ftell.c (main): Disable test beyond end of file on
18825         FreeMiNT.
18826         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18827
18828 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
18829
18830         * lib/filevercmp.c: Move hidden files up in ordering.
18831         * tests/test-filevercmp.c: Add tests for hidden files.
18832
18833 2009-03-04  Bruno Haible  <bruno@clisp.org>
18834
18835         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
18836         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
18837         AM_CFLAGS.
18838         Reported by Simon Josefsson.
18839
18840 2009-03-03  Bruno Haible  <bruno@clisp.org>
18841
18842         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
18843         Reported by Simon Josefsson.
18844
18845         * doc/ld-version-script.texi: Update node reference.
18846
18847 2009-03-03  Bruno Haible  <bruno@clisp.org>
18848
18849         * modules/visibility (License): Change to 'unlimited'.
18850         Suggested by Simon Josefsson.
18851
18852 2009-03-03  Jim Meyering  <meyering@redhat.com>
18853
18854         unlinkdir: cannot_unlink_dir may modify process state
18855         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
18856         it's neither thread-safe nor appropriate for use in a library.
18857
18858 2009-03-03  Eric Blake  <ebb9@byu.net>
18859
18860         test-closein: silence test under Darwin
18861         * tests/test-closein.sh: Ignore stderr from cat, since we don't
18862         care if it dies from EPIPE or EBADF.
18863
18864 2009-03-03  Bruno Haible  <bruno@clisp.org>
18865
18866         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
18867         earlier.
18868         * doc/visibility.texi: Fix @node and @section.
18869
18870 2009-03-03  Simon Josefsson  <simon@josefsson.org>
18871
18872         * doc/gnulib.texi: Link to sections for ld version script and
18873         visibility.
18874         * doc/visibility.texi: Add @node and @section.
18875         * modules/ld-version-script: New module.
18876         * m4/ld-version-script.m4: New file.
18877         * doc/ld-version-script.texi: New file.
18878
18879 2009-03-02  David Lutterkort  <lutter@redhat.com>
18880
18881         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
18882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18883
18884 2009-03-02  Bruno Haible  <bruno@clisp.org>
18885
18886         * doc/visibility.texi: Mention libtool's -export-symbols option.
18887
18888 2009-03-02  Jim Meyering  <meyering@redhat.com>
18889
18890         announce-gen: new option: --no-print-checksums
18891         * build-aux/announce-gen (usage): Describe it.
18892         (print_checksums): Print a newline here, not in the [*] footnote.
18893         (main): Honor it.
18894
18895 2009-03-01  Bruno Haible  <bruno@clisp.org>
18896
18897         Use socklen_t in the native Windows replacements prototypes.
18898         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
18899         instead of 'int'.
18900         * lib/getsockopt.c (rpl_getsockopt): Likewise.
18901         * lib/setsockopt.c (rpl_setsockopt): Likewise.
18902         * modules/getsockopt (Depends-on): Add socklen.
18903         * modules/setsockopt (Depends-on): Add socklen.
18904
18905 2009-03-01  Bruno Haible  <bruno@clisp.org>
18906
18907         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
18908         least 4.2.
18909
18910 2009-03-01  Eric Blake  <ebb9@byu.net>
18911             Bruno Haible  <bruno@clisp.org>
18912
18913         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
18914         error messages.
18915         * lib/wait-process.c (wait_subprocess): Omit error message about
18916         deadly signal sent to the child of termsigp != NULL.
18917
18918 2009-03-01  Eric Blake  <ebb9@byu.net>
18919
18920         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
18921
18922 2009-03-01  Bruno Haible  <bruno@clisp.org>
18923
18924         Avoid a gcc warning.
18925         * tests/test-sched.c (b): Make global.
18926         Reported by Eric Blake.
18927
18928 2009-01-19  Martin Lambers  <marlam@marlam.de>
18929
18930         Provide POSIX semantics for socket timeout options on W32.
18931         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
18932         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
18933         * modules/setsockopt: Depend on sys_time module for struct timeval.
18934         * modules/getsockopt: Depend on sys_time module for struct timeval.
18935
18936 2009-03-01  Simon Josefsson  <simon@josefsson.org>
18937
18938         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
18939         __USE_GNU, for consistency with netdb.in.h.
18940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18941
18942 2009-03-01  Bruno Haible  <bruno@clisp.org>
18943
18944         More support for FreeMiNT.
18945         * lib/fseeko.c (rpl_fseeko): Complete last commit.
18946         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18947
18948 2009-03-01  Bruno Haible  <bruno@clisp.org>
18949
18950         More support for FreeMiNT.
18951         * lib/fpurge.c (fpurge): Correct last commit.
18952         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18953
18954 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18955
18956         Fix unportable awk script in vc-list-files.
18957         * build-aux/vc-list-files: In the replacement awk script, use
18958         substr with a second argument of 1, not zero.
18959         Report by Simon Josefsson.
18960
18961 2009-02-28  Bruno Haible  <bruno@clisp.org>
18962
18963         More support for FreeMiNT.
18964         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
18965         to FreeMiNT today.
18966         * lib/fwriting.c (fwriting): Likewise.
18967         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
18968
18969 2009-02-28  Bruno Haible  <bruno@clisp.org>
18970
18971         * tests/test-freadseek.c (main): Disable test beyond end of file on
18972         FreeMiNT.
18973         * tests/test-ftello.c (main): Likewise.
18974         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
18975
18976 2009-02-28  Bruno Haible  <bruno@clisp.org>
18977
18978         Add tentative support for FreeMiNT.
18979         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
18980         * lib/fpurge.c (fpurge): Likewise.
18981         * lib/freadable.c (freadable): Likewise.
18982         * lib/freading.c (freading): Likewise.
18983         * lib/freadptr.c (freadptr): Likewise.
18984         * lib/freadseek.c (freadptrinc): Likewise.
18985         * lib/fseeko.c (rpl_fseeko): Likewise.
18986         * lib/fseterr.c (fseterr): Likewise.
18987         * lib/fwritable.c (fwritable): Likewise.
18988         * lib/fwriting.c (fwriting): Likewise.
18989         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
18990         Hourihane.
18991         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18992
18993 2009-02-28  Bruno Haible  <bruno@clisp.org>
18994
18995         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
18996         SIGCHLD.
18997         Reported by Jim Meyering.
18998
18999 2009-02-28  Bruno Haible  <bruno@clisp.org>
19000
19001         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19002         Mention the results of these tests on various platforms.
19003         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19004         order.
19005         * doc/posix-functions/printf.texi: Likewise.
19006         * doc/posix-functions/snprintf.texi: Likewise.
19007         * doc/posix-functions/sprintf.texi: Likewise.
19008         * doc/posix-functions/vfprintf.texi: Likewise.
19009         * doc/posix-functions/vprintf.texi: Likewise.
19010         * doc/posix-functions/vsnprintf.texi: Likewise.
19011         * doc/posix-functions/vsprintf.texi: Likewise.
19012         * doc/glibc-functions/obstack_printf.texi: Likewise.
19013         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19014
19015 2009-02-28  Bruno Haible  <bruno@clisp.org>
19016
19017         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19018         Reported by Loïc Minier <lool@dooz.org>.
19019
19020 2009-02-27  Bruno Haible  <bruno@clisp.org>
19021
19022         * gnulib-tool (func_import): Make the sed expression used to create the
19023         sed script for updating the .gitignore file POSIX compliant.
19024         Reported by Eric Blake.
19025
19026 2009-02-27  Bruno Haible  <bruno@clisp.org>
19027
19028         * gnulib-tool (sed): Don't alias as "sed --posix".
19029         Reported by Eric Blake.
19030
19031 2009-02-27  Bruno Haible  <bruno@clisp.org>
19032
19033         Avoid test link errors.
19034         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19035         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19036         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19037         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19039
19040 2009-02-27  Bruno Haible  <bruno@clisp.org>
19041
19042         Avoid spurious "(cached)" in configure output.
19043         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19044         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19045         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19046         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19047         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19048         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19049         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19050         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19051         Reported by Eric Blake.
19052
19053 2009-02-27  Eric Blake  <ebb9@byu.net>
19054
19055         printf: fix regression in previous patch
19056         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19057
19058 2009-02-27  Bruno Haible  <bruno@clisp.org>
19059
19060         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19061         value.
19062         * lib/stdint.in.h: Likewise.
19063         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19064
19065 2009-02-27  Eric Blake  <ebb9@byu.net>
19066
19067         doc: mention more functions added in cygwin 1.7.0
19068         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19069         addition.
19070         * doc/posix-functions/open_wmemstream.texi: Likewise.
19071         * doc/posix-functions/wcsnlen.texi: Likewise.
19072         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19073         * doc/posix-functions/wcstod.texi: Likewise.
19074         * doc/posix-functions/wcstof.texi: Likewise.
19075         * doc/posix-functions/wcstoimax.texi: Likewise.
19076         * doc/posix-functions/wcstok.texi: Likewise.
19077         * doc/posix-functions/wcstoumax.texi: Likewise.
19078
19079         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19081         * doc/posix-functions/fprintf.texi: Update.
19082         * doc/posix-functions/printf.texi: Update.
19083         * doc/posix-functions/snprintf.texi: Update.
19084         * doc/posix-functions/sprintf.texi: Update.
19085         * doc/posix-functions/vfprintf.texi: Update.
19086         * doc/posix-functions/vprintf.texi: Update.
19087         * doc/posix-functions/vsnprintf.texi: Update.
19088         * doc/posix-functions/vsprintf.texi: Update.
19089         * doc/glibc-functions/obstack_printf.texi: Update.
19090         * doc/glibc-functions/obstack_vprintf.texi: Update.
19091
19092 2009-02-26  Eric Blake  <ebb9@byu.net>
19093
19094         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19095         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19096         compilation bug by using runtime conversion.
19097         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19098         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19099         * modules/ceill-tests (Files): Use nan.h.
19100         * modules/floorl-tests (Files): Likewise.
19101         * modules/frexpl-tests (Files): Likewise.
19102         * modules/isnanl-tests (Files): Likewise.
19103         * modules/ldexpl-tests (Files): Likewise.
19104         * modules/roundl-tests (Files): Likewise.
19105         * modules/truncl-tests (Files): Likewise.
19106         * tests/test-ceill.c (main): Use a working NaN.
19107         * tests/test-floorl.c (main): Likewise.
19108         * tests/test-frexpl.c (main): Likewise.
19109         * tests/test-isnan.c (test_long_double): Likewise.
19110         * tests/test-isnanl.h (main): Likewise.
19111         * tests/test-ldexpl.h (main): Likewise.
19112         * tests/test-roundl.h (main): Likewise.
19113         * tests/test-truncl.h (main): Likewise.
19114         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19115
19116 2009-02-26  Eric Blake  <ebb9@byu.net>
19117             Bruno Haible  <bruno@clisp.org>
19118
19119         Work around a *printf bug with %ls on Solaris.
19120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19121         precision is specified, sprintf stops converting the wide string
19122         argument when the number of bytes that have been produced by this
19123         conversion equals or exceeds the precision.
19124         * doc/posix-functions/fprintf.texi: Update.
19125         * doc/posix-functions/printf.texi: Update.
19126         * doc/posix-functions/snprintf.texi: Update.
19127         * doc/posix-functions/sprintf.texi: Update.
19128         * doc/posix-functions/vfprintf.texi: Update.
19129         * doc/posix-functions/vprintf.texi: Update.
19130         * doc/posix-functions/vsnprintf.texi: Update.
19131         * doc/posix-functions/vsprintf.texi: Update.
19132         * doc/glibc-functions/obstack_printf.texi: Update.
19133         * doc/glibc-functions/obstack_vprintf.texi: Update.
19134
19135 2009-02-26  Eric Blake  <ebb9@byu.net>
19136
19137         stdlib: favor compiler check of random.h
19138         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19139         to avoid an ObjC random.h installed by Swarm.
19140
19141 2009-02-26  Bruno Haible  <bruno@clisp.org>
19142
19143         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19144         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19145         Reported by Gary V. Vaughan <gary@gnu.org>.
19146
19147 2009-02-26  Bruno Haible  <bruno@clisp.org>
19148
19149         Fix *printf behaviour regarding the %ls directive.
19150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19151         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19152         NEED_PRINTF_DIRECTIVE_LS.
19153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19154         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19156         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19157         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19158         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19159         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19164         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19168         * doc/posix-functions/fprintf.texi: Update.
19169         * doc/posix-functions/printf.texi: Update.
19170         * doc/posix-functions/snprintf.texi: Update.
19171         * doc/posix-functions/sprintf.texi: Update.
19172         * doc/posix-functions/vfprintf.texi: Update.
19173         * doc/posix-functions/vprintf.texi: Update.
19174         * doc/posix-functions/vsnprintf.texi: Update.
19175         * doc/posix-functions/vsprintf.texi: Update.
19176         * doc/glibc-functions/obstack_printf.texi: Update.
19177         * doc/glibc-functions/obstack_vprintf.texi: Update.
19178         Reported by Eric Blake.
19179
19180 2009-02-25  Bruno Haible  <bruno@clisp.org>
19181
19182         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19183         with known value.
19184         Reported by Gary V. Vaughan <gary@gnu.org>.
19185
19186 2009-02-25  Bruno Haible  <bruno@clisp.org>
19187
19188         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19189         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19190         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19191         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19192         Reported by Gary V. Vaughan <gary@gnu.org>.
19193
19194 2009-02-25  Bruno Haible  <bruno@clisp.org>
19195
19196         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19197         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19198         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19199         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19200         Reported by Gary V. Vaughan <gary@gnu.org>.
19201
19202 2009-02-25  Eric Blake  <ebb9@byu.net>
19203
19204         tests: skip fseek/ftell tests if ungetc is broken
19205         * m4/ungetc.m4: New file.
19206         * modules/fseek-tests: Split test, so ungetc dependency is
19207         separate from rest of test.
19208         * modules/fseeko-tests: Likewise.
19209         * modules/ftell-tests: Likewise.
19210         * modules/ftello-tests: Likewise.
19211         * tests/test-fseek.c (main): Isolate ungetc dependency.
19212         * tests/test-fseeko.c (main): Likewise.
19213         * tests/test-ftell.c (main): Likewise.
19214         * tests/test-ftello.c (main): Likewise.
19215         * tests/test-fseek2.sh: New file.
19216         * tests/test-fseeko2.sh: Likewise.
19217         * tests/test-ftell2.sh: Likewise.
19218         * tests/test-ftello2.sh: Likewise.
19219
19220 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
19221
19222         test-getaddrinfo: fix usage of skip return code 77
19223         * tests/test-gettaddrinfo.c: Return skip code 77 only
19224         for first occurance of skip (4x77 is not 77)
19225
19226 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19227
19228         strtod: avoid C99 decl-after-statement
19229         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19230
19231 2009-02-24  Eric Blake  <ebb9@byu.net>
19232
19233         strtod: detect HP-UX 11.31 bug
19234         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19235         Reported by Gary V. Vaughan.
19236
19237 2009-02-23  Bruno Haible  <bruno@clisp.org>
19238
19239         Fix invalid read past end of memory block.
19240         * lib/vasnprintf.c (DCHAR_SET): Define.
19241         (local_wcslen): Define only when needed.
19242         (local_strnlen, local_wcsnlen): New functions.
19243         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19244         directives that involve a conversion ourselves.
19245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19246         wcsnlen, mbrtowc, wcrtomb.
19247         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19248         * tests/test-vasprintf-posix.c (test_function): Likewise.
19249         * tests/test-snprintf-posix.h (test_function): Likewise.
19250         * tests/test-sprintf-posix.h (test_function): Likewise.
19251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19252
19253 2009-02-22  Bruno Haible  <bruno@clisp.org>
19254
19255         Implement new clarified decomposition of Hangul syllables.
19256         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19257         of type LTV, return only a pairwise decomposition.
19258         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19259         Likewise.
19260         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19261         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19262         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19263
19264 2009-02-22  Bruno Haible  <bruno@clisp.org>
19265
19266         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19267         zero-length results and shrink excess allocated memory.
19268         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19269         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19270         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19271         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19272         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19273         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19274         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19275         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19276         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19277         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19278         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19279         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19280
19281 2009-02-21  Bruno Haible  <bruno@clisp.org>
19282
19283         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19284         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19285         spaces after a period. Put a space between a macro name and its
19286         argument list. Trivial rewordings.
19287         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19288         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19289         (main): Return 0 explicitly.
19290
19291 2009-02-21  Bruno Haible  <bruno@clisp.org>
19292
19293         Tests for module 'uninorm/filter'.
19294         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19295         * modules/uninorm/filter-tests: New file.
19296
19297         New module 'uninorm/filter'.
19298         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19299         uninorm_filter_flush, uninorm_filter_free): New declarations.
19300         * lib/uninorm/uninorm-filter.c: New file.
19301         * modules/uninorm/filter: New file.
19302
19303 2009-02-21  Bruno Haible  <bruno@clisp.org>
19304
19305         Tests for module 'uninorm/nfkc'.
19306         * tests/uninorm/test-nfkc.c: New file.
19307         * tests/uninorm/test-u8-nfkc.c: New file.
19308         * tests/uninorm/test-u16-nfkc.c: New file.
19309         * tests/uninorm/test-u32-nfkc.c: New file.
19310         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19311         * tests/uninorm/test-u32-nfkc-big.c: New file.
19312         * modules/uninorm/nfkc-tests: New file.
19313
19314         New module 'uninorm/nfkc'.
19315         * lib/uninorm/nfkc.c: New file.
19316         * modules/uninorm/nfkc: New file.
19317
19318         Tests for module 'uninorm/nfkd'.
19319         * tests/uninorm/test-nfkd.c: New file.
19320         * tests/uninorm/test-u8-nfkd.c: New file.
19321         * tests/uninorm/test-u16-nfkd.c: New file.
19322         * tests/uninorm/test-u32-nfkd.c: New file.
19323         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19324         * tests/uninorm/test-u32-nfkd-big.c: New file.
19325         * modules/uninorm/nfkd-tests: New file.
19326
19327         New module 'uninorm/nfkd'.
19328         * lib/uninorm/nfkd.c: New file.
19329         * modules/uninorm/nfkd: New file.
19330
19331         Tests for module 'uninorm/nfc'.
19332         * tests/uninorm/test-nfc.c: New file.
19333         * tests/uninorm/test-u8-nfc.c: New file.
19334         * tests/uninorm/test-u16-nfc.c: New file.
19335         * tests/uninorm/test-u32-nfc.c: New file.
19336         * tests/uninorm/test-u32-nfc-big.sh: New file.
19337         * tests/uninorm/test-u32-nfc-big.c: New file.
19338         * modules/uninorm/nfc-tests: New file.
19339
19340         New module 'uninorm/nfc'.
19341         * lib/uninorm/nfc.c: New file.
19342         * modules/uninorm/nfc: New file.
19343
19344         Tests for module 'uninorm/nfd'.
19345         * tests/uninorm/test-nfd.c: New file.
19346         * tests/uninorm/test-u8-nfd.c: New file.
19347         * tests/uninorm/test-u16-nfd.c: New file.
19348         * tests/uninorm/test-u32-nfd.c: New file.
19349         * tests/uninorm/test-u32-nfd-big.sh: New file.
19350         * tests/uninorm/test-u32-nfd-big.c: New file.
19351         * tests/uninorm/test-u32-normalize-big.h: New file.
19352         * tests/uninorm/test-u32-normalize-big.c: New file.
19353         * tests/uninorm/NormalizationTest.txt: New file, created from
19354         Unicode 5.1.0 NormalizationTest.txt.
19355         * modules/uninorm/nfd-tests: New file.
19356
19357         New module 'uninorm/nfd'.
19358         * lib/uninorm/nfd.c: New file.
19359         * modules/uninorm/nfd: New file.
19360
19361         New module 'uninorm/u32-normalize'.
19362         * lib/uninorm/u32-normalize.c: New file.
19363         * modules/uninorm/u32-normalize: New file.
19364
19365         New module 'uninorm/u16-normalize'.
19366         * lib/uninorm/u16-normalize.c: New file.
19367         * modules/uninorm/u16-normalize: New file.
19368
19369         New module 'uninorm/u8-normalize'.
19370         * lib/uninorm/u8-normalize.c: New file.
19371         * lib/uninorm/normalize-internal.h: New file.
19372         * lib/uninorm/u-normalize-internal.h: New file.
19373         * modules/uninorm/u8-normalize: New file.
19374
19375         New module 'uninorm/decompose-internal'.
19376         * lib/uninorm/decompose-internal.c: New file.
19377         * modules/uninorm/decompose-internal: New file.
19378
19379         Tests for module 'uninorm/composition'.
19380         * tests/uninorm/test-composition.c: New file.
19381         * modules/uninorm/composition-tests: New file.
19382
19383         New module 'uninorm/composition'.
19384         * lib/uninorm/composition.c: New file.
19385         * lib/uninorm/composition-table.gperf: New file, generated by
19386         gen-uni-tables.
19387         * modules/uninorm/composition: New file.
19388
19389         Tests for module 'uninorm/compat-decomposition'.
19390         * tests/uninorm/test-compat-decomposition.c: New file.
19391         * modules/uninorm/compat-decomposition-tests: New file.
19392
19393         New module 'uninorm/compat-decomposition'.
19394         * lib/uninorm/decompose-internal.h: New file.
19395         * lib/uninorm/compat-decomposition.c: New file.
19396         * modules/uninorm/compat-decomposition: New file.
19397
19398         Tests for module 'uninorm/canonical-decomposition'.
19399         * tests/uninorm/test-canonical-decomposition.c: New file.
19400         * modules/uninorm/canonical-decomposition-tests: New file.
19401
19402         New module 'uninorm/canonical-decomposition'.
19403         * lib/uninorm/canonical-decomposition.c: New file.
19404         * modules/uninorm/canonical-decomposition: New file.
19405
19406         Tests for module 'uninorm/decomposition'.
19407         * tests/uninorm/test-decomposition.c: New file.
19408         * modules/uninorm/decomposition-tests: New file.
19409
19410         New module 'uninorm/decomposition'.
19411         * lib/uninorm/decomposition.c: New file.
19412         * modules/uninorm/decomposition: New file.
19413
19414         New module 'uninorm/decomposition-table'.
19415         * lib/uninorm/decomposition-table.h: New file.
19416         * lib/uninorm/decomposition-table.c: New file.
19417         * lib/uninorm/decomposition-table1.h: New file, generated by
19418         gen-uni-tables.
19419         * lib/uninorm/decomposition-table2.h: New file, generated by
19420         gen-uni-tables.
19421         * modules/uninorm/decomposition-table: New file.
19422
19423         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19424         (UC_DECOMP_*): New enumeration items.
19425         (get_decomposition): New function.
19426         (struct decomp_table): New type.
19427         (output_decomposition, output_decomposition_tables): New functions.
19428         (unicode_composition_exclusions): New variable.
19429         (fill_composition_exclusions, debug_output_composition_tables): New
19430         functions.
19431         (main): Accept one more argument. Invoke fill_composition_exclusions.
19432         Output decomposition and composition tables.
19433
19434         New module 'uninorm/base'.
19435         * lib/uninorm.h: New file.
19436         * lib/unictype.h: Update comment.
19437         * modules/uninorm/base: New file.
19438
19439 2009-02-21  David Lutterkort  <lutter@redhat.com>
19440
19441         Tests for module 'safe-alloc'.
19442         * tests/test-safe-alloc.c: New file.
19443         * modules/safe-alloc-tests: New file.
19444
19445         New module 'safe-alloc'.
19446         * lib/safe-alloc.h: New file.
19447         * lib/safe-alloc.c: New file.
19448         * m4/safe-alloc.m4: New file.
19449         * modules/safe-alloc: New file.
19450         * doc/safe-alloc.texi: New file.
19451         * doc/gnulib.texi: Include it.
19452         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19453         safe-alloc.
19454
19455 2009-02-18  Bruno Haible  <bruno@clisp.org>
19456
19457         Fix link error on non-glibc systems.
19458         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19459         variable.
19460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19461
19462 2009-02-18  Jim Meyering  <meyering@redhat.com>
19463
19464         fts: avoid used-uninitialized error due to recent change
19465         * lib/fts.c (fts_read): Guard uses of the new member,
19466         parent->fts_n_dirs_remaining, since it's not relevant for
19467         the parent of a directory specified on the command-line.
19468
19469 2009-02-17  James Youngman  <jay@gnu.org>
19470             Bruno Haible  <bruno@clisp.org>
19471
19472         * m4/include_next.m4: Reformulate comment.
19473
19474 2009-02-16  Jim Meyering  <meyering@redhat.com>
19475
19476         fts: add #if guards so that the fts_lgpl module still builds
19477         * lib/fts.c: Guard just-added hash-table-using parts with
19478         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19479         Reported by Simon Josefsson.
19480
19481 2009-02-15  Bruno Haible  <bruno@clisp.org>
19482
19483         * modules/array-mergesort-tests: New file.
19484         * tests/test-array-mergesort.c: New file.
19485
19486         New module 'array-mergesort'.
19487         * modules/array-mergesort: New file.
19488         * lib/array-mergesort.h: New file.
19489
19490 2009-02-15  Bruno Haible  <bruno@clisp.org>
19491
19492         Fix 2009-02-07 commit.
19493         * lib/gen-uni-tables.c (output_predicate, output_category,
19494         output_combclass, output_bidi_category, output_decimal_digit,
19495         output_digit, output_numeric, output_mirror, output_scripts,
19496         output_ident_category, output_simple_mapping): Fix format directives.
19497         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19498
19499 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19500
19501         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19502         fixes are available from IBM.
19503
19504 2009-02-13  Jim Meyering  <meyering@redhat.com>
19505
19506         fts: arrange not to stat non-directories in more cases
19507         This makes GNU find (when it doesn't need to stat each file)
19508         *much* more efficient at traversing reiserfs file systems.
19509         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19510         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19511         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19512         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19513         (leaf_optimization_applies): New function.
19514         (LCO_hash, LCO_compare): New helper functions.
19515         (link_count_optimize_ok): New function.
19516         (fts_stat): Initialize new member (if dir).
19517         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19518         we've just stat'ed a directory.  Skip the stat call when possible.
19519         ---
19520         Note this AFS-related exchange:
19521         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19522         and note find's pioctl call in find/fstype.c.
19523         But that is necessary only if you want to enable the
19524         optimization for AFS, and for now, I don't.
19525
19526         fts: move a function definition "up" (no semantic change)
19527         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
19528         "up" to precede upcoming use of a related function.
19529
19530 2009-02-11  Jim Meyering  <meyering@redhat.com>
19531
19532         fts: correct internal computation of nlinks (optimization-related)
19533         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
19534         whether the current entry is a directory, so don't test it.
19535
19536 2009-02-10  Bruno Haible  <bruno@clisp.org>
19537
19538         Tests for module 'uniwbrk/ulc-wordbreaks'.
19539         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
19540         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
19541         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
19542
19543         Tests for module 'uniwbrk/u32-wordbreaks'.
19544         * modules/uniwbrk/u32-wordbreaks-tests: New file.
19545         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
19546
19547         Tests for module 'uniwbrk/u16-wordbreaks'.
19548         * modules/uniwbrk/u16-wordbreaks-tests: New file.
19549         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
19550
19551         Tests for module 'uniwbrk/u8-wordbreaks'.
19552         * modules/uniwbrk/u8-wordbreaks-tests: New file.
19553         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
19554
19555 2009-02-10  Bruno Haible  <bruno@clisp.org>
19556
19557         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
19558         property.
19559         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
19560         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
19561         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
19562
19563 2009-02-10  Simon Josefsson  <simon@josefsson.org>
19564
19565         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
19566         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
19567
19568 2009-02-10  Bruno Haible  <bruno@clisp.org>
19569
19570         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
19571         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
19572         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
19573         * lib/unilbrk/u8-possible-linebreaks.c: Update.
19574         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
19575         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
19576
19577 2009-02-09  Simon Josefsson  <simon@josefsson.org>
19578
19579         * lib/sockets.h (gl_fd_to_handle): New function.
19580
19581         * tests/test-sockets.c: Call gl_fd_to_handle.
19582
19583 2009-02-09  Bruno Haible  <bruno@clisp.org>
19584
19585         * doc/havelib.texi: Document the conventions on bi-arch systems.
19586
19587 2009-02-08  Bruno Haible  <bruno@clisp.org>
19588
19589         Document the AC_LIB_LINKFLAGS macro.
19590         * doc/havelib.texi: New file, mostly written on 2005-05-24.
19591         * doc/gnulib.texi: Include it.
19592
19593 2009-02-08  Bruno Haible  <bruno@clisp.org>
19594
19595         Fix wrong order of sections, compared to TOC.
19596         * doc/gnulib.texi: Include relocatable-maint.texi after the
19597         "Regular expressions" node, not before.
19598
19599 2009-02-08  Bruno Haible  <bruno@clisp.org>
19600
19601         Tests for module 'unicase/totitle'.
19602         * modules/unicase/totitle-tests: New file.
19603
19604         Tests for module 'unicase/tolower'.
19605         * modules/unicase/tolower-tests: New file.
19606
19607         Tests for module 'unicase/toupper'.
19608         * modules/unicase/toupper-tests: New file.
19609         * tests/unicase/test-mapping-part1.h: New file.
19610         * tests/unicase/test-mapping-part2.h: New file.
19611
19612         New module 'unicase/totitle'.
19613         * modules/unicase/totitle: New file.
19614         * lib/unicase/totitle.c: New file.
19615
19616         New module 'unicase/tolower'.
19617         * modules/unicase/tolower: New file.
19618         * lib/unicase/tolower.c: New file.
19619
19620         New module 'unicase/toupper'.
19621         * modules/unicase/toupper: New file.
19622         * lib/unicase/toupper.c: New file.
19623         * lib/unicase/simple-mapping.h: New file.
19624
19625         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
19626         (mapping_table): New structure.
19627         (output_simple_mapping): New function.
19628         (main): Invoke output_simple_mapping_test and output_simple_mapping.
19629         * modules/gen-uni-tables (Description): Update.
19630         * lib/unicase/toupper.h: New file, automatically generated by
19631         gen-uni-tables.
19632         * lib/unicase/tolower.h: New file, automatically generated by
19633         gen-uni-tables.
19634         * lib/unicase/totitle.h: New file, automatically generated by
19635         gen-uni-tables.
19636         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
19637         gen-uni-tables.
19638         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
19639         gen-uni-tables.
19640         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
19641         gen-uni-tables.
19642
19643         New module 'unicase/base'.
19644         * modules/unicase/base: New file.
19645         * lib/unicase.h: New file.
19646
19647 2009-02-08  Bruno Haible  <bruno@clisp.org>
19648
19649         New module 'uniwbrk/ulc-wordbreaks'.
19650         * modules/uniwbrk/ulc-wordbreaks: New file.
19651         * lib/uniwbrk/ulc-wordbreaks.c: New file.
19652
19653         New module 'uniwbrk/u32-wordbreaks'.
19654         * modules/uniwbrk/u32-wordbreaks: New file.
19655         * lib/uniwbrk/u32-wordbreaks.c: New file.
19656
19657         New module 'uniwbrk/u16-wordbreaks'.
19658         * modules/uniwbrk/u16-wordbreaks: New file.
19659         * lib/uniwbrk/u16-wordbreaks.c: New file.
19660
19661         New module 'uniwbrk/u8-wordbreaks'.
19662         * modules/uniwbrk/u8-wordbreaks: New file.
19663         * lib/uniwbrk/u8-wordbreaks.c: New file.
19664         * lib/uniwbrk/u-wordbreaks.h: New file.
19665
19666         New module 'uniwbrk/table'.
19667         * modules/uniwbrk/table: New file.
19668         * lib/uniwbrk/wbrktable.h: New file.
19669         * lib/uniwbrk/wbrktable.c: New file.
19670
19671         New module 'uniwbrk/wordbreak-property'.
19672         * modules/uniwbrk/wordbreak-property: New file.
19673         * lib/uniwbrk/wordbreak-property.c: New file.
19674
19675         * lib/gen-uni-tables.c (WBP_*): New enum items.
19676         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
19677         (unicode_org_wbp): New variable.
19678         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
19679         New functions.
19680         (wbp_table): New structure.
19681         (output_wbp, output_wbrk_tables): New functions.
19682         (main): Accept additional argument. Invoke fill_org_wbp,
19683         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
19684         output_wbrk_tables.
19685         * modules/gen-uni-tables (Description): Update.
19686         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
19687         gen-uni-tables.
19688
19689         New module 'uniwbrk/base'.
19690         * modules/uniwbrk/base: New file.
19691         * lib/uniwbrk.h: New file.
19692
19693 2009-02-08  Bruno Haible  <bruno@clisp.org>
19694
19695         Update to Unicode 5.1.0.
19696         * lib/gen-uni-tables.c (is_property_alphabetic): Include
19697         U+2185..U+2188.
19698         (is_property_default_ignorable_code_point): Don't include characters
19699         of category Cc or Cs and not-a-characters.
19700         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
19701         U+0D79, U+109E, U+109F, U+A60C.
19702         * lib/unictype/bidi_of.h: Regenerated.
19703         * lib/unictype/blocks.h: Regenerated.
19704         * lib/unictype/categ_C.h: Regenerated.
19705         * lib/unictype/categ_Cf.h: Regenerated.
19706         * lib/unictype/categ_Cn.h: Regenerated.
19707         * lib/unictype/categ_L.h: Regenerated.
19708         * lib/unictype/categ_Ll.h: Regenerated.
19709         * lib/unictype/categ_Lm.h: Regenerated.
19710         * lib/unictype/categ_Lo.h: Regenerated.
19711         * lib/unictype/categ_Lu.h: Regenerated.
19712         * lib/unictype/categ_M.h: Regenerated.
19713         * lib/unictype/categ_Mc.h: Regenerated.
19714         * lib/unictype/categ_Me.h: Regenerated.
19715         * lib/unictype/categ_Mn.h: Regenerated.
19716         * lib/unictype/categ_N.h: Regenerated.
19717         * lib/unictype/categ_Nd.h: Regenerated.
19718         * lib/unictype/categ_Nl.h: Regenerated.
19719         * lib/unictype/categ_No.h: Regenerated.
19720         * lib/unictype/categ_P.h: Regenerated.
19721         * lib/unictype/categ_Pd.h: Regenerated.
19722         * lib/unictype/categ_Pe.h: Regenerated.
19723         * lib/unictype/categ_Pf.h: Regenerated.
19724         * lib/unictype/categ_Pi.h: Regenerated.
19725         * lib/unictype/categ_Po.h: Regenerated.
19726         * lib/unictype/categ_Ps.h: Regenerated.
19727         * lib/unictype/categ_S.h: Regenerated.
19728         * lib/unictype/categ_Sk.h: Regenerated.
19729         * lib/unictype/categ_Sm.h: Regenerated.
19730         * lib/unictype/categ_So.h: Regenerated.
19731         * lib/unictype/categ_of.h: Regenerated.
19732         * lib/unictype/combining.h: Regenerated.
19733         * lib/unictype/ctype_alnum.h: Regenerated.
19734         * lib/unictype/ctype_alpha.h: Regenerated.
19735         * lib/unictype/ctype_graph.h: Regenerated.
19736         * lib/unictype/ctype_lower.h: Regenerated.
19737         * lib/unictype/ctype_print.h: Regenerated.
19738         * lib/unictype/ctype_punct.h: Regenerated.
19739         * lib/unictype/ctype_upper.h: Regenerated.
19740         * lib/unictype/decdigit.h: Regenerated.
19741         * lib/unictype/digit.h: Regenerated.
19742         * lib/unictype/mirror.h: Regenerated.
19743         * lib/unictype/numeric.h: Regenerated.
19744         * lib/unictype/pr_alphabetic.h: Regenerated.
19745         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
19746         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
19747         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
19748         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
19749         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
19750         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
19751         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
19752         * lib/unictype/pr_combining.h: Regenerated.
19753         * lib/unictype/pr_dash.h: Regenerated.
19754         * lib/unictype/pr_decimal_digit.h: Regenerated.
19755         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
19756         * lib/unictype/pr_deprecated.h: Regenerated.
19757         * lib/unictype/pr_diacritic.h: Regenerated.
19758         * lib/unictype/pr_extender.h: Regenerated.
19759         * lib/unictype/pr_format_control.h: Regenerated.
19760         * lib/unictype/pr_grapheme_base.h: Regenerated.
19761         * lib/unictype/pr_grapheme_extend.h: Regenerated.
19762         * lib/unictype/pr_grapheme_link.h: Regenerated.
19763         * lib/unictype/pr_id_continue.h: Regenerated.
19764         * lib/unictype/pr_id_start.h: Regenerated.
19765         * lib/unictype/pr_ideographic.h: Regenerated.
19766         * lib/unictype/pr_ignorable_control.h: Regenerated.
19767         * lib/unictype/pr_lowercase.h: Regenerated.
19768         * lib/unictype/pr_math.h: Regenerated.
19769         * lib/unictype/pr_numeric.h: Regenerated.
19770         * lib/unictype/pr_other_alphabetic.h: Regenerated.
19771         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
19772         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
19773         * lib/unictype/pr_other_id_continue.h: Regenerated.
19774         * lib/unictype/pr_other_lowercase.h: Regenerated.
19775         * lib/unictype/pr_other_math.h: Regenerated.
19776         * lib/unictype/pr_punctuation.h: Regenerated.
19777         * lib/unictype/pr_sentence_terminal.h: Regenerated.
19778         * lib/unictype/pr_soft_dotted.h: Regenerated.
19779         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
19780         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
19781         * lib/unictype/pr_unified_ideograph.h: Regenerated.
19782         * lib/unictype/pr_uppercase.h: Regenerated.
19783         * lib/unictype/pr_xid_continue.h: Regenerated.
19784         * lib/unictype/pr_xid_start.h: Regenerated.
19785         * lib/unictype/pr_zero_width.h: Regenerated.
19786         * lib/unictype/scripts.h: Regenerated.
19787         * lib/unictype/scripts_byname.gperf: Regenerated.
19788         * lib/unictype/sy_java_ident.h: Regenerated.
19789         * lib/unilbrk/lbrkprop1.h: Regenerated.
19790         * lib/unilbrk/lbrkprop2.h: Regenerated.
19791         * tests/unictype/test-categ_C.c: Regenerated.
19792         * tests/unictype/test-categ_Cf.c: Regenerated.
19793         * tests/unictype/test-categ_Cn.c: Regenerated.
19794         * tests/unictype/test-categ_L.c: Regenerated.
19795         * tests/unictype/test-categ_Ll.c: Regenerated.
19796         * tests/unictype/test-categ_Lm.c: Regenerated.
19797         * tests/unictype/test-categ_Lo.c: Regenerated.
19798         * tests/unictype/test-categ_Lu.c: Regenerated.
19799         * tests/unictype/test-categ_M.c: Regenerated.
19800         * tests/unictype/test-categ_Mc.c: Regenerated.
19801         * tests/unictype/test-categ_Me.c: Regenerated.
19802         * tests/unictype/test-categ_Mn.c: Regenerated.
19803         * tests/unictype/test-categ_N.c: Regenerated.
19804         * tests/unictype/test-categ_Nd.c: Regenerated.
19805         * tests/unictype/test-categ_Nl.c: Regenerated.
19806         * tests/unictype/test-categ_No.c: Regenerated.
19807         * tests/unictype/test-categ_P.c: Regenerated.
19808         * tests/unictype/test-categ_Pd.c: Regenerated.
19809         * tests/unictype/test-categ_Pe.c: Regenerated.
19810         * tests/unictype/test-categ_Pf.c: Regenerated.
19811         * tests/unictype/test-categ_Pi.c: Regenerated.
19812         * tests/unictype/test-categ_Po.c: Regenerated.
19813         * tests/unictype/test-categ_Ps.c: Regenerated.
19814         * tests/unictype/test-categ_S.c: Regenerated.
19815         * tests/unictype/test-categ_Sk.c: Regenerated.
19816         * tests/unictype/test-categ_Sm.c: Regenerated.
19817         * tests/unictype/test-categ_So.c: Regenerated.
19818         * tests/unictype/test-ctype_alnum.c: Regenerated.
19819         * tests/unictype/test-ctype_alpha.c: Regenerated.
19820         * tests/unictype/test-ctype_graph.c: Regenerated.
19821         * tests/unictype/test-ctype_lower.c: Regenerated.
19822         * tests/unictype/test-ctype_print.c: Regenerated.
19823         * tests/unictype/test-ctype_punct.c: Regenerated.
19824         * tests/unictype/test-ctype_upper.c: Regenerated.
19825         * tests/unictype/test-decdigit.h: Regenerated.
19826         * tests/unictype/test-digit.h: Regenerated.
19827         * tests/unictype/test-numeric.h: Regenerated.
19828         * tests/unictype/test-pr_alphabetic.c: Regenerated.
19829         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
19830         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
19831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
19832         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
19833         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
19834         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
19835         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
19836         * tests/unictype/test-pr_combining.c: Regenerated.
19837         * tests/unictype/test-pr_dash.c: Regenerated.
19838         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
19839         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
19840         * tests/unictype/test-pr_deprecated.c: Regenerated.
19841         * tests/unictype/test-pr_diacritic.c: Regenerated.
19842         * tests/unictype/test-pr_extender.c: Regenerated.
19843         * tests/unictype/test-pr_format_control.c: Regenerated.
19844         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
19845         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
19846         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
19847         * tests/unictype/test-pr_id_continue.c: Regenerated.
19848         * tests/unictype/test-pr_id_start.c: Regenerated.
19849         * tests/unictype/test-pr_ideographic.c: Regenerated.
19850         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
19851         * tests/unictype/test-pr_lowercase.c: Regenerated.
19852         * tests/unictype/test-pr_math.c: Regenerated.
19853         * tests/unictype/test-pr_numeric.c: Regenerated.
19854         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
19855         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
19856         Regenerated.
19857         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
19858         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
19859         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
19860         * tests/unictype/test-pr_other_math.c: Regenerated.
19861         * tests/unictype/test-pr_punctuation.c: Regenerated.
19862         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
19863         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
19864         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
19865         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
19866         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
19867         * tests/unictype/test-pr_uppercase.c: Regenerated.
19868         * tests/unictype/test-pr_xid_continue.c: Regenerated.
19869         * tests/unictype/test-pr_xid_start.c: Regenerated.
19870         * tests/unictype/test-pr_zero_width.c: Regenerated.
19871
19872         Update to Unicode 5.1.0.
19873         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
19874         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
19875         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
19876         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
19877         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
19878         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
19879         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
19880         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
19881         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
19882         (nonspacing_table_ind): Update.
19883         * tests/uniwidth/test-uc_width2.sh: Update expected result.
19884
19885         Update to Unicode 5.1.0.
19886         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
19887         code transform.
19888         * lib/uniname/uniname.c (unicode_character_name,
19889         unicode_name_character): Add the range 0x1Fxxx to the code transform.
19890         * lib/uniname/uninames.h: Regenerated.
19891         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
19892
19893 2009-02-07  Bruno Haible  <bruno@clisp.org>
19894
19895         Merge gen-ctype and gen-lbrk into a single program.
19896         * lib/gen-uni-tables.c: New file, incorporating
19897         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
19898         Add directory prefixes to the names of the generated files.
19899         * lib/unictype/gen-ctype.c: Remove file.
19900         * lib/unilbrk/gen-lbrk.c: Remove file.
19901         * modules/gen-uni-tables: New file.
19902         * modules/unictype/gen-ctype: Remove file.
19903         * modules/unilbrk/gen-lbrk: Remove file.
19904
19905 2009-02-07  Bruno Haible  <bruno@clisp.org>
19906
19907         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
19908
19909         New module 'unistr/u32-strcoll'.
19910         * modules/unistr/u32-strcoll: New file.
19911         * lib/unistr/u32-strcoll.c: New file.
19912
19913         New module 'unistr/u16-strcoll'.
19914         * modules/unistr/u16-strcoll: New file.
19915         * lib/unistr/u16-strcoll.c: New file.
19916
19917         New module 'unistr/u8-strcoll'.
19918         * modules/unistr/u8-strcoll: New file.
19919         * lib/unistr/u8-strcoll.c: New file.
19920         * lib/unistr/u-strcoll.h: New file.
19921
19922 2009-02-07  Bruno Haible  <bruno@clisp.org>
19923
19924         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
19925         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19926         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
19927         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
19928         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
19929         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
19930
19931 2009-02-07  Bruno Haible  <bruno@clisp.org>
19932
19933         Make 64-bit clean.
19934         * lib/unictype/gen-ctype.c (output_predicate, output_category,
19935         output_combclass, output_bidi_category, output_decimal_digit,
19936         output_digit, output_numeric, output_mirror, output_scripts,
19937         output_ident_category): Use proper width specifier in format strings.
19938
19939 2009-02-07  Bruno Haible  <bruno@clisp.org>
19940
19941         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
19942         failure behaviour.
19943
19944 2009-02-07  Jim Meyering  <meyering@redhat.com>
19945
19946         regex: avoid compilation failure with upcoming gcc-4.4
19947         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
19948         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
19949         "... error: integer overflow in preprocessor expression".
19950
19951 2009-02-05  Ben Pfaff  <blp@gnu.org>
19952
19953         Fix link errors on Windows when close module is used.
19954         * modules/close: Add $(LIB_CLOSE) to Link section.
19955         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
19956         $(LIB_CLOSE) on Windows.
19957
19958 2009-02-05  Jim Meyering  <meyering@redhat.com>
19959
19960         still avoid unused-parameter warnings, but do it cleanly
19961         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
19962         (get_fs_usage): Cast to void instead.
19963         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
19964         (dev_from_mount_options, read_file_system_list): Cast to void.
19965         Prompted by Bruno Haible.
19966
19967 2009-02-04  Jim Meyering  <meyering@redhat.com>
19968
19969         fsusage.c: correct copyright year
19970         * lib/fsusage.c: Reflect year in which the change is pushed into
19971
19972         avoid misc. warnings
19973         * lib/fsusage.c (UNUSED_PARAM): Define.
19974         (get_fs_usage): Mark parameter "disk" as unused.
19975         * lib/getugroups.c (getgrent): Use "void" in prototype.
19976         * lib/mountlist.c: Mark unused parameters.
19977         (read_file_system_list): Declare a local with "const".
19978         * lib/nanosleep.c (getnow): Declare static.
19979         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
19980
19981         dirfd: set errno upon failure
19982         * lib/dirfd.c: Include <errno.h>.
19983         Set errno to ENOTSUP when returning -1.
19984         * modules/dirfd (Depends-on): Add errno.
19985         Suggested by John Kodis <kodis@comcast.net>.
19986
19987 2009-02-01  Bruno Haible  <bruno@clisp.org>
19988
19989         Don't assume sizeof (long) >= sizeof (void *).
19990         * lib/memcmp.c: Include stdint.h.
19991         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
19992         srcp2 to 'const byte *'.
19993         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
19994         types to uintptr_t.
19995         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
19996         * modules/memcmp (Depends-on): Add stdint.
19997         Reported by Ozkan Sezer <sezeroz@gmail.com>.
19998
19999 2009-01-30  Eric Blake  <ebb9@byu.net>
20000
20001         fix more require-before-expand issues
20002         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20003         expand, AC_PROG_AWK.
20004         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20005
20006 2009-01-28  Eric Blake  <ebb9@byu.net>
20007
20008         version-etc: use consistent URL formatting
20009         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20010         Improve formatting.  Use fputs for string without %.
20011
20012 2009-01-28  Jim Meyering  <meyering@redhat.com>
20013
20014         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20015         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20016         "underquoted definition of NAME" from autoconf-2.59.
20017
20018 2009-01-28  Bruno Haible  <bruno@clisp.org>
20019
20020         * doc/gnulib.texi: Add "Obsolete modules" to index.
20021
20022 2009-01-28  Jim Meyering  <meyering@redhat.com>
20023
20024         useless-if-before-free: recognize more variants
20025         * build-aux/useless-if-before-free: Also recognize e.g.,
20026         if (NULL != p) free (p);
20027
20028 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20029
20030         test-getaddrinfo: skip (don't fail) this test when there's no network
20031         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20032         on the presumption that it means you lack network access.
20033
20034 2009-01-26  Jim Meyering  <meyering@redhat.com>
20035
20036         fflush: avoid warnings on modern systems
20037         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20038         pos and result, into scopes where they're used.
20039
20040 2009-01-26  Eric Blake  <ebb9@byu.net>
20041
20042         Silence warning reintroduced by recent extensions patch.
20043         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20044         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20045         autoconf.
20046
20047         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20048         * m4/00gnulib.m4: New file.
20049         * gnulib-tool (func_get_filelist): Always use it.
20050         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20051         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20052
20053 2009-01-25  Bruno Haible  <bruno@clisp.org>
20054
20055         Make test-quotearg work on MacOS X and AIX.
20056         * tests/test-quotearg.sh: New file.
20057         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20058         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20059         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20060         include <libintl.h>.
20061         (fake_locale): Remove variable.
20062         (gettext, dgettext, dcgettext): Remove functions.
20063         (main): Instead of setting a fake locale, set a real locale. Call
20064         textdomain and bindtextdomain.
20065         * modules/quotearg-tests (Files): Add the new files.
20066         (Depends-on): Add gettext, setenv, unsetenv.
20067         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20068         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20069         Augment TESTS_ENVIRONMENT.
20070
20071 2009-01-25  Bruno Haible  <bruno@clisp.org>
20072
20073         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20074         fr_FR.ISO8859-1 locale on MacOS X.
20075         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20076         ja_JP.eucJP locale on MacOS X.
20077         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20078         zh_CN.GB18030 locale on MacOS X.
20079
20080 2009-01-25  Bruno Haible  <bruno@clisp.org>
20081
20082         Avoid link errors on MacOS X 10.3.
20083         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20084         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20085
20086 2009-01-25  Bruno Haible  <bruno@clisp.org>
20087
20088         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20089         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20090         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20091         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20092         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20093         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20094         posix_spawnattr_init, posix_spawnattr_setsigmask,
20095         posix_spawnattr_setflags, posix_spawnattr_destroy.
20096
20097         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20098         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20099         * modules/execute (Files): Remove m4/posix_spawn.m4.
20100         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20101         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20102         posix_spawnattr_init, posix_spawnattr_setsigmask,
20103         posix_spawnattr_setflags, posix_spawnattr_destroy.
20104
20105 2009-01-25  Bruno Haible  <bruno@clisp.org>
20106
20107         * lib/glthread/threadlib.c: Include <stdlib.h>.
20108
20109 2009-01-25  Bruno Haible  <bruno@clisp.org>
20110
20111         * lib/glthread/threadlib.c (dummy): New declaration.
20112
20113 2009-01-25  Bruno Haible  <bruno@clisp.org>
20114
20115         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20116         multibyte characters also for the GB18030 encoding. Don't crash when
20117         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20118
20119 2009-01-25  Bruno Haible  <bruno@clisp.org>
20120
20121         Avoid redefining 'struct random_data' on OSF/1 5.1.
20122         * lib/stdlib.in.h: Include <random.h> if it exists.
20123         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20124         HAVE_RANDOM_H. Include <random.h> when testing whether
20125         'struct random_data' exists.
20126         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20127
20128 2009-01-25  Bruno Haible  <bruno@clisp.org>
20129
20130         Don't install charset.alias on MacOS X >= 10.3.
20131         * lib/localcharset.c (DARWIN7): New macro.
20132         (get_charset_aliases): Hardcode the result for Darwin7.
20133         * modules/localcharset (install-exec-local): Don't install
20134         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20135
20136 2009-01-25  Bruno Haible  <bruno@clisp.org>
20137
20138         Don't install charset.alias on mingw and Cygwin.
20139         * modules/localcharset (install-exec-local): Don't install
20140         charset.alias on mingw and Cygwin, if the file does not yet exist.
20141         The result for these platforms is hardcoded in localcharset.c.
20142
20143 2009-01-25  Bruno Haible  <bruno@clisp.org>
20144
20145         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20147         before requiring AC_USE_SYSTEM_EXTENSIONS.
20148
20149 2009-01-25  Jim Meyering  <meyering@redhat.com>
20150
20151         c-strtod: avoid warnings
20152         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20153         "assignment discards qualifiers from pointer target type" warnings.
20154
20155 2009-01-24  Bruno Haible  <bruno@clisp.org>
20156
20157         Add support for non-UTF-8 locales on MacOS X.
20158         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20159         canonical encodings. For Darwin 7 and newer, don't map traditional
20160         encodings to UTF-8.
20161         Reported by Vincent Lefevre <vincent@vinc17.org>
20162         at <http://savannah.gnu.org/bugs/?25235>.
20163
20164 2009-01-24  Bruno Haible  <bruno@clisp.org>
20165
20166         * doc/gnulib.texi (Obsolete modules): New section.
20167         Reported by Mike Frysinger <vapier@gentoo.org>.
20168
20169 2009-01-24  Bruno Haible  <bruno@clisp.org>
20170
20171         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20172         (%.dvi): New rule.
20173
20174 2009-01-24  Bruno Haible  <bruno@clisp.org>
20175
20176         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20177         Reported by Eric Blake.
20178
20179 2009-01-24  Bruno Haible  <bruno@clisp.org>
20180
20181         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20182         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20183         Reported by Gary V. Vaughan <gary@gnu.org>.
20184
20185 2009-01-24  Bruno Haible  <bruno@clisp.org>
20186
20187         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20188
20189 2009-01-23  Bruno Haible  <bruno@clisp.org>
20190
20191         Make c-strtod, c-strtold usable in libraries.
20192         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20193         (C_STRTOD): Call strdup instead of xstrdup.
20194         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20195         * modules/c-strtold (Depends-on): Likewise.
20196         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20197         * NEWS: Mention the change.
20198         Reported by Michael Gold <mgold@ncf.ca>.
20199
20200 2009-01-23  Jim Meyering  <meyering@redhat.com>
20201
20202         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20203         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20204         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20205
20206 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20207
20208         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20209         GNU CoreUtils.
20210         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20211         * modules/version-etc (Description): Update.
20212
20213 2009-01-22  Bruno Haible  <bruno@clisp.org>
20214
20215         Cache the C locale object.
20216         * lib/c-strtod.c (c_locale_cache): New variable.
20217         (c_locale): New function.
20218         (C_STRTOD): Use it, and don't call freelocale.
20219         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20220         Suggested by Paolo Bonzini.
20221
20222 2009-01-21  Bruno Haible  <bruno@clisp.org>
20223
20224         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20225         conditions other than overflow.
20226
20227 2009-01-21  Bruno Haible  <bruno@clisp.org>
20228
20229         * lib/c-strtod.c: Include errno.h.
20230         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20231         value from STRTOD_L and STRTOD.
20232
20233 2009-01-21  Bruno Haible  <bruno@clisp.org>
20234         and Jim Meyering  <meyering@redhat.com>
20235
20236         nanosleep: skip configure test (fail it) for apple universal builds
20237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20238         universal builds, assume that nanosleep does not work.
20239         * modules/nanosleep (Depends-on): Add multiarch.
20240
20241         mktime: skip configure test (fail it) for apple universal builds
20242         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20243         universal builds, assume that mktime does not work.
20244         * modules/mktime (Depends-on): Add multiarch.
20245
20246 2009-01-21  Eric Blake  <ebb9@byu.net>
20247
20248         multiarch: avoid expand-before-require warning
20249         * modules/multiarch (configure.ac): Require, rather than expand,
20250         gl_MULTIARCH.
20251         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20252         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20253         enforce that all clients require it.  Partial reversion of
20254         2008-12-29 patch.
20255
20256         error: avoid expand-before-require warning
20257         * modules/errno (configure.ac): Require, rather than expand,
20258         gl_HEADER_ERRNO_H.
20259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20260         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20261         enforce that all clients require it.
20262
20263         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20264         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20265         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20266         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20267
20268 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20269
20270         Revert:
20271         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20272
20273         regex: do not depend on obsolete modules.
20274         * modules/regex: Remove memcmp and memmove.
20275
20276 2009-01-20  Bruno Haible  <bruno@clisp.org>
20277
20278         Make the 'link' module link on Windows NT 4.
20279         * lib/link.c (_WIN32_WINNT): Don't define.
20280         (CreateHardLinkFuncType): New type.
20281         (CreateHardLinkFunc, initialized): New variables.
20282         (initialize): New function.
20283         (link): Invoke CreateHardLink indirectly through the function pointer.
20284
20285 2009-01-20  Bruno Haible  <bruno@clisp.org>
20286
20287         Fix compilation failure on mingw.
20288         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20289
20290 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20291
20292         * doc/c-strtod.texi: Mention a couple of restrictions.
20293
20294 2009-01-20  Jim Meyering  <meyering@redhat.com>
20295
20296         gettimeofday: move more declarations out of functions
20297         * lib/gettimeofday.c: Move extern declarations of tzset and
20298         gmtime out of containing functions.  Prompted by Bruno Haible.
20299
20300 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20301
20302         regex: do not depend on obsolete modules.
20303         * modules/regex: Remove memcmp and memmove.
20304
20305 2009-01-19  Bruno Haible  <bruno@clisp.org>
20306
20307         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20308         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20309         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20310         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20311         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20312
20313 2009-01-19  Bruno Haible  <bruno@clisp.org>
20314
20315         * tests/test-link.c: Include <errno.h>.
20316         (main): Exit with code 77 when a hard link cannot be created due to
20317         the file system.
20318         * tests/test-link.sh: Skip test when a hard link cannot be created due
20319         to the file system.
20320         Suggested by Eric Blake.
20321
20322 2009-01-19  Martin Lambers  <marlam@marlam.de>
20323
20324         * modules/link-tests: New file.
20325         * tests/test-link.sh: New file.
20326         * tests/test-link.c: New file.
20327
20328 2009-01-19  Eric Blake  <ebb9@byu.net>
20329
20330         doc: mention another function added in cygwin 1.7.0
20331         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20332         Another new function in cygwin 1.7.
20333
20334 2009-01-19  Bruno Haible  <bruno@clisp.org>
20335
20336         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20337         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20338         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20339         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20340         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20341         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20343         * m4/md4.m4 (gl_MD4): Likewise.
20344         * m4/md5.m4 (gl_MD5): Likewise.
20345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20346         * m4/sha1.m4 (gl_SHA1): Likewise.
20347         * m4/sha256.m4 (gl_SHA256): Likewise.
20348         * m4/sha512.m4 (gl_SHA512): Likewise.
20349
20350 2009-01-19  Bruno Haible  <bruno@clisp.org>
20351
20352         * modules/uniname/uniname-tests (Depends-on): Add progname.
20353         * tests/uniname/test-uninames.c: Include progname.h.
20354         (main): Call set_program_name.
20355
20356         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20357         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20358         (main): Call set_program_name.
20359
20360         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20361         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20362         (main): Call set_program_name.
20363
20364         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20365         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20366         (main): Call set_program_name.
20367
20368         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20369         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20370         (main): Call set_program_name.
20371
20372         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20373         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20374         (main): Call set_program_name.
20375
20376         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20377         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20378         (main): Call set_program_name.
20379
20380         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20381         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20382         (main): Call set_program_name.
20383
20384         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20385         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20386         (main): Call set_program_name.
20387
20388 2009-01-19  Eric Blake  <ebb9@byu.net>
20389
20390         test-unistd: test previous patch
20391         * tests/test-unistd.c: Test *_FILENO macros.
20392
20393         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20394         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20395         Guarantee a definition.
20396         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20397         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20398         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20399         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20400         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20401         Likewise.
20402         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20403         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20404         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20405         Likewise.
20406         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20407         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20408         (STDERR_FILENO): Likewise.
20409         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20410         (STDERR_FILENO): Likewise.
20411         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20412         (STDERR_FILENO): Likewise.
20413         Reported by Elbert Pol.
20414
20415 2009-01-19  Eric Blake  <ebb9@byu.net>
20416
20417         doc: mention more functions added in cygwin 1.7.0
20418         * doc/posix-functions/abort.texi (abort): Update wording related
20419         to cygwin.
20420         * doc/posix-functions/daylight.texi (daylight): Likewise.
20421         * doc/posix-functions/optarg.texi (optarg): Likewise.
20422         * doc/posix-functions/optarg.texi (opterr): Likewise.
20423         * doc/posix-functions/optarg.texi (optind): Likewise.
20424         * doc/posix-functions/optarg.texi (optopt): Likewise.
20425         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20426         worked in 1.5.x, and was withdrawn in 1.7.
20427         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20428         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20429         cygwin versions.
20430         * doc/posix-functions/perror.texi (perror): Likewise.
20431         * doc/posix-functions/printf.texi (printf): Likewise.
20432         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20433         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20434         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20435         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20436         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20437         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20438         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20439         Likewise.
20440         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20441         Likewise.
20442         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20443         this function.
20444         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20445         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20446         Likewise.
20447         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20448         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20449         * doc/posix-functions/confstr.texi (confstr): Likewise.
20450         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20451         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20452         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20453         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20454         * doc/posix-functions/fputws.texi (fputws): Likewise.
20455         * doc/posix-functions/fwide.texi (fwide): Likewise.
20456         * doc/posix-functions/getwc.texi (getwc): Likewise.
20457         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20458         * doc/posix-functions/putwc.texi (putwc): Likewise.
20459         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20460         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20461         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20462         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20463         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20464         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20465         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20466         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20467         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20468         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20469         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20470
20471 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20472
20473         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20474         * lib/ioctl.c: Include <sys/ioctl.h>.
20475
20476 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20477
20478         * modules/getdate-tests (Depends-on): Add progname.
20479         * tests/test-getdate.c: Use progname module, to avoid link errors
20480         on non-glibc systems.
20481
20482 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20483
20484         * modules/filenamecat-tests (Depends-on): Add progname.
20485         * modules/fstrcmp-tests (Depends-on): Likewise.
20486
20487         * tests/test-filenamecat.c: Use progname module, to avoid link
20488         errors on non-glibc systems.
20489         * tests/test-fstrcmp.c: Likewise.
20490
20491 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20492
20493         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20494         * lib/gettimeofday.c: Move extern declaration out of function.
20495
20496 2009-01-18  Bruno Haible  <bruno@clisp.org>
20497
20498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20499         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20500         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20501
20502 2009-01-18  Bruno Haible  <bruno@clisp.org>
20503
20504         * lib/strftime.c (MEMPCPY): Remove unused macro.
20505         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20506
20507 2009-01-18  Martin Lambers  <marlam@marlam.de>
20508
20509         New module 'link'.
20510         * lib/unistd.in.h (link): New declaration.
20511         * lib/link.c: New file.
20512         * m4/link.m4: New file.
20513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20514         HAVE_LINK.
20515         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20516         * modules/link: New file.
20517         * doc/posix-functions/link.texi: Mention the new module.
20518
20519 2009-01-18  Bruno Haible  <bruno@clisp.org>
20520
20521         * tests/test-avltree_list.c (main): Call set_program_name.
20522         * tests/test-avltree_oset.c (main): Likewise.
20523         * tests/test-obstack-printf.c: Include progname.h.
20524         (main): Call set_program_name.
20525         * tests/test-quotearg.c: Include progname.h.
20526         (main): Call set_program_name.
20527         * tests/test-xmemdup0.c: Include progname.h.
20528         (main): Call set_program_name.
20529
20530 2009-01-18  Bruno Haible  <bruno@clisp.org>
20531
20532         New module 'alphasort'.
20533         * lib/dirent.in.h (alphasort): New declaration.
20534         * lib/alphasort.c: New file, from glibc with modifications.
20535         * m4/alphasort.m4: New file.
20536         * modules/alphasort: New file.
20537         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
20538         HAVE_ALPHASORT.
20539         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
20540         HAVE_ALPHASORT.
20541         * doc/posix-functions/alphasort.texi: Mention the new module and the
20542         portability problems.
20543
20544 2009-01-18  Bruno Haible  <bruno@clisp.org>
20545
20546         New module 'scandir'.
20547         * lib/dirent.in.h (scandir): New declaration.
20548         * lib/scandir.c: New file, from glibc with modifications.
20549         * m4/scandir.m4: New file.
20550         * modules/scandir: New file.
20551         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
20552         HAVE_SCANDIR.
20553         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
20554         HAVE_SCANDIR.
20555         * doc/posix-functions/scandir.texi: Mention the new module and the
20556         portability problems.
20557
20558 2009-01-17  Bruno Haible  <bruno@clisp.org>
20559
20560         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
20561         Update documentation.
20562         (func_remove_suffix): Escape all dots in the suffix. Update
20563         documentation.
20564         (func_filter_filelist): Update documentation.
20565         Reported by Ralf Wildenhues.
20566
20567 2009-01-17  Bruno Haible  <bruno@clisp.org>
20568
20569         * modules/dprintf-posix-tests: New file.
20570         * tests/test-dprintf-posix.sh: New file.
20571         * tests/test-dprintf-posix.c: New file.
20572
20573         New modules 'dprintf', 'dprintf-posix'.
20574         * lib/stdio.in.h (dprintf): New declaration.
20575         * lib/dprintf.c: New file.
20576         * m4/dprintf.m4: New file.
20577         * m4/dprintf-posix.m4: New file.
20578         * modules/dprintf: New file.
20579         * modules/dprintf-posix: New file.
20580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
20581         HAVE_DPRINTF, REPLACE_DPRINTF.
20582         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
20583         HAVE_DPRINTF, REPLACE_DPRINTF.
20584         * doc/posix-functions/dprintf.texi: Mention the new modules.
20585
20586 2009-01-17  Bruno Haible  <bruno@clisp.org>
20587
20588         * modules/vdprintf-posix-tests: New file.
20589         * tests/test-vdprintf-posix.sh: New file.
20590         * tests/test-vdprintf-posix.c: New file.
20591
20592         New modules 'vdprintf', 'vdprintf-posix'.
20593         * lib/stdio.in.h (vdprintf): New declaration.
20594         * lib/vdprintf.c: New file.
20595         * m4/vdprintf.m4: New file.
20596         * m4/vdprintf-posix.m4: New file.
20597         * modules/vdprintf: New file.
20598         * modules/vdprintf-posix: New file.
20599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
20600         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20601         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
20602         HAVE_VDPRINTF, REPLACE_VDPRINTF.
20603         * doc/posix-functions/vdprintf.texi: Mention the new modules.
20604
20605 2009-01-17  Bruno Haible  <bruno@clisp.org>
20606
20607         Fix replacement of fopen on mingw.
20608         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
20609         mingw.
20610
20611 2009-01-17  Bruno Haible  <bruno@clisp.org>
20612
20613         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
20614         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
20615
20616 2009-01-17  Bruno Haible  <bruno@clisp.org>
20617
20618         Avoid test-fflush2.sh failure on mingw.
20619         * tests/test-fflush2.c: Include binary-io.h.
20620         (main): Put standard input into binary mode.
20621         * modules/fflush-tests (Depends-on): Add binary-io.
20622
20623 2009-01-17  Bruno Haible  <bruno@clisp.org>
20624
20625         * lib/wchar.in.h: In another particular situation, include only the
20626         system's <wchar.h> file.
20627         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
20628         Reported by Albert Chin-A-Young <china@thewrittenword.com>
20629         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
20630
20631 2009-01-17  Bruno Haible  <bruno@clisp.org>
20632
20633         Support for stripping executables in --enable-relocatable.
20634         * build-aux/install-reloc: Expect one more argument, or an environment
20635         variable RELOC_STRIP_PROG. If set, strip the destination program and
20636         its wrapper.
20637         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
20638         RELOC_STRIP_PROG.
20639         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
20640         to set RELOCATABLE_STRIP.
20641         * NEWS: Mention the new Makefile requirement.
20642
20643 2009-01-17  Bruno Haible  <bruno@clisp.org>
20644
20645         * build-aux/install-reloc: Remove debugging information left over by
20646         C compiler on MacOS X.
20647
20648 2009-01-17  Bruno Haible  <bruno@clisp.org>
20649
20650         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
20651         * lib/progreloc.c (find_executable): Fix type of pointer passed to
20652         _NSGetExecutablePath.
20653
20654 2009-01-16  Jim Meyering  <meyering@redhat.com>
20655
20656         strerror: avoid warnings about discarding "const"
20657         * lib/strerror.c (rpl_strerror): Instead of returning a const
20658         string from each and every "case", use a variable, and add a single
20659         cast after the switch.
20660
20661 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
20662
20663         * lib/arpa_inet.in.h: Add extern "C" block for C++.
20664
20665 2009-01-16  Bruno Haible  <bruno@clisp.org>
20666
20667         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
20668         array initializer syntax that also works in C++ mode.
20669         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20670
20671 2009-01-16  Jim Meyering  <meyering@redhat.com>
20672
20673         poll: suppress a warning
20674         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
20675         to ignore "...unsigned expression < 0 is always false" warnings.
20676
20677 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
20678
20679         poll: remove declarations of unused variables
20680         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
20681         sockbuf and optlen.
20682
20683 2009-01-15  Bruno Haible  <bruno@clisp.org>
20684
20685         Make fflush-after-ungetc POSIX compliant on BSD systems.
20686         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
20687         (clear_ungetc_buffer): Implement also for other systems.
20688         (rpl_fflush): On glibc systems, invoke
20689         clear_ungetc_buffer_preserving_position. Otherwise, invoke
20690         clear_ungetc_buffer after fetching the stream's position, not before.
20691
20692 2009-01-15  Bruno Haible  <bruno@clisp.org>
20693
20694         Make fflush-after-ungetc POSIX compliant on glibc systems.
20695         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
20696         after ungetc.
20697         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
20698         (rpl_fflush): On glibc systems, simply call the system's fflush
20699         function after clearing the ungetc buffer.
20700         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
20701         Instead, lseek only to the end of file, then use the system's fseeko
20702         for the rest. On glibc systems, reset the EOF indicator bit.
20703
20704 2009-01-15  Jim Meyering  <meyering@redhat.com>
20705
20706         openmp.m4: revert quote-adding change, for portability to older autoconf
20707         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
20708         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
20709         Simon Josefsson noticed the problem when using autoconf-2.61.
20710
20711 2009-01-15  Bruno Haible  <bruno@clisp.org>
20712
20713         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
20714         * tests/test-fflush2.c (ASSERT): Always fail.
20715         (main): Add two tests for fflush() after ungetc(), taking into account
20716         the Austin Group's clarification.
20717         Suggested by Eric Blake.
20718
20719 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
20720
20721         mktime.m4: remove K&R-style function prototypes
20722         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
20723         for the Sun C++ compiler.
20724
20725 2009-01-14  Bruno Haible  <bruno@clisp.org>
20726
20727         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
20728         while including <wchar.h>.
20729         * lib/wchar.in.h: In two particular situations on HP-UX, include only
20730         the system's <wchar.h> file.
20731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20732
20733 2009-01-14  Bruno Haible  <bruno@clisp.org>
20734
20735         * m4/csharp.m4: Don't mention gettext on the serial number line.
20736         * m4/csharpexec.m4: Likewise.
20737         * m4/eaccess.m4: Likewise.
20738         * m4/javaexec.m4: Likewise.
20739         * m4/sig_atomic_t.m4: Likewise.
20740         * m4/tmpdir.m4: Likewise.
20741         * m4/intldir.m4: Bump gettext version.
20742         * m4/lib-ld.m4: Likewise.
20743
20744 2009-01-14  Bruno Haible  <bruno@clisp.org>
20745
20746         * lib/progname.c (set_program_name): Add more comments.
20747         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
20748
20749 2009-01-14  Simon Josefsson  <simon@josefsson.org>
20750
20751         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
20752         were sys/stat.h does not define it.
20753
20754 2009-01-14  Jim Meyering  <meyering@redhat.com>
20755
20756         many *.m4 files: improve m4 quoting
20757         99% of this change was performed by running the following commands:
20758         git ls-files | grep '\.m4$' | xargs perl -pi \
20759           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
20760           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20761           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
20762           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
20763         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
20764         The remainder were to add Copyright dates, increment serial numbers,
20765         undo some changes in comments, exclude m4/intl.m4, and add quotes
20766         around the "1" in ",1" where the unusual spacing prohibited the
20767         above regexps from doing the job.  For more details, see
20768         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
20769         * m4/acl.m4: Modified.
20770         * m4/afs.m4: Likewise.
20771         * m4/alloca.m4: Likewise.
20772         * m4/argp.m4: Likewise.
20773         * m4/argz.m4: Likewise.
20774         * m4/atexit.m4: Likewise.
20775         * m4/bison-i18n.m4: Likewise.
20776         * m4/bison.m4: Likewise.
20777         * m4/byteswap.m4: Likewise.
20778         * m4/c-stack.m4: Likewise.
20779         * m4/c-strtod.m4: Likewise.
20780         * m4/calloc.m4: Likewise.
20781         * m4/canonicalize-lgpl.m4: Likewise.
20782         * m4/chown.m4: Likewise.
20783         * m4/clock_time.m4: Likewise.
20784         * m4/codeset.m4: Likewise.
20785         * m4/copy-file.m4: Likewise.
20786         * m4/csharp.m4: Likewise.
20787         * m4/csharpcomp.m4: Likewise.
20788         * m4/csharpexec.m4: Likewise.
20789         * m4/d-ino.m4: Likewise.
20790         * m4/d-type.m4: Likewise.
20791         * m4/dirfd.m4: Likewise.
20792         * m4/double-slash-root.m4: Likewise.
20793         * m4/eaccess.m4: Likewise.
20794         * m4/eealloc.m4: Likewise.
20795         * m4/environ.m4: Likewise.
20796         * m4/errno_h.m4: Likewise.
20797         * m4/euidaccess.m4: Likewise.
20798         * m4/execute.m4: Likewise.
20799         * m4/fatal-signal.m4: Likewise.
20800         * m4/fchdir.m4: Likewise.
20801         * m4/fcntl_h.m4: Likewise.
20802         * m4/fileblocks.m4: Likewise.
20803         * m4/filenamecat.m4: Likewise.
20804         * m4/findprog.m4: Likewise.
20805         * m4/flexmember.m4: Likewise.
20806         * m4/fnmatch.m4: Likewise.
20807         * m4/fopen.m4: Likewise.
20808         * m4/fpending.m4: Likewise.
20809         * m4/fprintf-posix.m4: Likewise.
20810         * m4/free.m4: Likewise.
20811         * m4/frexp.m4: Likewise.
20812         * m4/frexpl.m4: Likewise.
20813         * m4/fsusage.m4: Likewise.
20814         * m4/ftruncate.m4: Likewise.
20815         * m4/gc-camellia.m4: Likewise.
20816         * m4/gc-random.m4: Likewise.
20817         * m4/gc.m4: Likewise.
20818         * m4/getaddrinfo.m4: Likewise.
20819         * m4/getcwd-abort-bug.m4: Likewise.
20820         * m4/getcwd-path-max.m4: Likewise.
20821         * m4/getdate.m4: Likewise.
20822         * m4/getdomainname.m4: Likewise.
20823         * m4/getgroups.m4: Likewise.
20824         * m4/gethostname.m4: Likewise.
20825         * m4/gethrxtime.m4: Likewise.
20826         * m4/getline.m4: Likewise.
20827         * m4/getloadavg.m4: Likewise.
20828         * m4/getndelim2.m4: Likewise.
20829         * m4/getpass.m4: Likewise.
20830         * m4/gettext.m4: Likewise.
20831         * m4/gettime.m4: Likewise.
20832         * m4/gettimeofday.m4: Likewise.
20833         * m4/gnulib-common.m4: Likewise.
20834         * m4/group-member.m4: Likewise.
20835         * m4/host-os.m4: Likewise.
20836         * m4/iconv.m4: Likewise.
20837         * m4/iconv_open.m4: Likewise.
20838         * m4/inet_ntop.m4: Likewise.
20839         * m4/inet_pton.m4: Likewise.
20840         * m4/inline.m4: Likewise.
20841         * m4/intldir.m4: Likewise.
20842         * m4/intlmacosx.m4: Likewise.
20843         * m4/intmax.m4: Likewise.
20844         * m4/intmax_t.m4: Likewise.
20845         * m4/inttypes.m4: Likewise.
20846         * m4/inttypes_h.m4: Likewise.
20847         * m4/inttypes-pri.m4: Likewise.
20848         * m4/isapipe.m4: Likewise.
20849         * m4/isnand.m4: Likewise.
20850         * m4/isnanf.m4: Likewise.
20851         * m4/isnanl.m4: Likewise.
20852         * m4/javacomp.m4: Likewise.
20853         * m4/javaexec.m4: Likewise.
20854         * m4/jm-winsz1.m4: Likewise.
20855         * m4/jm-winsz2.m4: Likewise.
20856         * m4/lchown.m4: Likewise.
20857         * m4/lcmessage.m4: Likewise.
20858         * m4/ldexpl.m4: Likewise.
20859         * m4/lib-ld.m4: Likewise.
20860         * m4/lib-link.m4: Likewise.
20861         * m4/libsigsegv.m4: Likewise.
20862         * m4/link-follow.m4: Likewise.
20863         * m4/localcharset.m4: Likewise.
20864         * m4/locale-fr.m4: Likewise.
20865         * m4/locale-ja.m4: Likewise.
20866         * m4/locale-tr.m4: Likewise.
20867         * m4/locale-zh.m4: Likewise.
20868         * m4/lock.m4: Likewise.
20869         * m4/longlong.m4: Likewise.
20870         * m4/ls-mntd-fs.m4: Likewise.
20871         * m4/lstat.m4: Likewise.
20872         * m4/malloc.m4: Likewise.
20873         * m4/mathl.m4: Likewise.
20874         * m4/mbrtowc.m4: Likewise.
20875         * m4/mbstate_t.m4: Likewise.
20876         * m4/mbswidth.m4: Likewise.
20877         * m4/memchr.m4: Likewise.
20878         * m4/memcmp.m4: Likewise.
20879         * m4/memcpy.m4: Likewise.
20880         * m4/memmem.m4: Likewise.
20881         * m4/memmove.m4: Likewise.
20882         * m4/mempcpy.m4: Likewise.
20883         * m4/memrchr.m4: Likewise.
20884         * m4/memset.m4: Likewise.
20885         * m4/minmax.m4: Likewise.
20886         * m4/mkdir-slash.m4: Likewise.
20887         * m4/mkdtemp.m4: Likewise.
20888         * m4/mktime.m4: Likewise.
20889         * m4/mmap-anon.m4: Likewise.
20890         * m4/mountlist.m4: Likewise.
20891         * m4/nanosleep.m4: Likewise.
20892         * m4/nls.m4: Likewise.
20893         * m4/nocrash.m4: Likewise.
20894         * m4/open.m4: Likewise.
20895         * m4/openat.m4: Likewise.
20896         * m4/openmp.m4: Likewise.
20897         * m4/pathmax.m4: Likewise.
20898         * m4/perl.m4: Likewise.
20899         * m4/physmem.m4: Likewise.
20900         * m4/pipe.m4: Likewise.
20901         * m4/po.m4: Likewise.
20902         * m4/poll.m4: Likewise.
20903         * m4/posixtm.m4: Likewise.
20904         * m4/posixver.m4: Likewise.
20905         * m4/printf-frexp.m4: Likewise.
20906         * m4/printf-frexpl.m4: Likewise.
20907         * m4/printf-posix.m4: Likewise.
20908         * m4/printf-posix-rpl.m4: Likewise.
20909         * m4/printf.m4: Likewise.
20910         * m4/progtest.m4: Likewise.
20911         * m4/putenv.m4: Likewise.
20912         * m4/readline.m4: Likewise.
20913         * m4/readlink.m4: Likewise.
20914         * m4/readutmp.m4: Likewise.
20915         * m4/realloc.m4: Likewise.
20916         * m4/regex.m4: Likewise.
20917         * m4/relocatable.m4: Likewise.
20918         * m4/relocatable-lib.m4: Likewise.
20919         * m4/rename-dest-slash.m4: Likewise.
20920         * m4/rename.m4: Likewise.
20921         * m4/rmdir-errno.m4: Likewise.
20922         * m4/rmdir.m4: Likewise.
20923         * m4/roundf.m4: Likewise.
20924         * m4/roundl.m4: Likewise.
20925         * m4/rpmatch.m4: Likewise.
20926         * m4/save-cwd.m4: Likewise.
20927         * m4/selinux-selinux-h.m4: Likewise.
20928         * m4/setenv.m4: Likewise.
20929         * m4/settime.m4: Likewise.
20930         * m4/sig2str.m4: Likewise.
20931         * m4/sig_atomic_t.m4: Likewise.
20932         * m4/signalblocking.m4: Likewise.
20933         * m4/signbit.m4: Likewise.
20934         * m4/sigpipe.m4: Likewise.
20935         * m4/sockets.m4: Likewise.
20936         * m4/sockpfaf.m4: Likewise.
20937         * m4/st_dm_mode.m4: Likewise.
20938         * m4/stat-time.m4: Likewise.
20939         * m4/stdbool.m4: Likewise.
20940         * m4/stdint.m4: Likewise.
20941         * m4/stdint_h.m4: Likewise.
20942         * m4/stpcpy.m4: Likewise.
20943         * m4/stpncpy.m4: Likewise.
20944         * m4/strcase.m4: Likewise.
20945         * m4/strchrnul.m4: Likewise.
20946         * m4/strcspn.m4: Likewise.
20947         * m4/strdup.m4: Likewise.
20948         * m4/strftime.m4: Likewise.
20949         * m4/strndup.m4: Likewise.
20950         * m4/strnlen.m4: Likewise.
20951         * m4/strpbrk.m4: Likewise.
20952         * m4/strptime.m4: Likewise.
20953         * m4/strsep.m4: Likewise.
20954         * m4/strtod.m4: Likewise.
20955         * m4/strtoimax.m4: Likewise.
20956         * m4/strtok_r.m4: Likewise.
20957         * m4/strtol.m4: Likewise.
20958         * m4/strtoll.m4: Likewise.
20959         * m4/strtoul.m4: Likewise.
20960         * m4/strtoull.m4: Likewise.
20961         * m4/strtoumax.m4: Likewise.
20962         * m4/strverscmp.m4: Likewise.
20963         * m4/threadlib.m4: Likewise.
20964         * m4/timegm.m4: Likewise.
20965         * m4/tm_gmtoff.m4: Likewise.
20966         * m4/tmpdir.m4: Likewise.
20967         * m4/tmpfile.m4: Likewise.
20968         * m4/tzset.m4: Likewise.
20969         * m4/uintmax_t.m4: Likewise.
20970         * m4/unlinkdir.m4: Likewise.
20971         * m4/unlocked-io.m4: Likewise.
20972         * m4/uptime.m4: Likewise.
20973         * m4/userspec.m4: Likewise.
20974         * m4/utimbuf.m4: Likewise.
20975         * m4/utime.m4: Likewise.
20976         * m4/utimes-null.m4: Likewise.
20977         * m4/utimes.m4: Likewise.
20978         * m4/vararrays.m4: Likewise.
20979         * m4/vasnprintf.m4: Likewise.
20980         * m4/vfprintf-posix.m4: Likewise.
20981         * m4/vprintf-posix.m4: Likewise.
20982         * m4/wait-process.m4: Likewise.
20983         * m4/wchar_t.m4: Likewise.
20984         * m4/wint_t.m4: Likewise.
20985         * m4/write-any-file.m4: Likewise.
20986         * m4/yield.m4: Likewise.
20987
20988 2009-01-13  Bruno Haible  <bruno@clisp.org>
20989
20990         Avoid test-copy-file.sh failures when ACL support insufficient.
20991         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
20992         TESTS_ENVIRONMENT.
20993         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
20994         Reported by Jim Meyering.
20995
20996 2009-01-13  Bruno Haible  <bruno@clisp.org>
20997
20998         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
20999         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21000         * modules/unistdio/u8-printf-parse (Files): Likewise.
21001         * modules/unistdio/u32-printf-parse (Files): Likewise.
21002         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21003
21004 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21005
21006         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21007         and m4/inttypes_h.m4 too.
21008
21009 2009-01-12  Eric Blake  <ebb9@byu.net>
21010
21011         tests: IRIX 6.2 cc can't compile -0.0 into .data
21012         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21013         rather than at compile-time.
21014         * tests/test-floorl.c (minus_zero): Likewise.
21015         * tests/test-frexpl.c (minus_zero): Likewise.
21016         * tests/test-isnan.c (minus_zerol): Likewise.
21017         * tests/test-isnanl.h (minus_zero): Likewise.
21018         * tests/test-ldexpl.c (minus_zero): Likewise.
21019         * tests/test-roundl.c (minus_zero): Likewise.
21020         * tests/test-signbit.c (minus_zerol): Likewise.
21021         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21022         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21023         * tests/test-truncl.c (minus_zero): Likewise.
21024         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21025         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21026         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21027
21028 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21029
21030         regex: fix glibc bug 9697
21031         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21032         handling.
21033
21034 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21035
21036         regex: fix glibc bug 697
21037         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21038         being NULL also if there are no backreferences.
21039
21040 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21041
21042         regex: merge glibc changes
21043         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21044         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21045         re_string_skip_chars, re_string_reconstruct): Likewise.
21046         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21047
21048 2009-01-07  Jim Meyering  <meyering@redhat.com>
21049
21050         poll: filter through cppi
21051         * lib/poll.c: Indent cpp directives to reflect nesting.
21052
21053 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21054
21055         poll: don't return uninitialized
21056         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21057
21058 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21059
21060         avoid compile failure on AIX 6.1
21061         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21062         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21063
21064 2009-01-04  Jim Meyering  <meyering@redhat.com>
21065
21066         remove duplicate inclusion of <stdio.h>
21067         * tests/test-fprintf-posix.c: Likewise.
21068         * tests/test-printf-posix.c: Likewise.
21069         * tests/test-snprintf-posix.c: Likewise.
21070         * tests/test-sprintf-posix.c: Likewise.
21071         * tests/test-vasprintf-posix.c: Likewise.
21072         * tests/test-vfprintf-posix.c: Likewise.
21073         * tests/test-vprintf-posix.c: Likewise.
21074         * tests/test-vsnprintf-posix.c: Likewise.
21075         * tests/test-vsprintf-posix.c: Likewise.
21076
21077 2009-01-03  Jim Meyering  <meyering@redhat.com>
21078
21079         gnulib-tool: fix sed-based filtering
21080         * gnulib-tool (func_filter_filelist): Remove extra backslash
21081         in sed_fff_filter definition.
21082
21083 2009-01-02  Jim Meyering  <meyering@redhat.com>
21084
21085         strftime: avoid compilation failure on Solaris 2.6
21086         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21087         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21088         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21089         be available.  Reported by Tom G. Christensen.  Details in
21090         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21091
21092 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21093             Bruno Haible  <bruno@clisp.org>
21094
21095         Speed up gnulib-tool by doing more string processing through shell
21096         built-ins.
21097         * gnulib-tool (fast_func_append): New variable.
21098         (func_remove_prefix, func_remove_suffix): New functions.
21099         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21100         (func_filter_filelist): New function.
21101         (func_get_dependencies): Use func_remove_suffix instead of sed.
21102         (func_get_automake_snippet): Use func_filter_filelist instead of a
21103         subshell and sed invocation.
21104
21105 2009-01-01  Bruno Haible  <bruno@clisp.org>
21106
21107         Fix a security bug.
21108         * gnulib-tool (func_import, import, update): Don't allow the characters
21109         '"', '$', '`', '\' in macro arguments that become part of commands that
21110         are evaluated.
21111
21112 2009-01-01  Bruno Haible  <bruno@clisp.org>
21113
21114         * gnulib-tool (func_reset_sigpipe): Add more comments.
21115
21116 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21117
21118         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21119         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21120         already know the answer.
21121
21122 2009-01-01  Jim Meyering  <meyering@redhat.com>
21123
21124         * lib/version-etc.c (version_etc_va): Update copyright year.
21125
21126 2008-12-30  Bruno Haible  <bruno@clisp.org>
21127
21128         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21129         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21130         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21131
21132 2008-12-29  Eric Blake  <ebb9@byu.net>
21133
21134         multiarch: avoid autoconf AC_REQUIRE bug
21135         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21136         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21137         2.63 and older.
21138         Reported by Bruno Haible, and analyzed in
21139         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21140
21141 2008-12-29  Bruno Haible  <bruno@clisp.org>
21142
21143         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21144         files in subdirectories correctly.
21145         Reported by Ralf Wildenhues.
21146
21147 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21148
21149         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21150         rather than 'join FILE -', for Solaris join.
21151
21152 2008-12-29  Bruno Haible  <bruno@clisp.org>
21153
21154         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21155         quoting.
21156         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21157         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21158         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21159         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21160         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21161         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21162         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21163         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21164         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21165         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21166         * m4/nls.m4 (AM_NLS): Likewise.
21167         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21168         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21169         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21170         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21171         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21172         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21173         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21174         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21175         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21176         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21177         * m4/xsize.m4 (gl_XSIZE): Likewise.
21178         Suggested by Jim Meyering.
21179
21180 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21181
21182         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21183         * lib/parse-duration.c: use a switch instead of cascading if's.
21184
21185 2008-12-29  Eric Blake  <ebb9@byu.net>
21186
21187         wchar.h: supply WEOF on Irix 5.3
21188         * lib/wchar.in.h (wint_t): Also supply WEOF.
21189         * lib/wctype.in.h (wint_t): Likewise.
21190         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21191         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21192         Reported by Tom G. Christensen.
21193
21194 2008-12-26  Bruno Haible  <bruno@clisp.org>
21195
21196         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21197         i486, i586, i686.
21198
21199 2008-12-26  Bruno Haible  <bruno@clisp.org>
21200
21201         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21202
21203 2008-12-26  Bruno Haible  <bruno@clisp.org>
21204
21205         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21206         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21207         not __STDC_CONSTANT_MACROS.
21208         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21209
21210 2008-12-25  Bruno Haible  <bruno@clisp.org>
21211
21212         Add support for universal builds to vasnprintf.
21213         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21214         universal builds, guess no.
21215         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21216         * modules/vasprintf-posix (Depends-on): Likewise.
21217         * modules/fprintf-posix (Depends-on): Likewise.
21218         * modules/vfprintf-posix (Depends-on): Likewise.
21219         * modules/snprintf-posix (Depends-on): Likewise.
21220         * modules/vsnprintf-posix (Depends-on): Likewise.
21221         * modules/sprintf-posix (Depends-on): Likewise.
21222         * modules/vsprintf-posix (Depends-on): Likewise.
21223         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21224         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21229         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21230
21231         Add support for universal builds to <inttypes.h>.
21232         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21233         _SCNu64_PREFIX): In Apple
21234         universal builds, define directly, using _LP64.
21235         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21236         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21237         * modules/inttypes (Depends-on): Add multiarch.
21238         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21239
21240         Add support for universal builds to <stdint.h>.
21241         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21242         universal builds, define directly, using _LP64.
21243         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21244         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21245         and size_t.
21246         * modules/stdint (Depends-on): Add multiarch.
21247         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21248
21249         New module 'multiarch'.
21250         * modules/multiarch: New file.
21251         * m4/multiarch.m4: New file.
21252
21253 2008-12-25  Bruno Haible  <bruno@clisp.org>
21254
21255         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21256
21257 2008-12-25  Bruno Haible  <bruno@clisp.org>
21258
21259         * modules/btowc (License): Relicense under LGPLv2+.
21260         * modules/mbsinit (License): Likewise.
21261         * modules/mbrtowc (License): Likewise.
21262         * modules/wcrtomb (License): Likewise.
21263         * modules/streq (License): Likewise.
21264         Reported by David Lutterkort <lutter@redhat.com>.
21265
21266 2008-12-23  Bruno Haible  <bruno@clisp.org>
21267
21268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21269
21270 2008-12-23  Bruno Haible  <bruno@clisp.org>
21271
21272         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21274         GETADDRINFO_LIB, not in LIBS.
21275         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21276         * modules/canon-host (Link): Likewise.
21277         * NEWS: Mention the change.
21278         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21279         GETADDRINFO_LIB.
21280
21281 2008-12-22  Bruno Haible  <bruno@clisp.org>
21282
21283         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21284         * doc/posix-functions/iswalpha_l.texi: Likewise.
21285         * doc/posix-functions/iswblank_l.texi: Likewise.
21286         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21287         * doc/posix-functions/iswctype_l.texi: Likewise.
21288         * doc/posix-functions/iswdigit_l.texi: Likewise.
21289         * doc/posix-functions/iswgraph_l.texi: Likewise.
21290         * doc/posix-functions/iswlower_l.texi: Likewise.
21291         * doc/posix-functions/iswprint_l.texi: Likewise.
21292         * doc/posix-functions/iswpunct_l.texi: Likewise.
21293         * doc/posix-functions/iswspace_l.texi: Likewise.
21294         * doc/posix-functions/iswupper_l.texi: Likewise.
21295         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21296         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21297         * doc/posix-functions/open_wmemstream.texi: Likewise.
21298         * doc/posix-functions/swscanf.texi: Likewise.
21299         * doc/posix-functions/towctrans_l.texi: Likewise.
21300         * doc/posix-functions/towlower.texi: Likewise.
21301         * doc/posix-functions/towlower_l.texi: Likewise.
21302         * doc/posix-functions/towupper.texi: Likewise.
21303         * doc/posix-functions/towupper_l.texi: Likewise.
21304         * doc/posix-functions/vfwprintf.texi: Likewise.
21305         * doc/posix-functions/vfwscanf.texi: Likewise.
21306         * doc/posix-functions/vswscanf.texi: Likewise.
21307         * doc/posix-functions/vwprintf.texi: Likewise.
21308         * doc/posix-functions/vwscanf.texi: Likewise.
21309         * doc/posix-functions/wcpcpy.texi: Likewise.
21310         * doc/posix-functions/wcpncpy.texi: Likewise.
21311         * doc/posix-functions/wcscasecmp.texi: Likewise.
21312         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21313         * doc/posix-functions/wcscoll_l.texi: Likewise.
21314         * doc/posix-functions/wcsdup.texi: Likewise.
21315         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21316         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21317         * doc/posix-functions/wcsnlen.texi: Likewise.
21318         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21319         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21320         * doc/posix-functions/wctrans_l.texi: Likewise.
21321         * doc/posix-functions/wctype_l.texi: Likewise.
21322         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21323         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21324         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21325         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21326         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21327         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21328         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21329         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21330         * doc/glibc-functions/wcschrnul.texi: Likewise.
21331         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21332         * doc/glibc-functions/wcstod_l.texi: Likewise.
21333         * doc/glibc-functions/wcstof_l.texi: Likewise.
21334         * doc/glibc-functions/wcstol_l.texi: Likewise.
21335         * doc/glibc-functions/wcstold_l.texi: Likewise.
21336         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21337         * doc/glibc-functions/wcstoq.texi: Likewise.
21338         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21339         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21340         * doc/glibc-functions/wcstouq.texi: Likewise.
21341         * doc/glibc-functions/wmempcpy.texi: Likewise.
21342
21343 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21344             Eric Blake  <ebb9@byu.net>
21345             Paolo Bonzini  <bonzini@gnu.org>
21346             Bruno Haible  <bruno@clisp.org>
21347
21348         Make c-stack work on Haiku.
21349         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21350         (c_stack_action): Use SA_ONSTACK flag.
21351
21352 2008-12-22  Bruno Haible  <bruno@clisp.org>
21353
21354         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21355
21356 2008-12-22  Bruno Haible  <bruno@clisp.org>
21357
21358         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21359         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21360         being overridden.
21361         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21362         New macros.
21363         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21365         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21366         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21367
21368 2008-12-22  Bruno Haible  <bruno@clisp.org>
21369
21370         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21371         from test code.
21372
21373 2008-12-22  Eric Blake  <ebb9@byu.net>
21374
21375         Avoid gcc warnings on cygwin.
21376         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21377         Avoid unused variable.
21378         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21379         Likewise.
21380
21381 2008-12-22  Bruno Haible  <bruno@clisp.org>
21382
21383         Remove HAVE_MBRTOWC conditionals.
21384         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21385         (mbscasecmp): Assume mbrtowc function.
21386         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21387         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21388         * lib/mbschr.c: Include mbuiter.h unconditionally.
21389         (mbschr): Assume mbrtowc function.
21390         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21391         (mbscspn): Assume mbrtowc function.
21392         * lib/mbslen.c: Include mbuiter.h unconditionally.
21393         (mbslen): Assume mbrtowc function.
21394         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21395         (mbsncasecmp): Assume mbrtowc function.
21396         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21397         (mbsnlen): Assume mbrtowc function.
21398         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21399         (mbspbrk): Assume mbrtowc function.
21400         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21401         (mbspcasecmp): Assume mbrtowc function.
21402         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21403         (mbsrchr): Assume mbrtowc function.
21404         * lib/mbssep.c: Include mbuiter.h unconditionally.
21405         (mbssep): Assume mbrtowc function.
21406         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21407         (mbsspn): Assume mbrtowc function.
21408         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21409         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21410         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21411         (mbstok_r): Assume mbrtowc function.
21412         * lib/propername.c: Include mbuiter.h unconditionally.
21413         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21414         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21415         (trim2): Assume mbrtowc function.
21416         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21417         (mbsnwidth): Assume mbrtowc function.
21418         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21419         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21420         fallback definitions.
21421         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21422
21423 2008-12-22  Bruno Haible  <bruno@clisp.org>
21424
21425         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21426
21427 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21428
21429         * modules/regex: Request emulations for the mb*/wc* functions we need.
21430         * m4/regex.m4: Don't look for those functions here.
21431         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21432
21433 2008-12-22  Bruno Haible  <bruno@clisp.org>
21434
21435         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21436
21437 2008-12-21  Bruno Haible  <bruno@clisp.org>
21438
21439         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21440         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21441         (Include): Remove conditionalization.
21442         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21443         (Include): Remove conditionalization.
21444         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21445         (Include): Remove conditionalization.
21446         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21447         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21448         * NEWS: Mention the change.
21449         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21450         via Sergey Poznyakoff <gray@gnu.org.ua>.
21451
21452 2008-12-21  Bruno Haible  <bruno@clisp.org>
21453
21454         * MODULES.html.sh (Extended multibyte and wide character utilities
21455         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21456         wcrtomb, wcsrtombs.
21457         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21458         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21459         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21460         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21461
21462 2008-12-21  Bruno Haible  <bruno@clisp.org>
21463
21464         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21465
21466 2008-12-21  Bruno Haible  <bruno@clisp.org>
21467
21468         * modules/wcsnrtombs-tests: New file.
21469         * tests/test-wcsnrtombs1.sh: New file.
21470         * tests/test-wcsnrtombs2.sh: New file.
21471         * tests/test-wcsnrtombs3.sh: New file.
21472         * tests/test-wcsnrtombs4.sh: New file.
21473         * tests/test-wcsnrtombs.c: New file.
21474
21475         New module 'wcsnrtombs'.
21476         * lib/wchar.in.h (wcsnrtombs): New declaration.
21477         * lib/wcsnrtombs.c: New file.
21478         * lib/wcsrtombs-state.c: New file.
21479         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21480         (internal_state): Remove variable.
21481         * m4/wcsnrtombs.m4: New file.
21482         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21483         compilation units.
21484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21485         HAVE_WCSNRTOMBS.
21486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21487         HAVE_WCSNRTOMBS.
21488         * modules/wcsnrtombs: New file.
21489         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21490         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21491
21492 2008-12-21  Bruno Haible  <bruno@clisp.org>
21493
21494         * modules/wcsrtombs-tests: New file.
21495         * tests/test-wcsrtombs1.sh: New file.
21496         * tests/test-wcsrtombs2.sh: New file.
21497         * tests/test-wcsrtombs3.sh: New file.
21498         * tests/test-wcsrtombs4.sh: New file.
21499         * tests/test-wcsrtombs.c: New file.
21500
21501         New module 'wcsrtombs'.
21502         * lib/wchar.in.h (wcsrtombs): New declaration.
21503         * lib/wcsrtombs.c: New file.
21504         * m4/wcsrtombs.m4: New file.
21505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21506         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21508         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21509         * modules/wcsrtombs: New file.
21510         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21511         bugs.
21512
21513 2008-12-21  Bruno Haible  <bruno@clisp.org>
21514
21515         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21516         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21518         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21519         if not correct.
21520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21521         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21522         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21523         m4/locale-zh.m4, m4/codeset.m4.
21524         * doc/posix-functions/wcrtomb.texi: Document the bug.
21525
21526 2008-12-21  Bruno Haible  <bruno@clisp.org>
21527
21528         Work around a btowc() bug on IRIX 6.5.
21529         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
21530         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
21531         REPLACE_WTOBC if not.
21532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
21533         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
21534         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
21535
21536 2008-12-21  Bruno Haible  <bruno@clisp.org>
21537
21538         * modules/wcrtomb-tests: New file.
21539         * tests/test-wcrtomb.sh: New file.
21540         * tests/test-wcrtomb.c: New file.
21541
21542         New module 'wcrtomb'.
21543         * lib/wchar.in.h (wcrtomb): New declaration.
21544         * lib/wcrtomb.c: New file.
21545         * m4/wcrtomb.m4: New file.
21546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
21547         HAVE_WCRTOMB.
21548         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
21549         HAVE_WCRTOMB.
21550         * modules/wcrtomb: New file.
21551         * doc/posix-functions/wcrtomb.texi: Mention the new module.
21552
21553 2008-12-21  Bruno Haible  <bruno@clisp.org>
21554
21555         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
21556         * modules/mbsrtowcs (Files): Likewise.
21557         * modules/wctob (Files): Likewise.
21558         * modules/c-strcase-tests (Files): Likewise.
21559         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21560         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21561         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21562         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21563         * modules/vasnprintf-posix-tests (Files): Likewise.
21564
21565 2008-12-21  William Pursell  <bill.pursell@gmail.com>
21566
21567         gitlog-to-changelog: pass all command-line arguments to git-log
21568         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
21569         it is sometimes convenient to filter the commits in various ways.
21570         gitlog-to-changelog only allows --since to specify a start date,
21571         but git-log itself supports many other filtering mechanisms.
21572         At the moment, I want to filter by branch name.  Rather than
21573         adding a --branch option to gitlog-to-changelog, it seems more
21574         flexible to simply pass all options directly to git-log and let
21575         git do the work.  Notice that this effectively makes --since a
21576         redundant option for gitlog-to-changelog, but removing it would
21577         require current usage to change since calls would then require
21578         an additional '--'.
21579
21580 2008-12-21  Bruno Haible  <bruno@clisp.org>
21581
21582         * modules/mbsnrtowcs-tests: New file.
21583         * tests/test-mbsnrtowcs1.sh: New file.
21584         * tests/test-mbsnrtowcs2.sh: New file.
21585         * tests/test-mbsnrtowcs3.sh: New file.
21586         * tests/test-mbsnrtowcs4.sh: New file.
21587         * tests/test-mbsnrtowcs.c: New file.
21588
21589         New module 'mbsnrtowcs'.
21590         * lib/wchar.in.h (mbsnrtowcs): New declaration.
21591         * lib/mbsnrtowcs.c: New file.
21592         * lib/mbsrtowcs-state.c: New file.
21593         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
21594         (internal_state): Remove variable.
21595         * m4/mbsnrtowcs.m4: New file.
21596         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
21597         compilation units.
21598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
21599         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21600         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
21601         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
21602         * modules/mbsnrtowcs: New file.
21603         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
21604         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
21605         portability problem.
21606
21607 2008-12-21  Bruno Haible  <bruno@clisp.org>
21608
21609         Work around mbsrtowcs bug.
21610         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
21611         (gl_FUNC_MBSRTOWCS): Invoke it.
21612         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21613         m4/locale-zh.m4.
21614         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
21615
21616 2008-12-21  Bruno Haible  <bruno@clisp.org>
21617
21618         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
21619
21620 2008-12-21  Bruno Haible  <bruno@clisp.org>
21621
21622         Update doc for AIX.
21623         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
21624         16-bit wchar_t type.
21625         * doc/posix-functions/btowc.texi: Likewise.
21626         * doc/posix-functions/fgetwc.texi: Likewise.
21627         * doc/posix-functions/fgetws.texi: Likewise.
21628         * doc/posix-functions/fputwc.texi: Likewise.
21629         * doc/posix-functions/fputws.texi: Likewise.
21630         * doc/posix-functions/fwide.texi: Likewise.
21631         * doc/posix-functions/fwprintf.texi: Likewise.
21632         * doc/posix-functions/fwscanf.texi: Likewise.
21633         * doc/posix-functions/getwchar.texi: Likewise.
21634         * doc/posix-functions/getwc.texi: Likewise.
21635         * doc/posix-functions/iswalnum.texi: Likewise.
21636         * doc/posix-functions/iswalpha.texi: Likewise.
21637         * doc/posix-functions/iswblank.texi: Likewise.
21638         * doc/posix-functions/iswcntrl.texi: Likewise.
21639         * doc/posix-functions/iswctype.texi: Likewise.
21640         * doc/posix-functions/iswdigit.texi: Likewise.
21641         * doc/posix-functions/iswgraph.texi: Likewise.
21642         * doc/posix-functions/iswlower.texi: Likewise.
21643         * doc/posix-functions/iswprint.texi: Likewise.
21644         * doc/posix-functions/iswpunct.texi: Likewise.
21645         * doc/posix-functions/iswspace.texi: Likewise.
21646         * doc/posix-functions/iswupper.texi: Likewise.
21647         * doc/posix-functions/iswxdigit.texi: Likewise.
21648         * doc/posix-functions/mbrtowc.texi: Likewise.
21649         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21650         * doc/posix-functions/mbstowcs.texi: Likewise.
21651         * doc/posix-functions/mbtowc.texi: Likewise.
21652         * doc/posix-functions/putwchar.texi: Likewise.
21653         * doc/posix-functions/putwc.texi: Likewise.
21654         * doc/posix-functions/swprintf.texi: Likewise.
21655         * doc/posix-functions/tolower.texi: Likewise.
21656         * doc/posix-functions/toupper.texi: Likewise.
21657         * doc/posix-functions/towctrans.texi: Likewise.
21658         * doc/posix-functions/ungetwc.texi: Likewise.
21659         * doc/posix-functions/vswprintf.texi: Likewise.
21660         * doc/posix-functions/wcrtomb.texi: Likewise.
21661         * doc/posix-functions/wcscat.texi: Likewise.
21662         * doc/posix-functions/wcschr.texi: Likewise.
21663         * doc/posix-functions/wcscmp.texi: Likewise.
21664         * doc/posix-functions/wcscoll.texi: Likewise.
21665         * doc/posix-functions/wcscpy.texi: Likewise.
21666         * doc/posix-functions/wcscspn.texi: Likewise.
21667         * doc/posix-functions/wcsftime.texi: Likewise.
21668         * doc/posix-functions/wcslen.texi: Likewise.
21669         * doc/posix-functions/wcsncat.texi: Likewise.
21670         * doc/posix-functions/wcsncmp.texi: Likewise.
21671         * doc/posix-functions/wcsncpy.texi: Likewise.
21672         * doc/posix-functions/wcspbrk.texi: Likewise.
21673         * doc/posix-functions/wcsrchr.texi: Likewise.
21674         * doc/posix-functions/wcsrtombs.texi: Likewise.
21675         * doc/posix-functions/wcsspn.texi: Likewise.
21676         * doc/posix-functions/wcsstr.texi: Likewise.
21677         * doc/posix-functions/wcstod.texi: Likewise.
21678         * doc/posix-functions/wcstof.texi: Likewise.
21679         * doc/posix-functions/wcstoimax.texi: Likewise.
21680         * doc/posix-functions/wcstok.texi: Likewise.
21681         * doc/posix-functions/wcstold.texi: Likewise.
21682         * doc/posix-functions/wcstoll.texi: Likewise.
21683         * doc/posix-functions/wcstol.texi: Likewise.
21684         * doc/posix-functions/wcstombs.texi: Likewise.
21685         * doc/posix-functions/wcstoull.texi: Likewise.
21686         * doc/posix-functions/wcstoul.texi: Likewise.
21687         * doc/posix-functions/wcstoumax.texi: Likewise.
21688         * doc/posix-functions/wcswidth.texi: Likewise.
21689         * doc/posix-functions/wcsxfrm.texi: Likewise.
21690         * doc/posix-functions/wctob.texi: Likewise.
21691         * doc/posix-functions/wctomb.texi: Likewise.
21692         * doc/posix-functions/wctrans.texi: Likewise.
21693         * doc/posix-functions/wctype.texi: Likewise.
21694         * doc/posix-functions/wcwidth.texi: Likewise.
21695         * doc/posix-functions/wmemchr.texi: Likewise.
21696         * doc/posix-functions/wmemcmp.texi: Likewise.
21697         * doc/posix-functions/wmemcpy.texi: Likewise.
21698         * doc/posix-functions/wmemmove.texi: Likewise.
21699         * doc/posix-functions/wmemset.texi: Likewise.
21700         * doc/posix-functions/wprintf.texi: Likewise.
21701         * doc/posix-functions/wscanf.texi: Likewise.
21702
21703 2008-12-21  Bruno Haible  <bruno@clisp.org>
21704
21705         Update doc for HP-UX 11.11.
21706         * doc/posix-functions/btowc.texi: Clarify that the function is missing
21707         in HP-UX version 11.00, not in all versions of HP-UX 11.
21708         * doc/posix-functions/fwide.texi: Likewise.
21709         * doc/posix-functions/fwprintf.texi: Likewise.
21710         * doc/posix-functions/fwscanf.texi: Likewise.
21711         * doc/posix-functions/inet_ntop.texi: Likewise.
21712         * doc/posix-functions/inet_pton.texi: Likewise.
21713         * doc/posix-functions/mbrlen.texi: Likewise.
21714         * doc/posix-functions/mbrtowc.texi: Likewise.
21715         * doc/posix-functions/mbsinit.texi: Likewise.
21716         * doc/posix-functions/mbsrtowcs.texi: Likewise.
21717         * doc/posix-functions/swprintf.texi: Likewise.
21718         * doc/posix-functions/swscanf.texi: Likewise.
21719         * doc/posix-functions/towctrans.texi: Likewise.
21720         * doc/posix-functions/vfwprintf.texi: Likewise.
21721         * doc/posix-functions/vswprintf.texi: Likewise.
21722         * doc/posix-functions/vwprintf.texi: Likewise.
21723         * doc/posix-functions/wcrtomb.texi: Likewise.
21724         * doc/posix-functions/wcsrtombs.texi: Likewise.
21725         * doc/posix-functions/wcsstr.texi: Likewise.
21726         * doc/posix-functions/wctob.texi: Likewise.
21727         * doc/posix-functions/wctrans.texi: Likewise.
21728         * doc/posix-functions/wmemchr.texi: Likewise.
21729         * doc/posix-functions/wmemcmp.texi: Likewise.
21730         * doc/posix-functions/wmemcpy.texi: Likewise.
21731         * doc/posix-functions/wmemmove.texi: Likewise.
21732         * doc/posix-functions/wmemset.texi: Likewise.
21733         * doc/posix-functions/wprintf.texi: Likewise.
21734         * doc/posix-functions/wscanf.texi: Likewise.
21735
21736 2008-12-21  Bruno Haible  <bruno@clisp.org>
21737
21738         Work around a portability problem.
21739         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
21740         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
21741
21742 2008-12-20  Bruno Haible  <bruno@clisp.org>
21743
21744         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
21745         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
21746         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
21747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
21748         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
21749
21750         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
21751         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
21752         set.
21753         (GNULIB_defined_mbstate_t): New macro.
21754         (mbsinit): Redefine if REPLACE_MBSINIT is set.
21755         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
21756         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
21757         reuses the system's mbrtowc function but works around the bugs.
21758         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
21759         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
21760         macros.
21761         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
21762         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
21763         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
21764         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
21765         REPLACE_MBSINIT if mbsinit needs to be overridden.
21766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
21767         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21768         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
21769         REPLACE_MBSINIT, REPLACE_MBRTOWC.
21770         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21771         m4/locale-zh.m4.
21772         (Depends): Add mbsinit.
21773         * modules/mbsinit (Depends): Add mbrtowc.
21774         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
21775
21776 2008-12-20  Bruno Haible  <bruno@clisp.org>
21777
21778         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
21779         so that there are no conversion errors on AIX.
21780         * tests/test-mbsrtowcs.c (main): LIkewise.
21781
21782 2008-12-20  Bruno Haible  <bruno@clisp.org>
21783
21784         Work around wctob bug on Solaris <= 9.
21785         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
21786         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
21787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
21788         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
21789         * modules/wctob (Files): Add m4/locale-fr.m4.
21790         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
21791
21792 2008-12-20  Bruno Haible  <bruno@clisp.org>
21793
21794         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
21795         /dev/null.
21796         * tests/test-select-in.sh: Likewise.
21797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21798
21799 2008-12-20  Bruno Haible  <bruno@clisp.org>
21800
21801         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
21802         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
21803         Cygwin 1.5.x.
21804
21805 2008-12-20  Bruno Haible  <bruno@clisp.org>
21806
21807         Ensure mbstate_t is defined on HP-UX 11.11.
21808         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
21809         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
21810         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
21811         AC_USE_SYSTEM_EXTENSIONS.
21812         * modules/fnmatch (Depends-on): Add extensions.
21813         * modules/mbrlen (Depends-on): Likewise.
21814         * modules/mbrtowc (Depends-on): Likewise.
21815         * modules/mbsinit (Depends-on): Likewise.
21816         * modules/mbsrtowcs (Depends-on): Likewise.
21817         * modules/mbswidth (Depends-on): Likewise.
21818         * modules/quotearg (Depends-on): Likewise.
21819         * modules/strftime (Depends-on): Likewise.
21820
21821 2008-12-20  Bruno Haible  <bruno@clisp.org>
21822
21823         Ensure wctob is declared on IRIX 6.5.
21824         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
21825         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
21826         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
21827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
21828         of HAVE_WCTOB.
21829         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
21830         HAVE_WCTOB.
21831         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
21832
21833 2008-12-19  Bruno Haible  <bruno@clisp.org>
21834
21835         * modules/mbsrtowcs-tests: New file.
21836         * tests/test-mbsrtowcs1.sh: New file.
21837         * tests/test-mbsrtowcs2.sh: New file.
21838         * tests/test-mbsrtowcs3.sh: New file.
21839         * tests/test-mbsrtowcs4.sh: New file.
21840         * tests/test-mbsrtowcs.c: New file.
21841
21842         New module 'mbsrtowcs'.
21843         * lib/wchar.in.h (mbsrtowcs): New declaration.
21844         * lib/mbsrtowcs.c: New file.
21845         * m4/mbsrtowcs.m4: New file.
21846         * modules/mbsrtowcs: New file.
21847         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
21848         HAVE_MBSRTOWCS.
21849         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
21850         HAVE_MBSRTOWCS.
21851         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
21852
21853 2008-12-19  Bruno Haible  <bruno@clisp.org>
21854
21855         New module 'mbrlen'.
21856         * lib/wchar.in.h (mbrlen): New declaration.
21857         * lib/mbrlen.c: New file.
21858         * m4/mbrlen.m4: New file.
21859         * modules/mbrlen: New file.
21860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
21861         HAVE_MBRLEN.
21862         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
21863         HAVE_MBRLEN.
21864         * doc/posix-functions/mbrlen.texi: Document the new module.
21865
21866 2008-12-19  Bruno Haible  <bruno@clisp.org>
21867
21868         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
21869         * modules/mbrtowc (Depends-on): Add verify.
21870         Suggested by Paul Eggert.
21871
21872 2008-12-18  Bruno Haible  <bruno@clisp.org>
21873
21874         * modules/mbsinit-tests: New file.
21875         * tests/test-mbsinit.sh: New file.
21876         * tests/test-mbsinit.c: New file.
21877
21878 2008-12-18  Bruno Haible  <bruno@clisp.org>
21879
21880         * modules/mbrtowc-tests: New file.
21881         * tests/test-mbrtowc1.sh: New file.
21882         * tests/test-mbrtowc2.sh: New file.
21883         * tests/test-mbrtowc3.sh: New file.
21884         * tests/test-mbrtowc4.sh: New file.
21885         * tests/test-mbrtowc.c: New file.
21886
21887         New module 'mbrtowc'.
21888         * lib/wchar.in.h (mbstate_t): Override when the system does not have
21889         mbsinit and mbrtowc.
21890         (mbrtowc): New declaration.
21891         * lib/mbrtowc.c: New file.
21892         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
21893         * modules/mbrtowc: New file.
21894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
21895         HAVE_MBRTOWC.
21896         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
21897         HAVE_MBRTOWC.
21898         * doc/posix-functions/mbrtowc.texi: Document the new module.
21899
21900 2008-12-18  Bruno Haible  <bruno@clisp.org>
21901
21902         New module 'wctob'.
21903         * lib/wchar.in.h (wctob): New declaration.
21904         * lib/wctob.c: New file.
21905         * m4/wctob.m4: New file.
21906         * modules/wctob: New file.
21907         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
21908         HAVE_WCTOB.
21909         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
21910         * doc/posix-functions/wctob.texi: Document the new module.
21911
21912 2008-12-18  Bruno Haible  <bruno@clisp.org>
21913
21914         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
21915         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
21916
21917 2008-12-18  Simon Josefsson  <simon@josefsson.org>
21918
21919         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
21920         G. Christensen" <tgc@jupiterrise.com>.
21921
21922         * lib/flock.c: Need to include errno.h.  Reported by "Tom
21923         G. Christensen" <tgc@jupiterrise.com>.
21924
21925         * lib/flock.c: Need to include string.h.  Reported by "Tom
21926         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
21927         <ebb9@byu.net>.
21928
21929 2008-12-18  Bruno Haible  <bruno@clisp.org>
21930
21931         * m4/locale-ja.m4: New file, from GNU gettext.
21932
21933 2008-12-17  Bruno Haible  <bruno@clisp.org>
21934
21935         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
21936         Suggested by Eric Blake.
21937
21938 2008-12-17  Bruno Haible  <bruno@clisp.org>
21939
21940         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
21941
21942 2008-12-17  Bruno Haible  <bruno@clisp.org>
21943
21944         * lib/mbsinit.c: Include verify.h. Verify an assumption.
21945         * modules/mbsinit (Depends-on): Add verify.
21946         Suggested by Paul Eggert.
21947
21948 2008-12-17  Bruno Haible  <bruno@clisp.org>
21949
21950         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
21951         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
21952         gl_FUNC_MBRTOWC.
21953         * m4/mbiter.m4 (gl_MBITER): LIkewise.
21954         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
21955         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
21956         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
21957         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
21958         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
21959         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
21960         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
21961         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
21962         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
21963         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
21964         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
21965         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
21966         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
21967         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
21968         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21969         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
21970         * modules/trim (configure.ac): Likewise.
21971
21972 2008-12-17  Bruno Haible  <bruno@clisp.org>
21973
21974         * modules/btowc-tests: New file.
21975         * tests/test-btowc1.sh: New file.
21976         * tests/test-btowc2.sh: New file.
21977         * tests/test-btowc.c: New file.
21978
21979         New module 'btowc'.
21980         * lib/wchar.in.h (btowc): New declaration.
21981         * lib/btowc.c: New file.
21982         * m4/btowc.m4: New file.
21983         * modules/btowc: New file.
21984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
21985         HAVE_BTOWC.
21986         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
21987         * doc/posix-functions/btowc.texi: Document the new module.
21988
21989 2008-12-17  Bruno Haible  <bruno@clisp.org>
21990
21991         New module 'mbsinit'.
21992         * lib/wchar.in.h (mbsinit): New declaration.
21993         * lib/mbsinit.c: New file.
21994         * m4/mbsinit.m4: New file.
21995         * modules/mbsinit: New file.
21996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
21997         HAVE_MBSINIT.
21998         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
21999         HAVE_MBSINIT.
22000         * doc/posix-functions/mbsinit.texi: Document the new module.
22001
22002 2008-12-16  Bruno Haible  <bruno@clisp.org>
22003
22004         * lib/unistd.in.h: Add comment.
22005         * tests/test-environ.c: Don't include <stdlib.h>.
22006
22007 2008-12-16  Bruno Haible  <bruno@clisp.org>
22008
22009         * lib/parse-duration.h (parse_duration): Document return value
22010         convention.
22011         * lib/parse-duration.c: Include specification header first. Add
22012         comments.
22013         (_): Remove macro.
22014         (parse_year_month_day, parse_hour_minute_second): Move side effects
22015         outside of strchr call.
22016         (parse_non_iso8601): Move side effects outside of isspace call.
22017         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22018         call.
22019
22020 2008-12-16  Bruno Haible  <bruno@clisp.org>
22021
22022         * tests/test-parse-duration.sh: Produce no output when the test
22023         succeeds.
22024
22025 2008-12-16  Bruno Haible  <bruno@clisp.org>
22026
22027         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22028         expressions.
22029
22030 2008-12-15  Bruno Haible  <bruno@clisp.org>
22031
22032         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22033         * doc/glibc-functions/flistxattr.texi: Likewise.
22034         * doc/glibc-functions/fopencookie.texi: Likewise.
22035         * doc/glibc-functions/fremovexattr.texi: Likewise.
22036         * doc/glibc-functions/fsetxattr.texi: Likewise.
22037         * doc/glibc-functions/getxattr.texi: Likewise.
22038         * doc/glibc-functions/lgetxattr.texi: Likewise.
22039         * doc/glibc-functions/listxattr.texi: Likewise.
22040         * doc/glibc-functions/llistxattr.texi: Likewise.
22041         * doc/glibc-functions/lremovexattr.texi: Likewise.
22042         * doc/glibc-functions/lsetxattr.texi: Likewise.
22043         * doc/glibc-functions/removexattr.texi: Likewise.
22044         * doc/glibc-functions/setxattr.texi: Likewise.
22045         * doc/posix-functions/open_memstream.texi: Likewise.
22046
22047 2008-12-15  Eric Blake  <ebb9@byu.net>
22048
22049         Update doc for cygwin 1.7.
22050         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22051         functions.
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/fmemopen.texi: Likewise.
22056         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22057         * doc/posix-functions/fstatat.texi: Likewise.
22058         * doc/posix-functions/futimens.texi: Likewise.
22059         * doc/posix-functions/gai_strerror.texi: Likewise.
22060         * doc/posix-functions/getaddrinfo.texi: Likewise.
22061         * doc/posix-functions/getnameinfo.texi: Likewise.
22062         * doc/posix-functions/if_freenameindex.texi: Likewise.
22063         * doc/posix-functions/if_indextoname.texi: Likewise.
22064         * doc/posix-functions/if_nameindex.texi: Likewise.
22065         * doc/posix-functions/if_nametoindex.texi: Likewise.
22066         * doc/posix-functions/insque.texi: Likewise.
22067         * doc/posix-functions/linkat.texi: Likewise.
22068         * doc/posix-functions/llrint.texi: Likewise.
22069         * doc/posix-functions/llrintf.texi: Likewise.
22070         * doc/posix-functions/llrintl.texi: Likewise.
22071         * doc/posix-functions/lockf.texi: Likewise.
22072         * doc/posix-functions/lrintl.texi: Likewise.
22073         * doc/posix-functions/mkdirat.texi: Likewise.
22074         * doc/posix-functions/mkfifoat.texi: Likewise.
22075         * doc/posix-functions/mknodat.texi: Likewise.
22076         * doc/posix-functions/mq_close.texi: Likewise.
22077         * doc/posix-functions/mq_getattr.texi: Likewise.
22078         * doc/posix-functions/mq_notify.texi: Likewise.
22079         * doc/posix-functions/mq_open.texi: Likewise.
22080         * doc/posix-functions/mq_receive.texi: Likewise.
22081         * doc/posix-functions/mq_send.texi: Likewise.
22082         * doc/posix-functions/mq_setattr.texi: Likewise.
22083         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22084         * doc/posix-functions/mq_timedsend.texi: Likewise.
22085         * doc/posix-functions/mq_unlink.texi: Likewise.
22086         * doc/posix-functions/open_memstream.texi: Likewise.
22087         * doc/posix-functions/openat.texi: Likewise.
22088         * doc/posix-functions/posix_fadvise.texi: Likewise.
22089         * doc/posix-functions/posix_fallocate.texi: Likewise.
22090         * doc/posix-functions/posix_madvise.texi: Likewise.
22091         * doc/posix-functions/posix_memalign.texi: Likewise.
22092         * doc/posix-functions/posix_openpt.texi: Likewise.
22093         * doc/posix-functions/readlinkat.texi: Likewise.
22094         * doc/posix-functions/remque.texi: Likewise.
22095         * doc/posix-functions/renameat.texi: Likewise.
22096         * doc/posix-functions/rintl.texi: Likewise.
22097         * doc/posix-functions/sem_unlink.texi: Likewise.
22098         * doc/posix-functions/shm_open.texi: Likewise.
22099         * doc/posix-functions/shm_unlink.texi: Likewise.
22100         * doc/posix-functions/signgam.texi: Likewise.
22101         * doc/posix-functions/sigset.texi: Likewise.
22102         * doc/posix-functions/stpcpy.texi: Likewise.
22103         * doc/posix-functions/stpncpy.texi: Likewise.
22104         * doc/posix-functions/strerror.texi: Likewise.
22105         * doc/posix-functions/strtod.texi: Likewise.
22106         * doc/posix-functions/symlinkat.texi: Likewise.
22107         * doc/posix-functions/unlinkat.texi: Likewise.
22108         * doc/posix-functions/utimensat.texi: Likewise.
22109         * doc/glibc-functions/bindresvport.texi: Likewise.
22110         * doc/glibc-functions/dn_expand.texi: Likewise.
22111         * doc/glibc-functions/exp10.texi: Likewise.
22112         * doc/glibc-functions/exp10f.texi: Likewise.
22113         * doc/glibc-functions/fgetxattr.texi: Likewise.
22114         * doc/glibc-functions/flistxattr.texi: Likewise.
22115         * doc/glibc-functions/fopencookie.texi: Likewise.
22116         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22117         * doc/glibc-functions/fremovexattr.texi: Likewise.
22118         * doc/glibc-functions/fsetxattr.texi: Likewise.
22119         * doc/glibc-functions/getifaddrs.texi: Likewise.
22120         * doc/glibc-functions/getxattr.texi: Likewise.
22121         * doc/glibc-functions/lgetxattr.texi: Likewise.
22122         * doc/glibc-functions/listxattr.texi: Likewise.
22123         * doc/glibc-functions/llistxattr.texi: Likewise.
22124         * doc/glibc-functions/lremovexattr.texi: Likewise.
22125         * doc/glibc-functions/lsetxattr.texi: Likewise.
22126         * doc/glibc-functions/pow10.texi: Likewise.
22127         * doc/glibc-functions/pow10f.texi: Likewise.
22128         * doc/glibc-functions/rcmd_af.texi: Likewise.
22129         * doc/glibc-functions/removexattr.texi: Likewise.
22130         * doc/glibc-functions/res_init.texi: Likewise.
22131         * doc/glibc-functions/res_mkquery.texi: Likewise.
22132         * doc/glibc-functions/res_query.texi: Likewise.
22133         * doc/glibc-functions/res_querydomain.texi: Likewise.
22134         * doc/glibc-functions/res_send.texi: Likewise.
22135         * doc/glibc-functions/rresvport_af.texi: Likewise.
22136         * doc/glibc-functions/setxattr.texi: Likewise.
22137         * doc/glibc-functions/strcasestr.texi: Likewise.
22138
22139 2008-12-15  Bruno Haible  <bruno@clisp.org>
22140
22141         Fix compilation error on OSF/1 4.0.
22142         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22143         <sys/time.h>, simply delegate to the system header.
22144         Reported by Daniel Richard G. <oss@teragram.com>.
22145
22146 2008-12-15  Bruno Haible  <bruno@clisp.org>
22147
22148         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22149         * doc/posix-functions/fchmodat.texi: Likewise.
22150         * doc/posix-functions/fchownat.texi: Likewise.
22151         * doc/posix-functions/fdopendir.texi: Likewise.
22152         * doc/posix-functions/fstatat.texi: Likewise.
22153         * doc/posix-functions/mkdirat.texi: Likewise.
22154         * doc/posix-functions/unlinkat.texi: Likewise.
22155
22156 2008-12-14  Bruno Haible  <bruno@clisp.org>
22157
22158         Update doc for POSIX:2008.
22159         * doc/posix-functions/faccessat.texi: New file.
22160         * doc/posix-functions/fchmodat.texi: New file.
22161         * doc/posix-functions/fchownat.texi: New file.
22162         * doc/posix-functions/fdopendir.texi: New file.
22163         * doc/posix-functions/fstatat.texi: New file.
22164         * doc/posix-functions/futimens.texi: New file.
22165         * doc/posix-functions/linkat.texi: New file.
22166         * doc/posix-functions/mkdirat.texi: New file.
22167         * doc/posix-functions/mkfifoat.texi: New file.
22168         * doc/posix-functions/mknodat.texi: New file.
22169         * doc/posix-functions/open_wmemstream.texi: New file.
22170         * doc/posix-functions/openat.texi: New file.
22171         * doc/posix-functions/psiginfo.texi: New file.
22172         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22173         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22174         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22175         * doc/posix-functions/readlinkat.texi: New file.
22176         * doc/posix-functions/renameat.texi: New file.
22177         * doc/posix-functions/strerror_l.texi: New file.
22178         * doc/posix-functions/symlinkat.texi: New file.
22179         * doc/posix-functions/unlinkat.texi: New file.
22180         * doc/posix-functions/utimensat.texi: New file.
22181         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22182
22183 2008-12-14  Bruno Haible  <bruno@clisp.org>
22184
22185         Update doc for POSIX:2008.
22186         * doc/posix-functions/alphasort.texi: Renamed from
22187         doc/glibc-functions/alphasort.texi.
22188         * doc/posix-functions/dirfd.texi: Renamed from
22189         doc/glibc-functions/dirfd.texi.
22190         * doc/posix-functions/dprintf.texi: Renamed from
22191         doc/glibc-functions/dprintf.texi.
22192         * doc/posix-functions/duplocale.texi: Renamed from
22193         doc/glibc-functions/duplocale.texi.
22194         * doc/posix-functions/fexecve.texi: Renamed from
22195         doc/glibc-functions/fexecve.texi.
22196         * doc/posix-functions/fmemopen.texi: Renamed from
22197         doc/glibc-functions/fmemopen.texi.
22198         * doc/posix-functions/freelocale.texi: Renamed from
22199         doc/glibc-functions/freelocale.texi.
22200         * doc/posix-functions/getdate_err.texi: Renamed from
22201         doc/glibc-functions/getdate_err.texi.
22202         * doc/posix-functions/isalnum_l.texi: Renamed from
22203         doc/glibc-functions/isalnum_l.texi.
22204         * doc/posix-functions/isalpha_l.texi: Renamed from
22205         doc/glibc-functions/isalpha_l.texi.
22206         * doc/posix-functions/isblank_l.texi: Renamed from
22207         doc/glibc-functions/isblank_l.texi.
22208         * doc/posix-functions/iscntrl_l.texi: Renamed from
22209         doc/glibc-functions/iscntrl_l.texi.
22210         * doc/posix-functions/isdigit_l.texi: Renamed from
22211         doc/glibc-functions/isdigit_l.texi.
22212         * doc/posix-functions/isgraph_l.texi: Renamed from
22213         doc/glibc-functions/isgraph_l.texi.
22214         * doc/posix-functions/islower_l.texi: Renamed from
22215         doc/glibc-functions/islower_l.texi.
22216         * doc/posix-functions/isprint_l.texi: Renamed from
22217         doc/glibc-functions/isprint_l.texi.
22218         * doc/posix-functions/ispunct_l.texi: Renamed from
22219         doc/glibc-functions/ispunct_l.texi.
22220         * doc/posix-functions/isspace_l.texi: Renamed from
22221         doc/glibc-functions/isspace_l.texi.
22222         * doc/posix-functions/isupper_l.texi: Renamed from
22223         doc/glibc-functions/isupper_l.texi.
22224         * doc/posix-functions/iswalnum_l.texi: Renamed from
22225         doc/glibc-functions/iswalnum_l.texi.
22226         * doc/posix-functions/iswalpha_l.texi: Renamed from
22227         doc/glibc-functions/iswalpha_l.texi.
22228         * doc/posix-functions/iswblank_l.texi: Renamed from
22229         doc/glibc-functions/iswblank_l.texi.
22230         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22231         doc/glibc-functions/iswcntrl_l.texi.
22232         * doc/posix-functions/iswctype_l.texi: Renamed from
22233         doc/glibc-functions/iswctype_l.texi.
22234         * doc/posix-functions/iswdigit_l.texi: Renamed from
22235         doc/glibc-functions/iswdigit_l.texi.
22236         * doc/posix-functions/iswgraph_l.texi: Renamed from
22237         doc/glibc-functions/iswgraph_l.texi.
22238         * doc/posix-functions/iswlower_l.texi: Renamed from
22239         doc/glibc-functions/iswlower_l.texi.
22240         * doc/posix-functions/iswprint_l.texi: Renamed from
22241         doc/glibc-functions/iswprint_l.texi.
22242         * doc/posix-functions/iswpunct_l.texi: Renamed from
22243         doc/glibc-functions/iswpunct_l.texi.
22244         * doc/posix-functions/iswspace_l.texi: Renamed from
22245         doc/glibc-functions/iswspace_l.texi.
22246         * doc/posix-functions/iswupper_l.texi: Renamed from
22247         doc/glibc-functions/iswupper_l.texi.
22248         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22249         doc/glibc-functions/iswxdigit_l.texi.
22250         * doc/posix-functions/isxdigit_l.texi: Renamed from
22251         doc/glibc-functions/isxdigit_l.texi.
22252         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22253         doc/glibc-functions/mbsnrtowcs.texi.
22254         * doc/posix-functions/mkdtemp.texi: Renamed from
22255         doc/glibc-functions/mkdtemp.texi.
22256         * doc/posix-functions/newlocale.texi: Renamed from
22257         doc/glibc-functions/newlocale.texi.
22258         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22259         doc/glibc-functions/nl_langinfo_l.texi.
22260         * doc/posix-functions/open_memstream.texi: Renamed from
22261         doc/glibc-functions/open_memstream.texi.
22262         * doc/posix-functions/opterr.texi: Renamed from
22263         doc/glibc-functions/opterr.texi.
22264         * doc/posix-functions/optind.texi: Renamed from
22265         doc/glibc-functions/optind.texi.
22266         * doc/posix-functions/optopt.texi: Renamed from
22267         doc/glibc-functions/optopt.texi.
22268         * doc/posix-functions/psignal.texi: Renamed from
22269         doc/glibc-functions/psignal.texi.
22270         * doc/posix-functions/scandir.texi: Renamed from
22271         doc/glibc-functions/scandir.texi.
22272         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22273         doc/glibc-functions/sched_get_priority_min.texi.
22274         * doc/posix-functions/signgam.texi: Renamed from
22275         doc/glibc-functions/signgam.texi.
22276         * doc/posix-functions/stpcpy.texi: Renamed from
22277         doc/glibc-functions/stpcpy.texi.
22278         * doc/posix-functions/stpncpy.texi: Renamed from
22279         doc/glibc-functions/stpncpy.texi.
22280         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22281         doc/glibc-functions/strcasecmp_l.texi.
22282         * doc/posix-functions/strcoll_l.texi: Renamed from
22283         doc/glibc-functions/strcoll_l.texi.
22284         * doc/posix-functions/strfmon_l.texi: Renamed from
22285         doc/glibc-functions/strfmon_l.texi.
22286         * doc/posix-functions/strftime_l.texi: Renamed from
22287         doc/glibc-functions/strftime_l.texi.
22288         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22289         doc/glibc-functions/strncasecmp_l.texi.
22290         * doc/posix-functions/strndup.texi: Renamed from
22291         doc/glibc-functions/strndup.texi.
22292         * doc/posix-functions/strnlen.texi: Renamed from
22293         doc/glibc-functions/strnlen.texi.
22294         * doc/posix-functions/strsignal.texi: Renamed from
22295         doc/glibc-functions/strsignal.texi.
22296         * doc/posix-functions/strxfrm_l.texi: Renamed from
22297         doc/glibc-functions/strxfrm_l.texi.
22298         * doc/posix-functions/timer_gettime.texi: Renamed from
22299         doc/glibc-functions/timer_gettime.texi.
22300         * doc/posix-functions/tolower_l.texi: Renamed from
22301         doc/glibc-functions/tolower_l.texi.
22302         * doc/posix-functions/toupper_l.texi: Renamed from
22303         doc/glibc-functions/toupper_l.texi.
22304         * doc/posix-functions/towctrans_l.texi: Renamed from
22305         doc/glibc-functions/towctrans_l.texi.
22306         * doc/posix-functions/towlower_l.texi: Renamed from
22307         doc/glibc-functions/towlower_l.texi.
22308         * doc/posix-functions/towupper_l.texi: Renamed from
22309         doc/glibc-functions/towupper_l.texi.
22310         * doc/posix-functions/uselocale.texi: Renamed from
22311         doc/glibc-functions/uselocale.texi.
22312         * doc/posix-functions/vdprintf.texi: Renamed from
22313         doc/glibc-functions/vdprintf.texi.
22314         * doc/posix-functions/wcpcpy.texi:
22315         Renamed from doc/glibc-functions/wcpcpy.texi.
22316         * doc/posix-functions/wcpncpy.texi: Renamed from
22317         doc/glibc-functions/wcpncpy.texi.
22318         * doc/posix-functions/wcscasecmp.texi: Renamed from
22319         doc/glibc-functions/wcscasecmp.texi.
22320         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22321         doc/glibc-functions/wcscasecmp_l.texi.
22322         * doc/posix-functions/wcscoll_l.texi: Renamed from
22323         doc/glibc-functions/wcscoll_l.texi.
22324         * doc/posix-functions/wcsdup.texi: Renamed from
22325         doc/glibc-functions/wcsdup.texi.
22326         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22327         doc/glibc-functions/wcsncasecmp.texi.
22328         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22329         doc/glibc-functions/wcsncasecmp_l.texi.
22330         * doc/posix-functions/wcsnlen.texi: Renamed from
22331         doc/glibc-functions/wcsnlen.texi.
22332         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22333         doc/glibc-functions/wcsnrtombs.texi.
22334         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22335         doc/glibc-functions/wcsxfrm_l.texi.
22336         * doc/posix-functions/wctrans_l.texi: Renamed from
22337         doc/glibc-functions/wctrans_l.texi.
22338         * doc/posix-functions/wctype_l.texi: Renamed from
22339         doc/glibc-functions/wctype_l.texi.
22340         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22341         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22342         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22343         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22344         these subsections.
22345         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22346         Remove sections.
22347
22348 2008-12-14  Bruno Haible  <bruno@clisp.org>
22349
22350         Update doc for POSIX:2008.
22351         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22352
22353 2008-12-14  Bruno Haible  <bruno@clisp.org>
22354
22355         Update doc for POSIX:2008.
22356         * doc/pastposix-functions/bcmp.texi: Renamed from
22357         doc/posix-functions/bcmp.texi.
22358         * doc/pastposix-functions/bcopy.texi: Renamed from
22359         doc/posix-functions/bcopy.texi.
22360         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22361         doc/posix-functions/bsd_signal.texi.
22362         * doc/pastposix-functions/bzero.texi: Renamed from
22363         doc/posix-functions/bzero.texi.
22364         * doc/pastposix-functions/ecvt.texi: Renamed from
22365         doc/posix-functions/ecvt.texi.
22366         * doc/pastposix-functions/fcvt.texi: Renamed from
22367         doc/posix-functions/fcvt.texi.
22368         * doc/pastposix-functions/ftime.texi: Renamed from
22369         doc/posix-functions/ftime.texi.
22370         * doc/pastposix-functions/gcvt.texi: Renamed from
22371         doc/posix-functions/gcvt.texi.
22372         * doc/pastposix-functions/getcontext.texi: Renamed from
22373         doc/posix-functions/getcontext.texi.
22374         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22375         doc/posix-functions/gethostbyaddr.texi.
22376         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22377         doc/posix-functions/gethostbyname.texi.
22378         * doc/pastposix-functions/getwd.texi: Renamed from
22379         doc/posix-functions/getwd.texi.
22380         * doc/pastposix-functions/h_errno.texi: Renamed from
22381         doc/posix-functions/h_errno.texi.
22382         * doc/pastposix-functions/index.texi: Renamed from
22383         doc/posix-functions/index.texi.
22384         * doc/pastposix-functions/makecontext.texi: Renamed from
22385         doc/posix-functions/makecontext.texi.
22386         * doc/pastposix-functions/mktemp.texi: Renamed from
22387         doc/posix-functions/mktemp.texi.
22388         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22389         doc/posix-functions/pthread_attr_getstackaddr.texi.
22390         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22391         doc/posix-functions/pthread_attr_setstackaddr.texi.
22392         * doc/pastposix-functions/rindex.texi: Renamed from
22393         doc/posix-functions/rindex.texi.
22394         * doc/pastposix-functions/scalb.texi: Renamed from
22395         doc/posix-functions/scalb.texi.
22396         * doc/pastposix-functions/setcontext.texi: Renamed from
22397         doc/posix-functions/setcontext.texi.
22398         * doc/pastposix-functions/swapcontext.texi: Renamed from
22399         doc/posix-functions/swapcontext.texi.
22400         * doc/pastposix-functions/ualarm.texi: Renamed from
22401         doc/posix-functions/ualarm.texi.
22402         * doc/pastposix-functions/usleep.texi: Renamed from
22403         doc/posix-functions/usleep.texi.
22404         * doc/pastposix-functions/vfork.texi: Renamed from
22405         doc/posix-functions/vfork.texi.
22406         * doc/pastposix-functions/wcswcs.texi: Renamed from
22407         doc/posix-functions/wcswcs.texi.
22408         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22409         (Function Substitutes): Update.
22410
22411 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22412
22413         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22414         m4/strerror.m4.
22415
22416 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22417             Bruno Haible  <bruno@clisp.org>
22418
22419         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22420
22421 2008-12-13  Bruno Haible  <bruno@clisp.org>
22422
22423         * modules/strtoull (Depends-on): Remove unistd.
22424
22425 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22426
22427         * modules/strtoull (Depends-on): Add stdlib.
22428
22429 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22430
22431         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22432
22433 2008-12-10  Jim Meyering  <meyering@redhat.com>
22434
22435         gl_ASSERT: don't say assertions are disabled when they're not
22436         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22437         "checking whether to enable assertions... no", when they are in
22438         fact enabled.  This is solely a bug in the output of configure.
22439         In spite of saying "no", NDEBUG was not defined in that case.
22440         Also, as noted by Eric Blake, leave assertions enabled upon
22441         --enable-assert=INVALID.
22442
22443 2008-12-10  Bruno Haible  <bruno@clisp.org>
22444
22445         Change MODULES.html to refer to POSIX:2008 where possible.
22446         * MODULES.html.sh (POSIX2008_URL): New variable.
22447         (posix_headers): Remove sys/timeb, ucontext.
22448         (posix2001_headers): New variable.
22449         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22450         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22451         index, makecontext, mktemp, pthread_attr_getstackaddr,
22452         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22453         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22454         (posix2001_functions): New variable.
22455         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22456         otherwise.
22457
22458 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22459
22460         add missing include to parse-duration.c
22461         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22462         * modules/parse-duration (Depends-on): Add xalloc.
22463
22464         fix sed script reading maint.mk
22465         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22466         (syntax-check-rules): Use it.
22467
22468 2008-12-09  Bruno Haible  <bruno@clisp.org>
22469
22470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22471         MacOS X 10.4/PowerPC.
22472         Reported by Simon Josefsson.
22473
22474 2008-12-08  Jim Meyering  <meyering@redhat.com>
22475
22476         work around mingw's lack of some S_IF definitions
22477         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22478         Reported by Simon Josefsson.
22479
22480 2008-12-08  Bruno Haible  <bruno@clisp.org>
22481
22482         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22483         applied to variables. Needed on MacOS X 10.4/PowerPC.
22484         Reported by Simon Josefsson.
22485
22486 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22487         and Eric Blake  <ebb9@byu.net>
22488
22489         assert: honor --enable-assert
22490         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22491         order to honor --enable-assert, rather than treating it as a
22492         synonym for --disable-assert.
22493
22494 2008-12-08  Jim Meyering  <meyering@redhat.com>
22495
22496         * lib/posixtm.c: Remove now-useless declaration of mktime.
22497
22498         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22499
22500 2008-12-07  Bruno Haible  <bruno@clisp.org>
22501
22502         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22503         test_once): Mark functions as static.
22504         * tests/test-tls.c (test_tls): Likewise.
22505
22506 2008-12-07  Bruno Haible  <bruno@clisp.org>
22507
22508         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22509         iconv_register_autodetect.
22510
22511 2008-12-07  Jim Meyering  <meyering@redhat.com>
22512
22513         posixtm.c: avoid a warning
22514         * lib/posixtm.c (posixtime): Don't initialize tm0.
22515         It's no longer needed to placate gcc4's -Wuninitialized,
22516         and the attempt to placate would elicit a new warning.
22517
22518         unicodeio.c: mark unused parameters
22519         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22520         (fallback_failure_callback): Likewise.
22521
22522 2008-12-07  Bruno Haible  <bruno@clisp.org>
22523
22524         * gnulib-tool (func_create_testdir): When building the tests
22525         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22526         Reported by Simon Josefsson.
22527
22528 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22529
22530         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
22531
22532 2008-12-06  Bruno Haible  <bruno@clisp.org>
22533
22534         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
22535         Suggested by Eric Blake.
22536
22537 2008-12-06  Bruno Haible  <bruno@clisp.org>
22538
22539         Fix a c-stack test failure on MacOS X.
22540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
22541         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
22542         handler for SIGBUS as well.
22543         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
22544         install a signal handler for SIGBUS as well.
22545         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
22546
22547 2008-12-06  Bruno Haible  <bruno@clisp.org>
22548
22549         Advocacy documentation.
22550         * doc/gnulib-intro.texi (Benefits): New section.
22551         * doc/gnulib.texi: Update.
22552
22553 2008-12-06  Bruno Haible  <bruno@clisp.org>
22554
22555         Document the 'manywarnings' module.
22556         * doc/manywarnings.texi: New file.
22557         * doc/gnulib.texi: Include it.
22558
22559 2008-12-05  Eric Blake  <ebb9@byu.net>
22560
22561         tests: silence some gcc warnings
22562         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
22563         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
22564         type mismatches.
22565
22566 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22567             Bruno Haible  <bruno@clisp.org>
22568
22569         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
22570
22571 2008-11-29  Jim Meyering  <meyering@redhat.com>
22572
22573         unicodeio.c: mark unused parameters
22574         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22575         (fallback_failure_callback): Likewise.
22576
22577         fts: fix a thinko
22578         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
22579         (set_stat_type): Return S_IF*-valued "type" directly.
22580         Prompted by James Youngman's spotting a related bug.
22581         Confirmed by further testing through find.
22582
22583         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
22584         * lib/fts.c (D_TYPE): Define.
22585         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
22586         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
22587         (s_ifmt_shift_bits): New function.
22588         (set_stat_type): New function.
22589         (fts_build): When not calling fts_stat, call set_stat_type
22590         to propagate dirent.d_type info to fts_read caller.
22591         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
22592         fts_statp->st_mode type information may be valid.
22593
22594 2008-11-28  Simon Josefsson  <simon@josefsson.org>
22595
22596         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
22597         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
22598         <sds@gnu.org>.
22599
22600 2008-11-20  Bruno Haible  <bruno@clisp.org>
22601
22602         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
22603         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
22604         INCLUDE_NEXT.
22605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
22606         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
22607         * modules/math (Makefile.am): Substitute
22608         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
22609         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22610
22611 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
22612             Bruno Haible  <bruno@clisp.org>
22613
22614         * lib/stdint.in.h: Define all type macros so that their expansion is
22615         a single typedef'ed token. Fixes a compilation failure in Boost which
22616         does "using ::int8_t;".
22617
22618 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22619
22620         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
22621         gl_MANYWARN_ALL_GCC.
22622         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
22623         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
22624         * modules/manywarnings: New file.
22625         * MODULES.html.sh: Mention manywarnings module.
22626
22627 2008-11-18  Bruno Haible  <bruno@clisp.org>
22628
22629         * doc/gnulib-tool.texi (Unit tests): New section.
22630
22631 2008-11-18  Simon Josefsson  <simon@josefsson.org>
22632
22633         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
22634         paths like 'lib/po/foo.po'.
22635
22636 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22637
22638         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
22639         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
22640
22641 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22642
22643         * m4/warnings.m4: Use CPPFLAGS to really check whether the
22644         parameter works.
22645
22646 2008-11-17  Simon Josefsson  <simon@josefsson.org>
22647
22648         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
22649
22650 2008-11-17  Bruce Korb  <bkorb@gnu.org>
22651
22652         * modules/parse-duration-tests: New file.
22653         * tests/test-parse-duration.sh: New file.
22654         * tests/test-parse-duration.c: New file.
22655
22656         New module 'parse-duration'.
22657         * lib/parse-duration.h: New file.
22658         * lib/parse-duration.c: New file.
22659         * modules/parse-duration: New file.
22660
22661 2008-11-17  Bruno Haible  <bruno@clisp.org>
22662
22663         * tests/test-select-out.sh: Comment out the first pipe test.
22664         Reported by Simon Josefsson.
22665
22666 2008-11-17  Bruno Haible  <bruno@clisp.org>
22667
22668         * modules/getaddrinfo (Depends-on): Add servent, hostent.
22669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
22670         gl_HOSTENT.
22671
22672 2008-11-17  Bruno Haible  <bruno@clisp.org>
22673
22674         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
22675         -lnetwork and -lnet. Needed for Haiku and BeOS.
22676
22677 2008-11-16  Bruno Haible  <bruno@clisp.org>
22678
22679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
22680
22681 2008-11-16  Bruno Haible  <bruno@clisp.org>
22682
22683         Avoid test failure on Haiku.
22684         * tests/test-fsync.c: Include <errno.h>.
22685         (main): Don't require that fsync (0) fails.
22686
22687 2008-11-15  Bruno Haible  <bruno@clisp.org>
22688
22689         New module 'hostent'.
22690         * modules/hostent: New file.
22691         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
22692
22693 2008-11-15  Bruno Haible  <bruno@clisp.org>
22694
22695         New module 'servent'.
22696         * modules/servent: New file.
22697         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
22698
22699 2008-11-15  Bruno Haible  <bruno@clisp.org>
22700
22701         Avoid generating same test program with two different rules.
22702         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
22703         test-frexp to test-frexp-nolibm.
22704         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
22705         test-frexpl to test-frexpl-nolibm.
22706
22707 2008-11-15  Bruno Haible  <bruno@clisp.org>
22708
22709         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
22710         $(FREXPL_LIBM).
22711
22712 2008-11-15  Bruno Haible  <bruno@clisp.org>
22713
22714         * lib/netdb.in.h: Activate the definitions also when the system's
22715         <netdb.h> has 'struct addrinfo'.
22716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
22717         EAI_OVERFLOW or AI_NUMERICSERV.
22718         * doc/posix-headers/netdb.texi: Document the problem.
22719
22720 2008-11-15  Bruno Haible  <bruno@clisp.org>
22721
22722         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
22723
22724         Make the 'sched' module work on platforms where <sched.h> exists but
22725         is incomplete (such as Haiku).
22726         * lib/sched.in.h; Include the system's <sched.h> if it exists.
22727         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
22728         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
22729         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
22730         HAVE_STRUCT_SCHED_PARAM.
22731         * modules/sched (Depends-on): Add include_next.
22732         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
22733         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
22734         * doc/posix-headers/sched.texi: Document the issue.
22735
22736 2008-11-13  Jim Meyering  <meyering@redhat.com>
22737
22738         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
22739         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
22740         test would fail due to the difference in the Report bugs to ...
22741         line.  The expected address is empty, "<>", while the actual
22742         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
22743
22744 2008-11-12  Bruno Haible  <bruno@clisp.org>
22745
22746         lstat: don't compile lstat.c on systems lacking lstat
22747         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
22748         which don't have lstat; this is handled by lib/sys_stat.in.h already.
22749         Reported by Daniel P. Berrange via Jim Meyering.
22750
22751 2008-11-12  Jim Meyering  <meyering@redhat.com>
22752
22753         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
22754
22755 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22756
22757         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
22758         instead.
22759
22760 2008-11-12  Bruno Haible  <bruno@clisp.org>
22761
22762         * lib/unicodeio.c: Include unistr.h.
22763         (utf8_wctomb): Remove function.
22764         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
22765
22766 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22767
22768         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
22769         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
22770         <bruno@clisp.org>.
22771         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
22772
22773 2008-11-12  Simon Josefsson  <simon@josefsson.org>
22774
22775         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
22776         * doc/gnulib.texi: Add section for warnings.
22777
22778 2008-11-11  Bruno Haible  <bruno@clisp.org>
22779
22780         * lib/sockets.h: Add a comment.
22781
22782 2008-11-11  Karl Berry  <karl@gnu.org>
22783
22784         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
22785
22786 2008-11-11  Eric Blake  <ebb9@byu.net>
22787
22788         fdl.texi: avoid git symlinks
22789         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
22790
22791 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22792
22793         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
22794
22795 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22796
22797         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
22798         (gl_WARN_ADD): Substitute $2 if literal.
22799
22800 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22801
22802         * m4/warning.m4: Remove.
22803
22804 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
22805
22806         * m4/warnings.m4: Almost complete rewrite. :-)
22807
22808 2008-11-10  Simon Josefsson  <simon@josefsson.org>
22809
22810         * modules/warnings: New module.
22811         * m4/warnings.m4: New file.
22812         * MODULES.html.sh: Mention warnings module.
22813         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
22814         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22815
22816 2008-11-10  Eric Blake  <ebb9@byu.net>
22817
22818         fdl.texi: make a symlink to the latest version
22819         * doc/standards.texi: Revert today's earlier change.
22820         * doc/fdl-1.2.texi: Rename from old fdl.texi...
22821         * doc/fdl.texi: ...and replace this with a symlink to the newer
22822         fdl-1.3.texi.
22823
22824 2008-11-10  Bruno Haible  <bruno@clisp.org>
22825
22826         * tests/test-select-fd.c (main): Accept the result file name as fourth
22827         argument.
22828         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
22829         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
22830
22831 2008-11-10  Bruno Haible  <bruno@clisp.org>
22832
22833         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
22834         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
22835         as autoconf-substituted macros.
22836         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
22837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
22838         gl_NETDB_H_DEFAULTS. Set these variables.
22839         * modules/netdb (Makefile.am): Substitute these variables.
22840
22841 2008-11-10  Eric Blake  <ebb9@byu.net>
22842
22843         standards.texi: include correct file for FDL 1.3
22844         * doc/standards.texi (GNU Free Documentation License): Change
22845         include file to pull in FDL 1.3, not 1.2.
22846
22847         fdl.texi: revert accidental change to license
22848         * doc/fdl.texi: This is FDL 1.2, not 1.3.
22849
22850 2008-11-10  Bruno Haible  <bruno@clisp.org>
22851
22852         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
22853         cross-compiling guesses also when the native compile gives no result.
22854
22855 2008-11-10  Bruno Haible  <bruno@clisp.org>
22856
22857         * lib/spawni.c (__spawni): Force variable into the stack.
22858
22859 2008-11-10  Bruno Haible  <bruno@clisp.org>
22860
22861         Add support for Haiku.
22862         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
22863         glibc and BeOS, but also on Haiku.
22864         * lib/fpurge.c (fpurge): Likewise.
22865         * lib/freadable.c (freadable): Likewise.
22866         * lib/freadahead.c (freadahead): Likewise.
22867         * lib/freading.c (freading): Likewise.
22868         * lib/freadptr.c (freadptr): Likewise.
22869         * lib/freadseek.c (freadptrinc): Likewise.
22870         * lib/fseeko.c (rpl_fseeko): Likewise.
22871         * lib/fseterr.c (fseterr): Likewise.
22872         * lib/fwritable.c (fwritable): Likewise.
22873         * lib/fwriting.c (fwriting): Likewise.
22874         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
22875
22876 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22877
22878         * lib/config.charset: Treat Haiku like BeOS.
22879
22880 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
22881
22882         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
22883         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
22884
22885 2008-11-08  Bruno Haible  <bruno@clisp.org>
22886
22887         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
22888         AC_CACHE_CHECK.
22889
22890 2008-11-08  Bruno Haible  <bruno@clisp.org>
22891
22892         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
22893
22894 2008-11-08  Bruno Haible  <bruno@clisp.org>
22895
22896         * tests/test-select-fd.c: New file.
22897         * tests/test-select-in.sh: New file.
22898         * tests/test-select-out.sh: New file.
22899         * tests/test-select-stdin.c: New file.
22900         * modules/select-tests (Files): Add the new files.
22901         (Depends-on): Add gettimeofday.
22902         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
22903         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
22904         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
22905
22906 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
22907             Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
22910
22911 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
22912
22913         * build-aux/pmccabe2html: Added support for C++ source files.
22914
22915 2008-11-05  Ben Pfaff  <blp@gnu.org>
22916
22917         Fix lib/close.c build on Windows.
22918         * modules/close (Files): Add lib/w32sock.h.
22919
22920 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
22921
22922         Accept Bison's NEWS format.
22923         * build-aux/announce-gen (print_news_deltas): Tweak
22924         $re_prefix.
22925
22926 2008-11-04  Bruno Haible  <bruno@clisp.org>
22927
22928         * modules/random_r (Maintainer): Add glibc.
22929
22930 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22931
22932         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
22933         by karl@freefriends.org (Karl Berry).
22934         * doc/alloca.texi: Likewise.
22935         * doc/c-ctype.texi: Likewise.
22936         * doc/c-strcase.texi: Likewise.
22937         * doc/c-strcaseeq.texi: Likewise.
22938         * doc/c-strcasestr.texi: Likewise.
22939         * doc/c-strstr.texi: Likewise.
22940         * doc/c-strtod.texi: Likewise.
22941         * doc/c-strtold.texi: Likewise.
22942         * doc/ctime.texi: Likewise.
22943         * doc/error.texi: Likewise.
22944         * doc/fdl.texi: Likewise.
22945         * doc/gcd.texi: Likewise.
22946         * doc/getdate.texi: Likewise.
22947         * doc/gnulib-intro.texi: Likewise.
22948         * doc/gnulib-tool.texi: Likewise.
22949         * doc/gnulib.texi: Likewise.
22950         * doc/inet_ntoa.texi: Likewise.
22951         * doc/maintain.texi: Likewise.
22952         * doc/make-stds.texi: Likewise.
22953         * doc/quote.texi: Likewise.
22954         * doc/regexprops-generic.texi: Likewise.
22955         * doc/standards.texi: Likewise.
22956         * doc/verify.texi: Likewise.
22957         * doc/visibility.texi: Likewise.
22958         * doc/gnulib.texi (GNU Free Documentation License): Include
22959         fdl-1.3.texi instead of fdl.texi.
22960
22961 2008-11-04  Simon Josefsson  <simon@josefsson.org>
22962
22963         * doc/fdl-1.3.texi: New file, from
22964         <http://www.gnu.org/licenses/fdl-1.3.texi>.
22965         * modules/fdl-1.3: Add.
22966         * MODULES.html.sh: Add fdl-1.3.
22967
22968 2008-11-03  Bruno Haible  <bruno@clisp.org>
22969
22970         Make determination of absolute name of header file work with AIX xlc.
22971         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
22972         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
22973         preprocessing.
22974         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22975         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22976
22977 2008-11-03  Simon Josefsson  <simon@josefsson.org>
22978
22979         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
22980         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
22981         <ludo@gnu.org>.
22982
22983 2008-11-02  Bruno Haible  <bruno@clisp.org>
22984
22985         Mark 'strpbrk' obsolete.
22986         * modules/strpbrk (Status, Notice): New sections.
22987         * modules/strtok_r (Depends-on): Add strpbrk.
22988
22989 2008-11-02  Bruno Haible  <bruno@clisp.org>
22990
22991         Mark 'strdup' obsolete.
22992         * modules/strdup (Status, Notice): New sections.
22993         * modules/findprog (Depends-on): Add strdup.
22994         * modules/getaddrinfo (Depends-on): Likewise.
22995         * modules/localename (Depends-on): Likewise.
22996         * modules/relocatable-lib (Depends-on): Likewise.
22997         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
22998         * modules/relocatable-prog (Depends-on): Likewise.
22999         * modules/trim (Depends-on): Likewise.
23000         * modules/unictype/gen-ctype (Depends-on): Likewise.
23001         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23002
23003 2008-11-02  Bruno Haible  <bruno@clisp.org>
23004
23005         Mark 'strcspn' obsolete.
23006         * modules/strcspn (Status, Notice): New sections.
23007
23008 2008-11-02  Bruno Haible  <bruno@clisp.org>
23009
23010         Mark 'rmdir' obsolete.
23011         * modules/rmdir (Status, Notice): New sections.
23012         * modules/clean-temp (Depends-on): Add rmdir.
23013         * modules/openat (Depends-on): Likewise.
23014
23015 2008-11-02  Bruno Haible  <bruno@clisp.org>
23016
23017         Mark 'raise' obsolete.
23018         * modules/raise (Status, Notice): New sections.
23019         (Include): Specify <signal.h>.
23020         * modules/stdio (Depends-on): Add raise.
23021         * modules/write (Depends-on): Likewise.
23022
23023 2008-11-02  Bruno Haible  <bruno@clisp.org>
23024
23025         Mark 'memset' obsolete.
23026         * modules/memset (Status, Notice): New sections.
23027
23028 2008-11-02  Bruno Haible  <bruno@clisp.org>
23029
23030         Mark 'memmove' obsolete.
23031         * modules/memmove (Status, Notice): New sections.
23032         * modules/argp (Depends-on): Add memmove.
23033         * modules/argz (Depends-on): Likewise.
23034         * modules/canonicalize (Depends-on): Likewise.
23035         * modules/canonicalize-lgpl (Depends-on): Likewise.
23036         * modules/fts (Depends-on): Likewise.
23037         * modules/getcwd (Depends-on): Likewise.
23038         * modules/human (Depends-on): Likewise.
23039         * modules/regex (Depends-on): Likewise.
23040         * modules/striconveh (Depends-on): Likewise.
23041         * modules/trim (Depends-on): Likewise.
23042         * modules/unistr/u8-move (Depends-on): Likewise.
23043         * modules/unistr/u16-move (Depends-on): Likewise.
23044         * modules/unistr/u32-move (Depends-on): Likewise.
23045
23046 2008-11-02  Bruno Haible  <bruno@clisp.org>
23047
23048         Mark 'memcpy' obsolete.
23049         * modules/memcpy (Status, Notice): New sections.
23050
23051 2008-11-02  Bruno Haible  <bruno@clisp.org>
23052
23053         Mark 'memcmp' obsolete.
23054         * modules/memcmp (Status, Notice): New sections.
23055         * modules/argmatch (Depends-on): Add memchr.
23056         * modules/backupfile (Depends-on): Likewise.
23057         * modules/c-strcasestr (Depends-on): Likewise.
23058         * modules/crypto/des (Depends-on): Likewise.
23059         * modules/csharpcomp (Depends-on): Likewise.
23060         * modules/fnmatch (Depends-on): Likewise.
23061         * modules/git-merge-changelog (Depends-on): Likewise.
23062         * modules/isnand (Depends-on): Likewise.
23063         * modules/isnand-nolibm (Depends-on): Likewise.
23064         * modules/isnanf (Depends-on): Likewise.
23065         * modules/isnanf-nolibm (Depends-on): Likewise.
23066         * modules/isnanl (Depends-on): Likewise.
23067         * modules/isnanl-nolibm (Depends-on): Likewise.
23068         * modules/mbchar (Depends-on): Likewise.
23069         * modules/memcoll (Depends-on): Likewise.
23070         * modules/quotearg (Depends-on): Likewise.
23071         * modules/regex (Depends-on): Likewise.
23072         * modules/relocatable-prog (Depends-on): Likewise.
23073         * modules/same (Depends-on): Likewise.
23074         * modules/signbit (Depends-on): Likewise.
23075         * modules/strcasestr-simple (Depends-on): Likewise.
23076         * modules/unictype/gen-ctype (Depends-on): Likewise.
23077         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23078         * modules/uniname/uniname (Depends-on): Likewise.
23079         * modules/unistr/u8-cmp (Depends-on): Likewise.
23080
23081 2008-11-02  Bruno Haible  <bruno@clisp.org>
23082
23083         Mark 'memchr' obsolete.
23084         * modules/memchr (Status, Notice): New sections.
23085         * modules/argp (Depends-on): Add memchr.
23086         * modules/base64 (Depends-on): Likewise.
23087         * modules/c-strcasestr (Depends-on): Likewise.
23088         * modules/chdir-long (Depends-on): Likewise.
23089         * modules/fnmatch (Depends-on): Likewise.
23090         * modules/getsubopt (Depends-on): Likewise.
23091         * modules/git-merge-changelog (Depends-on): Likewise.
23092         * modules/glob (Depends-on): Likewise.
23093         * modules/strcasestr-simple (Depends-on): Likewise.
23094         * modules/strnlen (Depends-on): Likewise.
23095
23096 2008-11-02  Bruno Haible  <bruno@clisp.org>
23097
23098         Mark 'atexit' obsolete.
23099         * modules/atexit (Status, Notice): New sections.
23100         * modules/chdir-long (Depends-on): Add atexit.
23101         * modules/wait-process (Depends-on): Likewise.
23102
23103 2008-11-02  Bruno Haible  <bruno@clisp.org>
23104
23105         * gnulib-tool: New option --with-obsolete.
23106         (func_usage): Document it.
23107         (func_modules_transitive_closure): Drop obsolete dependencies if
23108         incobsolete is not true.
23109         (func_import): Read and save the incobsolete variable to the cache.
23110
23111 2008-11-02  Bruno Haible  <bruno@clisp.org>
23112
23113         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23114         * gnulib-tool: New option --extract-status.
23115         (func_usage): Document it.
23116         (sed_extract_prog): Recognize it.
23117         (func_get_status): New function.
23118
23119 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23120
23121         * modules/sockets (License): Change from LGPL to LGPLv2+.
23122
23123 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23124
23125         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23126
23127 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23128
23129         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23130         Mention times and sys_times.
23131         * modules/sys_times, modules/sys_times-tests: New modules.
23132         * modules/times, modules/times-tests: Likewise
23133         * m4/sys_times_h.m4: New file.
23134         * lib/sys_times.in.h: Likewise
23135         * lib/times.c: Likewise.
23136         * tests/test-sys_times.c: Likewise.
23137         * tests/test-times.c: Likewise.
23138         * doc/posix-headers/sys_times.texi: Update.
23139         * doc/posix-functions/times.texi: Update.
23140
23141 2008-10-28  Jim Meyering  <meyering@redhat.com>
23142
23143         * modules/tempname (Depends-on): Add lstat.
23144
23145         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23146
23147 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23148
23149         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23150         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23151         using idiom used elsewhere in gnulib.
23152
23153 2008-10-27  Jim Meyering  <meyering@redhat.com>
23154
23155         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23156
23157 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23158
23159         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23160         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23161         programs.
23162         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23163
23164 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23165
23166         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23167
23168 2008-10-27  Bruno Haible  <bruno@clisp.org>
23169
23170         * tests/test-lstat.c: Include <stdio.h>.
23171
23172 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23173
23174         * modules/lstat-tests: New module.
23175         * tests/test-lstat.c: New file.
23176
23177 2008-10-26  Jim Meyering  <meyering@redhat.com>
23178
23179         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23180
23181 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23182             Bruno Haible  <bruno@clisp.org>
23183
23184         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23185         * modules/configmake (Include): Add a note that the include must come
23186         after all system headers.
23187         * lib/javaversion.c: Include configmake.h after all other includes.
23188
23189 2008-10-26  Bruno Haible  <bruno@clisp.org>
23190
23191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23192         HAVE_STRUCT_RANDOM_DATA to 1.
23193         (gl_STDLIB_H): Simplify.
23194
23195 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23196
23197         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23198         substitute HAVE_STRUCT_RANDOM_DATA.
23199         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23200         random_data.
23201         * modules/stdlib (Makefile.am): Substitute
23202         HAVE_STRUCT_RANDOM_DATA.
23203
23204 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23205
23206         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23207         * doc/gnulib-intro.texi (Copyright): Likewise.
23208
23209 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23210
23211         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23212         findings.
23213
23214 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23215             Bruno Haible  <bruno@clisp.org>
23216
23217         * lib/unistd.in.h: Include <winsock2.h>.
23218         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23219         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23220         Provide dummy declarations.
23221         (gethostname): Override.
23222         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23223         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23224         gl_PREREQ_SYS_H_WINSOCK2.
23225         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23226         * doc/posix-functions/gethostname.texi: More details.
23227
23228 2008-10-25  Bruno Haible  <bruno@clisp.org>
23229
23230         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23231         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23232         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23233
23234         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23235         here ...
23236         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23237         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23238         gl_UNISTD_H_DEFAULTS.
23239
23240 2008-10-25  Eric Blake  <ebb9@byu.net>
23241
23242         signbit: avoid spurious compiler failure
23243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23244         declarations inside function.
23245
23246 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23247             Bruno Haible  <bruno@clisp.org>
23248
23249         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23250         * modules/random_r (Depends-on): Add stdint.
23251
23252 2008-10-24  Bruno Haible  <bruno@clisp.org>
23253
23254         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23255         Eggert.
23256         * modules/strerror (License): Likewise.
23257
23258 2008-10-24  Jim Meyering  <meyering@redhat.com>
23259
23260         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23261         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23262
23263 2008-10-24  Eric Blake  <ebb9@byu.net>
23264
23265         getgroups: fix compilation when getgroups is available
23266         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23267         but with <config.h> override of getgroups disabled.
23268
23269 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23270
23271         * doc/gnulib.texi (Header files): Add note about C++ problems.
23272         Explained by Bruno Haible <bruno@clisp.org>.
23273
23274 2008-10-23  Bruno Haible  <bruno@clisp.org>
23275
23276         Define a dummy SA_NODEFER macro on Interix.
23277         * lib/signal.in.h (SA_NODEFER): Define fallback.
23278         Reported by Aleksey Cheusov <cheusov@tut.by> via
23279         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23280
23281 2008-10-23  Bruno Haible  <bruno@clisp.org>
23282
23283         * modules/freadahead (License): Change to LGPLv2+.
23284         Suggested by Simon Josefsson.
23285
23286 2008-10-23  Jim Meyering  <meyering@redhat.com>
23287
23288         random_r: new module
23289         * modules/random_r: New file.
23290         * m4/random_r.m4: New file.
23291         * lib/random_r.c: New file, from glibc.
23292         * modules/random_r-tests: New file.
23293         * tests/test-random_r.c: New file.
23294         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23295          Declare.
23296         (RAND_MAX): Define.
23297         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23298         * modules/stdlib: Substitute them, too.
23299         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23300         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23301         * doc/glibc-functions/random_r.texi: Likewise.
23302         * doc/glibc-functions/setstate_r.texi: Likewise.
23303         * doc/glibc-functions/srandom_r.texi: Likewise.
23304         * config/srclist.txt: Mention it.
23305
23306 2008-10-23  David Lutterkort  <lutter@redhat.com>
23307
23308         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23309         link requirement
23310
23311 2008-10-23  Jim Meyering  <meyering@redhat.com>
23312
23313         selinux-h: mark parameters of stub functions as intentionally unused
23314         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23315         * lib/se-context.in.h: Likewise.
23316
23317 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23318
23319         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23320
23321 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23322
23323         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23324
23325 2008-10-22  Eric Blake  <ebb9@byu.net>
23326
23327         glthread/thread: avoid compiler warning
23328         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23329         Add unreachable abort to silence compiler.
23330
23331 2008-10-22  Eric Blake  <ebb9@byu.net>
23332
23333         netdb: also supply struct addrinfo for cygwin 1.5.x
23334         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23335         older cygwin.
23336         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23337         cygwin.
23338         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23339
23340 2008-10-22  Bruno Haible  <bruno@clisp.org>
23341
23342         * users.txt: Update entry about pspp.
23343
23344 2008-10-21  Bruno Haible  <bruno@clisp.org>
23345
23346         Simplification.
23347         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23348         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23349
23350         Simplification.
23351         * lib/ioctl.c (ioctl): Don't undefine.
23352         * lib/socket.c (socket): Don't undefine.
23353
23354         Remove unused module indicator macros.
23355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23356         GNULIB_$1 as a C macro.
23357
23358         * doc/posix-functions/close.texi: Undo last change.
23359         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23360         Windows platforms.
23361
23362 2008-10-21  Bruno Haible  <bruno@clisp.org>
23363
23364         Add gethostname() declaration to <unistd.h>.
23365         * lib/unistd.in.h (gethostname): New declaration.
23366         * lib/gethostname.c: Include <unistd.h>.
23367         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23368         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23370         and HAVE_GETHOSTNAME.
23371         * modules/gethostname (Depends-on): Add unistd.
23372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23373         (Include): Specify <unistd.h>.
23374         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23375         HAVE_GETHOSTNAME.
23376         * tests/test-gethostname.c: Include <unistd.h> first.
23377
23378 2008-10-21  Bruno Haible  <bruno@clisp.org>
23379
23380         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23381         * modules/select-tests (Depends-on): Likewise.
23382         Reported by Simon Josefsson.
23383
23384 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23385
23386         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23387         * lib/accept.c: New file, based on winsock.c.
23388         * lib/bind.c: New file, based on winsock.c.
23389         * lib/connect.c: New file, based on winsock.c.
23390         * lib/getpeername.c: New file, based on winsock.c.
23391         * lib/getsockname.c: New file, based on winsock.c.
23392         * lib/getsockopt.c: New file, based on winsock.c.
23393         * lib/ioctl.c: New file, based on winsock.c.
23394         * lib/listen.c: New file, based on winsock.c.
23395         * lib/recv.c: New file, based on winsock.c.
23396         * lib/recvfrom.c: New file, based on winsock.c.
23397         * lib/send.c: New file, based on winsock.c.
23398         * lib/sendto.c: New file, based on winsock.c.
23399         * lib/setsockopt.c: New file, based on winsock.c.
23400         * lib/shutdown.c: New file, based on winsock.c.
23401         * lib/socket.c: New file, based on winsock.c.
23402         * lib/w32sock.h: New file, based on winsock.c.
23403         * lib/winsock.c: Remove file.
23404         * modules/accept: Likewise.
23405         * modules/bind: Likewise.
23406         * modules/connect: Likewise.
23407         * modules/getpeername: Likewise.
23408         * modules/getsockname: Likewise.
23409         * modules/getsockopt: Likewise.
23410         * modules/ioctl: Likewise.
23411         * modules/listen: Likewise.
23412         * modules/recv: Likewise.
23413         * modules/recvfrom: Likewise.
23414         * modules/send: Likewise.
23415         * modules/sendto: Likewise.
23416         * modules/setsockopt: Likewise.
23417         * modules/shutdown: Likewise.
23418         * modules/socket: Use socket.c instead of winsock.c.
23419         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23420         * doc/posix-functions/accept.texi: Doc fix.
23421         * doc/posix-functions/bind.texi: Doc fix.
23422         * doc/posix-functions/close.texi: Doc fix.
23423         * doc/posix-functions/connect.texi: Doc fix.
23424         * doc/posix-functions/getpeername.texi: Doc fix.
23425         * doc/posix-functions/getsockname.texi: Doc fix.
23426         * doc/posix-functions/getsockopt.texi: Doc fix.
23427         * doc/posix-functions/ioctl.texi: Doc fix.
23428         * doc/posix-functions/listen.texi: Doc fix.
23429         * doc/posix-functions/recv.texi: Doc fix.
23430         * doc/posix-functions/recvfrom.texi: Doc fix.
23431         * doc/posix-functions/send.texi: Doc fix.
23432         * doc/posix-functions/sendto.texi: Doc fix.
23433         * doc/posix-functions/setsockopt.texi: Doc fix.
23434         * doc/posix-functions/shutdown.texi: Doc fix.
23435         * doc/posix-functions/socket.texi: Doc fix.
23436
23437 2008-10-20  Bruno Haible  <bruno@clisp.org>
23438
23439         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23440         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23441         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23442         as an alias for SIGABRT.
23443         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23444         (sigaction): Map it to SIGABRT.
23445         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23446
23447 2008-10-20  Bruno Haible  <bruno@clisp.org>
23448
23449         * lib/fts.c: Don't include lstat.h.
23450         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23451
23452         Move the lstat() declaration to <sys/stat.h>.
23453         * lib/lstat.h: Remove file.
23454         * lib/sys_stat.in.h: Add special invocation convention.
23455         (lstat): New declaration.
23456         * lib/lstat.c (orig_lstat): New function.
23457         (rpl_lstat): Use orig_lstat instead of lstat.
23458         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23459         AC_C_INLINE. Set REPLACE_LSTAT.
23460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23461         and REPLACE_LSTAT.
23462         * modules/lstat (Files): Remove lib/lstat.h.
23463         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23464         (Include): Specify <sys/stat.h> instead of lstat.h.
23465         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23466         REPLACE_LSTAT.
23467         * NEWS: Mention the change.
23468
23469 2008-10-20  Bruno Haible  <bruno@clisp.org>
23470
23471         * modules/posix_spawn-tests: New file.
23472         * tests/test-posix_spawn3.c: New file.
23473
23474 2008-10-20  Bruno Haible  <bruno@clisp.org>
23475
23476         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23477         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23478         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23479         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23480         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23481
23482 2008-10-20  Bruno Haible  <bruno@clisp.org>
23483
23484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23485         of posix_spawn on AIX 5.3.
23486
23487 2008-10-20  Bruno Haible  <bruno@clisp.org>
23488
23489         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23490
23491 2008-10-20  Bruno Haible  <bruno@clisp.org>
23492
23493         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23494         of AC_LANG_PROGRAM.
23495
23496 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23497
23498         * lib/netdb.in.h: Don't define GNU specific constants until they
23499         are supported or needed.  Reported by Bruno Haible
23500         <bruno@clisp.org>.
23501
23502 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23503
23504         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23505
23506 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23507
23508         * lib/getaddrinfo.h: Remove file.
23509         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23510         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23511         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23512         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23513         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23514         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23515         * tests/test-getaddrinfo.c: Likewise.
23516         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23517         * NEWS: Mention change.
23518
23519 2008-10-19  Bruno Haible  <bruno@clisp.org>
23520
23521         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23522
23523 2008-10-19  Bruno Haible  <bruno@clisp.org>
23524
23525         * lib/wait-process.c: Include simply <sys/wait.h>.
23526         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
23527         WIFSTOPPED): Remove fallback definitions.
23528         * modules/wait-process (Depends-on): Add sys_wait.
23529
23530         New module 'sys_wait'.
23531         * modules/sys_wait: New file.
23532         * lib/sys_wait.in.h: New file, partially copied from
23533         lib/wait-process.c.
23534         * m4/sys_wait_h.m4: New file.
23535         * doc/posix-headers/sys_wait.texi: Mention the new module.
23536
23537 2008-10-19  Bruno Haible  <bruno@clisp.org>
23538
23539         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
23540
23541 2008-10-19  Bruno Haible  <bruno@clisp.org>
23542
23543         Assume that waitpid() fills an 'int' status, not a 'union wait'.
23544         * lib/wait-process.c (WAIT_T): Remove type.
23545         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
23546         (wait_subprocess): Update.
23547
23548 2008-10-19  Bruno Haible  <bruno@clisp.org>
23549
23550         New module 'atoll'.
23551         * modules/atoll: New file.
23552         * lib/stdlib.in.h (atoll): New declaration.
23553         * lib/atoll.c: New file, from glibc with modifications.
23554         * m4/atoll.m4: New file.
23555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
23556         HAVE_ATOLL.
23557         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
23558         * doc/posix-functions/atoll.texi: Mention the new module.
23559
23560 2008-10-19  Bruno Haible  <bruno@clisp.org>
23561
23562         Add strtoull() declaration to <stdlib.h>.
23563         * lib/stdlib.in.h (strtoull): New declaration.
23564         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23565         Set HAVE_STRTOULL.
23566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
23567         HAVE_STRTOULL.
23568         * modules/strtoull (Depends-on): Add stdlib.
23569         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23570         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
23571         HAVE_STRTOULL.
23572
23573 2008-10-19  Bruno Haible  <bruno@clisp.org>
23574
23575         Add strtoll() declaration to <stdlib.h>.
23576         * lib/stdlib.in.h (strtoll): New declaration.
23577         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
23578         Set HAVE_STRTOLL.
23579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
23580         HAVE_STRTOLL.
23581         * modules/strtoll (Depends-on): Add stdlib.
23582         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23583         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
23584
23585 2008-10-19  Bruno Haible  <bruno@clisp.org>
23586
23587         * modules/bcopy (Depends-on): Add strings.
23588         (Include): Specify <strings.h>.
23589
23590 2008-10-19  Bruno Haible  <bruno@clisp.org>
23591
23592         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
23593
23594 2008-10-19  Bruno Haible  <bruno@clisp.org>
23595
23596         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
23597         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
23598         mingw.
23599
23600 2008-10-19  Bruno Haible  <bruno@clisp.org>
23601
23602         * lib/atanl.c: Don't include isnanl.h.
23603         * lib/cosl.c: Likewise.
23604         * lib/ldexpl.c: Likewise.
23605         * lib/logl.c: Likewise.
23606         * lib/sinl.c: Likewise.
23607         * lib/sqrtl.c: Likewise.
23608         * lib/tanl.c: Likewise.
23609
23610         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
23611         * lib/isnanf.h: Remove file.
23612         * lib/isnand.h: Remove file.
23613         * lib/isnanl.h: Remove file.
23614         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
23615         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
23616         macros.
23617         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
23618         HAVE_ISNANF, don't define it as a C macro.
23619         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
23620         HAVE_ISNAND, don't define it as a C macro.
23621         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
23622         HAVE_ISNANL, don't define it as a C macro.
23623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
23624         HAVE_ISNAN[FDL].
23625         * modules/isnanf (Files): Remove lib/isnanf.h.
23626         (Depends-on): Add math.
23627         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23628         (Include): Specify <math.h> instead of isnanf.h.
23629         * modules/isnand (Files): Remove lib/isnand.h.
23630         (Depends-on): Add math.
23631         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23632         (Include): Specify <math.h> instead of isnand.h.
23633         * modules/isnanl (Files): Remove lib/isnanl.h.
23634         (Depends-on): Add math.
23635         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23636         (Include): Specify <math.h> instead of isnanl.h.
23637         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
23638         HAVE_ISNAN[FDL].
23639         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
23640         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
23641         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
23642         * NEWS: Mention the change.
23643
23644 2008-10-18  Bruno Haible  <bruno@clisp.org>
23645
23646         Add getusershell(), setusershell(), endusershell() declarations to
23647         <unistd.h>.
23648         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
23649         declarations.
23650         * lib/getusershell.c: Include unistd.h.
23651         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
23652         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23653         HAVE_GETUSERSHELL.
23654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
23655         and HAVE_GETUSERSHELL.
23656         * modules/getusershell (Depends-on): Add unistd, extensions.
23657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23658         (Include): Specify <unistd.h>.
23659         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
23660         HAVE_GETUSERSHELL.
23661
23662 2008-10-18  Bruno Haible  <bruno@clisp.org>
23663
23664         Add a getloadavg() declaration to <stdlib.h>.
23665         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
23666         getloadavg declaration.
23667         (getloadavg): New declaration.
23668         * lib/getloadavg.c: Include <stdlib.h> first.
23669         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
23670         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
23671         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
23672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
23673         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23674         * modules/getloadavg (Depends-on): Add stdlib, extensions.
23675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23676         (Include): Specify <stdlib.h>.
23677         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
23678         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
23679
23680 2008-10-18  Bruno Haible  <bruno@clisp.org>
23681
23682         * lib/dirchownmod.c: Don't include lchmod.h.
23683
23684         Move the lchmod() declaration to <sys/stat.h>.
23685         * lib/lchmod.h: Remove file.
23686         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
23687         (lchmod): New declaration, moved here from lib/lchown.h.
23688         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
23689         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
23690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
23691         and HAVE_LCHMOD.
23692         * modules/lchmod (Files): Remove lib/lchmod.h.
23693         (Depends-on): Add sys_stat, extensions.
23694         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23695         (Include): Specify <sys/stat.h> instead of lchmod.h.
23696         * modules/sys_stat (Depends-on): Add link-warning.
23697         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
23698         definition of GL_LINK_WARNING.
23699         * NEWS: Mention the change.
23700
23701 2008-10-18  Bruno Haible  <bruno@clisp.org>
23702
23703         * lib/fchdir.c: Don't include dirfd.h.
23704         * lib/fts.c: Likewise.
23705         * lib/getcwd.c: Likewise.
23706         * lib/glob.c: Likewise.
23707
23708         Move the dirfd() declaration to <dirent.h>.
23709         * lib/dirfd.h: Remove file.
23710         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
23711         (dirfd): New declaration.
23712         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
23713         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
23714         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
23715         HAVE_DECL_DIRFD.
23716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
23717         HAVE_DECL_DIRFD.
23718         * modules/dirfd (Files): Remove lib/dirfd.h.
23719         (Depends-on): Add dirent, extensions.
23720         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
23721         (Include): Specify <dirent.h> instead of dirfd.h.
23722         * modules/dirent (Depends-on): Add link-warning.
23723         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
23724         definition of GL_LINK_WARNING.
23725         * NEWS: Mention the change.
23726
23727 2008-10-18  Bruno Haible  <bruno@clisp.org>
23728
23729         Move the euidaccess() declaration to <unistd.h>.
23730         * lib/euidaccess.h: Remove file.
23731         * lib/unistd.in.h (euidaccess): New declaration.
23732         * lib/euidaccess.c: Don't include euidaccess.h.
23733         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
23734         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
23735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
23736         and HAVE_EUIDACCESS.
23737         * modules/euidaccess (Files): Remove lib/euidaccess.h.
23738         (Depends-on): Add unistd.
23739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23740         (Include): Specify <unistd.h> instead of euidaccess.h.
23741         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
23742         HAVE_EUIDACCESS.
23743         * NEWS: Mention the change.
23744
23745 2008-10-18  Bruno Haible  <bruno@clisp.org>
23746
23747         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
23748
23749         Move the getdomainname() declaration to <unistd.h>.
23750         * lib/getdomainname.h: Remove file.
23751         * lib/unistd.in.h (getdomainname): New declaration.
23752         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
23753         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23754         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
23755         HAVE_GETDOMAINNAME.
23756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23757         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
23758         * modules/getdomainname (Files): Remove lib/getdomainname.h.
23759         (Depends-on): Add unistd, extensions.
23760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23761         (Includes): Specify <unistd.h> instead of getdomainname.h.
23762         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
23763         HAVE_GETDOMAINNAME.
23764         * NEWS: Mention the change.
23765
23766 2008-10-18  Bruno Haible  <bruno@clisp.org>
23767
23768         * modules/dirent: New file.
23769         * m4/dirent_h.m4: New file.
23770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
23771         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
23772         * modules/fchdir (Files): Remove lib/dirent.in.h.
23773         (Depends-on): Add dirent.
23774         (Makefile.am): Move rules to modules/dirent.
23775         * doc/posix-headers/dirent.texi: Mention the new module.
23776
23777 2008-10-18  Bruno Haible  <bruno@clisp.org>
23778
23779         Avoid -Wunused-parameter warnings in public gnulib header files.
23780         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
23781         macro.
23782         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
23783
23784 2008-10-18  Bruno Haible  <bruno@clisp.org>
23785
23786         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
23787         * doc/glibc-functions/error.texi: Mention the module 'error'.
23788         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
23789         * doc/glibc-functions/getdomainname.texi: Mention the module
23790         'getdomainname'.
23791         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
23792         * doc/glibc-functions/getpagesize.texi: Mention the module
23793         'getpagesize'.
23794         * doc/glibc-functions/getusershell.texi: Mention the module
23795         'getusershell'.
23796         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
23797         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
23798         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
23799         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
23800         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
23801         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
23802         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
23803         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
23804         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
23805         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
23806         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
23807         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
23808         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
23809         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
23810
23811 2008-10-17  Bruno Haible  <bruno@clisp.org>
23812
23813         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
23814         HP-UX and IRIX, use -0.0L.
23815         * tests/test-ceill.c (minus_zero): Likewise.
23816         * tests/test-floorl.c (minus_zero): Likewise.
23817         * tests/test-frexpl.c (minus_zero): Likewise.
23818         * tests/test-isnan.c (minus_zerol): Likewise.
23819         * tests/test-isnanl.h (minus_zero): Likewise.
23820         * tests/test-ldexpl.c (minus_zero): Likewise.
23821         * tests/test-roundl.c (minus_zero): Likewise.
23822         * tests/test-signbit.c (minus_zerol): Likewise.
23823         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23824         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23825         * tests/test-truncl.c (minus_zero): Likewise.
23826         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23827         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23828         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
23829         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23830
23831 2008-10-17  Bruno Haible  <bruno@clisp.org>
23832
23833         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
23834         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
23835         that it gets activated only for gcc >= 3.0.
23836         * lib/dirent.in.h: Likewise.
23837         * lib/errno.in.h: Likewise.
23838         * lib/fcntl.in.h: Likewise.
23839         * lib/float.in.h: Likewise.
23840         * lib/iconv.in.h: Likewise.
23841         * lib/inttypes.in.h: Likewise.
23842         * lib/locale.in.h: Likewise.
23843         * lib/math.in.h: Likewise.
23844         * lib/netdb.in.h: Likewise.
23845         * lib/netinet_in.in.h: Likewise.
23846         * lib/search.in.h: Likewise.
23847         * lib/signal.in.h: Likewise.
23848         * lib/spawn.in.h: Likewise.
23849         * lib/stdarg.in.h: Likewise.
23850         * lib/stdint.in.h: Likewise.
23851         * lib/stdio.in.h: Likewise.
23852         * lib/stdlib.in.h: Likewise.
23853         * lib/string.in.h: Likewise.
23854         * lib/strings.in.h: Likewise.
23855         * lib/sys_file.in.h: Likewise.
23856         * lib/sys_ioctl.in.h: Likewise.
23857         * lib/sys_select.in.h: Likewise.
23858         * lib/sys_socket.in.h: Likewise.
23859         * lib/sys_stat.in.h: Likewise.
23860         * lib/sys_time.in.h: Likewise.
23861         * lib/sysexits.in.h: Likewise.
23862         * lib/time.in.h: Likewise.
23863         * lib/unistd.in.h: Likewise.
23864         * lib/wchar.in.h: Likewise.
23865         * lib/wctype.in.h: Likewise.
23866         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23867
23868 2008-10-17  Jim Meyering  <meyering@redhat.com>
23869
23870         ignore-value: don't depend on inline module
23871         * modules/ignore-value (Depends-on): Remove 'inline'.
23872         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
23873         Suggestion from Bruno Haible.
23874
23875 2008-10-17  Bruno Haible  <bruno@clisp.org>
23876
23877         New implementation of condition variables for Win32.
23878         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
23879         (gl_linked_waitqueue_t): New type.
23880         (gl_cond_t): Use it.
23881         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
23882         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
23883         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
23884         (glthread_cond_init_func, glthread_cond_wait_func,
23885         glthread_cond_timedwait_func, glthread_cond_signal_func,
23886         glthread_cond_broadcast_func, glthread_cond_destroy_func):
23887         Reimplemented on the basis of gl_linked_waitqueue_t.
23888         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
23889         gl_waitqueue_t.
23890         (gl_rwlock_t): Update.
23891         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
23892
23893 2008-10-17  Simon Josefsson  <simon@josefsson.org>
23894
23895         * modules/recvfrom (Depends-on): Add dependency on getpeername.
23896         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23897
23898 2008-10-17  Jim Meyering  <meyering@redhat.com>
23899
23900         ignore-value: new module
23901         * modules/ignore-value: New file.
23902         * lib/ignore-value.h: New file.
23903         * MODULES.html.sh (Compiler warning management): New section,
23904         just for this module.  More to come.
23905
23906 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
23907
23908         open-safer.c: avoid 'signed and unsigned in conditional...' warning
23909         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
23910         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
23911
23912 2008-10-16  Jim Meyering  <meyering@redhat.com>
23913
23914         openat-die.c: avoid 'no previous prototype' warning
23915         * lib/openat-die.c: Include "openat.h".
23916         Reported by Reuben Thomas <rrt@sc3d.org>.
23917
23918 2008-10-16  Simon Josefsson  <simon@josefsson.org>
23919
23920         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
23921         * lib/netdb.in.h: Fix typo.
23922         Reported by Bruno Haible  <bruno@clisp.org>
23923
23924         * lib/netdb.in.h: Include sys/socket.h for platforms without
23925         netdb.h, to get structures like hostent on MinGW.
23926         * modules/netdb (Depends-on): Add sys_socket.
23927
23928 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23929
23930         * modules/netdb, modules/netdb-tests: New file.
23931         * m4/netdb_h.m4: New file.
23932         * lib/netdb.in.h: Add, currently just an empty file pending
23933         definitions.
23934         * tests/test-netdb.c: New file.
23935         * doc/posix-headers/netdb.texi: Mention that we replace it if
23936         needed.
23937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23938         netdb.
23939
23940 2008-10-15  Simon Josefsson  <simon@josefsson.org>
23941
23942         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
23943         with code.
23944
23945 2008-10-13  Bruno Haible  <bruno@clisp.org>
23946
23947         * lib/glthread/cond.c (glthread_cond_wait_func,
23948         glthread_cond_timedwait_func): Add a comment.
23949
23950 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23951
23952         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
23953         * tests/test-select.c: Likewise,
23954
23955 2008-10-13  Bruno Haible  <bruno@clisp.org>
23956
23957         * lib/glthread/cond.c (glthread_cond_wait_func,
23958         glthread_cond_timedwait_func): Fix variable name.
23959         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23960
23961 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
23962
23963         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
23964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
23965         struct sockaddr.sa_len.
23966         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
23967
23968 2008-10-13  Simon Josefsson  <simon@josefsson.org>
23969
23970         * build-aux/pmccabe2html: Add css and css_url parameters.
23971
23972 2008-10-12  Bruno Haible  <bruno@clisp.org>
23973
23974         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
23975         calling aclx_get.
23976         Reported by Rainer Tammer <tammer@tammer.net>.
23977
23978 2008-10-12  Bruno Haible  <bruno@clisp.org>
23979
23980         Use msvcrt aware primitives for creation/termination of Win32 threads.
23981         * lib/glthread/thread.c: Include <process.h>.
23982         (glthread_create_func): Use _beginthreadex instead of CreateThread.
23983         (wrapper_func): Update signature.
23984         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
23985
23986 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23987             Bruno Haible  <bruno@clisp.org>
23988
23989         Provide a Win32 implementation of the 'cond' module.
23990         * lib/glthread/cond.h [USE_WIN32]: New implementation.
23991         * lib/glthread/cond.c (glthread_cond_init_func,
23992         glthread_cond_wait_func, glthread_cond_timedwait_func,
23993         glthread_cond_signal_func, glthread_cond_broadcast_func,
23994         glthread_cond_destroy_func) [USE_WIN32]: New functions.
23995         * modules/cond (Dependencies): Add gettimeofday.
23996
23997 2008-10-11  Bruno Haible  <bruno@clisp.org>
23998
23999         Make sleep work on older versions of mingw.
24000         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24001         only whether it exists.
24002         * doc/posix-functions/sleep.texi: Mention the problem with older
24003         versions of mingw.
24004
24005 2008-10-11  Bruno Haible  <bruno@clisp.org>
24006
24007         New module 'shutdown'.
24008         * modules/shutdown: New file.
24009         * lib/sys_socket.in.h (shutdown): New declaration.
24010         * lib/winsock.c (shutdown): New function.
24011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24012         GNULIB_SHUTDOWN.
24013         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24014         * doc/posix-functions/shutdown.texi: Document the new module.
24015
24016 2008-10-11  Jim Meyering  <meyering@redhat.com>
24017
24018         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24019
24020 2008-10-11  Bruno Haible  <bruno@clisp.org>
24021
24022         New module 'fclose'.
24023         * modules/fclose: New file.
24024         * lib/stdio.in.h (fclose): New declaration.
24025         * lib/fclose.c: New file.
24026         * m4/fclose.m4: New file.
24027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24028         REPLACE_FCLOSE.
24029         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24030         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24031         REPLACE_FCLOSE.
24032         * modules/close (Depends-on): fclose.
24033         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24034
24035 2008-10-11  Bruno Haible  <bruno@clisp.org>
24036
24037         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24038         set errno and don't call _close.
24039
24040 2008-10-10  Bruno Haible  <bruno@clisp.org>
24041
24042         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24043         ACL, not afterwards. Fixes test failure on Cygwin.
24044
24045 2008-10-09  Ben Pfaff  <blp@gnu.org>
24046
24047         * build-aux/announce-gen: Fix gnulib version related part of usage
24048         message.  Die with a useful error message if no tarballs are
24049         found.
24050
24051 2008-10-10  Jim Meyering  <meyering@redhat.com>
24052
24053         bootstrap: use git's --depth=N option only if it's supported
24054         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24055         recognize the --depth option.  Reported by Pádraig Brady.
24056
24057 2008-10-09  Bruno Haible  <bruno@clisp.org>
24058
24059         New module 'ioctl'.
24060         * modules/ioctl: New file.
24061         * lib/sys_socket.in.h (ioctl): Remove declaration.
24062         * lib/winsock.c: Include <sys/ioctl.h>.
24063         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24064         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24065         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24066         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24067         * doc/posix-functions/ioctl.texi: Mention the new module.
24068
24069 2008-10-09  Bruno Haible  <bruno@clisp.org>
24070
24071         New module 'sys_ioctl'.
24072         * lib/sys_ioctl.in.h: New file.
24073         * m4/sys_ioctl_h.m4: New file.
24074         * modules/sys_ioctl: New file.
24075         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24076
24077 2008-10-09  Bruno Haible  <bruno@clisp.org>
24078
24079         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24080         * lib/winsock.c: Include <stdarg.h>.
24081         (rpl_ioctl): Change to second argument 'int' and then varargs.
24082
24083 2008-10-09  Bruno Haible  <bruno@clisp.org>
24084
24085         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24086         when the sys_socket module is present and the system has <winsock2.h>.
24087
24088 2008-10-09  Bruno Haible  <bruno@clisp.org>
24089
24090         * doc/posix-functions/close.texi: Mention module 'close' instead of
24091         module 'sys_socket'.
24092
24093 2008-10-09  Bruno Haible  <bruno@clisp.org>
24094
24095         * doc/glibc-headers/sys_ioctl.texi: New file.
24096         * doc/gnulib.texi: Include it.
24097
24098 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24099             Bruno Haible  <bruno@clisp.org>
24100
24101         Combine the two replacements of 'close'.
24102         * lib/sys_socket.in.h (close): Define to a reminder to include
24103         <unistd.h>.
24104         (_gl_close_fd_maybe_socket): New declaration.
24105         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24106         * lib/winsock.c (close): Remove undefinition.
24107         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24108         needed for the gnulib module 'close'.
24109         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24110         define to an error symbol or to a warning, if suitable.
24111         * lib/close.c: Include <sys/socket.h>.
24112         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24113         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24114         UNISTD_H_HAVE_WINSOCK2_H.
24115         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24117         UNISTD_H_HAVE_WINSOCK2_H.
24118         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24119         (configure.ac): Set a module indicator.
24120         (Makefile.am): Substitute GNULIB_CLOSE.
24121         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24122         * modules/poll-tests (Depends-on): Add close.
24123         * modules/select-tests (Depends-on): Likewise.
24124
24125 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24126             Bruno Haible  <bruno@clisp.org>
24127
24128         New module 'close'.
24129         * modules/close: New file.
24130         * lib/unistd.in.h (close): Move declaration out of the
24131         FCHDIR_REPLACEMENT scope.
24132         (_gl_unregister_fd): New declaration.
24133         * lib/close.c: New file.
24134         * lib/fchdir.c (rpl_close): Remove function.
24135         * m4/close.m4: New file.
24136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24137         close.
24138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24139         REPLACE_CLOSE.
24140         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24141         REPLACE_CLOSE.
24142         * modules/fchdir (Depends-on): Add close.
24143
24144 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24145             Bruno Haible  <bruno@clisp.org>
24146
24147         * lib/fcntl.in.h (open): Simplify conditionals.
24148         (_gl_register_fd): New declaration.
24149         * lib/fchdir.c (rpl_open): Remove function.
24150         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24151         also.
24152         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24154         open.
24155
24156 2008-10-09  Jim Meyering  <meyering@redhat.com>
24157
24158         GNUmakefile: use the more name-space-friendly "_version"
24159         * top/GNUmakefile (_dummy): Update.
24160         (_version): Rename from "version".
24161
24162 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24163             Bruno Haible  <bruno@clisp.org>
24164
24165         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24166         rpl_close.
24167         (_gl_register_fd): New function, extracted from rpl_open.
24168         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24169         (rpl_open, rpl_opendir): Use _gl_register_fd.
24170
24171 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24172
24173         Fix organization of 'open' replacement.
24174         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24175         (gl_FUNC_OPEN): Use it.
24176         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24177
24178 2008-10-08  Bruno Haible  <bruno@clisp.org>
24179
24180         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24181
24182 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24183
24184         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24185         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24186         listen).
24187
24188 2008-10-08  Eric Blake  <ebb9@byu.net>
24189
24190         GNUmakefile: add 'make version' target
24191         * top/GNUmakefile (_curr-ver): Split version update rules...
24192         (version): ...into a target.
24193
24194 2008-10-07  Bruno Haible  <bruno@clisp.org>
24195
24196         Use a more portable replacement expression for -0.0L.
24197         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24198         instead of -0.0L. Fix m4 quotation.
24199
24200         * tests/test-signbit.c: Include <float.h>.
24201         (minus_zero): New variable.
24202         (test_signbitl): Use minus_zero instead of -zero.
24203         * modules/signbit-tests (Depends-on): Add float.
24204
24205         * tests/test-ceill.c: Include <float.h>.
24206         (zero): Remove variable.
24207         (minus_zero): New variable.
24208         (main): Use minus_zero instead of -zero.
24209         * modules/ceill-tests (Depends-on): Add float.
24210
24211         * tests/test-floorl.c: Include <float.h>.
24212         (zero): Remove variable.
24213         (minus_zero): New variable.
24214         (main): Use minus_zero instead of -zero.
24215         * modules/floorl-tests (Depends-on): Add float.
24216
24217         * tests/test-roundl.c: Include <float.h>.
24218         (zero): Remove variable.
24219         (minus_zero): New variable.
24220         (main): Use minus_zero instead of -zero.
24221         * modules/roundl-tests (Depends-on): Add float.
24222
24223         * tests/test-truncl.c: Include <float.h>.
24224         (zero): Remove variable.
24225         (minus_zero): New variable.
24226         (main): Use minus_zero instead of -zero.
24227         * modules/truncl-tests (Depends-on): Add float.
24228
24229         * tests/test-frexpl.c (zero): Remove variable.
24230         (minus_zero): New variable.
24231         (main): Use minus_zero instead of -zero.
24232         * modules/frexpl-tests (Depends-on): Add float.
24233
24234         * tests/test-isnan.c (zerol): Remove variable.
24235         (minus_zerol): New variable.
24236         (test_long_double): Use minus_zerol instead of -zerol.
24237         * modules/isnan-tests (Depends-on): Add float.
24238
24239         * tests/test-isnanl.h (zero): Remove variable.
24240         (minus_zero): New variable.
24241         (main): Use minus_zero instead of -zero.
24242         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24243         * modules/isnanl-tests (Depends-on): Add float.
24244
24245         * tests/test-ldexpl.c (zero): Remove variable.
24246         (minus_zero): New variable.
24247         (main): Use minus_zero instead of -zero.
24248         * modules/ldexpl-tests (Depends-on): Add float.
24249
24250         * tests/test-snprintf-posix.h (zerol): Remove variable.
24251         (minus_zerol): New variable.
24252         (test_function): Use minus_zerol instead of -zerol.
24253         * modules/snprintf-posix-tests (Depends-on): Add float.
24254         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24255
24256         * tests/test-sprintf-posix.h (zerol): Remove variable.
24257         (minus_zerol): New variable.
24258         (test_function): Use minus_zerol instead of -zerol.
24259         * modules/sprintf-posix-tests (Depends-on): Add float.
24260         * modules/vsprintf-posix-tests (Depends-on): Add float.
24261
24262         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24263         (minus_zerol): New variable.
24264         (test_function): Use minus_zerol instead of -zerol.
24265         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24266
24267         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24268         (minus_zerol): New variable.
24269         (test_function): Use minus_zerol instead of -zerol.
24270         * modules/vasprintf-posix-tests (Depends-on): Add float.
24271
24272 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24273
24274         * MODULES.html.sh (Support for building documentation): Mention
24275         pmccabe2html.  Sort entries.
24276
24277         Add pmccabe2html module, from gnupdf.
24278         * build-aux/pmccabe.css: New file.
24279         * build-aux/pmccabe2html: New file.
24280         * m4/pmccabe2html.m4: New file.
24281         * modules/pmccabe2html: New file.
24282
24283 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24284
24285         flock: new module
24286         * MODULES.html.sh: Add to list of modules.
24287         * lib/flock.c: flock implementation for Windows and Unix systems
24288         which have fcntl.
24289         * doc/glibc-functions/flock.texi: Update documentation.
24290         * lib/sys_file.in.h: <sys/file.h> header file.
24291         * m4/flock.m4: M4 macros.
24292         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24293         * modules/flock: flock module.
24294         * modules/flock-tests: flock tests module.
24295         * modules/sys_file: sys/file.h module.
24296         * tests/test-flock.c: test suite for flock.
24297
24298 2008-10-06  Jim Meyering  <meyering@redhat.com>
24299
24300         bootstrap: check for LT_INIT more portably still ;-)
24301         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24302         Spotted by Bruno Haible.
24303
24304 2008-10-06  Eric Blake  <ebb9@byu.net>
24305
24306         test-signbit: avoid tripping Irix cc bug on -0.0L
24307         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24308         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24309         entire testsuite consistent and avoids an Irix 6.2 bug.
24310
24311 2008-10-05  Bruno Haible  <bruno@clisp.org>
24312             Jim Meyering  <jim@meyering.net>
24313
24314         Add an option for ignoring EPIPE during close_stdout.
24315         * lib/closeout.h: Include <stdbool.h>.
24316         (close_stdout_set_ignore_EPIPE): New declaration.
24317         * lib/closeout.c: Include <stdbool.h>.
24318         (ignore_EPIPE): New variable.
24319         (close_stdout_set_ignore_EPIPE): New function.
24320         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24321         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24322         failure.
24323         * modules/closeout (Depends-on): Add stdbool.
24324
24325 2008-10-05  Bruno Haible  <bruno@clisp.org>
24326
24327         * modules/accept: New file.
24328         * modules/bind: New file.
24329         * modules/connect: New file.
24330         * modules/getpeername: New file.
24331         * modules/getsockname: New file.
24332         * modules/getsockopt: New file.
24333         * modules/listen: New file.
24334         * modules/recv: New file.
24335         * modules/recvfrom: New file.
24336         * modules/send: New file.
24337         * modules/sendto: New file.
24338         * modules/setsockopt: New file.
24339         * modules/socket: New file.
24340         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24341         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24342         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24343         the particular module is requested. Add a link warning when the
24344         particular module is not requested.
24345         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24346         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24347         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24348         the particular module is requested.
24349         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24350         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24351         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24352         * modules/sys_socket (Depends-on): Add link-warning.
24353         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24354         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24355         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24356         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24357         GL_LINK_WARNING.
24358         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24359         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24360         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24361         * doc/posix-functions/getpeername.texi: Mention the new module
24362         'getpeername'.
24363         * doc/posix-functions/getsockname.texi: Mention the new module
24364         'getsockname'.
24365         * doc/posix-functions/getsockopt.texi: Mention the new module
24366         'getsockopt'.
24367         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24368         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24369         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24370         * doc/posix-functions/send.texi: Mention the new module 'send'.
24371         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24372         * doc/posix-functions/setsockopt.texi: Mention the new module
24373         'setsockopt'.
24374         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24375         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24376         listen, connect, accept.
24377         * modules/select-tests (Depends-on): Likewise.
24378
24379 2008-10-05  Bruno Haible  <bruno@clisp.org>
24380
24381         * lib/winsock.c (strerror): Remove unused #undef.
24382         (rpl_close): Remove unused local variable.
24383
24384         * modules/sys_socket (Depends-on); Add errno.
24385
24386 2008-10-05  Bruno Haible  <bruno@clisp.org>
24387
24388         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24389         (select): Add a link warning when the 'select' module is not used.
24390         * modules/sys_select (Depends-on): Add link-warning.
24391         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24392         Suggested by Paolo Bonzini.
24393
24394 2008-10-05  Jim Meyering  <meyering@redhat.com>
24395
24396         bootstrap: check for LT_INIT more portably
24397         * build-aux/bootstrap: Avoid using grep -E, since it's not
24398         portable enough.  Suggestion from Bruno Haible.
24399
24400 2008-10-05  Bruno Haible  <bruno@clisp.org>
24401
24402         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24403         as being fixed by gnulib.
24404
24405 2008-10-05  Bruno Haible  <bruno@clisp.org>
24406
24407         * modules/select-tests: New file, mostly copied from
24408         modules/sys_select-tests.
24409         * tests/test-select.c: New file, mostly copied from
24410         tests/test-sys_select.c.
24411         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24412         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24413         (Makefile.am): Remove test_sys_select_LDADD.
24414
24415         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24416         to an undefined symbol, for an error message.
24417         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24418         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24419         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24420         winsock-select.c here.
24421         * modules/sys_select (Files): Remove lib/winsock-select.c.
24422         (Depends-on): Remove alloca.
24423         (Makefile.am): Substitute GNULIB_SELECT.
24424         * modules/select: New file.
24425         * doc/posix-functions/select.texi: Update.
24426
24427 2008-10-05  Bruno Haible  <bruno@clisp.org>
24428
24429         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24430         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24431         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24432         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24433         getdtablesize.
24434         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24435         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24436
24437 2008-10-05  Bruno Haible  <bruno@clisp.org>
24438
24439         * modules/getdtablesize-tests: New file.
24440         * tests/test-getdtablesize.c: New file.
24441
24442         New module 'getdtablesize'.
24443         * lib/unistd.in.h (getdtablesize): New declaration.
24444         * lib/getdtablesize.c: New file.
24445         * m4/getdtablesize.m4: New file.
24446         * modules/getdtablesize: New file.
24447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24448         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24449         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24450         HAVE_GETDTABLESIZE.
24451         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24452
24453 2008-10-05  Bruno Haible  <bruno@clisp.org>
24454
24455         * modules/sched (Makefile.am): Fix typo.
24456         Reported by Simon Josefsson.
24457
24458 2008-10-05  Jim Meyering  <meyering@redhat.com>
24459
24460         bootstrap: check for LT_INIT, too
24461         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24462         are deprecated.  Suggestion from Ralf Wildenhues.
24463
24464 2008-10-05  Bruno Haible  <bruno@clisp.org>
24465
24466         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24467         overriding them by ours.
24468         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24469
24470 2008-10-05  Jim Meyering  <meyering@redhat.com>
24471
24472         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24473         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24474         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24475
24476 2008-10-04  Bruno Haible  <bruno@clisp.org>
24477
24478         * modules/dup2 (License): Change to LGPLv2+.
24479         * modules/sleep (License): Likewise.
24480         * modules/perror (License): Likewise.
24481         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24482         Blake.
24483         * modules/signal (License): Likewise.
24484         * modules/sigprocmask (License): Likewise.
24485         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24486         Meyering.
24487
24488 2008-10-04  Bruno Haible  <bruno@clisp.org>
24489
24490         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24491         Reported by Rainer Tammer <tammer@tammer.net>.
24492
24493 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24494             Bruno Haible  <bruno@clisp.org>
24495
24496         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24497         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24498         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24499
24500 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24501
24502         filevercmp: new module
24503         * lib/filevercmp.h: New function filevercmp comparing version strings.
24504         * lib/filevercmp.c: Implementation of filevercmp function.
24505         * modules/filevercmp: Module metadata.
24506         * tests/test-filevercmp.c: Unit test for new module.
24507         * modules/filevercmp-tests: Unit test metadata.
24508         * MODULES.html.sh: Add filevercmp module.
24509
24510 2008-10-03  Bruno Haible  <bruno@clisp.org>
24511
24512         * lib/c-ctype.h: Add comment.
24513         Reported by Jim Meyering.
24514
24515 2008-10-02  Bruno Haible  <bruno@clisp.org>
24516
24517         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24518
24519 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24520
24521         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24522         name of bootstrap.conf accordingly.
24523
24524 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24525
24526         * build-aux/bootstrap: Install git-merge-changelog configuration
24527         items into .gitconfig if needed.
24528
24529 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24530
24531         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
24532         git repository, and initialize/update it accordingly.
24533
24534 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
24535
24536         * modules/fsync-tests: New file.
24537         * tests/test-fsync.c: New file.
24538
24539         New module 'fsync'.
24540         * lib/fsync.c: New file.
24541         * m4/fsync.m4: New file.
24542         * modules/fsync: New file.
24543         * lib/unistd.in.h (fsync): New declaration.
24544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
24545         GNULIB_FSYNC and HAVE_FSYNC.
24546         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
24547         * MODULES.html.sh (posix_functions): Add fsync.
24548         * doc/posix-functions/fsync.texi: Mention the new module.
24549
24550 2008-10-02  Jim Meyering  <meyering@redhat.com>
24551
24552         fts.c: sync with similar code from coreutils' remove.c
24553         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
24554         Guard also with "#if defined __linux__", since for now at least,
24555         this code is Linux-kernel-specific.
24556
24557 2008-10-02  Jim Meyering  <meyering@redhat.com>
24558
24559         fts: bug fixes
24560         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
24561         Include <sys/vfs.h>, not <sys/statfs.h>.
24562
24563         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
24564         Include <sys/vfs.h>, not <sys/statfs.h>.
24565
24566 2008-10-01  Bruno Haible  <bruno@clisp.org>
24567
24568         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
24569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
24570         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
24571         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
24572         * doc/posix-functions/posix_spawnp.texi: Likewise.
24573         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
24574         whether posix_spawn actually works.
24575         * m4/pipe.m4 (gl_PIPE): Likewise.
24576         * modules/execute (Files): Add m4/posix_spawn.m4.
24577         * modules/pipe (Files): Add m4/posix_spawn.m4.
24578         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
24579
24580 2008-10-01  Jim Meyering  <meyering@redhat.com>
24581
24582         remove trailing spaces
24583         * NEWS: Likewise.
24584         * lib/poll.c (poll): Likewise.
24585         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
24586         * lib/winsock.c (rpl_close): Likewise.
24587         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
24588         * modules/yield: Likewise.
24589         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
24590         * tests/test-sys_select.c (connect_to_socket): Likewise.
24591
24592         fts.c: adjust a new interface to be more generally useful
24593         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
24594         (fts_build): Adjust caller.
24595
24596 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24597
24598         * modules/cond-tests: New file.
24599         * tests/test-cond.c: New file.
24600
24601 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24602             Bruno Haible  <bruno@clisp.org>
24603
24604         * modules/cond (Dependencies): Add errno, time.
24605         * lib/glthread/cond.h: Include <time.h>.
24606         (gl_cond_define, gl_cond_define_initialized): Use the same definition
24607         across platforms.
24608
24609 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24610             Bruno Haible  <bruno@clisp.org>
24611
24612         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
24613
24614 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24615             Bruno Haible  <bruno@clisp.org>
24616
24617         * modules/tls-tests (Depends-on): Add thread, yield.
24618         (configure.ac): Remove all checks.
24619         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
24620         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24621         gl_thread_self): Remove definitions. Include glthread/thread.h and
24622         glthread/yield.h instead.
24623         (test_tls): Pass an additional NULL argument to gl_thread_join.
24624
24625 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24626             Bruno Haible  <bruno@clisp.org>
24627
24628         * modules/lock-tests (Depends-on): Add thread, yield.
24629         (configure.ac): Remove all checks.
24630         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
24631         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
24632         gl_thread_self): Remove definitions. Include glthread/thread.h and
24633         glthread/yield.h instead.
24634         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
24635         additional NULL argument to gl_thread_join.
24636
24637 2008-09-30  Bruno Haible  <bruno@clisp.org>
24638
24639         Fix the Win32 implementation of the 'thread' module.
24640         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
24641         pointer type.
24642         (gl_thread_self): Invoke gl_thread_self_func.
24643         (gl_thread_self_func): New declaration.
24644         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
24645         (do_init_self_key, init_self_key): New functions.
24646         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
24647         Remove some fields.
24648         (running_threads, running_lock): Remove variables.
24649         (get_current_thread_handle): New function.
24650         (gl_thread_self_func, wrapper_func, glthread_create_func,
24651         glthread_join_func, gl_thread_exit_func): Largely rewritten and
24652         simplified.
24653
24654 2008-09-30  Bruno Haible  <bruno@clisp.org>
24655
24656         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
24657         files.
24658
24659 2008-09-30  Jim Meyering  <meyering@redhat.com>
24660
24661         fts.m4: correct the test for statfs.f_type
24662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
24663         when checking for statfs.f_type.
24664
24665 2008-09-15  Simon Josefsson  <simon@josefsson.org>
24666
24667         tests: avoid some compiler warnings
24668         * tests/test-memchr.c (main): Pass NULL indirectly.
24669         * tests/test-getdate.c (main): Remove unused variable 'ret'.
24670
24671 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
24672
24673         getdate.y: disallow countable dayshifts like "4 yesterday ago"
24674         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
24675         exactly specified dayshifts.
24676         (dayshift): New rule.
24677         (rel): Add dayshift.
24678         (relative_time_table) [tomorrow, yesterday, today, now]:
24679         Use tDAY_SHIFT in place of tDAY_UNIT.
24680         * tests/test-getdate.c: Add tests for now-disallowed countable
24681         dayshifts, e.g., "4 yesterday ago".
24682
24683 2008-09-29  Bruno Haible  <bruno@clisp.org>
24684
24685         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
24686         * tests/test-posix_spawn1.in.sh: Renamed from
24687         tests/test-posix_spawn.in.sh.
24688         * tests/test-posix_spawn2.c: New file.
24689         * tests/test-posix_spawn2.in.sh: New file.
24690         * modules/posix_spawnp-tests (Files): Update.
24691         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
24692
24693 2008-09-29  Bruno Haible  <bruno@clisp.org>
24694
24695         Propagate effects of putenv/setenv/unsetenv to child processes.
24696         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
24697         * lib/pipe.c (create_pipe): Likewise.
24698
24699 2008-09-29  Bruno Haible  <bruno@clisp.org>
24700
24701         Enable use of shell scripts as executables in mingw.
24702         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
24703         run the program as a shell script.
24704         * lib/pipe.c (create_pipe): Likewise.
24705         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
24706         resulting array.
24707
24708 2008-09-29  Eric Blake  <ebb9@byu.net>
24709
24710         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
24711
24712 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
24713
24714         * doc/posix-functions/accept.texi: Update mingw problems.
24715         * doc/posix-functions/bind.texi: Update mingw problems.
24716         * doc/posix-functions/close.texi: Update mingw problems.
24717         * doc/posix-functions/connect.texi: Update mingw problems.
24718         * doc/posix-functions/getpeername.texi: Update mingw problems.
24719         * doc/posix-functions/getsockname.texi: Update mingw problems.
24720         * doc/posix-functions/getsockopt.texi: Update mingw problems.
24721         * doc/posix-functions/ioctl.texi: Update mingw problems.
24722         * doc/posix-functions/listen.texi: Update mingw problems.
24723         * doc/posix-functions/recv.texi: Update mingw problems.
24724         * doc/posix-functions/recvfrom.texi: Update mingw problems.
24725         * doc/posix-functions/select.texi: Update mingw problems.
24726         * doc/posix-functions/send.texi: Update mingw problems.
24727         * doc/posix-functions/sendto.texi: Update mingw problems.
24728         * doc/posix-functions/setsockopt.texi: Update mingw problems.
24729         * doc/posix-functions/socket.texi: Update mingw problems.
24730
24731 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
24732             Bruno Haible  <bruno@clisp.org>
24733
24734         * lib/sys_select.in.h: Include sys/time.h.
24735         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
24736         * modules/sys_select: Depend on sys_time.
24737         * tests/test-sys_select.c: Test that sys/select.h defines struct
24738         timeval fully.
24739
24740 2008-09-29  Bruno Haible  <bruno@clisp.org>
24741
24742         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
24743         * lib/sys_select.in.h: Likewise.
24744
24745 2008-09-29  Bruno Haible  <bruno@clisp.org>
24746
24747         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
24748
24749 2008-09-29  Bruno Haible  <bruno@clisp.org>
24750
24751         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
24752         Set LIBSOCKET instead of augmenting LIBS.
24753         * modules/sockets (Link): New section.
24754         * modules/sockets-tests (test_sockets_LDADD): New variable.
24755         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
24756         * modules/poll-tests (test_poll_LDADD): New variable.
24757         * NEWS: Document the change.
24758
24759 2008-09-29  Bruno Haible  <bruno@clisp.org>
24760
24761         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
24762         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
24763         ARPA_INET_H directly.
24764         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24765
24766 2008-09-28  Bruno Haible  <bruno@clisp.org>
24767
24768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
24769         from gl_HEADER_SYS_SOCKET.
24770         (gl_HEADER_SYS_SOCKET): Invoke it.
24771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24772
24773 2008-09-28  Bruno Haible  <bruno@clisp.org>
24774
24775         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
24776         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
24777         Needed on OSF/1 4.0.
24778
24779 2008-09-28  Bruno Haible  <bruno@clisp.org>
24780
24781         Override open more carefully.
24782         * lib/open.c (orig_open): New function.
24783         (rpl_open): Use orig_open instead of open.
24784         * lib/fcntl.in.h: Add special invocation convention.
24785         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
24786         (gl_FUNC_OPEN): Invoke it.
24787
24788         Override freopen more carefully.
24789         * lib/freopen.c (orig_freopen): New function.
24790         (rpl_freopen): Use orig_freopen instead of freopen.
24791         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
24792         (gl_FUNC_FREOPEN): Invoke it.
24793
24794         Override fopen more carefully.
24795         * lib/fopen.c (orig_fopen): New function.
24796         (rpl_fopen): Use orig_fopen instead of fopen.
24797         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
24798         (gl_FUNC_FOPEN): Invoke it.
24799         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
24800
24801 2008-09-28  Bruno Haible  <bruno@clisp.org>
24802
24803         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
24804         SIGPIPE.
24805
24806 2008-09-28  Bruno Haible  <bruno@clisp.org>
24807
24808         * tests/test-sigaction.c (handler, main): Disable the check whether
24809         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
24810         glibc systems with LinuxThreads.
24811
24812 2008-09-28  Bruno Haible  <bruno@clisp.org>
24813
24814         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
24815
24816         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
24817         with AIX xlc.
24818         * lib/fcntl.in.h (open): Likewise.
24819         Reported by Rainer Tammer <tammer@tammer.net>.
24820
24821 2008-09-28  Bruno Haible  <bruno@clisp.org>
24822
24823         * modules/posix_spawnp-tests: New file.
24824         * tests/test-posix_spawn.c: New file.
24825         * tests/test-posix_spawn.in.sh: New file.
24826
24827         New module 'posix_spawnp'.
24828         * modules/posix_spawnp: New file.
24829         * lib/spawnp.c: New file, from GNU libc with modifications.
24830         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
24831
24832         New module 'posix_spawn'.
24833         * modules/posix_spawn: New file.
24834         * lib/spawn.c: New file, from GNU libc with modifications.
24835         * doc/posix-functions/posix_spawn.texi: Mention the new module.
24836
24837         New module 'posix_spawnattr_destroy'.
24838         * modules/posix_spawnattr_destroy: New file.
24839         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
24840         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
24841         module.
24842
24843         New module 'posix_spawnattr_setsigmask'.
24844         * modules/posix_spawnattr_setsigmask: New file.
24845         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
24846         modifications.
24847         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
24848         new module.
24849
24850         New module 'posix_spawnattr_getsigmask'.
24851         * modules/posix_spawnattr_getsigmask: New file.
24852         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
24853         modifications.
24854         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
24855         new module.
24856
24857         New module 'posix_spawnattr_setsigdefault'.
24858         * modules/posix_spawnattr_setsigdefault: New file.
24859         * lib/spawnattr_setdefault.c: New file, from GNU libc with
24860         modifications.
24861         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
24862         new module.
24863
24864         New module 'posix_spawnattr_getsigdefault'.
24865         * modules/posix_spawnattr_getsigdefault: New file.
24866         * lib/spawnattr_getdefault.c: New file, from GNU libc with
24867         modifications.
24868         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
24869         new module.
24870
24871         New module 'posix_spawnattr_setschedpolicy'.
24872         * modules/posix_spawnattr_setschedpolicy: New file.
24873         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
24874         modifications.
24875         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
24876         new module.
24877
24878         New module 'posix_spawnattr_getschedpolicy'.
24879         * modules/posix_spawnattr_getschedpolicy: New file.
24880         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
24881         modifications.
24882         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
24883         new module.
24884
24885         New module 'posix_spawnattr_setschedparam'.
24886         * modules/posix_spawnattr_setschedparam: New file.
24887         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
24888         modifications.
24889         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
24890         new module.
24891
24892         New module 'posix_spawnattr_getschedparam'.
24893         * modules/posix_spawnattr_getschedparam: New file.
24894         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
24895         modifications.
24896         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
24897         new module.
24898
24899         New module 'posix_spawnattr_setpgroup'.
24900         * modules/posix_spawnattr_setpgroup: New file.
24901         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
24902         modifications.
24903         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
24904         module.
24905
24906         New module 'posix_spawnattr_getpgroup'.
24907         * modules/posix_spawnattr_getpgroup: New file.
24908         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
24909         modifications.
24910         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
24911         module.
24912
24913         New module 'posix_spawnattr_setflags'.
24914         * modules/posix_spawnattr_setflags: New file.
24915         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
24916         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
24917         module.
24918
24919         New module 'posix_spawnattr_getflags'.
24920         * modules/posix_spawnattr_getflags: New file.
24921         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
24922         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
24923         module.
24924
24925         New module 'posix_spawnattr_init'.
24926         * modules/posix_spawnattr_init: New file.
24927         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
24928         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
24929         module.
24930
24931         New module 'posix_spawn_file_actions_destroy'.
24932         * modules/posix_spawn_file_actions_destroy: New file.
24933         * lib/spawn_faction_destroy.c: New file, from GNU libc with
24934         modifications.
24935         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
24936         the new module.
24937
24938         New module 'posix_spawn_file_actions_addopen'.
24939         * modules/posix_spawn_file_actions_addopen: New file.
24940         * lib/spawn_faction_addopen.c: New file, from GNU libc with
24941         modifications.
24942         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
24943         the new module.
24944
24945         New module 'posix_spawn_file_actions_adddup2'.
24946         * modules/posix_spawn_file_actions_adddup2: New file.
24947         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
24948         modifications.
24949         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
24950         the new module.
24951
24952         New module 'posix_spawn_file_actions_addclose'.
24953         * modules/posix_spawn_file_actions_addclose: New file.
24954         * lib/spawn_faction_addclose.c: New file, from GNU libc with
24955         modifications.
24956         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
24957         the new module.
24958
24959         New module 'posix_spawn_file_actions_init'.
24960         * modules/posix_spawn_file_actions_init: New file.
24961         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
24962         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
24963         new module.
24964
24965         New module 'posix_spawn-internal'.
24966         * modules/posix_spawn-internal: New file.
24967         * lib/spawn_int.h: New file, from GNU libc with modifications.
24968         * lib/spawni.c: New file, from GNU libc with modifications.
24969         * m4/posix_spawn.m4: New file.
24970
24971         New module 'spawn'.
24972         * modules/spawn: New file.
24973         * lib/spawn.in.h: New file, from GNU libc with modifications.
24974         * m4/spawn_h.m4: New file.
24975         * doc/posix-headers/spawn.texi: Mention the new module.
24976
24977 2008-09-28  Bruno Haible  <bruno@clisp.org>
24978
24979         * modules/sched-tests: New file.
24980         * tests/test-sched.c: New file.
24981
24982         New module 'sched'.
24983         * modules/sched: New file.
24984         * lib/sched.in.h: New file.
24985         * m4/sched_h.m4: New file.
24986         * doc/posix-headers/sched.texi: Mention the new module.
24987
24988 2008-09-27  Eric Blake  <ebb9@byu.net>
24989
24990         Fix previous patch, and tweak references to $0.
24991         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
24992         (func_version, func_gnulib_dir): Don't call this program
24993         gnulib-tool.
24994         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
24995         with using $0 in function.
24996         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
24997         (func_fatal_error): Reuse the name the user invoked us with.
24998
24999 2008-09-27  Bruno Haible  <bruno@clisp.org>
25000
25001         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25002         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25003         (gl_ICONV_H): Not here.
25004         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25005         instead of assigning ICONV_H directly.
25006
25007         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25009         WCHAR_H directly.
25010
25011 2008-09-27  Bruno Haible  <bruno@clisp.org>
25012
25013         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25014         * modules/arpa_inet (Depends-on): Add link-warning.
25015         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25016         * modules/unistd (Makefile.am): Likewise.
25017
25018 2008-09-26  Bruno Haible  <bruno@clisp.org>
25019
25020         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25021         variables.
25022         (func_version): Essentially copied from gnulib-tool.
25023         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25024         func_readlink): Copied from gnulib-tool.
25025
25026 2008-09-26  Bruno Haible  <bruno@clisp.org>
25027
25028         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25029         invoking git-version-gen.
25030
25031 2008-09-26  Bruno Haible  <bruno@clisp.org>
25032
25033         * posix-modules: Update to directory names changed on 2008-01-19.
25034         Remove commas in output before splitting into words. No more need to
25035         avoid 'ftruncate' since 2007-02-19.
25036
25037 2008-09-26  Bruno Haible  <bruno@clisp.org>
25038
25039         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25040
25041 2008-09-26  Bruno Haible  <bruno@clisp.org>
25042
25043         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25044         * modules/fwriteerror (Depends-on): Add errno.
25045
25046 2008-09-26  Bruno Haible  <bruno@clisp.org>
25047
25048         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25049         * tests/test-vc-list-files-cvs.sh: Likewise.
25050
25051 2008-09-26  Bruno Haible  <bruno@clisp.org>
25052
25053         * doc/posix-headers/sys_resource.texi: Reorder items.
25054
25055 2008-09-26  Jim Meyering  <meyering@redhat.com>
25056
25057         fts: tweak inode comparison function
25058         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25059         inode numbers, as documented.
25060
25061         fts: sort dirent entries on inode number before traversing
25062         This avoids a quadratic, seek-related performance penalty when
25063         operating on a directory containing many entries (measurable at 10k;
25064         3.5 hours at 2 million entries with a cold cache) on certain types
25065         of file systems, including ext3 and ext4, but not tmpfs.
25066         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25067         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25068         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25069         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25070         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25071         (fts_build): Set the stat.st_ino member from D_INO.
25072         If it is likely to be useful, sort dirent entries on inode number.
25073
25074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25075         and the struct statfs.f_type member.
25076         * modules/fts (Depends-on): Add d-ino.
25077
25078 2008-09-26  Bruno Haible  <bruno@clisp.org>
25079
25080         * modules/sigpipe-die (Depends-on): Add sigpipe.
25081
25082         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25083         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25084         and GNULIB_STDIO_H_SIGPIPE are set.
25085         * lib/stdio-write.c: New file.
25086         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25087         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25088         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25089         REPLACE_STDIO_WRITE_FUNCS.
25090         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25091         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25092         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25093         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25094         * modules/stdio (Files): Add lib/stdio-write.c.
25095         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25096         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25097         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25098         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25099         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25100         REPLACE_FPRINTF_POSIX.
25101         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25102         REPLACE_PRINTF_POSIX.
25103         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25104         REPLACE_VFPRINTF_POSIX.
25105         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25106         REPLACE_VPRINTF_POSIX.
25107         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25108         SIGPIPE issue.
25109         * doc/posix-functions/fputc.texi: Likewise.
25110         * doc/posix-functions/fputs.texi: Likewise.
25111         * doc/posix-functions/fwrite.texi: Likewise.
25112         * doc/posix-functions/printf.texi: Likewise.
25113         * doc/posix-functions/putc.texi: Likewise.
25114         * doc/posix-functions/putchar.texi: Likewise.
25115         * doc/posix-functions/puts.texi: Likewise.
25116         * doc/posix-functions/vfprintf.texi: Likewise.
25117         * doc/posix-functions/vprintf.texi: Likewise.
25118
25119         * modules/safe-write (Depends-on): Add write.
25120
25121         * modules/sigpipe-tests: New file.
25122         * tests/test-sigpipe.c: New file.
25123         * tests/test-sigpipe.sh: New file.
25124
25125         * modules/write: New file.
25126         * lib/unistd.in.h: Include <sys/types.h>.
25127         (write): New declaration.
25128         * lib/write.c: New file.
25129         * m4/write.m4: New file.
25130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25131         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25132         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25133         GNULIB_WRITE, REPLACE_WRITE.
25134         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25135         and the SIGPIPE issue.
25136
25137         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25138         (raise): New declaration.
25139         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25140         (ext_signal): New function.
25141         (rpl_raise): New function.
25142         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25143         GNULIB_SIGNAL_H_SIGPIPE.
25144         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25145         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25146
25147         * modules/sigpipe: New file.
25148         * m4/sigpipe.m4: New file.
25149
25150 2008-09-25  Derek Price  <derek@ximbiot.com>
25151             Bruno Haible  <bruno@clisp.org>
25152
25153         * gnulib-tool (func_import): Report all license incompatibilities, not
25154         just the first one.
25155
25156 2008-09-25  Bruno Haible  <bruno@clisp.org>
25157
25158         * gnulib-tool (func_import): When computing the edits, consider not
25159         only the Makefile.ams that exist but also those that will be generated.
25160
25161 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25162
25163         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25164         fixes gnulib-tool --test warning about duplicate dependency.
25165
25166 2008-09-25  Bruno Haible  <bruno@clisp.org>
25167
25168         * gnulib-tool: Don't ask the user to perform edits in the generated
25169         Makefile.ams.
25170         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25171         apply to the Makefile.am being generated.
25172         (func_emit_tests_Makefile_am): Execute edits that apply to the
25173         Makefile.am being generated.
25174         (func_import): Setup list of Makefile.am edits before emitting the
25175         Makefile.ams, not at the end.
25176         (func_create_testdir): Update.
25177         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25178
25179 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25180
25181         * gnulib-tool (func_import): Store the --tests-base option in the
25182         comment in gnulib-cache.m4.
25183
25184 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25185
25186         * NEWS: Document increased portability that sys_select now provides.
25187
25188         * lib/sys_select.in.h: Install select wrapper.
25189         * lib/sys_socket.in.h: Use more descriptive name when there is no
25190         select wrapper.
25191         * lib/winsock-select.c: New.
25192         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25193         Require gl_HEADER_SYS_SOCKET.
25194         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25195         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25196         * tests/test-sys_select.c: Add functional tests.
25197
25198 2008-09-24  Eric Blake  <ebb9@byu.net>
25199
25200         open, fopen: close fd leak in last patch
25201         * lib/open.c (rpl_open): Close fd before returning error.
25202         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25203         * doc/posix-functions/open.texi (open): Document that Irix also
25204         has the bug.
25205         * doc/posix-functions/fopen.texi (fopen): Likewise.
25206         Reported by Paolo Bonzini.
25207
25208 2008-09-24  Bruno Haible  <bruno@clisp.org>
25209
25210         Ensure that a filename ending in a slash cannot be used to access a
25211         non-directory.
25212         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25213         to check whether it's really a directory.
25214         * lib/fopen.c: Include fcntl.h, unistd.h.
25215         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25216         and fdopen().
25217         * modules/fopen (Depends-on): Add unistd.
25218         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25219         * tests/test-fopen.c (main): Likewise.
25220         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25221         * doc/posix-functions/fopen.texi: Likewise.
25222         Reported by Eric Blake.
25223
25224 2008-09-23  Eric Blake  <ebb9@byu.net>
25225
25226         c-stack: avoid compiler optimizations when provoking overflow
25227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25228         recursion harder to optimize, to ensure a stack overflow occurs.
25229         * tests/test-c-stack.c (recurse): Likewise.
25230         Borrowed from libsigsegv.
25231
25232         c-stack: work around Irix sigaltstack bug
25233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25234         whether sigaltstack uses wrong end of stack_t (copied in part from
25235         libsigsegv).
25236         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25237         Irix bug, without requiring an over-allocation.
25238         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25239         bug.
25240
25241         fopen: document mingw bug on directories
25242         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25243         not allowing a stream visiting a directory, even though reading
25244         from such a stream is not portable.
25245
25246 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25247
25248         * lib/poll.c: Rewrite.
25249         * modules/poll: Depend on alloca.
25250
25251 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25252
25253         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25254         instead define prototypes for a full set of wrappers.  Ensure
25255         that Cygwin does not use the compatibility code, which is only
25256         for MinGW.
25257         * lib/winsock.c: New.
25258         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25259         * modules/sys_socket: Add lib/winsock.c.
25260
25261         * modules/poll-tests: Add errno and perror.
25262         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25263
25264 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25265
25266         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25267
25268 2008-09-23  Bruno Haible  <bruno@clisp.org>
25269
25270         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25271         * doc/glibc-functions/*: Likewise.
25272
25273 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25274
25275         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25276         success.
25277
25278 2008-09-22  Eric Blake  <ebb9@byu.net>
25279             Bruno Haible  <bruno@clisp.org>
25280
25281         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25282         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25283         supply %A but mishandle pseudo-NaN.
25284         Reported by Simon Josefsson.
25285
25286 2008-09-21  Bruno Haible  <bruno@clisp.org>
25287
25288         * tests/test-lock.c (main): Tweak skip message.
25289         * tests/test-tls.c (main): Likewise.
25290
25291 2008-09-21  Bruno Haible  <bruno@clisp.org>
25292
25293         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25294         whether 'struct sigaction' has sa_sigaction here...
25295         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25296         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25297
25298 2008-09-21  Bruno Haible  <bruno@clisp.org>
25299
25300         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25301         section.
25302         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25303         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25304         the new section.
25305         (Support for obsolete systems lacking POSIX:2001): New section.
25306         (String handling <string.h>): Move strdup to the new section.
25307         Suggested by Simon Josefsson and Paolo Bonzini.
25308
25309 2008-09-21  Bruno Haible  <bruno@clisp.org>
25310
25311         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25312         exponents in %e and %g results on 'long double'. Needed for mingw's
25313         improved *printf functions.
25314         * tests/test-vasprintf-posix.c (test_function): Likewise.
25315         * tests/test-snprintf-posix.h (test_function): Likewise.
25316         * tests/test-sprintf-posix.h (test_function): Likewise.
25317         Reported by Eric Blake.
25318
25319 2008-09-21  Bruno Haible  <bruno@clisp.org>
25320
25321         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25322         * tests/test-sprintf-posix.h (test_function): Likewise.
25323
25324 2008-09-21  Bruno Haible  <bruno@clisp.org>
25325
25326         * modules/getpass (Depends-on): Add strdup-posix.
25327
25328         New module 'strdup-posix'.
25329         * modules/strdup-posix: New file.
25330         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25331         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25333         REPLACE_STRDUP.
25334         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25335         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25337         strdup-posix.
25338
25339         * modules/strdup (Depends-on): Remove malloc-posix.
25340
25341 2008-09-20  Bruno Haible  <bruno@clisp.org>
25342
25343         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25344         Wildenhues.
25345
25346 2008-09-20  Bruno Haible  <bruno@clisp.org>
25347
25348         Ensure that wint_t gets defined on IRIX 5.3.
25349         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25350         * lib/wctype.in.h (wint_t): Likewise.
25351         (__wctype_wint_t): Remove type.
25352         (isw*): Use wint_t instead of __wctype_wint_t.
25353         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25354         * modules/wchar (Files): Add m4/wint_t.m4.
25355         (Makefile.am): Substitute HAVE_WINT_T.
25356         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25357         * tests/test-wctype.c: Check that wint_t is defined.
25358         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25359         * doc/posix-headers/wctype.texi: Likewise.
25360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25361
25362 2008-09-18  Bruno Haible  <bruno@clisp.org>
25363
25364         * gnulib-tool (func_exit): Update comment.
25365
25366 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25367
25368         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25369         assumes strdup exists and does not depend on strdup to return
25370         ENOMEM on out of memory conditions.
25371
25372 2008-09-18  Bruno Haible  <bruno@clisp.org>
25373
25374         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
25375         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25376         digits for the exponent.
25377
25378 2008-09-18  Jim Meyering  <meyering@redhat.com>
25379             Bruno Haible  <bruno@clisp.org>
25380
25381         * lib/vasnprintf.c (decimal_point_char): Define also if
25382         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25383
25384 2008-09-16  Bruno Haible  <bruno@clisp.org>
25385         and Eric Blake  <ebb9@byu.net>
25386
25387         vasnprintf: support Irix 5.3
25388         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25389         that mishandle long double infinity.
25390         Reported by Tom G. Christensen.
25391
25392 2008-09-16  Bruno Haible  <bruno@clisp.org>
25393
25394         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25395         Solaris 9.
25396         * doc/glibc-functions/alphasort.texi: Likewise.
25397         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25398
25399 2008-09-16  Jim Meyering  <meyering@redhat.com>
25400
25401         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25402         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25403         a umask modification leak out of a subshell.  Otherwise, the
25404         opensolaris /bin/sh would be accepted and thus cause unwarranted
25405         failures in the coreutils test suite.
25406
25407 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25408
25409         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25410         to succeed.
25411
25412 2008-09-16  Jim Meyering  <meyering@redhat.com>
25413
25414         avoid spurious test failure when library is built without ACL support
25415         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25416         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25417         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25418         * tests/test-copy-acl.sh: Likewise.
25419
25420 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25421
25422         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25423         based on character occurrence counts.
25424
25425 2008-09-15  Eric Blake  <ebb9@byu.net>
25426
25427         tests: avoid some compiler warnings
25428         * tests/test-memchr.c (main): Pass NULL indirectly.
25429         * tests/test-closein.c (main): Avoid unused variable.
25430
25431 2008-09-15  Bruno Haible  <bruno@clisp.org>
25432
25433         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25434         are missing on OpenBSD 4.0 individually.
25435         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25436
25437 2008-09-15  Bruno Haible  <bruno@clisp.org>
25438
25439         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25440         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25441         * doc/posix-functions/perror.texi: Likewise.
25442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25443         is missing.
25444         Reported by Eric Blake.
25445
25446         * lib/errno.in.h: Use replacement values >= 2000.
25447         Reported by Eric Blake.
25448
25449 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25450
25451         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25452         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25453         limit.
25454         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25455         compareseq was aborted.
25456
25457 2008-09-14  Bruno Haible  <bruno@clisp.org>
25458
25459         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25460         yvec_edit_count.
25461         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25462         (fstrcmp_bounded): Simplify result computation accordingly.
25463
25464 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25465
25466         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25467         (fstrcmp): Define in terms of fstrcmp_bounded.
25468         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25469         lower_bound argument.
25470         Return quickly if the result is certainly < lower_bound.
25471         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25472
25473 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25474
25475         * lib/diffseq.h (EARLY_ABORT): New macro.
25476         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25477         evaluates to true.
25478
25479 2008-09-14  Bruno Haible  <bruno@clisp.org>
25480
25481         * modules/perror-tests: New file.
25482         * tests/test-perror.sh: New file.
25483         * tests/test-perror.c: New file.
25484
25485         New module 'perror'.
25486         * lib/stdio.in.h (perror): New declaration.
25487         * lib/perror.c: New file.
25488         * m4/perror.m4: New file.
25489         * modules/perror: New file.
25490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25491         * doc/posix-functions/perror.texi: Mention the perror module.
25492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25493         REPLACE_PERROR.
25494         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25495         REPLACE_PERROR.
25496
25497 2008-09-14  Bruno Haible  <bruno@clisp.org>
25498
25499         * modules/stdio (Makefile.am): Reorder to match the order in
25500         lib/stdio.in.h.
25501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25502
25503 2008-09-13  Bruno Haible  <bruno@clisp.org>
25504
25505         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25506
25507 2008-09-13  Bruno Haible  <bruno@clisp.org>
25508
25509         Extend strerror to cover the added errno values.
25510         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25511         (rpl_strerror): Provide error messages for the added errno values and
25512         for the WSA* values.
25513         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25514         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25515         strerror.
25516         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25517         * modules/strerror (Depends-on): Add errno.
25518         * doc/posix-functions/strerror.texi: Document the change.
25519         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25520         and EOVERFLOW.
25521
25522 2008-09-13  Bruno Haible  <bruno@clisp.org>
25523
25524         * modules/EOVERFLOW: Remove file.
25525         * m4/eoverflow.m4: Remove file.
25526         * modules/EOVERFLOW-tests: Remove file.
25527         * tests/test-EOVERFLOW.c: Remove file.
25528         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
25529         * modules/ftell (Depends-on): Likewise.
25530         * modules/getdelim (Depends-on): Likewise.
25531         * modules/getugroups (Depends-on): Likewise.
25532         * modules/poll (Depends-on): Likewise.
25533         * modules/snprintf (Depends-on): Likewise.
25534         * modules/sprintf-posix (Depends-on): Likewise.
25535         * modules/vasnprintf (Depends-on): Likewise.
25536         * modules/vasprintf (Depends-on): Likewise.
25537         * modules/vfprintf-posix (Depends-on): Likewise.
25538         * modules/vsnprintf (Depends-on): Likewise.
25539         * modules/vsprintf-posix (Depends-on): Likewise.
25540         * modules/xvasprintf (Depends-on): Likewise.
25541         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25542         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
25543         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
25544         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
25545         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25546         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
25547         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
25548         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
25549         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25550         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
25551         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
25552         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
25553         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25554         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
25555         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
25556         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
25557         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25558         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
25559         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
25560         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
25561         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25562         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
25563         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
25564         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
25565         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
25566         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25567         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
25568         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
25569         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
25570         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
25571         * MODULES.html.sh: Remove EOVERFLOW.
25572         * NEWS: Mention the change.
25573
25574 2008-09-13  Bruno Haible  <bruno@clisp.org>
25575
25576         * modules/errno-tests: New file.
25577         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
25578
25579         * lib/errno.in.h: New file.
25580         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
25581         * modules/errno: New file.
25582         * doc/posix-headers/errno.texi: Update documentation.
25583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
25584
25585 2008-09-13  Bruno Haible  <bruno@clisp.org>
25586
25587         * tests/test-poll.c: Use #if for native Windows, rather than testing
25588         __MSVCRT__.
25589
25590 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25591             Bruno Haible  <bruno@clisp.org>
25592
25593         * lib/glob.c: Don't include <pwd.h> on native Windows.
25594         (WINDOWS32): New macro.
25595         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
25596
25597 2008-09-13  Bruno Haible  <bruno@clisp.org>
25598
25599         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
25600         (ETIMEDOUT): Remove macro.
25601         (glthread_cond_timedwait_multithreaded): New declaration.
25602         (glthread_cond_timedwait): Use it.
25603         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
25604         (glthread_cond_timedwait_multithreaded): New function.
25605
25606 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25607
25608         * modules/poll-tests: Do not check for io.h.
25609         * tests/test-poll.c: Check for __MSVCRT__ instead.
25610
25611 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25612
25613         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
25614         * modules/poll-tests: Add inet_pton, stdbool, sockets.
25615         * tests/test-poll.c: Use them.  Use _pipe on Windows.
25616
25617 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
25618
25619         * modules/poll-tests: New.
25620         * tests/test-poll.c: New.
25621
25622 2008-09-12  Eric Blake  <ebb9@byu.net>
25623
25624         frexp: test for NetBSD failure on -0.0
25625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
25626         not all, bugs from NetBSD 3.0 have been fixed.
25627         * doc/posix-functions/frexp.texi (frexp): Document bug.
25628         Reported by Thomas Klausner.
25629
25630         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
25631         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
25632         literal -0.0.
25633         Reported by Jonathan C. Patschke <jp@centtech.com>.
25634
25635 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25636
25637         * lib/glthread/cond.h: Use dummy implementation also if
25638         USE_WIN32_THREADS.
25639
25640 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25641
25642         * modules/fnmatch-posix (License): Change to LGPLv2+.
25643         * modules/fnmatch-gnu (License): Likewise.
25644
25645 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25646
25647         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
25648
25649 2008-09-11  Jim Meyering  <meyering@redhat.com>
25650
25651         * users.txt: Add gtk-vnc.
25652
25653 2008-09-08  Simon Josefsson  <simon@josefsson.org>
25654
25655         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
25656         rotate amounts.
25657
25658         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
25659         required for 16-bit and 8-bit rotates.
25660         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
25661         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
25662         UINT8_MAX instead of hard-coded constants.
25663         Suggested by Paul Eggert.
25664
25665 2008-09-07  Bruno Haible  <bruno@clisp.org>
25666
25667         * tests/test-striconveh.c (main): Check behaviour when converting from
25668         UTF-7.
25669
25670         Make striconveh work better with stateful encodings.
25671         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
25672         that iconv does not increment the inptr when returning -1/EINVAL.
25673
25674 2008-09-07  Bruno Haible  <bruno@clisp.org>
25675
25676         * build-aux/config.rpath: Update according to libtool-2.2.6.
25677         * build-aux/config.libpath: Likewise.
25678
25679 2008-09-06  Bruno Haible  <bruno@clisp.org>
25680
25681         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
25682         * lib/freadptr.c (freadptr): Likewise.
25683         * lib/freadseek.c (freadptrinc): Likewise.
25684         Reported by Simon Josefsson.
25685
25686 2008-09-06  Bruno Haible  <bruno@clisp.org>
25687
25688         * modules/freadptr (License): Change to LGPLv2+.
25689         * modules/freadseek (License): Likewise.
25690         Suggested by Eric Blake.
25691
25692         * modules/memchr2 (License): Change to LGPLv2+.
25693         Approved by Eric Blake.
25694
25695 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25696             Bruno Haible  <bruno@clisp.org>
25697
25698         Make gnulib-tool work with native 'sed' on AIX.
25699         * gnulib-tool (sed_noop): New variable.
25700         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
25701         func_add_or_update, func_create_testdir): Use it to initialize sed
25702         script variables.
25703         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25704
25705 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
25706             Bruno Haible  <bruno@clisp.org>
25707
25708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
25709         also works after #include directives.
25710
25711 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
25712
25713         getdate.y: reject an out-of-range timezone value
25714         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
25715         the range [-24...+24].  When specified with only one or two digits,
25716         * tests/test-getdate.c: Tests for the fix.
25717         * doc/getdate.texi: Document this change.
25718
25719 2008-09-03  Bruno Haible  <bruno@clisp.org>
25720
25721         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
25722
25723 2008-09-02  Simon Josefsson  <simon@josefsson.org>
25724
25725         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
25726         <bruce.korb@gmail.com> with ideas from Ben Pfaff
25727         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
25728         Blake <ebb9@byu.net>.
25729
25730         * tests/test-bitrotate.c: Add more test vectors.
25731
25732 2008-09-02  Eric Blake  <ebb9@byu.net>
25733
25734         vasnprintf-posix: handle large precision via %.*d
25735         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
25736         when handling it ourselves.
25737         * tests/test-vasnprintf-posix.c (test_function): Add test.
25738         * tests/test-snprintf-posix.h (test_function): Likewise.
25739         * tests/test-sprintf-posix.h (test_function): Likewise.
25740         * tests/test-vasprintf-posix.c (test_function): Likewise.
25741         Reported by Alain Guibert.
25742
25743 2008-09-01  Eric Blake  <ebb9@byu.net>
25744
25745         c-stack: make configure-time check more robust
25746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
25747         successful sigaction call.
25748         Reported by Tom G. Christensen.
25749
25750 2008-09-01  Bruno Haible  <bruno@clisp.org>
25751
25752         New module 'findprog-lgpl'.
25753         * modules/findprog-lgpl: New file.
25754         * lib/findprog-lgpl.c: New file.
25755         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
25756         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
25757         to decide whether to use strdup or xstrdup, concatenated_filename or
25758         xconcatenated_filename.
25759
25760 2008-09-01  Bruno Haible  <bruno@clisp.org>
25761
25762         Split module 'concat-filename' into 'concat-filename' (LGPL) and
25763         'xconcat-filename' (GPL).
25764         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
25765         (License): Change to LGPLv2+.
25766         * modules/xconcat-filename: New file.
25767         * lib/concat-filename.h (concatenated_filename): Change specification.
25768         (xconcatenated_filename): New declaration.
25769         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
25770         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
25771         memory situations.
25772         * lib/xconcat-filename.c: New file.
25773         * NEWS: Mention the change.
25774         * lib/findprog.c: Include concat-filename.h, not filename.h.
25775         (find_in_path): Use xconcatenated_filename instead of
25776         concatenated_filename.
25777         * lib/javacomp.c: Include concat-filename.h, not filename.h.
25778         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25779         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25780         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25781         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
25782         instead of concatenated_filename.
25783         * lib/javaexec.c: Include concat-filename.h, not filename.h.
25784         (execute_java_class): Use xconcatenated_filename instead of
25785         concatenated_filename.
25786         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
25787         * modules/javacomp (Depends-on): Likewise.
25788         * modules/javaexec (Depends-on): Likewise.
25789
25790 2008-09-01  Bruno Haible  <bruno@clisp.org>
25791
25792         Split module 'filename' into 'filename' and 'concat-filename'.
25793         * modules/filename: Keep only lib/filename.h.
25794         (License): Change to LGPLv2+.
25795         * modules/concat-filename: New file, extracted from modules/filename.
25796         * lib/filename.h (concatenated_filename): Remove declaration.
25797         * lib/concat-filename.h: New file, extracted from lib/filename.h.
25798         * lib/concat-filename.c: Include concat-filename.h.
25799         * NEWS: Mention the change.
25800
25801 2008-09-01  Simon Josefsson  <simon@josefsson.org>
25802
25803         * lib/bitrotate.h (rotl8, rotr8): Add.
25804
25805         * modules/bitrotate (configure.ac): Need
25806         AC_REQUIRE([AC_C_INLINE]).
25807         (Description): Mention stdint.h.  Reported by Bruno Haible
25808         <bruno@clisp.org>.
25809
25810         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
25811         Paolo Bonzini <bonzini@gnu.org>.
25812
25813 2008-08-31  Bruno Haible  <bruno@clisp.org>
25814
25815         Assume Solaris specific bi-arch conventions on Solaris systems.
25816         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
25817         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
25818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
25819         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
25820         like acl_libdirstem.
25821         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
25822         acl_libdirstem.
25823         * NEWS: Mention the change.
25824         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
25825
25826 2008-08-31  Jim Meyering  <meyering@redhat.com>
25827
25828         * lib/strftime.h: Add comments describing the two added arguments.
25829
25830         remove duplicate #include directives
25831         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
25832         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
25833
25834 2008-08-31  Bruno Haible  <bruno@clisp.org>
25835
25836         New module 'sigpipe-die'.
25837         * modules/sigpipe-die: New file.
25838         * lib/sigpipe-die.h: New file.
25839         * lib/sigpipe-die.c: New file.
25840         * MODULES.html.sh (Signal handling): Add sigpipe-die.
25841
25842 2008-08-31  Bruno Haible  <bruno@clisp.org>
25843
25844         Don't override previously installed signal handlers.
25845         * lib/fatal-signal.c (saved_sigactions): New variable.
25846         (uninstall_handlers): Reset the signal to the saved handler, not
25847         to SIG_DFL (except when ignored).
25848         (install_handlers): Save the previous handlers.
25849
25850 2008-08-30  Bruno Haible  <bruno@clisp.org>
25851
25852         * gnulib-tool (func_reset_sigpipe): New function.
25853         (func_get_automake_snippet, func_modules_transitive_closure,
25854         func_import): Invoke it before a join command that reads from stdin,
25855         to avoid "echo: write error: Broken pipe" error messages on stderr.
25856         Reported by Sam Steingold <sds@gnu.org>.
25857
25858 2008-08-30  Bruno Haible  <bruno@clisp.org>
25859
25860         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
25861         Code copied from m4/open.m4.
25862         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
25863         access and the filename ends in a slash. Code copied from lib/open.c.
25864         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
25865         * tests/test-fopen.c (main): Check against bug with trailing slash.
25866
25867 2008-08-29  Bruno Haible  <bruno@clisp.org>
25868
25869         Avoid some "gcc -pedantic" warnings.
25870         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
25871         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
25872         * lib/dirent.in.h: Likewise.
25873         * lib/fcntl.in.h: Likewise.
25874         * lib/float.in.h: Likewise.
25875         * lib/iconv.in.h: Likewise.
25876         * lib/inttypes.in.h: Likewise.
25877         * lib/locale.in.h: Likewise.
25878         * lib/math.in.h: Likewise.
25879         * lib/netinet_in.in.h: Likewise.
25880         * lib/search.in.h: Likewise.
25881         * lib/signal.in.h: Likewise.
25882         * lib/stdarg.in.h: Likewise.
25883         * lib/stdint.in.h: Likewise.
25884         * lib/stdio.in.h: Likewise.
25885         * lib/stdlib.in.h: Likewise.
25886         * lib/string.in.h: Likewise.
25887         * lib/strings.in.h: Likewise.
25888         * lib/sys_select.in.h: Likewise.
25889         * lib/sys_socket.in.h: Likewise.
25890         * lib/sys_stat.in.h: Likewise.
25891         * lib/sys_time.in.h: Likewise.
25892         * lib/sysexits.in.h: Likewise.
25893         * lib/time.in.h: Likewise.
25894         * lib/unistd.in.h: Likewise.
25895         * lib/wchar.in.h: Likewise.
25896         * lib/wctype.in.h: Likewise.
25897         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
25898         * modules/fchdir (Makefile.am): Likewise.
25899         * modules/fcntl (Makefile.am): Likewise.
25900         * modules/float (Makefile.am): Likewise.
25901         * modules/iconv_open (Makefile.am): Likewise.
25902         * modules/inttypes (Makefile.am): Likewise.
25903         * modules/locale (Makefile.am): Likewise.
25904         * modules/math (Makefile.am): Likewise.
25905         * modules/netinet_in (Makefile.am): Likewise.
25906         * modules/search (Makefile.am): Likewise.
25907         * modules/signal (Makefile.am): Likewise.
25908         * modules/stdarg (Makefile.am): Likewise.
25909         * modules/stdint (Makefile.am): Likewise.
25910         * modules/stdio (Makefile.am): Likewise.
25911         * modules/stdlib (Makefile.am): Likewise.
25912         * modules/string (Makefile.am): Likewise.
25913         * modules/strings (Makefile.am): Likewise.
25914         * modules/sys_select (Makefile.am): Likewise.
25915         * modules/sys_socket (Makefile.am): Likewise.
25916         * modules/sys_stat (Makefile.am): Likewise.
25917         * modules/sys_time (Makefile.am): Likewise.
25918         * modules/sysexits (Makefile.am): Likewise.
25919         * modules/time (Makefile.am): Likewise.
25920         * modules/unistd (Makefile.am): Likewise.
25921         * modules/wchar (Makefile.am): Likewise.
25922         * modules/wctype (Makefile.am): Likewise.
25923         Reported by Reuben Thomas <rrt@sc3d.org>.
25924
25925 2008-08-29  Bruno Haible  <bruno@clisp.org>
25926
25927         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
25928         any more.
25929
25930 2008-08-29  Simon Josefsson  <simon@josefsson.org>
25931
25932         * MODULES.html.sh (Misc): Add bitrotate.
25933
25934         * modules/bitrotate: New file.
25935
25936         * lib/bitrotate.h: New file.
25937
25938         * modules/bitrotate-tests: New file.
25939
25940         * tests/test-bitrotate.c: New file.
25941
25942         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
25943         on the bitrotate module.
25944
25945         * lib/arctwo.c: Use new bitrotate module.
25946
25947 2008-08-29  Jim Meyering  <meyering@redhat.com>
25948
25949         bootstrap: merge changes from coreutils
25950         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
25951         of copied files.  Remove a kludge, now that this is fixed.
25952         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
25953         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
25954         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
25955
25956 2008-08-29  Bruno Haible  <bruno@clisp.org>
25957
25958         * MODULES.html.sh: Remove --cvs-urls option.
25959
25960 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
25961
25962         maint.mk: adjust to file name change
25963         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
25964
25965 2008-08-28  Jim Meyering  <meyering@redhat.com>
25966
25967         * modules/getndelim2 (License): Relicense to LGPLv2+.
25968         Approved by Richard Stallman for the version of 1995, and by
25969         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
25970
25971 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
25972
25973         * lib/getdelim.c (flockfile, funlockfile): Make all of them
25974         dummy if one is not available.  Do not touch them if
25975         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
25976         (getc_maybe_unlocked): New.
25977         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
25978
25979 2008-08-26  Eric Blake  <ebb9@byu.net>
25980
25981         doc/INSTALL: resync from autoconf
25982         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
25983         (INSTALL_PRELUDE): Delete; this is done more efficiently by
25984         moving...
25985         * install.texi [!autoconf]: ...here.  Resync from autoconf.
25986         * INSTALL: Regenerate.
25987         * INSTALL.ISO: New file.
25988         * INSTALL.UTF-8: Likewise.
25989
25990 2008-08-26  Jim Meyering  <meyering@redhat.com>
25991
25992         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
25993         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
25994         these definitions conditional, so that they may be overridden, too.
25995
25996 2008-08-26  Bruno Haible  <bruno@clisp.org>
25997
25998         Generate INSTALL file variants with prettier quotes.
25999         * doc/Makefile (INSTALL_PRELUDE): New macro.
26000         (INSTALL): Use it.
26001         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26002
26003 2008-08-26  Bruno Haible  <bruno@clisp.org>
26004
26005         Run makeinfo in an English locale.
26006         * doc/Makefile (MAKEINFO): New variable.
26007
26008 2008-08-26  Bruno Haible  <bruno@clisp.org>
26009
26010         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26011         Suggested by Eric Blake.
26012
26013 2008-08-25  Bruno Haible  <bruno@clisp.org>
26014
26015         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26016
26017 2008-08-25  Eric Blake  <ebb9@byu.net>
26018
26019         c-stack: test that stack overflow can be caught
26020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26021         that platform allows handling stack overflow; at least OS/2 EMX
26022         has sigaltstack, but crashes before transferring control to
26023         handler on stack overflow.
26024         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26025         check for HAVE_STACK_OVERFLOW_HANDLING.
26026         Reported by Elbert Pol.
26027
26028 2008-08-25  Bruno Haible  <bruno@clisp.org>
26029
26030         * doc/posix-functions/strftime.texi: Fix description of strftime
26031         module.
26032
26033 2008-08-24  Bruno Haible  <bruno@clisp.org>
26034
26035         * tests/uniwidth/test-uc_width2.c: New file.
26036         * tests/uniwidth/test-uc_width2.sh: New file.
26037         * modules/uniwidth/width-tests (Files): Add the new files.
26038         (TESTS): Add uniwidth/test-uc_width2.sh.
26039         (TESTS_ENVIRONMENT): New variable.
26040         (check_PROGRAMS): Add test-uc_width2.
26041         (test_uc_width2_SOURCES): New variable.
26042
26043         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26044         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26045         not 0x00AB.
26046         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26047
26048 2008-08-22  Eric Blake  <ebb9@byu.net>
26049
26050         test-lock, test-tls: mention why a test is skipped
26051         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26052         skipped.
26053         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26054
26055         count-one-bits: relax license
26056         * modules/count-one-bits (License): Relicense to LGPLv2+.
26057         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26058
26059 2008-08-22  Andreas Schwab  <schwab@suse.de>
26060
26061         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26062         Remove spurious space in assignment.
26063
26064 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26065
26066         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26067         Paul Eggert <eggert@CS.UCLA.EDU>.
26068
26069 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26070
26071         * modules/gettext: Add m4/threadlib.m4.
26072
26073 2008-08-19  Eric Blake  <ebb9@byu.net>
26074
26075         test-c-stack: fix compilation failure on FreeBSD 5.0
26076         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26077         headers before <sys/resource.h>.
26078         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26079         the bug.
26080         Reported by Nelson H. F. Beebe.
26081
26082         strverscmp: migrate from "strverscmp.h" to <string.h>
26083         * modules/string (Makefile.am): Add new hooks.
26084         * modules/strverscmp (Files): Remove strverscmp.h.
26085         (Depends-on): Add string.
26086         (configure.ac): Add indicator.
26087         (Include): Mention new header.
26088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26089         defaults.
26090         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26091         results.
26092         * lib/strverscmp.h: Delete.
26093         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26094         * tests/test-strverscmp.c (includes): Adjust client.
26095         * lib/check-version.c (includes): Likewise.
26096         * NEWS: Document the change.
26097
26098         strverscmp: add unit test
26099         * modules/strverscmp-tests: New file.
26100         * tests/test-strverscmp.c: Likewise.
26101
26102 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26103
26104         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26105         regarding Windows crypto stuff, from Mono.
26106
26107 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26108
26109         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26110         if present, for intel RND.  Return error on failures.
26111
26112 2008-08-18  Ben Pfaff  <blp@gnu.org>
26113
26114         gitlog-to-changelog: give better diagnostic for failed pipe-open
26115         * build-aux/gitlog-to-changelog: Improve error message: suggest
26116         that the version of Git may be too old.
26117
26118 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26119
26120         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26121         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26122
26123 2008-08-18  Bruno Haible  <bruno@clisp.org>
26124
26125         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26126         pthread_in_use().
26127
26128 2008-08-18  Bruno Haible  <bruno@clisp.org>
26129
26130         * lib/glthread/threadlib.c: Include <pthread.h>.
26131
26132 2008-08-18  Bruno Haible  <bruno@clisp.org>
26133
26134         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26135         glthread_recursive_lock_* macros.
26136         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26137         Fix syntax error.
26138
26139 2008-08-18  Bruno Haible  <bruno@clisp.org>
26140
26141         * lib/glthread/thread.c: Avoid forcing a context switch right after
26142         thread creation.
26143
26144 2008-08-17  Bruno Haible  <bruno@clisp.org>
26145
26146         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26147         * lib/glthread/thread.h: Provide Win32 specific implementation.
26148         * modules/thread (Files): Add lib/glthread/thread.c.
26149         (Depends-on): Add lock.
26150         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26151
26152 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26153
26154         New module 'yield'.
26155         * modules/yield: New file.
26156         * lib/glthread/yield.h: New file.
26157         * m4/yield.m4: New file.
26158         * MODULES.html.sh (Multithreading): Add yield.
26159
26160 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26161
26162         New module 'thread'.
26163         * modules/thread: New file.
26164         * lib/glthread/thread.h: New file.
26165         * m4/thread.m4: New file.
26166         * MODULES.html.sh (Multithreading): Add thread.
26167
26168 2008-08-17  Bruno Haible  <bruno@clisp.org>
26169
26170         * lib/glthread/lock.h: Include <stdlib.h> always.
26171         * lib/glthread/tls.h: Likewise.
26172         * lib/glthread/cond.h: Likewise.
26173
26174 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26175
26176         New module 'cond'.
26177         * modules/cond: New file.
26178         * lib/glthread/cond.h: New file.
26179         * lib/glthread/cond.c: New file.
26180         * m4/cond.m4: New file.
26181         * MODULES.html.sh (Multithreading): Add cond.
26182
26183 2008-08-16  Eric Blake  <ebb9@byu.net>
26184
26185         c-stack: fix regression on Irix 5.3 from 2008-06-21
26186         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26187         sa_sigaction...
26188         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26189         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26190         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26191         * modules/signal (Makefile.am): Use the value.
26192         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26193         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26194         * doc/posix-headers/signal.texi (signal.h): Document this
26195         portability issue.
26196         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26197         Reported by Tom G. Christensen.
26198
26199 2008-08-17  Bruno Haible  <bruno@clisp.org>
26200
26201         New module 'threadlib'.
26202         * modules/threadlib: New file.
26203         * lib/glthread/threadlib.c: New file, extracted from
26204         lib/glthread/lock.c.
26205         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26206         functions.
26207         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26208         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26209         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26210         macros.
26211         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26212         (gl_DISABLE_THREADS): Remove macro.
26213         * modules/lock (Files): Remove build-aux/config.rpath.
26214         (Depends-on): Remove havelib. Add threadlib.
26215         (configure.ac-early): Remove section.
26216         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26217         * modules/tls (Depends-on): Remove lock. Add threadlib.
26218         (Link): New section, copied from threadlib.
26219         * MODULES.html.sh (Multithreading): Add threadlib.
26220
26221 2008-08-14  Bruno Haible  <bruno@clisp.org>
26222
26223         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26224         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26225         glthread_rwlock_unlock, glthread_rwlock_destroy,
26226         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26227         glthread_recursive_lock_destroy): Define as macros always.
26228         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26229         glthread_lock_lock.
26230         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26231         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26232         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26233         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26234         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26235         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26236         (glthread_recursive_lock_lock_func): Renamed from
26237         glthread_recursive_lock_lock.
26238         (glthread_recursive_lock_unlock_func): Renamed from
26239         glthread_recursive_lock_unlock.
26240         (glthread_recursive_lock_destroy_func): Renamed from
26241         glthread_recursive_lock_destroy.
26242
26243 2008-08-14  Bruno Haible  <bruno@clisp.org>
26244
26245         * lib/glthread/lock.h: Renamed from lib/lock.h.
26246         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26247         * lib/glthread/tls.h: Renamed from lib/tls.h.
26248         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26249         * lib/fstrcmp.c: Update includes.
26250         * lib/strsignal.c: Update includes.
26251         * modules/lock (Files, Makefile.am): Update.
26252         (Include): Change to "glthread/lock.h".
26253         * modules/tls (Files, Makefile.am): Update.
26254         (Include): Change to "glthread/tls.h".
26255         * tests/test-lock.c: Update includes.
26256         * tests/test-tls.c: Update includes.
26257         * NEWS: Mention the renamed header files.
26258
26259 2008-08-11  Jim Meyering  <meyering@redhat.com>
26260
26261         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26262
26263 2008-08-11  Eric Blake  <ebb9@byu.net>
26264
26265         test-c-stack: avoid C99-ism
26266         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26267         before statement.
26268         Reported by Alain Guibert.
26269
26270 2008-08-10  Jim Meyering  <meyering@redhat.com>
26271
26272         ensure that return value of uinttostr et al are not ignored
26273         * lib/inttostr.h (__GNUC_PREREQ): Define.
26274         (__attribute_warn_unused_result__): Define.
26275         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26276
26277 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26278
26279         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26280         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26281
26282 2008-08-07  Jim Meyering  <meyering@redhat.com>
26283
26284         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26285
26286         * modules/mkstemp (License): Relicense under LGPLv2+.
26287         * modules/tempname (License): Likewise.
26288
26289 2008-08-06  Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/poll.c (poll): Further micro-optimization.
26292
26293 2008-08-06  Jim Meyering  <meyering@redhat.com>
26294
26295         inet_pton.c: use locale-independent tolower
26296         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26297         (inet_pton6): Use c_tolower rather than tolower.
26298         * modules/inet_pton (Depends-on): Add c-ctype.
26299
26300 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26301
26302         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26303         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26304
26305 2008-08-06  Jim Meyering  <meyering@redhat.com>
26306
26307         * modules/inet_pton (License): Relicense under LGPLv2+.
26308
26309 2008-08-03  Bruno Haible  <bruno@clisp.org>
26310
26311         Additional non-aborting API for lock and tls.
26312         * lib/lock.h: Include <errno.h>.
26313         (glthread_lock_init): New macro/function.
26314         (gl_lock_init): Define as wrapper around glthread_lock_init.
26315         (glthread_lock_lock): New macro/function.
26316         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26317         (glthread_lock_unlock): New macro/function.
26318         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26319         (glthread_lock_destroy): New macro/function.
26320         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26321         (glthread_rwlock_init): New macro/function.
26322         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26323         (glthread_rwlock_rdlock): New macro/function.
26324         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26325         (glthread_rwlock_wrlock): New macro/function.
26326         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26327         (glthread_rwlock_unlock): New macro/function.
26328         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26329         (glthread_rwlock_destroy): New macro/function.
26330         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26331         (glthread_recursive_lock_init): New macro/function.
26332         (gl_recursive_lock_init): Define as wrapper around
26333         glthread_recursive_lock_init.
26334         (glthread_recursive_lock_lock): New macro/function.
26335         (gl_recursive_lock_lock): Define as wrapper around
26336         glthread_recursive_lock_lock.
26337         (glthread_recursive_lock_unlock): New macro/function.
26338         (gl_recursive_lock_unlock): Define as wrapper around
26339         glthread_recursive_lock_unlock.
26340         (glthread_recursive_lock_destroy): New macro/function.
26341         (gl_recursive_lock_destroy): Define as wrapper around
26342         glthread_recursive_lock_destroy.
26343         (glthread_once): New macro/function.
26344         (gl_once): Define as wrapper around glthread_once.
26345         Update function declarations.
26346         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26347         glthread_rwlock_init. Return error code.
26348         (glthread_rwlock_rdlock_multithreaded): Renamed from
26349         glthread_rwlock_rdlock. Return error code.
26350         (glthread_rwlock_wrlock_multithreaded): Renamed from
26351         glthread_rwlock_wrlock. Return error code.
26352         (glthread_rwlock_unlock_multithreaded): Renamed from
26353         glthread_rwlock_unlock. Return error code.
26354         (glthread_rwlock_destroy_multithreaded): Renamed from
26355         glthread_rwlock_destroy. Return error code.
26356         (glthread_recursive_lock_init_multithreaded): Renamed from
26357         glthread_recursive_lock_init. Return error code.
26358         (glthread_recursive_lock_lock_multithreaded): Renamed from
26359         glthread_recursive_lock_lock. Return error code.
26360         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26361         glthread_recursive_lock_unlock. Return error code.
26362         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26363         glthread_recursive_lock_destroy. Return error code.
26364         (glthread_once_call): Make static.
26365         (glthread_once_multithreaded): Renamed from glthread_once.
26366         * lib/tls.h: Include <errno.h>.
26367         (glthread_tls_key_init): New macro/function.
26368         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26369         (glthread_tls_set): New macro/function.
26370         (gl_tls_set): Define as wrapper around glthread_tls_set.
26371         (glthread_tls_key_destroy): New macro/function.
26372         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26373         Update function declarations.
26374         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26375         glthread_tls_get.
26376         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26377
26378 2008-08-04  Eric Blake  <ebb9@byu.net>
26379
26380         gnumakefile: use space, not TAB, outside of targets
26381         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26382
26383 2008-08-02  Jim Meyering  <meyering@redhat.com>
26384
26385         getdate.y: avoid locale-dependent date parsing failure
26386         In Turkish locales, getdate would fail to recognize keywords
26387         containing a lowercase "i".  The solution is not to rely on
26388         locale-sensitive case-conversion.
26389         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26390         (lookup_word): Use c_toupper in place of toupper.
26391         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26392         Reported by Vefa Bicakci <bicave@superonline.com> in
26393         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26394         * modules/getdate (Depends-on): Add c-ctype.
26395
26396 2008-08-02  Bruno Haible  <bruno@clisp.org>
26397
26398         * gnulib-tool (func_import): When updating or creating a .gitignore
26399         file, prepend each added line with a slash, and ignore leading slashes
26400         from the existing lines.
26401         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26402
26403 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26404
26405         Portability fix for GNU make 3.79.1.
26406         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26407         versions do not understand.
26408
26409 2008-08-01  Bruno Haible  <bruno@clisp.org>
26410
26411         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26412         * tests/test-isnanf.h (zero): New variable.
26413         (main): Avoid literal -0.0f.
26414         * tests/test-isnand.h (zero): New variable.
26415         (main): Avoid literal -0.0.
26416         * tests/test-isnanl.h (zero): New variable.
26417         (main): Avoid literal -0.0L.
26418         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26419         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26420         -0.0, -0.0L.
26421         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26422         (test_signbitd): Avoid literal -0.0.
26423         (test_signbitl): Avoid literal -0.0L.
26424         * tests/test-ceilf1.c (zero): New variable.
26425         (main): Avoid literal -0.0f.
26426         * tests/test-ceill.c (zero): New variable.
26427         (main): Avoid literal -0.0L.
26428         * tests/test-floorf1.c (zero): New variable.
26429         (main): Avoid literal -0.0f.
26430         * tests/test-floorl.c (zero): New variable.
26431         (main): Avoid literal -0.0L.
26432         * tests/test-roundf1.c (zero): New variable.
26433         (main): Avoid literal -0.0f.
26434         * tests/test-round1.c (zero): New variable.
26435         (main): Avoid literal -0.0.
26436         * tests/test-roundl.c (zero): New variable.
26437         (main): Avoid literal -0.0L.
26438         * tests/test-truncf1.c (zero): New variable.
26439         (main): Avoid literal -0.0f.
26440         * tests/test-trunc1.c (zero): New variable.
26441         (main): Avoid literal -0.0.
26442         * tests/test-truncl.c (zero): New variable.
26443         (main): Avoid literal -0.0L.
26444         * tests/test-frexp.c (zero): New variable.
26445         (main): Avoid literal -0.0.
26446         * tests/test-frexpl.c (zero): New variable.
26447         (main): Avoid literal -0.0L.
26448         * tests/test-ldexpl.c (zero): New variable.
26449         (main): Avoid literal -0.0L.
26450         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26451         (zerod, zerol): New variables.
26452         (test_function): Avoid literals -0.0, -0.0L.
26453         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26454         (zerod, zerol): New variables.
26455         (test_function): Avoid literals -0.0, -0.0L.
26456         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26457         (zerod, zerol): New variables.
26458         (test_function): Avoid literals -0.0, -0.0L.
26459         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26460         (zerod, zerol): New variables.
26461         (test_function): Avoid literals -0.0, -0.0L.
26462         * tests/test-strtod.c (zero): New variable.
26463         (main): Avoid literal -0.0.
26464         Reported by Jonathan C. Patschke <jp@centtech.com>.
26465
26466 2008-07-31  Jim Meyering  <meyering@redhat.com>
26467
26468         sha256.h: correct definition of SHA224_DIGEST_SIZE
26469         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26470         Reported by Paulie Pena IV <paulie4@gmail.com>.
26471         Define as 224 / 8, rather than as a literal.
26472         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26473         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26474         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26475
26476 2008-07-31  Bruno Haible  <bruno@clisp.org>
26477
26478         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26479         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26480         Reported by Jonathan Patschke <jp@centtech.com>.
26481
26482 2008-07-31  Bruno Haible  <bruno@clisp.org>
26483
26484         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26485         Reported by Paolo Bonzini <bonzini@gnu.org>.
26486
26487 2008-07-30  Eric Blake  <ebb9@byu.net>
26488
26489         test-strtod: allow compilation without -lm
26490         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26491         Reported by Dennis Clarke <blastwave@gmail.com>.
26492
26493 2008-07-28  Jim Meyering  <meyering@redhat.com>
26494
26495         bootstrap: work also when there are no .po files in po/
26496         * build-aux/bootstrap (update_po_files): Complete the change
26497         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26498
26499 2008-07-27  Jim Meyering  <meyering@redhat.com>
26500
26501         * users.txt: Add zile.
26502
26503 2008-07-26  Ben Pfaff  <blp@gnu.org>
26504
26505         Add missing dependencies on new m4/exponent[fdl].m4 files.
26506         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26507         * modules/isnand-nolibm: Add m4/exponentd.m4.
26508         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26509         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26510         m4/isnan[fdl].m4, because the macros actually used moved.
26511         Reported by Jim Meyering.
26512
26513 2008-07-14  Ben Pfaff  <blp@gnu.org>
26514
26515         Add isinf module.
26516         * lib/isinf.c: New file.
26517         * lib/math.in.h: Define isinf macro if we have decided to replace
26518         it.
26519         * m4/isinf.m4: New file.
26520         * m4/math_h.m4: Initialize and substitute variables for isinf
26521         module.
26522         * modules/isinf: New file.
26523         * modules/isinf-tests: New file.
26524         * modules/math: Add substitutions for new module.
26525         * tests/test-isinf.c: New file.
26526         * doc/posix-functions/isinf.texi: Mention new module.
26527         * MODULES.html.sh: Mention new module.
26528
26529 2008-07-14  Ben Pfaff  <blp@gnu.org>
26530
26531         Factor out some macros for use by additional modules.
26532         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
26533         exponentf.m4.
26534         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
26535         exponentd.m4.
26536         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
26537         file exponentl.m4.
26538         * m4/exponentf.m4: New file.
26539         * m4/exponentd.m4: New file.
26540         * m4/exponentl.m4: New file.
26541         * modules/isnanf: Use new file m4/exponentf.m4.
26542         * modules/isnand: Use new file m4/exponentd.m4.
26543         * modules/isnanl: Use new file m4/exponentl.m4.
26544
26545 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
26546
26547         mktime.c: normalize tp->tm_isdst value to -1/0/1.
26548         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
26549         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
26550         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
26551
26552         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
26553         readlink on platforms without PATH_MAX.
26554
26555 2008-07-21  Eric Blake  <ebb9@byu.net>
26556
26557         Warn, not fail, on stale version.
26558         * top/GNUmakefile (_curr-ver): Tone down previous patch.
26559
26560         Don't allow installation with stale devel version number.
26561         * top/GNUmakefile (_is-install-target): New macro.
26562         (_curr-ver): Forbid installation with stale version number.
26563
26564 2008-07-20  Bruno Haible  <bruno@clisp.org>
26565
26566         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
26567         TESTS_ENVIRONMENT.
26568         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
26569
26570 2008-07-20  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/c-stack.h (c_stack_action): Add documentation.
26573         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
26574
26575 2008-07-20  Bruno Haible  <bruno@clisp.org>
26576
26577         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
26578         * modules/readlink (License): Likewise.
26579
26580 2008-07-17  Eric Blake  <ebb9@byu.net>
26581
26582         * modules/c-stack (Link): Fix typo.
26583
26584         Make c-stack use libsigsegv, when available.
26585         * modules/c-stack (Depends-on): Add libsigsegv.
26586         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
26587         needed.
26588         * lib/c-stack.c (SIGSTKSZ): Define fallback.
26589         (segv_handler, overflow_handler, c_stack_action)
26590         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
26591         implementation when libsigsegv is available, but only when using
26592         the library is necessary.
26593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
26594         comment, explaining why XSI check fails on Linux.
26595         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
26596         * tests/test-c-stack2.sh: Tweak skip message.
26597         * NEWS: Document new link-time requirements.
26598
26599 2008-07-16  Eric Blake  <ebb9@byu.net>
26600
26601         c-stack: Expose false positives when not using libsigsegv.
26602         * modules/c-stack-tests (Files): Expand test.
26603         * tests/test-c-stack.c (main): Add means to conditionally trigger
26604         non-overflow SIGSEGV.
26605         * tests/test-c-stack2.sh: New file.
26606
26607 2008-07-14  Bruno Haible  <bruno@clisp.org>
26608
26609         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
26610         Reported by Eric Blake.
26611
26612 2008-07-14  Sam Steingold  <sds@gnu.org>
26613             Bruno Haible  <bruno@clisp.org>
26614
26615         New module libsigsegv.
26616         * modules/libsigsegv: New file.
26617         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
26618         modifications.
26619         * MODULES.html.sh (Signal handling): New section.
26620
26621 2008-07-14  Bruno Haible  <bruno@clisp.org>
26622
26623         * modules/unictype/ctype-* (Description): Add the word "function".
26624         Improves the resulting doc in MODULES.html.
26625
26626 2008-07-12  Ben Pfaff  <blp@gnu.org>
26627
26628         Add longlong module.
26629         * modules/longlong: New file.
26630
26631 2008-07-12  Bruno Haible  <bruno@clisp.org>
26632
26633         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
26634         to empty.
26635
26636 2008-07-10  Ben Pfaff  <blp@gnu.org>
26637
26638         Add isnan module.
26639         * doc/posix-functions/isnan.texi: Mention new module.
26640         * lib/math.in.h: Define isnan macro if we have decided to replace
26641         it.
26642         * m4/isnan.m4: New file.
26643         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
26644         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
26645         also.
26646         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
26647         redundancy.
26648         * m4/math_h.m4: Initialize and substitute variables for isnan
26649         module.
26650         * modules/isnan: New file.
26651         * modules/isnan-tests: New file.
26652         * modules/math: Add substitutions for new module.
26653         * tests/test-isnan.c: New file.
26654         * MODULES.html.sh: Mention new module.
26655
26656 2008-07-10  Ben Pfaff  <blp@gnu.org>
26657
26658         Add isnanf module.
26659         * lib/isnanf.m4: New file.
26660         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
26661         (gl_HAVE_ISNANF_IN_LIBM): New macro.
26662         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
26663         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
26664         * modules/isnanf: New file.
26665         * modules/isnanf-tests: New file.
26666         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
26667         files.
26668         * tests/test-isnanf-nolibm.c: factored most of its contents into
26669         new file tests/test-isnanf.h.
26670         * tests/test-isnanf.h: New file.
26671         * tests/test-isnanf.c: New file.
26672         * MODULES.html.sh: Mention new module.
26673         * doc/glibc-functions/isnanf.texi: Mention new module.
26674
26675 2008-07-10  Ben Pfaff  <blp@gnu.org>
26676
26677         Add isnand module.
26678         * lib/isnand.h: New file.
26679         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
26680         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
26681         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
26682         functionality also.
26683         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
26684         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
26685         (gl_HAVE_ISNAND_IN_LIBM): New macro.
26686         * modules/isnand: New file.
26687         * modules/isnand-tests: New file.
26688         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
26689         files.
26690         * tests/test-isnand-nolibm.c: factored most of its contents into
26691         new file tests/test-isnand.h.
26692         * tests/test-isnand.h: New file.
26693         * tests/test-isnand.c: New file.
26694         * MODULES.html.sh: Mention new module.
26695
26696 2008-07-10  Ben Pfaff  <blp@gnu.org>
26697
26698         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
26699         * lib/isnand.h: Rename lib/isnand-nolibm.h.
26700         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
26701         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
26702         * modules/isnanf-nolibm: Update references to renamed files.
26703         * modules/isnand-nolibm: Likewise.
26704         * modules/isnanf-nolibm-tests: Likewise.
26705         * modules/isnand-nolibm-tests: Likewise.
26706         * lib/frexp.c: Likewise.
26707         * lib/isfinite.c: Likewise.
26708         * lib/signbitd.c: Likewise.
26709         * lib/signbitf.c: Likewise.
26710         * lib/vasnprintf.c: Likewise.
26711         * tests/test-ceilf1.c: Likewise.
26712         * tests/test-ceilf2.c: Likewise.
26713         * tests/test-floorf1.c: Likewise.
26714         * tests/test-floorf2.c: Likewise.
26715         * tests/test-frexp.c: Likewise.
26716         * tests/test-round1.c: Likewise.
26717         * tests/test-round2.c: Likewise.
26718         * tests/test-roundf1.c: Likewise.
26719         * tests/test-strtod.c: Likewise.
26720         * tests/test-trunc1.c: Likewise.
26721         * tests/test-trunc2.c: Likewise.
26722         * tests/test-truncf1.c: Likewise.
26723         * tests/test-truncf2.c: Likewise.
26724         * NEWS: Mention the renamed header files.
26725
26726 2008-07-11  Jim Meyering  <meyering@redhat.com>
26727
26728         vc-list-files: make the last-resort awk code more portable
26729         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
26730         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
26731         does not support it.
26732
26733 2008-07-10  Eric Blake  <ebb9@byu.net>
26734
26735         Work with tar's bootstrap.
26736         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
26737         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
26738         an m4 comment.
26739
26740 2008-07-09  Jim Meyering  <meyering@redhat.com>
26741
26742         posix-shell.m4: fix typo that made this test malfunction
26743         * m4/posix-shell.m4: Remove capitalization in variable name.
26744
26745 2008-07-08  Bruno Haible  <bruno@clisp.org>
26746
26747         * m4/onceonly.m4: Update comments.
26748         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26749
26750 2008-07-04  Jim Meyering  <meyering@redhat.com>
26751
26752         * users.txt: Add vc-dwim.
26753         (bison, coreutils): Use the gitweb URL.
26754
26755 2008-07-03  Jim Meyering  <meyering@redhat.com>
26756
26757         * users.txt: Add libffcall.  From Sam Steingold.
26758
26759 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
26760
26761         getdate.y: do not ignore TZ with relative day, month or year offset
26762         * lib/getdate.y (get_date): Move the tz-handling block to follow the
26763         relative-date-handling, since otherwise, the latter would clobber the
26764         sole output (an updated Start value) of the tz-handling block.
26765         * tests/test-getdate.c: Tests for the fix
26766
26767 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26768
26769         Recognize 'foo_LIBRARIES += libgnu.a'.
26770         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
26771         makefile snippet has already specified an installation location,
26772         also using '+='.
26773
26774 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
26775
26776         getdate.y: factor out common actions
26777         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
26778         Use them in place of open-coded actions.
26779
26780 2008-07-01  Simon Josefsson  <simon@josefsson.org>
26781
26782         Add self-test for getdate module.
26783         * modules/getdate-tests: New file.
26784         * tests/test-getdate.c: New file.
26785
26786 2008-06-29  Bruno Haible  <bruno@clisp.org>
26787
26788         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
26789         .gitignore.
26790         Reported by Sylvain Beucler <beuc@beuc.net>.
26791
26792 2008-06-29  Bruno Haible  <bruno@clisp.org>
26793
26794         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
26795         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
26796
26797 2008-06-29  Bruno Haible  <bruno@clisp.org>
26798
26799         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
26800         EXTRA_DIST.
26801         Reported by Sylvain Beucler <beuc@beuc.net>.
26802
26803 2008-06-26  Jim Meyering  <meyering@redhat.com>
26804
26805         make several modules depend on the "open" module
26806         This provides slightly increased consistency when opening-for-write
26807         the name of a non-directory spelled with a trailing slash.
26808         * modules/chdir-safer: Likewise.
26809         * modules/chown: Likewise.
26810         * modules/clean-temp: Likewise.
26811         * modules/copy-file: Likewise.
26812         * modules/fchdir: Likewise.
26813         * modules/fcntl-safer: Likewise.
26814         * modules/pipe: Likewise.
26815         * modules/utime: Likewise.
26816         Prompted by Eric Blake and Bruno Haible.
26817
26818 2008-06-24  Andreas Schwab  <schwab@suse.de>
26819
26820         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
26821         literals can be used as initializers for global variables.
26822
26823 2008-06-23  Eric Blake  <ebb9@byu.net>
26824
26825         Make gnulib-cache.m4 easier to diff.
26826         * gnulib-tool (func_import): Allow newlines when reading cached
26827         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
26828
26829 2008-06-23  Bruno Haible  <bruno@clisp.org>
26830
26831         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
26832         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
26833         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
26834         m4/signalblocking.m4.
26835         (gl_PREREQ_SIGACTION): Don't invoke it.
26836         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
26837         gl_PREREQ_SIG_HANDLER_H.
26838         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26839         Don't check for sigaction here.
26840
26841 2008-06-23  Bruno Haible  <bruno@clisp.org>
26842
26843         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
26844         (install_handlers): Don't set the SA_RESETHAND flag.
26845
26846 2008-06-23  Bruno Haible  <bruno@clisp.org>
26847
26848         * m4/sigaction.m4: Comment fixes.
26849         * lib/signal.in.h: Likewise.
26850
26851 2008-06-23  Eric Blake  <ebb9@byu.net>
26852
26853         Fix typo.
26854         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
26855
26856         Avoid SA_ namespace.
26857         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
26858         Reported by Ralf Wildenhues.
26859
26860         Avoid test failure due to SA_RESTORER.
26861         * tests/test-sigaction.c (SA_MASK): New macro.
26862         (main): Avoid failing due to extension flags being set.
26863         Reported by Jim Meyering.
26864
26865         Revert use of sig-handler.h in sigprocmask.c.
26866         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
26867         it requires the existence of struct sigaction.
26868         * lib/sigprocmask.c (handler_t): Restore typedef.
26869         (rpl_signal, old_handlers): Use local type.
26870
26871 2008-06-22  Bruno Haible  <bruno@clisp.org>
26872
26873         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
26874         conditionally.
26875         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26876
26877 2008-06-22  Bruno Haible  <bruno@clisp.org>
26878
26879         * doc/posix-functions/siginterrupt.texi: Move note.
26880
26881         * lib/signal.in.h (SA_RESTART): New macro.
26882         * lib/sigaction.c: Update comment.
26883
26884         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
26885
26886         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
26887         (gl_PREREQ_SIGPROCMASK): Invoke it.
26888         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
26889
26890         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
26891
26892         * lib/sigprocmask.c: Update a comment.
26893
26894 2008-06-21  Eric Blake  <ebb9@byu.net>
26895
26896         Use sigaction module rather than signal().
26897         * modules/c-stack (Depends-on): Add sigaction.
26898         * modules/fatal-signal (Depends-on): Likewise.
26899         * modules/nanosleep (Depends-on): Likewise.
26900         * modules/sigprocmask (Files): Add sig-handler.h.
26901         * modules/sigaction (Files): Likewise.
26902         * lib/sig-handler.h (get_handler): New file, suggested by Paul
26903         Eggert.
26904         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
26905         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
26906         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26907         (init_fatal_signals): Likewise.
26908         * lib/nanosleep.c (rpl_nanosleep): Likewise.
26909         (siginterrupt): Delete fallback.
26910         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
26911         instead.
26912         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
26913         siginterrupt.
26914
26915         New module sigaction, for mingw.
26916         * modules/sigaction: New module...
26917         * modules/sigaction-tests: ...and its test.
26918         * m4/sigaction.m4: New file.
26919         * lib/sigaction.c: Likewise.
26920         * tests/test-sigaction.c: Likewise.
26921         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
26922         * modules/signal (Makefile.am): Likewise.
26923         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
26924         needed.
26925         * doc/posix-headers/signal.texi (signal.h): Mention provided
26926         types.
26927         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
26928         that sigaction is preferable.
26929         * doc/posix-functions/sigaction.texi (sigaction): Mention new
26930         module.
26931         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26932         sigaction.
26933
26934         Improve robustness of sigprocmask by overriding signal.
26935         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
26936         is in use.
26937         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
26938         (SIGKILL, SIGSTOP): Provide fallbacks.
26939         (rpl_signal): Implement.
26940         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
26941         signal can be called inside handlers.
26942
26943         Fix nanosleep module on mingw.
26944         * modules/nanosleep (Depends-on): Add sys_select.
26945         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
26946
26947         Fix licensing of sigprocmask.
26948         * modules/raise (License): Relicense as LGPL.
26949
26950 2008-06-21  Bruno Haible  <bruno@clisp.org>
26951
26952         * lib/propername.c (proper_name_utf8): Don't use the transliterated
26953         result if it contains question marks.
26954         Reported by Michael Geng <linux@michaelgeng.de>.
26955
26956 2008-06-19  Bruno Haible  <bruno@clisp.org>
26957
26958         Fix CVS-ism.
26959         * doc/gnulib.texi: Include updated-stamp.texi.
26960         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
26961         (updated-stamp.texi): New rule.
26962         (gnulib.info): Depend on it.
26963         * doc/.gitignore: Add updated-stamp.texi.
26964         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
26965
26966 2008-06-19  Bruno Haible  <bruno@clisp.org>
26967
26968         * doc/Makefile (gnulib.info): Update and simplify dependencies.
26969         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26970
26971 2008-06-19  Eric Blake  <ebb9@byu.net>
26972
26973         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
26974         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
26975         Reported by Stepan Kasal.
26976
26977 2008-06-18  Bruno Haible  <bruno@clisp.org>
26978
26979         * lib/fatal-signal.c (init_fatal_signals): Add comment.
26980         Reported by Eric Blake.
26981
26982 2008-06-18  Eric Blake  <ebb9@byu.net>
26983
26984         Work around cygwin 1.5.25 strsignal bug.
26985         * tests/test-strsignal.c: Allow for const char *.
26986         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
26987
26988 2008-06-18  Simon Josefsson  <simon@josefsson.org>
26989
26990         * users.txt: Update URL to article and add author/date
26991         information.
26992
26993 2008-06-17  Bruno Haible  <bruno@clisp.org>
26994
26995         New macro gl_DISABLE_THREADS.
26996         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
26997         if the user did not pass --enable-threads or --disable-threads option.
26998         (gl_DISABLE_THREADS): New macro.
26999         Reported by Eric Blake <ebb9@byu.net>.
27000
27001 2008-06-17  Bruno Haible  <bruno@clisp.org>
27002
27003         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27004         when the macro ignores it.
27005         Based on a patch by Eric Blake <ebb9@byu.net>.
27006
27007 2008-06-17  Bruno Haible  <bruno@clisp.org>
27008
27009         * modules/tls (License): Change to LGPLv2+.
27010         Reported by Eric Blake.
27011
27012 2008-06-17  Eric Blake  <ebb9@byu.net>
27013
27014         Simplify c-stack prerequisites.
27015         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27016         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27017         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27018         check.
27019         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27020         <sys/resource.h>.
27021
27022         Move c-stack test into testsuite.
27023         * modules/c-stack-tests: New file.
27024         * lib/c-stack.c [DEBUG]: Move test program...
27025         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27026         fail test if sigaltstack is lacking.
27027         * tests/test-c-stack.sh: New driver file.
27028
27029 2008-06-16  Eric Blake  <ebb9@byu.net>
27030
27031         Use raise module consistently.
27032         * modules/fatal-signal (Depends-on): Add raise.
27033         * modules/sigprocmask (Depends-on): Likewise.
27034         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27035         * lib/sigprocmask.c (sigprocmask): Likewise.
27036         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27037         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27038
27039         Fix compliance bug in sigpending.
27040         * lib/sigprocmask.c (sigpending): Return pending array via
27041         parameter, not return value.
27042
27043 2008-06-14  Eric Blake  <ebb9@byu.net>
27044
27045         Improve obstack-printf test code.
27046         * tests/test-obstack-printf.c (test_function): Fix comment, and
27047         simplify usage of obstack_* in macros.  Add a test for coverage.
27048         Reported by Bruno Haible.
27049
27050 2008-06-14  Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27053         array size as a constant, not as a const variable.
27054         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27055         AC_USE_SYSTEM_EXTENSIONS.
27056         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27057         Test whether the obstack_printf function actually exists.
27058         * modules/obstack-printf (Depends-on): Add extensions.
27059         (Include): Remove obstack.h.
27060         * modules/obstack-printf-posix (Depends-on): Add extensions.
27061         (Include): Remove obstack.h.
27062
27063 2008-06-13  Eric Blake  <ebb9@byu.net>
27064
27065         Add obstack-printf and obstack-printf-posix modules.
27066         * modules/obstack-printf: New file.
27067         * modules/obstack-printf-posix: Likewise.
27068         * MODULES.html.sh (Misc): Mention them.
27069         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27070         Likewise.
27071         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27072         Likewise.
27073         * modules/stdio (Makefile.am): Accomodate new modules.
27074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27075         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27076         Declare.
27077         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27078         functions.
27079         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27080         (gl_REPLACE_OBSTACK_PRINTF): New macros
27081         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27082         * tests/test-obstack-printf.c: New file.
27083         * modules/obstack-printf-tests: Likewise.
27084         * modules/obstack-printf-posix-tests: Likewise.
27085
27086 2008-06-11  Bruno Haible  <bruno@clisp.org>
27087
27088         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27089         * lib/open.c: Include errno.h.
27090         (open): Fail when attempting to write to a file that has a trailing
27091         slash.
27092         * tests/test-open.c (main): Test against trailing slash bug.
27093         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27094
27095 2008-06-10  Bruno Haible  <bruno@clisp.org>
27096
27097         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27098         for $? to work inside the trap command, with various /bin/sh-s.
27099         * tests/test-vc-list-files-cvs.sh: Likewise.
27100
27101 2008-06-10  Bruno Haible  <bruno@clisp.org>
27102
27103         * lib/acl-internal.h: Don't include gettext.h here.
27104         * lib/set-mode-acl.c: Include gettext.h here.
27105         * lib/copy-acl.c: Likewise.
27106
27107 2008-06-10  Bruno Haible  <bruno@clisp.org>
27108
27109         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27110         * lib/wait-process.c (wait_subprocess): Likewise.
27111         * lib/execute.h (execute): Add termsigp argument.
27112         * lib/execute.c (execute): Likewise.
27113         * lib/csharpcomp.c (compile_csharp_using_pnet,
27114         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27115         * lib/csharpexec.c (execute_csharp_using_pnet,
27116         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27117         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27118         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27119         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27120         is_jikes_present): Update.
27121         * lib/javaexec.c (execute_java_class): Update.
27122         * lib/javaversion.c (execute_and_read_line): Update.
27123         * NEWS: Document the changes.
27124         Reported by Eric Blake.
27125
27126 2008-06-10  Eric Blake  <ebb9@byu.net>
27127
27128         Add missing include.
27129         * tests/test-strstr.c (includes): Add <signal.h>.
27130         * tests/test-strcasestr.c (includes): Likewise.
27131         * tests/test-memmem.c (includes): Likewise.
27132
27133 2008-06-10  Bruno Haible  <bruno@clisp.org>
27134
27135         * lib/wait-process.c (wait_subprocess): Add an assertion.
27136
27137 2008-06-10  Bruno Haible  <bruno@clisp.org>
27138
27139         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27140
27141 2008-06-10  Bruno Haible  <bruno@clisp.org>
27142
27143         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27144         using alarm().
27145         * tests/test-strcasestr.c (main): Likewise.
27146         * tests/test-strstr.c (main): Likewise.
27147
27148 2008-06-09  Bruno Haible  <bruno@clisp.org>
27149
27150         Work around the Solaris 10 ACE ACLs ABI change.
27151         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27152         declare if ACL_NO_TRIVIAL is present.
27153         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27154         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27155         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27156         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27157         define if ACL_NO_TRIVIAL is present.
27158         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27159         and use the current ABI.
27160         (file_has_acl): Use same #if condition as elsewhere.
27161         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27162         in use, and use the current ABI.
27163         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27164         Reported by Jim Meyering.
27165
27166 2008-06-09  Eric Blake  <ebb9@byu.net>
27167
27168         Work around environments that (stupidly) ignore SIGALRM.
27169         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27170         before using alarm().
27171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27172         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27173         Reported by Ian Beckwith <ianb@erislabs.net>.
27174
27175         Produce autobuild blurb earlier in log.
27176         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27177
27178 2008-06-09  Jim Meyering  <meyering@redhat.com>
27179         and Ondřej Vašík  <ovasik@redhat.com>
27180
27181         utimens.c: correct kernel bug work-around
27182         Ondřej Vašík found that the invalid return value of 280 indicates
27183         failure, not success, and the kernel bug we're trying to work
27184         around affects not just the utimensat call, but also the fallback
27185         futimens call.
27186         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27187         not success.
27188         [HAVE_FUTIMENS]: Use the same work-around, here.
27189
27190 2008-06-09  Jim Meyering  <meyering@redhat.com>
27191
27192         add more guards around definition of ACE_-related code
27193         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27194         ALLOW and ACE_OWNER are also defined.
27195
27196 2008-06-08  Bruno Haible  <bruno@clisp.org>
27197
27198         * lib/acl-internal.h: Add me as co-author.
27199         * lib/file-has-acl.c: Likewise.
27200         * lib/set-mode-acl.c: Likewise.
27201         * lib/copy-acl.c: Likewise.
27202
27203 2008-06-08  Bruno Haible  <bruno@clisp.org>
27204
27205         Add support for AIX ACLs.
27206         * lib/acl-internal.h (acl_nontrivial): New declaration.
27207         * lib/file-has-acl.c (acl_nontrivial): New function.
27208         (file_has_acl): Add implementation using AIX 4 ACL API.
27209         * lib/set-mode-acl.c (qset_acl): Likewise.
27210         * lib/copy-acl.c (qcopy_acl): Likewise.
27211
27212 2008-06-08  Bruno Haible  <bruno@clisp.org>
27213
27214         Add support for HP-UX ACLs.
27215         * lib/acl-internal.h (acl_nontrivial): New declaration.
27216         * lib/file-has-acl.c (acl_nontrivial): New function.
27217         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27218         * lib/set-mode-acl.c (qset_acl): Likewise.
27219         * lib/copy-acl.c (qcopy_acl): Likewise.
27220
27221 2008-06-08  Bruno Haible  <bruno@clisp.org>
27222
27223         Add support for Cygwin ACLs.
27224         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27225         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27226         the chmod_or_fchmod call.
27227         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27228
27229 2008-06-08  Bruno Haible  <bruno@clisp.org>
27230
27231         Fix bug with setuid modes in Solaris 10+ code.
27232         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27233         succeeded, when the mode contains some special bits.
27234
27235 2008-06-08  Bruno Haible  <bruno@clisp.org>
27236
27237         Add support for Solaris 7..10 ACLs.
27238         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27239         declarations.
27240         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27241         functions.
27242         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27243         * lib/set-mode-acl.c (qset_acl): Likewise.
27244         * lib/copy-acl.c (qcopy_acl): Likewise.
27245
27246 2008-06-08  Bruno Haible  <bruno@clisp.org>
27247
27248         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27249         declaration.
27250         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27251         (acl_access_nontrivial): Remove MacOS X case.
27252         (file_has_acl): Use acl_extended_nontrivial.
27253         * lib/copy-acl.c (qcopy_acl): Likewise.
27254
27255 2008-06-08  Bruno Haible  <bruno@clisp.org>
27256
27257         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27258
27259 2008-06-08  Jim Meyering  <meyering@redhat.com>
27260
27261         * modules/acl (Maintainer): Add Bruno Haible.
27262
27263 2008-06-07  Bruno Haible  <bruno@clisp.org>
27264
27265         Improve support for Tru64 ACLs.
27266         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27267         ACL on OSF/1.
27268
27269 2008-06-07  Bruno Haible  <bruno@clisp.org>
27270
27271         Add support for MacOS X ACLs.
27272         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27273         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27274         * lib/set-mode-acl.c (qset_acl): Likewise.
27275         * lib/copy-acl.c (qcopy_acl): Likewise.
27276
27277 2008-06-07  Bruno Haible  <bruno@clisp.org>
27278
27279         Fix memory leak introduced on 2008-05-22.
27280         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27281         use.
27282
27283 2008-06-07  Bruno Haible  <bruno@clisp.org>
27284
27285         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27286         to construct an empty ACL.
27287
27288 2008-06-07  Bruno Haible  <bruno@clisp.org>
27289
27290         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27291         precisely.
27292         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27293
27294 2008-06-07  Bruno Haible  <bruno@clisp.org>
27295
27296         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27297         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27298
27299 2008-06-07  Bruno Haible  <bruno@clisp.org>
27300
27301         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27302         regardless of POSIX.
27303         * doc/posix-functions/_longjmp.texi: Likewise.
27304         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27305         SystemV platform in this case.
27306
27307 2008-06-06  Eric Blake  <ebb9@byu.net>
27308
27309         Document abort() bugs.
27310         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27311
27312         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27313         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27314         sigsetjmp.
27315         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27316         siglongjmp, but only as a macro.
27317         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27318         is obsolete.
27319         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27320
27321         Tweak documentation to cover cygwin argz bugs.
27322         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27323         argz bug fix; no code change needed since no cygwin releases
27324         occurred between the last fix and the bug being tested.
27325         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27326         module and recently fixed cygwin bugs.
27327         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27328         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27329         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27330         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27331         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27332         Likewise.
27333         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27334         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27335         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27336         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27337         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27338         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27339         Likewise.
27340
27341         Avoid gcc warning on cygwin.
27342         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27343         !ACL_NO_TRIVIAL]: Avoid unused variable.
27344
27345 2008-06-05  Eric Blake  <ebb9@byu.net>
27346
27347         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27348         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27349         git-version-gen fails to come up with a version.
27350         Reported by Simon Josefsson.
27351
27352 2008-06-05  Jim Meyering  <meyering@redhat.com>
27353             Paul Eggert  <eggert@cs.ucla.edu>
27354
27355         utimens.c: work around a probable Linux kernel bug
27356         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27357         appears to be a kernel bug that causes utimensat to return 280
27358         instead of 0, indicating success.
27359
27360 2008-06-04  Bruno Haible  <bruno@clisp.org>
27361
27362         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27363         2008-06-01 commit.
27364
27365 2008-06-04  Bruno Haible  <bruno@clisp.org>
27366
27367         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27368         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27369         (file_has_acl): Use it. Save errno afterwards.
27370         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27371
27372 2008-06-03  Bruno Haible  <bruno@clisp.org>
27373
27374         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27375         draft code. Simplify #ifs.
27376         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27377         Put Solaris code after POSIX-draft code. Fix comments regarding
27378         Solaris 10, HP-UX. Mention Cygwin.
27379         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27380
27381 2008-06-03  Eric Blake  <ebb9@byu.net>
27382
27383         Provide fallback for older kernels.
27384         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27385         Provide runtime fallback if kernel lacks support.
27386         Reported by Mike Frysinger.
27387
27388 2008-06-02  Bruno Haible  <bruno@clisp.org>
27389
27390         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27391         it exists.
27392
27393 2008-06-02  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27396         * lib/copy-acl.c (qcopy_acl): Update comment.
27397
27398 2008-06-02  Bruno Haible  <bruno@clisp.org>
27399
27400         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27401         like ACL APIs.
27402
27403 2008-06-02  Bruno Haible  <bruno@clisp.org>
27404
27405         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27406         * tests/test-set-mode-acl.sh: Likewise.
27407         * tests/test-copy-acl.sh: Likewise.
27408         * tests/test-copy-file.sh: Likewise.
27409
27410 2008-06-02  Bruno Haible  <bruno@clisp.org>
27411
27412         * tests/test-file-has-acl.sh: Remove unused code.
27413
27414 2008-06-01  Bruno Haible  <bruno@clisp.org>
27415
27416         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27417         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27418         messages.
27419         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27420
27421 2008-06-01  Bruno Haible  <bruno@clisp.org>
27422
27423         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27424         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27425         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27426         APIs.
27427         * modules/acl-tests (configure.ac): Remove tests now contained in
27428         m4/acl.m4.
27429
27430 2008-06-02  Jim Meyering  <meyering@redhat.com>
27431
27432         announce-gen: use a better key-server host name
27433         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27434         it may be more consistently reliable.  Suggested by Werner Koch
27435         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27436
27437 2008-06-01  Bruno Haible  <bruno@clisp.org>
27438
27439         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27440         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27441
27442 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27443
27444         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27445
27446 2008-06-01  Bruno Haible  <bruno@clisp.org>
27447
27448         New ACL tests.
27449         * tests/test-file-has-acl.sh: New file.
27450         * tests/test-file-has-acl.c: New file.
27451         * tests/test-set-mode-acl.sh: New file.
27452         * tests/test-set-mode-acl.c: New file.
27453         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27454         * tests/test-copy-acl.c: New file.
27455         * modules/acl-tests: New file, based on modules/copy-file-tests.
27456         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27457         (Depends-on): Add acl-tests.
27458         (configure.ac): Remove checks.
27459         (Makefile.am): Don't create test-sameacls program here any more.
27460
27461 2008-06-01  Bruno Haible  <bruno@clisp.org>
27462
27463         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27464         * tests/test-sameacls.c: Include progname.h.
27465         (main): Invoke set_program_name. Portability fixes for MacOS X,
27466         Solaris, HP-UX.
27467
27468 2008-06-01  Bruno Haible  <bruno@clisp.org>
27469
27470         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27471         function.
27472         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27473
27474 2008-06-01  Bruno Haible  <bruno@clisp.org>
27475
27476         * modules/rpmatch (Depends-on): Add strdup.
27477
27478 2008-06-01  Bruno Haible  <bruno@clisp.org>
27479
27480         * lib/pipe.c: Include unistd-safer.h.
27481         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27482         * modules/pipe (Depends-on): Add unistd-safer.
27483
27484 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27485
27486         * modules/autobuild (configure.ac): Call AB_INIT.
27487
27488 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27489
27490         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27491         Suggested by Bruno Haible <bruno@clisp.org>.
27492
27493 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27494
27495         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27496         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27497         <bruno@clisp.org>.
27498
27499 2008-05-29  Eric Blake  <ebb9@byu.net>
27500
27501         Prefer new POSIX 200x interfaces over futimesat.
27502         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27503         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27504         when available.
27505         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27506
27507 2008-05-28  Bruno Haible  <bruno@clisp.org>
27508
27509         * modules/stpcpy (License): Change to LGPLv2+.
27510         Requested by David Lutterkort <dlutter@redhat.com>.
27511
27512 2008-05-27  Bruno Haible  <bruno@clisp.org>
27513
27514         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27515         current mingw.
27516         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27517
27518 2008-05-27  Bruno Haible  <bruno@clisp.org>
27519
27520         * modules/iconv_open (Link): New section, from module 'iconv'.
27521         * modules/striconv (Link): Likewise.
27522         * modules/striconveh (Link): Likewise.
27523         * modules/xstriconv (Link): Likewise.
27524         * modules/unicodeio (Link): Likewise.
27525         * modules/propername (Link): Likewise.
27526         Reported by Jim Meyering.
27527
27528 2008-05-26  Jim Meyering  <meyering@redhat.com>
27529
27530         sha256: do not artificially restrict buffer length to be < 2^32
27531         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
27532         uint32_t to size_t.
27533         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
27534         to match.
27535
27536         avoid unaligned access errors, e.g., on sparc
27537         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
27538         direct access through a possibly-unaligned uint64* pointer.
27539         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
27540         direct access through a possibly-unaligned uint32* pointer.
27541         Prompted by this patch from Tom "spot" Callaway:
27542         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
27543
27544         sha512.c: fix typo in comment
27545         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
27546
27547 2008-05-25  Bruno Haible  <bruno@clisp.org>
27548
27549         * lib/set-mode-acl.c: Renamed from lib/acl.c.
27550         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
27551         (Makefile.am): Update lib_SOURCES.
27552
27553 2008-05-25  Bruno Haible  <bruno@clisp.org>
27554
27555         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
27556
27557 2008-05-25  Jim Meyering  <meyering@redhat.com>
27558
27559         useless-if-before-free: freed expr may have white-space differences
27560         * build-aux/useless-if-before-free: Recognize cases in which the
27561         freed expression differs from the tested one in embedded white
27562         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
27563         $1 was used, so we can't make any regexp shy.  Improved tests now
27564         detect this.
27565
27566         useless-if-before-free: accept white space in the expression.
27567         * build-aux/useless-if-before-free: For now, any white space
27568         in the expression must be identical in the free argument.
27569
27570         useless-if-before-free: efficiency tweak
27571         * build-aux/useless-if-before-free: Make the expression-matching
27572         regexp "shy".
27573         Make the *outer* regexp shy, not the expr-matching one.
27574
27575         update code-in-comment to accept cast of free arg
27576         * build-aux/useless-if-before-free: Update regexp.
27577
27578 2008-05-25  Bruno Haible  <bruno@clisp.org>
27579
27580         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
27581         * modules/copy-file-tests (Files, Makefile.am): Update.
27582         * tests/test-copy-file.c (func_test_copy): Update.
27583
27584 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
27585
27586         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
27587
27588 2008-05-23  Bruno Haible  <bruno@clisp.org>
27589
27590         Improve support for ACLs on OSF/1.
27591         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
27592         Remove fallback for unknown flavors of ACLs.
27593
27594 2008-05-22  Bruno Haible  <bruno@clisp.org>
27595
27596         Add support for ACLs on OSF/1.
27597         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
27598         replacements.
27599         (acl_free_text): New macro fallback.
27600         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
27601         acl_free.
27602         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
27603         acl_free_text function. Require AC_C_INLINE.
27604
27605 2008-05-22  Bruno Haible  <bruno@clisp.org>
27606
27607         Make copy_acl work on MacOS X 10.5.
27608         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
27609         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
27610         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
27611         If MODE_INSIDE_ACL, don't assume that every system has the same text
27612         representation for ACLs as FreeBSD.
27613         * lib/copy-acl.c (copy_acl): Add support for platforms with
27614         !MODE_INSIDE_ACL.
27615         * lib/file-has-acl.c (file_has_acl): Likewise.
27616         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
27617         FreeBSD, MacOS X, or IRIX, respectively.
27618
27619 2008-05-22  Bruno Haible  <bruno@clisp.org>
27620
27621         * lib/acl.h: Don't include <sys/acl.h>.
27622         (GETACLCNT): Move fallback to lib/acl-internal.h.
27623         * lib/acl-internal.h: Include <sys/acl.h> here.
27624         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
27625
27626 2008-05-22  Bruno Haible  <bruno@clisp.org>
27627
27628         Split off copy_acl function to separate file.
27629         * lib/copy-acl.c: New file, extracted from lib/acl.c.
27630         * lib/acl.c (copy_acl): Moved function to separate file.
27631         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
27632         * modules/acl (Files): Add lib/copy-acl.c.
27633         (Makefiles.am): Augment lib_SOURCES.
27634
27635 2008-05-22  Bruno Haible  <bruno@clisp.org>
27636
27637         * modules/copy-file-tests: New file.
27638         * tests/test-copy-file.sh: New file.
27639         * tests/test-copy-file.c: New file.
27640         * tests/test-copy-file-sameacls.c: New file.
27641
27642 2008-05-22  Eric Blake  <ebb9@byu.net>
27643
27644         Avoid gcc warning.
27645         * tests/test-memcmp.c (main): Pass NULL indirectly.
27646
27647 2008-05-21  Bruno Haible  <bruno@clisp.org>
27648
27649         Add reference doc about ACLs.
27650         * doc/acl-resources.txt: New file.
27651         * doc/acl-cygwin.txt: New file.
27652
27653 2008-05-21  Bruno Haible  <bruno@clisp.org>
27654
27655         Avoid one more warning from gcc.
27656         * lib/vasnprintf.c (IF_LINT): Update comments.
27657         (VASNPRINTF): Use it also for the 'prefix' array initializer.
27658
27659 2008-05-21  Jim Meyering  <meyering@redhat.com>
27660
27661         avoid a warning from gcc
27662         * lib/vasnprintf.c (IF_LINT): Define.
27663         (scale10_round_decimal_long_double):
27664         Use it to avoid a "may be used uninitialized" warning.
27665         (scale10_round_decimal_double): Likewise.
27666
27667 2008-05-21  Simon Josefsson  <simon@josefsson.org>
27668
27669         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
27670         declared.
27671
27672 2008-05-20  Bruno Haible  <bruno@clisp.org>
27673
27674         * tests/test-memcmp.c (main): Test also the sign of the result. Test
27675         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
27676
27677 2008-05-20  Simon Josefsson  <simon@josefsson.org>
27678
27679         * modules/memcmp-tests: New file.
27680         * tests/test-memcmp.c: New file.
27681
27682 2008-05-19  Bruno Haible  <bruno@clisp.org>
27683
27684         * modules/propername (Notice, configure.ac): Put quoted "..." into
27685         --keyword option.
27686         * lib/propername.h: Update comments accordingly.
27687         Reported by Eric Blake.
27688
27689 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
27690
27691         * modules/getpass-gnu (Depends-on): Add fseeko.
27692
27693 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27694
27695         * modules/base64-tests: New file.
27696
27697 2008-05-19  Bo Borgerson <gigabo@gmail.com>
27698
27699         * lib/base64.c (base64_decode_ctx): If a decode context structure
27700         was passed in use it to ignore newlines.  If a context structure
27701         was _not_ passed in, continue to treat newlines as garbage (this
27702         is the historical behavior).  Formerly base64_decode.
27703         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27704         takes a decode context structure.
27705         * lib/base64.h (base64_decode): Macro for four-argument calls.
27706         (base64_decode_alloc): Likewise.
27707         * lib/base64.c (base64_decode_ctx): If a decode context structure
27708         was passed in use it to ignore newlines.  If a context structure
27709         was _not_ passed in, continue to treat newlines as garbage (this
27710         is the historical behavior).  Formerly base64_decode.
27711         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
27712         takes a decode context structure.
27713         * lib/base64.h (base64_decode): Macro for four-argument calls.
27714         (base64_decode_alloc): Likewise.
27715
27716 2008-05-19  Jim Meyering  <meyering@redhat.com>
27717
27718         avoid a warning from gcc
27719         * lib/trim.c (IF_LINT): Define.
27720         (trim2): Use it to avoid a "may be used uninitialized" warning.
27721
27722         Fix doc typo.
27723         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
27724
27725 2008-05-19  Bruno Haible  <bruno@clisp.org>
27726
27727         * doc/glibc-functions/getpass.texi: Document limits of other
27728         implementations.
27729
27730 2008-05-19  Simon Josefsson  <simon@josefsson.org>
27731             Bruno Haible <bruno@clisp.org>
27732
27733         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
27734
27735 2008-05-18  Bruno Haible  <bruno@clisp.org>
27736
27737         * modules/propername: New file, from GNU gettext.
27738         * lib/propername.h: New file, from GNU gettext.
27739         * lib/propername.c: New file, from GNU gettext.
27740         * MODULES.html.sh (Internationalization functions): Add propername.
27741
27742 2008-05-16  Jim Meyering  <meyering@redhat.com>
27743             Bruno Haible  <bruno@clisp.org>
27744
27745         Avoid some warnings from "gcc -Wshadow".
27746         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
27747
27748 2008-05-15  Eric Blake  <ebb9@byu.net>
27749
27750         Extend previous patch to cygwin 1.7.0.
27751         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
27752         fast implementation in cygwin >= 1.7.0.
27753         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27755
27756 2008-05-15  Bruno Haible  <bruno@clisp.org>
27757
27758         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
27759         implementation in glibc >= 2.9.
27760         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27762
27763 2008-05-15  Bruno Haible  <bruno@clisp.org>
27764
27765         * MODULES.html.sh (Internationalization functions): Remove linebreak.
27766         (Unicode string functions): Add unilbrk/*.
27767         Reported by Karl Berry.
27768
27769 2008-05-15  Eric Blake  <ebb9@byu.net>
27770
27771         Fix violation of <stdbool.h> replacement in regex.
27772         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
27773         * lib/regexec.c (re_search_internal): Likewise.
27774         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
27775
27776 2008-05-15  Jim Meyering  <meyering@redhat.com>
27777
27778         avoid distracting test output when git or cvs is not found
27779         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
27780         * tests/test-vc-list-files-git.sh: Likewise.
27781
27782 2008-05-15  Eric Blake  <ebb9@byu.net>
27783
27784         Glibc finally accepted the memmem speedup code, bugzilla #5514.
27785         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
27786         glibc version.
27787         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27788         * doc/posix-functions/strstr.texi (strstr): Likewise.
27789         * lib/str-two-way.h (MAX): Sychronize with glibc.
27790
27791 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
27792
27793         * lib/regcomp.c (optimize_utf8): Add a note on why we test
27794         opr.ctx_type.
27795         (calc_first): Initialize constraint field.
27796         (duplicate_node_closure): Use it instead of special casing ANCHORS.
27797         Fix grammar.
27798         (duplicate_node): Merge constraint field for all node types.
27799         (calc_eclosure_iter): Look at constraint field for all node types.
27800         * lib/regex_internal.c (create_cd_newstate): Don't look at
27801         opr.ctx_type.
27802
27803 2008-05-14  Bruno Haible  <bruno@clisp.org>
27804
27805         Help GCC to do better code generation.
27806         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
27807         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27808         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
27809         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
27810         Declare with attribute 'malloc' if supported.
27811
27812 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
27813
27814         use "echo STR|wc -c" rather than unportable "expr length STR"
27815         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
27816         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
27817
27818 2008-05-14  Jim Meyering  <meyering@redhat.com>
27819
27820         use dd ibs=$n count=1 ... rather than less-portable head -c$n
27821         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
27822         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
27823         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
27824         via Collin Lasse.
27825
27826 2008-05-14  Eric Blake  <ebb9@byu.net>
27827
27828         Avoid quadratic growth in gl_LIBSOURCES.
27829         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
27830         Suggested by Bruno Haible.
27831
27832         Test xmemdup0.
27833         * modules/xmemdup0-tests: New file.
27834         * tests/test-xmemdup0.c: Likewise.
27835
27836 2008-05-13  Eric Blake  <ebb9@byu.net>
27837
27838         Split xmemdup0 into its own module.
27839         * modules/xmemdup0: New file.
27840         * lib/xmemdup0.h: Likewise.
27841         * lib/xmemdup0.c: Likewise.
27842         * MODULES.html.sh (Memory management functions): Add xmemdup0.
27843         * lib/xalloc.h (xmemdup0): Remove.
27844         * lib/xmalloc.c (xmemdup0): Likewise.
27845
27846 2008-05-13  Eric Blake  <ebb9@byu.net>
27847             Bruno Haible  <bruno@clisp.org>
27848
27849         Reduce number of forks required during autoconf.
27850         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
27851         and gl_LIBSOURCES_DIR.
27852         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
27853         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
27854         m4_syscmd per file.
27855         <m4_foreach_w>: Move...
27856         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
27857
27858 2008-05-13  Eric Blake  <ebb9@byu.net>
27859
27860         * gnulib-tool: Fix various comment typos.
27861
27862 2008-05-12  Bruno Haible  <bruno@clisp.org>
27863
27864         Tailor the linebreaking algorithm.
27865         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
27866
27867 2008-05-12  Bruno Haible  <bruno@clisp.org>
27868
27869         Update to Unicode 5.0.0.
27870         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27871         LBP_JV, LBP_JT. Redistribute values.
27872         (unilbrk_table): Change size.
27873         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
27874         Unicode TR#14 rev. 22.
27875         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
27876         LBP_JV, LBP_JT. Redistribute values.
27877         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
27878         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
27879         Update.
27880         * lib/unilbrk/lbrkprop1.h: Regenerated.
27881         * lib/unilbrk/lbrkprop2.h: Regenerated.
27882         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
27883         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
27884         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
27885         Likewise.
27886         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
27887         Likewise.
27888         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
27889         result.
27890         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27891         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27892         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27893         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
27894         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
27895         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
27896
27897 2008-05-11  Bruno Haible  <bruno@clisp.org>
27898
27899         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
27900
27901 2008-05-11  Bruno Haible  <bruno@clisp.org>
27902
27903         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
27904         * modules/unilbrk/gen-lbrk: New file.
27905
27906 2008-05-11  Bruno Haible  <bruno@clisp.org>
27907
27908         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
27909         * m4/sha512.m4 (gl_SHA512): Likewise.
27910
27911 2008-05-11  Jim Meyering  <meyering@redhat.com>
27912
27913         New modules: crypto/sha256, crypto/sha512 (from coreutils)
27914         * modules/crypto/sha256: New file.
27915         * modules/crypto/sha512: Likewise.
27916         * lib/sha256.c: Likewise.
27917         * lib/sha256.h: Likewise.
27918         * lib/sha512.c: Likewise.
27919         * lib/sha512.h: Likewise.
27920         * lib/u64.h: Likewise.
27921         * m4/sha256.m4: Likewise.
27922         * m4/sha512.m4: Likewise.
27923         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
27924
27925 2008-05-10  Bruno Haible  <bruno@clisp.org>
27926
27927         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
27928         (Input/Output <stdio.h>): Add xprintf.
27929         (Signal handling <signal.h>): Add strsignal.
27930         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
27931         (Core language properties): Add func.
27932         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
27933         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
27934         strings.
27935         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
27936         (Input/output): New section.
27937         (File system functions): Add openat-die, stat-macros.
27938         (Networking functions): Add sockets.
27939         (Unicode string functions): Add unictype/*.
27940         (Support for building libraries and executables): Add gperf.
27941         (Support for building documentation): Add agpl-3.0.
27942         (Misc): Add nocrash.
27943
27944 2008-05-10  Bruno Haible  <bruno@clisp.org>
27945
27946         * modules/unictype/gen-ctype: New file.
27947
27948 2008-05-10  Jim Meyering  <meyering@redhat.com>
27949
27950         Make chdir-safer.c more efficient on a system with no symlinks.
27951         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
27952         also if ELOOP is zero.  Suggested by Bruno Haible.
27953
27954         Make chdir-safer.c slightly safer.
27955         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
27956         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
27957
27958         Avoid compile failure on systems without ELOOP (like mingw).
27959         * lib/chdir-safer.c (ELOOP): Define if not already defined.
27960         Reported by Bruno Haible.
27961
27962 2008-05-10  Bruno Haible  <bruno@clisp.org>
27963
27964         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
27965         (is_utf8_encoding): Use a case-insensitive comparison.
27966         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
27967         streq.
27968
27969 2008-05-10  Bruno Haible  <bruno@clisp.org>
27970
27971         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
27972         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
27973         * lib/unilbrk/ulc-common.h (iconv_string_length,
27974         iconv_string_keeping_offsets): Remove declarations.
27975         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
27976         Don't include <iconv.h>, streq.h, xsize.h.
27977         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
27978         conversion.
27979         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
27980         <iconv.h>, streq.h, xsize.h.
27981         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
27982         conversion.
27983         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
27984         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
27985         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
27986         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
27987
27988 2008-05-10  Bruno Haible  <bruno@clisp.org>
27989
27990         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
27991         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
27992
27993         * modules/unilbrk/u32-width-linebreaks-tests: New file.
27994         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
27995
27996         * modules/unilbrk/u16-width-linebreaks-tests: New file.
27997         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
27998
27999         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28000         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28001
28002         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28003         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28004
28005         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28006         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28007
28008         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28009         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28010
28011         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28012         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28013
28014 2008-05-10  Bruno Haible  <bruno@clisp.org>
28015
28016         Split up 'linebreak' module.
28017         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28018         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28019         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28020         modifications.
28021         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28022         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28023         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28024         lib/linebreak.c.
28025         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28026         lib/linebreak.c.
28027         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28028         lib/linebreak.c.
28029         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28030         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28031         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28032         lib/linebreak.c.
28033         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28034         lib/linebreak.c.
28035         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28036         lib/linebreak.c.
28037         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28038         lib/linebreak.c.
28039         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28040         lib/linebreak.c.
28041         * modules/unilbrk/base: New file.
28042         * modules/unilbrk/tables: New file.
28043         * modules/unilbrk/u8-possible-linebreaks: New file.
28044         * modules/unilbrk/u16-possible-linebreaks: New file.
28045         * modules/unilbrk/u32-possible-linebreaks: New file.
28046         * modules/unilbrk/ulc-common: New file.
28047         * modules/unilbrk/ulc-possible-linebreaks: New file.
28048         * modules/unilbrk/u8-width-linebreaks: New file.
28049         * modules/unilbrk/u16-width-linebreaks: New file.
28050         * modules/unilbrk/u32-width-linebreaks: New file.
28051         * modules/unilbrk/ulc-width-linebreaks: New file.
28052         * lib/linebreak.h: Remove file.
28053         * lib/linebreak.c: Remove file.
28054         * m4/linebreak.m4: Remove file.
28055         * modules/linebreak: Remove file.
28056         * NEWS: Mention the changes.
28057
28058 2008-05-09  Eric Blake  <ebb9@byu.net>
28059
28060         Add xmemdup0.
28061         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28062         implementation.
28063         * lib/xmalloc.c (xmemdup0): New C implementation.
28064
28065 2008-05-08  Bruno Haible  <bruno@clisp.org>
28066
28067         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28068
28069 2008-05-07  Eric Blake  <ebb9@byu.net>
28070
28071         Support cross-compilation of <wctype.h>.
28072         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28073         AC_CACHE_CHECK.
28074
28075 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28076
28077         * build-aux/vc-list-files: Add support for bzr.
28078
28079 2008-05-03  Jim Meyering  <meyering@redhat.com>
28080
28081         avoid failed assertion with tight malloc
28082         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28083
28084 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28085
28086         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28087         are needed from arpa/inet.h.
28088         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28089         Reported by Bruno Haible.
28090
28091 2008-05-02  Jim Meyering  <meyering@redhat.com>
28092
28093         avoid compilation error on FreeBSD 6
28094         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28095
28096 2008-05-01  Jim Meyering  <meyering@redhat.com>
28097
28098         useless-if-before-free: correct --help's exit status description
28099         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28100         for one or more matches, etc.  Reported by Bruno Haible.
28101
28102         vc-list-files: make the stand-alone gnulib test work
28103         * modules/vc-list-files-tests (configure.ac):
28104         Define and AC_SUBST abs_aux_dir.
28105         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28106         $(abs_top_srcdir) to each script and having each of them
28107         duplicate the work of setting PATH, set PATH here, using
28108         the new variable, abs_aux_dir instead.
28109         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28110         * tests/test-vc-list-files-git.sh: Likewise.
28111         Reported by Bruno Haible.
28112
28113 2008-05-01  Bruno Haible  <bruno@clisp.org>
28114
28115         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28116         reallocation. Rename 'done' to 'found_delimiter'.
28117
28118 2008-05-01  Jim Meyering  <meyering@redhat.com>
28119
28120         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28121         * build-aux/vc-list-files: Use `...`, not $(...).
28122
28123 2008-04-30  Jim Meyering  <meyering@redhat.com>
28124
28125         add tests for vc-list-files
28126         * modules/vc-list-files-tests: New module.
28127         * tests/test-vc-list-files-cvs.sh: New file.
28128         * tests/test-vc-list-files-git.sh: New file.
28129
28130         avoid a warning from gcc
28131         * lib/getndelim2.c (IF_LINT): Define.
28132         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28133
28134         vc-list-files: work properly with build-aux/cvsu, too
28135         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28136         to all cvs-based clauses.
28137
28138         vc-list-files: work properly in the CVS+awk case, too
28139         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28140
28141         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28142         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28143         take more than one file argument, so .  Add quotes, just in case $dir
28144         ever contains a shell meta-character.  Prompted by Soren Hansen in
28145         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28146
28147 2008-04-29  Eric Blake  <ebb9@byu.net>
28148
28149         Optimize getndelim2 to use block operations when possible.
28150         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28151         freadseek, and memchr2.
28152         * lib/getndelim2.c (getndelim2): Use them for block reads.
28153
28154 2008-04-29  Bruno Haible  <bruno@clisp.org>
28155
28156         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28157         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28158         * modules/inet_ntop (Depends-on): Add extensions.
28159         * modules/inet_pton (Depends-on): Likewise.
28160         Reported by Simon Josefsson.
28161
28162 2008-04-29  Jim Meyering  <meyering@redhat.com>
28163
28164         When the is more than one match in a block, match all of them.
28165         * build-aux/useless-if-before-free: Iterate through each block
28166         until there are no more matches.
28167
28168         Fix broken useless-if-before-free script.
28169         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28170         the expression to match cast of argument to free-like function.
28171
28172 2008-04-29  Eric Blake  <ebb9@byu.net>
28173
28174         Use new header.
28175         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28176
28177 2008-04-29  Jim Meyering  <meyering@redhat.com>
28178
28179         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28180         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28181         by gnulib to exist and to declare e.g., inet_ntop.
28182         Don't include "inet_ntop.h", now removed.
28183
28184         * m4/arpa_inet_h.m4: Remove trailing blanks.
28185
28186 2008-04-29  Eric Blake  <ebb9@byu.net>
28187
28188         Silence valgrind on safe reads beyond potential array bounds.
28189         * lib/rawmemchr.valgrind: New file.
28190         * lib/strchrnul.valgrind: Likewise.
28191         * modules/rawmemchr (Files): Distribute new file.
28192         * modules/strchrnul (Files): Likewise.
28193         Suggested by Bruno Haible.
28194
28195 2008-04-29  Bruno Haible  <bruno@clisp.org>
28196
28197         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28198         (inet_ntop, inet_pton): Change portability warning's wording.
28199         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28200         Invoke gl_CHECK_NEXT_HEADERS.
28201         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28202         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28203         set ARPA_INET_H.
28204         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28205         * modules/arpa_inet (Description): No longer only for systems that
28206         lack it.
28207         (Depends-on): Add include_next.
28208         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28209         HAVE_ARPA_INET_H.
28210
28211 2008-04-29  Jim Meyering  <meyering@redhat.com>
28212
28213         * modules/mkdir (License): Re-license as LGPLv2+.
28214
28215 2008-04-29  Bruno Haible  <bruno@clisp.org>
28216
28217         * modules/rawmemchr (Maintainer): Set to Eric.
28218         * modules/strchrnul (Maintainer): Likewise.
28219
28220 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28221
28222         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28223         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28224
28225         * modules/arpa_inet (arpa/inet.h): Use them.
28226
28227 2008-04-28  Eric Blake  <ebb9@byu.net>
28228
28229         Test getndelim2.
28230         * modules/getndelim2-tests: New file.
28231         * tests/test-getndelim2.c: Likewise.
28232         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28233         stream.
28234         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28235
28236         * MODULES.html.sh: Document new module.
28237
28238 2008-04-20  Bruno Haible  <bruno@clisp.org>
28239
28240         * lib/c-stack.c (die): Use raise.
28241         * modules/c-stack (Depends-on): Add raise.
28242
28243 2008-04-28  Bruno Haible  <bruno@clisp.org>
28244
28245         Expect rpmatch to be declared.
28246         * lib/yesno.c (rpmatch): Remove declaration.
28247
28248         Declare rpmatch.
28249         * lib/stdlib.in.h (rpmatch): New declaration.
28250         * lib/rpmatch.c: Include <stdlib.h> first.
28251         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28252         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28254         HAVE_RPMATCH.
28255         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28257         (Include): Set to <stdlib.h>.
28258         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28259         HAVE_RPMATCH.
28260         * NEWS: Document the change.
28261
28262 2008-04-28  Bruno Haible  <bruno@clisp.org>
28263
28264         Change rpmatch to use nl_langinfo when appropriate.
28265         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28266         (N_): New macro.
28267         (localized_pattern): New function/macro.
28268         (try): Remove match, nomatch arguments. Copy the pattern into safe
28269         memory before caching it.
28270         (rpmatch): Use localized_pattern. Add translator comments.
28271         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28272         Suggested by Eric Blake.
28273         * modules/rpmatch (Depends-on): Add stdbool.
28274
28275 2008-04-28  Eric Blake  <ebb9@byu.net>
28276
28277         Add rawmemchr module, matching glibc.
28278         * modules/string (Makefile.am): New indicator.
28279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28280         * lib/string.in.h (rawmemchr): Declare when appropriate.
28281         * modules/rawmemchr: New file.
28282         * m4/rawmemchr.m4: Likewise.
28283         * lib/rawmemchr.c: Likewise.
28284         * modules/rawmemchr-tests: Likewise.
28285         * tests/test-rawmemchr.c: Likewise.
28286         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28287         module.
28288         * modules/strchrnul (Depends-on): Add rawmemchr.
28289         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28290
28291         Whitespace cleanup.
28292         * tests/test-strchrnul.c: Reindent.
28293         * lib/strchrnul.c: Likewise.
28294
28295         Optimize and test strchrnul.
28296         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28297         * modules/strchrnul-tests: New file.
28298         * tests/test-strchrnul.c: Likewise.
28299
28300         Remove intprops dependency.
28301         * modules/memchr (Depends-on): Remove intprops.
28302         * modules/memrchr (Depends-on): Likewise.
28303         * modules/memchr2 (Depends-on): Likewise.
28304         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28305         * lib/memrchr.c (__memrchr): Likewise.
28306         * lib/memrchr2.c (memchr2): Likewise.
28307         Reported by Simon Josefsson.
28308
28309 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28310
28311         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28312         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28313
28314 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28315
28316         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28317
28318         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28319
28320         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28321
28322         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28323         declarations.
28324         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28325
28326         * m4/inet_pton.m4: Don't check for header files.
28327
28328         * m4/inet_ntop.m4: Don't check for header files.
28329
28330 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28331
28332         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28333         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28334         trigger for cygwin).
28335         Reported by Bruno Haible  <bruno@clisp.org>.
28336
28337 2008-04-28  Bruno Haible  <bruno@clisp.org>
28338
28339         * doc/posix-functions/strdup.texi: Mention mingw problem.
28340
28341 2008-04-27  Bruno Haible  <bruno@clisp.org>
28342
28343         * modules/stat-time-tests (Depends-on): Add sleep.
28344         * tests/test-stat-time.c (force_unlink): New function.
28345         (cleanup): Use it.
28346         (test_mtime): Remove the ctime related tests.
28347         (test_ctime): New function, containing the ctime related tests.
28348         (main): Call test_ctime, except on native Windows platforms.
28349
28350 2008-04-27  Bruno Haible  <bruno@clisp.org>
28351
28352         * lib/rpmatch.c (rpmatch): Add some comments.
28353         Reported by James Youngman <jay@gnu.org>.
28354
28355 2008-04-27  Bruno Haible  <bruno@clisp.org>
28356
28357         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28358         quiet NaNs.
28359
28360 2008-04-27  Bruno Haible  <bruno@clisp.org>
28361
28362         Make test-yesno.sh work on mingw.
28363         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28364         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28365         (main): Set stdin to binary mode.
28366         * modules/yesno-tests (Depends-on): Add binary-io.
28367
28368 2008-04-27  Bruno Haible  <bruno@clisp.org>
28369
28370         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28371         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28372         argument that lie outside the IEEE 854 domain.
28373         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28374         (gl_ISFINITE): Use it.
28375         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28376
28377 2008-04-27  Bruno Haible  <bruno@clisp.org>
28378
28379         Allow local renaming in config.h.
28380         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28381
28382 2008-04-27  Bruno Haible  <bruno@clisp.org>
28383
28384         * lib/memchr.c (__memchr): Change type of 'i'.
28385         * lib/memchr2.c (memchr2): Likewise.
28386
28387 2008-04-26  Eric Blake  <ebb9@byu.net>
28388         and Bruno Haible  <bruno@clisp.org>
28389
28390         Optimize and test memrchr.
28391         * modules/memrchr (Depends-on): Add intprops.
28392         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28393         * modules/memrchr-tests: New file.
28394         * tests/test-memrchr.c: New file.
28395
28396 2008-04-26  Bruno Haible  <bruno@clisp.org>
28397
28398         Add tentative support for DragonFly BSD.
28399         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28400         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28401         fp.
28402         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28403         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28404         * lib/fpurge.c (fpurge): Likewise.
28405         * lib/freadable.c (freaadable): Likewise.
28406         * lib/freadahead.c (freadahead): Likewise.
28407         * lib/freading.c (freading): Likewise.
28408         * lib/freadptr.c (freadptr): Likewise.
28409         * lib/freadseek.c (freadptrinc): Likewise.
28410         * lib/fseeko.c (fseeko): Likewise.
28411         * lib/fseterr.c (fseterr): Likewise.
28412         * lib/fwritable.c (fwritable): Likewise.
28413         * lib/fwriting.c (fwriting): Likewise.
28414
28415 2008-04-26  Bruno Haible  <bruno@clisp.org>
28416
28417         * lib/stdio-impl.h: New file.
28418         * lib/fbufmode.c: Include stdio-impl.h.
28419         (fbufmode): Use fp_, remove redundant #defines.
28420         * lib/fflush.c: Include stdio-impl.h.
28421         (clear_ungetc_buffer): Remove redundant #defines.
28422         * lib/fpurge.c: Include stdio-impl.h.
28423         (fpurge): Remove redundant #defines.
28424         * lib/freadable.c: Include stdio-impl.h.
28425         (freadable): Remove redundant #defines.
28426         * lib/freadahead.c: Include stdio-impl.h.
28427         (freadahead): Remove redundant #defines.
28428         * lib/freading.c: Include stdio-impl.h.
28429         (freading): Remove redundant #defines.
28430         * lib/freadptr.c: Include stdio-impl.h.
28431         (freadptr): Remove redundant #defines.
28432         * lib/freadseek.c: Include stdio-impl.h.
28433         (freadptrinc): Remove redundant #defines.
28434         * lib/fseeko.c: Include stdio-impl.h.
28435         (rpl_fseeko): Remove redundant #defines.
28436         * lib/fseterr.c: Include stdio-impl.h.
28437         (fseterr): Remove redundant #defines.
28438         * lib/fwritable.c: Include stdio-impl.h.
28439         (fwritable: Remove redundant #defines.
28440         * lib/fwriting.c: Include stdio-impl.h.
28441         (fwriting): Remove redundant #defines.
28442         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28443         * modules/fflush (Files): Likewise.
28444         * modules/fpurge (Files): Likewise.
28445         * modules/freadable (Files): Likewise.
28446         * modules/freadahead (Files): Likewise.
28447         * modules/freading (Files): Likewise.
28448         * modules/freadptr (Files): Likewise.
28449         * modules/freadseek (Files): Likewise.
28450         * modules/fseeko (Files): Likewise.
28451         * modules/fseterr (Files): Likewise.
28452         * modules/fwritable (Files): Likewise.
28453         * modules/fwriting (Files): Likewise.
28454
28455 2008-04-26  Bruno Haible  <bruno@clisp.org>
28456
28457         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28458         restore_seek_optimization, update_fpos_cache): New functions, extracted
28459         from rpl_fflush.
28460         (rpl_fflush): Use them.
28461         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28462         (gl_REPLACE_FFLUSH): Use it.
28463
28464 2008-04-26  Bruno Haible  <bruno@clisp.org>
28465
28466         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28467         on Solaris.
28468         * tests/test-xstrtoimax.sh: Likewise.
28469         * tests/test-xstrtoumax.sh: Likewise.
28470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28471
28472 2008-04-26  Bruno Haible  <bruno@clisp.org>
28473
28474         * modules/memchr-tests: New file.
28475         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28476
28477 2008-04-26  Eric Blake  <ebb9@byu.net>
28478             Bruno Haible  <bruno@clisp.org>
28479
28480         * lib/memchr.c: Include intprops.h.
28481         (__memchr): Optimize parallel detection of matching bytes. Rename local
28482         variables. Add explanatory comments.
28483
28484 2008-04-26  Bruno Haible  <bruno@clisp.org>
28485
28486         Fix module 'memchr', broken since 2000-10-28.
28487         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28488
28489 2008-04-26  Bruno Haible  <bruno@clisp.org>
28490
28491         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28492         comments.
28493
28494 2008-04-25  Eric Blake  <ebb9@byu.net>
28495
28496         Use native fstatat on cygwin 1.7.0.
28497         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28498         first.
28499
28500 2008-04-23  Eric Blake  <ebb9@byu.net>
28501
28502         Improve memchr2 performance.
28503         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28504         NUL bytes.
28505         * modules/memchr2 (Depends-on): Use intprops.h.
28506
28507 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28508
28509         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28510         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28511         <blp@cs.stanford.edu>.
28512
28513 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28514
28515         * lib/arpa_inet.in.h: New file.
28516
28517         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28518         (Makefile.am): Sed in substitute header file.
28519
28520         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28521         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28522
28523         * modules/inet_ntop (configure.ac): Use
28524         gl_ARPA_INET_MODULE_INDICATOR.
28525
28526         * modules/inet_pton (configure.ac): Use
28527         gl_ARPA_INET_MODULE_INDICATOR.
28528
28529 2008-04-22  Jim Meyering  <meyering@redhat.com>
28530
28531         * modules/verify (License): Re-license as LGPLv2+.
28532
28533 2008-04-22  Simon Josefsson  <simon@josefsson.org>
28534
28535         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
28536         parameter to void* as per POSIX standard (MinGW uses char*).
28537
28538 2008-04-21  Bruno Haible  <bruno@clisp.org>
28539
28540         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
28541         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
28542         Define to replacements if REPLACE_ISWCNTRL is 1.
28543         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
28544         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
28545         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
28546         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
28547         what it fixes.
28548         * doc/posix-functions/iswalpha.texi: Likewise.
28549         * doc/posix-functions/iswblank.texi: Likewise.
28550         * doc/posix-functions/iswcntrl.texi: Likewise.
28551         * doc/posix-functions/iswdigit.texi: Likewise.
28552         * doc/posix-functions/iswgraph.texi: Likewise.
28553         * doc/posix-functions/iswlower.texi: Likewise.
28554         * doc/posix-functions/iswprint.texi: Likewise.
28555         * doc/posix-functions/iswpunct.texi: Likewise.
28556         * doc/posix-functions/iswspace.texi: Likewise.
28557         * doc/posix-functions/iswupper.texi: Likewise.
28558         * doc/posix-functions/iswxdigit.texi: Likewise.
28559         Reported by Alain Guibert.
28560
28561 2008-04-21  Bruno Haible  <bruno@clisp.org>
28562
28563         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
28564         Patch by Alain Guibert.
28565
28566 2008-04-21  Bruno Haible  <bruno@clisp.org>
28567
28568         Fix test failures on mingw.
28569         * tests/test-xstrtol.c (print_no_progname): New function.
28570         (main): Install it in error_print_progname hook.
28571         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
28572         * tests/test-xstrtoimax.sh: Likewise.
28573         * tests/test-xstrtoumax.sh: Likewise.
28574
28575 2008-04-21  Bruno Haible  <bruno@clisp.org>
28576
28577         Fix test failure on mingw.
28578         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
28579
28580 2008-04-21  Bruno Haible  <bruno@clisp.org>
28581
28582         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
28583         Actually assign a value.
28584
28585 2008-04-20  Bruno Haible  <bruno@clisp.org>
28586
28587         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
28588         take 2.
28589         * lib/canonicalize.c (canonicalize_file_name): Elide if the
28590         'canonicalize-lgpl' module is also used.
28591         * lib/canonicalize-lgpl.c: Undo last change.
28592         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
28593
28594 2008-04-20  Bruno Haible  <bruno@clisp.org>
28595
28596         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
28597         config.h. Provide _mkdir based fallback for mingw.
28598         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
28599         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
28600         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
28601         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
28602         rather than defining mkdir in config.h.
28603         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
28604         (gl_SYS_STAT_H_DEFAULTS): New macro.
28605         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
28606         HAVE_IO_H any more.
28607         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
28608         HAVE_DECL_MKDIR and HAVE_IO_H.
28609
28610 2008-04-20  Bruno Haible  <bruno@clisp.org>
28611
28612         * lib/isapipe.c: Port to native Windows platforms.
28613
28614 2008-04-20  Bruno Haible  <bruno@clisp.org>
28615
28616         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
28617
28618 2008-04-21  Eric Blake  <ebb9@byu.net>
28619
28620         Work around preprocessors that don't handle UINTMAX_MAX.
28621         * lib/memchr2.c (memchr2): Avoid embedded #if.
28622         Reported by Alain Guibert, fix suggested by Bruno Haible.
28623
28624 2008-04-21  Simon Josefsson  <simon@josefsson.org>
28625
28626         * doc/posix-functions/strftime.texi (strftime): Explain better
28627         Windows incompatibility.  Suggested by Micah Cowan
28628         <micah@cowan.name>.
28629
28630 2008-04-20  Bruno Haible  <bruno@clisp.org>
28631
28632         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
28633         unistr/u8-mblen.
28634
28635 2008-04-20  Bruno Haible  <bruno@clisp.org>
28636
28637         Fix test failure on platforms with non-GNU iconv.
28638         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
28639         (U_TO_U8): Use it, rather than u16_to_u8.
28640         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
28641         units at the end of the input string.
28642         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
28643
28644 2008-04-20  Bruno Haible  <bruno@clisp.org>
28645
28646         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
28647         when the resulting length is 0.
28648         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
28649
28650 2008-04-20  Bruno Haible  <bruno@clisp.org>
28651
28652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
28653         works.
28654         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
28655
28656 2008-04-20  Bruno Haible  <bruno@clisp.org>
28657
28658         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
28659         * modules/tsearch-tests (configure.ac): Test for initstate function.
28660
28661 2008-04-20  Bruno Haible  <bruno@clisp.org>
28662
28663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
28664         for nlink_t if missing.
28665         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
28666
28667 2008-04-19  Bruno Haible  <bruno@clisp.org>
28668
28669         Work around snprintf bug on Linux libc5.
28670         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
28671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28672         gl_SNPRINTF_SIZE1.
28673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28674         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
28675         that test failed.
28676         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
28677         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
28678         * modules/snprintf (Files): Add m4/printf.m4.
28679         * modules/vsnprintf (Files): Likewise.
28680         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
28681         * doc/posix-functions/vsnprintf.texi: Likewise.
28682
28683 2008-04-19  Bruno Haible  <bruno@clisp.org>
28684
28685         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
28686         from 0.0058 to less than 10^-7.
28687
28688 2008-04-19  Bruno Haible  <bruno@clisp.org>
28689
28690         Fix rounding when a precision is given.
28691         * lib/vasnprintf.c (is_borderline): New function.
28692         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
28693         9...9x.
28694         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
28695         %e, %g.
28696         * tests/test-vasprintf-posix.c (test_function): Likewise.
28697         * tests/test-snprintf-posix.h (test_function): Likewise.
28698         * tests/test-sprintf-posix.h (test_function): Likewise.
28699         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
28700         * tests/test-printf-posix.h (test_function): Likewise.
28701         * tests/test-printf-posix.output: Update.
28702         Reported by John Darrington <john@darrington.wattle.id.au> via
28703         Ben Pfaff <blp@cs.stanford.edu>.
28704
28705 2008-04-18  Simon Josefsson  <simon@josefsson.org>
28706
28707         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
28708         Suggested by Bruno Haible <bruno@clisp.org>.
28709
28710 2008-04-17  Bruno Haible  <bruno@clisp.org>
28711
28712         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
28713         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
28714         implementation.
28715         Patch by Bruce Merry <bmerry@gmail.com>.
28716
28717 2008-04-17  Simon Josefsson  <simon@josefsson.org>
28718
28719         * doc/posix-functions/strftime.texi (strftime): Mention that %e
28720         doesn't work under Windows.
28721
28722 2008-04-16  Bruno Haible  <bruno@clisp.org>
28723
28724         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
28725         New macros.
28726         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
28727         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
28728         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
28729         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
28730         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
28731         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
28732         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
28733         macros.
28734         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
28735         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
28736         Northern Sotho, Uighur.
28737
28738 2008-04-16  Bruno Haible  <bruno@clisp.org>
28739
28740         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
28741         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
28742         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
28743         Reported by Daniel Bergström <daniel@octocode.com>.
28744
28745 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
28746             Bruno Haible  <bruno@clisp.org>
28747
28748         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
28749         function.
28750         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
28751         New functions, mostly extracted from gl_locale_name_default.
28752         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
28753
28754 2008-04-16  Eric Blake  <ebb9@byu.net>
28755
28756         Adjust strtod detection to catch glibc 2.7 bug.
28757         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
28758         Reported by John Gatewood Ham.
28759
28760 2008-04-16  Bruno Haible  <bruno@clisp.org>
28761
28762         Add tentative support for Linux libc5.
28763         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
28764         * lib/fpurge.c (fpurge): Likewise.
28765         * lib/freadable.c (freadable): Likewise.
28766         * lib/freadahead.c (freadahead): Likewise.
28767         * lib/freading.c (freading): Likewise.
28768         * lib/freadptr.c (freadptr): Likewise.
28769         * lib/freadseek.c (freadptrinc): Likewise.
28770         * lib/fseeko.c (rpl_fseeko): Likewise.
28771         * lib/fseterr.c (fseterr): Likewise.
28772         * lib/fwritable.c (fwritable): Likewise.
28773         * lib/fwriting.c (fwriting): Likewise.
28774         Reported by Alain Guibert <alguibert+bts@free.fr>.
28775
28776 2008-04-15  Bruno Haible  <bruno@clisp.org>
28777
28778         * modules/mathl (configure.ac): Define module indicator.
28779
28780 2008-04-15  Bruno Haible  <bruno@clisp.org>
28781
28782         * lib/logl.c (logl): Remove unused variables.
28783
28784 2008-04-15  Bruno Haible  <bruno@clisp.org>
28785
28786         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
28787         fails.
28788
28789 2008-04-15  Bruno Haible  <bruno@clisp.org>
28790
28791         * lib/trim.c (trim2): Fix argument of isspace() macro.
28792
28793 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
28794
28795         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
28796         to 0.
28797         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
28798
28799 2008-04-14  Bruno Haible  <bruno@clisp.org>
28800
28801         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
28802         AC_LANG_PROGRAM argument.
28803         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
28804         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
28805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28806         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28807         * m4/math_h.m4 (gl_MATH_H): Likewise.
28808         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28810         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28811         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
28812         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28813         * m4/regex.m4 (gl_REGEX): Likewise.
28814         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
28815         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
28816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28817         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
28818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28819         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28820         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28821         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28822
28823 2008-04-14  Jim Meyering  <meyering@redhat.com>
28824
28825         test-strtod: fix typos: s/abs/fabs/
28826         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
28827
28828 2008-04-13  Bruno Haible  <bruno@clisp.org>
28829
28830         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
28831         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
28832         module is also used and while not building the reloc-wrapper.
28833
28834 2008-04-13  Bruno Haible  <bruno@clisp.org>
28835
28836         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
28837
28838 2008-04-13  Bruno Haible  <bruno@clisp.org>
28839
28840         Fix AIX compilation failure introduced on 2008-04-02.
28841         * tests/test-frexp.c (exp): Undefine before redefining.
28842         * tests/test-frexpl.c (exp): Likewise.
28843
28844 2008-04-13  Bruno Haible  <bruno@clisp.org>
28845
28846         Work around a HP-UX stdio bug.
28847         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
28848         * tests/test-ftello.c (main): Likewise.
28849         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
28850         * doc/posix-functions/ftello.texi: Likewise.
28851
28852 2008-04-13  Bruno Haible  <bruno@clisp.org>
28853
28854         Make test-signbit pass on HP-UX/hppa.
28855         * tests/test-signbit.c (minus_zerol): New variable.
28856         (test_signbitl): Use it.
28857
28858 2008-04-13  Bruno Haible  <bruno@clisp.org>
28859
28860         Make truncl work on OSF/1 4.0.
28861         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
28862         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28863         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
28864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
28865         HAVE_DECL_TRUNCL.
28866         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
28867         HAVE_DECL_TRUNCL.
28868         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
28869
28870 2008-04-13  Bruno Haible  <bruno@clisp.org>
28871
28872         * lib/unictype.h: Remove trailing comma from enumeration definitions.
28873
28874 2008-04-13  Bruno Haible  <bruno@clisp.org>
28875
28876         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
28877         expression, so as to avoid HP-UX 11 cc compiler bug.
28878
28879 2008-04-13  Bruno Haible  <bruno@clisp.org>
28880
28881         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
28882
28883 2008-04-13  Bruno Haible  <bruno@clisp.org>
28884
28885         * lib/git-merge-changelog.c: Remove empty declaration outside of
28886         functions.
28887
28888 2008-04-13  Bruno Haible  <bruno@clisp.org>
28889
28890         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
28891
28892 2008-04-13  Bruno Haible  <bruno@clisp.org>
28893
28894         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
28895         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
28896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
28897         also if it exists but lacks definitions of the SHUT_* macros.
28898         * modules/sys_socket (Description): Update.
28899         Reported by Elbert Pol <e.pol@chello.nl>.
28900
28901 2008-04-13  Bruno Haible  <bruno@clisp.org>
28902
28903         * lib/localcharset.c (OS2): Don't redefine if already defined.
28904         Reported by Elbert Pol <e.pol@chello.nl>.
28905
28906 2008-04-13  Bruno Haible  <bruno@clisp.org>
28907
28908         * lib/binary-io.h [__EMX__]: Include <io.h>.
28909         Reported by Elbert Pol <e.pol@chello.nl>.
28910
28911 2008-04-12  Bruno Haible  <bruno@clisp.org>
28912
28913         * lib/fpucw.h: Enable the definitions also for x86_64.
28914         Needed for NetBSD/x86_64.
28915         Reported by Thomas Klausner <tk@giga.or.at>.
28916
28917 2008-04-12  Bruno Haible  <bruno@clisp.org>
28918
28919         * tests/test-strtod.c: Include isnand.h.
28920         (main): Use isnand instead of isnan.
28921         Reported by Jim Meyering.
28922
28923 2008-04-12  Bruno Haible  <bruno@clisp.org>
28924
28925         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
28926         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28927
28928 2008-04-12  Jim Meyering  <meyering@redhat.com>
28929
28930         * m4/math_h.m4 (gl_MATH_H): Fix typos.
28931
28932 2008-04-12  Bruno Haible  <bruno@clisp.org>
28933
28934         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
28935         Reported by Elbert Pol <e.pol@chello.nl>.
28936
28937 2008-04-12  Eric Blake  <ebb9@byu.net>
28938
28939         Work around Solaris 10 math.h bug.
28940         * m4/math_h.m4 (gl_MATH_H): Check for bug.
28941         (gl_MATH_H_DEFAULTS): Set up default.
28942         * modules/math (Makefile.am): Replace new indicators.
28943         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
28944         * tests/test-math.c (main): Test this.
28945         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
28946         * doc/posix-headers/math.texi (math.h): Mention bug.
28947         Reported by Nelson H. F. Beebe and Jim Meyering.
28948
28949 2008-04-11  Bruno Haible  <bruno@clisp.org>
28950
28951         Adapt to future versions of Apple GCC.
28952         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
28953         Reported by Peter O'Gorman <peter@pogma.com>.
28954
28955 2008-04-11  Bruno Haible  <bruno@clisp.org>
28956
28957         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
28958
28959 2008-04-11  Bruno Haible  <bruno@clisp.org>
28960
28961         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
28962
28963         * modules/getaddrinfo-tests (Makefile.am): Define
28964         test_getaddrinfo_LDADD.
28965
28966 2008-04-11  Bruno Haible  <bruno@clisp.org>
28967
28968         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
28969         (init): Fix syntax error.
28970         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
28971         is declared.
28972
28973 2008-04-11  Bruno Haible  <bruno@clisp.org>
28974
28975         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
28976         * modules/glob (Depends-on): Add stdbool.
28977
28978 2008-04-11  Bruno Haible  <bruno@clisp.org>
28979
28980         * lib/trim.c: Include <string.h>.
28981
28982 2008-04-11  Eric Blake  <ebb9@byu.net>
28983
28984         Avoid compile failure on OS/2.
28985         * lib/regex_internal.h (internal_function): Disable optimization
28986         on OS/2 (__EMX__), where it caused compiler error.
28987         Reported by Elbert Pol.
28988
28989 2008-04-11  Bruno Haible  <bruno@clisp.org>
28990
28991         Flush the standard error stream before aborting. Needed on mingw.
28992         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
28993         * tests/test-array_list.c (ASSERT): Likewise.
28994         * tests/test-array_oset.c (ASSERT): Likewise.
28995         * tests/test-avltree_list.c (ASSERT): Likewise.
28996         * tests/test-avltree_oset.c (ASSERT): Likewise.
28997         * tests/test-avltreehash_list.c (ASSERT): Likewise.
28998         * tests/test-binary-io.c (ASSERT): Likewise.
28999         * tests/test-byteswap.c (ASSERT): Likewise.
29000         * tests/test-c-ctype.c (ASSERT): Likewise.
29001         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29002         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29003         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29004         * tests/test-c-strstr.c (ASSERT): Likewise.
29005         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29006         * tests/test-canonicalize.c (ASSERT): Likewise.
29007         * tests/test-carray_list.c (ASSERT): Likewise.
29008         * tests/test-ceilf1.c (ASSERT): Likewise.
29009         * tests/test-ceilf2.c (ASSERT): Likewise.
29010         * tests/test-ceill.c (ASSERT): Likewise.
29011         * tests/test-count-one-bits.c (ASSERT): Likewise.
29012         * tests/test-fbufmode.c (ASSERT): Likewise.
29013         * tests/test-fflush2.c (ASSERT): Likewise.
29014         * tests/test-floorf1.c (ASSERT): Likewise.
29015         * tests/test-floorf2.c (ASSERT): Likewise.
29016         * tests/test-floorl.c (ASSERT): Likewise.
29017         * tests/test-fopen.c (ASSERT): Likewise.
29018         * tests/test-fpending.c (ASSERT): Likewise.
29019         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29020         * tests/test-fpurge.c (ASSERT): Likewise.
29021         * tests/test-freadable.c (ASSERT): Likewise.
29022         * tests/test-freadahead.c (ASSERT): Likewise.
29023         * tests/test-freading.c (ASSERT): Likewise.
29024         * tests/test-freadptr.c (ASSERT): Likewise.
29025         * tests/test-freadptr2.c (ASSERT): Likewise.
29026         * tests/test-freadseek.c (ASSERT): Likewise.
29027         * tests/test-freopen.c (ASSERT): Likewise.
29028         * tests/test-frexp.c (ASSERT): Likewise.
29029         * tests/test-frexpl.c (ASSERT): Likewise.
29030         * tests/test-fseek.c (ASSERT): Likewise.
29031         * tests/test-fseeko.c (ASSERT): Likewise.
29032         * tests/test-fstrcmp.c (ASSERT): Likewise.
29033         * tests/test-ftell.c (ASSERT): Likewise.
29034         * tests/test-ftello.c (ASSERT): Likewise.
29035         * tests/test-func.c (ASSERT): Likewise.
29036         * tests/test-fwritable.c (ASSERT): Likewise.
29037         * tests/test-fwriting.c (ASSERT): Likewise.
29038         * tests/test-getdelim.c (ASSERT): Likewise.
29039         * tests/test-getline.c (ASSERT): Likewise.
29040         * tests/test-i-ring.c (ASSERT): Likewise.
29041         * tests/test-iconv-utf.c (ASSERT): Likewise.
29042         * tests/test-iconv.c (ASSERT): Likewise.
29043         * tests/test-isfinite.c (ASSERT): Likewise.
29044         * tests/test-isnand.c (ASSERT): Likewise.
29045         * tests/test-isnanf.c (ASSERT): Likewise.
29046         * tests/test-isnanl.h (ASSERT): Likewise.
29047         * tests/test-ldexpl.c (ASSERT): Likewise.
29048         * tests/test-linked_list.c (ASSERT): Likewise.
29049         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29050         * tests/test-localename.c (ASSERT): Likewise.
29051         * tests/test-lseek.c (ASSERT): Likewise.
29052         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29053         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29054         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29055         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29056         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29057         * tests/test-mbschr.c (ASSERT): Likewise.
29058         * tests/test-mbscspn.c (ASSERT): Likewise.
29059         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29060         * tests/test-mbspbrk.c (ASSERT): Likewise.
29061         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29062         * tests/test-mbsrchr.c (ASSERT): Likewise.
29063         * tests/test-mbsspn.c (ASSERT): Likewise.
29064         * tests/test-mbsstr1.c (ASSERT): Likewise.
29065         * tests/test-mbsstr2.c (ASSERT): Likewise.
29066         * tests/test-mbsstr3.c (ASSERT): Likewise.
29067         * tests/test-memchr2.c (ASSERT): Likewise.
29068         * tests/test-memmem.c (ASSERT): Likewise.
29069         * tests/test-open.c (ASSERT): Likewise.
29070         * tests/test-printf-frexp.c (ASSERT): Likewise.
29071         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29072         * tests/test-printf-posix.c (ASSERT): Likewise.
29073         * tests/test-quotearg.c (ASSERT): Likewise.
29074         * tests/test-rbtree_list.c (ASSERT): Likewise.
29075         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29076         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29077         * tests/test-round1.c (ASSERT): Likewise.
29078         * tests/test-roundf1.c (ASSERT): Likewise.
29079         * tests/test-roundl.c (ASSERT): Likewise.
29080         * tests/test-signbit.c (ASSERT): Likewise.
29081         * tests/test-sleep.c (ASSERT): Likewise.
29082         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29083         * tests/test-snprintf.c (ASSERT): Likewise.
29084         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29085         * tests/test-stat-time.c (ASSERT): Likewise.
29086         * tests/test-strcasestr.c (ASSERT): Likewise.
29087         * tests/test-strerror.c (ASSERT): Likewise.
29088         * tests/test-striconv.c (ASSERT): Likewise.
29089         * tests/test-striconveh.c (ASSERT): Likewise.
29090         * tests/test-striconveha.c (ASSERT): Likewise.
29091         * tests/test-strsignal.c (ASSERT): Likewise.
29092         * tests/test-strstr.c (ASSERT): Likewise.
29093         * tests/test-strtod.c (ASSERT): Likewise.
29094         * tests/test-trunc1.c (ASSERT): Likewise.
29095         * tests/test-trunc2.c (ASSERT): Likewise.
29096         * tests/test-truncf1.c (ASSERT): Likewise.
29097         * tests/test-truncf2.c (ASSERT): Likewise.
29098         * tests/test-truncl.c (ASSERT): Likewise.
29099         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29100         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29101         * tests/test-vasnprintf.c (ASSERT): Likewise.
29102         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29103         * tests/test-vasprintf.c (ASSERT): Likewise.
29104         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29105         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29106         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29107         * tests/test-vsnprintf.c (ASSERT): Likewise.
29108         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29109         * tests/test-wcwidth.c (ASSERT): Likewise.
29110         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29111         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29112         * tests/test-xvasprintf.c (ASSERT): Likewise.
29113         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29114         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29115         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29116         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29117         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29118         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29119         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29120         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29121         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29122         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29123         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29124         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29125         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29126         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29127         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29128         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29129         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29130         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29131         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29132         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29133         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29134         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29135         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29136         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29137         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29138         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29139         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29140         * tests/unictype/test-combining.c (ASSERT): Likewise.
29141         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29142         * tests/unictype/test-digit.c (ASSERT): Likewise.
29143         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29144         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29145         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29146         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29147         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29148         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29149         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29150         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29151         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29152         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29153         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29154         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29155         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29156         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29157         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29158         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29159         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29160         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29161         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29162         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29163         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29164         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29165         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29166         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29167         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29168         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29169         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29170         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29171         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29172         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29173         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29174         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29175         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29176         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29177         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29178         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29179         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29180         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29181         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29182         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29183         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29184         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29185         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29186         Reported by Eric Blake.
29187
29188 2008-04-11  Bruno Haible  <bruno@clisp.org>
29189
29190         * lib/wchar.in.h: Tweak comment.
29191
29192 2008-04-11  Bruno Haible  <bruno@clisp.org>
29193
29194         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29195         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29196         gl_COMMON.
29197         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29198
29199 2008-04-11  Bruno Haible  <bruno@clisp.org>
29200
29201         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29202
29203 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29204
29205         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29206         of attempting to use non-existing /dev/*random.  Based on patch
29207         from Adam Strzelecki <ono@java.pl> in
29208         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29209
29210 2008-04-08  Bruno Haible  <bruno@clisp.org>
29211
29212         Add tentative support for emx+gcc.
29213         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29214         * lib/fpurge.c (fpurge): Likewise.
29215         * lib/freadable.c (freadable): Likewise.
29216         * lib/freadahead.c (freadahead): Likewise.
29217         * lib/freading.c (freading): Likewise.
29218         * lib/freadptr.c (freadptr): Likewise.
29219         * lib/freadseek.c (freadptrinc): Likewise.
29220         * lib/fseeko.c (rpl_fseeko): Likewise.
29221         * lib/fseterr.c (fseterr): Likewise.
29222         * lib/fwritable.c (fwritable): Likewise.
29223         * lib/fwriting.c (fwriting): Likewise.
29224         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29225
29226 2008-04-09  Eric Blake  <ebb9@byu.net>
29227
29228         Avoid some autoconf warnings.
29229         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29230         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29231         * m4/afs.m4 (gl_AFS): Likewise.
29232         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29233         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29234         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29235         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29236         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29237         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29238         (AC_CHECK_DECLS_ONCE): Likewise.
29239         Rename file...
29240         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29241         gnulib-tool requires autoconf 2.59 or better.
29242         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29243
29244 2008-04-08  Eric Blake  <ebb9@byu.net>
29245
29246         Use 'git describe --match' if present (added in git 1.5.5).
29247         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29248         if possible.
29249
29250 2008-04-08  Bruno Haible  <bruno@clisp.org>
29251
29252         Add tentative support for OpenServer.
29253         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29254         _ptr, _cnt.
29255         * lib/fpurge.c (fpurge): Likewise.
29256         * lib/freadable.c (freadable): Likewise.
29257         * lib/freadahead.c (freadahead): Likewise.
29258         * lib/freading.c (freading): Likewise.
29259         * lib/freadptr.c (freadptr): Likewise.
29260         * lib/freadseek.c (freadptrinc): Likewise.
29261         * lib/fseeko.c (rpl_fseeko): Likewise.
29262         * lib/fseterr.c (fseterr): Likewise.
29263         * lib/fwritable.c (fwritable): Likewise.
29264         * lib/fwriting.c (fwriting): Likewise.
29265         Reported by Roger Cornelius <rac@tenzing.org> and
29266         Brian K. White <brian@aljex.com>.
29267
29268 2008-04-06  Jim Meyering  <meyering@redhat.com>
29269
29270         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29271
29272 2008-04-06  Bruno Haible  <bruno@clisp.org>
29273
29274         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29275         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29276         * tests/test-printf-posix.sh: Likewise.
29277         * tests/test-vfprintf-posix.sh: Likewise.
29278         * tests/test-vprintf-posix.sh: Likewise.
29279         * tests/test-xprintf-posix.sh: Likewise.
29280
29281 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29282
29283         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29284         hide error from 'ls', needed on OS/2.
29285         Report by Elbert Pol <elbert.pol@gmail.com>.
29286
29287 2008-04-04  Eric Blake  <ebb9@byu.net>
29288
29289         Make test-fseeko.c failures meaningful.
29290         * tests/test-fseeko.c: Print line number on failure.
29291         * tests/test-fseek.c: Likewise.
29292         Reported by Nelson H. F. Beebe.
29293
29294         Improve strtod bug detection check.
29295         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29296         required for Solaris 10.
29297         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29298
29299 2008-04-04  Bruno Haible  <bruno@clisp.org>
29300
29301         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29302         by m4/setenv.m4.
29303
29304 2008-04-03  Eric Blake  <ebb9@byu.net>
29305
29306         Ensure sane .version contents.
29307         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29308         version string.
29309         * build-aux/git-version-gen: Improve documentation.
29310
29311         Make GNU make output nicer.
29312         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29313         MAKECMDGOALS to enforce message for all command line targets.  Set
29314         srcdir for use in maint.mk.
29315
29316         Another maintainer tweak.
29317         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29318         a target that regenerates version.
29319
29320 2008-04-03  Jim Meyering  <meyering@redhat.com>
29321
29322         vc-list-files: don't cause coreutils "make po-check" failure
29323         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29324
29325 2008-04-03  Eric Blake  <ebb9@byu.net>
29326
29327         Allow VPATH usage of vc-list-files.
29328         * build-aux/vc-list-files (scriptversion): Add timestamp.
29329         (options): Add --help, --version, -C.
29330         (CVS): Support installed cvsu.
29331
29332 2008-04-02  Bruno Haible  <bruno@clisp.org>
29333
29334         Avoid some "statement with no effect" warnings from gcc.
29335         * tests/test-wctype.c (main): Explicitly ignore unused values.
29336         Reported by Jim Meyering.
29337
29338 2008-04-02  Jim Meyering  <meyering@redhat.com>
29339
29340         Avoid some warnings from "gcc -Wshadow".
29341         * tests/test-frexp.c (exp): Define to a different identifier.
29342         * tests/test-frexpl.c (exp): Likewise.
29343
29344 2008-04-03  Jim Meyering  <meyering@redhat.com>
29345
29346         bootstrap: remove dangling *.[ch] symlinks from lib
29347         * build-aux/bootstrap [dangling symlink removal]: Move find's
29348         -depth option to precede all others, to avoid a warning.
29349         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29350
29351 2008-04-02  Bruno Haible  <bruno@clisp.org>
29352
29353         Avoid some warnings from "gcc -Wshadow".
29354         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29355         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29356         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29357         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29358         Reported by Jim Meyering.
29359
29360 2008-04-01  Bruno Haible  <bruno@clisp.org>
29361
29362         Fix test to work on IRIX 6.5 with cc.
29363         * tests/test-math.c (numeric_equal): New function.
29364         (main): Use it.
29365
29366 2008-04-01  Bruno Haible  <bruno@clisp.org>
29367
29368         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29369
29370 2008-04-01  Bruno Haible  <bruno@clisp.org>
29371
29372         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29373         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29374         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29375         (Depends-on): Remove math.
29376
29377         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29378         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29379         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29380         (Depends-on): Remove math.
29381
29382         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29383         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29384         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29385         (Depends-on): Remove math.
29386         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29387         (Depends-on): Remove math.
29388
29389         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29390         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29391         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29392         (Depends-on): Remove math.
29393         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29394         (Depends-on): Remove math.
29395
29396         * tests/test-round1.c: Include nan.h.
29397         (main): Use NaNd instead of NAN.
29398         * modules/round-tests (Files): Add tests/nan.h.
29399
29400         * tests/test-trunc1.c: Include nan.h.
29401         (main): Use NaNd instead of NAN.
29402         * modules/trunc-tests (Files): Add tests/nan.h.
29403
29404         * tests/test-roundf1.c: Include nan.h.
29405         (main): Use NaNf instead of NAN.
29406         * modules/roundf-tests (Files): Add tests/nan.h.
29407
29408         * tests/test-truncf1.c: Include nan.h.
29409         (main): Use NaNf instead of NAN.
29410         * modules/truncf-tests (Files): Add tests/nan.h.
29411
29412         * tests/test-ceilf1.c: Include nan.h.
29413         (main): Use NaNf instead of NAN.
29414         * modules/ceilf-tests (Files): Add tests/nan.h.
29415
29416         * tests/test-floorf1.c: Include nan.h.
29417         (main): Use NaNf instead of NAN.
29418         * modules/floorf-tests (Files): Add tests/nan.h.
29419
29420         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29421         (main): Use NaNf instead of NAN.
29422         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29423
29424         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29425         (main): Use NaNd instead of NAN.
29426         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29427
29428         * tests/test-frexp.c: Include nan.h.
29429         (main): Use NaNd instead of NAN.
29430         * modules/frexp-tests (Files): Add tests/nan.h.
29431
29432         * lib/isnan.c: Don't include <math.h>.
29433         (FUNC): Don't use NAN macro.
29434         * modules/isnand-nolibm (Depends-on): Remove math.
29435         * modules/isnanf-nolibm (Depends-on): Remove math.
29436         * modules/isnanl (Depends-on): Remove math.
29437         * modules/isnanl-nolibm (Depends-on): Remove math.
29438
29439         * tests/nan.h: New file.
29440
29441 2008-04-01  Eric Blake  <ebb9@byu.net>
29442
29443         Fix typos.
29444         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29445         values to be the right type.
29446
29447         For now, cater to gnulib strtod inaccuracies.
29448         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29449         fractional results.  While not as nice from a QoI perspective, it
29450         is a quicker patch than correctly implementing decimal to binary
29451         rounding.
29452
29453 2008-03-31  Eric Blake  <ebb9@byu.net>
29454
29455         Guarantee a definition of NAN.
29456         * lib/math.in.h (NAN): Define if missing.
29457         * tests/test-math.c (main): Test it.
29458         * doc/posix-headers/math.texi (math.h): Document this.
29459         * lib/isnan.c (rpl_isnand): Use it.
29460         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29461         * tests/test-floorf1.c (NaN): Likewise.
29462         * tests/test-frexp.c (NaN): Likewise.
29463         * tests/test-isnand.c (NaN): Likewise.
29464         * tests/test-isnanf.c (NaN): Likewise.
29465         * tests/test-round1.c (NaN): Likewise.
29466         * tests/test-roundf1.c (NaN): Likewise.
29467         * tests/test-snprintf-posix.h (NaN): Likewise.
29468         * tests/test-sprintf-posix.h (NaN): Likewise.
29469         * tests/test-trunc1.c (NaN): Likewise.
29470         * tests/test-truncf1.c (NaN): Likewise.
29471         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29472         * tests/test-vasprintf-posix.c (NaN): Likewise.
29473         * modules/isnand-nolibm (Depends-on): Add math.
29474         * modules/isnanf-nolibm (Depends-on): Likewise.
29475         * modules/isnanl (Depends-on): Likewise.
29476         * modules/isnanl-nolibm (Depends-on): Likewise.
29477         * modules/snprintf-posix-tests (Depends-on): Likewise.
29478         * modules/sprintf-posix-tests (Depends-on): Likewise.
29479         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29480         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29481         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29482         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29483
29484 2008-03-31  Bruno Haible  <bruno@clisp.org>
29485
29486         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29487         * doc/posix-functions/strtod.texi: Likewise.
29488
29489 2008-03-31  Bruno Haible  <bruno@clisp.org>
29490
29491         * tests/test-strtod.c (main): Don't use C99 syntax.
29492
29493 2008-03-31  Bruno Haible  <bruno@clisp.org>
29494
29495         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29496         Reported by Eric Blake.
29497
29498 2008-03-31  Jim Meyering  <meyering@redhat.com>
29499
29500         Don't compare actual signbit return values.
29501         * tests/test-strtod.c (main): Rather, compare only their
29502         zero/non-zero nature.
29503
29504 2008-03-31  Eric Blake  <ebb9@byu.net>
29505
29506         More strtod documentation.
29507         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29508         failures as distinct bugs.
29509
29510 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29511
29512         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29513         Problem reported by Erik Benada in
29514         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29515
29516 2008-03-30  Bruno Haible  <bruno@clisp.org>
29517
29518         * tests/test-strtod.c: Add comments about which assertion fails on which
29519         platform.
29520         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29521
29522 2008-03-30  Eric Blake  <ebb9@byu.net>
29523
29524         Test signbit behavior on zeros.
29525         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29526         (test_signbitd, test_signbitl): Likewise.
29527
29528         More strtod touchups.
29529         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
29530         sign of negative underflow, for now.  Use .5, not .1.
29531         * doc/posix-functions/strtod.texi (strtod): Mention these
29532         limitations.
29533         Reported by Jim Meyering.
29534
29535 2008-03-30  Bruno Haible  <bruno@clisp.org>
29536
29537         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
29538         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
29539
29540 2008-03-30  Bruno Haible  <bruno@clisp.org>
29541
29542         Avoid failure when attempting to return empty iconv results on some
29543         platforms.
29544         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
29545         allocation, don't report ENOMEM when the resulting string is empty.
29546
29547 2008-03-30  Bruno Haible  <bruno@clisp.org>
29548
29549         Fix buffer overrun.
29550         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
29551         Don't consider the width for tmp_length. Check count against tmp_length
29552         before doing the padding. Ensure enough allocation during padding.
29553
29554 2008-03-30  Eric Blake  <ebb9@byu.net>
29555
29556         strtod touchups.
29557         * lib/strtod.c (strtod): Avoid compiler warnings.
29558         Reported by Jim Meyering.
29559
29560 2008-03-30  Bruno Haible  <bruno@clisp.org>
29561
29562         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
29563         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
29564         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
29565         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
29566         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
29567         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
29568         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
29569         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
29570
29571         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
29572         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
29573         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
29574         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
29575         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
29576         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
29577         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
29578         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
29579
29580         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
29581         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
29582         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
29583         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
29584         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
29585         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
29586         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
29587         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
29588
29589         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
29590         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
29591
29592         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
29593         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
29594
29595         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
29596         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
29597
29598         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
29599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
29600         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
29601
29602         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
29603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
29604         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
29605
29606         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
29607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
29608         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
29609
29610         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
29611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
29612         * modules/vasprintf (Depends-on): Add EOVERFLOW.
29613
29614         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
29615         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
29616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
29617         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
29618         (Depends-on): Add EOVERFLOW.
29619         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
29620         (Depends-on): Add EOVERFLOW.
29621         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29622         (Depends-on): Add EOVERFLOW.
29623         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
29624         (Depends-on): Add EOVERFLOW.
29625         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29626         (Depends-on): Add EOVERFLOW.
29627         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
29628         (Depends-on): Add EOVERFLOW.
29629         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29630         (Depends-on): Add EOVERFLOW.
29631         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
29632         (Depends-on): Add EOVERFLOW.
29633
29634         * lib/sprintf.c (EOVERFLOW): Remove fallback.
29635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
29636         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
29637
29638         * lib/snprintf.c (EOVERFLOW): Remove fallback.
29639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
29640         * modules/snprintf (Depends-on): Add EOVERFLOW.
29641
29642         * lib/poll.c (EOVERFLOW): Remove fallback.
29643         * modules/poll (Depends-on): Add EOVERFLOW.
29644
29645         * lib/getugroups.c (EOVERFLOW): Remove fallback.
29646         * modules/getugroups (Depends-on): Add EOVERFLOW.
29647
29648         * lib/getdelim.c (EOVERFLOW): Remove fallback.
29649         * modules/getdelim (Depends-on): Add EOVERFLOW.
29650
29651         * lib/ftell.c (EOVERFLOW): Remove fallback.
29652         * modules/ftell (Depends-on): Add EOVERFLOW.
29653
29654         * lib/fprintf.c (EOVERFLOW): Remove fallback.
29655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
29656         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
29657
29658         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
29659
29660         * modules/EOVERFLOW-tests: New file.
29661         * tests/test-EOVERFLOW.c: New file.
29662
29663         * modules/EOVERFLOW: New file.
29664         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
29665
29666 2008-03-30  Bruno Haible  <bruno@clisp.org>
29667
29668         Fix bug introduced on 2007-06-10.
29669         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
29670         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
29671
29672 2008-03-30  Bruno Haible  <bruno@clisp.org>
29673
29674         Improve freadseek's efficiency after ungetc.
29675         * lib/freadseek.c: Include freadahead.h.
29676         (freadptrinc): New function, extracted from freadseek.
29677         (freadseek): Use it in a loop. Use freadahead to determine the number
29678         of loop iterations.
29679         * modules/freadseek (Depends-on): Add freadahead.
29680         (configure.ac): Require AC_C_INLINE.
29681
29682 2008-03-30  Bruno Haible  <bruno@clisp.org>
29683
29684         * lib/freadseek.c (freadseek): Don't ignore the return value of
29685         freadptr.
29686
29687 2008-03-29  Eric Blake  <ebb9@byu.net>
29688
29689         Add hex float support.
29690         * modules/strtod (Depends-on): Add c-ctype.
29691         (Link): Mention POW_LIB.
29692         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
29693         whitespace between 'e' and exponent.
29694         * tests/test-strtod.c (main): Enable hex float tests.
29695         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
29696         now provides.
29697
29698         Document various strtod bugs, with some fixes.
29699         * doc/posix-functions/strtod.texi (strtod): Document bugs with
29700         "-0x", "inf", "nan", and hex constants.
29701         * doc/posix-functions/atof.texi (atof): Likewise.
29702         * modules/stdlib (Makefile.am): Support strtod.
29703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29704         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
29705         detect additional strtod bugs.
29706         * lib/stdlib.in.h (rpl_strtod): Add declarations.
29707         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
29708         bool where appropriate.  Parse 'inf' and 'nan'.
29709         * tests/test-strtod.c: New file.
29710         * modules/strtod (Depends-on): Add stdbool, stdlib.
29711         (configure.ac): Turn on module indicator.
29712         * modules/strtod-tests: New module.
29713
29714 2008-03-29  Eric Blake  <ebb9@byu.net>
29715
29716         Fix ftell on mingw.
29717         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
29718         * modules/ftell-tests (Depends-on): Add binary-io.
29719         * modules/ftello-tests (Depends-on): Likewise.
29720         * tests/test-ftell.c (main): Enhance test to cover behavior after
29721         ungetc.  Enforce binary mode.
29722         * tests/test-ftello.c (main): Likewise.
29723
29724         Pass test-freadseek on cygwin.
29725         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
29726         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
29727         ungetc buffer.
29728
29729         * tests/test-fflush2.c (main): Fix typo.
29730
29731 2008-03-29  Bruno Haible  <bruno@clisp.org>
29732
29733         * tests/test-fflush2.c (main): Temporarily disable the contents of
29734         this test.
29735         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
29736         Reported by Eric Blake.
29737
29738 2008-03-28  Simon Josefsson  <simon@josefsson.org>
29739
29740         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
29741         (GC_SHA224_DIGEST_SIZE): Add.
29742
29743         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
29744         (gc_hash_digest_length): Likewise.
29745         (gc_hash_buffer): Likewise.
29746
29747 2008-03-25  Bruno Haible  <bruno@clisp.org>
29748
29749         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
29750         detail which gettext release to use.
29751         Reported by Simon Josefsson.
29752
29753 2008-03-26  Jim Meyering  <meyering@redhat.com>
29754
29755         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
29756         * modules/gnumakefile (clean-GNUmakefile): Also, use
29757         test ... && ... || : syntax rather than if-then ... fi.
29758
29759         gnumakefile: Don't double-quote-expand $(VPATH) value.
29760         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
29761
29762 2008-03-24  Eric Blake  <ebb9@byu.net>
29763
29764         Alter GNUmakefile to install into top directory.
29765         * modules/maintainer-makefile: Split, and add dependency...
29766         * modules/gnumakefile: to this new module.
29767         * build-aux/GNUmakefile: Move...
29768         * top/GNUmakefile: ...here.
29769         * build-aux/maint.mk: Move...
29770         * top/maint.mk: ...here.
29771         * MODULES.html.sh (Support for maintaining...): Document new
29772         module.
29773
29774 2008-03-23  Bruno Haible  <bruno@clisp.org>
29775
29776         * gnulib-tool: New options --vc-files, --no-vc-files.
29777         (func_usage): Document them.
29778         (vc_files): New variable.
29779         (func_import): Consider vc_files.
29780         (func_create_testdir): Set vc_files to empty.
29781         Suggested by Jim Meyering and Karl Berry.
29782
29783 2008-03-23  Bruno Haible  <bruno@clisp.org>
29784
29785         Fix regex compilation error on HP-UX 11.
29786         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
29787         * modules/regex (Files): Add m4/mbstate_t.m4.
29788         Reported by Ton Voon <ton.voon@altinity.com>.
29789
29790 2008-03-23  Bruno Haible  <bruno@clisp.org>
29791
29792         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
29793
29794 2008-03-23  Eric Blake  <ebb9@byu.net>
29795             Bruno Haible  <bruno@clisp.org>
29796
29797         Install files from top/ in the destination directory.
29798         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29799         augmentation also for the files from top/.
29800         (func_import, func_create_testdir): Rewrite file names:
29801         top/filename -> filename.
29802
29803 2008-03-23  Bruno Haible  <bruno@clisp.org>
29804
29805         Tweak "gnulib --version" output.
29806         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
29807
29808 2008-03-23  Bruno Haible  <bruno@clisp.org>
29809
29810         Tweak "gnulib --version" output.
29811         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
29812         rather than contents of ChangeLog, when possible.
29813
29814 2008-03-21  Eric Blake  <ebb9@byu.net>
29815
29816         More --version tweaks.
29817         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
29818         date of last ChangeLog entry.
29819
29820 2008-03-21  Jim Meyering  <meyering@redhat.com>
29821
29822         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
29823
29824 2008-03-20  Eric Blake  <ebb9@byu.net>
29825
29826         VPATH fix.
29827         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
29828
29829 2008-03-20  Simon Josefsson  <simon@josefsson.org>
29830
29831         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
29832         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
29833
29834 2008-03-20  Eric Blake  <ebb9@byu.net>
29835
29836         Sync GNUmakefile with coreutils.
29837         * build-aux/GNUmakefile (have-Makefile): Rename...
29838         (_have-Makefile): ...to this, for namespace consideration.
29839         (GNUmakefile.cfg): Include, if present.
29840         (_autoreconf): Define a default.
29841         (_is-dist-target): New rule for rebuilds to pick up intra-release
29842         version.
29843         (maint-cfg.mk): Rename...
29844         (cfg.mk): ...to this.
29845
29846 2008-03-18  Jim Meyering  <meyering@redhat.com>
29847
29848         New script and module: mktempd
29849         * MODULES.html.sh (maint+release support): Add mktempd.
29850         * build-aux/mktempd: New file.
29851         * modules/mktempd: New file.
29852
29853 2008-03-15  Jim Meyering  <meyering@redhat.com>
29854
29855         Undo last change.
29856         * lib/sha1.c, lib/md5.c: 63 != ~63.
29857         Reported by Andreas Schwab.
29858
29859         sha1.c, md5.c: Hoist a redundant expression.
29860         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
29861         "ctx->buflen" only once, before calling *_process_block.
29862         * lib/md5.c (md5_process_bytes): Likewise.
29863
29864 2008-03-14  Eric Blake  <ebb9@byu.net>
29865
29866         Bump copyright year in files generated by gnulib-tool.
29867         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
29868         gnulib-tool, rather than hard-coding it.
29869
29870         Fix 'gnulib-tool --version' output to work with git.
29871         * gnulib-tool (func_gnulib_dir): New function, extracted from...
29872         (startup): ...here.
29873         (func_version): Use it to invoke git-version-gen, rather than
29874         relying on CVS keyword expansion.  Modernize wording.
29875         (cvsdatestamp, last_checkin_date, version): Kill unused
29876         variables.
29877
29878 2008-03-12  Jim Meyering  <meyering@redhat.com>
29879
29880         Recognize optional cast of the argument to free.
29881         * build-aux/useless-if-before-free: Update regexps.
29882
29883         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
29884
29885 2008-03-11  Bruno Haible  <bruno@clisp.org>
29886
29887         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
29888         by a single package.
29889         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
29890         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
29891         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
29892         Reported by Sam Steingold <sds@gnu.org>.
29893
29894 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29895
29896         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
29897         repositories.
29898
29899 2008-03-11  Bruno Haible  <bruno@clisp.org>
29900
29901         Avoid conflicts between local macro definitions.
29902         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29903         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
29904
29905 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
29906             Bruno Haible  <bruno@clisp.org>
29907
29908         Make va_copy work with some version of xlc on AIX 5.1.
29909         * lib/stdarg.in.h: New file.
29910         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
29911         On AIX, use a <stdarg.h> file substitute.
29912         * modules/stdarg (Files): Add lib/stdarg.in.h.
29913         (Depends-on): Add include_next.
29914         (Makefile.am): Build a stdarg.h substitute if requested.
29915         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
29916
29917 2008-03-10  Bruno Haible  <bruno@clisp.org>
29918
29919         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
29920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29921         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
29922
29923 2008-03-10  Bruno Haible  <bruno@clisp.org>
29924
29925         * modules/stdlib (Depends-on): Add include_next, remove
29926         absolute-header.
29927
29928 2008-03-09  Bruno Haible  <bruno@clisp.org>
29929
29930         * lib/freadahead.h (freadahead): Document more precisely.
29931         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
29932         the sum of both buffer sizes.
29933         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
29934         * NEWS: Document the change.
29935
29936 2008-03-09  Bruno Haible  <bruno@clisp.org>
29937
29938         Extend freadptr to return also the buffer size.
29939         * lib/freadptr.h (freadptr): Add sizep argument.
29940         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
29941         (freadptr): Add sizep argument. Determine buffer size like freadahead
29942         does.
29943         * tests/test-freadptr.c: Don't include freadahead.h.
29944         (main): Adapt for new calling convention of freadptr.
29945         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
29946         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
29947         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
29948         tests/test-freadptr2.sh.
29949         (Depends): Remove freadahead.
29950         (TESTS): Add test-freadptr2.sh.
29951         (check_PROGRAMS): Add test-freadptr2.
29952
29953 2008-03-09  Bruno Haible  <bruno@clisp.org>
29954
29955         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
29956         Report and solution by Simon Josefsson.
29957
29958 2008-03-06  Bruno Haible  <bruno@clisp.org>
29959
29960         Make fflush after ungetc work on BSD platforms.
29961         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
29962         * tests/test-fflush2.c: New file.
29963         * tests/test-fflush2.sh: New file.
29964         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
29965         tests/test-fflush2.c.
29966         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
29967         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
29968
29969 2008-03-06  Eric Blake  <ebb9@byu.net>
29970
29971         Likewise for ftello.
29972         * modules/ftello (Dependencies): Add extensions.
29973         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
29974
29975 2008-03-06  Bruno Haible  <bruno@clisp.org>
29976
29977         * modules/fseeko (Dependencies): Add extensions.
29978         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
29979         Needed on glibc systems.
29980
29981 2008-03-06  Bruno Haible  <bruno@clisp.org>
29982
29983         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
29984         email address.
29985         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29986
29987 2008-03-06  Bruno Haible  <bruno@clisp.org>
29988
29989         * users.txt: Add libgnupdf.
29990
29991 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29992
29993         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
29994         (Header File Substitutes, Function Substitutes,
29995         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
29996         (Build robot for gnulib): Fix typo.
29997
29998 2008-03-06  Bruno Haible  <bruno@clisp.org>
29999
30000         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30001         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30002
30003 2008-03-06  Bruno Haible  <bruno@clisp.org>
30004
30005         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30006         * doc/gnulib.texi: Include it.
30007
30008 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30009
30010         * modules/func (License): Change license to unlimited; there was
30011         no LGPL parts in the module anyway.
30012
30013 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30014
30015         * modules/__func__: Renamed to modules/func.
30016         * modules/__func__-tests: Renamed to modules/func-tests.
30017         * tests/test-__func__.c: Renamed to tests/test-func.c.
30018         * m4/__func__.m4: Renamed to m4/func.m4.
30019         * doc/gnulib.texi (__func__): Section renamed to func.
30020         Suggested by Eric Blake <ebb9@byu.net>.
30021
30022 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30023
30024         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30025         about __func__.  Make example self-contained.  Suggested by Eric
30026         Blake <ebb9@byu.net>.
30027
30028         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30029         Suggested by Eric Blake <ebb9@byu.net>.
30030
30031 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30032
30033         * modules/__func__: New file.
30034         * modules/__func__-tests: New file.
30035         * tests/test-__func__.c: New file.
30036         * m4/__func__.m4: New file.
30037         * doc/gnulib.texi (__func__): Document __func__ module.
30038
30039 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30040
30041         * modules/byteswap (License): Re-license as LGPLv2+.
30042
30043 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30044
30045         * doc/Makefile: Add pdf target.
30046
30047 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30048
30049         * modules/inline (License): Use 'unlimited', since there are only
30050         *.m4 files in this module.
30051
30052 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30053             Bruno Haible  <bruno@clisp.org>
30054
30055         Add support for HP C 7.1 on OpenVMS 8.3.
30056         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30057
30058 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30059
30060         Update VMS specifics.
30061         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30062
30063 2008-03-02  Jim Meyering  <meyering@redhat.com>
30064
30065         Remove the last dependency on the "free" module.
30066         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30067         Reported by Bob Proulx.
30068
30069         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30070
30071         Remove useless "if" tests before free.  Deprecate "free" module.
30072         * doc/posix-functions/free.texi: Mention that this
30073         module is no longer useful.
30074         * modules/free (Notice): Say this module is obsolete.
30075         * modules/readutmp (Depends-on): Remove free.
30076         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30077         * lib/putenv.c (putenv): Likewise.
30078         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30079         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30080         * tests/test-c-strcasestr.c (main): Likewise.
30081         * tests/test-c-strstr.c (main): Likewise.
30082         * tests/test-mbscasestr1.c (main): Likewise.
30083         * tests/test-mbscasestr2.c (main): Likewise.
30084         * tests/test-mbsstr1.c (main): Likewise.
30085         * tests/test-mbsstr2.c (main): Likewise.
30086         * tests/test-memmem.c (main): Likewise.
30087         * tests/test-strcasestr.c (main): Likewise.
30088         * tests/test-striconv.c (main): Likewise.
30089         * tests/test-striconveh.c (main): Likewise.
30090         * tests/test-striconveha.c (main): Likewise.
30091         * tests/test-strstr.c (main): Likewise.
30092
30093         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30094
30095         bootstrap: sync from coreutils again
30096         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30097
30098 2008-03-01  Jim Meyering  <meyering@redhat.com>
30099
30100         bootstrap: sync from coreutils
30101         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30102         also when the target doesn't exist.
30103
30104 2008-03-01  Eric Blake  <ebb9@byu.net>
30105
30106         Fix bugs in last patch.
30107         * lib/memchr2.c (memchr2): Fix typo.
30108         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30109         extension.
30110         Reported by Bruce Korb.
30111
30112         New module 'memchr2'.
30113         * modules/memchr2: New file.
30114         * modules/memchr2-tests: Likewise.
30115         * lib/memchr2.h: Likewise.
30116         * lib/memchr2.c: Likewise, based on memchr.c.
30117         * tests/test-memchr2.c: New test.
30118         * MODULES.html.sh (String handling): Add memchr2.
30119
30120 2008-02-29  Bruno Haible  <bruno@clisp.org>
30121
30122         * modules/freadseek-tests: New file.
30123         * tests/test-freadseek.sh: New file.
30124         * tests/test-freadseek.c: New file.
30125
30126         New module 'freadseek'.
30127         * modules/freadseek: New file.
30128         * lib/freadseek.h: New file.
30129         * lib/freadseek.c: New file.
30130         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30131
30132 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30133
30134         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30135         wydawca.
30136
30137         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30138         program_invocation_name and program_invocation_short_name are
30139         present.
30140
30141 2008-02-28  Bruno Haible  <bruno@clisp.org>
30142
30143         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30144         * tests/test-freadptr.sh: Also test non-seekable stdin.
30145
30146 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30147
30148         * build-aux/bootstrap (source_base, m4_base)
30149         (doc_base, tests_base): New variables.
30150         (gnulib_tool_options): Do not hardcode base directories, use
30151         the above variables instead.
30152
30153 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30154
30155         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30156
30157 2008-02-28  Bruno Haible  <bruno@clisp.org>
30158
30159         * modules/freadptr-tests: New file.
30160         * tests/test-freadptr.sh: New file.
30161         * tests/test-freadptr.c: New file.
30162
30163         New module 'freadptr'.
30164         * modules/freadptr: New file.
30165         * lib/freadptr.h: New file.
30166         * lib/freadptr.c: New file.
30167         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30168
30169 2008-02-26  Karl Berry  <karl@freefriends.org>
30170
30171         Sync from Libtool:
30172         * libltdl/argz.c (argz_add, argz_count): New functions.
30173         * libltdl/argz.in.h: Declare them.
30174         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30175
30176 2008-02-22  Bruno Haible  <bruno@clisp.org>
30177
30178         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30179         is a pointer type.  Needed for HP-UX 10.
30180         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30181         * doc/posix-functions/gmtime_r.texi: Likewise.
30182         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30183
30184 2008-02-24  Bruno Haible  <bruno@clisp.org>
30185
30186         * modules/environ-tests: New file.
30187         * tests/test-environ.c: New file.
30188
30189         New module 'environ'.
30190         * modules/environ: New file.
30191         * lib/unistd.in.h (environ): New declaration.
30192         * m4/environ.m4: New file.
30193         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30194         after use.
30195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30196         HAVE_DECL_ENVIRON.
30197         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30198         HAVE_DECL_ENVIRON.
30199         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30200         wrong claim that 'environ' is missing on some systems.
30201         * modules/execute (Depends-on): Add environ.
30202         * lib/execute.c (environ): Remove fallback declaration.
30203         * modules/pipe (Depends-on): Add environ.
30204         * lib/pipe.c (environ): Remove fallback declaration.
30205         * modules/setenv (Depends-on): Add environ.
30206         * lib/setenv.c (environ): Remove fallback declaration.
30207         * modules/unsetenv (Depends-on): Add environ.
30208         * lib/unsetenv.c (environ): Remove fallback declaration.
30209         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30210         m4/environ.m4.
30211         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30212         (gl_PREREQ_UNSETENV): Likewise.
30213
30214 2008-02-24  Bruno Haible  <bruno@clisp.org>
30215
30216         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30217
30218 2008-02-20  Bob Proulx  <bob@proulx.com>
30219
30220         Enable use of older two part flavor 'git describe'.
30221         * build-aux/git-version-gen: If using the older two part flavor of
30222         git version then recreate the third part now present in the
30223         newer three part flavor of git describe.
30224
30225 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30226
30227         * lib/fts.c (fts_build): Typo correction to comment.
30228
30229 2008-02-17  Bruno Haible  <bruno@clisp.org>
30230
30231         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30232         generating no-op conflicts.
30233
30234 2008-02-17  Bruno Haible  <bruno@clisp.org>
30235
30236         Speed up by 10%.
30237         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30238         result_entries, rather than an index-based loop.
30239
30240 2008-02-17  Bruno Haible  <bruno@clisp.org>
30241
30242         Speed up by 25%.
30243         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30244         'hashcode_cached'.
30245         (entry_create): New function.
30246         (entry_hashcode): Use the cached hashcode if possible.
30247         (read_changelog_file, try_split_merged_entry): Use entry_create.
30248
30249 2008-02-17  Bruno Haible  <bruno@clisp.org>
30250
30251         Speed up from O(n^2) to O(n) for long ChangeLog files.
30252         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30253         (read_changelog_file): Change implementation of entries_reversed list
30254         to rbtreehash.
30255         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30256
30257 2008-02-17  Bruno Haible  <bruno@clisp.org>
30258
30259         New option --split-merged-entry.
30260         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30261         (find_paragraph_end, try_split_merged_entry): New functions.
30262         (long_options): Add option --split-merged-entry.
30263         (usage): Document option --split-merged-entry.
30264         (main): Implement option --split-merged-entry.
30265         Reported by Eric Blake.
30266
30267 2008-02-17  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/git-merge-changelog.c: Include c-strstr.h.
30270         (main): Support the "git pull --rebase" situation.
30271         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30272         Reported by Eric Blake.
30273
30274 2008-02-16  Eric Blake  <ebb9@byu.net>
30275
30276         Avoid doubling \ in common case of "c-maybe" quoting style.
30277         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30278         eliding outer quotes.
30279         * lib/quotearg.h: Document this.
30280         * tests/test-quotearg.c (result_strings, inputs, results_g)
30281         (flag_results, locale_results): Test it by adding a new string to
30282         each test group.
30283         (compare_strings): Test new string.
30284
30285 2008-02-13  Eric Blake  <ebb9@byu.net>
30286
30287         Avoid trigraph quoting in default output.
30288         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30289         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30290         unless explicitly requested.
30291         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30292
30293 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30294
30295         Don't rely on signed integer overflowing to negative value.
30296         * lib/getugroups.c (getugroups): Include <limits.h>.
30297         Instead, compare against INT_MAX, and increment only if the test passes.
30298
30299 2008-02-13  Jim Meyering  <meyering@redhat.com>
30300         and Eric Blake  <ebb9@byu.net>
30301
30302         Avoid shadowing warning and compile errors on Linux.
30303         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30304         forwarding macros on Linux.
30305         (dcgettext): Define a stub, for Linux.
30306         (results_g, main): Avoid warnings.
30307
30308 2008-02-12  Eric Blake  <ebb9@byu.net>
30309
30310         Silence warning in last patch.
30311         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30312
30313         Quotearg part 4: add tests, fix c-maybe colon quoting.
30314         * lib/quotearg.h: Improve documentation.
30315         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30316         escapes when adding outer quotes.  When quoting trigraphs, use
30317         valid C notation.  When quoting NUL, omit extra characters if next
30318         character is not digit.  Alter prototype.
30319         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30320         callers.
30321         * modules/quotearg-tests: New module.
30322         * tests/test-quotearg.c: New test.
30323
30324 2008-02-07  Eric Blake  <ebb9@byu.net>
30325
30326         Quotearg part 3: add flag to control outer quote elision.
30327         * lib/quotearg.h (c_maybe_quoting_style): New style.
30328         (enum quoting_flags): Better documentation of flags.
30329         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30330         c-maybe style.
30331         (quotearg_buffer_restyled): Handle new flag to elide outer
30332         quotes.
30333
30334         Quotearg part 2: add flag that can control NUL elision.
30335         * lib/quotearg.h (set_quoting_flags): New prototype.
30336         * lib/quotearg.c (struct quoting_options): Add flag field.
30337         (set_quoting_flags): New function.
30338         (quotearg_buffer_restyled): Add flags parameter.
30339         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30340         (quotearg_n_options): Set the flag, since length cannot be
30341         returned.
30342         (quoting_options_from_style): Default flags correctly.
30343
30344         Quotearg part 1: more wrappers, restore quotearg_char state.
30345         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30346         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30347         (quotearg_colon_mem): New wrappers.
30348         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30349         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30350         functions.
30351         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30352         (quotearg_colon_mem): New functions.
30353
30354 2008-02-11  Bruno Haible  <bruno@clisp.org>
30355
30356         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30357         library in the current directory: it does not work with parallel make.
30358         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30359
30360 2008-02-11  Bruno Haible  <bruno@clisp.org>
30361
30362         * .gitattributes: New file.
30363
30364 2008-02-11  Jim Meyering  <meyering@redhat.com>
30365
30366         useless-if-before-free: Fix reversed exit values.
30367         * build-aux/useless-if-before-free: Use correct values
30368         for EXIT_MATCH and EXIT_NO_MATCH.
30369
30370         * build-aux/useless-if-before-free: Close stdout carefully.
30371
30372 2008-02-10  Bruno Haible  <bruno@clisp.org>
30373
30374         New module 'git-merge-changelog'.
30375         * modules/git-merge-changelog: New file.
30376         * lib/git-merge-changelog.c: New file.
30377
30378 2008-02-10  Jim Meyering  <meyering@redhat.com>
30379
30380         useless-if-before-free: New option: --list (-l).
30381
30382         useless-if-before-free: Don't exit immediately upon open failure.
30383         * build-aux/useless-if-before-free: Exit 2 for errors.
30384         Upon failure to open a file, don't exit immediately.
30385         Rather, just warn and continue with any remaining files.
30386
30387 2008-02-10  Bruno Haible  <bruno@clisp.org>
30388
30389         New abstract list operation 'node_set_value'.
30390         * lib/gl_list.h (gl_list_node_set_value): New function.
30391         (struct gl_list_implementation): New field node_set_value.
30392         * lib/gl_list.c (gl_list_node_set_value): New function.
30393         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30394         (gl_array_list_implementation): Update.
30395         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30396         (gl_carray_list_implementation): Update.
30397         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30398         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30399         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30400         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30401         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30402         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30403         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30404         Update.
30405         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30406         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30407         (gl_sublist_list_implementation): Update.
30408
30409 2008-02-10  Bruno Haible  <bruno@clisp.org>
30410
30411         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30412         Needed when ELEMENT is #defined to 'some_type *'.
30413
30414 2008-02-10  Jim Meyering  <meyering@redhat.com>
30415
30416         New script and module: useless-if-before-free
30417         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30418         * build-aux/useless-if-before-free: New file.
30419         * modules/useless-if-before-free: New file.
30420
30421         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30422
30423         xstrtol_error: Fix typo.
30424         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30425         s/exit_failure/exit_status/.
30426
30427 2008-02-09  Jim Meyering  <meyering@redhat.com>
30428
30429         New script and module: gitlog-to-changelog
30430         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30431         * modules/gitlog-to-changelog: New file.
30432         * build-aux/gitlog-to-changelog: New file.
30433
30434 2008-02-08  Jim Meyering  <meyering@redhat.com>
30435
30436         Avoid two "parameter unused" warnings.
30437         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30438         Mark "st" as used.
30439
30440         Use "git COMMAND", not "git-COMMAND".
30441         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30442         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30443         * build-aux/git-version-gen: Use "git status", not "git-status".
30444
30445 2008-02-07  Bruno Haible  <bruno@clisp.org>
30446
30447         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30448         Avoids a crash on Windows Vista.
30449         Reported by Adam Strzelecki <ono@java.pl> via
30450         Simon Josefsson <simon@josefsson.org>.
30451
30452 2008-02-06  Bruno Haible  <bruno@clisp.org>
30453
30454         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30455         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30456         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30458         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30460         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30461         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30469         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30470         left-adjust flag.
30471         * tests/test-snprintf-posix.h (test_function): Likewise.
30472         * tests/test-sprintf-posix.h (test_function): Likewise.
30473         * tests/test-vasprintf-posix.c (test_function): Likewise.
30474         * doc/posix-functions/fprintf.texi: Update.
30475         * doc/posix-functions/printf.texi: Update.
30476         * doc/posix-functions/snprintf.texi: Update.
30477         * doc/posix-functions/sprintf.texi: Update.
30478         * doc/posix-functions/vfprintf.texi: Update.
30479         * doc/posix-functions/vprintf.texi: Update.
30480         * doc/posix-functions/vsnprintf.texi: Update.
30481         * doc/posix-functions/vsprintf.texi: Update.
30482         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30483
30484 2008-02-06  Bruno Haible  <bruno@clisp.org>
30485
30486         Fix bug introduced on 2008-01-26.
30487         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30488
30489 2008-02-06  Bruno Haible  <bruno@clisp.org>
30490
30491         Fix bug introduced on 2007-06-10.
30492         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30493         !NEED_PRINTF_FLAG_ZERO.
30494
30495 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30496
30497         getloadavg: use libperfstat on AIX5
30498         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30499
30500 2008-02-03  Bruno Haible  <bruno@clisp.org>
30501
30502         * lib/diffseq.h: Add comments about required #includes.
30503         Reported by Michael Biggs <gnulib@doubleplum.net>.
30504
30505 2008-02-01  Bruno Haible  <bruno@clisp.org>
30506
30507         * users.txt: Add gnuit.
30508
30509 2008-01-31  Bruno Haible  <bruno@clisp.org>
30510
30511         * lib/md4.c (set_uint32): Mark as inline.
30512         * lib/md5.c (set_uint32): Likewise.
30513         * lib/sha1.c (set_uint32): Likewise.
30514         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30515         * m4/md5.m4 (gl_MD5): Likewise.
30516         * m4/sha1.m4 (gl_SHA1): Likewise.
30517
30518 2008-01-31  Jim Meyering  <meyering@redhat.com>
30519
30520         Use "sizeof VAR", rather than a literal "4".
30521         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30522         * lib/md4.c (md4_read_ctx): Likewise.
30523         * lib/sha1.c (sha1_read_ctx): Likewise.
30524
30525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30526
30527         * tests/test-sha1.c: New file, based on test-md5.c.
30528
30529         * modules/crypto/sha1-tests: New file.
30530
30531 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30532
30533         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
30534
30535 2008-01-31  Jim Meyering  <meyering@redhat.com>
30536
30537         Prefer "sizeof v" over the equivalent "4".
30538         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
30539         * lib/md5.c (set_uint32): Likewise.
30540         * lib/sha1.c (set_uint32): Likewise.
30541
30542 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30543
30544         * lib/sha1.c (set_uint32): Mark function as static.
30545
30546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30547
30548         md2: clarify comments to say that alignment is not required.
30549         * lib/md2.h: Remove warning about alignment in comment.
30550         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
30551         never been required.
30552
30553 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30554
30555         md4: adapt alignment constraint fix from sha1.
30556         * lib/md4.c (set_uint32): New function, from sha1.c
30557         (md4_read_ctx): Use it.
30558         (md4_finish_ctx): Doc fix.
30559         * lib/md4.h: Doc fix.
30560
30561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30562
30563         md5: adapt alignment constraint fix from sha1.
30564         * lib/md5.c (set_uint32): New function, from sha1.c
30565         (md5_read_ctx): Use it.
30566         (md5_finish_ctx): Doc fix.
30567         * lib/md5.h: Doc fix.
30568
30569 2008-01-30  Peter Palfrader  <weasel@debian.org>
30570
30571         sha1: remove the result buffer alignment constraint
30572         * lib/sha1.c (set_uint32): New function.
30573         (sha1_read_ctx): Rewrite to remove the result buffer alignment
30574         constraint.
30575         (sha1_finish_ctx): Remove comment warning about alignment constraint.
30576         * lib/sha1.h: Likewise.
30577
30578 2008-01-30  Andreas Schwab  <schwab@suse.de>
30579             Bruno Haible  <bruno@clisp.org>
30580
30581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
30582         correct definition of LDBL_MIN_EXP.
30583
30584 2008-01-30  Karl Berry  <karl@gnu.org>
30585
30586         * config/srclist-update: try to preserve x bit on updates.
30587         * config/srclistvars.sh: update for karl.
30588
30589 2008-01-29  Jim Meyering  <meyering@redhat.com>
30590
30591         vasnprintf.c: Avoid warning about unused label
30592         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
30593         "overflow" label definition and associated code with the
30594         same cpp condition that guards the sole use of that label.
30595
30596 2008-01-26  Bruno Haible  <bruno@clisp.org>
30597
30598         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
30599         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
30600         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
30601         * lib/isnanl-nolibm.h (isnanl): Likewise.
30602         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30603
30604 2008-01-26  Bruno Haible  <bruno@clisp.org>
30605
30606         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
30607         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
30608
30609 2008-01-26  Bruno Haible  <bruno@clisp.org>
30610
30611         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
30612         GCC >= 4.0 built-in.
30613         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
30614
30615 2008-01-26  Bruno Haible  <bruno@clisp.org>
30616
30617         Rename isnan, applicable to 'double' only, to isnand.
30618         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
30619         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
30620         (configure.ac): Update.
30621         (Include): Replace "isnan.h" with "isnand.h".
30622         * m4/isnand.m4: Renamed from m4/isnan.m4.
30623         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
30624         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
30625         instead of isnan.c.
30626         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
30627         instead of HAVE_ISNAN_IN_LIBC.
30628         (isnand): Renamed from isnan.
30629         * lib/isnand.c: New file.
30630         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
30631         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
30632         (Makefile.am): Update.
30633         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
30634         Include isnand.h instead of isnan.h.
30635         (main): Test isnand instead of isnan.
30636         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
30637         isnan-nolibm.
30638         * modules/frexp (Depends-on): Likewise.
30639         * modules/frexp-tests (Depends-on): Likewise.
30640         * modules/frexp-nolibm (Depends-on): Likewise.
30641         * modules/frexp-nolibm-tests (Depends-on): Likewise.
30642         * modules/isfinite (Depends-on): Likewise.
30643         * modules/round-tests (Depends-on): Likewise.
30644         * modules/signbit (Depends-on): Likewise.
30645         * modules/signbit-tests (Depends-on): Likewise.
30646         * modules/snprintf-posix (Depends-on): Likewise.
30647         * modules/sprintf-posix (Depends-on): Likewise.
30648         * modules/trunc-tests (Depends-on): Likewise.
30649         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30650         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30651         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30652         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30653         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30654         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30655         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30656         * modules/vasnprintf-posix (Depends-on): Likewise.
30657         * modules/vasprintf-posix (Depends-on): Likewise.
30658         * modules/vfprintf-posix (Depends-on): Likewise.
30659         * modules/vsnprintf-posix (Depends-on): Likewise.
30660         * modules/vsprintf-posix (Depends-on): Likewise.
30661         * lib/frexp.c: Include isnand.h instead of isnan.h.
30662         (ISNAN): Set to isnand instead of isnan.
30663         * lib/isfinite.c: Include isnand.h instead of isnan.h.
30664         (gl_isfinited): Use isnand instead of isnan.
30665         * lib/signbitd.c: Include isnand.h instead of isnan.h.
30666         (gl_signbitd): Use isnand instead of isnan.
30667         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
30668         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
30669         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
30670         (main): Use isnand instead of isnan.
30671         * tests/test-round1.c: Include isnand.h.
30672         (main): Use isnand instead of isnan.
30673         * tests/test-round2.c: Include isnand.h instead of isnan.h.
30674         (ISNAN): Set to isnand instead of isnan.
30675         * tests/test-trunc1.c: Include isnand.h.
30676         (main): Use isnand instead of isnan.
30677         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
30678         (equal): Use isnand instead of isnan.
30679         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
30680         isnand-nolibm.
30681         * NEWS: Mention the change.
30682
30683 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
30684             Bruno Haible  <bruno@clisp.org>
30685
30686         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
30687         the GCC builtins for signbits are present and set
30688         REPLACE_SIGNBIT_USING_GCC if so.
30689         * lib/math.in.h (signbit): Define using GCC builtins if
30690         REPLACE_SIGNBIT_USING_GCC is set.
30691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
30692         REPLACE_SIGNBIT_USING_GCC.
30693         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
30694
30695 2008-01-25  Jim Meyering  <meyering@redhat.com>
30696
30697         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
30698         * lib/poll.c: Include <config.h>, not "config.h".
30699         * tests/test-getaddrinfo.c: Likewise.
30700
30701 2008-01-25  Simon Josefsson  <simon@josefsson.org>
30702
30703         * modules/sockets-tests: New file.
30704
30705 2008-01-24  Simon Josefsson  <simon@josefsson.org>
30706
30707         * modules/sockets: New module, can be used to call WSA_Startup and
30708         WSA_Cleanup when needed.
30709
30710         * lib/sockets.h, lib/sockets.c: New files.
30711
30712         * m4/sockets.m4: New file.
30713
30714         * tests/test-sockets.c: New file.
30715
30716 2008-01-19  Bruno Haible  <bruno@clisp.org>
30717
30718         * doc/posix-headers: Renamed from doc/headers.
30719         * doc/posix-functions: Renamed from doc/functions.
30720         * doc/gnulib.texi: Update.
30721
30722 2008-01-19  Bruno Haible  <bruno@clisp.org>
30723
30724         * doc/glibc-functions/strcasestr.texi: Include contents of
30725         doc/functions/strcasestr.texi, fixing the list of platforms.
30726         * doc/functions/strcasestr.texi: Remove file.
30727
30728 2008-01-19  Bruno Haible  <bruno@clisp.org>
30729
30730         * doc/glibc-functions/memmem.texi: Include contents of
30731         doc/functions/memmem.texi.
30732         * doc/functions/memmem.texi: Remove file.
30733
30734 2008-01-18  Bruno Haible  <bruno@clisp.org>
30735
30736         * doc/glibc-functions/*.texi: New files.
30737         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
30738         to use the new files.
30739
30740 2008-01-17  Bruno Haible  <bruno@clisp.org>
30741
30742         * tests/test-gethostname.c (main): Fix printf statement.
30743
30744 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30745
30746         * modules/gethostname-tests: New file.
30747
30748         * tests/test-gethostname.c: New file.
30749
30750 2008-01-17  Simon Josefsson  <simon@josefsson.org>
30751
30752         * lib/gethostname.c: Include string.h unconditionally, strncpy is
30753         used by the UNAME case.  Reported by Bruno Haible
30754         <bruno@clisp.org>.
30755
30756 2008-01-17  Eric Blake  <ebb9@byu.net>
30757
30758         Convert c-strcasestr to be more efficient.
30759         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
30760         (Depends-on): Add c-strcase, remove malloca, strnlen.
30761         * tests/test-c-strcasestr.c (main): Enhance test.
30762         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
30763
30764 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
30765
30766         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
30767         Use it in creating po/Makevars.
30768
30769 2008-01-15  Simon Josefsson  <simon@josefsson.org>
30770
30771         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
30772         Applications that requires it should initialize libgcrypt
30773         manually.
30774
30775 2008-01-16  Simon Josefsson  <simon@josefsson.org>
30776
30777         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
30778
30779 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30780
30781         Fix problem with getdate on mingw32 reported by Simon Josefsson
30782         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
30783         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
30784         tzname", when deciding whether to declare tzname.
30785         * lib/strftime.c (tzname): Likewise.
30786
30787 2008-01-15  Bruno Haible  <bruno@clisp.org>
30788
30789         Work around a MacOS X 10.5 bug in frexpl().
30790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
30791         * doc/functions/frexpl.texi: Document the bug.
30792         Reported by Elias Pipping <pipping@gentoo.org>.
30793
30794 2008-01-14  Eric Blake  <ebb9@byu.net>
30795
30796         Touch up previous patch.
30797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
30798         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
30799
30800         Convert strcasestr module to use Two-Way algorithm.
30801         * modules/strcasestr-simple: New module, based on the old
30802         strcasestr, but with Two-Way rather than KMP.
30803         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
30804         * lib/string.in.h (rpl_strcasestr): Declare.
30805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
30806         performance.
30807         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
30808         * modules/string (Makefile.am): Support strcasestr.
30809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30810         * modules/strcasestr-tests (Depends-on): Check for alarm.
30811         * tests/test-strcasestr.c: Augment test.
30812         * lib/str-two-way.h: Clean up stray macro.
30813         * NEWS: Document new module.
30814         * MODULES.html.sh (string handling): Likewise.
30815         * doc/functions/strcasestr.texi: New file.
30816         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
30817         here, since it is not a POSIX function.
30818
30819 2008-01-14  Colin Watson  <cjwatson@debian.org>
30820             Bruno Haible  <bruno@clisp.org>
30821
30822         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
30823         works fine; if not, set REPLACE_STRSIGNAL.
30824         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
30825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30826         REPLACE_STRSIGNAL.
30827         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
30828         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
30829         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
30830
30831 2008-01-14  Bruno Haible  <bruno@clisp.org>
30832
30833         * modules/strsignal (Include): Change to <string.h>.
30834
30835 2008-01-14  Colin Watson  <cjwatson@debian.org>
30836
30837         * modules/argp (Notice): Add a notice recommending to change
30838         XGETTEXT_OPTIONS.
30839         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
30840
30841 2008-01-13  Colin Watson  <cjwatson@debian.org>
30842
30843         * modules/strsignal-tests: New file.
30844         * tests/test-strsignal.c: New file.
30845
30846         * lib/strsignal.c: New file, from glibc with modifications.
30847         * lib/siglist.h: New file, from glibc with modifications.
30848         * lib/string.in.h (strsignal): New declaration.
30849         * m4/strsignal.m4: New file.
30850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30851         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
30852         * modules/strsignal: New file.
30853         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
30854         HAVE_DECL_STRSIGNAL.
30855
30856 2008-01-13  Bruno Haible  <bruno@clisp.org>
30857
30858         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
30859         locale encoding is not ASCII. Needed for OpenBSD 4.0.
30860         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30862
30863 2008-01-13  Bruno Haible  <bruno@clisp.org>
30864
30865         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
30866         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
30867         * lib/argp.h (__attribute__): Likewise.
30868         * lib/c-stack.c (__attribute__): Likewise.
30869         * lib/error.h (__attribute__): Likewise.
30870         * lib/fts.c (__attribute__): Likewise.
30871         * lib/openat.h (__attribute__): Likewise.
30872         * lib/stdio.in.h (__attribute__): Likewise.
30873         * lib/string.in.h (__attribute__): Likewise.
30874         * lib/utimens.c (__attribute__): Likewise.
30875         * lib/vasnprintf.h (__attribute__): Likewise.
30876         * lib/xalloc.h (__attribute__): Likewise.
30877         * lib/xprintf.h (__attribute__): Likewise.
30878         * lib/xstrtol.h (__attribute__): Likewise.
30879         * lib/xvasprintf.h (__attribute__): Likewise.
30880
30881 2008-01-12  Bruno Haible  <bruno@clisp.org>
30882
30883         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
30884         * doc/glibc-headers/a.out.texi: New file.
30885         * doc/glibc-headers/aliases.texi: New file.
30886         * doc/glibc-headers/alloca.texi: New file.
30887         * doc/glibc-headers/ar.texi: New file.
30888         * doc/glibc-headers/argp.texi: New file.
30889         * doc/glibc-headers/argz.texi: New file.
30890         * doc/glibc-headers/byteswap.texi: New file.
30891         * doc/glibc-headers/crypt.texi: New file.
30892         * doc/glibc-headers/endian.texi: New file.
30893         * doc/glibc-headers/envz.texi: New file.
30894         * doc/glibc-headers/err.texi: New file.
30895         * doc/glibc-headers/error.texi: New file.
30896         * doc/glibc-headers/execinfo.texi: New file.
30897         * doc/glibc-headers/fpu_control.texi: New file.
30898         * doc/glibc-headers/fstab.texi: New file.
30899         * doc/glibc-headers/fts.texi: New file.
30900         * doc/glibc-headers/getopt.texi: New file.
30901         * doc/glibc-headers/ieee754.texi: New file.
30902         * doc/glibc-headers/ifaddrs.texi: New file.
30903         * doc/glibc-headers/libintl.texi: New file.
30904         * doc/glibc-headers/mcheck.texi: New file.
30905         * doc/glibc-headers/mntent.texi: New file.
30906         * doc/glibc-headers/obstack.texi: New file.
30907         * doc/glibc-headers/paths.texi: New file.
30908         * doc/glibc-headers/printf.texi: New file.
30909         * doc/glibc-headers/pty.texi: New file.
30910         * doc/glibc-headers/resolv.texi: New file.
30911         * doc/glibc-headers/shadow.texi: New file.
30912         * doc/glibc-headers/sysexits.texi: New file.
30913         * doc/glibc-headers/ttyent.texi: New file.
30914
30915 2008-01-12  Jim Meyering  <meyering@redhat.com>
30916
30917         announce-gen: emit Gnulib's git-based version string.
30918         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
30919         New option --gnulib-version=V, where V is expected to be
30920         the output of running git describe in the gnulib directory.
30921         (get_tool_versions): Request feedback on xdelta.  I suspect it's
30922         not useful, and plan to stop publishing an xdelta file with each
30923         coreutils release.
30924
30925         * build-aux/announce-gen: Also check for lzma-compressed files.
30926
30927 2008-01-11  Bruno Haible  <bruno@clisp.org>
30928
30929         * tests/test-memmem.c (main): Increase maximum allowed time.
30930         * tests/test-strstr.c (main): Likewise.
30931
30932 2008-01-11  Bruno Haible  <bruno@clisp.org>
30933
30934         * doc/functions/memmem.texi: Add more precisions about platforms.
30935         * doc/functions/strstr.texi: Likewise.
30936
30937 2008-01-10  Eric Blake  <ebb9@byu.net>
30938
30939         * m4/strstr.m4: Delete cruft from copy-n-paste.
30940         Reported by Bruno Haible.
30941
30942 2008-01-10  Bruno Haible  <bruno@clisp.org>
30943
30944         Make c-strstr rely on strstr.
30945         * lib/c-strstr.c: Don't include str-kmp.h.
30946         (c_strstr): Define in terms of strstr.
30947         * modules/c-strstr (Files): Remove lib/str-kmp.h.
30948         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
30949
30950 2008-01-10  Bruno Haible  <bruno@clisp.org>
30951
30952         * doc/gnulib.texi (String Functions in C Locale): New section.
30953         * doc/c-ctype.texi: New file.
30954         * doc/c-strcase.texi: New file.
30955         * doc/c-strcaseeq.texi: New file.
30956         * doc/c-strcasestr.texi: New file.
30957         * doc/c-strstr.texi: New file.
30958         * doc/c-strtod.texi: New file.
30959         * doc/c-strtold.texi: New file.
30960
30961 2008-01-10  Eric Blake  <ebb9@byu.net>
30962
30963         * lib/relocatable.h: Fix a comment.
30964
30965 2008-01-10  Eric Blake  <ebb9@byu.net>
30966
30967         Share two-way algorithm.
30968         * lib/str-two-way.h: New file, merged from...
30969         * lib/memmem.c: ...here...
30970         * lib/strstr.c: ...and here.
30971         * modules/memmem (Files): Use it.
30972         * modules/strstr (Files): Likewise.
30973
30974         Avoid quadratic strstr implementations.
30975         * lib/strstr.c: New file.
30976         * m4/strstr.m4: Likewise.
30977         * modules/strstr: Likewise.
30978         * modules/strstr-tests: Likewise.
30979         * tests/test-strstr.c: Likewise.
30980         * lib/string.in.h (rpl_strstr): Declare.
30981         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
30982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
30983         * modules/string (Makefile.am): Likewise.
30984         * MODULES.html.sh (string handling): Mention new module.
30985         * doc/functions/strstr.texi (strstr): Document the bug.
30986
30987 2008-01-10  Bruno Haible  <bruno@clisp.org>
30988
30989         * lib/relocatable.h (relocate): State whether result is freshly
30990         allocated or not.
30991         * lib/relocatable.c (relocate): Return a freshly allocated string
30992         instead of a pointer to a privately held string.
30993         Reported by Sylvain Beucler <beuc@gnu.org>.
30994
30995 2008-01-10  Colin Watson  <cjwatson@debian.org>
30996
30997         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
30998         s/S_ISNLK/S_ISLNK/.
30999
31000 2008-01-09  Bruno Haible  <bruno@clisp.org>
31001
31002         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31003         and other files.
31004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31005         if it's only a guess.
31006         * modules/memmem: Simplify by depending on memmem-simple.
31007
31008 2008-01-09  Bruno Haible  <bruno@clisp.org>
31009
31010         Work around OpenBSD 4.0 tdelete() bug.
31011         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31012         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31013         macros and don't redefine the enum values.
31014         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31015         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31016         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31017
31018 2008-01-09  Bruno Haible  <bruno@clisp.org>
31019
31020         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31021         (main): Don't perform the tests if setlocale did not install a UTF-8
31022         locale. Needed on OpenBSD 4.0.
31023         * modules/wcwidth-tests (Depends-on): Add localcharset.
31024
31025 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31026
31027         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31028         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31029         * NEWS: announce this.
31030         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31031
31032 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31033         and Eric Blake  <ebb9@byu.net>
31034
31035         Add memmem-simple module.
31036         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31037         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31038         * modules/memmem-simple: New file.
31039         * modules/memmem (Description): Tweak.
31040         * MODULES.html.sh (string handling): Mention new module.
31041         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31042         addressed by memmem-simple.
31043         * NEWS: Document the difference.
31044
31045 2008-01-09  Eric Blake  <ebb9@byu.net>
31046
31047         Give gcc some memmem optimization hints.
31048         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31049         (strcasestr): Declare as pure.
31050         * modules/memmem (Maintainer): Claim my implementation.
31051
31052 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31053
31054         Support AIX 6.1 and higher.
31055         * build-aux/config.libpath: Likewise.
31056         * build-aux/config.rpath: Likewise.
31057
31058 2008-01-08  Jim Meyering  <meyering@redhat.com>
31059             Bruno Haible  <bruno@clisp.org>
31060
31061         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31062         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31063         Reported by Peter Fales in
31064         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31065
31066 2008-01-08  Bruno Haible  <bruno@clisp.org>
31067
31068         * modules/unictype/category-of (Depends-on): Add
31069         unictype/category-none.
31070         * modules/unictype/category-and-tests (Depends-on): Add
31071         unictype/category-{L,N,Lu,Nd}.
31072         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31073         * modules/unictype/category-or-tests (Depends-on): Add
31074         unictype/category-{L,N}.
31075         * modules/unictype/category-name-tests (Depends-on): Add
31076         unictype/category-{Z,Nl}.
31077         Reported by Simon Josefsson.
31078
31079 2008-01-08  Bruno Haible  <bruno@clisp.org>
31080
31081         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31082         convention better.
31083         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31084         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31085         Reported by Peter Miller <millerp@canb.auug.org.au>.
31086
31087 2008-01-08  Eric Blake  <ebb9@byu.net>
31088
31089         Rewrite memmem to guarantee linear complexity without malloc.
31090         * lib/memmem.c (memmem): Use Two-Way rather than
31091         Knuth-Morris-Pratt, to allow O(1) space usage.
31092         (critical_factorization, two_way_short_needle)
31093         (two_way_long_needle): New functions.
31094         (knuth_morris_pratt): Delete.
31095         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31096         Add stdint.
31097         * tests/test-memmem.c (main): Add tests for periodic needle and
31098         sublinear performance.
31099         * doc/functions/memmem.texi (memmem): Document other deficiencies
31100         in cygwin and older glibc.
31101
31102 2008-01-08  Bruno Haible  <bruno@clisp.org>
31103
31104         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31105         augmentation.
31106
31107 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31108
31109         Add a configure time option: --disable-acl.
31110         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31111         AC_ARG_ENABLE(acl).
31112
31113 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31114
31115         * tests/test-localename.c: Don't include obsolete "setenv.h".
31116
31117         * modules/localename-tests (Depends-on): Need unsetenv.
31118
31119 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31120
31121         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31122
31123 2008-01-06  Colin Watson  <cjwatson@debian.org>
31124
31125         * users.txt: Add man-db.
31126
31127 2008-01-07  Bruno Haible  <bruno@clisp.org>
31128
31129         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31130         previous section name.
31131
31132 2008-01-07  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/progname.c (set_program_name): Don't strip off a leading
31135         "lt-" prefix outside a .libs directory.
31136         Suggested by Paul Eggert.
31137
31138 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31139             Bruno Haible  <bruno@clisp.org>
31140
31141         Improve memory cleanup in 'relocatable' module.
31142         * lib/relocatable.h (compute_curr_prefix): Change return type to
31143         'char *'.
31144         * lib/relocatable.c (compute_curr_prefix): Change return type to
31145         'char *'. Free curr_installdir after use.
31146         (relocate): Free curr_prefix_better after use.
31147         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31148
31149 2008-01-01  Bruno Haible  <bruno@clisp.org>
31150
31151         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31152         failure on older glibc systems.
31153         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31154
31155 2008-01-05  Eric Blake  <ebb9@byu.net>
31156
31157         Avoid quadratic system memmem.
31158         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31159         Reported by Ralf Wildenhues.
31160
31161         Fix memmem test for mingw.
31162         * modules/memmem-tests (configure.ac): Check for alarm.
31163         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31164         it.
31165         * doc/functions/memmem.texi: New file.
31166         * doc/gnulib.texi (Function Substitutes): Add memmem.
31167         Reported by Bruno Haible.
31168
31169 2008-01-04  Bruno Haible  <bruno@clisp.org>
31170
31171         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31172         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31173         gl_HEADER_STRING_H_DEFAULTS.
31174
31175 2008-01-04  Eric Blake  <ebb9@byu.net>
31176
31177         Shorten duration of memmem test.
31178         * tests/test-memmem.c (main): Use alarm to declare failure if test
31179         is taking too long.
31180         Reported by Ralf Wildenhues.
31181
31182 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31183
31184         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31185         string, needed by strerror.
31186
31187 2008-01-03  Colin Watson  <cjwatson@debian.org>
31188             Bruno Haible  <bruno@clisp.org>
31189
31190         * doc/gnulib-tool.texi (Localization): New section.
31191
31192 2008-01-02  Bruno Haible  <bruno@clisp.org>
31193
31194         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31195         variables to 'unsigned char *' type.
31196         Reported by Paul Eggert.
31197
31198 2008-01-02  Jim Meyering  <jim@meyering.net>
31199
31200         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31201
31202 2007-12-31  Jim Meyering  <jim@meyering.net>
31203
31204         Avoid use of private FTS type name.
31205         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31206
31207 2007-12-30  Karl Berry  <karl@gnu.org>
31208
31209         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31210         work around defect in Texinfo and/or the standalone Info browser.
31211
31212 2007-12-30  Bruno Haible  <bruno@clisp.org>
31213
31214         Unify 5 copies of the KMP code.
31215         * lib/str-kmp.h: New file.
31216         * lib/c-strcasestr.c: Include str-kmp.h.
31217         (knuth_morris_pratt): Remove function.
31218         (c_strcasestr): Update.
31219         * lib/c-strstr.c: Include str-kmp.h.
31220         (knuth_morris_pratt): Remove function.
31221         (c_strcasestr): Update.
31222         * lib/mbscasestr.c: Include str-kmp.h.
31223         (knuth_morris_pratt_unibyte): Remove function.
31224         * lib/mbsstr.c: Include str-kmp.h.
31225         (knuth_morris_pratt_unibyte): Remove function.
31226         * lib/strcasestr.c: Include str-kmp.h.
31227         (knuth_morris_pratt): Remove function.
31228         (strcasestr): Update.
31229         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31230         * modules/c-strstr (Files): Likewise.
31231         * modules/mbscasestr (Files): Likewise.
31232         * modules/mbsstr (Files): Likewise.
31233         * modules/strcasestr (Files): Likewise.
31234         Suggested by Paul Eggert.
31235
31236 2007-12-30  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31239         defined.
31240
31241 2007-12-30  Bruno Haible  <bruno@clisp.org>
31242
31243         * lib/xmalloca.h: Include xalloc.h.
31244         (xnmalloca): New macro.
31245
31246 2007-12-30  Bruno Haible  <bruno@clisp.org>
31247
31248         * lib/malloca.h (nmalloca): New macro.
31249         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31250         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31251         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31252         knuth_morris_pratt_multibyte): Likewise.
31253         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31254         knuth_morris_pratt_multibyte): Likewise.
31255         * lib/memmem.c (knuth_morris_pratt): Likewise.
31256         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31257
31258 2007-12-25  Bruno Haible  <bruno@clisp.org>
31259
31260         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31261         * lib/glob.c: Don't include openat.h.
31262         (link_exists2_p): Add back the code that deals with the
31263         !GLOB_ALTDIRFUNC case.
31264         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31265         let it do the filename concatenation.
31266         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31267         * modules/glob (Depends-on): Remove openat.
31268
31269 2007-12-31  Bruno Haible  <bruno@clisp.org>
31270
31271         * modules/dirfd (License): Change to LGPLv2+.
31272         Approved by Jim Meyering.
31273
31274 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31275
31276         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31277         when multiplying M by sizeof (size_t).
31278
31279 2007-12-10  Martin Lambers  <marlam@marlam.de>
31280
31281         Override getpagesize on mingw.
31282         * lib/getpagesize.c: New file.
31283         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31284         * modules/getpagesize (Files): Add lib/getpagesize.c.
31285         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31287         REPLACE_GETPAGESIZE.
31288         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31289
31290 2007-12-25  Bruno Haible  <bruno@clisp.org>
31291
31292         * modules/localcharset (Notice): New field.
31293         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31294         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31295
31296 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31297             Bruno Haible  <bruno@clisp.org>
31298
31299         Avoid using the syntax symbol() in formatted documentation.
31300         * MODULES.html.sh (func_module): When replacing symbol() with a
31301         hyperlink, remove the parentheses. Show an error if some remain.
31302         Recognize and render the '...' syntax.
31303         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31304         Rework. Add paragraph about GCC's inlining.
31305         * doc/alloca.texi: Likewise.
31306         * doc/error.texi: Remove parentheses from symbol reference.
31307         * doc/gnulib-intro.texi: Likewise.
31308         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31309         * modules/fnmatch (Description): Reword to say "the ... function".
31310         * modules/full-read (Description): Likewise.
31311         * modules/full-write (Description): Likewise.
31312         * modules/safe-read (Description): Likewise.
31313         * modules/safe-write (Description): Likewise.
31314         * modules/strchrnul (Description): Likewise.
31315         * modules/trim (Description): Likewise.
31316         * modules/error (Description): Remove parentheses from symbol
31317         references.
31318         * modules/verror (Description): Likewise.
31319         Reported by Karl Berry.
31320
31321 2007-12-25  Bruno Haible  <bruno@clisp.org>
31322
31323         Fixup after 2007-10-16 commit.
31324         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31325
31326 2007-12-24  Bruno Haible  <bruno@clisp.org>
31327
31328         Make --enable-relocatable work with DESTDIR.
31329         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31330         to compute installdir from destprog.
31331         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31332         also set the RELOC_DESTDIR variable.
31333         Reported by Левашев Иван <octagram@bluebottle.com>.
31334
31335 2007-12-24  Bruno Haible  <bruno@clisp.org>
31336
31337         Fix link error due to xalloc_die().
31338         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31339         of xreadlink.
31340         * lib/relocwrapper.c: Update comments.
31341         * build-aux/install-reloc: Remove xreadlink.c from file list.
31342         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31343         xreadlink.c.
31344         Reported by Левашев Иван <octagram@bluebottle.com>.
31345
31346 2007-12-24  Bruno Haible  <bruno@clisp.org>
31347
31348         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31349         * lib/setenv.h: Remove file.
31350         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31351         lib/setenv.h.
31352         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31353         (Depends-on): Add stdlib.
31354         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31355         gl_FUNC_UNSETENV.
31356         (Include): Replace setenv.h with <stdlib.h>.
31357         * modules/unsetenv: New file.
31358         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31359         * lib/unsetenv.c: Include <stdlib.h> first.
31360         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31361         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31362         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31363         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31364         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31365         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31367         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31368         * doc/functions/unsetenv.texi: Update.
31369         * modules/xsetenv (Depends-on): Add unsetenv.
31370         * modules/getdate (Depends-on): Likewise.
31371         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31372         * lib/xsetenv.c: Don't include setenv.h.
31373         * lib/getdate.y: Likewise.
31374         * lib/relocwrapper.c: Likewise.
31375         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31376         (Depends-on): Add stdlib.
31377         * NEWS: Mention the changes.
31378         Reported by Левашев Иван <octagram@bluebottle.com>.
31379
31380 2007-12-23  Bruno Haible  <bruno@clisp.org>
31381
31382         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31383         indentation.
31384
31385 2007-12-23  Bruno Haible  <bruno@clisp.org>
31386
31387         * lib/c-strcasestr.c: Add more comments.
31388         * lib/c-strstr.c: Likewise.
31389         * lib/mbscasestr.c: Likewise.
31390         * lib/mbsstr.c: Likewise.
31391         * lib/strcasestr.c: Likewise.
31392         * lib/memmem.c: Likewise.
31393
31394 2007-12-23  Bruno Haible  <bruno@clisp.org>
31395
31396         * tests/test-memmem.c: Include <string.h> first.
31397
31398 2007-12-22  Bruno Haible  <bruno@clisp.org>
31399
31400         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31401         the contents of $testsbase.
31402         Reported by Ralf Wildenhues.
31403
31404 2007-12-22  Bruno Haible  <bruno@clisp.org>
31405
31406         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31407         two variables local_ldadd_before, local_ldadd_last.
31408
31409 2007-12-20  Eric Blake  <ebb9@byu.net>
31410
31411         Work around circular library issue when cross-compiling.
31412         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31413         that progname.o does not need to pull in rpl_memcmp.
31414
31415 2007-12-19  Eric Blake  <ebb9@byu.net>
31416
31417         Fix memmem to avoid O(n^2) worst-case complexity.
31418         * lib/memmem.c (knuth_morris_pratt): New function.
31419         (memmem): Use it if first few naive iterations fail.
31420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31421         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31422         * modules/memchr (License): Likewise.
31423         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31424         malloca.
31425         * tests/test-memmem.c: Rewrite, borrowing ideas from
31426         test-mbsstr1.c; the old version wouldn't even compile!
31427         * modules/memmem-tests: New file.
31428         * lib/string.in.h (rpl_memmem): Add declaration.
31429         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31431         REPLACE_MEMMEM.
31432
31433 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31434
31435         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31436         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31437         before any system include files, and undef after them all.  This
31438         should fix a problem on VMS reported by John E. Malmberg in
31439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31440
31441 2007-12-17  Eric Blake  <ebb9@byu.net>
31442
31443         Revert addition of verify, for BSD/OS.
31444         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31445         can't handle large files, for the sake of obsolete platforms.
31446         * modules/fseeko (Depends-on): Remove verify.
31447         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31448         * doc/functions/ftello.texi (ftello): Likewise.
31449         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31450         Reported by Larry Jones.
31451
31452 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31453
31454         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31455         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31456
31457 2007-12-17  Jim Meyering  <meyering@redhat.com>
31458
31459         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31460         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31461         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31462         * modules/getcwd (Depends-on): Add openat.
31463         Reported by Petr Salinger.
31464
31465 2007-12-17  Bruno Haible  <bruno@clisp.org>
31466
31467         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31468         avoid a segmentation fault of the configure test on x86_64 systems.
31469
31470 2007-12-15  Jim Meyering  <meyering@redhat.com>
31471
31472         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31473
31474 2007-12-13  Eric Blake  <ebb9@byu.net>
31475
31476         Another fseek test.
31477         * tests/test-fseek.c (main): Also test ungetc handling.
31478         * tests/test-fseeko.c (main): Likewise.
31479         * modules/fseeko (Depends-on): Add verify.
31480         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31481         large.
31482         Reported by Larry Jones.
31483
31484         Fix fseeko on mingw.
31485         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31486         seek.
31487
31488         Beef up fseek tests.
31489         * tests/test-fseek.c (main): Also test eof handling.
31490         * tests/test-fseeko.c (main): Likewise.
31491         Reported by Larry Jones.
31492
31493 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31494
31495         Fix fseeko on BSD-based platforms.
31496         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31497         successful seek.
31498
31499 2007-12-12  Eric Blake  <ebb9@byu.net>
31500
31501         Allow circular dependency of separate libtests.a
31502         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31503         when use_libtests.
31504
31505 2007-12-11  Eric Blake  <ebb9@byu.net>
31506
31507         Fix bug with -0.0L in previous patch.
31508         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31509         * tests/test-isnan.c (main): Also test on zeroes.
31510         * tests/test-isnanf.c (main): Likewise.
31511         * tests/test-isnanl.h (main): Likewise.
31512
31513         Detect pseudo-denormals on x86 even when cross-compiling.
31514         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31515         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31516         invalid bit patterns that happen to satisfy ==.
31517
31518         Avoid link failures with separate libtests.a.
31519         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31520         last, to satisfy circular dependencies.
31521
31522 2007-12-11  Eric Blake  <ebb9@byu.net>
31523         and Bruno Haible  <bruno@clisp.org>
31524
31525         Fix OpenBSD 4.0 <float.h> handling of long double.
31526         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
31527         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
31528         * doc/headers/float.texi (float.h): Document OpenBSD bug.
31529
31530 2007-12-11  Jim Meyering  <meyering@redhat.com>
31531
31532         * users.txt: Add libvirt.
31533
31534         Support versions of autoconf prior to 2.59c.
31535         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
31536         if it is not already defined.
31537
31538 2007-12-09  Bruno Haible  <bruno@clisp.org>
31539
31540         Let 'gnulib-tool --import' collect sources needed for the tests in
31541         tests/ rather than in lib/.
31542         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
31543         argument. If true, add rules to generate libtests.a, and put libtests.a
31544         into $(LDADD). Consider source files in subdirectories and set
31545         uses_subdirs.
31546         (func_emit_initmacro_start, func_emit_initmacro_end,
31547         func_emit_initmacro_done): Pass all arguments explicitly.
31548         (func_import): Determine two module lists main_modules,
31549         testsrelated_modules. Determine use_libtests. Determine two variables
31550         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
31551         instead of just sed_transform_lib_file. Determine two variables
31552         main_files and testsrelated_files. Compute 'files' as the union of
31553         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
31554         func_add_or_update. In the generated gnulib-comp.m4, collect the
31555         object files for tests/ in different variables than those for lib/.
31556         Substitute LIBTESTS_LIBDEPS.
31557         (func_create_testdir): Combine the uses_subdirs results from
31558         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
31559
31560 2007-12-09  Bruno Haible  <bruno@clisp.org>
31561
31562         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
31563         the build-aux directory.
31564
31565 2007-12-09  Bruno Haible  <bruno@clisp.org>
31566
31567         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
31568         introduced on 2006-09-09.
31569
31570 2007-12-07  Jim Meyering  <meyering@redhat.com>
31571
31572         Let these macros work also with autoconf-2.59.
31573         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
31574         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
31575         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31576
31577 2007-12-06  Jim Meyering  <meyering@redhat.com>
31578
31579         Avoid a configure-time syntax error in gl_FUNC_ACL.
31580         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
31581         function in each branch, before testing the cache variable.
31582
31583 2007-12-04  Eric Blake  <ebb9@byu.net>
31584
31585         Make scripts executable.
31586         * build-aux/config.guess: Add execute permissions.
31587         * build-aux/config.sub: Likewise.
31588         * build-aux/gendocs.sh: Likewise.
31589
31590         Fix frexp on mingw.
31591         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
31592         cross-compiling.
31593         * doc/functions/frexp.texi (frexp): Document the bug.
31594
31595         Make cygwin fseeko check more reliable.
31596         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
31597         version numbers, rather than unrelated feature check.
31598         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
31599         * doc/functions/ftello.texi (ftello): Likewise.
31600         Reported by Bruno Haible.
31601
31602         * m4/strerror.m4: Bump version number.
31603
31604 2007-12-03  Bruno Haible  <bruno@clisp.org>
31605
31606         * doc/functions/mprotect.texi: Mention the mingw problem.
31607
31608 2007-12-03  Eric Blake  <ebb9@byu.net>
31609
31610         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
31611         REPLACE_STRERROR is initialized before this macro.
31612
31613 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
31614
31615         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
31616         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
31617         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
31618         put -lsec in even for programs other than 'ls'.  This fixes a problem
31619         for gettext reported by Bruno Haible in
31620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
31621         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
31622         Add support for Solaris 10.  This isn't efficient, but should get the
31623         job done for now.
31624
31625 2007-12-03  James Youngman  <jay@gnu.org>
31626
31627         * doc/regexprops-generic.texi: change "an close-group" to "a
31628         close-group" and "illegal" to "not allowed".
31629
31630 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31631
31632         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
31633         pr_byname.h. Needed for the rare case when the maintainer has done
31634         "make maintainer-clean" in the source directory and then attempts a
31635         build outside the source directory.
31636         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
31637         scripts_byname.h.
31638
31639 2007-12-02  Martin Lambers <marlam@marlam.de>
31640             Bruno Haible  <bruno@clisp.org>
31641
31642         * lib/getpagesize.h: Remove file.
31643         * lib/unistd.in.h: Include declaration of getpagesize here.
31644         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
31645         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
31646         HAVE_SYS_PARAM_H.
31647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
31648         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31649         * modules/getpagesize (Files): Remove lib/getpagesize.h.
31650         (Depends-on): Add unistd.
31651         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31652         (Include): Use <unistd.h> instead of getpagesize.h.
31653         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
31654         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
31655         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
31656         gl_GETPAGESIZE invocation, already handled by module dependency.
31657         * lib/pagealign_alloc.c: Don't include getpagesize.h.
31658
31659 2007-12-02  Bruno Haible  <bruno@clisp.org>
31660
31661         * modules/strings-tests: New file.
31662         * tests/test-strings.c: New file.
31663
31664         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
31665         * lib/strings.in.h: New file.
31666         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
31667         * m4/strings_h.m4: New file.
31668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
31669         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
31670         * modules/strings: New file.
31671         * modules/string (Makefile.am): Update.
31672         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
31673         Reported by Karl Berry.
31674
31675 2007-12-01  Eric Blake  <ebb9@byu.net>
31676
31677         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
31678         accomodate fix in cygwin 1.5.25.
31679
31680 2007-12-01  Jim Meyering  <meyering@redhat.com>
31681
31682         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
31683         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
31684         that would inhibit utf8-optimization of a regexp containing line-
31685         or buffer-anchors, e.g., `^', `$'.
31686
31687 2007-11-30  Bruno Haible  <bruno@clisp.org>
31688
31689         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
31690         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
31691         glthread_recursive_lock_init.
31692         * lib/lock.c (glthread_recursive_lock_init)
31693         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
31694         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31695
31696 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
31697
31698         New function qset_acl, like set_acl but with syscall semantics.
31699         * lib/acl.h (qset_acl): New decl.
31700         * lib/acl.c (qset_acl): New function.
31701         (set_acl): Use new function.  Use more-consistent diagnostics.
31702
31703 2007-11-28  Jim Meyering  <meyering@redhat.com>
31704
31705         * modules/physmem (License): Change from GPL to LGPLv2+.
31706
31707 2007-11-26  Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/vasnprintf.c (decode_long_double): Don't abort if the
31710         'long double' type has excess precision.
31711         Reported by Jim Meyering in
31712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
31713
31714 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31715
31716         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
31717         Sync from <http://gnu.org/licenses>.
31718         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
31719         with license text from same location.
31720         * doc/maintain.texi, doc/standards.texi:  Sync from
31721         <http://savannah.gnu.org/projects/gnustandards>.
31722
31723 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
31724         and Jim Meyering  <meyering@redhat.com>
31725
31726         Adjust getdate' grammar to accept a slightly more regular language.
31727         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
31728         Before, the former was rejected.
31729         * lib/getdate.y (digits_to_date_time): New function, factored
31730         out of ...
31731         (number): ...here.  Just call digits_to_date_time.
31732         (hybrid): New non-terminal to handle an <unsigned number,
31733         signed relative offset> sequence consistently.
31734
31735 2007-11-18  Jim Meyering  <meyering@redhat.com>
31736
31737         Pull my changes from coreutils:
31738         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
31739         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
31740         use of $gnulib_tool_option_extras, so that it's separated from the
31741         preceding argument.
31742
31743         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
31744         * build-aux/bootstrap (cp_mark_as_generated): Create any required
31745         parent destination directories before copying a file into place.
31746
31747 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
31748
31749         bootstrap: work also with 4-argument variant of AC_INIT
31750         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
31751
31752 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
31753
31754         Port test-getaddrinfo to Solaris.
31755         Problem reported by Bruno Haible in
31756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
31757         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
31758         explanation of setting 'hints'.
31759         Don't reject an implementation merely because it returns EAI_SERVICE.
31760         (EAI_SERVICE): Define to 0 if not defined.
31761
31762 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
31763
31764         The license of gnu-make and posix-shell is now "GPLed build tool".
31765         * modules/gnu-make (License): Likewise.
31766         * modules/posix-shell (License): Likewise.
31767
31768         New module posix-shell, for determining a POSIX shell
31769         or perhaps something that is close enough to a POSIX shell.
31770         * m4/posix-shell.m4: New file.
31771         * modules/posix-shell: New file.
31772
31773         * MODULES.html.sh: Mention new module.
31774
31775         New module gnu-make, for determining whether we're using GNU Make.
31776         * m4/gnu-make.m4: New file.
31777         * modules/gnu-make: New file.
31778         * MODULES.html.sh: Mention new module.
31779
31780 2007-11-14  Jim Meyering  <meyering@redhat.com>
31781
31782         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
31783         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
31784         use this macro to create a function _definition_.
31785         Remove useless "#undef ARGMATCH_DIE".
31786
31787 2007-11-14  Bruno Haible  <bruno@clisp.org>
31788
31789         * lib/config.charset: Update for OpenBSD 4.1.
31790         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
31791
31792 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
31793
31794         Document 64-bit #if problems in stdint.texi.
31795         * doc/headers/stdint.texi (stdint.h): Mention problems with
31796         64-bit-#if, and how to work around them.
31797
31798         Don't insist on 'long long int' support in the preprocessor.  It
31799         breaks too many things.  For example, PRIdMAX still uses a 'long
31800         long int' format with the latest Sun compiler, even though
31801         HAVE_LONG_LONG_INT isn't defined due to that compiler's
31802         preprocessor problem.  This causes the latest coreutils to dump
31803         core on Solaris 10 sparc with the Sun C compiler.
31804         Instead, fix the 2007-10-16 problem in a different way, by evaluating
31805         the troublesome expressions at configure-time, not at #if-time.
31806         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
31807         preprocessor.
31808         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
31809         compile-time C checks, done at 'configure'-time.
31810         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
31811         * modules/inttypes (Makefile): Substitute the new symbols that
31812         gl_INTTYPES_H now generates.
31813         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
31814
31815 2007-11-12  Bruno Haible  <bruno@clisp.org>
31816
31817         Tests for Unicode character classification functions.
31818
31819         * modules/unictype/bidicategory-byname-tests: New file.
31820         * modules/unictype/bidicategory-name-tests: New file.
31821         * modules/unictype/bidicategory-of-tests: New file.
31822         * modules/unictype/bidicategory-test-tests: New file.
31823         * modules/unictype/block-list-tests: New file.
31824         * modules/unictype/block-of-tests: New file.
31825         * modules/unictype/block-test-tests: New file.
31826         * modules/unictype/category-C-tests: New file.
31827         * modules/unictype/category-Cc-tests: New file.
31828         * modules/unictype/category-Cf-tests: New file.
31829         * modules/unictype/category-Cn-tests: New file.
31830         * modules/unictype/category-Co-tests: New file.
31831         * modules/unictype/category-Cs-tests: New file.
31832         * modules/unictype/category-L-tests: New file.
31833         * modules/unictype/category-Ll-tests: New file.
31834         * modules/unictype/category-Lm-tests: New file.
31835         * modules/unictype/category-Lo-tests: New file.
31836         * modules/unictype/category-Lt-tests: New file.
31837         * modules/unictype/category-Lu-tests: New file.
31838         * modules/unictype/category-M-tests: New file.
31839         * modules/unictype/category-Mc-tests: New file.
31840         * modules/unictype/category-Me-tests: New file.
31841         * modules/unictype/category-Mn-tests: New file.
31842         * modules/unictype/category-N-tests: New file.
31843         * modules/unictype/category-Nd-tests: New file.
31844         * modules/unictype/category-Nl-tests: New file.
31845         * modules/unictype/category-No-tests: New file.
31846         * modules/unictype/category-P-tests: New file.
31847         * modules/unictype/category-Pc-tests: New file.
31848         * modules/unictype/category-Pd-tests: New file.
31849         * modules/unictype/category-Pe-tests: New file.
31850         * modules/unictype/category-Pf-tests: New file.
31851         * modules/unictype/category-Pi-tests: New file.
31852         * modules/unictype/category-Po-tests: New file.
31853         * modules/unictype/category-Ps-tests: New file.
31854         * modules/unictype/category-S-tests: New file.
31855         * modules/unictype/category-Sc-tests: New file.
31856         * modules/unictype/category-Sk-tests: New file.
31857         * modules/unictype/category-Sm-tests: New file.
31858         * modules/unictype/category-So-tests: New file.
31859         * modules/unictype/category-Z-tests: New file.
31860         * modules/unictype/category-Zl-tests: New file.
31861         * modules/unictype/category-Zp-tests: New file.
31862         * modules/unictype/category-Zs-tests: New file.
31863         * modules/unictype/category-and-not-tests: New file.
31864         * modules/unictype/category-and-tests: New file.
31865         * modules/unictype/category-byname-tests: New file.
31866         * modules/unictype/category-name-tests: New file.
31867         * modules/unictype/category-none-tests: New file.
31868         * modules/unictype/category-of-tests: New file.
31869         * modules/unictype/category-or-tests: New file.
31870         * modules/unictype/category-test-withtable-tests: New file.
31871         * modules/unictype/combining-class-tests: New file.
31872         * modules/unictype/ctype-alnum-tests: New file.
31873         * modules/unictype/ctype-alpha-tests: New file.
31874         * modules/unictype/ctype-blank-tests: New file.
31875         * modules/unictype/ctype-cntrl-tests: New file.
31876         * modules/unictype/ctype-digit-tests: New file.
31877         * modules/unictype/ctype-graph-tests: New file.
31878         * modules/unictype/ctype-lower-tests: New file.
31879         * modules/unictype/ctype-print-tests: New file.
31880         * modules/unictype/ctype-punct-tests: New file.
31881         * modules/unictype/ctype-space-tests: New file.
31882         * modules/unictype/ctype-upper-tests: New file.
31883         * modules/unictype/ctype-xdigit-tests: New file.
31884         * modules/unictype/decimal-digit-tests: New file.
31885         * modules/unictype/digit-tests: New file.
31886         * modules/unictype/mirror-tests: New file.
31887         * modules/unictype/numeric-tests: New file.
31888         * modules/unictype/property-alphabetic-tests: New file.
31889         * modules/unictype/property-ascii-hex-digit-tests: New file.
31890         * modules/unictype/property-bidi-arabic-digit-tests: New file.
31891         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
31892         * modules/unictype/property-bidi-block-separator-tests: New file.
31893         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
31894         * modules/unictype/property-bidi-common-separator-tests: New file.
31895         * modules/unictype/property-bidi-control-tests: New file.
31896         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
31897         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
31898         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
31899         * modules/unictype/property-bidi-european-digit-tests: New file.
31900         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
31901         * modules/unictype/property-bidi-left-to-right-tests: New file.
31902         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
31903         * modules/unictype/property-bidi-other-neutral-tests: New file.
31904         * modules/unictype/property-bidi-pdf-tests: New file.
31905         * modules/unictype/property-bidi-segment-separator-tests: New file.
31906         * modules/unictype/property-bidi-whitespace-tests: New file.
31907         * modules/unictype/property-byname-tests: New file.
31908         * modules/unictype/property-combining-tests: New file.
31909         * modules/unictype/property-composite-tests: New file.
31910         * modules/unictype/property-currency-symbol-tests: New file.
31911         * modules/unictype/property-dash-tests: New file.
31912         * modules/unictype/property-decimal-digit-tests: New file.
31913         * modules/unictype/property-default-ignorable-code-point-tests: New file.
31914         * modules/unictype/property-deprecated-tests: New file.
31915         * modules/unictype/property-diacritic-tests: New file.
31916         * modules/unictype/property-extender-tests: New file.
31917         * modules/unictype/property-format-control-tests: New file.
31918         * modules/unictype/property-grapheme-base-tests: New file.
31919         * modules/unictype/property-grapheme-extend-tests: New file.
31920         * modules/unictype/property-grapheme-link-tests: New file.
31921         * modules/unictype/property-hex-digit-tests: New file.
31922         * modules/unictype/property-hyphen-tests: New file.
31923         * modules/unictype/property-id-continue-tests: New file.
31924         * modules/unictype/property-id-start-tests: New file.
31925         * modules/unictype/property-ideographic-tests: New file.
31926         * modules/unictype/property-ids-binary-operator-tests: New file.
31927         * modules/unictype/property-ids-trinary-operator-tests: New file.
31928         * modules/unictype/property-ignorable-control-tests: New file.
31929         * modules/unictype/property-iso-control-tests: New file.
31930         * modules/unictype/property-join-control-tests: New file.
31931         * modules/unictype/property-left-of-pair-tests: New file.
31932         * modules/unictype/property-line-separator-tests: New file.
31933         * modules/unictype/property-logical-order-exception-tests: New file.
31934         * modules/unictype/property-lowercase-tests: New file.
31935         * modules/unictype/property-math-tests: New file.
31936         * modules/unictype/property-non-break-tests: New file.
31937         * modules/unictype/property-not-a-character-tests: New file.
31938         * modules/unictype/property-numeric-tests: New file.
31939         * modules/unictype/property-other-alphabetic-tests: New file.
31940         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
31941         * modules/unictype/property-other-grapheme-extend-tests: New file.
31942         * modules/unictype/property-other-id-continue-tests: New file.
31943         * modules/unictype/property-other-id-start-tests: New file.
31944         * modules/unictype/property-other-lowercase-tests: New file.
31945         * modules/unictype/property-other-math-tests: New file.
31946         * modules/unictype/property-other-uppercase-tests: New file.
31947         * modules/unictype/property-paired-punctuation-tests: New file.
31948         * modules/unictype/property-paragraph-separator-tests: New file.
31949         * modules/unictype/property-pattern-syntax-tests: New file.
31950         * modules/unictype/property-pattern-white-space-tests: New file.
31951         * modules/unictype/property-private-use-tests: New file.
31952         * modules/unictype/property-punctuation-tests: New file.
31953         * modules/unictype/property-quotation-mark-tests: New file.
31954         * modules/unictype/property-radical-tests: New file.
31955         * modules/unictype/property-sentence-terminal-tests: New file.
31956         * modules/unictype/property-soft-dotted-tests: New file.
31957         * modules/unictype/property-space-tests: New file.
31958         * modules/unictype/property-terminal-punctuation-tests: New file.
31959         * modules/unictype/property-test-tests: New file.
31960         * modules/unictype/property-titlecase-tests: New file.
31961         * modules/unictype/property-unassigned-code-value-tests: New file.
31962         * modules/unictype/property-unified-ideograph-tests: New file.
31963         * modules/unictype/property-uppercase-tests: New file.
31964         * modules/unictype/property-variation-selector-tests: New file.
31965         * modules/unictype/property-white-space-tests: New file.
31966         * modules/unictype/property-xid-continue-tests: New file.
31967         * modules/unictype/property-xid-start-tests: New file.
31968         * modules/unictype/property-zero-width-tests: New file.
31969         * modules/unictype/scripts-tests: New file.
31970         * modules/unictype/syntax-c-ident-tests: New file.
31971         * modules/unictype/syntax-c-whitespace-tests: New file.
31972         * modules/unictype/syntax-java-ident-tests: New file.
31973         * modules/unictype/syntax-java-whitespace-tests: New file.
31974         * tests/unictype/test-bidi_byname.c: New file.
31975         * tests/unictype/test-bidi_name.c: New file.
31976         * tests/unictype/test-bidi_of.c: New file.
31977         * tests/unictype/test-bidi_test.c: New file.
31978         * tests/unictype/test-block_list.c: New file.
31979         * tests/unictype/test-block_of.c: New file.
31980         * tests/unictype/test-block_test.c: New file.
31981         * tests/unictype/test-categ_and.c: New file.
31982         * tests/unictype/test-categ_and_not.c: New file.
31983         * tests/unictype/test-categ_byname.c: New file.
31984         * tests/unictype/test-categ_name.c: New file.
31985         * tests/unictype/test-categ_none.c: New file.
31986         * tests/unictype/test-categ_of.c: New file.
31987         * tests/unictype/test-categ_or.c: New file.
31988         * tests/unictype/test-categ_test_withtable.c: New file.
31989         * tests/unictype/test-combining.c: New file.
31990         * tests/unictype/test-decdigit.c: New file.
31991         * tests/unictype/test-digit.c: New file.
31992         * tests/unictype/test-mirror.c: New file.
31993         * tests/unictype/test-numeric.c: New file.
31994         * tests/unictype/test-pr_byname.c: New file.
31995         * tests/unictype/test-pr_test.c: New file.
31996         * tests/unictype/test-predicate-part1.h: New file.
31997         * tests/unictype/test-predicate-part2.h: New file.
31998         * tests/unictype/test-scripts.c: New file.
31999         * tests/unictype/test-sy_c_ident.c: New file.
32000         * tests/unictype/test-sy_java_ident.c: New file.
32001
32002         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32003         for Unicode 5.0.0.
32004         * tests/unictype/test-categ_Cc.c: Likewise.
32005         * tests/unictype/test-categ_Cf.c: Likewise.
32006         * tests/unictype/test-categ_Cn.c: Likewise.
32007         * tests/unictype/test-categ_Co.c: Likewise.
32008         * tests/unictype/test-categ_Cs.c: Likewise.
32009         * tests/unictype/test-categ_L.c: Likewise.
32010         * tests/unictype/test-categ_Ll.c: Likewise.
32011         * tests/unictype/test-categ_Lm.c: Likewise.
32012         * tests/unictype/test-categ_Lo.c: Likewise.
32013         * tests/unictype/test-categ_Lt.c: Likewise.
32014         * tests/unictype/test-categ_Lu.c: Likewise.
32015         * tests/unictype/test-categ_M.c: Likewise.
32016         * tests/unictype/test-categ_Mc.c: Likewise.
32017         * tests/unictype/test-categ_Me.c: Likewise.
32018         * tests/unictype/test-categ_Mn.c: Likewise.
32019         * tests/unictype/test-categ_N.c: Likewise.
32020         * tests/unictype/test-categ_Nd.c: Likewise.
32021         * tests/unictype/test-categ_Nl.c: Likewise.
32022         * tests/unictype/test-categ_No.c: Likewise.
32023         * tests/unictype/test-categ_P.c: Likewise.
32024         * tests/unictype/test-categ_Pc.c: Likewise.
32025         * tests/unictype/test-categ_Pd.c: Likewise.
32026         * tests/unictype/test-categ_Pe.c: Likewise.
32027         * tests/unictype/test-categ_Pf.c: Likewise.
32028         * tests/unictype/test-categ_Pi.c: Likewise.
32029         * tests/unictype/test-categ_Po.c: Likewise.
32030         * tests/unictype/test-categ_Ps.c: Likewise.
32031         * tests/unictype/test-categ_S.c: Likewise.
32032         * tests/unictype/test-categ_Sc.c: Likewise.
32033         * tests/unictype/test-categ_Sk.c: Likewise.
32034         * tests/unictype/test-categ_Sm.c: Likewise.
32035         * tests/unictype/test-categ_So.c: Likewise.
32036         * tests/unictype/test-categ_Z.c: Likewise.
32037         * tests/unictype/test-categ_Zl.c: Likewise.
32038         * tests/unictype/test-categ_Zp.c: Likewise.
32039         * tests/unictype/test-categ_Zs.c: Likewise.
32040         * tests/unictype/test-ctype_alnum.c: Likewise.
32041         * tests/unictype/test-ctype_alpha.c: Likewise.
32042         * tests/unictype/test-ctype_blank.c: Likewise.
32043         * tests/unictype/test-ctype_cntrl.c: Likewise.
32044         * tests/unictype/test-ctype_digit.c: Likewise.
32045         * tests/unictype/test-ctype_graph.c: Likewise.
32046         * tests/unictype/test-ctype_lower.c: Likewise.
32047         * tests/unictype/test-ctype_print.c: Likewise.
32048         * tests/unictype/test-ctype_punct.c: Likewise.
32049         * tests/unictype/test-ctype_space.c: Likewise.
32050         * tests/unictype/test-ctype_upper.c: Likewise.
32051         * tests/unictype/test-ctype_xdigit.c: Likewise.
32052         * tests/unictype/test-decdigit.h: Likewise.
32053         * tests/unictype/test-digit.h: Likewise.
32054         * tests/unictype/test-numeric.h: Likewise.
32055         * tests/unictype/test-pr_alphabetic.c: Likewise.
32056         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32057         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32058         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32059         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32060         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32061         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32062         * tests/unictype/test-pr_bidi_control.c: Likewise.
32063         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32064         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32065         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32066         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32067         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32068         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32069         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32070         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32071         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32072         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32073         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32074         * tests/unictype/test-pr_combining.c: Likewise.
32075         * tests/unictype/test-pr_composite.c: Likewise.
32076         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32077         * tests/unictype/test-pr_dash.c: Likewise.
32078         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32079         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32080         * tests/unictype/test-pr_deprecated.c: Likewise.
32081         * tests/unictype/test-pr_diacritic.c: Likewise.
32082         * tests/unictype/test-pr_extender.c: Likewise.
32083         * tests/unictype/test-pr_format_control.c: Likewise.
32084         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32085         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32086         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32087         * tests/unictype/test-pr_hex_digit.c: Likewise.
32088         * tests/unictype/test-pr_hyphen.c: Likewise.
32089         * tests/unictype/test-pr_id_continue.c: Likewise.
32090         * tests/unictype/test-pr_id_start.c: Likewise.
32091         * tests/unictype/test-pr_ideographic.c: Likewise.
32092         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32093         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32094         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32095         * tests/unictype/test-pr_iso_control.c: Likewise.
32096         * tests/unictype/test-pr_join_control.c: Likewise.
32097         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32098         * tests/unictype/test-pr_line_separator.c: Likewise.
32099         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32100         * tests/unictype/test-pr_lowercase.c: Likewise.
32101         * tests/unictype/test-pr_math.c: Likewise.
32102         * tests/unictype/test-pr_non_break.c: Likewise.
32103         * tests/unictype/test-pr_not_a_character.c: Likewise.
32104         * tests/unictype/test-pr_numeric.c: Likewise.
32105         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32106         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32107         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32108         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32109         * tests/unictype/test-pr_other_id_start.c: Likewise.
32110         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32111         * tests/unictype/test-pr_other_math.c: Likewise.
32112         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32113         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32114         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32115         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32116         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32117         * tests/unictype/test-pr_private_use.c: Likewise.
32118         * tests/unictype/test-pr_punctuation.c: Likewise.
32119         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32120         * tests/unictype/test-pr_radical.c: Likewise.
32121         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32122         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32123         * tests/unictype/test-pr_space.c: Likewise.
32124         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32125         * tests/unictype/test-pr_titlecase.c: Likewise.
32126         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32127         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32128         * tests/unictype/test-pr_uppercase.c: Likewise.
32129         * tests/unictype/test-pr_variation_selector.c: Likewise.
32130         * tests/unictype/test-pr_white_space.c: Likewise.
32131         * tests/unictype/test-pr_xid_continue.c: Likewise.
32132         * tests/unictype/test-pr_xid_start.c: Likewise.
32133         * tests/unictype/test-pr_zero_width.c: Likewise.
32134         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32135         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32136
32137 2007-11-12  Bruno Haible  <bruno@clisp.org>
32138
32139         Unicode character classification functions.
32140         * lib/unictype.h: New file.
32141         * modules/unictype/base: New file.
32142         * modules/unictype/category-L: New file.
32143         * modules/unictype/category-Lu: New file.
32144         * modules/unictype/category-Ll: New file.
32145         * modules/unictype/category-Lt: New file.
32146         * modules/unictype/category-Lm: New file.
32147         * modules/unictype/category-Lo: New file.
32148         * modules/unictype/category-M: New file.
32149         * modules/unictype/category-Mn: New file.
32150         * modules/unictype/category-Mc: New file.
32151         * modules/unictype/category-Me: New file.
32152         * modules/unictype/category-N: New file.
32153         * modules/unictype/category-Nd: New file.
32154         * modules/unictype/category-Nl: New file.
32155         * modules/unictype/category-No: New file.
32156         * modules/unictype/category-P: New file.
32157         * modules/unictype/category-Pc: New file.
32158         * modules/unictype/category-Pd: New file.
32159         * modules/unictype/category-Ps: New file.
32160         * modules/unictype/category-Pe: New file.
32161         * modules/unictype/category-Pi: New file.
32162         * modules/unictype/category-Pf: New file.
32163         * modules/unictype/category-Po: New file.
32164         * modules/unictype/category-S: New file.
32165         * modules/unictype/category-Sm: New file.
32166         * modules/unictype/category-Sc: New file.
32167         * modules/unictype/category-Sk: New file.
32168         * modules/unictype/category-So: New file.
32169         * modules/unictype/category-Z: New file.
32170         * modules/unictype/category-Zs: New file.
32171         * modules/unictype/category-Zl: New file.
32172         * modules/unictype/category-Zp: New file.
32173         * modules/unictype/category-C: New file.
32174         * modules/unictype/category-Cc: New file.
32175         * modules/unictype/category-Cf: New file.
32176         * modules/unictype/category-Cs: New file.
32177         * modules/unictype/category-Co: New file.
32178         * modules/unictype/category-Cn: New file.
32179         * modules/unictype/category-or: New file.
32180         * modules/unictype/category-of: New file.
32181         * modules/unictype/category-test: New file.
32182         * modules/unictype/category-test-withtable: New file.
32183         * modules/unictype/category-byname: New file.
32184         * modules/unictype/category-none: New file.
32185         * modules/unictype/category-and: New file.
32186         * modules/unictype/category-and-not: New file.
32187         * modules/unictype/category-name: New file.
32188         * modules/unictype/combining-class: New file.
32189         * modules/unictype/category-all: New file.
32190         * modules/unictype/bidicategory-all: New file.
32191         * modules/unictype/bidicategory-byname: New file.
32192         * modules/unictype/bidicategory-name: New file.
32193         * modules/unictype/bidicategory-of: New file.
32194         * modules/unictype/bidicategory-test: New file.
32195         * modules/unictype/decimal-digit: New file.
32196         * modules/unictype/digit: New file.
32197         * modules/unictype/numeric: New file.
32198         * modules/unictype/mirror: New file.
32199         * modules/unictype/property-white-space: New file.
32200         * modules/unictype/property-alphabetic: New file.
32201         * modules/unictype/property-other-alphabetic: New file.
32202         * modules/unictype/property-not-a-character: New file.
32203         * modules/unictype/property-default-ignorable-code-point: New file.
32204         * modules/unictype/property-other-default-ignorable-code-point: New
32205         file.
32206         * modules/unictype/property-deprecated: New file.
32207         * modules/unictype/property-logical-order-exception: New file.
32208         * modules/unictype/property-variation-selector: New file.
32209         * modules/unictype/property-private-use: New file.
32210         * modules/unictype/property-unassigned-code-value: New file.
32211         * modules/unictype/property-uppercase: New file.
32212         * modules/unictype/property-other-uppercase: New file.
32213         * modules/unictype/property-lowercase: New file.
32214         * modules/unictype/property-other-lowercase: New file.
32215         * modules/unictype/property-titlecase: New file.
32216         * modules/unictype/property-soft-dotted: New file.
32217         * modules/unictype/property-id-start: New file.
32218         * modules/unictype/property-other-id-start: New file.
32219         * modules/unictype/property-id-continue: New file.
32220         * modules/unictype/property-other-id-continue: New file.
32221         * modules/unictype/property-xid-start: New file.
32222         * modules/unictype/property-xid-continue: New file.
32223         * modules/unictype/property-pattern-white-space: New file.
32224         * modules/unictype/property-pattern-syntax: New file.
32225         * modules/unictype/property-join-control: New file.
32226         * modules/unictype/property-grapheme-base: New file.
32227         * modules/unictype/property-grapheme-extend: New file.
32228         * modules/unictype/property-other-grapheme-extend: New file.
32229         * modules/unictype/property-grapheme-link: New file.
32230         * modules/unictype/property-bidi-control: New file.
32231         * modules/unictype/property-bidi-left-to-right: New file.
32232         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32233         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32234         * modules/unictype/property-bidi-european-digit: New file.
32235         * modules/unictype/property-bidi-eur-num-separator: New file.
32236         * modules/unictype/property-bidi-eur-num-terminator: New file.
32237         * modules/unictype/property-bidi-arabic-digit: New file.
32238         * modules/unictype/property-bidi-common-separator: New file.
32239         * modules/unictype/property-bidi-block-separator: New file.
32240         * modules/unictype/property-bidi-segment-separator: New file.
32241         * modules/unictype/property-bidi-whitespace: New file.
32242         * modules/unictype/property-bidi-non-spacing-mark: New file.
32243         * modules/unictype/property-bidi-boundary-neutral: New file.
32244         * modules/unictype/property-bidi-pdf: New file.
32245         * modules/unictype/property-bidi-embedding-or-override: New file.
32246         * modules/unictype/property-bidi-other-neutral: New file.
32247         * modules/unictype/property-hex-digit: New file.
32248         * modules/unictype/property-ascii-hex-digit: New file.
32249         * modules/unictype/property-ideographic: New file.
32250         * modules/unictype/property-unified-ideograph: New file.
32251         * modules/unictype/property-radical: New file.
32252         * modules/unictype/property-ids-binary-operator: New file.
32253         * modules/unictype/property-ids-trinary-operator: New file.
32254         * modules/unictype/property-zero-width: New file.
32255         * modules/unictype/property-space: New file.
32256         * modules/unictype/property-non-break: New file.
32257         * modules/unictype/property-iso-control: New file.
32258         * modules/unictype/property-format-control: New file.
32259         * modules/unictype/property-dash: New file.
32260         * modules/unictype/property-hyphen: New file.
32261         * modules/unictype/property-punctuation: New file.
32262         * modules/unictype/property-line-separator: New file.
32263         * modules/unictype/property-paragraph-separator: New file.
32264         * modules/unictype/property-quotation-mark: New file.
32265         * modules/unictype/property-sentence-terminal: New file.
32266         * modules/unictype/property-terminal-punctuation: New file.
32267         * modules/unictype/property-currency-symbol: New file.
32268         * modules/unictype/property-math: New file.
32269         * modules/unictype/property-other-math: New file.
32270         * modules/unictype/property-paired-punctuation: New file.
32271         * modules/unictype/property-left-of-pair: New file.
32272         * modules/unictype/property-combining: New file.
32273         * modules/unictype/property-composite: New file.
32274         * modules/unictype/property-decimal-digit: New file.
32275         * modules/unictype/property-numeric: New file.
32276         * modules/unictype/property-diacritic: New file.
32277         * modules/unictype/property-extender: New file.
32278         * modules/unictype/property-ignorable-control: New file.
32279         * modules/unictype/property-test: New file.
32280         * modules/unictype/property-byname: New file.
32281         * modules/unictype/property-all: New file.
32282         * modules/unictype/scripts: New file.
32283         * modules/unictype/scripts-all: New file.
32284         * modules/unictype/block-of: New file.
32285         * modules/unictype/block-test: New file.
32286         * modules/unictype/block-list: New file.
32287         * modules/unictype/block-all: New file.
32288         * modules/unictype/syntax-c-whitespace: New file.
32289         * modules/unictype/syntax-java-whitespace: New file.
32290         * modules/unictype/syntax-c-ident: New file.
32291         * modules/unictype/syntax-java-ident: New file.
32292         * modules/unictype/ctype-alnum: New file.
32293         * modules/unictype/ctype-alpha: New file.
32294         * modules/unictype/ctype-cntrl: New file.
32295         * modules/unictype/ctype-digit: New file.
32296         * modules/unictype/ctype-graph: New file.
32297         * modules/unictype/ctype-lower: New file.
32298         * modules/unictype/ctype-print: New file.
32299         * modules/unictype/ctype-punct: New file.
32300         * modules/unictype/ctype-space: New file.
32301         * modules/unictype/ctype-upper: New file.
32302         * modules/unictype/ctype-xdigit: New file.
32303         * modules/unictype/ctype-blank: New file.
32304         * lib/unictype/bidi_byname.c: New file.
32305         * lib/unictype/bidi_name.c: New file.
32306         * lib/unictype/bidi_of.c: New file.
32307         * lib/unictype/bidi_test.c: New file.
32308         * lib/unictype/bitmap.h: New file.
32309         * lib/unictype/block_test.c: New file.
32310         * lib/unictype/blocks.c: New file.
32311         * lib/unictype/categ_C.c: New file.
32312         * lib/unictype/categ_Cc.c: New file.
32313         * lib/unictype/categ_Cf.c: New file.
32314         * lib/unictype/categ_Cn.c: New file.
32315         * lib/unictype/categ_Co.c: New file.
32316         * lib/unictype/categ_Cs.c: New file.
32317         * lib/unictype/categ_L.c: New file.
32318         * lib/unictype/categ_Ll.c: New file.
32319         * lib/unictype/categ_Lm.c: New file.
32320         * lib/unictype/categ_Lo.c: New file.
32321         * lib/unictype/categ_Lt.c: New file.
32322         * lib/unictype/categ_Lu.c: New file.
32323         * lib/unictype/categ_M.c: New file.
32324         * lib/unictype/categ_Mc.c: New file.
32325         * lib/unictype/categ_Me.c: New file.
32326         * lib/unictype/categ_Mn.c: New file.
32327         * lib/unictype/categ_N.c: New file.
32328         * lib/unictype/categ_Nd.c: New file.
32329         * lib/unictype/categ_Nl.c: New file.
32330         * lib/unictype/categ_No.c: New file.
32331         * lib/unictype/categ_P.c: New file.
32332         * lib/unictype/categ_Pc.c: New file.
32333         * lib/unictype/categ_Pd.c: New file.
32334         * lib/unictype/categ_Pe.c: New file.
32335         * lib/unictype/categ_Pf.c: New file.
32336         * lib/unictype/categ_Pi.c: New file.
32337         * lib/unictype/categ_Po.c: New file.
32338         * lib/unictype/categ_Ps.c: New file.
32339         * lib/unictype/categ_S.c: New file.
32340         * lib/unictype/categ_Sc.c: New file.
32341         * lib/unictype/categ_Sk.c: New file.
32342         * lib/unictype/categ_Sm.c: New file.
32343         * lib/unictype/categ_So.c: New file.
32344         * lib/unictype/categ_Z.c: New file.
32345         * lib/unictype/categ_Zl.c: New file.
32346         * lib/unictype/categ_Zp.c: New file.
32347         * lib/unictype/categ_Zs.c: New file.
32348         * lib/unictype/categ_and.c: New file.
32349         * lib/unictype/categ_and_not.c: New file.
32350         * lib/unictype/categ_byname.c: New file.
32351         * lib/unictype/categ_name.c: New file.
32352         * lib/unictype/categ_none.c: New file.
32353         * lib/unictype/categ_of.c: New file.
32354         * lib/unictype/categ_or.c: New file.
32355         * lib/unictype/categ_test.c: New file.
32356         * lib/unictype/combining.c: New file.
32357         * lib/unictype/ctype_alnum.c: New file.
32358         * lib/unictype/ctype_alpha.c: New file.
32359         * lib/unictype/ctype_blank.c: New file.
32360         * lib/unictype/ctype_cntrl.c: New file.
32361         * lib/unictype/ctype_digit.c: New file.
32362         * lib/unictype/ctype_graph.c: New file.
32363         * lib/unictype/ctype_lower.c: New file.
32364         * lib/unictype/ctype_print.c: New file.
32365         * lib/unictype/ctype_punct.c: New file.
32366         * lib/unictype/ctype_space.c: New file.
32367         * lib/unictype/ctype_upper.c: New file.
32368         * lib/unictype/ctype_xdigit.c: New file.
32369         * lib/unictype/decdigit.c: New file.
32370         * lib/unictype/digit.c: New file.
32371         * lib/unictype/identsyntaxmap.h: New file.
32372         * lib/unictype/mirror.c: New file.
32373         * lib/unictype/numeric.c: New file.
32374         * lib/unictype/pr_alphabetic.c: New file.
32375         * lib/unictype/pr_ascii_hex_digit.c: New file.
32376         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32377         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32378         * lib/unictype/pr_bidi_block_separator.c: New file.
32379         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32380         * lib/unictype/pr_bidi_common_separator.c: New file.
32381         * lib/unictype/pr_bidi_control.c: New file.
32382         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32383         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32384         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32385         * lib/unictype/pr_bidi_european_digit.c: New file.
32386         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32387         * lib/unictype/pr_bidi_left_to_right.c: New file.
32388         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32389         * lib/unictype/pr_bidi_other_neutral.c: New file.
32390         * lib/unictype/pr_bidi_pdf.c: New file.
32391         * lib/unictype/pr_bidi_segment_separator.c: New file.
32392         * lib/unictype/pr_bidi_whitespace.c: New file.
32393         * lib/unictype/pr_byname.c: New file.
32394         * lib/unictype/pr_byname.gperf: New file.
32395         * lib/unictype/pr_combining.c: New file.
32396         * lib/unictype/pr_composite.c: New file.
32397         * lib/unictype/pr_currency_symbol.c: New file.
32398         * lib/unictype/pr_dash.c: New file.
32399         * lib/unictype/pr_decimal_digit.c: New file.
32400         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32401         * lib/unictype/pr_deprecated.c: New file.
32402         * lib/unictype/pr_diacritic.c: New file.
32403         * lib/unictype/pr_extender.c: New file.
32404         * lib/unictype/pr_format_control.c: New file.
32405         * lib/unictype/pr_grapheme_base.c: New file.
32406         * lib/unictype/pr_grapheme_extend.c: New file.
32407         * lib/unictype/pr_grapheme_link.c: New file.
32408         * lib/unictype/pr_hex_digit.c: New file.
32409         * lib/unictype/pr_hyphen.c: New file.
32410         * lib/unictype/pr_id_continue.c: New file.
32411         * lib/unictype/pr_id_start.c: New file.
32412         * lib/unictype/pr_ideographic.c: New file.
32413         * lib/unictype/pr_ids_binary_operator.c: New file.
32414         * lib/unictype/pr_ids_trinary_operator.c: New file.
32415         * lib/unictype/pr_ignorable_control.c: New file.
32416         * lib/unictype/pr_iso_control.c: New file.
32417         * lib/unictype/pr_join_control.c: New file.
32418         * lib/unictype/pr_left_of_pair.c: New file.
32419         * lib/unictype/pr_line_separator.c: New file.
32420         * lib/unictype/pr_logical_order_exception.c: New file.
32421         * lib/unictype/pr_lowercase.c: New file.
32422         * lib/unictype/pr_math.c: New file.
32423         * lib/unictype/pr_non_break.c: New file.
32424         * lib/unictype/pr_not_a_character.c: New file.
32425         * lib/unictype/pr_numeric.c: New file.
32426         * lib/unictype/pr_other_alphabetic.c: New file.
32427         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32428         * lib/unictype/pr_other_grapheme_extend.c: New file.
32429         * lib/unictype/pr_other_id_continue.c: New file.
32430         * lib/unictype/pr_other_id_start.c: New file.
32431         * lib/unictype/pr_other_lowercase.c: New file.
32432         * lib/unictype/pr_other_math.c: New file.
32433         * lib/unictype/pr_other_uppercase.c: New file.
32434         * lib/unictype/pr_paired_punctuation.c: New file.
32435         * lib/unictype/pr_paragraph_separator.c: New file.
32436         * lib/unictype/pr_pattern_syntax.c: New file.
32437         * lib/unictype/pr_pattern_white_space.c: New file.
32438         * lib/unictype/pr_private_use.c: New file.
32439         * lib/unictype/pr_punctuation.c: New file.
32440         * lib/unictype/pr_quotation_mark.c: New file.
32441         * lib/unictype/pr_radical.c: New file.
32442         * lib/unictype/pr_sentence_terminal.c: New file.
32443         * lib/unictype/pr_soft_dotted.c: New file.
32444         * lib/unictype/pr_space.c: New file.
32445         * lib/unictype/pr_terminal_punctuation.c: New file.
32446         * lib/unictype/pr_test.c: New file.
32447         * lib/unictype/pr_titlecase.c: New file.
32448         * lib/unictype/pr_unassigned_code_value.c: New file.
32449         * lib/unictype/pr_unified_ideograph.c: New file.
32450         * lib/unictype/pr_uppercase.c: New file.
32451         * lib/unictype/pr_variation_selector.c: New file.
32452         * lib/unictype/pr_white_space.c: New file.
32453         * lib/unictype/pr_xid_continue.c: New file.
32454         * lib/unictype/pr_xid_start.c: New file.
32455         * lib/unictype/pr_zero_width.c: New file.
32456         * lib/unictype/scripts.c: New file.
32457         * lib/unictype/sy_c_ident.c: New file.
32458         * lib/unictype/sy_c_whitespace.c: New file.
32459         * lib/unictype/sy_java_ident.c: New file.
32460         * lib/unictype/sy_java_whitespace.c: New file.
32461
32462         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32463         Unicode 5.0.0.
32464         * lib/unictype/blocks.h: Likewise.
32465         * lib/unictype/categ_C.h: Likewise.
32466         * lib/unictype/categ_Cc.h: Likewise.
32467         * lib/unictype/categ_Cf.h: Likewise.
32468         * lib/unictype/categ_Cn.h: Likewise.
32469         * lib/unictype/categ_Co.h: Likewise.
32470         * lib/unictype/categ_Cs.h: Likewise.
32471         * lib/unictype/categ_L.h: Likewise.
32472         * lib/unictype/categ_Ll.h: Likewise.
32473         * lib/unictype/categ_Lm.h: Likewise.
32474         * lib/unictype/categ_Lo.h: Likewise.
32475         * lib/unictype/categ_Lt.h: Likewise.
32476         * lib/unictype/categ_Lu.h: Likewise.
32477         * lib/unictype/categ_M.h: Likewise.
32478         * lib/unictype/categ_Mc.h: Likewise.
32479         * lib/unictype/categ_Me.h: Likewise.
32480         * lib/unictype/categ_Mn.h: Likewise.
32481         * lib/unictype/categ_N.h: Likewise.
32482         * lib/unictype/categ_Nd.h: Likewise.
32483         * lib/unictype/categ_Nl.h: Likewise.
32484         * lib/unictype/categ_No.h: Likewise.
32485         * lib/unictype/categ_P.h: Likewise.
32486         * lib/unictype/categ_Pc.h: Likewise.
32487         * lib/unictype/categ_Pd.h: Likewise.
32488         * lib/unictype/categ_Pe.h: Likewise.
32489         * lib/unictype/categ_Pf.h: Likewise.
32490         * lib/unictype/categ_Pi.h: Likewise.
32491         * lib/unictype/categ_Po.h: Likewise.
32492         * lib/unictype/categ_Ps.h: Likewise.
32493         * lib/unictype/categ_S.h: Likewise.
32494         * lib/unictype/categ_Sc.h: Likewise.
32495         * lib/unictype/categ_Sk.h: Likewise.
32496         * lib/unictype/categ_Sm.h: Likewise.
32497         * lib/unictype/categ_So.h: Likewise.
32498         * lib/unictype/categ_Z.h: Likewise.
32499         * lib/unictype/categ_Zl.h: Likewise.
32500         * lib/unictype/categ_Zp.h: Likewise.
32501         * lib/unictype/categ_Zs.h: Likewise.
32502         * lib/unictype/categ_of.h: Likewise.
32503         * lib/unictype/combining.h: Likewise.
32504         * lib/unictype/ctype_alnum.h: Likewise.
32505         * lib/unictype/ctype_alpha.h: Likewise.
32506         * lib/unictype/ctype_blank.h: Likewise.
32507         * lib/unictype/ctype_cntrl.h: Likewise.
32508         * lib/unictype/ctype_digit.h: Likewise.
32509         * lib/unictype/ctype_graph.h: Likewise.
32510         * lib/unictype/ctype_lower.h: Likewise.
32511         * lib/unictype/ctype_print.h: Likewise.
32512         * lib/unictype/ctype_punct.h: Likewise.
32513         * lib/unictype/ctype_space.h: Likewise.
32514         * lib/unictype/ctype_upper.h: Likewise.
32515         * lib/unictype/ctype_xdigit.h: Likewise.
32516         * lib/unictype/decdigit.h: Likewise.
32517         * lib/unictype/digit.h: Likewise.
32518         * lib/unictype/mirror.h: Likewise.
32519         * lib/unictype/numeric.h: Likewise.
32520         * lib/unictype/pr_alphabetic.h: Likewise.
32521         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32522         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32523         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32524         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32525         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32526         * lib/unictype/pr_bidi_common_separator.h: Likewise.
32527         * lib/unictype/pr_bidi_control.h: Likewise.
32528         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
32529         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
32530         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
32531         * lib/unictype/pr_bidi_european_digit.h: Likewise.
32532         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
32533         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
32534         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
32535         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
32536         * lib/unictype/pr_bidi_pdf.h: Likewise.
32537         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
32538         * lib/unictype/pr_bidi_whitespace.h: Likewise.
32539         * lib/unictype/pr_combining.h: Likewise.
32540         * lib/unictype/pr_composite.h: Likewise.
32541         * lib/unictype/pr_currency_symbol.h: Likewise.
32542         * lib/unictype/pr_dash.h: Likewise.
32543         * lib/unictype/pr_decimal_digit.h: Likewise.
32544         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
32545         * lib/unictype/pr_deprecated.h: Likewise.
32546         * lib/unictype/pr_diacritic.h: Likewise.
32547         * lib/unictype/pr_extender.h: Likewise.
32548         * lib/unictype/pr_format_control.h: Likewise.
32549         * lib/unictype/pr_grapheme_base.h: Likewise.
32550         * lib/unictype/pr_grapheme_extend.h: Likewise.
32551         * lib/unictype/pr_grapheme_link.h: Likewise.
32552         * lib/unictype/pr_hex_digit.h: Likewise.
32553         * lib/unictype/pr_hyphen.h: Likewise.
32554         * lib/unictype/pr_id_continue.h: Likewise.
32555         * lib/unictype/pr_id_start.h: Likewise.
32556         * lib/unictype/pr_ideographic.h: Likewise.
32557         * lib/unictype/pr_ids_binary_operator.h: Likewise.
32558         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
32559         * lib/unictype/pr_ignorable_control.h: Likewise.
32560         * lib/unictype/pr_iso_control.h: Likewise.
32561         * lib/unictype/pr_join_control.h: Likewise.
32562         * lib/unictype/pr_left_of_pair.h: Likewise.
32563         * lib/unictype/pr_line_separator.h: Likewise.
32564         * lib/unictype/pr_logical_order_exception.h: Likewise.
32565         * lib/unictype/pr_lowercase.h: Likewise.
32566         * lib/unictype/pr_math.h: Likewise.
32567         * lib/unictype/pr_non_break.h: Likewise.
32568         * lib/unictype/pr_not_a_character.h: Likewise.
32569         * lib/unictype/pr_numeric.h: Likewise.
32570         * lib/unictype/pr_other_alphabetic.h: Likewise.
32571         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
32572         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
32573         * lib/unictype/pr_other_id_continue.h: Likewise.
32574         * lib/unictype/pr_other_id_start.h: Likewise.
32575         * lib/unictype/pr_other_lowercase.h: Likewise.
32576         * lib/unictype/pr_other_math.h: Likewise.
32577         * lib/unictype/pr_other_uppercase.h: Likewise.
32578         * lib/unictype/pr_paired_punctuation.h: Likewise.
32579         * lib/unictype/pr_paragraph_separator.h: Likewise.
32580         * lib/unictype/pr_pattern_syntax.h: Likewise.
32581         * lib/unictype/pr_pattern_white_space.h: Likewise.
32582         * lib/unictype/pr_private_use.h: Likewise.
32583         * lib/unictype/pr_punctuation.h: Likewise.
32584         * lib/unictype/pr_quotation_mark.h: Likewise.
32585         * lib/unictype/pr_radical.h: Likewise.
32586         * lib/unictype/pr_sentence_terminal.h: Likewise.
32587         * lib/unictype/pr_soft_dotted.h: Likewise.
32588         * lib/unictype/pr_space.h: Likewise.
32589         * lib/unictype/pr_terminal_punctuation.h: Likewise.
32590         * lib/unictype/pr_titlecase.h: Likewise.
32591         * lib/unictype/pr_unassigned_code_value.h: Likewise.
32592         * lib/unictype/pr_unified_ideograph.h: Likewise.
32593         * lib/unictype/pr_uppercase.h: Likewise.
32594         * lib/unictype/pr_variation_selector.h: Likewise.
32595         * lib/unictype/pr_white_space.h: Likewise.
32596         * lib/unictype/pr_xid_continue.h: Likewise.
32597         * lib/unictype/pr_xid_start.h: Likewise.
32598         * lib/unictype/pr_zero_width.h: Likewise.
32599         * lib/unictype/scripts.h: Likewise.
32600         * lib/unictype/scripts_byname.gperf: Likewise.
32601         * lib/unictype/sy_c_ident.h: Likewise.
32602         * lib/unictype/sy_c_whitespace.h: Likewise.
32603         * lib/unictype/sy_java_ident.h: Likewise.
32604         * lib/unictype/sy_java_whitespace.h: Likewise.
32605
32606         * lib/unictype/Makefile: New file.
32607         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
32608         glibc.
32609         * lib/unictype/3level.h: New file, copied from glibc.
32610         * lib/unictype/3levelbit.h: New file.
32611
32612 2007-11-11  Bruno Haible  <bruno@clisp.org>
32613
32614         * modules/gperf: New file.
32615         * modules/iconv_open (Depends-on): Add it.
32616         (Makefile.am): Remove the GPERF definition.
32617
32618 2007-11-11  Bruno Haible  <bruno@clisp.org>
32619
32620         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
32621         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
32622
32623 2007-11-11  Bruno Haible  <bruno@clisp.org>
32624
32625         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
32626         (usage): Remove function.
32627
32628 2007-11-11  Bruno Haible  <bruno@clisp.org>
32629
32630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
32631         gl_FUNC_CEILF_LIBS.
32632         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
32633         gl_FUNC_CEIL_LIBS.
32634         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
32635         gl_FUNC_CEILL_LIBS.
32636         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
32637         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
32638         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
32639
32640 2007-11-11  Bruno Haible  <bruno@clisp.org>
32641
32642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32643         roundf were declared but do not exist on functions.
32644         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
32645         roundl were declared but do not exist on functions.
32646         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
32647         HAVE_FLOORL_AND_CEILL, respectively.
32648         Needed for Sun C on Solaris 10.
32649
32650 2007-11-11  Bruno Haible  <bruno@clisp.org>
32651
32652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
32653         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
32654         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
32655         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
32656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
32657         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
32658         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
32659         HAVE_DECL_ROUNDF.
32660         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
32661         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
32662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
32663         of HAVE_DECL_ROUND*.
32664         * modules/math (Makefile.am): Update.
32665
32666 2007-11-10  Bruno Haible  <bruno@clisp.org>
32667
32668         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
32669         ptrdiff_t as m4/intl.m4.
32670
32671 2007-11-10  Jim Meyering  <meyering@redhat.com>
32672
32673         Avoid link failure for the argmatch test.
32674         * tests/test-argmatch.c (usage): Define function to avoid a link
32675         failure: argmatch_die requires a usage function.
32676
32677 2007-11-09  Bruno Haible  <bruno@clisp.org>
32678
32679         * doc/functions/snprintf.texi: Mention BeOS deficiency.
32680         * doc/functions/vsnprintf.texi: Likewise.
32681         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
32682         with a size argument < 2.
32683
32684 2007-11-09  Bruno Haible  <bruno@clisp.org>
32685
32686         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
32687         buffer. Fixes an inefficiency introduced on 2007-11-03.
32688
32689 2007-11-09  Bruno Haible  <bruno@clisp.org>
32690
32691         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
32692         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
32693
32694 2007-11-08  Jim Meyering  <meyering@redhat.com>
32695
32696         Change cache variable name prefix "jm_" to "gl_" everywhere.
32697         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
32698         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
32699         * m4/uptime.m4: s/gl_/jm_/
32700
32701 2007-11-07  Bruno Haible  <bruno@clisp.org>
32702
32703         Update to GNU gettext 0.17.
32704         * m4/intl.m4: Update to GNU gettext 0.17.
32705         * m4/po.m4: Likewise.
32706         * modules/gettext (Files): Remove m4/ulonglong.m4.
32707         (configure.ac): Require gettext infrastructure from version 0.17.
32708
32709 2007-11-06  Bruno Haible  <bruno@clisp.org>
32710
32711         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
32712         symbolic values are not defined in a public header.
32713         * lib/freadable.c (freadable) [QNX]: Likewise.
32714         * lib/freadahead.c (freadahead) [QNX]: Likewise.
32715         * lib/freading.c (freading) [QNX]: Likewise.
32716         * lib/fseterr.c (fseterr) [QNX]: Likewise.
32717         * lib/fwritable.c (fwritable) [QNX]: Likewise.
32718         * lib/fwriting.c (fwriting) [QNX]: Likewise.
32719         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
32720         Reported by Alain Magloire.
32721
32722         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
32723
32724 2007-11-05  Bruno Haible  <bruno@clisp.org>
32725
32726         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
32727         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
32728         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
32729         Reported by Eric Blake.
32730
32731 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32732             Bruno Haible  <bruno@clisp.org>
32733
32734         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
32735         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
32736         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
32737         (malloc): Undefine also before including <stdlib.h>.
32738         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
32739         Needed on OSF/1 4.0.
32740
32741 2007-11-05  Jim Meyering  <meyering@redhat.com>
32742
32743         git-version-gen: sync from coreutils.
32744         * build-aux/git-version-gen: Add comments.
32745         Change the first '-' to '.' in the snapshot version string,
32746         e.g., 6.9-377-08144 -> 6.9.377-08144
32747         Remove first parameter.
32748         Don't declare a version "-dirty" merely because a time
32749         stamp has changed.
32750
32751 2007-11-04  Bruno Haible  <bruno@clisp.org>
32752
32753         * lib/lock.h: Protect all macro definitions containing an 'if'
32754         statement through a "do { ... } while (0)".
32755         * lib/tls.h: Likewise.
32756
32757 2007-11-04  Bruno Haible  <bruno@clisp.org>
32758
32759         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
32760
32761 2007-11-04  Bruno Haible  <bruno@clisp.org>
32762
32763         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
32764         * modules/fprintf-posix (Depends-on): Add nocrash.
32765         * modules/snprintf-posix (Depends-on): Likewise.
32766         * modules/sprintf-posix (Depends-on): Likewise.
32767         * modules/vasnprintf-posix (Depends-on): Likewise.
32768         * modules/vasprintf-posix (Depends-on): Likewise.
32769         * modules/vfprintf-posix (Depends-on): Likewise.
32770         * modules/vsnprintf-posix (Depends-on): Likewise.
32771         * modules/vsprintf-posix (Depends-on): Likewise.
32772         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32773         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32774         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32775         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32776         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32777         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32778         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32779
32780 2007-11-04  Bruno Haible  <bruno@clisp.org>
32781
32782         * modules/nocrash: New file.
32783         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
32784         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
32785
32786 2007-11-04  Bruno Haible  <bruno@clisp.org>
32787
32788         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
32789         precision handling.
32790         * tests/test-vasprintf-posix.c (test_function): Likewise.
32791         * tests/test-snprintf-posix.h (test_function): Likewise.
32792         * tests/test-sprintf-posix.h (test_function): Likewise.
32793
32794         Fix *printf behaviour for large precisions on mingw and BeOS.
32795         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
32796         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
32797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
32798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32800         gl_PRINTF_PRECISION and test its result. Invoke
32801         gl_PREREQ_VASNPRINTF_PRECISION.
32802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32809         * doc/functions/fprintf.texi: Update.
32810         * doc/functions/printf.texi: Update.
32811         * doc/functions/snprintf.texi: Update.
32812         * doc/functions/sprintf.texi: Update.
32813         * doc/functions/vfprintf.texi: Update.
32814         * doc/functions/vprintf.texi: Update.
32815         * doc/functions/vsnprintf.texi: Update.
32816         * doc/functions/vsprintf.texi: Update.
32817
32818 2007-11-04  Bruno Haible  <bruno@clisp.org>
32819
32820         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
32821
32822 2007-11-04  Bruno Haible  <bruno@clisp.org>
32823
32824         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
32825         Reported by Sylvain Beucler <beuc@gnu.org>.
32826
32827 2007-11-03  Bruno Haible  <bruno@clisp.org>
32828
32829         * tests/test-fprintf-posix2.sh: New file.
32830         * tests/test-fprintf-posix2.c: New file.
32831         * modules/fprintf-posix-tests (Files): Add them.
32832         (TESTS): Add test-fprintf-posix2.sh.
32833         (configure.ac): Check for getrlimit and setrlimit.
32834         (check_PROGRAMS): Add test-fprintf-posix2.
32835
32836         * tests/test-printf-posix2.sh: New file.
32837         * tests/test-printf-posix2.c: New file.
32838         * modules/printf-posix-tests (Files): Add them.
32839         (TESTS): Add test-printf-posix2.sh.
32840         (configure.ac): Check for getrlimit and setrlimit.
32841         (check_PROGRAMS): Add test-printf-posix2.
32842
32843         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
32844         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
32845         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
32846         (decode_double): New function, copied from decode_long_double.
32847         (scale10_round_decimal_decoded): New function, extracted from
32848         scale10_round_decimal_long_double.
32849         (scale10_round_decimal_long_double): Use it.
32850         (scale10_round_decimal_double): New function.
32851         (floorlog10): New function.
32852         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
32853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
32854         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32856         gl_PRINTF_ENOMEM and test its result. Invoke
32857         gl_PREREQ_VASNPRINTF_ENOMEM.
32858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32859         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32865         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
32866         * modules/snprintf-posix (Depends-on): Likewise.
32867         * modules/sprintf-posix (Depends-on): Likewise.
32868         * modules/vasnprintf-posix (Depends-on): Likewise.
32869         * modules/vasprintf-posix (Depends-on): Likewise.
32870         * modules/vfprintf-posix (Depends-on): Likewise.
32871         * modules/vsnprintf-posix (Depends-on): Likewise.
32872         * modules/vsprintf-posix (Depends-on): Likewise.
32873         * doc/functions/fprintf.texi: Update.
32874         * doc/functions/printf.texi: Update.
32875         * doc/functions/snprintf.texi: Update.
32876         * doc/functions/sprintf.texi: Update.
32877         * doc/functions/vfprintf.texi: Update.
32878         * doc/functions/vprintf.texi: Update.
32879         * doc/functions/vsnprintf.texi: Update.
32880         * doc/functions/vsprintf.texi: Update.
32881
32882 2007-11-03  Bruno Haible  <bruno@clisp.org>
32883
32884         * modules/frexp-nolibm-tests: New file.
32885
32886         * modules/frexp-nolibm: New file.
32887         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
32888
32889 2007-11-03  Bruno Haible  <bruno@clisp.org>
32890
32891         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
32892         value is C99 compliant.
32893         Needed for OSF/1 5.1.
32894
32895 2007-11-03  Bruno Haible  <bruno@clisp.org>
32896
32897         Fix out-of-memory handling of vasnprintf.
32898         * lib/printf-parse.c: Include <errno.h>.
32899         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
32900         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
32901         is already set.
32902
32903 2007-11-02  Eric Blake  <ebb9@byu.net>
32904
32905         Fix tests on cygwin.
32906         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
32907
32908 2007-11-01  Bruno Haible  <bruno@clisp.org>
32909
32910         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
32911         warning.
32912         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
32913         needed for POSIX compatibility.
32914
32915 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
32916
32917         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
32918         for compatibility with GNU.
32919
32920 2007-11-01  Bruno Haible  <bruno@clisp.org>
32921
32922         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
32923         (putenv): Renamed from rpl_putenv. Change argument type from
32924         'const char *' to 'char *'.
32925         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
32926         of defining putenv in config.h, just set REPLACE_PUTENV.
32927         * modules/putenv (Depends-on): Add stdlib.
32928         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32929         (Include): Use <stdlib.h>.
32930         * lib/stdlib.in.h (putenv): New declaration.
32931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
32932         REPLACE_PUTENV.
32933         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
32934         REPLACE_PUTENV.
32935         Needed for MacOS X 10.5.0.
32936         Reported by Peter O'Gorman <peter@pogma.com>.
32937
32938 2007-11-01  Jim Meyering  <meyering@redhat.com>
32939
32940         Treat an empty date string exactly like "0".
32941         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
32942         if the remaining date string (to be parsed) is empty, use "0".
32943         Reported by Mischa Molhoek and discussed in this thread:
32944         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
32945
32946 2007-10-31  Bruno Haible  <bruno@clisp.org>
32947
32948         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
32949         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
32950         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
32951         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
32952         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
32953         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
32954
32955 2007-10-31  Bruno Haible  <bruno@clisp.org>
32956
32957         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
32958         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
32959         (AC_TYPE_LONG_LONG_INT): Use it.
32960         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
32961         it as well.
32962         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
32963         to m4/longlong.m4.
32964         * modules/stdint (Files): Remove m4/ulonglong.m4.
32965         * modules/strtoull (Files): Use m4/longlong.m4 instead of
32966         m4/ulonglong.m4.
32967         * modules/strtoumax (Files): Likewise.
32968
32969 2007-10-30  Bruno Haible  <bruno@clisp.org>
32970
32971         * modules/xvasprintf-posix: New file.
32972         Suggested by Eric Blake.
32973
32974 2007-10-30  Bruno Haible  <bruno@clisp.org>
32975
32976         * modules/xprintf-posix-tests: New file.
32977         * tests/test-xprintf-posix.sh: New file.
32978         * tests/test-xprintf-posix.c: New file.
32979         * tests/test-xfprintf-posix.c: New file.
32980
32981         * modules/xprintf-posix: New file.
32982
32983 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32984
32985         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
32986         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
32987         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
32988
32989 2007-10-29  Bruno Haible  <bruno@clisp.org>
32990
32991         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
32992         contain the special marker '_cv_'.
32993         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32994         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32995         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32996         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32997         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32998         Reported by Ralf Wildenhues.
32999
33000 2007-10-29  Bruno Haible  <bruno@clisp.org>
33001
33002         * gnulib-tool (func_import): When --lgpl is not specified, set
33003         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33004         GPLv3.
33005         Reported by Simon Josefsson.
33006
33007 2007-10-28  Bruno Haible  <bruno@clisp.org>
33008
33009         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33010         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33011         HAVE_DECL_ISFINITE.
33012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33013         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33014         HAVE_DECL_ISFINITE.
33015
33016 2007-10-28  Bruno Haible  <bruno@clisp.org>
33017
33018         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33019         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33020
33021 2007-10-28  Bruno Haible  <bruno@clisp.org>
33022
33023         Fix link errors with Sun C 5.0 on Solaris 10.
33024         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33025         function is declared but not present in the compiler's libm.
33026         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33027         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33028         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33029         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33030         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33031         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33032         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33034         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33035         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33036         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33037         HAVE_DECL_FLOORL.
33038
33039 2007-10-28  Bruno Haible  <bruno@clisp.org>
33040
33041         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33042         gl_FUNC_FLOORL. Cache the result.
33043         (gl_FUNC_FLOORL): Use it.
33044         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33045         gl_FUNC_CEILL. Cache the result.
33046         (gl_FUNC_CEILL): Use it.
33047
33048         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33049         gl_FUNC_FLOOR. Cache the result.
33050         (gl_FUNC_FLOOR): Use it.
33051         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33052         gl_FUNC_CEIL. Cache the result.
33053         (gl_FUNC_CEIL): Use it.
33054
33055         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33056         gl_FUNC_FLOORF. Cache the result.
33057         (gl_FUNC_FLOORF): Use it.
33058         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33059         gl_FUNC_CEILF. Cache the result.
33060         (gl_FUNC_CEILF): Use it.
33061
33062 2007-10-28  Bruno Haible  <bruno@clisp.org>
33063
33064         * gnulib-tool: Allow specifying the LGPL version number through
33065         --lgpl=2 or --lgpl=3.
33066         (func_usage): Document --lgpl with argument.
33067         Handle --lgpl=... arguments.
33068         (func_import): Recognize also gl_LGPL calls with an argument. When
33069         --lgpl=2 is used and the module's license is just LGPL, report an
33070         error. Set sed_transform_lib_file according to the lgpl variable. In
33071         the generated files, use --lgpl or gl_LGPL invocations with argument,
33072         if necessary.
33073         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33074         an LGPv2+ license.
33075         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33076         gl_LGPL macro.
33077
33078 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33079             Bruno Haible  <bruno@clisp.org>
33080
33081         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33082         (u16_uctomb_aux): Likewise.
33083         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33084         !HAVE_INLINE.
33085         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33086
33087 2007-10-28  Bruno Haible  <bruno@clisp.org>
33088
33089         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33090         Invoke AM_GETTEXT_OPTION if it exists.
33091         * modules/vasprintf: Likewise.
33092         * modules/verror: Likewise.
33093         * modules/xprintf: Likewise.
33094         * modules/xvasprintf: Likewise.
33095
33096 2007-10-27  Ben Pfaff  <blp@gnu.org>
33097
33098         * lib/math.in.h: Define isfinite macro and prototypes for
33099         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33100         implementations.
33101         * m4/math_h.m4: New substitutions for isfinite module.
33102         * lib/isfinite.c: New file.
33103         * m4/isfinite.m4: New file.
33104         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33105         * modules/isfinite: New file.
33106         * modules/isfinite-tests: New file.
33107         * tests/tests-isfinite.c: New file.
33108         * doc/functions/isfinite.texi: Mention isfinite module.
33109         * MODULES.html.sh: Mention new module.
33110
33111 2007-10-27  Ben Pfaff  <blp@gnu.org>
33112
33113         Ralf Wildenhues reported that Tru64 4.0D declares the round
33114         functions but does not have definitions.
33115         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33116         cannot be found in any library, set the output variable to
33117         "missing" instead of "".
33118         * m4/round.m4: Also use our substitute if we cannot find round in
33119         any library, even if it is declared.
33120         * m4/roundf.m4: Likewise for roundf.
33121         * m4/roundl.m4: Likewise for roundl.
33122         * lib/math.in.h: Undefine roundf, round, roundl before defining
33123         their replacements, to allow for hypothetical systems where these
33124         may be defined as macros but not available in libraries.
33125
33126 2007-10-27  Bruno Haible  <bruno@clisp.org>
33127
33128         * doc/gnulib.texi: Invoke @firstparagraphindent.
33129         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33130         changes in gnulib.
33131         (Source changes): New section.
33132
33133 2007-10-26  Bruno Haible  <bruno@clisp.org>
33134
33135         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33136         borrowed from autoconf.
33137
33138 2007-10-26  Bruno Haible  <bruno@clisp.org>
33139
33140         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33141         strerror returned the empty string. Needed on HP-UX 11.00.
33142
33143 2007-10-24  Micah Cowan  <micah@cowan.name>
33144
33145         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33146         * build-aux/bootstrap: Remove support for now-unnecessary option,
33147         --cvs-user, and envvars CVS_USER, CVS_RSH.
33148
33149 2007-10-24  Jim Meyering  <meyering@redhat.com>
33150
33151         Avoid diagnostics from sha1sum when there is no cached checksum.
33152         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33153         if the po.s1 file hasn't been created yet.
33154
33155         * build-aux/bootstrap: Sync from coreutils:
33156         2007-10-24  Jim Meyering  <meyering@redhat.com>
33157         Get gnulib from the git repository, not from an obsolete cvs one.
33158         * build-aux/bootstrap: Suggestion from Micah Cowan.
33159         2007-10-04  Jim Meyering  <jim@meyering.net>
33160         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33161         (update_po_files): Work also when there are no .po files in po/.
33162
33163 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33164
33165         * README: Append ".git" to git and cg examples.
33166         Problem reported by Benoit Sigoure.
33167
33168 2007-10-23  Micah Cowan  <micah@cowan.name>
33169
33170         * users.txt: Add wget.
33171
33172 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33173
33174         Fix linking of some unistdio tests on FreeBSD.
33175         * modules/unistdio/u16-vsnprintf-tests
33176         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33177         * modules/unistdio/u16-vsprintf-tests
33178         (test_u16_vsnprintf1_LDADD): Likewise.
33179         * modules/unistdio/u32-vsnprintf-tests
33180         (test_u32_vsnprintf1_LDADD): Likewise.
33181         * modules/unistdio/u32-vsprintf-tests
33182         (test_u32_vsprintf1_LDADD): Likewise.
33183         * modules/unistdio/u8-vsnprintf-tests
33184         (test_u8_vsnprintf1_LDADD): Likewise.
33185         * modules/unistdio/u8-vsprintf-tests
33186         (test_u8_vsprintf1_LDADD): Likewise.
33187         * modules/unistdio/ulc-vsnprintf-tests
33188         (test_ulc_vsnprintf1_LDADD): Likewise.
33189         * modules/unistdio/ulc-vsprintf-tests
33190         (test_ulc_vsprintf1_LDADD): Likewise.
33191
33192         Fix linking of some uniconv tests on FreeBSD.
33193         * modules/uniconv/u16-conv-from-enc-tests
33194         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33195         * modules/uniconv/u16-conv-to-enc-tests
33196         (test_u16_conv_to_enc_LDADD): Likewise.
33197         * modules/uniconv/u16-strconv-from-enc-tests
33198         (test_u16_strconv_from_enc_LDADD): Likewise.
33199         * modules/uniconv/u16-strconv-to-enc-tests
33200         (test_u16_strconv_to_enc_LDADD): Likewise.
33201         * modules/uniconv/u32-conv-from-enc-tests
33202         (test_u32_conv_from_enc_LDADD): Likewise.
33203         * modules/uniconv/u32-conv-to-enc-tests
33204         (test_u32_conv_to_enc_LDADD): Likewise.
33205         * modules/uniconv/u32-strconv-from-enc-tests
33206         (test_u32_strconv_from_enc_LDADD): Likewise.
33207         * modules/uniconv/u32-strconv-to-enc-tests
33208         (test_u32_strconv_to_enc_LDADD): Likewise.
33209         * modules/uniconv/u8-conv-from-enc-tests
33210         (test_u8_conv_from_enc_LDADD): Likewise.
33211         * modules/uniconv/u8-conv-to-enc-tests
33212         (test_u8_conv_to_enc_LDADD): Likewise.
33213         * modules/uniconv/u8-strconv-from-enc-tests
33214         (test_u8_strconv_from_enc_LDADD): Likewise.
33215         * modules/uniconv/u8-strconv-to-enc-tests
33216         (test_u8_strconv_to_enc_LDADD): Likewise.
33217
33218 2007-10-22  Bruno Haible  <bruno@clisp.org>
33219
33220         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33221         size.
33222
33223 2007-10-22  Eric Blake  <ebb9@byu.net>
33224
33225         Tweak x*printf documentation.
33226         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33227         variable name and comments.
33228         Suggested by Bruno Haible.
33229
33230 2007-10-22  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/acl.c (copy_acl): Fix file name in comment.
33233
33234 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33235
33236         Fix Tru64 problem with stdbool.h.
33237         * lib/stdbool.in.h (false, true):
33238         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33239         Don't declare as an enum in this situation; it runs afoul of Tru64.
33240         Problem reported by Steven M. Schweda in
33241         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33242
33243 2007-10-22  Eric Blake  <ebb9@byu.net>
33244
33245         Also wrap vf?printf.
33246         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33247         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33248         (xvprintf, xvfprintf): New functions.
33249
33250 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33251
33252         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33253         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33254
33255         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33256         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33257
33258 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33259
33260         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33261         by Bruno Haible.
33262
33263 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33264
33265         * lib/getloadavg.c
33266         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33267         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33268
33269         * tests/test-i-ring.c: Work for C89.
33270
33271 2007-10-22  Bruno Haible  <bruno@clisp.org>
33272
33273         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33274         -1u, in preprocessor expression, so that we don't test for the bug
33275         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33277
33278 2007-10-22  Eric Blake  <ebb9@byu.net>
33279
33280         * tests/test-yesno.sh: Silence stderr during test.
33281
33282 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33283
33284         * modules/crypto/gc-camellia: New file.
33285
33286         * m4/gc-camellia.m4: New file.
33287
33288         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33289
33290         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33291
33292 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33293
33294         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33295         --help to stdout.  Reported by sms@antinode.org (Steven
33296         M. Schweda).
33297
33298 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33299
33300         * users.txt: Fix link to libksba.
33301
33302 2007-10-21  Ben Pfaff  <blp@gnu.org>
33303
33304         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33305         round.c roundf implementation that depends on floorf and ceilf to
33306         be tested unconditionally.
33307
33308 2007-10-21  Ben Pfaff  <blp@gnu.org>
33309
33310         * m4/check-libm-func.m4: Removed.
33311         * m4/check-math-lib.m4: New file.
33312         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33313         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33314         definition and lack of AC_LIBOBJ([roundf]).
33315         * m4/roundl.m4: Ditto, and similarly for roundl.
33316         * modules/round: Reference new m4 file.
33317         * modules/roundf: Ditto.
33318         * modules/roundl: Ditto.
33319         * tests/test-round2.c (main): Use ROUND instead of round.
33320         Bug report from Bruno Haible.
33321
33322 2007-10-21  Bruno Haible  <bruno@clisp.org>
33323
33324         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33325         context.
33326
33327 2007-10-21  Bruno Haible  <bruno@clisp.org>
33328
33329         * tests/test-wcwidth.c (main): Allow negative result for some control
33330         characters.
33331
33332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33333         Needed on OSF/1 5.1.
33334
33335 2007-10-21  Bruno Haible  <bruno@clisp.org>
33336
33337         * tests/test-floorf1.c: Include isnanf.h.
33338         (main): Use isnanf() instead of isnan().
33339         * tests/test-ceilf1.c: Include isnanf.h.
33340         (main): Use isnanf() instead of isnan().
33341         * tests/test-truncf1.c: Include isnanf.h.
33342         (main): Use isnanf() instead of isnan().
33343         * tests/test-roundf1.c: Include isnanf.h.
33344         (main): Use isnanf() instead of isnan().
33345
33346 2007-10-21  Eric Blake  <ebb9@byu.net>
33347
33348         * users.txt: Update URL for m4.
33349
33350 2007-10-21  Bruno Haible  <bruno@clisp.org>
33351
33352         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33353
33354 2007-10-21  Bruno Haible  <bruno@clisp.org>
33355
33356         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33357         Git's management files if the CVS files are not present.
33358
33359 2007-10-20  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33362         gcc-3.4.x.
33363
33364 2007-10-20  Ben Pfaff  <blp@gnu.org>
33365
33366         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33367         implementations.
33368         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33369         * lib/round.c: New file.
33370         * lib/roundf.c: New file.
33371         * lib/roundl.c: New file.
33372         * m4/round.m4: New file.
33373         * m4/roundf.m4: New file.
33374         * m4/roundl.m4: New file.
33375         * m4/check-libm-func-m4: New file.
33376         * modules/math: Replace round, roundf, roundl related @VARS@ in
33377         math.in.h.
33378         * modules/round: New file.
33379         * modules/round-tests: New file.
33380         * modules/roundf: New file.
33381         * modules/roundf-tests: New file.
33382         * modules/roundl: New file.
33383         * modules/roundl-tests: New file.
33384         * tests/test-round1.c: New file.
33385         * tests/test-round2.c: New file.
33386         * tests/test-roundf1.c: New file.
33387         * tests/test-roundf2.c: New file.
33388         * tests/test-roundl.c: New file.
33389         * doc/functions/round.texi: Mention round module.
33390         * doc/functions/roundf.texi: Mention roundf module.
33391         * doc/functions/roundl.texi: Mention roundl module.
33392         * MODULES.html.sh: Mention new modules.
33393         Thanks to Bruno Haible for suggestions.
33394
33395 2007-10-20  Jim Meyering  <meyering@redhat.com>
33396
33397         * lib/xprintf.c: Include <config.h> unconditionally.
33398
33399         Change xprintf's license to GPL.
33400         * modules/xprintf (License): s/LGPL/GPL/, since this module
33401         depends on modules (exit and exitfail) which are GPL.
33402         Suggestion from Bruno Haible.
33403
33404         xprintf fixes.
33405         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33406         Use a clearer diagnostic.
33407         Patch from Bruno Haible.
33408
33409 2007-10-20  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33412         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33413         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33414
33415 2007-10-20  Bruno Haible  <bruno@clisp.org>
33416
33417         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33418         precision in the comparison result > x - 1 or similar.
33419         * tests/test-ceilf2.c (correct_result_p): Likewise.
33420         * tests/test-truncf2.c (correct_result_p): Likewise.
33421         * tests/test-trunc2.c (correct_result_p): Likewise.
33422         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33423
33424 2007-10-20  Bruno Haible  <bruno@clisp.org>
33425
33426         * modules/ceil: New file.
33427         * m4/ceil.m4: New file.
33428         * doc/functions/ceil.texi: Mention the 'ceil' module.
33429
33430 2007-10-20  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/floor: New file.
33433         * m4/floor.m4: New file.
33434         * doc/functions/floor.texi: Mention the 'floor' module.
33435
33436 2007-10-20  Bruno Haible  <bruno@clisp.org>
33437
33438         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33439         of %a.
33440         * modules/floorf-tests (Depends-on): Likewise.
33441         * modules/truncf-tests (Depends-on): Likewise.
33442         * modules/trunc-tests (Depends-on): Likewise.
33443         Reported by Ben Pfaff.
33444
33445 2007-10-19  Jim Meyering  <meyering@redhat.com>
33446
33447         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33448         Don't bother testing specific errno values.  Just test ferror.
33449
33450         New module: xprintf
33451         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33452
33453 2007-10-19  Bruno Haible  <bruno@clisp.org>
33454
33455         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33456         syntax.
33457         * modules/javaexec (Makefile.am): Likewise.
33458         * modules/relocatable-prog (Makefile.am): Likewise.
33459         Suggested by Jim Meyering.
33460
33461 2007-10-18  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33464         Reported by Jim Meyering.
33465
33466 2007-10-18  Eric Blake  <ebb9@byu.net>
33467
33468         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33469
33470 2007-10-18  Bruno Haible  <bruno@clisp.org>
33471
33472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33473         the format string into writable memory. Needed in Fortify conditions.
33474
33475 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33476             Bruno Haible  <bruno@clisp.org>
33477
33478         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33479         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33480         * modules/trim (Depends-on): Add mbchar.
33481         (configure.ac): Add gl_FUNC_MBRTOWC.
33482         (Makefile.am): Augment lib_SOURCES.
33483
33484 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33485
33486         Modify glob.c to use fstatat and dirfd, to simplify it.
33487         Suggested by Eric Blake.
33488         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33489         Don't include <stdbool.h>; not used.
33490         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33491         (link_exists_p): Simplify implementation, since we can now assume
33492         dirfd and fstatat.
33493         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33494
33495 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33496
33497         * gnulib-tool (func_get_dependencies): Fix sed script to
33498         match only tests.
33499
33500 2007-10-17  Bruno Haible  <bruno@clisp.org>
33501
33502         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33503         allow locale names without encoding suffix.
33504         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33505         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33506
33507 2007-10-16  Bruno Haible  <bruno@clisp.org>
33508
33509         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33510         * lib/getgroups.c (getgroups): Likewise.
33511         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33512
33513 2007-10-16  Bruno Haible  <bruno@clisp.org>
33514
33515         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33516         * modules/malloc-posix (License): Likewise.
33517         * modules/realloc-posix (License): Likewise.
33518         * modules/calloc-posix (License): Likewise.
33519         * modules/intprops (License): Change from GPL to LGPL, with
33520         Paul Eggert's approval.
33521
33522 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33523
33524         Merge glibc changes into lib/glob.c.
33525
33526         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
33527         2007-10-15 04:59:03 UTC.  Here are the changes:
33528
33529         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
33530
33531         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
33532
33533         * lib/glob.c: Add some branch prediction throughout.
33534
33535         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
33536
33537         [BZ #5103]
33538         * lib/glob.c (glob): Recognize patterns starting \/.
33539
33540         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
33541
33542         [BZ #3996]
33543         * lib/glob.c (attribute_hidden): Define if not defined.
33544         (glob): Unescape dirname, filename or username when needed and not
33545         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
33546         is NULL.  Handle unescaped [ in pattern without closing ].
33547         Don't pass GLOB_CHECK down to recursive glob for directories.
33548         (__glob_pattern_type): New function.
33549         (__glob_pattern_p): Implement using __glob_pattern_type.
33550         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
33551         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
33552         Remove unreachable code.
33553
33554         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
33555
33556         * lib/glob.c (glob_in_dir): Add some comments and asserts to
33557         explain why there are no leaks.
33558
33559         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
33560
33561         [BZ #3253]
33562         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
33563         time, rather allocate increasingly bigger arrays of pointers, if
33564         possible with alloca, if too large with malloc.
33565
33566 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33567
33568         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
33569         Problem reported by H.Merijn Brand in
33570         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
33571         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
33572         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
33573
33574 2007-10-15  Bruno Haible  <bruno@clisp.org>
33575
33576         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
33577         with explicit rpl_ prefix.
33578         * lib/fopen.c (fopen): Likewise.
33579         * lib/freopen.c (freopen): Likewise.
33580         * lib/iconv.c (iconv): Likewise.
33581         * lib/iconv_close.c (iconv_close): Likewise.
33582
33583 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33584
33585         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
33586
33587 2007-10-15  Bruno Haible  <bruno@clisp.org>
33588
33589         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
33590         <stddef.h> instead of <stdlib.h> since we only need NULL.
33591         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33592
33593 2007-10-15  Bruno Haible  <bruno@clisp.org>
33594
33595         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
33596         Replace paragraph talking about LIBOBJS.
33597         Reported by Colin Watson <cjwatson@debian.org>.
33598
33599 2007-10-15  Bruno Haible  <bruno@clisp.org>
33600
33601         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
33602         <stdlib.h> before using NULL.
33603
33604 2007-10-15  Simon Josefsson  <simon@josefsson.org>
33605
33606         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
33607         Reported by Albert Chin <china@thewrittenword.com>.
33608
33609 2007-10-14  Bruno Haible  <bruno@clisp.org>
33610
33611         * modules/iconv_open-utf-tests: New file.
33612         * tests/test-iconv-utf.c: New file.
33613
33614         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
33615         * modules/iconv_open-utf: New file.
33616         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
33617         (iconv, iconv_close): New declarations.
33618         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
33619         be defined.
33620         (iconv_open): Add special handling of conversion between UTF-8 and
33621         UTF-{16,32}{BE,LE}.
33622         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
33623         * lib/iconv_close.c: New file.
33624         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
33625         gl_FUNC_ICONV_OPEN.
33626         (gl_FUNC_ICONV_OPEN): Use it.
33627         (gl_FUNC_ICONV_OPEN_UTF): New macro.
33628         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
33629         and REPLACE_ICONV_UTF.
33630         * modules/iconv_open (Depends-on): Add c-strcase.
33631         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
33632         ICONV_CONST.
33633         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
33634
33635 2007-10-13  Albert Chin  <china@thewrittenword.com>
33636             Bruno Haible  <bruno@clisp.org>
33637
33638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
33639         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
33640
33641 2007-10-13  Bruno Haible  <bruno@clisp.org>
33642
33643         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
33644         defined, use the ISO C99 inline semantics.
33645         * lib/argp.h (ARGP_EI): Likewise.
33646
33647 2007-10-13  Bruno Haible  <bruno@clisp.org>
33648
33649         Handle 'inline' change in gcc 4.3.0.
33650         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
33651         argp_fmtstream_write, argp_fmtstream_set_lmargin,
33652         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
33653         argp_fmtstream_point): Disable 'extern' declaration if the function
33654         definition is going to be provided inline.
33655         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
33656         semantics, not the ISO C99 inline semantics.
33657         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
33658         'extern' declaration if the function definition is going to be provided
33659         inline.
33660         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
33661         the GNU C inline semantics, not the ISO C99 inline semantics. With
33662         GCC 4.2, avoid a warning.
33663
33664 2007-10-13  Bruno Haible  <bruno@clisp.org>
33665
33666         * lib/freading.h (freading): Enable the use of __freading for
33667         glibc >= 2.7.
33668         * lib/freading.c (freading): Likewise.
33669
33670 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33671
33672         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
33673         "warning: C99 inline functions are not supported; using GNU89".
33674
33675 2007-10-12  Bruno Haible  <bruno@clisp.org>
33676
33677         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
33678         of 2.
33679         * tests/test-ceilf2.c: New file.
33680         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
33681
33682         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
33683         * modules/ceilf-tests: Update.
33684
33685 2007-10-12  Bruno Haible  <bruno@clisp.org>
33686
33687         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
33688         of 2.
33689         * tests/test-floorf2.c: New file.
33690         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
33691
33692         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
33693         * modules/floorf-tests: Update.
33694
33695 2007-10-12  Bruno Haible  <bruno@clisp.org>
33696
33697         * tests/test-trunc2.c: New file.
33698         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
33699
33700         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
33701         * modules/trunc-tests: Update.
33702
33703 2007-10-12  Bruno Haible  <bruno@clisp.org>
33704
33705         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
33706         of 2.
33707         * tests/test-truncf2.c: New file.
33708         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
33709
33710         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
33711         * modules/truncf-tests: Update.
33712
33713 2007-10-11  Eric Blake  <ebb9@byu.net>
33714
33715         Don't claim strerror is broken on Interix.
33716         * doc/functions/strerror.texi (strerror): Known broken systems are
33717         now Solaris 8, and not Interix.
33718         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
33719         Interix on cross-compile.
33720         Reported by Martin Koeppe in
33721         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
33722
33723 2007-10-11  Bruno Haible  <bruno@clisp.org>
33724
33725         * modules/i-ring-tests: New file.
33726         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
33727         instead of assert.
33728
33729 2007-10-11  Bruno Haible  <bruno@clisp.org>
33730
33731         * modules/filenamecat-tests: New file.
33732         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
33733         * lib/filenamecat.c: Remove test code.
33734
33735 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33736
33737         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
33738
33739         * lib/strerror.c: Include <string.h> always, to test interface,
33740         and to remove the need for the dummy.
33741         Include intprops.h to compute width instead of doing it ourselves
33742         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
33743         (strerror): Define it to return NULL if there's no system strerror.
33744         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
33745         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
33746         ancient pre-strerror Unix systems well any more.  Saying "unknown
33747         system error" is enough.
33748         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
33749         simpler strerror.c implementation.
33750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
33751         Simplify the tests to reflect the simpler strerror implementation.
33752         * modules/strerror (Depends-on): Add intprops.
33753
33754 2007-10-09  Eric Blake  <ebb9@byu.net>
33755
33756         Silence test-fpending.
33757         * modules/fpending-tests (Files): Add wrapper script.
33758         * tests/test-fpending.sh: New file.
33759
33760 2007-10-09  Bruno Haible  <bruno@clisp.org>
33761
33762         * MODULES.html.sh (func_module): Don't create a hyperlink for
33763         function names like 'printf_frexp'.
33764         (Misc): Add crc, memxor.
33765         (Characteristics of floating types): New section.
33766         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
33767         isnanf-nolibm, signbit, trunc, truncf, truncl.
33768         (Enhancements for ISO C 99 functions): New subsection Input/output.
33769         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
33770         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
33771         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
33772         (Compatibility checks for POSIX:2001 functions): Add clock-time.
33773         (Enhancements for POSIX:2001 functions): Add chdir-long.
33774         (File system functions): Add areadlink, chdir-safer, read-file.
33775         Remove cycle-check.
33776         (File system as inode set): New section.
33777         (Date and time): Add gethrxtime.
33778         (Multithreading): Add openmp.
33779         (Internationalization functions): Add localename.
33780         (Unicode string functions): Add unistr/u*-mbsnlen.
33781         (Support for maintaining and releasing projects): Add git-version-gen.
33782         (Lone files): Remove directories.
33783
33784 2007-10-08  Ben Pfaff  <blp@gnu.org>
33785
33786         * lib/xmalloca.h: Fix typo in comment.
33787
33788 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33789
33790         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
33791         when avoiding problems with integer overflow.  Use a portable test
33792         instead.
33793
33794 2007-10-08  Simon Josefsson  <simon@josefsson.org>
33795
33796         * modules/dummy (License): Change to LGPLv2+.
33797         * modules/float (License): Likewise
33798         * modules/realloc (License): Likewise
33799         * modules/stdlib (License): Likewise
33800
33801 2007-10-07  Bruno Haible  <bruno@clisp.org>
33802
33803         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
33804         * floor.c (TWO_MANT_DIG): Likewise.
33805         * ceil.c (TWO_MANT_DIG): Likewise.
33806         Reported by Ben Pfaff.
33807
33808 2007-10-07  Bruno Haible  <bruno@clisp.org>
33809
33810         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
33811         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
33812         * lib/frexp.c (FUNC): Likewise.
33813         * lib/printf-frexp.h (printf_frexp): Likewise.
33814         * lib/printf-frexpl.h (printf_frexpl): Likewise.
33815         * lib/printf-frexp.c (FUNC): Likewise.
33816         Suggested by Jim Meyering.
33817
33818 2007-10-07  Jim Meyering  <meyering@redhat.com>
33819
33820         Make xnanosleep's integer overflow test more robust.
33821         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
33822         so that gcc-4.3.0 doesn't optimize away this test for overflow.
33823
33824 2007-10-07  Bruno Haible  <bruno@clisp.org>
33825
33826         * NEWS: Mention the license change.
33827
33828         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
33829         abbreviations in the modules files.
33830
33831         Change copyright notice from GPLv2+ to GPLv3+.
33832         * README: Change copyright notice.
33833         * MODULES.html.sh: Likewise.
33834         * build-aux/bootstrap.conf: Likewise.
33835         * build-aux/config.libpath: Likewise.
33836         * build-aux/csharpcomp.sh.in: Likewise.
33837         * build-aux/csharpexec.sh.in: Likewise.
33838         * build-aux/install-reloc: Likewise.
33839         * build-aux/javacomp.sh.in: Likewise.
33840         * build-aux/javaexec.sh.in: Likewise.
33841         * build-aux/ldd.sh.in: Likewise.
33842         * build-aux/reloc-ldflags: Likewise.
33843         * build-aux/relocatable.sh.in: Likewise.
33844         * build-aux/x-to-1.in: Likewise.
33845         * check-module: Likewise.
33846         * config/srclistvars.sh: Likewise.
33847         * gnulib-tool: Likewise.
33848         * lib/acl-internal.h: Likewise.
33849         * lib/acl.c: Likewise.
33850         * lib/acl.h: Likewise.
33851         * lib/acl_entries.c: Likewise.
33852         * lib/areadlink-with-size.c: Likewise.
33853         * lib/areadlink.c: Likewise.
33854         * lib/areadlink.h: Likewise.
33855         * lib/argmatch.c: Likewise.
33856         * lib/argmatch.h: Likewise.
33857         * lib/argp-ba.c: Likewise.
33858         * lib/argp-eexst.c: Likewise.
33859         * lib/argp-fmtstream.c: Likewise.
33860         * lib/argp-fmtstream.h: Likewise.
33861         * lib/argp-fs-xinl.c: Likewise.
33862         * lib/argp-help.c: Likewise.
33863         * lib/argp-namefrob.h: Likewise.
33864         * lib/argp-parse.c: Likewise.
33865         * lib/argp-pin.c: Likewise.
33866         * lib/argp-pv.c: Likewise.
33867         * lib/argp-pvh.c: Likewise.
33868         * lib/argp-xinl.c: Likewise.
33869         * lib/argp.h: Likewise.
33870         * lib/at-func.c: Likewise.
33871         * lib/atanl.c: Likewise.
33872         * lib/backupfile.c: Likewise.
33873         * lib/backupfile.h: Likewise.
33874         * lib/basename.c: Likewise.
33875         * lib/binary-io.h: Likewise.
33876         * lib/byteswap.in.h: Likewise.
33877         * lib/c-stack.c: Likewise.
33878         * lib/c-stack.h: Likewise.
33879         * lib/c-strcasestr.c: Likewise.
33880         * lib/c-strcasestr.h: Likewise.
33881         * lib/c-strstr.c: Likewise.
33882         * lib/c-strstr.h: Likewise.
33883         * lib/c-strtod.c: Likewise.
33884         * lib/calloc.c: Likewise.
33885         * lib/canon-host.c: Likewise.
33886         * lib/canon-host.h: Likewise.
33887         * lib/canonicalize-lgpl.c: Likewise.
33888         * lib/canonicalize.c: Likewise.
33889         * lib/canonicalize.h: Likewise.
33890         * lib/ceil.c: Likewise.
33891         * lib/ceilf.c: Likewise.
33892         * lib/ceill.c: Likewise.
33893         * lib/chdir-long.c: Likewise.
33894         * lib/chdir-long.h: Likewise.
33895         * lib/chdir-safer.c: Likewise.
33896         * lib/chdir-safer.h: Likewise.
33897         * lib/chown.c: Likewise.
33898         * lib/classpath.c: Likewise.
33899         * lib/classpath.h: Likewise.
33900         * lib/clean-temp.c: Likewise.
33901         * lib/clean-temp.h: Likewise.
33902         * lib/cloexec.c: Likewise.
33903         * lib/close-stream.c: Likewise.
33904         * lib/closein.c: Likewise.
33905         * lib/closein.h: Likewise.
33906         * lib/closeout.c: Likewise.
33907         * lib/closeout.h: Likewise.
33908         * lib/concat-filename.c: Likewise.
33909         * lib/copy-file.c: Likewise.
33910         * lib/copy-file.h: Likewise.
33911         * lib/count-one-bits.h: Likewise.
33912         * lib/crc.c: Likewise.
33913         * lib/crc.h: Likewise.
33914         * lib/creat-safer.c: Likewise.
33915         * lib/csharpcomp.c: Likewise.
33916         * lib/csharpcomp.h: Likewise.
33917         * lib/csharpexec.c: Likewise.
33918         * lib/csharpexec.h: Likewise.
33919         * lib/cycle-check.c: Likewise.
33920         * lib/cycle-check.h: Likewise.
33921         * lib/diacrit.c: Likewise.
33922         * lib/diacrit.h: Likewise.
33923         * lib/diffseq.h: Likewise.
33924         * lib/dirchownmod.c: Likewise.
33925         * lib/dirent.in.h: Likewise.
33926         * lib/dirfd.c: Likewise.
33927         * lib/dirfd.h: Likewise.
33928         * lib/dirname.c: Likewise.
33929         * lib/dirname.h: Likewise.
33930         * lib/dummy.c: Likewise.
33931         * lib/dup-safer.c: Likewise.
33932         * lib/dup2.c: Likewise.
33933         * lib/eealloc.h: Likewise.
33934         * lib/error.c: Likewise.
33935         * lib/error.h: Likewise.
33936         * lib/euidaccess.c: Likewise.
33937         * lib/exclude.c: Likewise.
33938         * lib/exclude.h: Likewise.
33939         * lib/execute.c: Likewise.
33940         * lib/execute.h: Likewise.
33941         * lib/exitfail.c: Likewise.
33942         * lib/exitfail.h: Likewise.
33943         * lib/expl.c: Likewise.
33944         * lib/fatal-signal.c: Likewise.
33945         * lib/fatal-signal.h: Likewise.
33946         * lib/fbufmode.c: Likewise.
33947         * lib/fbufmode.h: Likewise.
33948         * lib/fchdir.c: Likewise.
33949         * lib/fchmodat.c: Likewise.
33950         * lib/fchownat.c: Likewise.
33951         * lib/fcntl--.h: Likewise.
33952         * lib/fcntl-safer.h: Likewise.
33953         * lib/fcntl.in.h: Likewise.
33954         * lib/fd-safer.c: Likewise.
33955         * lib/fflush.c: Likewise.
33956         * lib/file-has-acl.c: Likewise.
33957         * lib/file-set.c: Likewise.
33958         * lib/file-type.c: Likewise.
33959         * lib/file-type.h: Likewise.
33960         * lib/fileblocks.c: Likewise.
33961         * lib/filemode.c: Likewise.
33962         * lib/filemode.h: Likewise.
33963         * lib/filename.h: Likewise.
33964         * lib/filenamecat.c: Likewise.
33965         * lib/filenamecat.h: Likewise.
33966         * lib/findprog.c: Likewise.
33967         * lib/findprog.h: Likewise.
33968         * lib/float.in.h: Likewise.
33969         * lib/floor.c: Likewise.
33970         * lib/floorf.c: Likewise.
33971         * lib/floorl.c: Likewise.
33972         * lib/fopen-safer.c: Likewise.
33973         * lib/fopen.c: Likewise.
33974         * lib/fpending.c: Likewise.
33975         * lib/fpending.h: Likewise.
33976         * lib/fprintf.c: Likewise.
33977         * lib/fprintftime.h: Likewise.
33978         * lib/fpucw.h: Likewise.
33979         * lib/fpurge.c: Likewise.
33980         * lib/fpurge.h: Likewise.
33981         * lib/freadable.c: Likewise.
33982         * lib/freadable.h: Likewise.
33983         * lib/freadahead.c: Likewise.
33984         * lib/freadahead.h: Likewise.
33985         * lib/freading.c: Likewise.
33986         * lib/freading.h: Likewise.
33987         * lib/free.c: Likewise.
33988         * lib/freopen.c: Likewise.
33989         * lib/frexp.c: Likewise.
33990         * lib/frexpl.c: Likewise.
33991         * lib/fseek.c: Likewise.
33992         * lib/fseterr.c: Likewise.
33993         * lib/fseterr.h: Likewise.
33994         * lib/fstatat.c: Likewise.
33995         * lib/fstrcmp.c: Likewise.
33996         * lib/fstrcmp.h: Likewise.
33997         * lib/fsusage.c: Likewise.
33998         * lib/fsusage.h: Likewise.
33999         * lib/ftell.c: Likewise.
34000         * lib/ftello.c: Likewise.
34001         * lib/fts-cycle.c: Likewise.
34002         * lib/fts.c: Likewise.
34003         * lib/fts_.h: Likewise.
34004         * lib/full-read.c: Likewise.
34005         * lib/full-read.h: Likewise.
34006         * lib/full-write.c: Likewise.
34007         * lib/full-write.h: Likewise.
34008         * lib/fwritable.c: Likewise.
34009         * lib/fwritable.h: Likewise.
34010         * lib/fwriteerror.c: Likewise.
34011         * lib/fwriteerror.h: Likewise.
34012         * lib/fwriting.c: Likewise.
34013         * lib/fwriting.h: Likewise.
34014         * lib/gcd.c: Likewise.
34015         * lib/gcd.h: Likewise.
34016         * lib/getcwd.c: Likewise.
34017         * lib/getdate.h: Likewise.
34018         * lib/getdate.y: Likewise.
34019         * lib/getdomainname.c: Likewise.
34020         * lib/getdomainname.h: Likewise.
34021         * lib/getgroups.c: Likewise.
34022         * lib/gethostname.c: Likewise.
34023         * lib/gethrxtime.c: Likewise.
34024         * lib/gethrxtime.h: Likewise.
34025         * lib/getloadavg.c: Likewise.
34026         * lib/getndelim2.c: Likewise.
34027         * lib/getndelim2.h: Likewise.
34028         * lib/getnline.c: Likewise.
34029         * lib/getnline.h: Likewise.
34030         * lib/getopt.c: Likewise.
34031         * lib/getopt.in.h: Likewise.
34032         * lib/getopt1.c: Likewise.
34033         * lib/getopt_int.h: Likewise.
34034         * lib/getpagesize.h: Likewise.
34035         * lib/getsubopt.c: Likewise.
34036         * lib/gettime.c: Likewise.
34037         * lib/getugroups.c: Likewise.
34038         * lib/getugroups.h: Likewise.
34039         * lib/getusershell.c: Likewise.
34040         * lib/gl_anyavltree_list1.h: Likewise.
34041         * lib/gl_anyavltree_list2.h: Likewise.
34042         * lib/gl_anyhash_list1.h: Likewise.
34043         * lib/gl_anyhash_list2.h: Likewise.
34044         * lib/gl_anylinked_list1.h: Likewise.
34045         * lib/gl_anylinked_list2.h: Likewise.
34046         * lib/gl_anyrbtree_list1.h: Likewise.
34047         * lib/gl_anyrbtree_list2.h: Likewise.
34048         * lib/gl_anytree_list1.h: Likewise.
34049         * lib/gl_anytree_list2.h: Likewise.
34050         * lib/gl_anytree_oset.h: Likewise.
34051         * lib/gl_anytreehash_list1.h: Likewise.
34052         * lib/gl_anytreehash_list2.h: Likewise.
34053         * lib/gl_array_list.c: Likewise.
34054         * lib/gl_array_list.h: Likewise.
34055         * lib/gl_array_oset.c: Likewise.
34056         * lib/gl_array_oset.h: Likewise.
34057         * lib/gl_avltree_list.c: Likewise.
34058         * lib/gl_avltree_list.h: Likewise.
34059         * lib/gl_avltree_oset.c: Likewise.
34060         * lib/gl_avltree_oset.h: Likewise.
34061         * lib/gl_avltreehash_list.c: Likewise.
34062         * lib/gl_avltreehash_list.h: Likewise.
34063         * lib/gl_carray_list.c: Likewise.
34064         * lib/gl_carray_list.h: Likewise.
34065         * lib/gl_linked_list.c: Likewise.
34066         * lib/gl_linked_list.h: Likewise.
34067         * lib/gl_linkedhash_list.c: Likewise.
34068         * lib/gl_linkedhash_list.h: Likewise.
34069         * lib/gl_list.c: Likewise.
34070         * lib/gl_list.h: Likewise.
34071         * lib/gl_oset.c: Likewise.
34072         * lib/gl_oset.h: Likewise.
34073         * lib/gl_rbtree_list.c: Likewise.
34074         * lib/gl_rbtree_list.h: Likewise.
34075         * lib/gl_rbtree_oset.c: Likewise.
34076         * lib/gl_rbtree_oset.h: Likewise.
34077         * lib/gl_rbtreehash_list.c: Likewise.
34078         * lib/gl_rbtreehash_list.h: Likewise.
34079         * lib/gl_sublist.c: Likewise.
34080         * lib/gl_sublist.h: Likewise.
34081         * lib/group-member.c: Likewise.
34082         * lib/group-member.h: Likewise.
34083         * lib/hard-locale.c: Likewise.
34084         * lib/hard-locale.h: Likewise.
34085         * lib/hash-pjw.c: Likewise.
34086         * lib/hash-pjw.h: Likewise.
34087         * lib/hash-triple.c: Likewise.
34088         * lib/hash.c: Likewise.
34089         * lib/hash.h: Likewise.
34090         * lib/human.c: Likewise.
34091         * lib/human.h: Likewise.
34092         * lib/i-ring.c: Likewise.
34093         * lib/i-ring.h: Likewise.
34094         * lib/idcache.c: Likewise.
34095         * lib/imaxabs.c: Likewise.
34096         * lib/imaxdiv.c: Likewise.
34097         * lib/inet_pton.c: Likewise.
34098         * lib/inet_pton.h: Likewise.
34099         * lib/intprops.h: Likewise.
34100         * lib/inttostr.c: Likewise.
34101         * lib/inttostr.h: Likewise.
34102         * lib/inttypes.in.h: Likewise.
34103         * lib/isapipe.c: Likewise.
34104         * lib/isdir.c: Likewise.
34105         * lib/isnan.c: Likewise.
34106         * lib/isnan.h: Likewise.
34107         * lib/isnanf.c: Likewise.
34108         * lib/isnanf.h: Likewise.
34109         * lib/isnanl-nolibm.h: Likewise.
34110         * lib/isnanl.c: Likewise.
34111         * lib/isnanl.h: Likewise.
34112         * lib/javacomp.c: Likewise.
34113         * lib/javacomp.h: Likewise.
34114         * lib/javaexec.c: Likewise.
34115         * lib/javaexec.h: Likewise.
34116         * lib/javaversion.c: Likewise.
34117         * lib/javaversion.h: Likewise.
34118         * lib/javaversion.java: Likewise.
34119         * lib/lbrkprop.h: Likewise.
34120         * lib/lchmod.h: Likewise.
34121         * lib/lchown.c: Likewise.
34122         * lib/ldexpl.c: Likewise.
34123         * lib/linebreak.c: Likewise.
34124         * lib/linebreak.h: Likewise.
34125         * lib/linebuffer.c: Likewise.
34126         * lib/linebuffer.h: Likewise.
34127         * lib/locale.in.h: Likewise.
34128         * lib/logl.c: Likewise.
34129         * lib/long-options.c: Likewise.
34130         * lib/long-options.h: Likewise.
34131         * lib/lstat.c: Likewise.
34132         * lib/lstat.h: Likewise.
34133         * lib/math.in.h: Likewise.
34134         * lib/mbchar.c: Likewise.
34135         * lib/mbchar.h: Likewise.
34136         * lib/mbfile.h: Likewise.
34137         * lib/mbiter.h: Likewise.
34138         * lib/mbscasecmp.c: Likewise.
34139         * lib/mbscasestr.c: Likewise.
34140         * lib/mbschr.c: Likewise.
34141         * lib/mbscspn.c: Likewise.
34142         * lib/mbslen.c: Likewise.
34143         * lib/mbsncasecmp.c: Likewise.
34144         * lib/mbsnlen.c: Likewise.
34145         * lib/mbspbrk.c: Likewise.
34146         * lib/mbspcasecmp.c: Likewise.
34147         * lib/mbsrchr.c: Likewise.
34148         * lib/mbssep.c: Likewise.
34149         * lib/mbsspn.c: Likewise.
34150         * lib/mbsstr.c: Likewise.
34151         * lib/mbstok_r.c: Likewise.
34152         * lib/mbswidth.c: Likewise.
34153         * lib/mbswidth.h: Likewise.
34154         * lib/mbuiter.h: Likewise.
34155         * lib/memcasecmp.c: Likewise.
34156         * lib/memcasecmp.h: Likewise.
34157         * lib/memchr.c: Likewise.
34158         * lib/memcmp.c: Likewise.
34159         * lib/memcoll.c: Likewise.
34160         * lib/memcoll.h: Likewise.
34161         * lib/memcpy.c: Likewise.
34162         * lib/memrchr.c: Likewise.
34163         * lib/mkancesdirs.c: Likewise.
34164         * lib/mkdir-p.c: Likewise.
34165         * lib/mkdir-p.h: Likewise.
34166         * lib/mkdir.c: Likewise.
34167         * lib/mkdirat.c: Likewise.
34168         * lib/mkdtemp.c: Likewise.
34169         * lib/mkstemp-safer.c: Likewise.
34170         * lib/mkstemp.c: Likewise.
34171         * lib/modechange.c: Likewise.
34172         * lib/modechange.h: Likewise.
34173         * lib/mountlist.c: Likewise.
34174         * lib/mountlist.h: Likewise.
34175         * lib/mpsort.c: Likewise.
34176         * lib/nanosleep.c: Likewise.
34177         * lib/obstack.c: Likewise.
34178         * lib/obstack.h: Likewise.
34179         * lib/open-safer.c: Likewise.
34180         * lib/open.c: Likewise.
34181         * lib/openat-die.c: Likewise.
34182         * lib/openat-priv.h: Likewise.
34183         * lib/openat-proc.c: Likewise.
34184         * lib/openat.c: Likewise.
34185         * lib/openat.h: Likewise.
34186         * lib/pagealign_alloc.c: Likewise.
34187         * lib/pagealign_alloc.h: Likewise.
34188         * lib/physmem.c: Likewise.
34189         * lib/physmem.h: Likewise.
34190         * lib/pipe-safer.c: Likewise.
34191         * lib/pipe.c: Likewise.
34192         * lib/pipe.h: Likewise.
34193         * lib/posixtm.c: Likewise.
34194         * lib/posixtm.h: Likewise.
34195         * lib/posixver.c: Likewise.
34196         * lib/printf-frexp.c: Likewise.
34197         * lib/printf-frexp.h: Likewise.
34198         * lib/printf-frexpl.c: Likewise.
34199         * lib/printf-frexpl.h: Likewise.
34200         * lib/printf.c: Likewise.
34201         * lib/progname.c: Likewise.
34202         * lib/progname.h: Likewise.
34203         * lib/progreloc.c: Likewise.
34204         * lib/putenv.c: Likewise.
34205         * lib/quote.c: Likewise.
34206         * lib/quote.h: Likewise.
34207         * lib/quotearg.c: Likewise.
34208         * lib/quotearg.h: Likewise.
34209         * lib/raise.c: Likewise.
34210         * lib/readline.c: Likewise.
34211         * lib/readline.h: Likewise.
34212         * lib/readlink.c: Likewise.
34213         * lib/readtokens.c: Likewise.
34214         * lib/readtokens.h: Likewise.
34215         * lib/readtokens0.c: Likewise.
34216         * lib/readtokens0.h: Likewise.
34217         * lib/readutmp.c: Likewise.
34218         * lib/readutmp.h: Likewise.
34219         * lib/realloc.c: Likewise.
34220         * lib/relocwrapper.c: Likewise.
34221         * lib/rename-dest-slash.c: Likewise.
34222         * lib/rename.c: Likewise.
34223         * lib/rmdir.c: Likewise.
34224         * lib/rpmatch.c: Likewise.
34225         * lib/safe-read.c: Likewise.
34226         * lib/safe-read.h: Likewise.
34227         * lib/safe-write.c: Likewise.
34228         * lib/safe-write.h: Likewise.
34229         * lib/same-inode.h: Likewise.
34230         * lib/same.c: Likewise.
34231         * lib/same.h: Likewise.
34232         * lib/save-cwd.c: Likewise.
34233         * lib/save-cwd.h: Likewise.
34234         * lib/savedir.c: Likewise.
34235         * lib/savedir.h: Likewise.
34236         * lib/savewd.c: Likewise.
34237         * lib/savewd.h: Likewise.
34238         * lib/search.in.h: Likewise.
34239         * lib/setenv.c: Likewise.
34240         * lib/setenv.h: Likewise.
34241         * lib/settime.c: Likewise.
34242         * lib/sh-quote.c: Likewise.
34243         * lib/sh-quote.h: Likewise.
34244         * lib/sig2str.c: Likewise.
34245         * lib/sig2str.h: Likewise.
34246         * lib/signal.in.h: Likewise.
34247         * lib/signbitd.c: Likewise.
34248         * lib/signbitf.c: Likewise.
34249         * lib/signbitl.c: Likewise.
34250         * lib/sigprocmask.c: Likewise.
34251         * lib/sincosl.c: Likewise.
34252         * lib/sleep.c: Likewise.
34253         * lib/sprintf.c: Likewise.
34254         * lib/sqrtl.c: Likewise.
34255         * lib/stat-time.h: Likewise.
34256         * lib/stdio--.h: Likewise.
34257         * lib/stdio-safer.h: Likewise.
34258         * lib/stdlib--.h: Likewise.
34259         * lib/stdlib-safer.h: Likewise.
34260         * lib/stdlib.in.h: Likewise.
34261         * lib/stpcpy.c: Likewise.
34262         * lib/stpncpy.c: Likewise.
34263         * lib/strchrnul.c: Likewise.
34264         * lib/strcspn.c: Likewise.
34265         * lib/strerror.c: Likewise.
34266         * lib/strftime.c: Likewise.
34267         * lib/strftime.h: Likewise.
34268         * lib/striconveh.c: Likewise.
34269         * lib/striconveh.h: Likewise.
34270         * lib/striconveha.c: Likewise.
34271         * lib/striconveha.h: Likewise.
34272         * lib/stripslash.c: Likewise.
34273         * lib/strnlen1.c: Likewise.
34274         * lib/strnlen1.h: Likewise.
34275         * lib/strtod.c: Likewise.
34276         * lib/strtoimax.c: Likewise.
34277         * lib/strtok_r.c: Likewise.
34278         * lib/strtol.c: Likewise.
34279         * lib/strtoll.c: Likewise.
34280         * lib/strtoul.c: Likewise.
34281         * lib/strtoull.c: Likewise.
34282         * lib/sysexits.in.h: Likewise.
34283         * lib/tempname.c: Likewise.
34284         * lib/tempname.h: Likewise.
34285         * lib/timespec.h: Likewise.
34286         * lib/tls.c: Likewise.
34287         * lib/tls.h: Likewise.
34288         * lib/tmpdir.c: Likewise.
34289         * lib/tmpdir.h: Likewise.
34290         * lib/tmpfile-safer.c: Likewise.
34291         * lib/tmpfile.c: Likewise.
34292         * lib/trigl.c: Likewise.
34293         * lib/trigl.h: Likewise.
34294         * lib/trim.c: Likewise.
34295         * lib/trim.h: Likewise.
34296         * lib/trunc.c: Likewise.
34297         * lib/truncf.c: Likewise.
34298         * lib/truncl.c: Likewise.
34299         * lib/tsearch.c: Likewise.
34300         * lib/unicodeio.c: Likewise.
34301         * lib/unicodeio.h: Likewise.
34302         * lib/unistd--.h: Likewise.
34303         * lib/unistd-safer.h: Likewise.
34304         * lib/unistdio/ulc-fprintf.c: Likewise.
34305         * lib/unistdio/ulc-vfprintf.c: Likewise.
34306         * lib/unlinkdir.c: Likewise.
34307         * lib/unlinkdir.h: Likewise.
34308         * lib/unlocked-io.h: Likewise.
34309         * lib/unsetenv.c: Likewise.
34310         * lib/userspec.c: Likewise.
34311         * lib/utime.c: Likewise.
34312         * lib/utimecmp.c: Likewise.
34313         * lib/utimecmp.h: Likewise.
34314         * lib/utimens.c: Likewise.
34315         * lib/verify.h: Likewise.
34316         * lib/verror.c: Likewise.
34317         * lib/verror.h: Likewise.
34318         * lib/version-etc-fsf.c: Likewise.
34319         * lib/version-etc.c: Likewise.
34320         * lib/version-etc.h: Likewise.
34321         * lib/vfprintf.c: Likewise.
34322         * lib/vprintf.c: Likewise.
34323         * lib/vsprintf.c: Likewise.
34324         * lib/w32spawn.h: Likewise.
34325         * lib/wait-process.c: Likewise.
34326         * lib/wait-process.h: Likewise.
34327         * lib/wcwidth.c: Likewise.
34328         * lib/write-any-file.c: Likewise.
34329         * lib/xalloc-die.c: Likewise.
34330         * lib/xalloc.h: Likewise.
34331         * lib/xasprintf.c: Likewise.
34332         * lib/xgetcwd.c: Likewise.
34333         * lib/xgetcwd.h: Likewise.
34334         * lib/xgetdomainname.c: Likewise.
34335         * lib/xgetdomainname.h: Likewise.
34336         * lib/xgethostname.c: Likewise.
34337         * lib/xmalloc.c: Likewise.
34338         * lib/xmalloca.c: Likewise.
34339         * lib/xmalloca.h: Likewise.
34340         * lib/xmemcoll.c: Likewise.
34341         * lib/xnanosleep.c: Likewise.
34342         * lib/xreadlink.c: Likewise.
34343         * lib/xreadlink.h: Likewise.
34344         * lib/xsetenv.c: Likewise.
34345         * lib/xsetenv.h: Likewise.
34346         * lib/xstriconv.c: Likewise.
34347         * lib/xstriconv.h: Likewise.
34348         * lib/xstrndup.c: Likewise.
34349         * lib/xstrndup.h: Likewise.
34350         * lib/xstrtod.c: Likewise.
34351         * lib/xstrtod.h: Likewise.
34352         * lib/xstrtol-error.c: Likewise.
34353         * lib/xstrtol.c: Likewise.
34354         * lib/xstrtol.h: Likewise.
34355         * lib/xtime.h: Likewise.
34356         * lib/xvasprintf.c: Likewise.
34357         * lib/xvasprintf.h: Likewise.
34358         * lib/yesno.c: Likewise.
34359         * lib/yesno.h: Likewise.
34360         * posix-modules: Likewise.
34361         * tests/test-alloca-opt.c: Likewise.
34362         * tests/test-arcfour.c: Likewise.
34363         * tests/test-arctwo.c: Likewise.
34364         * tests/test-argmatch.c: Likewise.
34365         * tests/test-argp-2.sh: Likewise.
34366         * tests/test-argp.c: Likewise.
34367         * tests/test-arpa_inet.c: Likewise.
34368         * tests/test-array_list.c: Likewise.
34369         * tests/test-array_oset.c: Likewise.
34370         * tests/test-atexit.c: Likewise.
34371         * tests/test-avltree_list.c: Likewise.
34372         * tests/test-avltree_oset.c: Likewise.
34373         * tests/test-avltreehash_list.c: Likewise.
34374         * tests/test-base64.c: Likewise.
34375         * tests/test-binary-io.c: Likewise.
34376         * tests/test-byteswap.c: Likewise.
34377         * tests/test-c-ctype.c: Likewise.
34378         * tests/test-c-strcasecmp.c: Likewise.
34379         * tests/test-c-strcasestr.c: Likewise.
34380         * tests/test-c-strncasecmp.c: Likewise.
34381         * tests/test-c-strstr.c: Likewise.
34382         * tests/test-canonicalize-lgpl.c: Likewise.
34383         * tests/test-canonicalize.c: Likewise.
34384         * tests/test-carray_list.c: Likewise.
34385         * tests/test-ceilf.c: Likewise.
34386         * tests/test-ceill.c: Likewise.
34387         * tests/test-count-one-bits.c: Likewise.
34388         * tests/test-crc.c: Likewise.
34389         * tests/test-dirname.c: Likewise.
34390         * tests/test-fbufmode.c: Likewise.
34391         * tests/test-fcntl.c: Likewise.
34392         * tests/test-fflush.c: Likewise.
34393         * tests/test-floorf.c: Likewise.
34394         * tests/test-floorl.c: Likewise.
34395         * tests/test-fopen.c: Likewise.
34396         * tests/test-fprintf-posix.c: Likewise.
34397         * tests/test-fprintf-posix.h: Likewise.
34398         * tests/test-fpurge.c: Likewise.
34399         * tests/test-freadable.c: Likewise.
34400         * tests/test-freadahead.c: Likewise.
34401         * tests/test-freading.c: Likewise.
34402         * tests/test-freopen.c: Likewise.
34403         * tests/test-frexp.c: Likewise.
34404         * tests/test-frexpl.c: Likewise.
34405         * tests/test-fseek.c: Likewise.
34406         * tests/test-fseeko.c: Likewise.
34407         * tests/test-fseterr.c: Likewise.
34408         * tests/test-fstrcmp.c: Likewise.
34409         * tests/test-ftell.c: Likewise.
34410         * tests/test-ftello.c: Likewise.
34411         * tests/test-fwritable.c: Likewise.
34412         * tests/test-fwriting.c: Likewise.
34413         * tests/test-getaddrinfo.c: Likewise.
34414         * tests/test-getpass.c: Likewise.
34415         * tests/test-gettimeofday.c: Likewise.
34416         * tests/test-hmac-md5.c: Likewise.
34417         * tests/test-hmac-sha1.c: Likewise.
34418         * tests/test-iconv.c: Likewise.
34419         * tests/test-iconvme.c: Likewise.
34420         * tests/test-inttypes.c: Likewise.
34421         * tests/test-isnan.c: Likewise.
34422         * tests/test-isnanf.c: Likewise.
34423         * tests/test-isnanl-nolibm.c: Likewise.
34424         * tests/test-isnanl.c: Likewise.
34425         * tests/test-isnanl.h: Likewise.
34426         * tests/test-ldexpl.c: Likewise.
34427         * tests/test-linked_list.c: Likewise.
34428         * tests/test-linkedhash_list.c: Likewise.
34429         * tests/test-locale.c: Likewise.
34430         * tests/test-localename.c: Likewise.
34431         * tests/test-lock.c: Likewise.
34432         * tests/test-lseek.c: Likewise.
34433         * tests/test-malloca.c: Likewise.
34434         * tests/test-math.c: Likewise.
34435         * tests/test-mbscasecmp.c: Likewise.
34436         * tests/test-mbscasestr1.c: Likewise.
34437         * tests/test-mbscasestr2.c: Likewise.
34438         * tests/test-mbscasestr3.c: Likewise.
34439         * tests/test-mbscasestr4.c: Likewise.
34440         * tests/test-mbschr.c: Likewise.
34441         * tests/test-mbscspn.c: Likewise.
34442         * tests/test-mbsncasecmp.c: Likewise.
34443         * tests/test-mbspbrk.c: Likewise.
34444         * tests/test-mbspcasecmp.c: Likewise.
34445         * tests/test-mbsrchr.c: Likewise.
34446         * tests/test-mbsspn.c: Likewise.
34447         * tests/test-mbsstr1.c: Likewise.
34448         * tests/test-mbsstr2.c: Likewise.
34449         * tests/test-mbsstr3.c: Likewise.
34450         * tests/test-md5.c: Likewise.
34451         * tests/test-memmem.c: Likewise.
34452         * tests/test-netinet_in.c: Likewise.
34453         * tests/test-open.c: Likewise.
34454         * tests/test-printf-frexp.c: Likewise.
34455         * tests/test-printf-frexpl.c: Likewise.
34456         * tests/test-printf-posix.c: Likewise.
34457         * tests/test-printf-posix.h: Likewise.
34458         * tests/test-rbtree_list.c: Likewise.
34459         * tests/test-rbtree_oset.c: Likewise.
34460         * tests/test-rbtreehash_list.c: Likewise.
34461         * tests/test-read-file.c: Likewise.
34462         * tests/test-rijndael.c: Likewise.
34463         * tests/test-search.c: Likewise.
34464         * tests/test-signbit.c: Likewise.
34465         * tests/test-sleep.c: Likewise.
34466         * tests/test-snprintf-posix.c: Likewise.
34467         * tests/test-snprintf-posix.h: Likewise.
34468         * tests/test-snprintf.c: Likewise.
34469         * tests/test-sprintf-posix.c: Likewise.
34470         * tests/test-sprintf-posix.h: Likewise.
34471         * tests/test-stat-time.c: Likewise.
34472         * tests/test-stdbool.c: Likewise.
34473         * tests/test-stdint.c: Likewise.
34474         * tests/test-stdio.c: Likewise.
34475         * tests/test-stdlib.c: Likewise.
34476         * tests/test-stpncpy.c: Likewise.
34477         * tests/test-strcasestr.c: Likewise.
34478         * tests/test-striconv.c: Likewise.
34479         * tests/test-striconveh.c: Likewise.
34480         * tests/test-striconveha.c: Likewise.
34481         * tests/test-string.c: Likewise.
34482         * tests/test-sys_select.c: Likewise.
34483         * tests/test-sys_socket.c: Likewise.
34484         * tests/test-sys_stat.c: Likewise.
34485         * tests/test-sys_time.c: Likewise.
34486         * tests/test-sysexits.c: Likewise.
34487         * tests/test-time.c: Likewise.
34488         * tests/test-tls.c: Likewise.
34489         * tests/test-trunc.c: Likewise.
34490         * tests/test-truncf.c: Likewise.
34491         * tests/test-truncl.c: Likewise.
34492         * tests/test-unistd.c: Likewise.
34493         * tests/test-vasnprintf-posix.c: Likewise.
34494         * tests/test-vasnprintf-posix2.c: Likewise.
34495         * tests/test-vasnprintf.c: Likewise.
34496         * tests/test-vasprintf-posix.c: Likewise.
34497         * tests/test-vasprintf.c: Likewise.
34498         * tests/test-verify.c: Likewise.
34499         * tests/test-vfprintf-posix.c: Likewise.
34500         * tests/test-vprintf-posix.c: Likewise.
34501         * tests/test-vsnprintf-posix.c: Likewise.
34502         * tests/test-vsnprintf.c: Likewise.
34503         * tests/test-vsprintf-posix.c: Likewise.
34504         * tests/test-wchar.c: Likewise.
34505         * tests/test-wctype.c: Likewise.
34506         * tests/test-wcwidth.c: Likewise.
34507         * tests/test-xstrtol.c: Likewise.
34508         * tests/test-xvasprintf.c: Likewise.
34509         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34510         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34511         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34512         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34513         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34514         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34515         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34516         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34517         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34518         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34519         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34520         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34521         * tests/uniname/test-uninames.c: Likewise.
34522         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34523         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34524         * tests/unistdio/test-u16-printf1.h: Likewise.
34525         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34526         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34527         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34528         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34529         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34530         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34531         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34532         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
34533         * tests/unistdio/test-u32-printf1.h: Likewise.
34534         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34535         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34536         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34537         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34538         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34539         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34540         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34541         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
34542         * tests/unistdio/test-u8-printf1.h: Likewise.
34543         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34544         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34545         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34546         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34547         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34548         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34549         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34550         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
34551         * tests/unistdio/test-ulc-printf1.h: Likewise.
34552         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34553         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34554         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34555         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34556         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34557         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34558         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34559         * tests/uniwidth/test-u16-width.c: Likewise.
34560         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34561         * tests/uniwidth/test-u32-width.c: Likewise.
34562         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34563         * tests/uniwidth/test-u8-width.c: Likewise.
34564         * tests/uniwidth/test-uc_width.c: Likewise.
34565         * config/srclist-update: Likewise.
34566         (fixlicense): Update to GPLv3+.
34567
34568         Change copyright notice from LGPLv2.1+ to LGPLv3+.
34569         * tests/test-tsearch.c: Change copyright notice.
34570
34571         Change copyright notice from LGPLv2.0+ to LGPLv3+.
34572         * lib/c-strcaseeq.h: Change copyright notice.
34573         * lib/streq.h: Likewise.
34574         * lib/uniconv.h: Likewise.
34575         * lib/uniconv/u-conv-from-enc.h: Likewise.
34576         * lib/uniconv/u-conv-to-enc.h: Likewise.
34577         * lib/uniconv/u-strconv-from-enc.h: Likewise.
34578         * lib/uniconv/u-strconv-to-enc.h: Likewise.
34579         * lib/uniconv/u16-conv-from-enc.c: Likewise.
34580         * lib/uniconv/u16-conv-to-enc.c: Likewise.
34581         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
34582         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
34583         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
34584         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
34585         * lib/uniconv/u32-conv-from-enc.c: Likewise.
34586         * lib/uniconv/u32-conv-to-enc.c: Likewise.
34587         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
34588         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
34589         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
34590         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
34591         * lib/uniconv/u8-conv-from-enc.c: Likewise.
34592         * lib/uniconv/u8-conv-to-enc.c: Likewise.
34593         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
34594         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
34595         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
34596         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
34597         * lib/uniname.h: Likewise.
34598         * lib/uniname/uniname.c: Likewise.
34599         * lib/unistdio.h: Likewise.
34600         * lib/unistdio/u-asnprintf.h: Likewise.
34601         * lib/unistdio/u-asprintf.h: Likewise.
34602         * lib/unistdio/u-printf-args.c: Likewise.
34603         * lib/unistdio/u-printf-args.h: Likewise.
34604         * lib/unistdio/u-printf-parse.h: Likewise.
34605         * lib/unistdio/u-snprintf.h: Likewise.
34606         * lib/unistdio/u-sprintf.h: Likewise.
34607         * lib/unistdio/u-vasprintf.h: Likewise.
34608         * lib/unistdio/u-vsnprintf.h: Likewise.
34609         * lib/unistdio/u-vsprintf.h: Likewise.
34610         * lib/unistdio/u16-asnprintf.c: Likewise.
34611         * lib/unistdio/u16-asprintf.c: Likewise.
34612         * lib/unistdio/u16-printf-parse.c: Likewise.
34613         * lib/unistdio/u16-snprintf.c: Likewise.
34614         * lib/unistdio/u16-sprintf.c: Likewise.
34615         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
34616         * lib/unistdio/u16-u16-asprintf.c: Likewise.
34617         * lib/unistdio/u16-u16-snprintf.c: Likewise.
34618         * lib/unistdio/u16-u16-sprintf.c: Likewise.
34619         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
34620         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
34621         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
34622         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
34623         * lib/unistdio/u16-vasnprintf.c: Likewise.
34624         * lib/unistdio/u16-vasprintf.c: Likewise.
34625         * lib/unistdio/u16-vsnprintf.c: Likewise.
34626         * lib/unistdio/u16-vsprintf.c: Likewise.
34627         * lib/unistdio/u32-asnprintf.c: Likewise.
34628         * lib/unistdio/u32-asprintf.c: Likewise.
34629         * lib/unistdio/u32-printf-parse.c: Likewise.
34630         * lib/unistdio/u32-snprintf.c: Likewise.
34631         * lib/unistdio/u32-sprintf.c: Likewise.
34632         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
34633         * lib/unistdio/u32-u32-asprintf.c: Likewise.
34634         * lib/unistdio/u32-u32-snprintf.c: Likewise.
34635         * lib/unistdio/u32-u32-sprintf.c: Likewise.
34636         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
34637         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
34638         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
34639         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
34640         * lib/unistdio/u32-vasnprintf.c: Likewise.
34641         * lib/unistdio/u32-vasprintf.c: Likewise.
34642         * lib/unistdio/u32-vsnprintf.c: Likewise.
34643         * lib/unistdio/u32-vsprintf.c: Likewise.
34644         * lib/unistdio/u8-asnprintf.c: Likewise.
34645         * lib/unistdio/u8-asprintf.c: Likewise.
34646         * lib/unistdio/u8-printf-parse.c: Likewise.
34647         * lib/unistdio/u8-snprintf.c: Likewise.
34648         * lib/unistdio/u8-sprintf.c: Likewise.
34649         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
34650         * lib/unistdio/u8-u8-asprintf.c: Likewise.
34651         * lib/unistdio/u8-u8-snprintf.c: Likewise.
34652         * lib/unistdio/u8-u8-sprintf.c: Likewise.
34653         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
34654         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
34655         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
34656         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
34657         * lib/unistdio/u8-vasnprintf.c: Likewise.
34658         * lib/unistdio/u8-vasprintf.c: Likewise.
34659         * lib/unistdio/u8-vsnprintf.c: Likewise.
34660         * lib/unistdio/u8-vsprintf.c: Likewise.
34661         * lib/unistdio/ulc-asnprintf.c: Likewise.
34662         * lib/unistdio/ulc-asprintf.c: Likewise.
34663         * lib/unistdio/ulc-printf-parse.c: Likewise.
34664         * lib/unistdio/ulc-snprintf.c: Likewise.
34665         * lib/unistdio/ulc-sprintf.c: Likewise.
34666         * lib/unistdio/ulc-vasnprintf.c: Likewise.
34667         * lib/unistdio/ulc-vasprintf.c: Likewise.
34668         * lib/unistdio/ulc-vsnprintf.c: Likewise.
34669         * lib/unistdio/ulc-vsprintf.c: Likewise.
34670         * lib/unistr.h: Likewise.
34671         * lib/unistr/u-cpy-alloc.h: Likewise.
34672         * lib/unistr/u-cpy.h: Likewise.
34673         * lib/unistr/u-endswith.h: Likewise.
34674         * lib/unistr/u-move.h: Likewise.
34675         * lib/unistr/u-set.h: Likewise.
34676         * lib/unistr/u-startswith.h: Likewise.
34677         * lib/unistr/u-stpcpy.h: Likewise.
34678         * lib/unistr/u-stpncpy.h: Likewise.
34679         * lib/unistr/u-strcat.h: Likewise.
34680         * lib/unistr/u-strcpy.h: Likewise.
34681         * lib/unistr/u-strcspn.h: Likewise.
34682         * lib/unistr/u-strdup.h: Likewise.
34683         * lib/unistr/u-strlen.h: Likewise.
34684         * lib/unistr/u-strncat.h: Likewise.
34685         * lib/unistr/u-strncpy.h: Likewise.
34686         * lib/unistr/u-strnlen.h: Likewise.
34687         * lib/unistr/u-strpbrk.h: Likewise.
34688         * lib/unistr/u-strspn.h: Likewise.
34689         * lib/unistr/u-strstr.h: Likewise.
34690         * lib/unistr/u-strtok.h: Likewise.
34691         * lib/unistr/u16-check.c: Likewise.
34692         * lib/unistr/u16-chr.c: Likewise.
34693         * lib/unistr/u16-cmp.c: Likewise.
34694         * lib/unistr/u16-cpy-alloc.c: Likewise.
34695         * lib/unistr/u16-cpy.c: Likewise.
34696         * lib/unistr/u16-endswith.c: Likewise.
34697         * lib/unistr/u16-mblen.c: Likewise.
34698         * lib/unistr/u16-mbsnlen.c: Likewise.
34699         * lib/unistr/u16-mbtouc-aux.c: Likewise.
34700         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
34701         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
34702         * lib/unistr/u16-mbtouc.c: Likewise.
34703         * lib/unistr/u16-mbtoucr.c: Likewise.
34704         * lib/unistr/u16-move.c: Likewise.
34705         * lib/unistr/u16-next.c: Likewise.
34706         * lib/unistr/u16-prev.c: Likewise.
34707         * lib/unistr/u16-set.c: Likewise.
34708         * lib/unistr/u16-startswith.c: Likewise.
34709         * lib/unistr/u16-stpcpy.c: Likewise.
34710         * lib/unistr/u16-stpncpy.c: Likewise.
34711         * lib/unistr/u16-strcat.c: Likewise.
34712         * lib/unistr/u16-strchr.c: Likewise.
34713         * lib/unistr/u16-strcmp.c: Likewise.
34714         * lib/unistr/u16-strcpy.c: Likewise.
34715         * lib/unistr/u16-strcspn.c: Likewise.
34716         * lib/unistr/u16-strdup.c: Likewise.
34717         * lib/unistr/u16-strlen.c: Likewise.
34718         * lib/unistr/u16-strmblen.c: Likewise.
34719         * lib/unistr/u16-strmbtouc.c: Likewise.
34720         * lib/unistr/u16-strncat.c: Likewise.
34721         * lib/unistr/u16-strncmp.c: Likewise.
34722         * lib/unistr/u16-strncpy.c: Likewise.
34723         * lib/unistr/u16-strnlen.c: Likewise.
34724         * lib/unistr/u16-strpbrk.c: Likewise.
34725         * lib/unistr/u16-strrchr.c: Likewise.
34726         * lib/unistr/u16-strspn.c: Likewise.
34727         * lib/unistr/u16-strstr.c: Likewise.
34728         * lib/unistr/u16-strtok.c: Likewise.
34729         * lib/unistr/u16-to-u32.c: Likewise.
34730         * lib/unistr/u16-to-u8.c: Likewise.
34731         * lib/unistr/u16-uctomb-aux.c: Likewise.
34732         * lib/unistr/u16-uctomb.c: Likewise.
34733         * lib/unistr/u32-check.c: Likewise.
34734         * lib/unistr/u32-chr.c: Likewise.
34735         * lib/unistr/u32-cmp.c: Likewise.
34736         * lib/unistr/u32-cpy-alloc.c: Likewise.
34737         * lib/unistr/u32-cpy.c: Likewise.
34738         * lib/unistr/u32-endswith.c: Likewise.
34739         * lib/unistr/u32-mblen.c: Likewise.
34740         * lib/unistr/u32-mbsnlen.c: Likewise.
34741         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
34742         * lib/unistr/u32-mbtouc.c: Likewise.
34743         * lib/unistr/u32-mbtoucr.c: Likewise.
34744         * lib/unistr/u32-move.c: Likewise.
34745         * lib/unistr/u32-next.c: Likewise.
34746         * lib/unistr/u32-prev.c: Likewise.
34747         * lib/unistr/u32-set.c: Likewise.
34748         * lib/unistr/u32-startswith.c: Likewise.
34749         * lib/unistr/u32-stpcpy.c: Likewise.
34750         * lib/unistr/u32-stpncpy.c: Likewise.
34751         * lib/unistr/u32-strcat.c: Likewise.
34752         * lib/unistr/u32-strchr.c: Likewise.
34753         * lib/unistr/u32-strcmp.c: Likewise.
34754         * lib/unistr/u32-strcpy.c: Likewise.
34755         * lib/unistr/u32-strcspn.c: Likewise.
34756         * lib/unistr/u32-strdup.c: Likewise.
34757         * lib/unistr/u32-strlen.c: Likewise.
34758         * lib/unistr/u32-strmblen.c: Likewise.
34759         * lib/unistr/u32-strmbtouc.c: Likewise.
34760         * lib/unistr/u32-strncat.c: Likewise.
34761         * lib/unistr/u32-strncmp.c: Likewise.
34762         * lib/unistr/u32-strncpy.c: Likewise.
34763         * lib/unistr/u32-strnlen.c: Likewise.
34764         * lib/unistr/u32-strpbrk.c: Likewise.
34765         * lib/unistr/u32-strrchr.c: Likewise.
34766         * lib/unistr/u32-strspn.c: Likewise.
34767         * lib/unistr/u32-strstr.c: Likewise.
34768         * lib/unistr/u32-strtok.c: Likewise.
34769         * lib/unistr/u32-to-u16.c: Likewise.
34770         * lib/unistr/u32-to-u8.c: Likewise.
34771         * lib/unistr/u32-uctomb.c: Likewise.
34772         * lib/unistr/u8-check.c: Likewise.
34773         * lib/unistr/u8-chr.c: Likewise.
34774         * lib/unistr/u8-cmp.c: Likewise.
34775         * lib/unistr/u8-cpy-alloc.c: Likewise.
34776         * lib/unistr/u8-cpy.c: Likewise.
34777         * lib/unistr/u8-endswith.c: Likewise.
34778         * lib/unistr/u8-mblen.c: Likewise.
34779         * lib/unistr/u8-mbsnlen.c: Likewise.
34780         * lib/unistr/u8-mbtouc-aux.c: Likewise.
34781         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
34782         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
34783         * lib/unistr/u8-mbtouc.c: Likewise.
34784         * lib/unistr/u8-mbtoucr.c: Likewise.
34785         * lib/unistr/u8-move.c: Likewise.
34786         * lib/unistr/u8-next.c: Likewise.
34787         * lib/unistr/u8-prev.c: Likewise.
34788         * lib/unistr/u8-set.c: Likewise.
34789         * lib/unistr/u8-startswith.c: Likewise.
34790         * lib/unistr/u8-stpcpy.c: Likewise.
34791         * lib/unistr/u8-stpncpy.c: Likewise.
34792         * lib/unistr/u8-strcat.c: Likewise.
34793         * lib/unistr/u8-strchr.c: Likewise.
34794         * lib/unistr/u8-strcmp.c: Likewise.
34795         * lib/unistr/u8-strcpy.c: Likewise.
34796         * lib/unistr/u8-strcspn.c: Likewise.
34797         * lib/unistr/u8-strdup.c: Likewise.
34798         * lib/unistr/u8-strlen.c: Likewise.
34799         * lib/unistr/u8-strmblen.c: Likewise.
34800         * lib/unistr/u8-strmbtouc.c: Likewise.
34801         * lib/unistr/u8-strncat.c: Likewise.
34802         * lib/unistr/u8-strncmp.c: Likewise.
34803         * lib/unistr/u8-strncpy.c: Likewise.
34804         * lib/unistr/u8-strnlen.c: Likewise.
34805         * lib/unistr/u8-strpbrk.c: Likewise.
34806         * lib/unistr/u8-strrchr.c: Likewise.
34807         * lib/unistr/u8-strspn.c: Likewise.
34808         * lib/unistr/u8-strstr.c: Likewise.
34809         * lib/unistr/u8-strtok.c: Likewise.
34810         * lib/unistr/u8-to-u16.c: Likewise.
34811         * lib/unistr/u8-to-u32.c: Likewise.
34812         * lib/unistr/u8-uctomb-aux.c: Likewise.
34813         * lib/unistr/u8-uctomb.c: Likewise.
34814         * lib/unitypes.h: Likewise.
34815         * lib/uniwidth.h: Likewise.
34816         * lib/uniwidth/cjk.h: Likewise.
34817         * lib/uniwidth/u16-strwidth.c: Likewise.
34818         * lib/uniwidth/u16-width.c: Likewise.
34819         * lib/uniwidth/u32-strwidth.c: Likewise.
34820         * lib/uniwidth/u32-width.c: Likewise.
34821         * lib/uniwidth/u8-strwidth.c: Likewise.
34822         * lib/uniwidth/u8-width.c: Likewise.
34823         * lib/uniwidth/width.c: Likewise.
34824
34825 2007-10-07  Bruno Haible  <bruno@clisp.org>
34826
34827         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
34828         The file is still under LGPL (see modules/inttypes).
34829
34830 2007-10-06  Bruno Haible  <bruno@clisp.org>
34831
34832         * modules/trunc (Dependencies): Add 'extensions'.
34833         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
34834         Reported by Ben Pfaff <blp@gnu.org>.
34835
34836 2007-10-06  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/freopen-tests: New file.
34839         * tests/test-freopen.c: New file.
34840
34841         * modules/fopen-tests: New file.
34842         * tests/test-fopen.c: New file.
34843
34844         * modules/fopen: New file.
34845         * lib/fopen.c: New file.
34846         * m4/fopen.m4: New file.
34847         * modules/freopen: New file.
34848         * lib/freopen.c: New file.
34849         * m4/freopen.m4: New file.
34850         * lib/stdio.in.h (fopen, freopen): New declarations.
34851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
34852         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34853         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
34854         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
34855         * doc/functions/fopen.texi: Mention the 'fopen' module.
34856         * doc/functions/freopen.texi: Mention the 'freopen' module.
34857
34858 2007-10-06  Bruno Haible  <bruno@clisp.org>
34859
34860         * modules/open-tests: New file.
34861         * tests/test-open.c: New file.
34862
34863         * modules/open: New file.
34864         * lib/open.c: New file.
34865         * m4/open.m4: New file.
34866         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
34867         lib/open.c does.
34868         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
34869         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
34870         macros.
34871         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
34872         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
34873         REPLACE_OPEN.
34874         * doc/functions/open.texi: Mention the 'open' module.
34875
34876 2007-10-04  Bruno Haible  <bruno@clisp.org>
34877
34878         * modules/ceill-tests: New file.
34879         * tests/test-ceill.c: New file.
34880
34881         * modules/ceill: New file.
34882         * lib/ceill.c: Replace entire file.
34883         * m4/ceill.m4: New file.
34884         * lib/math.in.h (ceill): Replace declaration.
34885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
34886         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
34887         * doc/functions/ceill.texi: Mention the 'ceill' module.
34888         * modules/mathl (Files): Remove lib/ceill.c.
34889         (Depends-on): Add ceill.
34890
34891 2007-10-04  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/ceilf-tests: New file.
34894         * tests/test-ceilf.c: New file.
34895
34896         * modules/ceilf: New file.
34897         * lib/ceil.c: New file.
34898         * lib/ceilf.c: New file.
34899         * m4/ceilf.m4: New file.
34900         * lib/math.in.h (ceilf): New declaration.
34901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
34902         HAVE_DECL_CEILF.
34903         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
34904         HAVE_DECL_CEILF.
34905         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
34906
34907 2007-10-04  Bruno Haible  <bruno@clisp.org>
34908
34909         * modules/floorl-tests: New file.
34910         * tests/test-floorl.c: New file.
34911
34912         * modules/floorl: New file.
34913         * lib/floorl.c: Replace entire file.
34914         * m4/floorl.m4: New file.
34915         * lib/math.in.h (floorl): Replace declaration.
34916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
34917         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
34918         * doc/functions/floorl.texi: Mention the 'floorl' module.
34919         * modules/mathl (Files): Remove lib/floorl.c.
34920         (Depends-on): Add floorl.
34921
34922 2007-10-04  Bruno Haible  <bruno@clisp.org>
34923
34924         * modules/floorf-tests: New file.
34925         * tests/test-floorf.c: New file.
34926
34927         * modules/floorf: New file.
34928         * lib/floor.c: New file.
34929         * lib/floorf.c: New file.
34930         * m4/floorf.m4: New file.
34931         * lib/math.in.h (floorf): New declaration.
34932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
34933         HAVE_DECL_FLOORF.
34934         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
34935         HAVE_DECL_FLOORF.
34936         * doc/functions/floorf.texi: Mention the 'floorf' module.
34937
34938 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
34939             Bruno Haible  <bruno@clisp.org>
34940
34941         Advertise for the Git server instead of the CVS server.
34942         * doc/gnulib-intro.texi (Steady Development): Mention the Git
34943         repository instead of the CVS one.
34944         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
34945         about all VCS systems generically.
34946         * doc/gnulib.texi (Introduction): Capitalize `Git'.
34947
34948 2007-10-04  Bruno Haible  <bruno@clisp.org>
34949
34950         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
34951         means.
34952         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
34953
34954 2007-10-04  Bruno Haible  <bruno@clisp.org>
34955
34956         * modules/truncl-tests: New file.
34957         * tests/test-truncl.c: New file.
34958
34959         * modules/truncl: New file.
34960         * lib/truncl.c: New file.
34961         * m4/truncl.m4: New file.
34962         * lib/math.in.h (truncl): New declaration.
34963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
34964         HAVE_DECL_TRUNCL.
34965         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
34966         HAVE_DECL_TRUNCL.
34967         * doc/functions/truncl.texi: Mention the 'truncl' module.
34968
34969 2007-10-04  Bruno Haible  <bruno@clisp.org>
34970
34971         * modules/truncf-tests: New file.
34972         * tests/test-truncf.c: New file.
34973
34974         * modules/truncf: New file.
34975         * lib/trunc.c: Make paramerizable through USE_* macros.
34976         * lib/truncf.c: New file.
34977         * m4/truncf.m4: New file.
34978         * lib/math.in.h (truncf): New declaration.
34979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
34980         HAVE_DECL_TRUNCF.
34981         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
34982         HAVE_DECL_TRUNCF.
34983         * doc/functions/truncf.texi: Mention the 'truncf' module.
34984
34985 2007-10-03  Bruno Haible  <bruno@clisp.org>
34986
34987         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34988         augmentation also for tests modules.
34989         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
34990         * modules/atexit-tests (Makefile.am): Likewise.
34991         * modules/binary-io-tests (Makefile.am): Likewise.
34992         * modules/c-strcase-tests (Makefile.am): Likewise.
34993         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
34994         * modules/canonicalize-tests (Makefile.am): Likewise.
34995         * modules/closein-tests (Makefile.am): Likewise.
34996         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34997         * modules/freadahead-tests (Makefile.am): Likewise.
34998         * modules/fseek-tests (Makefile.am): Likewise.
34999         * modules/fseeko-tests (Makefile.am): Likewise.
35000         * modules/ftell-tests (Makefile.am): Likewise.
35001         * modules/ftello-tests (Makefile.am): Likewise.
35002         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35003         * modules/isnanl-tests (Makefile.am): Likewise.
35004         * modules/lseek-tests (Makefile.am): Likewise.
35005         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35006         * modules/mbscasestr-tests (Makefile.am): Likewise.
35007         * modules/mbschr-tests (Makefile.am): Likewise.
35008         * modules/mbscspn-tests (Makefile.am): Likewise.
35009         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35010         * modules/mbspbrk-tests (Makefile.am): Likewise.
35011         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35012         * modules/mbsrchr-tests (Makefile.am): Likewise.
35013         * modules/mbsspn-tests (Makefile.am): Likewise.
35014         * modules/mbsstr-tests (Makefile.am): Likewise.
35015         * modules/printf-posix-tests (Makefile.am): Likewise.
35016         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35017         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35018         * modules/tsearch-tests (Makefile.am): Likewise.
35019         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35020         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35021         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35022         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35023         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35024         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35025         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35026         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35027         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35028         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35029         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35030         * modules/xstrtol-tests (Makefile.am): Likewise.
35031         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35032         * modules/yesno-tests (Makefile.am): Likewise.
35033
35034 2007-10-03  Bruno Haible  <bruno@clisp.org>
35035
35036         * modules/trunc-tests: New file.
35037         * tests/test-trunc.c: New file.
35038
35039         * modules/trunc: New file.
35040         * lib/trunc.c: New file.
35041         * m4/trunc.m4: New file.
35042         * lib/math.in.h (trunc): New declaration.
35043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35044         HAVE_DECL_TRUNC.
35045         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35046         HAVE_DECL_TRUNC.
35047         * doc/functions/trunc.texi: Mention the 'trunc' module.
35048
35049 2007-10-03  Bruno Haible  <bruno@clisp.org>
35050
35051         * tests/test-fpending.c: New file, mostly copied
35052         from coreutils/lib/t-fpending.c.
35053         * modules/fpending-tests: New file.
35054
35055 2007-10-03  Bruno Haible  <bruno@clisp.org>
35056
35057         Port the stdio extensions to QNX (untested).
35058         * lib/fseterr.c (fseterr): Add support for QNX.
35059         * lib/fbufmode.c (fbufmode): Likewise.
35060         * lib/freadable.c (freadable): Likewise.
35061         * lib/fwritable.c (fwritable): Likewise.
35062         * lib/freading.c (freading): Likewise.
35063         * lib/fwriting.c (fwriting): Likewise.
35064         * lib/freadahead.c (freadahed): Likewise.
35065         * lib/fpurge.c (fpurge): Likewise.
35066         * lib/fseeko.c (rpl_fseeko): Likewise.
35067
35068 2007-10-03  Bruno Haible  <bruno@clisp.org>
35069             Jim Meyering  <jim@meyering.net>
35070             Eric Blake  <ebb9@byu.net>
35071
35072         * doc/relocatable.texi: Use @command instead of @program.
35073
35074 2007-10-02  Jim Meyering  <jim@meyering.net>
35075
35076         Perform one more "_.h" -> ".in.h" substitution.
35077         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35078         instead of unistd_.h here, too.
35079
35080 2007-10-01  Bruno Haible  <bruno@clisp.org>
35081
35082         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35083         Needed for the alloca-opt module.
35084
35085 2007-09-30  Bruno Haible  <bruno@clisp.org>
35086
35087         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35088         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35089         alloca_.h.
35090         * lib/argz.in.h: Renamed from lib/argz_.h.
35091         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35092         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35093         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35094         byteswap_.h.
35095         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35096         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35097         dirent_.h.
35098         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35099         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35100         fcntl_.h.
35101         * lib/float.in.h: Renamed from lib/float_.h.
35102         * modules/float (Files, Makefile.am): Use float.in.h instead of
35103         float_.h.
35104         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35105         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35106         fnmatch_.h.
35107         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35108         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35109         getopt_.h.
35110         * lib/glob.in.h: Renamed from lib/glob_.h.
35111         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35112         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35113         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35114         iconv_.h.
35115         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35116         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35117         inttypes_.h.
35118         * lib/locale.in.h: Renamed from lib/locale_.h.
35119         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35120         locale_.h.
35121         * lib/math.in.h: Renamed from lib/math_.h.
35122         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35123         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35124         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35125         of netinet_in_.h. Add dependency.
35126         * lib/poll.in.h: Renamed from lib/poll_.h.
35127         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35128         * lib/search.in.h: Renamed from lib/search_.h.
35129         * modules/search (Files, Makefile.am): Use search.in.h instead of
35130         search_.h.
35131         * lib/signal.in.h: Renamed from lib/signal_.h.
35132         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35133         _signal.h.
35134         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35135         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35136         stdbool_.h.
35137         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35138         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35139         stdint_.h.
35140         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35141         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35142         stdio_.h.
35143         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35144         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35145         stdlib_.h.
35146         * lib/string.in.h: Renamed from lib/string_.h.
35147         * modules/string (Files, Makefile.am): Use string.in.h instead of
35148         string_.h.
35149         * doc/gnulib-tool.texi (Initial import): Update.
35150         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35151         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35152         of sys_select_.h. Add dependency.
35153         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35154         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35155         of sys_socket_.h.
35156         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35157         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35158         sys_stat_.h.
35159         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35160         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35161         sys_time_.h.
35162         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35163         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35164         sysexits_.h.
35165         * lib/time.in.h: Renamed from lib/time_.h.
35166         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35167         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35168         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35169         unistd_.h.
35170         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35171         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35172         wchar_.h.
35173         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35174         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35175         wctype_.h.
35176         * build-aux/bootstrap (slurp): Update.
35177         * lib/.cppi-disable: Update.
35178
35179 2007-09-30  Bruno Haible  <bruno@clisp.org>
35180
35181         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35182         Needed on BeOS.
35183
35184 2007-09-30  Bruno Haible  <bruno@clisp.org>
35185
35186         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35187
35188 2007-09-29  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35191
35192 2007-09-29  Bruno Haible  <bruno@clisp.org>
35193
35194         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35195         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35196         * build-aux/install-reloc: Compile also areadlink.c.
35197         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35198
35199 2007-09-29  Bruno Haible  <bruno@clisp.org>
35200
35201         * gnulib-tool (func_emit_initmacro_done): Indentation.
35202
35203 2007-09-29  Bruno Haible  <bruno@clisp.org>
35204
35205         * README: Add CVS checkout update instructions.
35206         Info from Bob Proulx <bob@proulx.com>.
35207
35208 2007-09-28  Eric Blake  <ebb9@byu.net>
35209
35210         Provide move-if-change.
35211         * build-aux/move-if-change: New file, based on best practice
35212         rather than any canonical upstream location.
35213
35214 2007-09-28  Jim Meyering  <jim@meyering.net>
35215
35216         Fix canonicalize loop-detection corner case.
35217         Do not attempt to stat the symlink values stored via seen_triple.
35218         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35219         on linux-2.6.18, (but not 2.6.22).
35220         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35221         triple_compare.  The former compares dev,ino,filename, while the latter
35222         would actually stat dirname(filename) when dev and ino were equal.
35223         * lib/hash-triple.c: Install <string.h>.
35224         (STREQ): Define.
35225         (triple_compare_ino_str): New function.
35226         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35227
35228 2007-09-28  Eric Blake  <ebb9@byu.net>
35229
35230         Enforce that AC_REPLACE_FUNCS files exist.
35231         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35232         override check for typos.
35233
35234         Fix test-closein on Solaris 10.
35235         * tests/test-closein.c (main): Don't assume stdin can be inherited
35236         closed on all systems.
35237         * tests/test-closein.sh: Likewise.
35238         Reported by Piotr Tarnowski.
35239
35240 2007-09-28  Jim Meyering  <jim@meyering.net>
35241
35242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35243
35244 2007-09-27  Jim Meyering  <jim@meyering.net>
35245
35246         canonicalize: Avoid a false-positive cycle failure.
35247         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35248         Sort.  Remove cycle-check.
35249         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35250         not cycle-check.h.
35251         (seen_triple): New function.
35252         (canonicalize_filename_mode): Use it instead of cycle-check.
35253         * tests/test-canonicalize.c: Add a test for this bug.
35254         * tests/test-canonicalize.sh: Set up and run the test.
35255
35256         New module, file-set, from coreutils.
35257         * modules/file-set: Define it.
35258         * lib/file-set.c, lib/file-set.h: Implement.
35259
35260         New module, hash-triple, from coreutils.
35261         * modules/hash-triple: Define it.
35262         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35263
35264 2007-09-25  Eric Blake  <ebb9@byu.net>
35265
35266         Fix strerror on Interix.
35267         * lib/string_.h (strerror): Declare replacement.
35268         * doc/functions/strerror.texi (strerror): Document the Interix
35269         shortcoming.
35270         * modules/string (Makefile.am): Support new hooks.
35271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35272         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35273         gl_FUNC_STRERROR_SEPARATE.
35274         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35275         * lib/strerror.c (rpl_strerror): Provide replacement.
35276         * modules/strerror (Depends-on): Add string.
35277         (configure.ac): Detect use of module.
35278         * tests/test-strerror.c: New file.
35279         * modules/strerror-tests: New test module.
35280         * modules/argp (Depends-on): Add strerror.
35281         * modules/error (Depends-on): Likewise.
35282         Reported by Martin Koeppe.
35283
35284 2007-09-24  Bruno Haible  <bruno@clisp.org>
35285
35286         * README: Update git instructions.
35287
35288 2007-09-24  Eric Blake  <ebb9@byu.net>
35289
35290         Revert fpending breakage from 2007-09-08.
35291         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35292         __fpending.c.
35293
35294 2007-09-24  Jim Meyering  <jim@meyering.net>
35295
35296         filenamecat.c: Add a test.
35297         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35298         showing how the function works when DIR is the empty string.
35299
35300 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35301
35302         * tests/test-canonicalize.sh: Turn on executable bit.
35303
35304 2007-09-19  Eric Blake  <ebb9@byu.net>
35305
35306         * README: Update CVS instructions.
35307
35308 2007-09-18  Bruno Haible  <bruno@clisp.org>
35309
35310         * modules/areadlink: New file.
35311         * lib/areadlink.h (areadlink): New declaration.
35312         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35313
35314 2007-09-17  Jim Meyering  <jim@meyering.net>
35315
35316         * lib/savewd.c (ESTALE) [!defined]: Define.
35317         Reported to be required on Interix by Martin Koeppe.
35318
35319 2007-09-17  Bruno Haible  <bruno@clisp.org>
35320
35321         * gnulib-tool (func_version): Use $version.
35322
35323 2007-09-16  Bruno Haible  <bruno@clisp.org>
35324
35325         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35326         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35327         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35328         Reported by Greg Schafer <gschafer@zip.com.au>.
35329
35330 2007-09-15  Bruno Haible  <bruno@clisp.org>
35331
35332         * gnulib-tool (sed): Try a little harder to make bash understand the
35333         alias.
35334         Reported by Bruce Korb <bruce.korb@gmail.com>.
35335
35336 2007-09-13  Eric Blake  <ebb9@byu.net>
35337
35338         * ChangeLog: Remove conflict markers.
35339
35340 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35341
35342         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35343         Reported by Bruno Haible <bruno@clisp.org>.
35344
35345 2007-09-12  Bruno Haible  <bruno@clisp.org>
35346
35347         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35348         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35349         is not defined.
35350
35351 2007-09-12  Eric Blake  <ebb9@byu.net>
35352
35353         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35354         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35355         Autoconf definition.
35356         * modules/euidaccess (Depends-on): Add extensions, for
35357         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35358         * modules/fnmatch (Depends-on): Likewise.
35359         * modules/getaddrinfo (Depends-on): Likewise.
35360         * modules/getdelim (Depends-on): Likewise.
35361         * modules/getline (Depends-on): Likewise.
35362         * modules/getsubopt (Depends-on): Likewise.
35363         * modules/gettext (Depends-on): Likewise.
35364         * modules/group-member (Depends-on): Likewise.
35365         * modules/mbchar (Depends-on): Likewise.
35366         * modules/memmem (Depends-on): Likewise.
35367         * modules/mempcpy (Depends-on): Likewise.
35368         * modules/memrchr (Depends-on): Likewise.
35369         * modules/pagealign_alloc (Depends-on): Likewise.
35370         * modules/readutmp (Depends-on): Likewise.
35371         * modules/stpcpy (Depends-on): Likewise.
35372         * modules/stpncpy (Depends-on): Likewise.
35373         * modules/strchrnul (Depends-on): Likewise.
35374         * modules/strndup (Depends-on): Likewise.
35375         * modules/strsep (Depends-on): Likewise.
35376         * modules/strverscmp (Depends-on): Likewise.
35377         * modules/vasprintf (Depends-on): Likewise.
35378         * modules/wcwidth (Depends-on): Likewise.
35379         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35380         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35381         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35383         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35384         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35385         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35386         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35387         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35388         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35389         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35390         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35391         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35392         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35393         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35394         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35396         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35398         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35399         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35401         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35402         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35403         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35405         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35406         so that lock.m4 can be used in gettext without extensions module.
35407
35408 2007-09-11  Bruno Haible  <bruno@clisp.org>
35409
35410         * m4/isc-posix.m4: Remove file.
35411         Suggested by Eric Blake.
35412
35413 2007-09-11  Eric Blake  <ebb9@byu.net>
35414
35415         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35416
35417 2007-09-10  Bruno Haible  <bruno@clisp.org>
35418
35419         * posix-modules: Fix typo in error message.
35420         Reported by Matt <mkraai@beckman.com>.
35421
35422 2007-09-09  Bruno Haible  <bruno@clisp.org>
35423
35424         * doc/functions/getdelim.texi: Update list of platforms lacking the
35425         function.
35426         * doc/functions/getline.texi: Likewise.
35427
35428 2007-09-09  Jim Meyering  <jim@meyering.net>
35429
35430         * lib/hash.c (hash_initialize): Detect calloc failure.
35431         Reported by Bruno Haible.
35432
35433 2007-09-09  Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35436         malloc or realloc fails.
35437
35438 2007-09-09  Bruno Haible  <bruno@clisp.org>
35439
35440         * modules/getcwd (Depends-on): Add malloc-posix.
35441         * modules/glob (Depends-on): Likewise.
35442         * modules/putenv (Depends-on): Likewise.
35443         * modules/strdup (Depends-on): Likewise.
35444         * modules/getdelim (Depends-on): Add realloc-posix.
35445         * modules/read-file (Depends-on): Likewise.
35446
35447 2007-09-09  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35450         (gl_FUNC_MALLOC_POSIX): Require it.
35451         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35452         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35453         * modules/realloc (Files): Add m4/malloc.m4.
35454         * modules/calloc (Files): Likewise.
35455
35456 2007-09-09  Bruno Haible  <bruno@clisp.org>
35457
35458         * modules/malloc-posix: New file.
35459         * modules/malloc (Depends-on): Add malloc-posix.
35460         * lib/malloc.c: Include errno.h.
35461         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35462         and a POSIX-compatible malloc into a single function. Set ENOMEM
35463         when returning NULL.
35464         * m4/malloc.m4: New file.
35465         * doc/functions/malloc.texi: Mention the malloc-posix module.
35466         * lib/stdlib_.h (malloc): New declaration.
35467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35468         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35469         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35470         and HAVE_MALLOC_POSIX.
35471
35472 2007-09-09  Bruno Haible  <bruno@clisp.org>
35473
35474         * modules/realloc-posix: New file.
35475         * modules/realloc (Depends-on): Add realloc-posix.
35476         * lib/realloc.c: Include errno.h.
35477         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35478         and a POSIX-compatible realloc into a single function. Set ENOMEM
35479         when returning NULL.
35480         * m4/realloc.m4: New file.
35481         * doc/functions/realloc.texi: Mention the realloc-posix module.
35482         * lib/stdlib_.h (realloc): New declaration.
35483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35484         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35485         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35486         and HAVE_REALLOC_POSIX.
35487
35488 2007-09-09  Bruno Haible  <bruno@clisp.org>
35489
35490         * modules/calloc-posix: New file.
35491         * modules/calloc (Depends-on): Add calloc-posix.
35492         * lib/calloc.c: Include errno.h.
35493         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35494         and a POSIX-compatible calloc into a single function. Set ENOMEM
35495         when returning NULL.
35496         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35497         * doc/functions/calloc.texi: Mention the calloc-posix module.
35498         * lib/stdlib_.h (calloc): New declaration.
35499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35500         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35501         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35502         and HAVE_CALLOC_POSIX.
35503
35504 2007-09-09  Bruno Haible  <bruno@clisp.org>
35505
35506         Allow for modules to show an arbitrary notice.
35507         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35508         * gnulib-tool: New option --extract-notice.
35509         (func_usage): Document it.
35510         (sed_extract_prog): Update.
35511         (func_get_notice): New function.
35512         (func_modules_notice): New function.
35513         (func_import, func_create_testdir): Invoke it.
35514         Suggested by Jim Meyering.
35515
35516 2007-09-09  Bruno Haible  <bruno@clisp.org>
35517
35518         * gnulib-tool: New options --verbose, --quiet.
35519         (func_usage): Document them.
35520         (verbose): New variable.
35521         (func_execute_command): New function.
35522         (func_import): Don't show the module list and the file list if
35523         $verbose < 0.
35524         (func_create_testdir): Likewise. Use func_execute_command.
35525         (func_create_megatestdir): Use func_execute_command.
35526
35527 2007-09-08  Bruno Haible  <bruno@clisp.org>
35528
35529         * gnulib-tool (func_import): Prefer rsync over wget when available,
35530         for fetching the PO files.
35531
35532 2007-09-08  Bruno Haible  <bruno@clisp.org>
35533
35534         * posix-modules: New file. Portions copied from gnulib-tool.
35535         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
35536
35537 2007-09-08  Jim Meyering  <jim@meyering.net>
35538
35539         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
35540         * lib/fpending.h: Rename from __fpending.h.
35541         * lib/fpending.c: Rename from __fpending.c.
35542         Include "fpending.h", not "__fpending.h".
35543         * lib/__fpending.h, lib/__fpending.c: Remove files.
35544         * modules/fpending (Files): Reflect new file names.
35545         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
35546
35547 2007-09-08  Bruno Haible  <bruno@clisp.org>
35548
35549         * m4/inttypes-h.m4: Remove stub file.
35550
35551 2007-09-07  Simon Josefsson  <simon@josefsson.org>
35552
35553         * doc/headers/stdint.texi: Discuss #include_next issue.
35554
35555 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35556
35557         * build-aux/bootstrap: Remove obsolete comment about wget --help.
35558
35559 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35560
35561         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
35562         in variable name.
35563
35564 2007-09-03  Jim Meyering  <jim@meyering.net>
35565
35566         New module: git-version-gen.
35567         * modules/git-version-gen: New file.
35568
35569         Import changes from coreutils for bootstrap script.
35570
35571         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
35572
35573         bootstrap: uses rsync to download the .po files
35574         * build-aux/bootstrap (po_download_command_format): New global.
35575         (download_po_files): Use rsync.
35576         (update_po_files): Don't remove .po files after download,
35577         so future rsync runs can take advantage of the copies.
35578
35579         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
35580
35581         Solve the unnecessary-.po-file-regeneration problem once and for all.
35582         * build-aux/bootstrap (download_po_files): New function, renamed from
35583         get_translations.  Now, downloads, but doesn't update LINGUAS.
35584         (update_po_files): New function.
35585
35586         bootstrap: Ignore more.
35587         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
35588         uniwidth to e.g., lib/.gitignore.
35589         (slurp): Handle the sys_stat_.h -> sys mapping, too.
35590
35591         * build-aux/bootstrap: New setting: vc_ignore.
35592         (insert_sorted_if_absent): Create $file if absent.
35593         Adapt to new, possibly empty, list: $vc_ignore.
35594
35595         bootstrap: generate more ignorable names
35596         * build-aux/bootstrap (slurp): When generating ignorable names,
35597         also map .sin to .sed, .gperf to .c, and .y to .c.
35598
35599 2007-09-03  Jim Meyering  <jim@meyering.net>
35600
35601         * build-aux/git-version-gen: New file, from coreutils.  For details, see
35602         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
35603
35604 2007-09-02  Bruno Haible  <bruno@clisp.org>
35605
35606         Fix mis-recognition of 'mcs' on QNX 6.
35607         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
35608         output contains the string "Mono".
35609         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
35610         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
35611
35612 2007-09-01  Bruno Haible  <bruno@clisp.org>
35613
35614         Fix collision between uniwidth/* and linebreak modules.
35615         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
35616         u32_width): Remove declarations.
35617         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
35618         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
35619         streq3, streq2, streq1, streq0): Remove functions.
35620         (STREQ): Remove macro.
35621         (is_cjk_encoding): Remove function.
35622         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
35623         (uc_width, u8_width, u16_width, u32_width): Remove functions.
35624         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
35625         * NEWS: Document the change.
35626
35627 2007-09-01  Bruno Haible  <bruno@clisp.org>
35628
35629         * lib/streq.h: Add double-inclusion guard.
35630
35631 2007-09-01  Karl Berry  <karl@gnu.org>
35632
35633         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
35634
35635 2007-08-28  Jim Meyering  <jim@meyering.net>
35636
35637         Rename mreadlink_with_size to areadlink_with_size.
35638         * NEWS: Document the change.
35639         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
35640         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
35641         * lib/mreadlink.h: Rename this to...
35642         * lib/areadlink.h: ...this.
35643         * modules/mreadlink-with-size: Rename this to...
35644         * modules/areadlink-with-size: ...this.
35645         * lib/canonicalize.c: Reflect the renaming.
35646         * modules/canonicalize: Likewise.
35647
35648 2007-08-26  Bruno Haible  <bruno@clisp.org>
35649
35650         * gnulib-tool (func_import): When deciding which files to remove,
35651         consider also dangling symbolic links.
35652         Reported by Eric Blake.
35653
35654 2007-08-26  Bruno Haible  <bruno@clisp.org>
35655
35656         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
35657
35658 2007-08-23  Simon Josefsson  <simon@josefsson.org>
35659
35660         * lib/readline.c: Don't include getline.h, the prototype is now
35661         found in stdio.h.
35662
35663 2007-08-23  Jim Meyering  <jim@meyering.net>
35664
35665         Getdelim touchup.
35666         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
35667         around the funlockfile call, since funlockfile never sets errno.
35668         Don't set errno upon failed realloc.
35669
35670 2007-08-22  Eric Blake  <ebb9@byu.net>
35671
35672         Getline touchups.
35673         * lib/getdelim.c (getdelim): Revert regression that required *n to
35674         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
35675         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
35676         getdelim, rather than whether implementation is missing.
35677         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
35678         * lib/stdio_.h (getline): Also declare if replacement is
35679         required.
35680         * doc/functions/getdelim.texi: New file.
35681         * doc/functions/getline.texi: Likewise.
35682         * doc/gnulib.texi (Function Substitutes): Add new files.
35683         Reported by Bruno Haible.
35684
35685 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
35686
35687         * users.txt: Add Guile.
35688
35689 2007-08-22  Eric Blake  <ebb9@byu.net>
35690
35691         * tests/test-getdelim.c (main): Use remove, not unlink.
35692         * tests/test-getline.c (main): Likewise.
35693
35694         Move getline and getdelim into stdio.h, per POSIX 200x.
35695         * modules/getline (Files): Remove getline.h.
35696         (Depends-on): Add stdio.
35697         (configure.ac): Add module indicator.
35698         * modules/getdelim (Files): Remove getdelim.h.
35699         (Depends-on): Add stdio.
35700         (configure.ac): Add module indicator.
35701         * modules/stdio (Makefile.am): Work with new indicators.
35702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35703         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
35704         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35705         * lib/getdelim.h: Delete.
35706         * lib/getline.h: Delete.
35707         * lib/stdio_.h (getdelim, getline): Declare.
35708         * modules/getdelim-tests: New module.
35709         * modules/getline-tests: Likewise.
35710         * tests/test-getdelim.c: New file.
35711         * tests/test-getline.c: Likewise.
35712         * NEWS: Document the change.
35713         * lib/getline.c: Update choice of header.
35714         * lib/csharpcomp.c: Likewise.
35715         * lib/getpass.c: Likewise.
35716         * lib/javacomp.c: Likewise.
35717         * lib/javaversion.c: Likewise.
35718         * lib/yesno.c: Likewise.
35719         * lib/getdelim.c: Likewise.
35720         (getdelim): Set errno on failure, and avoid memory leak.
35721
35722 2007-08-19  Bruno Haible  <bruno@clisp.org>
35723
35724         * modules/closein (Depends-on): Add freadahead.
35725         * lib/closein.c: Include freadahead.h.
35726         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
35727         is zero.
35728
35729 2007-08-19  Bruno Haible  <bruno@clisp.org>
35730
35731         * modules/freadahead-tests: New file.
35732         * tests/test-freadahead.sh: New file.
35733         * tests/test-freadahead.c: New file.
35734
35735         * modules/freadahead: New file.
35736         * lib/freadahead.h: New file.
35737         * lib/freadahead.c: New file.
35738         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
35739         fbufmode, fpurge, freadable, fwritable.
35740
35741 2007-08-19  Eric Blake  <ebb9@byu.net>
35742
35743         Test yesno in combination with closein.
35744         * lib/yesno.c (yesno): Document use of stdin.
35745         * modules/yesno-tests (Files): New module.
35746         * tests/test-yesno.c (main): New file.
35747         * tests/test-yesno.sh: Likewise.
35748
35749 2007-08-19  Bruno Haible  <bruno@clisp.org>
35750
35751         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
35752         * lib/fseeko.c (rpl_fseeko): Likewise.
35753         * lib/fseterr.c (fseterr): Likewise.
35754
35755 2007-08-19  Bruno Haible  <bruno@clisp.org>
35756
35757         * tests/test-lseek.c (main): Disable a test for BeOS.
35758         * doc/functions/lseek.texi: Document the BeOS bug.
35759
35760 2007-08-19  Bruno Haible  <bruno@clisp.org>
35761             Eric Blake  <ebb9@byu.net>
35762
35763         * lib/lseek.c: Include <sys/stat.h>.
35764         (rpl_lseek): Add workaround code also for Unix platforms.
35765         Needed for BeOS.
35766         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
35767         * doc/functions/lseek.texi: Document BeOS definiency.
35768
35769 2007-08-18  Bruno Haible  <bruno@clisp.org>
35770
35771         * modules/fstrcmp-tests: New file.
35772         * tests/test-fstrcmp.c: New file.
35773
35774 2007-08-18  Bruno Haible  <bruno@clisp.org>
35775
35776         * modules/fstrcmp: New file, from GNU gettext with modifications.
35777         * lib/fstrcmp.h: New file, from GNU gettext.
35778         * lib/fstrcmp.c: New file, from GNU gettext.
35779         * MODULES.html.sh (String handling): Add fstrcmp.
35780
35781 2007-08-18  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
35784         'bool'.
35785         (diag, compareseq): Remove const from the ctxt argument.
35786         (USE_HEURISTIC): Undefine at the end.
35787
35788 2007-08-18  Jim Meyering  <jim@meyering.net>
35789
35790         New file: lib/idcache.h
35791         * NEWS: Mention the addition.
35792         * modules/idcache (Files): Add lib/idcache.h
35793         * lib/idcache.c: Include "idcache.h".
35794         Don't include <sys/types.h>.
35795         Add a FIXME comment.
35796         Move file-scoped "static" declarations to the top.
35797         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
35798
35799 2007-08-17  Bruno Haible  <bruno@clisp.org>
35800         and Paul Eggert  <eggert@cs.ucla.edu>
35801
35802         * MODULES.html.sh: Add diffseq.
35803         * modules/diffseq: New file.
35804         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
35805         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
35806
35807 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35808
35809         Import changes from coreutils for bootstrap script.
35810
35811         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
35812
35813         * build-aux/bootstrap (slurp): Work even in environments where
35814         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
35815         current code does not slurp files whose names start with ".", and
35816         this looks like it might be a troublesome area.
35817
35818         2007-07-11  Jim Meyering  <jim@meyering.net>
35819
35820         If there's a GPL vN copyright comment, require that N == 3.
35821
35822         2007-07-08  Jim Meyering  <jim@meyering.net>
35823
35824         Run the coreutils-specific code only if tests/Makefile.am.in exists.
35825         * build-aux/bootstrap (mam_template): Move definition out of loop.
35826
35827         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
35828
35829         * build-aux/bootstrap (symlink_to_dir): Rename function from
35830         symlink_to_gnulib.  Add a directory parameter.  Update all
35831         callers.
35832         (cp_mark_as_generated): Also check for -- and link to -- files in
35833         gl/.
35834
35835         2007-07-08  Jim Meyering  <jim@meyering.net>
35836
35837         Adapt to deeper hierarchy in gnulib.
35838         * build-aux/bootstrap (symlink_to_dir): If the destination
35839         directory doesn't exist, create it. This is required at least for
35840         "lib/uniwidth/cjk.h".
35841
35842         2007-05-15  Jim Meyering  <jim@meyering.net>
35843
35844         * build-aux/bootstrap: Now that generated Makefile.am files
35845         are no longer under version control, they must be created at
35846         bootstrap time.
35847
35848 2007-08-14  Ben Pfaff  <blp@gnu.org>
35849
35850         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
35851
35852 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35853
35854         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
35855         given the changes below.
35856         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
35857         even on hosts that have padding bits beyond the supported 64.
35858
35859 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35860
35861         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
35862         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
35863         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
35864         depends on it.
35865         (xstrtol_error): Remove.
35866         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
35867         but with a different signature.
35868         (ATTRIBUTE_NORETURN, __attribute__): New macros.
35869         * lib/xstrtol-error.c: Include exitfail.h.
35870         (xstrtol_fatal): New function, with a different signature from the
35871         old xstrtol_error, so that the caller need not worry about passing
35872         in an exit status, or about storage management of the option argument.
35873         (xstrtol_error): Now a static function.  Redo signature to
35874         implement xstrtol_fatal.  Output the correct number of hyphens in
35875         front of the option so that the caller need not worry about
35876         storage management.
35877         (N_): New macro.
35878         (_): Remove; not used now.
35879         * modules/xstrtol: Depend on getopt.
35880         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
35881         of old STRTOL_FATAL_ERROR macro.
35882         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
35883         of test program.
35884         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
35885         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
35886
35887 2007-08-08  Eric Blake  <ebb9@byu.net>
35888
35889         * lib/xstrtol-error.c: Add missing include.
35890
35891         Move xstrtol messages into gnulib domain, when --pobase is used.
35892         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
35893         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
35894         * modules/xstrtol (Files): Distribute new file.
35895         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
35896         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
35897         * tests/test-xstrtol.c: ...into new file.
35898         * tests/test-xstrtoul.c: Also test xstrtoul.
35899         * tests/test-xstrtoimax.c: Also test xstrtoimax.
35900         * tests/test-xstrtoumax.c: Also test xstrtoumax.
35901         * tests/test-xstrtol.sh: Drive the tests.
35902         * tests/test-xstrtoimax.sh: Likewise.
35903         * tests/test-xstrtoumax.sh: Likewise.
35904         * modules/xstrtol-tests: New module.
35905         * modules/xstrtoimax-tests: Likewise.
35906         * modules/xstrtoumax-tests: Likewise.
35907
35908 2007-08-08  Jim Meyering  <jim@meyering.net>
35909
35910         New function: mfile_name_concat.
35911         * lib/filenamecat.c (mfile_name_concat): New function, just like
35912         file_name_concat, but return NULL upon failure rather than exiting
35913         with a diagnostic.
35914         * lib/filenamecat.h: Declare it.
35915
35916 2007-08-07  Bruno Haible  <bruno@clisp.org>
35917
35918         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
35919         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
35920         warning from gcc.
35921         Reported by Eric Blake.
35922
35923 2007-08-07  Simon Josefsson  <simon@josefsson.org>
35924
35925         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
35926         * modules/crypto/arcfour (License): Likewise.
35927         * modules/crypto/des-tests (License): Likewise.
35928         * modules/crypto/gc-arctwo-tests (License): Likewise.
35929         * modules/crypto/gc-des-tests (License): Likewise.
35930         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
35931         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
35932         * modules/crypto/gc-md2-tests (License): Likewise.
35933         * modules/crypto/gc-md4-tests (License): Likewise.
35934         * modules/crypto/gc-md5-tests (License): Likewise.
35935         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
35936         * modules/crypto/gc-rijndael-tests (License): Likewise.
35937         * modules/crypto/gc-sha1-tests (License): Likewise.
35938         * modules/crypto/gc-tests (License): Likewise.
35939         * modules/crypto/hmac-md5 (License): Likewise.
35940         * modules/crypto/hmac-sha1 (License): Likewise.
35941         * modules/crypto/md2-tests (License): Likewise.
35942         * modules/crypto/md4-tests (License): Likewise.
35943         * modules/crypto/md5 (License): Likewise.
35944         * modules/crypto/rijndael (License): Likewise.
35945         * modules/crypto/sha1 (License): Likewise.
35946         * modules/memxor (License): Likewise.
35947
35948 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35949         and Bruno Haible  <bruno@clisp.org>
35950
35951         * NEWS: Describe interface changes to human, xstrtol.
35952         * lib/human.h: Include <xstrtol.h>.
35953         (human_options): Return enum strtol_error, not int.  Remove
35954         bool arg; take int * instead.
35955         * lib/human.c: Don't include "gettext.h".
35956         (_): Remove; no longer used.
35957         Don't include <xstrtol.h>, since human.h does it.
35958         (human_options): Adjust to abovementioned interface changes.
35959         Do not report error to stderr; that's now the caller's
35960         responsibility.
35961         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
35962         interface change.
35963         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
35964         Str, Argument_type_string.  All uses changed.  Put " argument"
35965         in diagnostics to make them clearer.  Change wording of suffix
35966         message for clarity.
35967         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
35968         Argument_type_string.
35969         (STRTOL_FATAL_WARN): Remove; no longer used.
35970         * modules/human (Depends-on): Remove gettext-h.
35971
35972 2007-08-06  Simon Josefsson  <simon@josefsson.org>
35973
35974         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
35975
35976 2007-07-31  Bruno Haible  <bruno@clisp.org>
35977
35978         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
35979         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
35980         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
35981
35982 2007-07-31  Bruno Haible  <bruno@clisp.org>
35983
35984         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
35985         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
35986
35987 2007-07-30  Bruno Haible  <bruno@clisp.org>
35988
35989         * modules/base64 (License): Use the synonymous term "LGPLv2+".
35990         * modules/c-ctype (License): Likewise.
35991         * modules/c-strcase (License): Likewise.
35992         * modules/check-version (License): Likewise.
35993         * modules/iconv (License): Likewise.
35994         * modules/iconv_open (License): Likewise.
35995         * modules/read-file (License): Likewise.
35996         * modules/striconv (License): Likewise.
35997         * modules/strverscmp (License): Likewise.
35998         * modules/vasprintf (License): Likewise.
35999         * modules/crypto/des (License): Likewise.
36000         * modules/crypto/gc (License): Likewise.
36001         * modules/crypto/gc-arcfour (License): Likewise.
36002         * modules/crypto/gc-arctwo (License): Likewise.
36003         * modules/crypto/gc-des (License): Likewise.
36004         * modules/crypto/gc-hmac-md5 (License): Likewise.
36005         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36006         * modules/crypto/gc-md2 (License): Likewise.
36007         * modules/crypto/gc-md4 (License): Likewise.
36008         * modules/crypto/gc-md5 (License): Likewise.
36009         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36010         * modules/crypto/gc-random (License): Likewise.
36011         * modules/crypto/gc-rijndael (License): Likewise.
36012         * modules/crypto/gc-sha1 (License): Likewise.
36013         * modules/crypto/md2 (License): Likewise.
36014         * modules/crypto/md4 (License): Likewise.
36015
36016 2007-07-30  Jim Meyering  <jim@meyering.net>
36017
36018         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36019         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36020         it has valid stat data.  This bug would cause du not to count the
36021         sizes of inaccessible directories.
36022         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36023         in <http://bugzilla.redhat.com/250077>.
36024
36025 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36026             Bruno Haible  <bruno@clisp.org>
36027
36028         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36029         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36030         #include_next, gives a diagnostic about it, but reports no error in
36031         the exit code.
36032         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36033
36034 2007-07-24  Ben Pfaff  <blp@gnu.org>
36035
36036         Improve name: "count-one-bits" is better than "popcount".
36037         * MODULES.html.sh: Update name.
36038         * lib/popcount.h: Renamed lib/count-one-bits.h.
36039         (popcount): Renamed count_one_bits.
36040         (popcountl): Renamed count_one_bits_l.
36041         (popcountll): Renamed count_one_bits_ll.
36042         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36043         * modules/popcount: Renamed module/count-one-bits.
36044         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36045         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36046
36047 2007-07-23  Ben Pfaff  <blp@gnu.org>
36048
36049         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36050         better code generation, and add U to large constants to avoid
36051         warnings, in non-GCC case.
36052         Suggested by Bruno Haible.
36053
36054 2007-07-23  Ben Pfaff  <blp@gnu.org>
36055
36056         * lib/popcount.h: Use verify_true instead of if...abort.
36057         * modules/popcount: Depend on verify module.
36058         Suggested by Jim Meyering.
36059
36060 2007-07-23  Bruno Haible  <bruno@clisp.org>
36061
36062         * gnulib-tool (func_import): Create a .cvsignore file also when the
36063         directory is not yet in CVS but the toplevel directory is. When
36064         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36065         Reported by Karl Berry.
36066
36067 2007-07-22  Ben Pfaff  <blp@gnu.org>
36068
36069         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36070         case.
36071         Suggested by Eric Blake.
36072
36073 2007-07-22  Ben Pfaff  <blp@gnu.org>
36074
36075         New module: popcount.
36076         * MODULES.html.sh: Add popcount.
36077         * modules/popcount: New file.
36078         * modules/popcount-tests: New file.
36079         * tests/test-popcount.c: New file.
36080         * lib/popcount.h: New file.
36081         * m4/popcount.m4: New file.
36082
36083 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36084
36085         * build-aux/announce-gen: Update to GPLv3.
36086
36087         * build-aux/config.guess: Update from config.
36088
36089 2007-07-21  Bruno Haible  <bruno@clisp.org>
36090
36091         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36092         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36093
36094 2007-07-20  Jim Meyering  <jim@meyering.net>
36095
36096         * check-module: Diagnose a self-dependency.
36097
36098 2007-07-19  Bruno Haible  <bruno@clisp.org>
36099
36100         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36101         empty.
36102         Reported by Eric Blake.
36103
36104 2007-07-18  Bruno Haible  <bruno@clisp.org>
36105
36106         * gnulib-tool: New options --po-base, --po-domain.
36107         (func_usage): Document them.
36108         (pobase, po_domain): New variables.
36109         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36110         DEFAULT_TEXT_DOMAIN.
36111         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36112         (func_import): Consider pobase and po_domain. Create a po/ directory.
36113         (func_create_testdir): Set pobase and po_domain to empty.
36114         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36115         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36116
36117 2007-07-18  Bruno Haible  <bruno@clisp.org>
36118
36119         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36120         EXTRA_DIST augmentation for files in build-aux/.
36121
36122 2007-07-16  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36125         * modules/getdelim (License): Likewise.
36126
36127 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36128
36129         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36130         * modules/d-type (License): Likewise.
36131         * modules/extensions (License): Likewise.
36132         * modules/fnmatch (License): Likewise.
36133         * modules/fseeko (License): Likewise.
36134         * modules/getaddrinfo (License): Likewise.
36135         * modules/getline (License): Likewise.
36136         * modules/getlogin_r (License): Likewise.
36137         * modules/getpass (License): Likewise.
36138         * modules/gettimeofday (License): Likewise.
36139         * modules/glob (License): Likewise.
36140         * modules/inet_ntop (License): Likewise.
36141         * modules/malloc (License): Likewise.
36142         * modules/malloca (License): Likewise.
36143         * modules/memmem (License): Likewise.
36144         * modules/mempcpy (License): Likewise.
36145         * modules/memset (License): Likewise.
36146         * modules/minmax (License): Likewise.
36147         * modules/mktime (License): Likewise.
36148         * modules/netinet_in (License): Likewise.
36149         * modules/pathmax (License): Likewise.
36150         * modules/poll (License): Likewise.
36151         * modules/regex (License): Likewise.
36152         * modules/snprintf (License): Likewise.
36153         * modules/stdbool (License): Likewise.
36154         * modules/stdint (License): Likewise.
36155         * modules/stdio (License): Likewise.
36156         * modules/strcase (License): Likewise.
36157         * modules/strcasestr (License): Likewise.
36158         * modules/strdup (License): Likewise.
36159         * modules/string (License): Likewise.
36160         * modules/strndup (License): Likewise.
36161         * modules/strnlen (License): Likewise.
36162         * modules/strpbrk (License): Likewise.
36163         * modules/strptime (License): Likewise.
36164         * modules/strsep (License): Likewise.
36165         * modules/sys_select (License): Likewise.
36166         * modules/sys_socket (License): Likewise.
36167         * modules/sys_stat (License): Likewise.
36168         * modules/sys_time (License): Likewise.
36169         * modules/time (License): Likewise.
36170         * modules/time_r (License): Likewise.
36171         * modules/timegm (License): Likewise.
36172         * modules/unistd (License): Likewise.
36173         * modules/vsnprintf (License): Likewise.
36174         * modules/wctype (License): Likewise.
36175
36176 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36177
36178         * modules/argz (License): LGPLv2+.
36179
36180 2007-07-15  Karl Berry  <karl@gnu.org>
36181
36182         * doc/gnulib.texi: revise node structure per new fdl.texi.
36183
36184 2007-07-14  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36187         the output file.
36188         * lib/uniname/uninames.h: Regenerated.
36189
36190 2007-07-14  Karl Berry  <karl@gnu.org>
36191
36192         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36193         omitting sectioning and index commands.
36194
36195 2007-07-13  Bruno Haible  <bruno@clisp.org>
36196
36197         New gnulib-tool option --more-symlinks.
36198         * gnulib-tool (func_usage): Document --more-symlinks.
36199         (do_copyrights): New variable.
36200         Recognize option --more-symlinks.
36201         (func_import): Don't add a copyright notice transform to
36202         sed_transform_lib_file if do_copyrights is empty.
36203
36204 2007-07-13  Bruno Haible  <bruno@clisp.org>
36205
36206         * lib/vasnprintf.c (decimal_point_char): Define also if
36207         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36208         && !NEED_PRINTF_DIRECTIVE_A.
36209         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36210         Gary V. Vaughan <gary@gnu.org>.
36211
36212 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36213
36214         * lib/inttypes_.h: Undo previous change, since it was fixed
36215         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36216
36217 2007-07-13  Bruno Haible  <bruno@clisp.org>
36218
36219         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36220         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36221
36222 2007-07-13  Jim Meyering  <jim@meyering.net>
36223
36224         df: Don't fail for Tru64's "file-on-file mount".
36225         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36226         so we fall through and use statfs instead.  Details here:
36227         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36228         Reported by Albert Chin.
36229
36230 2007-07-13  Bruno Haible  <bruno@clisp.org>
36231
36232         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36233         * modules/configmake (License): Likewise.
36234         * modules/gettext (License): Likewise.
36235         * modules/gettext-h (License): Likewise.
36236         * modules/include_next (License): Likewise.
36237         * modules/link-warning (License): Likewise.
36238         * modules/localcharset (License): Likewise.
36239         * modules/localename (License): Likewise.
36240         * modules/lock (License): Likewise.
36241         * modules/relocatable-lib-lgpl (License): Likewise.
36242         * modules/size_max (License): Likewise.
36243         * modules/vasnprintf (License): Likewise.
36244         * modules/wchar (License): Likewise.
36245         * modules/xsize (License): Likewise.
36246
36247 2007-07-13  Bruno Haible  <bruno@clisp.org>
36248
36249         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36250         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36251
36252 2007-07-12  Bruno Haible  <bruno@clisp.org>
36253
36254         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36255         in the modules files.
36256
36257 2007-07-11  Karl Berry  <karl@gnu.org>
36258
36259         * MODULES.html.sh (func_module): use
36260          sed -e '\|^'"${includefile}"'$|d'
36261          instead of /.../d, to avoid errors on $includefile's containing /.
36262
36263 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36264
36265         * gnulib-tool (func_import): Avoid duplication of --avoid
36266         statements
36267         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36268         names to `_' in variable names.
36269
36270 2007-07-10  Eric Blake  <ebb9@byu.net>
36271
36272         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36273         * NEWS: Document this change.
36274
36275 2007-07-08  Bruno Haible  <bruno@clisp.org>
36276
36277         Update to Unicode 5.0.
36278         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36279         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36280         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36281         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36282         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36283         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36284         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36285         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36286         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36287         U+10A3F, U+1D242..U+1D244.
36288         (nonspacing_table_ind): Update.
36289         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36290         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36291
36292 2007-07-08  Bruno Haible  <bruno@clisp.org>
36293
36294         Update to Unicode 5.0.
36295         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36296         code transform. Extend the name index field of unicode_name_to_code and
36297         unicode_code_to_name from 16 to 24 bits.
36298         * lib/uniname/uniname.c (unicode_character_name,
36299         unicode_name_character): Add the range 0x12xxx to the code transform.
36300         * lib/uniname/uninames.h: Regenerated.
36301         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36302
36303 2007-07-07  Bruno Haible  <bruno@clisp.org>
36304
36305         * modules/wcwidth-tests: New file.
36306         * tests/test-wcwidth.c: New file.
36307
36308         Work around MacOS X wcwidth() bug.
36309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36310         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36311         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36312         original wcwidth in non-UTF-8 locales.
36313         * modules/wcwidth (Depends-on): Add localcharset, streq,
36314         uniwidth/width.
36315         * doc/functions/wcwidth.texi: Update.
36316
36317 2007-07-07  Bruno Haible  <bruno@clisp.org>
36318
36319         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36320         (wcwidth): New declaration.
36321         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36322         macros.
36323         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36324         here. Prepare for creating <wchar.h> unconditionally.
36325         * modules/wchar (Depends-on): Add link-warning.
36326         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36327         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36328         * lib/wcwidth.h: Remove file.
36329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36330         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36331         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36332         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36333         (Include): Replace wcwidth.h with <wchar.h>.
36334         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36335         * lib/mbchar.h: Don't include wcwidth.h.
36336         * lib/mbswidth.c: Likewise.
36337         * NEWS: Mention the change.
36338
36339 2007-07-07  Bruno Haible  <bruno@clisp.org>
36340
36341         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36342         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36343         definition with an external declaration.
36344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36345         defined as a function. Remove AC_C_INLINE requirement.
36346         * modules/wcwidth (Files): Add lib/wcwidth.c.
36347         (Makefile.am): Remove redundant statement.
36348
36349 2007-07-07  Bruno Haible  <bruno@clisp.org>
36350
36351         * MODULES.html.sh (Unicode string functions): Add the new modules.
36352
36353         * tests/uniwidth/test-u32-strwidth.c: New file.
36354         * modules/uniwidth/u32-strwidth-tests: New file.
36355
36356         * lib/uniwidth/u32-strwidth.c: New file.
36357         * modules/uniwidth/u32-strwidth: New file.
36358
36359         * tests/uniwidth/test-u16-strwidth.c: New file.
36360         * modules/uniwidth/u16-strwidth-tests: New file.
36361
36362         * lib/uniwidth/u16-strwidth.c: New file.
36363         * modules/uniwidth/u16-strwidth: New file.
36364
36365         * tests/uniwidth/test-u8-strwidth.c: New file.
36366         * modules/uniwidth/u8-strwidth-tests: New file.
36367
36368         * lib/uniwidth/u8-strwidth.c: New file.
36369         * modules/uniwidth/u8-strwidth: New file.
36370
36371         * tests/uniwidth/test-u32-width.c: New file.
36372         * modules/uniwidth/u32-width-tests: New file.
36373
36374         * lib/uniwidth/u32-width.c: New file.
36375         * modules/uniwidth/u32-width: New file.
36376
36377         * tests/uniwidth/test-u16-width.c: New file.
36378         * modules/uniwidth/u16-width-tests: New file.
36379
36380         * lib/uniwidth/u16-width.c: New file.
36381         * modules/uniwidth/u16-width: New file.
36382
36383         * tests/uniwidth/test-u8-width.c: New file.
36384         * modules/uniwidth/u8-width-tests: New file.
36385
36386         * lib/uniwidth/u8-width.c: New file.
36387         * modules/uniwidth/u8-width: New file.
36388
36389         * tests/uniwidth/test-uc_width.c: New file.
36390         * modules/uniwidth/width-tests: New file.
36391
36392         * lib/uniwidth/width.c: New file, from GNU libiconv.
36393         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36394         * modules/uniwidth/width: New file.
36395
36396         * lib/uniwidth.h: New file, from GNU libiconv.
36397         * modules/uniwidth/base: New file.
36398
36399 2007-07-07  Bruno Haible  <bruno@clisp.org>
36400
36401         * lib/uniname.h: New file, from GNU gettext.
36402         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36403         * lib/uniname/uninames.h: New file, from GNU gettext.
36404         * lib/uniname/uniname.c: New file, from GNU gettext.
36405         * tests/uniname/test-uninames.sh: New file.
36406         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36407         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36408         * modules/uniname/base: New file.
36409         * modules/uniname/uniname: New file.
36410         * modules/uniname/uniname-tests: New file.
36411         * MODULES.html.sh (Unicode string functions): Add the new modules.
36412
36413 2007-07-06  Bruno Haible  <bruno@clisp.org>
36414
36415         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36416
36417 2007-07-06  Bruno Haible  <bruno@clisp.org>
36418
36419         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36420         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36421         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36422         include <sys/time.h>.
36423         Reported by Eric Blake.
36424
36425 2007-07-06  Eric Blake  <ebb9@byu.net>
36426
36427         Fix testing canonicalize on cygwin.
36428         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36429         Revert patch from 2007-06-19.
36430         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36431         canonicalize module is also in use.
36432         * tests/test-canonicalize.c: New file.
36433         * tests/test-canonicalize.sh: Likewise.
36434         * modules/canonicalize-tests: Likewise.
36435
36436 2007-07-06  Jim Meyering  <jim@meyering.net>
36437
36438         * lib/getugroups.c (getugroups): Detect getgrent failure.
36439         Adjust comment to reflect reality: this function may return -1.
36440
36441 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36442
36443         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36444         the new TP address.
36445         (usage): Fix typo
36446         (gnulib_mk): New variable.
36447
36448 2007-07-05  Jim Meyering  <jim@meyering.net>
36449
36450         Don't let endgrent clobber errno, no matter how improbable.
36451         * lib/getugroups.c (getugroups): Save and restore errno around
36452         endgrent call.
36453
36454         Close the group DB even when failing with 2^31 or more members.
36455         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36456
36457 2007-07-04  Jim Meyering  <jim@meyering.net>
36458
36459         * lib/getugroups.h: New file.
36460         * lib/getugroups.c: Include "getugroups.h".
36461         Remove uses of "register" keyword.
36462         Move local variable, "cp", down into scope where used.
36463         Give "username" parameter the "const" attribute.
36464         * modules/getugroups (Files): Add lib/getugroups.h
36465
36466 2007-07-04  Karl Berry  <karl@gnu.org>
36467
36468         * MODULES.html.sh (func_all_modules): Complete rename of
36469         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36470
36471 2007-07-02  Bruno Haible  <bruno@clisp.org>
36472
36473         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36474         mode, when inttypes.h comes from gnulib.
36475         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36476
36477 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36478
36479         * NEWS: Mention lgpl module name change.
36480
36481         * modules/lgpl-2.1: Renamed from lgpl.
36482
36483         * NEWS: Mention gpl module name change.
36484
36485         * modules/gpl-3.0: New file, based on gpl-2.0.
36486
36487         * modules/gpl-2.0: Renamed from gpl.
36488
36489         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36490         doc/gpl-2.0.texi.
36491
36492 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36493
36494         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36495         #define __STDC_LIMIT_MACROS temporarily while including
36496         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36497         Problem reported by Joel E. Denny in
36498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36499
36500 2007-07-01  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/unistdio.h: New file.
36503         * lib/unistdio/u-asnprintf.h: New file.
36504         * lib/unistdio/u-asprintf.h: New file.
36505         * lib/unistdio/u-printf-args.c: New file.
36506         * lib/unistdio/u-printf-args.h: New file.
36507         * lib/unistdio/u-printf-parse.h: New file.
36508         * lib/unistdio/u-snprintf.h: New file.
36509         * lib/unistdio/u-sprintf.h: New file.
36510         * lib/unistdio/u-vasprintf.h: New file.
36511         * lib/unistdio/u-vsnprintf.h: New file.
36512         * lib/unistdio/u-vsprintf.h: New file.
36513         * lib/unistdio/ulc-asnprintf.c: New file.
36514         * lib/unistdio/ulc-asprintf.c: New file.
36515         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36516         * lib/unistdio/ulc-printf-parse.c: New file.
36517         * lib/unistdio/ulc-snprintf.c: New file.
36518         * lib/unistdio/ulc-sprintf.c: New file.
36519         * lib/unistdio/ulc-vasnprintf.c: New file.
36520         * lib/unistdio/ulc-vasprintf.c: New file.
36521         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36522         * lib/unistdio/ulc-vsnprintf.c: New file.
36523         * lib/unistdio/ulc-vsprintf.c: New file.
36524         * lib/unistdio/u8-asnprintf.c: New file.
36525         * lib/unistdio/u8-asprintf.c: New file.
36526         * lib/unistdio/u8-printf-parse.c: New file.
36527         * lib/unistdio/u8-snprintf.c: New file.
36528         * lib/unistdio/u8-sprintf.c: New file.
36529         * lib/unistdio/u8-vasnprintf.c: New file.
36530         * lib/unistdio/u8-vasprintf.c: New file.
36531         * lib/unistdio/u8-vsnprintf.c: New file.
36532         * lib/unistdio/u8-vsprintf.c: New file.
36533         * lib/unistdio/u8-u8-asnprintf.c: New file.
36534         * lib/unistdio/u8-u8-asprintf.c: New file.
36535         * lib/unistdio/u8-u8-snprintf.c: New file.
36536         * lib/unistdio/u8-u8-sprintf.c: New file.
36537         * lib/unistdio/u8-u8-vasnprintf.c: New file.
36538         * lib/unistdio/u8-u8-vasprintf.c: New file.
36539         * lib/unistdio/u8-u8-vsnprintf.c: New file.
36540         * lib/unistdio/u8-u8-vsprintf.c: New file.
36541         * lib/unistdio/u16-asnprintf.c: New file.
36542         * lib/unistdio/u16-asprintf.c: New file.
36543         * lib/unistdio/u16-printf-parse.c: New file.
36544         * lib/unistdio/u16-snprintf.c: New file.
36545         * lib/unistdio/u16-sprintf.c: New file.
36546         * lib/unistdio/u16-vasnprintf.c: New file.
36547         * lib/unistdio/u16-vasprintf.c: New file.
36548         * lib/unistdio/u16-vsnprintf.c: New file.
36549         * lib/unistdio/u16-vsprintf.c: New file.
36550         * lib/unistdio/u16-u16-asnprintf.c: New file.
36551         * lib/unistdio/u16-u16-asprintf.c: New file.
36552         * lib/unistdio/u16-u16-snprintf.c: New file.
36553         * lib/unistdio/u16-u16-sprintf.c: New file.
36554         * lib/unistdio/u16-u16-vasnprintf.c: New file.
36555         * lib/unistdio/u16-u16-vasprintf.c: New file.
36556         * lib/unistdio/u16-u16-vsnprintf.c: New file.
36557         * lib/unistdio/u16-u16-vsprintf.c: New file.
36558         * lib/unistdio/u32-asnprintf.c: New file.
36559         * lib/unistdio/u32-asprintf.c: New file.
36560         * lib/unistdio/u32-printf-parse.c: New file.
36561         * lib/unistdio/u32-snprintf.c: New file.
36562         * lib/unistdio/u32-sprintf.c: New file.
36563         * lib/unistdio/u32-vasnprintf.c: New file.
36564         * lib/unistdio/u32-vasprintf.c: New file.
36565         * lib/unistdio/u32-vsnprintf.c: New file.
36566         * lib/unistdio/u32-vsprintf.c: New file.
36567         * lib/unistdio/u32-u32-asnprintf.c: New file.
36568         * lib/unistdio/u32-u32-asprintf.c: New file.
36569         * lib/unistdio/u32-u32-snprintf.c: New file.
36570         * lib/unistdio/u32-u32-sprintf.c: New file.
36571         * lib/unistdio/u32-u32-vasnprintf.c: New file.
36572         * lib/unistdio/u32-u32-vasprintf.c: New file.
36573         * lib/unistdio/u32-u32-vsnprintf.c: New file.
36574         * lib/unistdio/u32-u32-vsprintf.c: New file.
36575         * tests/unistdio/test-ulc-asnprintf1.c: New file.
36576         * tests/unistdio/test-ulc-asnprintf1.h: New file.
36577         * tests/unistdio/test-ulc-printf1.h: New file.
36578         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
36579         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
36580         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
36581         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
36582         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
36583         * tests/unistdio/test-ulc-vasprintf1.c: New file.
36584         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
36585         * tests/unistdio/test-ulc-vsprintf1.c: New file.
36586         * tests/unistdio/test-u8-asnprintf1.c: New file.
36587         * tests/unistdio/test-u8-asnprintf1.h: New file.
36588         * tests/unistdio/test-u8-printf1.h: New file.
36589         * tests/unistdio/test-u8-vasnprintf1.c: New file.
36590         * tests/unistdio/test-u8-vasnprintf2.c: New file.
36591         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
36592         * tests/unistdio/test-u8-vasnprintf3.c: New file.
36593         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
36594         * tests/unistdio/test-u8-vasprintf1.c: New file.
36595         * tests/unistdio/test-u8-vsnprintf1.c: New file.
36596         * tests/unistdio/test-u8-vsprintf1.c: New file.
36597         * tests/unistdio/test-u16-asnprintf1.c: New file.
36598         * tests/unistdio/test-u16-asnprintf1.h: New file.
36599         * tests/unistdio/test-u16-printf1.h: New file.
36600         * tests/unistdio/test-u16-vasnprintf1.c: New file.
36601         * tests/unistdio/test-u16-vasnprintf2.c: New file.
36602         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
36603         * tests/unistdio/test-u16-vasnprintf3.c: New file.
36604         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
36605         * tests/unistdio/test-u16-vasprintf1.c: New file.
36606         * tests/unistdio/test-u16-vsnprintf1.c: New file.
36607         * tests/unistdio/test-u16-vsprintf1.c: New file.
36608         * tests/unistdio/test-u32-asnprintf1.c: New file.
36609         * tests/unistdio/test-u32-asnprintf1.h: New file.
36610         * tests/unistdio/test-u32-printf1.h: New file.
36611         * tests/unistdio/test-u32-vasnprintf1.c: New file.
36612         * tests/unistdio/test-u32-vasnprintf2.c: New file.
36613         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
36614         * tests/unistdio/test-u32-vasnprintf3.c: New file.
36615         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
36616         * tests/unistdio/test-u32-vasprintf1.c: New file.
36617         * tests/unistdio/test-u32-vsnprintf1.c: New file.
36618         * tests/unistdio/test-u32-vsprintf1.c: New file.
36619         * modules/unistdio/base: New file.
36620         * modules/unistdio/u-printf-args: New file.
36621         * modules/unistdio/ulc-asnprintf: New file.
36622         * modules/unistdio/ulc-asprintf: New file.
36623         * modules/unistdio/ulc-fprintf: New file.
36624         * modules/unistdio/ulc-printf-parse: New file.
36625         * modules/unistdio/ulc-snprintf: New file.
36626         * modules/unistdio/ulc-sprintf: New file.
36627         * modules/unistdio/ulc-vasnprintf: New file.
36628         * modules/unistdio/ulc-vasprintf: New file.
36629         * modules/unistdio/ulc-vfprintf: New file.
36630         * modules/unistdio/ulc-vsnprintf: New file.
36631         * modules/unistdio/ulc-vsprintf: New file.
36632         * modules/unistdio/u8-asnprintf: New file.
36633         * modules/unistdio/u8-asprintf: New file.
36634         * modules/unistdio/u8-printf-parse: New file.
36635         * modules/unistdio/u8-snprintf: New file.
36636         * modules/unistdio/u8-sprintf: New file.
36637         * modules/unistdio/u8-vasnprintf: New file.
36638         * modules/unistdio/u8-vasprintf: New file.
36639         * modules/unistdio/u8-vsnprintf: New file.
36640         * modules/unistdio/u8-vsprintf: New file.
36641         * modules/unistdio/u8-u8-asnprintf: New file.
36642         * modules/unistdio/u8-u8-asprintf: New file.
36643         * modules/unistdio/u8-u8-snprintf: New file.
36644         * modules/unistdio/u8-u8-sprintf: New file.
36645         * modules/unistdio/u8-u8-vasnprintf: New file.
36646         * modules/unistdio/u8-u8-vasprintf: New file.
36647         * modules/unistdio/u8-u8-vsnprintf: New file.
36648         * modules/unistdio/u8-u8-vsprintf: New file.
36649         * modules/unistdio/u16-asnprintf: New file.
36650         * modules/unistdio/u16-asprintf: New file.
36651         * modules/unistdio/u16-printf-parse: New file.
36652         * modules/unistdio/u16-snprintf: New file.
36653         * modules/unistdio/u16-sprintf: New file.
36654         * modules/unistdio/u16-vasnprintf: New file.
36655         * modules/unistdio/u16-vasprintf: New file.
36656         * modules/unistdio/u16-vsnprintf: New file.
36657         * modules/unistdio/u16-vsprintf: New file.
36658         * modules/unistdio/u16-u16-asnprintf: New file.
36659         * modules/unistdio/u16-u16-asprintf: New file.
36660         * modules/unistdio/u16-u16-snprintf: New file.
36661         * modules/unistdio/u16-u16-sprintf: New file.
36662         * modules/unistdio/u16-u16-vasnprintf: New file.
36663         * modules/unistdio/u16-u16-vasprintf: New file.
36664         * modules/unistdio/u16-u16-vsnprintf: New file.
36665         * modules/unistdio/u16-u16-vsprintf: New file.
36666         * modules/unistdio/u32-asnprintf: New file.
36667         * modules/unistdio/u32-asprintf: New file.
36668         * modules/unistdio/u32-printf-parse: New file.
36669         * modules/unistdio/u32-snprintf: New file.
36670         * modules/unistdio/u32-sprintf: New file.
36671         * modules/unistdio/u32-vasnprintf: New file.
36672         * modules/unistdio/u32-vasprintf: New file.
36673         * modules/unistdio/u32-vsnprintf: New file.
36674         * modules/unistdio/u32-vsprintf: New file.
36675         * modules/unistdio/u32-u32-asnprintf: New file.
36676         * modules/unistdio/u32-u32-asprintf: New file.
36677         * modules/unistdio/u32-u32-snprintf: New file.
36678         * modules/unistdio/u32-u32-sprintf: New file.
36679         * modules/unistdio/u32-u32-vasnprintf: New file.
36680         * modules/unistdio/u32-u32-vasprintf: New file.
36681         * modules/unistdio/u32-u32-vsnprintf: New file.
36682         * modules/unistdio/u32-u32-vsprintf: New file.
36683         * modules/unistdio/ulc-asnprintf-tests: New file.
36684         * modules/unistdio/ulc-vasnprintf-tests: New file.
36685         * modules/unistdio/ulc-vasprintf-tests: New file.
36686         * modules/unistdio/ulc-vsnprintf-tests: New file.
36687         * modules/unistdio/ulc-vsprintf-tests: New file.
36688         * modules/unistdio/u8-asnprintf-tests: New file.
36689         * modules/unistdio/u8-vasnprintf-tests: New file.
36690         * modules/unistdio/u8-vasprintf-tests: New file.
36691         * modules/unistdio/u8-vsnprintf-tests: New file.
36692         * modules/unistdio/u8-vsprintf-tests: New file.
36693         * modules/unistdio/u16-asnprintf-tests: New file.
36694         * modules/unistdio/u16-vasnprintf-tests: New file.
36695         * modules/unistdio/u16-vasprintf-tests: New file.
36696         * modules/unistdio/u16-vsnprintf-tests: New file.
36697         * modules/unistdio/u16-vsprintf-tests: New file.
36698         * modules/unistdio/u32-asnprintf-tests: New file.
36699         * modules/unistdio/u32-vasnprintf-tests: New file.
36700         * modules/unistdio/u32-vasprintf-tests: New file.
36701         * modules/unistdio/u32-vsnprintf-tests: New file.
36702         * modules/unistdio/u32-vsprintf-tests: New file.
36703         * MODULES.html.sh (Unicode string functions): Add the new modules.
36704
36705 2007-07-01  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/sprintf.c (sprintf): Limit the available length estimation,
36708         to avoid address wraparound.
36709         * lib/vsprintf.c (vsprintf): Likewise.
36710         * modules/sprintf-posix (Dependencies): Add stdint.
36711         * modules/vsprintf-posix (Dependencies): Likewise.
36712
36713 2007-07-01  Bruno Haible  <bruno@clisp.org>
36714
36715         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
36716         Windows PATH as well. Conservative double-quoting. Comments.
36717
36718 2007-07-01  Bruno Haible  <bruno@clisp.org>
36719             Eric Blake  <ebb9@byu.net>
36720             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36721
36722         * gnulib-tool (self_abspathname): Fix algorithm to cope with
36723         empty components in $PATH, denoting '.'.
36724
36725 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36726
36727         * gnulib-tool: Fix indentation.
36728         (func_create_megatestdir): Likewise.
36729         Report by Bruno Haible.
36730
36731 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36732
36733         Sync from Automake.
36734         * build-aux/gnupload: Fix shell portability issues with for loops.
36735         Report by Karl Berry.
36736
36737 2007-06-29  Simon Josefsson  <simon@josefsson.org>
36738
36739         * build-aux/maint.mk (POURL): Use translationproject.org.
36740
36741 2007-06-27  Simon Josefsson  <simon@josefsson.org>
36742             Bruno Haible  <bruno@clisp.org>
36743
36744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
36745         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
36746         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
36747         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
36748         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
36749
36750 2007-06-27  Bruno Haible  <bruno@clisp.org>
36751
36752         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
36753         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
36754
36755 2007-06-26  Karl Berry  <karl@gnu.org>
36756
36757         * MODULES.html.sh: remove xreadlink-with-size.
36758
36759 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36760
36761         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
36762         method that I hope also handles the double-include problem noted
36763         by Bruno Haible in
36764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
36765
36766 2007-06-23  Bruno Haible  <bruno@clisp.org>
36767
36768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36769         Don't let the 'mostlyclean' target fail if the last subdirectory could
36770         not be removed.
36771         Reported by Karl Berry.
36772
36773 2007-06-23  Bruno Haible  <bruno@clisp.org>
36774
36775         * gnulib-tool (echo): Add a speedier workaround for ksh.
36776         * tests/test-echo.sh: Likewise.
36777
36778 2007-06-23  Bruno Haible  <bruno@clisp.org>
36779
36780         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
36781         * tests/test-echo.sh: Likewise.
36782
36783 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36784
36785         * gnulib-tool (IFS): Initialize early, so we don't set it to
36786         empty later.
36787         (self_abspathname): Rewrite algorithm to set it, reindent.
36788         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
36789         (func_create_megatestdir): Merge some sed scripts.
36790
36791 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
36792
36793         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
36794         exposed by Sun Studio 11 cc on Solaris 8.
36795
36796 2007-06-22  Bruno Haible  <bruno@clisp.org>
36797
36798         * gnulib-tool (echo): Ensure the echo primitive does not interpret
36799         backslashes.
36800         * tests/test-echo.sh: New file.
36801
36802 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36803
36804         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
36805         simplify `sed_replace_build_aux' scripts, they are portable but
36806         echoing them with `echo' is not.
36807         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
36808
36809 2007-06-21  Karl Berry  <karl@gnu.org>
36810
36811         * config/srclist.txt: guess we can't handle the licenses via
36812         srclist at the moment.
36813
36814 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
36815
36816         * MODULES.html.sh: Add include_next.
36817         * modules/include_next: New file.
36818
36819 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
36820
36821         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
36822         INCLUDE_NEXT.
36823         (gl_CHECK_NEXT_HEADERS): New macro.
36824         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
36825         the obsolescent gl_ABSOLUTE_HEADER.
36826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
36827         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
36828         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36829         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36830         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36831         * m4/math_h.m4 (gl_MATH_H): Likewise.
36832         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
36833         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36834         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36835         * m4/stdint.m4 (gl_STDINT_H): Likewise.
36836         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36837         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36838         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36843         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36844         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
36845         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36846         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36847         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36848         * m4/inttypes.m4 (gl_INTTYPES_H): Define
36849         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
36850         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
36851         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
36852         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
36853         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
36854         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
36855         * lib/float_.h: Likewise.
36856         * lib/inttypes_.h: Likewise.
36857         * lib/math_.h: Likewise.
36858         * lib/search_.h: Likewise.
36859         * lib/signal_.h: Likewise.
36860         * lib/stdint_.h: Likewise.
36861         * lib/stdio_.h: Likewise.
36862         * lib/stdlib_.h: Likewise.
36863         * lib/string_.h: Likewise.
36864         * lib/sys_stat_.h: Likewise.
36865         * lib/sys_time_.h: Likewise.
36866         * lib/time_.h: Likewise.
36867         * lib/unistd_.h: Likewise.
36868         * lib/wchar_.h: Likewise.
36869         * lib/wctype_.h: Likewise.
36870         * lib/dirent_.h: Likewise.
36871         * lib/iconv_.h: Likewise.
36872         * lib/locale_.h: Likewise.
36873         * lib/netinet_in_.h: Likewise.
36874         * lib/sys_select_.h: Likewise.
36875         * lib/sys_socket_.h: Likewise.
36876         * lib/sysexits_.h: Likewise.
36877         * modules/fcntl (Depends-on): Depend on include_next, not
36878         absolute_header.
36879         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
36880         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
36881         * modules/fchdir: Likewise.
36882         * modules/float: Likewise.
36883         * modules/iconv_open: Likewise.
36884         * modules/inttypes: Likewise.
36885         * modules/locale: Likewise.
36886         * modules/math: Likewise.
36887         * modules/netinet_in: Likewise.
36888         * modules/search: Likewise.
36889         * modules/signal: Likewise.
36890         * modules/stdint: Likewise.
36891         * modules/stdio: Likewise.
36892         * modules/stdlib: Likewise.
36893         * modules/string: Likewise.
36894         * modules/sys_select: Likewise.
36895         * modules/sys_socket: Likewise.
36896         * modules/sys_stat: Likewise.
36897         * modules/sys_time: Likewise.
36898         * modules/sysexits: Likewise.
36899         * modules/time: Likewise.
36900         * modules/unistd: Likewise.
36901         * modules/wchar: Likewise.
36902         * modules/wctype: Likewise.
36903         * modules/sys_stat: Change maintainer to "all".
36904         * modules/unistd: Likewise.
36905
36906 2007-06-20  Karl Berry  <karl@gnu.org>
36907
36908         * config/srclist.txt: track www changes in license files.
36909
36910 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
36911
36912         * build-aux/bootstrap: Remove stray dot.
36913         Make sure build_aux settings are honored when linking
36914         gnulib_extra_files.
36915
36916 2007-06-19  Eric Blake  <ebb9@byu.net>
36917
36918         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36919         Allow compilation on cygwin.
36920
36921 2007-06-19  Jim Meyering  <jim@meyering.net>
36922
36923         xreadlink-with-size: Remove module.  No longer used.
36924         Ex-callers now use xreadlink or mreadlink-with-size.
36925         * modules/xreadlink-with-size: Remove module.
36926         * lib/xreadlink-with-size.c: Remove file.
36927         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
36928         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
36929         just before the function definition *is* accurate.
36930
36931         Eliminate one way canonicalize_filename_mode could exit.
36932         * lib/canonicalize.c (canonicalize_filename_mode):
36933         Use mreadlink_with_size, not xreadlink_with_size.
36934
36935 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
36936
36937         Detect porting problems to FreeBSD/arm, which has time_t wider than
36938         long int.  Original problem reported for GNU diff by Xin Li in
36939         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
36940         * modules/getdate (Depends-on): Add intprops, verify.
36941         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
36942         is an integer type no wider than long int.
36943
36944 2007-06-18  Jim Meyering  <jim@meyering.net>
36945
36946         New module: mreadlink-with-size.
36947         * MODULES.html.sh: Add mreadlink-with-size.
36948         * modules/mreadlink-with-size: New module
36949         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
36950         not xreadlink-with-size.
36951         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
36952
36953 2007-06-16  Bruno Haible  <bruno@clisp.org>
36954
36955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
36956         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
36957         Reported by Gary V. Vaughan <gary@gnu.org>.
36958
36959 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36960
36961         Revamp lchown so that it lives in unistd.h where it belongs.
36962         * lib/lchown.h: Remove.
36963         * lib/dirchownmod.c: Don't include lib/lchown.h.
36964         * lib/fchownat.c: Likewise.
36965         * lib/openat.c: Likewise.
36966         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
36967         does not follow symlinks.
36968         (EOPNOTSUPP): Define if not defined.
36969         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
36970         is defined to 0.
36971         (lchown): New decl.
36972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
36973         Do not check for lchown decl.
36974         Set REPLACE_LCHOWN.
36975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
36976         REPLACE_LCHOWN.
36977         * modules/chown: Make it clear it follows symlinks.
36978         * modules/lchown: Make it clear it doesn't follow symlinks.
36979         (Files): Remove lib/lchown.h
36980         (Depends-on): Add unistd.
36981         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
36982         (Include): Include <unistd.h>, not "lchown.h".
36983         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
36984         REPLACE_LCHOWN.
36985
36986 2007-06-15  Jim Meyering  <jim@meyering.net>
36987
36988         Change license (GPL to LGPL) of fsusage and dependents.
36989         * modules/fsusage (License): Change to LGPL.
36990         * modules/full-read (License): Likewise.
36991         * modules/full-write (License): Likewise.
36992         * modules/safe-read (License): Likewise.
36993         * modules/safe-write (License): Likewise.
36994
36995 2007-06-14  Ben Pfaff  <blp@gnu.org>
36996
36997         Missing part of allocsa -> malloca transition.
36998         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
36999         gl_MALLOCA.
37000
37001 2007-06-12  Bruno Haible  <bruno@clisp.org>
37002
37003         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37004         to ia64, x86_64, i386.
37005         Reported by Eric Blake.
37006
37007 2007-06-12  Bruno Haible  <bruno@clisp.org>
37008
37009         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37010         cross-compiling to x86_64.
37011
37012 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37013
37014         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37015         glitch reported by Ralf Wildenhues in
37016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37017
37018         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37019         Vin Shelton.
37020
37021 2007-06-11  Bruno Haible  <bruno@clisp.org>
37022
37023         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37024         replacement string.
37025         Reported by Eric Blake.
37026
37027 2007-06-10  Bruno Haible  <bruno@clisp.org>
37028
37029         Prepare vasnprintf code for use with Unicode strings.
37030         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37031         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37032         TYPE_U32_STRING.
37033         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37034         a_u32_string variants.
37035         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37036         * lib/printf-args.c: Don't include config.h and the specification
37037         header if PRINTF_FETCHARGS is already defined.
37038         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37039         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37040         TYPE_U16_STRING, TYPE_U32_STRING.
37041         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37042         u16_directive, u16_directives, u32_directive, u32_directives): New
37043         types.
37044         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37045         New declarations.
37046         * lib/printf-parse.c: Don't include config.h and the specification
37047         header if PRINTF_PARSE is already defined. Eliminate the set of
37048         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37049         them now. Include c-ctype.h.
37050         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37051         directive and CHAR_T_ONLY_ASCII.
37052         * lib/vasnprintf.c: Don't include config.h and the specification header
37053         if VASNPRINTF is already defined.
37054         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37055         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37056         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37057         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37058         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37059         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37060         code accordingly.
37061         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37062         pad_ourselves also in this case, with the 'c' and 's' directives, and
37063         with a different notion of "width".
37064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37065
37066 2007-06-10  Bruno Haible  <bruno@clisp.org>
37067
37068         * modules/unistr/u32-mbsnlen: New file.
37069         * lib/unistr/u32-mbsnlen.c: New file.
37070
37071         * modules/unistr/u16-mbsnlen: New file.
37072         * lib/unistr/u16-mbsnlen.c: New file.
37073
37074         * modules/unistr/u8-mbsnlen: New file.
37075         * lib/unistr/u8-mbsnlen.c: New file.
37076
37077         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37078         declarations.
37079
37080 2007-06-10  Bruno Haible  <bruno@clisp.org>
37081
37082         * lib/string_.h (mbsnlen): New declaration.
37083         * lib/mbsnlen.c: New file.
37084         * m4/mbsnlen.m4: New file.
37085         * modules/mbsnlen: New file.
37086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37087         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37088         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37089
37090 2007-06-10  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37093
37094 2007-06-10  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37097         * lib/mbuiter.h: Likewise.
37098
37099 2007-06-10  Bruno Haible  <bruno@clisp.org>
37100
37101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37102         declaration.
37103
37104 2007-06-10  Karl Berry  <karl@gnu.org>
37105
37106         * config/srclist.txt: remove gettext entries, Bruno prefers
37107         to update individually.
37108
37109 2007-06-10  Bruno Haible  <bruno@clisp.org>
37110
37111         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37112         'maxlen'. Ensure only length + width bytes are allocated, not
37113         length + 1 + width.
37114
37115 2007-06-09  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37118         (CHAR_T): Remove macro.
37119         (VASNPRINTF): Update.
37120
37121 2007-06-09  Bruno Haible  <bruno@clisp.org>
37122
37123         * MODULES.html.sh (Unicode string functions): Add the new modules.
37124
37125         * modules/uniconv/u32-conv-to-enc: New file.
37126         * lib/uniconv/u32-conv-to-enc.c: New file.
37127         * modules/uniconv/u32-conv-to-enc-tests: New file.
37128         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37129
37130         * modules/uniconv/u16-conv-to-enc: New file.
37131         * lib/uniconv/u16-conv-to-enc.c: New file.
37132         * lib/uniconv/u-conv-to-enc.h: New file.
37133         * modules/uniconv/u16-conv-to-enc-tests: New file.
37134         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37135
37136         * modules/uniconv/u8-conv-to-enc: New file.
37137         * lib/uniconv/u8-conv-to-enc.c: New file.
37138         * modules/uniconv/u8-conv-to-enc-tests: New file.
37139         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37140
37141         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37142         u32_conv_to_encoding): New declarations.
37143
37144 2007-06-09  Bruno Haible  <bruno@clisp.org>
37145
37146         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37147
37148 2007-06-09  Bruno Haible  <bruno@clisp.org>
37149
37150         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37151         * modules/malloca: Renamed from modules/allocsa, updated.
37152         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37153         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37154         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37155         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37156         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37157         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37158         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37159         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37160         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37161         * modules/c-strcasestr (Depends-on): Update.
37162         * lib/c-strcasestr.c: Update.
37163         * modules/c-strstr (Depends-on): Update.
37164         * lib/c-strstr.c: Update.
37165         * modules/canonicalize-lgpl (Depends-on): Update.
37166         * lib/canonicalize-lgpl.c: Update.
37167         * modules/clean-temp (Depends-on): Update.
37168         * lib/clean-temp.c: Update.
37169         * modules/csharpcomp (Depends-on): Update.
37170         * lib/csharpcomp.c: Update.
37171         * modules/csharpexec (Depends-on): Update.
37172         * lib/csharpexec.c: Update.
37173         * modules/javacomp (Depends-on): Update.
37174         * lib/javacomp.c: Update.
37175         * modules/javaexec (Depends-on): Update.
37176         * lib/javaexec.c: Update.
37177         * modules/mbscasestr (Depends-on): Update.
37178         * lib/mbscasestr.c: Update.
37179         * modules/mbsstr (Depends-on): Update.
37180         * lib/mbsstr.c: Update.
37181         * modules/setenv (Depends-on): Update.
37182         * lib/setenv.c: Update.
37183         * modules/strcasestr (Depends-on): Update.
37184         * lib/strcasestr.c: Update.
37185         * modules/striconveha (Depends-on): Update.
37186         * lib/striconveha.c: Update.
37187         * modules/relocatable-prog-wrapper (Files): Update.
37188         * lib/relocwrapper.c: Update.
37189         * build-aux/install-reloc: Update.
37190         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37191
37192 2007-06-08  Bruno Haible  <bruno@clisp.org>
37193
37194         Port to uClibc.
37195         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37196         * lib/fpurge.c (fpurge): Likewise.
37197         * lib/freading.c (freading): Likewise.
37198         * lib/fseeko.c (rpl_fseeko): Likewise.
37199         * lib/fseterr.c (fseterr): Likewise.
37200         * lib/fwriting.c (fwriting): Likewise.
37201         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37202
37203 2007-06-08  Bruno Haible  <bruno@clisp.org>
37204
37205         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37206         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37207         * modules/gettext (Files): Add m4/intlmacosx.m4.
37208
37209 2007-06-07  Bruno Haible  <bruno@clisp.org>
37210
37211         * modules/localename-tests: New file.
37212         * tests/test-localename.c: New file.
37213
37214         New module 'localename'.
37215         * lib/localename.h: New file.
37216         * lib/localename.c: New file, from GNU gettext.
37217         * m4/localename.m4: New file.
37218         * modules/localename: New file.
37219
37220 2007-06-07  Bruno Haible  <bruno@clisp.org>
37221
37222         Work around the lack of <wchar.h> on some builds of uClibc.
37223         * doc/headers/wchar.texi: Update.
37224         * lib/wchar_.h: Include <wchar.h> only if it exists.
37225         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37226         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37227         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37228         doesn't exist.
37229         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37230         * modules/mbfile (Depends-on): Add wchar.
37231         * modules/mbiter (Depends-on): Likewise.
37232         * modules/mbuiter (Depends-on): Likewise.
37233         Reported by Simon Josefsson.
37234
37235 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37236
37237         Work around problem reported by Steven M. Schweda in
37238         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37239         Tru64 5.1B with the Compaq compiler environment installed declares
37240         an 'isblank' function but does not define it in the C library.
37241         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37242         * lib/regex_internal.h (isblank): Likewise.
37243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37244         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37245
37246 2007-06-05  Bruno Haible  <bruno@clisp.org>
37247
37248         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37249         ia64.
37250         * modules/printf-safe: New file.
37251         * modules/fprintf-posix (Depends-on): Add printf-safe.
37252         * modules/printf-posix (Depends-on): Likewise.
37253         * modules/snprintf-posix (Depends-on): Likewise.
37254         * modules/sprintf-posix (Depends-on): Likewise.
37255         * modules/vasnprintf-posix (Depends-on): Likewise.
37256         * modules/vasprintf-posix (Depends-on): Likewise.
37257         * modules/vfprintf-posix (Depends-on): Likewise.
37258         * modules/vprintf-posix (Depends-on): Likewise.
37259         * modules/vsnprintf-posix (Depends-on): Likewise.
37260         * modules/vsprintf-posix (Depends-on): Likewise.
37261         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37262         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37263         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37264         "no" on i386, x86_64, ia64.
37265         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37266         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37267         on i386, x86_64, ia64.
37268         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37269         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37270         on i386, x86_64, ia64.
37271         * tests/test-vasnprintf-posix.c: Include float.h.
37272         (LDBL80_WORDS): New macro.
37273         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37274         on i386, x86_64, ia64.
37275         * tests/test-vasprintf-posix.c: Include float.h.
37276         (LDBL80_WORDS): New macro.
37277         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37278         on i386, x86_64, ia64.
37279         * tests/test-snprintf-posix.c: Include float.h.
37280         * tests/test-sprintf-posix.c: Likewise.
37281         * tests/test-vsnprintf-posix.c: Likewise.
37282         * tests/test-vsprintf-posix.c: Likewise.
37283
37284 2007-06-05  Bruno Haible  <bruno@clisp.org>
37285
37286         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37287         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37288         non-IEEE numbers on i386, x86_64, ia64.
37289         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37290         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37291         * tests/test-isnanl.h: Include float.h.
37292         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37293
37294 2007-06-05  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37297         also the %a / %A. Handle the %a / %A code before this extra handling.
37298
37299 2007-06-05  Bruno Haible  <bruno@clisp.org>
37300
37301         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37302         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37303
37304 2007-06-05  Bruno Haible  <bruno@clisp.org>
37305
37306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37307         typo in variable name.
37308
37309 2007-06-05  Eric Blake  <ebb9@byu.net>
37310
37311         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37312         Reported by Simon Josefsson.
37313
37314 2007-06-04  Bruno Haible  <bruno@clisp.org>
37315
37316         Avoid test failures on some PowerPC platforms.
37317         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37318         Define differently for PowerPC.
37319         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37320         Reported by Gary V. Vaughan <gary@gnu.org>.
37321
37322 2007-06-02  Bruno Haible  <bruno@clisp.org>
37323
37324         Fix test-stdint failure on FreeBSD/ia64.
37325         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37326         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37327         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37328         * doc/headers/stdint.texi: Update.
37329
37330 2007-06-01  Bruno Haible  <bruno@clisp.org>
37331
37332         * tests/test-binary-io.c (main): Pass a third argument to open().
37333         Reported by Gary V. Vaughan <gary@gnu.org>.
37334
37335 2007-06-01  Bruno Haible  <bruno@clisp.org>
37336
37337         * doc/functions/frexpl.texi: Update for mingw.
37338
37339 2007-06-01  Bruno Haible  <bruno@clisp.org>
37340
37341         * tests/test-lseek.c (main): Disable test of errno for invalid third
37342         argument.
37343         * doc/functions/lseek.texi: Update.
37344         Reported by Gary V. Vaughan <gary@gnu.org>.
37345
37346 2007-05-28  Bruno Haible  <bruno@clisp.org>
37347
37348         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37349
37350 2007-05-31  Eric Blake  <ebb9@byu.net>
37351
37352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37353         cross compiling.
37354
37355 2007-05-30  Eric Blake  <ebb9@byu.net>
37356         and Bruno Haible  <bruno@clisp.org>
37357
37358         Work around mingw test failures exposed by m4-1.4.9b.
37359         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37360         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37361         moment.
37362
37363 2007-05-30  Bruno Haible  <bruno@clisp.org>
37364
37365         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37366         assuming that they are closed. Needed on HP-UX 11.
37367
37368 2007-05-29  Bruno Haible  <bruno@clisp.org>
37369
37370         Fix a problem with #include_next.
37371         * lib/dirent_.h: Split the double-inclusion guard.
37372         * lib/fcntl_.h: Likewise.
37373         * lib/float_.h: Likewise.
37374         * lib/iconv_.h: Likewise.
37375         * lib/inttypes_.h: Likewise.
37376         * lib/locale_.h: Likewise.
37377         * lib/math_.h: Likewise.
37378         * lib/netinet_in_.h: Likewise.
37379         * lib/search_.h: Likewise.
37380         * lib/signal_.h: Likewise.
37381         * lib/stdint_.h: Likewise.
37382         * lib/stdio_.h: Likewise.
37383         * lib/stdlib_.h: Likewise.
37384         * lib/string_.h: Likewise.
37385         * lib/sys_select_.h: Likewise.
37386         * lib/sys_socket_.h: Likewise.
37387         * lib/sys_stat_.h: Likewise.
37388         * lib/sys_time_.h: Likewise.
37389         * lib/sysexits_.h: Likewise.
37390         * lib/time_.h: Likewise.
37391         * lib/unistd_.h: Likewise.
37392         * lib/wchar_.h: Likewise.
37393         * lib/wctype_.h: Likewise.
37394
37395 2007-05-29  Bruno Haible  <bruno@clisp.org>
37396
37397         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37398         for the moment.
37399
37400 2007-05-29  Bruno Haible  <bruno@clisp.org>
37401
37402         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37403         invocation.
37404         Reported by Eric Blake.
37405
37406 2007-05-29  Bruno Haible  <bruno@clisp.org>
37407
37408         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37409         compiling case.
37410
37411 2007-05-29  Eric Blake  <ebb9@byu.net>
37412             Bruno Haible  <bruno@clisp.org>
37413
37414         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37415         cross compiles.
37416
37417 2007-05-28  Eric Blake  <ebb9@byu.net>
37418
37419         * modules/closein-tests (test_closein_LDADD): Support test on
37420         cygwin with libtool.
37421
37422 2007-05-28  Bruno Haible  <bruno@clisp.org>
37423
37424         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37425         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37426         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37427         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37428         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37429         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37430         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37431         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37432         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37433
37434 2007-05-28  Eric Blake  <ebb9@byu.net>
37435
37436         Unconditionally include <config.h> in unit tests.
37437         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37438         * tests/test-allocsa.c, tests/test-arcfour.c,
37439         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37440         tests/test-array_list.c, tests/test-array_oset.c,
37441         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37442         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37443         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37444         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37445         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37446         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37447         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37448         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37449         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37450         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37451         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37452         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37453         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37454         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37455         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37456         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37457         test-md5.c, test-memmem.c, test-printf-posix.c,
37458         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37459         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37460         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37461         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37462         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37463         test-vasnprintf-posix2.c, test-vasnprintf.c,
37464         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37465         test-vfprintf-posix.c, test-vprintf-posix.c,
37466         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37467         test-xvasprintf.c: Likewise.
37468
37469 2007-05-28  Bruno Haible  <bruno@clisp.org>
37470
37471         * gnulib-tool (func_import): Remember the --with-tests command-line
37472         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37473         Reported by Eric Blake.
37474
37475 2007-05-28  Bruno Haible  <bruno@clisp.org>
37476
37477         * modules/ftell-tests: New file.
37478         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37479         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37480
37481         * lib/ftell.c: New file.
37482         * modules/ftell: New file.
37483         * m4/ftell.m4: New file.
37484         * doc/functions/ftell.texi: Update.
37485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37486         REPLACE_FTELL.
37487         * lib/stdio_.h (rpl_ftell): New declaration.
37488         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37489         REPLACE_FTELL.
37490
37491 2007-05-28  Eric Blake  <ebb9@byu.net>
37492
37493         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37494
37495 2007-05-28  Bruno Haible  <bruno@clisp.org>
37496
37497         * modules/fseek-tests: New file.
37498         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37499         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37500
37501         * lib/fseek.c: New file.
37502         * modules/fseek: New file.
37503         * m4/fseek.m4: New file.
37504         * doc/functions/fseek.texi: Update.
37505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37506         REPLACE_FSEEK.
37507         * lib/stdio_.h (rpl_fseek): New declaration.
37508         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37509         REPLACE_FSEEK.
37510
37511 2007-05-28  Bruno Haible  <bruno@clisp.org>
37512
37513         * lib/stdio_.h (fflush): More comments.
37514
37515 2007-05-28  Bruno Haible  <bruno@clisp.org>
37516
37517         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37518         runtime test.
37519
37520 2007-05-28  Eric Blake  <ebb9@byu.net>
37521
37522         Improve lseek module.
37523         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37524         * lib/unistd_.h (lseek): Scale back link warning message.
37525         * tests/test-lseek.c: Beef up test.
37526         * tests/test-lseek.sh: Exercise more facets of lseek.
37527         Reported by Bruno Haible.
37528
37529 2007-05-28  Bruno Haible  <bruno@clisp.org>
37530
37531         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
37532         to define.
37533
37534 2007-05-27  Bruno Haible  <bruno@clisp.org>
37535
37536         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
37537
37538 2007-05-27  Bruno Haible  <bruno@clisp.org>
37539
37540         * modules/openmp: New file.
37541         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
37542         Noah Misch.
37543
37544 2007-05-26  Bruno Haible  <bruno@clisp.org>
37545
37546         * modules/chdir-long (Depends-on): Add fchdir.
37547         * modules/chdir-safer (Depends-on): Likewise.
37548         * modules/fts (Depends-on): Likewise.
37549         * modules/fts-lgpl (Depends-on): Likewise.
37550         * modules/openat (Depends-on): Likewise.
37551         * modules/savewd (Depends-on): Likewise.
37552
37553 2007-05-24  Eric Blake  <ebb9@byu.net>
37554
37555         Fix lseek on mingw.
37556         * modules/lseek: New module.
37557         * m4/lseek.m4: New file.
37558         * lib/lseek.c: New file.
37559         * modules/lseek-tests: New file.
37560         * tests/test-lseek.c: New file.
37561         * tests/test-lseek.sh: New file.
37562         * MODULES.html.sh: Document lseek module.
37563         * modules/fflush (Depends-on): Add lseek, fseeko.
37564         * modules/fseeko (Depends-on): Likewise.
37565         * modules/ftello (Depends-on): Likewise.
37566         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
37567         broken.
37568         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
37569         broken.
37570         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
37571         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
37572         * lib/ftello.c (rpl_ftello): Likewise.
37573         * tests/test-fseeko.c (main): Test this.
37574         * tests/test-fseeko.sh: Likewise.
37575         * tests/test-ftello.c (main): Likewise.
37576         * tests/test-ftello.sh: Likewise.
37577         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
37578         implies replacing fseek.
37579         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
37580         HAVE_FTELLO.
37581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
37582         * modules/unistd (Makefile.am): Likewise.
37583         * lib/unistd_.h (lseek): Declare a replacement.
37584         * doc/functions/lseek.texi (lseek): Document this fix.
37585         * doc/functions/fseek.texi (fseek): Likewise.
37586         * doc/functions/ftell.texi (ftell): Likewise.
37587
37588 2007-05-24  Bruno Haible  <bruno@clisp.org>
37589
37590         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
37591         in the printed representation of a NaN.
37592         * tests/test-vasprintf-posix.c (test_function): Likewise.
37593         * tests/test-snprintf-posix.h (test_function): Likewise.
37594         * tests/test-sprintf-posix.h (test_function): Likewise.
37595         Reported by Eric Blake.
37596
37597 2007-05-23  Eric Blake  <ebb9@byu.net>
37598
37599         Fix fseeko/ftello on cygwin 1.5.24.
37600         * doc/functions/fseeko.texi (fseeko): Document the fix.
37601         * doc/functions/ftello.texi (ftello): Document the fix.
37602         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
37603         * doc/functions/stdout.text (stdout): New file.
37604         * doc/functions/stderr.text (stderr): New file.
37605         * doc/gnulib.texi (Function Substitutes): Use new files.
37606         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
37607         prior to 1.7.0.
37608         * tests/test-ftello.c (main): Likewise for ftello.
37609         * tests/test-fseeko.sh: New file.
37610         * tests/test-ftello.sh: New file.
37611         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
37612         with seekable stdin.
37613         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
37614         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
37615         (gl_REPLACE_FSEEKO): New macro.
37616         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
37617         * modules/fseeko (Files): Distribute fseeko.c.
37618         * modules/ftello (Files): Distribute ftello.c.
37619         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
37620         mode.
37621         * lib/ftello.c (rpl_ftello): New file.
37622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
37623         fseeko, ftello.
37624         (gl_STDIN_LARGE_OFFSET): New macro.
37625         * modules/stdio (Makefile.am): Perform the replacement.
37626         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
37627
37628 2007-05-23  Bruno Haible  <bruno@clisp.org>
37629
37630         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
37631         GNULIB_POSIXCHECK is defined.
37632
37633 2007-05-21  Bruno Haible  <bruno@clisp.org>
37634
37635         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
37636         Check also the output for NaN arguments. When cross-compiling, guess
37637         no on IRIX.
37638         * lib/vasnprintf.c: Update comments.
37639         * tests/test-vasnprintf-posix.c (strisnan): New function.
37640         (test_function): Use it.
37641         * tests/test-vasprintf-posix.c (strisnan): New function.
37642         (test_function): Use it.
37643         * tests/test-snprintf-posix.h (strisnan): New function.
37644         (test_function): Use it.
37645         * tests/test-sprintf-posix.h (strisnan): New function.
37646         (test_function): Use it.
37647         Reported by Eric Blake.
37648
37649 2007-05-20  Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
37652         numbers that fails on BeOS.
37653         * doc/functions/frexpl.texi: Update.
37654
37655 2007-05-20  Jim Meyering  <jim@meyering.net>
37656
37657         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
37658         forced upon us by glibc-2.6.
37659
37660 2007-05-20  Bruno Haible  <bruno@clisp.org>
37661
37662         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
37663         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
37664         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
37665         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
37666         NEED_PRINTF_INFINITE.
37667         (is_infinitel): New function.
37668         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
37669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
37670         gl_PREREQ_VASNPRINTF_INFINITE.
37671         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
37672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37673         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
37674         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
37675         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
37676         gl_PREREQ_VASNPRINTF_INFINITE.
37677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37684         * doc/functions/fprintf.texi: Update.
37685         * doc/functions/printf.texi: Update.
37686         * doc/functions/snprintf.texi: Update.
37687         * doc/functions/sprintf.texi: Update.
37688         * doc/functions/vfprintf.texi: Update.
37689         * doc/functions/vprintf.texi: Update.
37690         * doc/functions/vsnprintf.texi: Update.
37691         * doc/functions/vsprintf.texi: Update.
37692
37693 2007-05-20  Bruno Haible  <bruno@clisp.org>
37694
37695         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
37696         was not found in libc.
37697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
37698
37699 2007-05-20  Bruno Haible  <bruno@clisp.org>
37700
37701         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37702         printed as "-nan" instead of "nan".
37703         * tests/test-vasprintf-posix.c (test_function): Likewise.
37704         * tests/test-snprintf-posix.h (test_function): Likewise.
37705         * tests/test-sprintf-posix.h (test_function): Likewise.
37706         Needed for HP-UX 11.
37707
37708 2007-05-20  Jim Meyering  <jim@meyering.net>
37709
37710         Fix buggy test for the fchownat-deref bug.
37711         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
37712         symlink required for the run-test.  Without it, this test would
37713         always declare that fchownat doesn't work, and client code would
37714         unnecessarily use the replacement function with fixed libc.
37715         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
37716         Reported by Greg Schafer.
37717
37718 2007-05-19  Bruno Haible  <bruno@clisp.org>
37719
37720         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
37721         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
37722         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
37723         Needed for IRIX 6.5 and Solaris 2.5.1.
37724
37725 2007-05-19  Bruno Haible  <bruno@clisp.org>
37726
37727         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
37728         (test_function): Skip tests involving -0.0 on platforms where
37729         -0.0 = 0.0.
37730         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
37731         (test_function): Skip tests involving -0.0 on platforms where
37732         -0.0 = 0.0.
37733         * tests/test-snprintf-posix.h (have_minus_zero): New function.
37734         (test_function): Skip tests involving -0.0 on platforms where
37735         -0.0 = 0.0.
37736         * tests/test-sprintf-posix.h (have_minus_zero): New function.
37737         (test_function): Skip tests involving -0.0 on platforms where
37738         -0.0 = 0.0.
37739         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
37740         tests.
37741         * tests/test-printf-posix.h (test_function): Likewise.
37742         * tests/test-printf-posix.output: Remove all -0.0 related results.
37743         Needed for IRIX 6.5.
37744
37745 2007-05-19  Bruno Haible  <bruno@clisp.org>
37746
37747         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
37748         printed as "nan0x7fffffff" instead of "nan".
37749         * tests/test-vasprintf-posix.c (test_function): Likewise.
37750         * tests/test-snprintf-posix.h (test_function): Likewise.
37751         * tests/test-sprintf-posix.h (test_function): Likewise.
37752         * tests/test-fprintf-posix.h (NaN): Remove macro.
37753         (test_function): Remove all NaN related tests.
37754         * tests/test-printf-posix.h (NaN): Remove macro.
37755         (test_function): Remove all NaN related tests.
37756         * tests/test-printf-posix.output: Remove all NaN related results.
37757         Needed for IRIX 6.5.
37758
37759 2007-05-19  Bruno Haible  <bruno@clisp.org>
37760
37761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
37762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
37763
37764 2007-05-19  Bruno Haible  <bruno@clisp.org>
37765
37766         * lib/float_.h: New file.
37767         * m4/float_h.m4: New file.
37768         * modules/float: New file.
37769         * modules/isnanl (Dependencies): Add float.
37770         * modules/isnanl-nolibm (Dependencies): Likewise.
37771         * modules/mathl (Dependencies): Likewise.
37772         * modules/printf-frexpl (Dependencies): Likewise.
37773         * modules/signbit (Dependencies): Likewise.
37774         * modules/vasnprintf (Dependencies): Likewise.
37775         * doc/headers/float.texi: Update.
37776
37777 2007-05-19  Jim Meyering  <jim@meyering.net>
37778
37779         * lib/utimens.c (gl_futimens): Rename from futimens,
37780         now that glibc-2.6 declares futimens.
37781         * lib/utimens.h: Likewise.
37782
37783 2007-05-19  Bruno Haible  <bruno@clisp.org>
37784
37785         Avoid test failures on mingw.
37786         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
37787         * tests/test-printf-posix.sh: Likewise.
37788         * tests/test-vfprintf-posix.sh: Likewise.
37789         * tests/test-vprintf-posix.sh: Likewise.
37790
37791 2007-05-19  Bruno Haible  <bruno@clisp.org>
37792
37793         Fix *printf result for NaN, Inf, -0.0 on mingw.
37794         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
37795         * lib/vasnprintf.c: Include math.h and isnan.h.
37796         (is_infinite_or_zero): New function.
37797         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
37798         values in the %f, %F, %e, %E, %g, %G directives.
37799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
37800         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37801         gl_PRINTF_INFINITE and test its result. Invoke
37802         gl_PREREQ_VASNPRINTF_INFINITE.
37803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37804         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37805         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37806         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37810         * doc/functions/fprintf.texi: Update.
37811         * doc/functions/printf.texi: Update.
37812         * doc/functions/snprintf.texi: Update.
37813         * doc/functions/sprintf.texi: Update.
37814         * doc/functions/vfprintf.texi: Update.
37815         * doc/functions/vprintf.texi: Update.
37816         * doc/functions/vsnprintf.texi: Update.
37817         * doc/functions/vsprintf.texi: Update.
37818
37819 2007-05-19  Bruno Haible  <bruno@clisp.org>
37820
37821         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
37822         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
37823         Instead of multiplying with 10^k, set extra_zeroes to k.
37824         (scale10_round_long_double): Remove function.
37825
37826 2007-05-18  Bruno Haible  <bruno@clisp.org>
37827
37828         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
37829         introduced on 2007-05-06.
37830
37831 2007-05-18  Bruno Haible  <bruno@clisp.org>
37832
37833         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
37834         %g directives.
37835         * tests/test-vasprintf-posix.c (test_function): Likewise.
37836         * tests/test-snprintf-posix.h (test_function): Likewise.
37837         * tests/test-sprintf-posix.h (test_function): Likewise.
37838
37839 2007-05-18  Bruno Haible  <bruno@clisp.org>
37840
37841         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
37842         (strmatch): New function.
37843         (test_function): Test the %f directive on numbers of various exponents.
37844         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
37845         (strmatch): New function.
37846         (test_function): Test the %f directive on numbers of various exponents.
37847         * tests/test-snprintf-posix.h (strmatch): New function.
37848         (test_function): Test the %f directive on numbers of various exponents.
37849         * tests/test-sprintf-posix.h (strmatch): New function.
37850         (test_function): Test the %f directive on numbers of various exponents.
37851         * tests/test-snprintf-posix.c (SIZEOF): New macro.
37852         * tests/test-sprintf-posix.c (SIZEOF): New macro.
37853         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
37854         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
37855
37856 2007-05-18  Bruno Haible  <bruno@clisp.org>
37857
37858         Add support for 'long double' number output.
37859         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
37860         * lib/vasnprintf.c: Include math.h and float+.h.
37861         (mp_limb_t): New type.
37862         (GMP_LIMB_BITS): New macro.
37863         (mp_twolimb_t): New type.
37864         (GMP_TWOLIMB_BITS): New macro.
37865         (mpn_t): New type.
37866         (multiply, divide, convert_to_decimal, decode_long_double,
37867         scale10_round_long_double, scale10_round_decimal_long_double,
37868         floorlog10l): New functions.
37869         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
37870         for the %f, %F, %e, %E, %g, %G directives.
37871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
37872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37873         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
37874         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
37875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37882         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
37883         * modules/snprintf-posix (Depends-on): Likewise.
37884         * modules/sprintf-posix (Depends-on): Likewise.
37885         * modules/vasnprintf-posix (Depends-on): Likewise.
37886         * modules/vasprintf-posix (Depends-on): Likewise.
37887         * modules/vfprintf-posix (Depends-on): Likewise.
37888         * modules/vsnprintf-posix (Depends-on): Likewise.
37889         * modules/vsprintf-posix (Depends-on): Likewise.
37890         * modules/vasnprintf (Files): Add lib/float+.h.
37891         * doc/functions/fprintf.texi: Update.
37892         * doc/functions/printf.texi: Update.
37893         * doc/functions/snprintf.texi: Update.
37894         * doc/functions/sprintf.texi: Update.
37895         * doc/functions/vfprintf.texi: Update.
37896         * doc/functions/vprintf.texi: Update.
37897         * doc/functions/vsnprintf.texi: Update.
37898         * doc/functions/vsprintf.texi: Update.
37899
37900 2007-05-18  Bruno Haible  <bruno@clisp.org>
37901
37902         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
37903
37904 2007-05-18  Bruno Haible  <bruno@clisp.org>
37905
37906         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
37907         for printing 64-bit integers. Needed for mingw.
37908
37909 2007-05-18  Bruno Haible  <bruno@clisp.org>
37910
37911         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
37912         gl_FUNC_FREXPL_WORKS.
37913         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
37914
37915 2007-05-18  Bruno Haible  <bruno@clisp.org>
37916
37917         * modules/frexpl-nolibm-tests: New file.
37918
37919         * modules/frexpl-nolibm: New file.
37920         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
37921
37922 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37923
37924         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
37925         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37926         GCC 4.2, which otherwise issues a lot of warnings.
37927         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
37928         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
37929         Likewise.
37930         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
37931         * modules/iconv_open (iconv.h): Likewise.
37932         * modules/locale (locale.h): Likewise.
37933         * modules/netinet_in (netinet/in.h): Likewise.
37934         * modules/sys_select (sys_select.h): Likewise.
37935         * modules/sys_socket (sys/socket.h): Likewise.
37936         * modules/sys_stat (sys/stat.h): Likewise.
37937         * modules/sysexits (sysexits.h): Likewise.
37938         * modules/unistd (unistd.h): Likewise.
37939
37940 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37941
37942         * modules/closein-tests (Makefile.am): Distribute
37943         `test-closein.sh'.
37944
37945 2007-05-17  Bruno Haible  <bruno@clisp.org>
37946
37947         * tests/test-printf-posix.output: Renamed from
37948         tests/test-fprintf-posix.out.
37949         * modules/fprintf-posix-tests: Update.
37950         * modules/printf-posix-tests: Update.
37951         * modules/vfprintf-posix-tests: Update.
37952         * modules/vprintf-posix-tests: Update.
37953         * tests/test-fprintf-posix.sh: Update.
37954         * tests/test-printf-posix.sh: Update.
37955         * tests/test-vfprintf-posix.sh: Update.
37956         * tests/test-vprintf-posix.sh: Update.
37957         Reported by Ralf Wildenhues.
37958
37959 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37960
37961         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
37962         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
37963         GCC 4.2, which otherwise issues a lot of warnings.
37964         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
37965         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
37966         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
37967         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
37968         it should no longer be needed.
37969         * lib/string_.h: Likewise.
37970         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
37971         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
37972         * modules/inttypes (inttypes.h): Likewise.
37973         * modules/math (math.h): Likewise.
37974         * modules/search (search.h): Likewise.
37975         * modules/signal (signal.h): Likewise.
37976         * modules/stdint (stdint.h): Likewise.
37977         * modules/stdio (stdio.h): Likewise.
37978         * modules/stdlib (stdlib.h): Likewise.
37979         * modules/string (string.h): Likewise.
37980         * modules/sys_time (sys/time.h): Likewise.
37981         * modules/time (time.h): Likewise.
37982         * modules/wchar (wchar.h): Likewise.
37983         * modules/wctype (wtype.h): Likewise.
37984
37985 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
37986
37987         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
37988
37989 2007-05-13  Bruno Haible  <bruno@clisp.org>
37990
37991         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
37992         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37993         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
37994         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37995         (gl_PREREQ_STRTOK_R): Don't require it here.
37996
37997 2007-05-13  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38000         when used in C++ mode.
38001
38002 2007-05-12  Bruno Haible  <bruno@clisp.org>
38003
38004         * lib/linebuffer.h: Tweak doc.
38005         * lib/linebuffer.c: Likewise.
38006
38007 2007-05-12  James Youngman  <jay@gnu.org>
38008
38009         * lib/linebuffer.c (readlinebuffer_delim): New function,
38010         like readlinebuffer, but use a caller-specified delimiter.
38011         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38012         as the delimiter.
38013         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38014
38015 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38016
38017         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38018         * modules/openat (Files): Remove openat-die.c.
38019         (Depends-on): Add openat-die.
38020         * modules/openat-die: New module.
38021
38022 2007-05-06  Bruno Haible  <bruno@clisp.org>
38023
38024         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38025         Update with info about Cygwin.
38026         * doc/functions/fprintf.texi: Update.
38027         * doc/functions/printf.texi: Update.
38028         * doc/functions/snprintf.texi: Update.
38029         * doc/functions/sprintf.texi: Update.
38030         * doc/functions/vfprintf.texi: Update.
38031         * doc/functions/vprintf.texi: Update.
38032         * doc/functions/vsnprintf.texi: Update.
38033         * doc/functions/vsprintf.texi: Update.
38034         Reported by Eric Blake.
38035
38036 2007-05-06  Bruno Haible  <bruno@clisp.org>
38037
38038         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38039         padding ourselves for the floating-point directives.
38040         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38043         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38044         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38046         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38050         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38051         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38052         * tests/test-snprintf-posix.h (test_function): Also check the width
38053         and some flags in the %f directive.
38054         * tests/test-sprintf-posix.h (test_function): Likewise.
38055         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38056         * tests/test-vasprintf-posix.c (test_function): Likewise.
38057         * doc/functions/fprintf.texi: Update.
38058         * doc/functions/printf.texi: Update.
38059         * doc/functions/snprintf.texi: Update.
38060         * doc/functions/sprintf.texi: Update.
38061         * doc/functions/vfprintf.texi: Update.
38062         * doc/functions/vprintf.texi: Update.
38063         * doc/functions/vsnprintf.texi: Update.
38064         * doc/functions/vsprintf.texi: Update.
38065
38066 2007-05-06  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38069         pass the ' flag character to sprintf or snprintf.
38070         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38073         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38074         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38082         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38083         flag.
38084         * tests/test-sprintf-posix.h (test_function): Likewise.
38085         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38086         * tests/test-vasprintf-posix.c (test_function): Likewise.
38087         * doc/functions/fprintf.texi: Update.
38088         * doc/functions/printf.texi: Update.
38089         * doc/functions/snprintf.texi: Update.
38090         * doc/functions/sprintf.texi: Update.
38091         * doc/functions/vfprintf.texi: Update.
38092         * doc/functions/vprintf.texi: Update.
38093         * doc/functions/vsnprintf.texi: Update.
38094         * doc/functions/vsprintf.texi: Update.
38095
38096 2007-05-01  Bruno Haible  <bruno@clisp.org>
38097
38098         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38099
38100 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38101
38102         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38103         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38104
38105 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38106
38107         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38108         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38110
38111 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38112
38113         * lib/argp-help.c (struct hol_entry): New member `ord'.
38114         (HOL_ENTRY_PTRCMP): Use ord for comparison
38115         (hol_sort): Initialize ord.
38116
38117 2007-05-01  Bruno Haible  <bruno@clisp.org>
38118
38119         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38120         Reported by Eric Blake.
38121         * doc/gnulib.texi (Function Substitutes): Update.
38122
38123 2007-05-01  Bruno Haible  <bruno@clisp.org>
38124
38125         * doc/functions.texi: Remove file, now redundant through
38126         doc/functions/*.texi.
38127
38128 2007-05-01  Bruno Haible  <bruno@clisp.org>
38129
38130         * modules/argp (Depends-on): Add sleep.
38131
38132 2007-05-01  Bruno Haible  <bruno@clisp.org>
38133
38134         * modules/sleep-tests: New file.
38135         * tests/test-sleep.c: New file.
38136
38137         * modules/sleep: New file.
38138         * lib/sleep.c: New file.
38139         * m4/sleep.m4: New file.
38140         * lib/unistd_.h (sleep): New declaration.
38141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38142         HAVE_SLEEP.
38143         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38144         * doc/functions/sleep.texi: Document the sleep module.
38145
38146 2007-05-01  Bruno Haible  <bruno@clisp.org>
38147
38148         * lib/sigprocmask.h: Remove file.
38149         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38150         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38151         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38152         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38153         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38154         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38155         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38156         HAVE_SIGSET_T as a shell variable.
38157         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38158         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38159         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38160         (Depends-on): Add signal. Remove verify.
38161         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38162         (Include): Mention <signal.h> instead of sigprocmask.h.
38163         * NEWS: Mention the change.
38164         * lib/fatal-signal.c: Don't include sigprocmask.h.
38165
38166 2007-05-01  Bruno Haible  <bruno@clisp.org>
38167
38168         * modules/signal: New file.
38169         * lib/signal_.h: New file.
38170         * m4/signal_h.m4: New file.
38171
38172 2007-05-01  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38175         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38176         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38177         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38178
38179 2007-05-01  Bruno Haible  <bruno@clisp.org>
38180
38181         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38182         configure time.
38183         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38184         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38185         * modules/sys_stat (Makefile.am): Substitute their values into
38186         sys/stat.h.
38187
38188 2007-05-01  Bruno Haible  <bruno@clisp.org>
38189
38190         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38191         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38192         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38193
38194 2007-05-01  Bruno Haible  <bruno@clisp.org>
38195
38196         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38197         'assert' module here.
38198
38199 2007-05-01  Bruno Haible  <bruno@clisp.org>
38200
38201         * doc/functions/*.texi: New files.
38202         * doc/functions/google-ranking.txt: New file.
38203         * doc/gnulib.texi (Function Substitutes): New chapter.
38204         (ctime, inet_ntoa): Remove sections.
38205         * doc/ctime.texi: Remove file.
38206         * doc/inet_ntoa.texi: Remove file.
38207         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38208         dependencies.
38209         (%.info): New rule, specifying a --reference-limit.
38210
38211 2007-05-01  Bruno Haible  <bruno@clisp.org>
38212
38213         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38214
38215 2007-05-01  Bruno Haible  <bruno@clisp.org>
38216
38217         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38218         the portability of 'mkdir' to mingw systems.
38219
38220 2007-05-01  Bruno Haible  <bruno@clisp.org>
38221
38222         * doc/headers/google-ranking.txt: New file.
38223
38224 2007-04-30  Eric Blake  <ebb9@byu.net>
38225
38226         Prefer fseeko to fseek.
38227         * modules/getpass (Depends-on): Add fseeko.
38228         * lib/getpass.c (getpass): Use fseeko, not fseek.
38229
38230 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38231
38232         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38233         assumes the sorting is stable, while most qsort implementations
38234         are not.  Use argument addresses to ensure they never compare as
38235         equal.
38236
38237         * tests/test-argp-2.sh (usage-indent test): Fix output
38238         (func_compare): Restore diff options
38239         * tests/test-argp.c: Restore #include "progname.h"
38240
38241 2007-04-29  Bruno Haible  <bruno@clisp.org>
38242
38243         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38245         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38247         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38248         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38249         (TESTS, check_PROGRAMS): Add test-snprintf.
38250         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38251         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38252         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38253         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38254         assertions that fail on HP-UX, OSF/1, or IRIX.
38255         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38256
38257 2007-04-29  Bruno Haible  <bruno@clisp.org>
38258
38259         * MODULES.html.sh (posix_functions): Remove 'contents'.
38260
38261 2007-04-29  Karl Berry  <karl@gnu.org>
38262
38263         * config/srclist.txt (gendocs_template_min): new entry.
38264
38265 2007-04-29  Bruno Haible  <bruno@clisp.org>
38266
38267         Work around fpurge bug on BSD systems.
38268         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38269         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38270         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38271         fpurge to rpl_fpurge if the system already has this function.
38272         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38273         the case where the system already has this function. Correct invariants
38274         on BSD systems.
38275         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38276         BSD systems.
38277
38278 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38279
38280         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38281         proposed by Sven Verdoolaege.
38282
38283         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38284         options.
38285         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38286         (usage and help tests): Update
38287
38288 2007-04-29  Bruno Haible  <bruno@clisp.org>
38289
38290         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38291         Print more information in case of failure. Disable a test on BeOS.
38292
38293 2007-04-29  Bruno Haible  <bruno@clisp.org>
38294
38295         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38296         This helps debugging on systems on which no gdb is available.
38297
38298 2007-04-29  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/freading.h: Improve comments.
38301         * lib/fwriting.h: Likewise.
38302         * tests/test-freading.c (main): Don't check freading immediately after
38303         repositioning. Needed for glibc.
38304
38305 2007-04-29  Bruno Haible  <bruno@clisp.org>
38306
38307         * lib/freading.c (freading): Trivial simplification.
38308
38309 2007-04-28  Bruno Haible  <bruno@clisp.org>
38310
38311         * tests/test-fwriting.c (main): Also test the interaction between
38312         fflush and fwriting.
38313         * modules/fwriting-tests (Depends-on): Add fflush.
38314
38315         * tests/test-freading.c (main): Also test the interaction between
38316         fflush and freading.
38317         * modules/freading-tests (Depends-on): Add fflush.
38318
38319 2007-04-28  Bruno Haible  <bruno@clisp.org>
38320
38321         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38322         fseeko and ftello.
38323         Suggested by Eric Blake.
38324
38325 2007-04-28  Jim Meyering  <jim@meyering.net>
38326
38327         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38328         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38329         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38330
38331 2007-04-27  Eric Blake  <ebb9@byu.net>
38332
38333         * doc/headers/assert.texi (assert.h): Document assert module use.
38334
38335 2007-04-27  Bruno Haible  <bruno@clisp.org>
38336
38337         * doc/headers/*.texi: New files.
38338         * doc/gnulib.texi (Header File Substitutes): New chapter.
38339         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38340         dependencies.
38341         (standards.info ,standards.html, standards.dvi): Update dependencies.
38342         (mostlyclean, clean): New targets.
38343
38344 2007-04-27  Bruno Haible  <bruno@clisp.org>
38345
38346         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38347         * modules/sysexits (Files, Makefile.am): Update.
38348
38349         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38350         * modules/sys_socket (Files, Makefile.am): Update.
38351
38352         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38353         * modules/sys_stat (Files, Makefile.am): Update.
38354
38355 2007-04-27  Eric Blake  <ebb9@byu.net>
38356
38357         * lib/freading.h: Improve comments.
38358         * lib/fwriting.h: Likewise.
38359         * lib/fflush.c: Likewise.
38360
38361         Fix closein for mingw.
38362         * modules/closein-tests: Add tests for closein.
38363         * tests/test-closein.c: New file.
38364         * tests/test-closein.sh: Likewise.
38365         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38366         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38367
38368 2007-04-27  Bruno Haible  <bruno@clisp.org>
38369
38370         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38371         version is < 6.
38372         * lib/math_.h [__DECC]: Likewise.
38373         * lib/stdio_.h [__DECC]: Likewise.
38374         * lib/stdlib_.h [__DECC]: Likewise.
38375         * lib/string_.h [__DECC]: Likewise.
38376         * lib/time_.h [__DECC]: Likewise.
38377         * lib/wchar_.h [__DECC]: Likewise.
38378         * lib/wctype_.h [__DECC]: Likewise.
38379
38380 2007-04-27  Bruno Haible  <bruno@clisp.org>
38381
38382         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38383
38384 2007-04-27  Bruno Haible  <bruno@clisp.org>
38385
38386         * lib/fflush.c: Add comments.
38387         * modules/fpurge-tests (Depends-on): Add fflush.
38388         * modules/freadable-tests (Depends-on): Likewise.
38389         * modules/fwritable-tests (Depends-on): Likewise.
38390
38391 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38392
38393         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38394         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38395         Report by Bruno Haible <bruno@clisp.org>.
38396
38397 2007-04-26  Eric Blake  <ebb9@byu.net>
38398
38399         Fix fflush on mingw.
38400         * modules/fflush (Depends-on): Add freading.
38401         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38402         but unread data.
38403
38404 2007-04-26  Eric Blake  <ebb9@byu.net>
38405         and Bruno Haible  <bruno@clisp.org>
38406
38407         Implement freading and fwriting.
38408         * lib/freading.c: New file.
38409         * lib/freading.h: Likewise.
38410         * m4/freading.m4: Likewise.
38411         * modules/freading: Likewise.
38412         * modules/freading-tests: Likewise.
38413         * tests/test-freading.c: Likewise.
38414         * lib/fwriting.c: New file.
38415         * lib/fwriting.h: Likewise.
38416         * m4/fwriting.m4: Likewise.
38417         * modules/fwriting: Likewise.
38418         * modules/fwriting-tests: Likewise.
38419         * tests/test-fwriting.c: Likewise.
38420         * MODULES.html.sh (File stream based Input/Output): Mention them.
38421
38422 2007-04-26  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38425         'long' when we assume it.
38426         Suggested by Eric Blake.
38427
38428 2007-04-26  Bruno Haible  <bruno@clisp.org>
38429
38430         Ensure fseeko, ftello are declared on glibc systems.
38431         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38432         * modules/fseeko (configure.ac-early): Likewise.
38433         * modules/ftello (configure.ac-early): Likewise.
38434         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38435         AC_FUNC_FSEEKO for this.
38436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38437         (gl_CHECK_FSEEKO): Remove macro.
38438
38439 2007-04-26  Bruno Haible  <bruno@clisp.org>
38440
38441         * tests/test-fflush.c (main): Also check the ftell result after
38442         fflush and fseek/fseeko.
38443         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38444         file descriptor position cache in the stream.
38445         * lib/fseeko.c (rpl_fseeko): Likewise.
38446
38447 2007-04-26  Bruno Haible  <bruno@clisp.org>
38448
38449         * modules/fflush-tests (Depends-on): Add fseeko.
38450
38451 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38452             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38453
38454         * lib/argz_.h: ensure error_t definition is obtained in same
38455         mechanism system argz.h would have.
38456         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38457         argz facilities are known bad.  Err on the side of caution if
38458         cross-compiling.
38459
38460 2007-04-25  Eric Blake  <ebb9@byu.net>
38461
38462         * lib/fpurge.c (includes): Use stdlib.h for free.
38463         * tests/test-fflush.c (main): Also test fflush-fseeko.
38464
38465 2007-04-25  Bruno Haible  <bruno@clisp.org>
38466
38467         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38468         * lib/fseeko.c: New file.
38469         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38470         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38471         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38472         gl_FUNC_FSEEKO.
38473         (gl_FUNC_FSEEKO): Invoke it.
38474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38475         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38476         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38477
38478 2007-04-25  Bruno Haible  <bruno@clisp.org>
38479
38480         * modules/fflush (Depends-on): Add ftello.
38481
38482 2007-04-25  Bruno Haible  <bruno@clisp.org>
38483
38484         * modules/ftello-tests: New file.
38485         * tests/test-ftello.c: New file.
38486
38487         * modules/ftello: New file.
38488         * m4/ftello.m4: New file.
38489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38490         HAVE_FTELLO.
38491         * lib/stdio_.h (ftello): New declaration.
38492         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38493         HAVE_FTELLO.
38494
38495 2007-04-25  Bruno Haible  <bruno@clisp.org>
38496
38497         * modules/fseeko-tests: New file.
38498         * tests/test-fseeko.c: New file.
38499
38500         * modules/fseeko: New file.
38501         * m4/fseeko.m4: New file.
38502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38503         HAVE_FSEEKO.
38504         * lib/stdio_.h (fseeko): New declaration.
38505         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38506         HAVE_FSEEKO.
38507
38508 2007-04-25  Bruno Haible  <bruno@clisp.org>
38509
38510         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38511
38512 2007-04-25  Bruno Haible  <bruno@clisp.org>
38513
38514         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38515         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38516         * tests/test-unistd.c: Likewise.
38517         * tests/test-fcntl.c: Likewise.
38518
38519 2007-04-23  Eric Blake  <ebb9@byu.net>
38520
38521         * lib/fflush.c: Fix missing include.
38522         Reported by Bruno Haible.
38523
38524 2007-04-23  Bruno Haible  <bruno@clisp.org>
38525
38526         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
38527         Reported by Eric Blake.
38528
38529 2007-04-23  Bruno Haible  <bruno@clisp.org>
38530
38531         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
38532
38533 2007-04-23  Bruno Haible  <bruno@clisp.org>
38534
38535         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
38536
38537 2007-04-23  Bruno Haible  <bruno@clisp.org>
38538
38539         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
38540         Needed on HP-UX 11.
38541
38542 2007-04-16  Eric Blake  <ebb9@byu.net>
38543
38544         Make fflush rely on fpurge.
38545         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
38546         open coding all variants.
38547         * modules/fflush (Depends-on): Add fpurge and unistd.
38548         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
38549         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
38550
38551         Fix --with-tests compilation on cygwin.
38552         * modules/argmatch-tests (Makefile.am): List gnulib library first
38553         in LDADD.
38554         * modules/argp-tests (Makefile.am): Likewise.
38555         * modules/array-list-tests (Makefile.am): Likewise.
38556         * modules/array-oset-tests (Makefile.am): Likewise.
38557         * modules/avltree-list-tests (Makefile.am): Likewise.
38558         * modules/avltree-oset-tests (Makefile.am): Likewise.
38559         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38560         * modules/carray-list-tests (Makefile.am): Likewise.
38561         * modules/dirname-tests (Makefile.am): Likewise.
38562         * modules/frexp-tests (Makefile.am): Likewise.
38563         * modules/isnanl-tests (Makefile.am): Likewise.
38564         * modules/linked-list-tests (Makefile.am): Likewise.
38565         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38566         * modules/lock-tests (Makefile.am): Likewise.
38567         * modules/rbtree-list-tests (Makefile.am): Likewise.
38568         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38569         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38570         * modules/tls-tests (Makefile.am): Likewise.
38571         * modules/tsearch-tests (Makefile.am): Likewise.
38572         * modules/xvasprintf-tests (Makefile.am): Likewise.
38573
38574         Fix fpurge for cygwin.
38575         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
38576         value.
38577         * modules/fpurge-tests (Depends-on): Clean up trash.
38578
38579 2007-04-16  Simon Josefsson  <simon@josefsson.org>
38580
38581         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
38582
38583         * m4/autobuild.m4: Re-indent.
38584
38585 2007-04-13  Bruno Haible  <bruno@clisp.org>
38586
38587         * modules/fpurge-tests: New file.
38588         * tests/test-fpurge.c: New file.
38589
38590         * modules/fpurge: New file.
38591         * lib/fpurge.h: New file.
38592         * lib/fpurge.c: New file.
38593         * m4/fpurge.m4: New file.
38594
38595 2007-04-13  Bruno Haible  <bruno@clisp.org>
38596
38597         * modules/fbufmode-tests: New file.
38598         * tests/test-fbufmode.c: New file.
38599
38600         * modules/fbufmode: New file.
38601         * lib/fbufmode.h: New file.
38602         * lib/fbufmode.c: New file.
38603         * m4/fbufmode.m4: New file.
38604
38605 2007-04-13  Bruno Haible  <bruno@clisp.org>
38606
38607         * modules/fwritable-tests: New file.
38608         * tests/test-fwritable.c: New file.
38609
38610         * modules/fwritable: New file.
38611         * lib/fwritable.h: New file.
38612         * lib/fwritable.c: New file.
38613         * m4/fwritable.m4: New file.
38614
38615 2007-04-13  Bruno Haible  <bruno@clisp.org>
38616
38617         * modules/freadable-tests: New file.
38618         * tests/test-freadable.c: New file.
38619
38620         * modules/freadable: New file.
38621         * lib/freadable.h: New file.
38622         * lib/freadable.c: New file.
38623         * m4/freadable.m4: New file.
38624
38625 2007-04-13  Bruno Haible  <bruno@clisp.org>
38626
38627         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
38628         MOSTLYCLEANFILES.
38629
38630 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38631
38632         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
38633         gzip bootstrap.conf to avoid dragging in i18n machinery.
38634         (gnulib_tool_option): Use it.
38635
38636 2007-04-13  Bruno Haible  <bruno@clisp.org>
38637
38638         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
38639         %F directives.
38640         * tests/test-vasprintf-posix.c (test_function): Likewise.
38641         * tests/test-snprintf-posix.h (test_function): Likewise.
38642         * tests/test-sprintf-posix.h (test_function): Likewise.
38643         * tests/test-fprintf-posix.h (test_function): Likewise.
38644         * tests/test-printf-posix.h (test_function): Likewise.
38645         * tests/test-fprintf-posix.out: Likewise.
38646
38647 2007-04-13  Bruno Haible  <bruno@clisp.org>
38648
38649         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
38650         * modules/tls-tests (configure.ac): Likewise.
38651         Reported by Arto C. Nirkko <anirkko@insel.ch>.
38652
38653 2007-04-13  Bruno Haible  <bruno@clisp.org>
38654
38655         * lib/tls.c (glthread_tls_get): Fix return type.
38656         Patch by Arto C. Nirkko <anirkko@insel.ch>.
38657
38658 2007-04-12  Eric Blake  <ebb9@byu.net>
38659
38660         * modules/gettime (Depends-on): Remove gettime.
38661         Reported by Dmitry V. Levin.
38662
38663 2007-04-12  Bruno Haible  <bruno@clisp.org>
38664
38665         * modules/fflush (Include): Mention <stdio.h>.
38666         * modules/strtoimax (Include): Mention <inttypes.h>.
38667         * modules/strtoumax (Include): Likewise.
38668
38669 2007-04-12  Eric Blake  <ebb9@byu.net>
38670
38671         * .cvsignore: New file.
38672         * .gitignore: Likewise.
38673
38674 2007-04-12  Bruno Haible  <bruno@clisp.org>
38675
38676         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
38677         not before, since $(LDADD) often contains libgnu.a.
38678         * modules/striconv-tests (test_striconv_LDADD): Likewise.
38679         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
38680         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
38681         Needed on Cygwin.
38682
38683 2007-04-12  Eric Blake  <ebb9@byu.net>
38684
38685         Work around glibc's failure to flush stdin on fclose.
38686         * lib/closein.c (close_stdin): Flush stdin before closing.
38687
38688         Work around glibc's failure to reset seekable stdin on exit.
38689         * modules/closein: New module.
38690         * lib/closein.c: New file.
38691         * lib/closein.h: Likewise.
38692         * m4/closein.m4: Likewise.
38693         * MODULES.html.sh (File stream based Input/Output): Document it.
38694
38695 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38696
38697         * gnulib-tool: Rename generated 'autobuild' script to
38698         'do-autobuild' in --create-megatestdir output.
38699
38700         * doc/gnulib.texi (Build robot for gnulib): Fix.
38701
38702 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38703
38704         * modules/sysexits (Depends-on): Add absolute-header.
38705
38706 2007-04-12  Eric Blake  <ebb9@byu.net>
38707
38708         No need to preserve errno on success.
38709         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
38710         Reported by Bruno Haible.
38711
38712 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38713
38714         * MODULES.html.sh (Support for maintaining and releasing
38715         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
38716
38717 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38718
38719         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
38720
38721 2007-04-12  Simon Josefsson  <simon@josefsson.org>
38722
38723         * modules/autobuild: New module.
38724
38725         * m4/autobuild.m4: New file.
38726
38727 2007-04-11  Bruno Haible  <bruno@clisp.org>
38728
38729         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
38730         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
38731         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
38732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
38733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
38740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
38743         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38744         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
38746         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38747         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38748         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
38749         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38750         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
38752         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38753         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38754         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
38755         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
38756         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
38757         Reported by Eric Blake.
38758
38759 2007-04-11  Bruno Haible  <bruno@clisp.org>
38760
38761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
38762
38763 2007-04-10  Bruno Haible  <bruno@clisp.org>
38764
38765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
38766         for NaN and Infinity. Needed on FreeBSD 6.1.
38767         * tests/test-vasnprintf-posix.c (test_function): Undo last change
38768         regarding results for "%010a" of Infinity and NaN.
38769         * tests/test-vasprintf-posix.c (test_function): Likewise.
38770         * tests/test-snprintf-posix.h (test_function): Likewise.
38771         * tests/test-sprintf-posix.h (test_function): Likewise.
38772         * tests/test-fprintf-posix.h (test_function): Likewise.
38773         * tests/test-printf-posix.h (test_function): Likewise.
38774         * tests/test-fprintf-posix.out: Likewise.
38775
38776 2007-04-10  Bruno Haible  <bruno@clisp.org>
38777
38778         * modules/locale-tests: New file.
38779         * tests/test-locale.c: New file.
38780
38781         * modules/locale: New file.
38782         * lib/locale_.h: New file.
38783         * m4/locale_h.m4: New file.
38784
38785 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
38786             Bruno Haible  <bruno@clisp.org>
38787
38788         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
38789         be determined, test for availability of the copysignf, copysign,
38790         copysignl functions.
38791         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
38792         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
38793         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
38794
38795 2007-04-09  Eric Blake  <ebb9@byu.net>
38796
38797         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
38798         * modules/stdio (Makefile.am): Support fflush.
38799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38800         * modules/fflush: New file.
38801         * lib/fflush.c: Likewise.
38802         * m4/fflush.m4: Likewise.
38803         * modules/fflush-tests: New test.
38804         * tests/test-fflush.c: Likewise.
38805         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
38806
38807 2007-04-06  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
38810         (VASNPRINTF): Use signbit for faster determination whether to print a
38811         minus sign.
38812         * modules/vasnprintf (Files): Remove lib/float+.h.
38813         * modules/fprintf-posix (Depends-on): Add signbit.
38814         * modules/snprintf-posix (Depends-on): Likewise.
38815         * modules/sprintf-posix (Depends-on): Likewise.
38816         * modules/vasnprintf-posix (Depends-on): Likewise.
38817         * modules/vasprintf-posix (Depends-on): Likewise.
38818         * modules/vfprintf-posix (Depends-on): Likewise.
38819         * modules/vsnprintf-posix (Depends-on): Likewise.
38820         * modules/vsprintf-posix (Depends-on): Likewise.
38821
38822 2007-04-06  Bruno Haible  <bruno@clisp.org>
38823
38824         * tests/test-frexp.c (main): Test also the sign bit of zero results.
38825         * tests/test-frexpl.c (main): Likewise.
38826         * tests/test-ldexpl.c (main): Likewise.
38827         * modules/frexp-tests (Depends-on): Add signbit.
38828         * modules/frexpl-tests (Depdends-on): Likewise.
38829         * modules/ldexpl-tests (Depdends-on): Likewise.
38830
38831 2007-04-06  Bruno Haible  <bruno@clisp.org>
38832
38833         * modules/signbit-tests: New file.
38834         * tests/test-signbit.c: New file.
38835
38836         * modules/signbit: New file.
38837         * lib/signbitf.c: New file.
38838         * lib/signbitd.c: New file.
38839         * lib/signbitl.c: New file.
38840         * m4/signbit.m4: New file.
38841         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
38842         (signbit): New macro.
38843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
38844         REPLACE_SIGNBIT.
38845         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
38846         REPLACE_FREXPL into math.h.
38847
38848 2007-04-06  Bruno Haible  <bruno@clisp.org>
38849
38850         * modules/isnanf-nolibm-tests: New file.
38851         * tests/test-isnanf.c: New file.
38852
38853         * modules/isnanf-nolibm: New file.
38854         * lib/isnanf.h: New file.
38855         * lib/isnanf.c: New file.
38856         * lib/isnan.c: Consider the USE_FLOAT macro.
38857         * m4/isnanf.m4: New file.
38858
38859 2007-04-06  Bruno Haible  <bruno@clisp.org>
38860
38861         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
38862         (Link): New section.
38863
38864         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
38865
38866 2007-04-06  Bruno Haible  <bruno@clisp.org>
38867
38868         Assume the 'long double' type.
38869         * m4/longdouble.m4: Remove file.
38870         * config/srclist.txt: Don't mention longdouble.m4.
38871         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
38872         * lib/float+.h: Likewise.
38873         * lib/frexp.c: Likewise.
38874         * lib/printf-args.h: Likewise.
38875         * lib/printf-args.c: Likewise.
38876         * lib/printf-frexp.c: Likewise.
38877         * lib/printf-parse.c: Likewise.
38878         * lib/vasnprintf.c: Likewise.
38879         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
38880         * m4/intl.m4: Likewise.
38881         * m4/isnanl.m4: Likewise.
38882         * m4/printf.m4: Likewise.
38883         * m4/printf-frexpl.m4: Likewise.
38884         * m4/vasnprintf.m4: Likewise.
38885         * modules/allocsa (Files): Remove m4/longdouble.m4.
38886         * modules/gettext (Files): Likewise.
38887         * modules/relocatable-prog-wrapper (Files): Likewise.
38888         * modules/vasnprintf (Files): Likewise.
38889         * modules/isnanl (Files): Likewise.
38890         (Include): Simplify.
38891         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
38892         (Include): Simplify.
38893         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
38894         (Include): Simplify.
38895         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
38896         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38897         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
38898         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38899         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38900         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38901         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
38902         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38903         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
38904         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38905         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
38906         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
38907         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
38908         * tests/test-isnanl.c: Likewise.
38909         * tests/test-snprintf-posix.h: Likewise.
38910         * tests/test-sprintf-posix.h: Likewise.
38911         * tests/test-vasnprintf-posix.c: Likewise.
38912         * tests/test-vasnprintf-posix2.c: Likewise.
38913         * tests/test-vasprintf-posix.c: Likewise.
38914
38915 2007-04-06  Bruno Haible  <bruno@clisp.org>
38916
38917         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
38918         * lib/math_.h [__DECC]: Include the overridden include file through
38919         #include_next, outside the double-inclusion guard.
38920         * lib/stdio_.h [__DECC]: Likewise.
38921         * lib/stdlib_.h [__DECC]: Likewise.
38922         * lib/string_.h [__DECC]: Likewise.
38923         * lib/time_.h [__DECC]: Likewise.
38924         * lib/wchar_.h [__DECC]: Likewise.
38925         * lib/wctype_.h [__DECC]: Likewise.
38926         * lib/inttypes_.h [__DECC]: Likewise.
38927         Reported by Albert Chin <china@thewrittenword.com> in
38928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
38929
38930 2007-04-04  Eric Blake  <ebb9@byu.net>
38931
38932         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
38933         1.5.x.
38934
38935 2007-04-04  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
38938         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
38939
38940 2007-04-04  Bruno Haible  <bruno@clisp.org>
38941
38942         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
38943         results for "%010a" of Infinity and NaN.
38944         * tests/test-vasprintf-posix.c (test_function): Likewise.
38945         * tests/test-snprintf-posix.h (test_function): Likewise.
38946         * tests/test-sprintf-posix.h (test_function): Likewise.
38947         * tests/test-fprintf-posix.h (test_function): Remove these tests.
38948         * tests/test-printf-posix.h (test_function): Likewise.
38949         * tests/test-fprintf-posix.out: Update.
38950         Needed for FreeBSD 6.1.
38951
38952 2007-04-04  Bruno Haible  <bruno@clisp.org>
38953
38954         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
38955         directly used by the gnulib modules nor by gnulib-tool.
38956
38957 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38958
38959         * DEPENDENCIES: Give overall description of version dependency
38960         desirability.  Use more-typical names for apps.
38961         Add shell, coreutils, diffutils, grep, tar, gzip.
38962
38963 2007-04-04  Simon Josefsson  <simon@josefsson.org>
38964
38965         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
38966
38967 2007-04-04  Karl Berry  <karl@gnu.org>
38968
38969         * MODULES.html.sh (func_module): missing '.
38970
38971 2007-04-03  Bruno Haible  <bruno@clisp.org>
38972
38973         * modules/argmatch-tests (Makefile.am): New variable
38974         test_argmatch_LDADD.
38975         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
38976         * modules/array-list-tests (Makefile.am): New variable
38977         test_array_list_LDADD.
38978         * modules/array-oset-tests (Makefile.am): New variable
38979         test_array_oset_LDADD.
38980         * modules/avltree-list-tests (Makefile.am): New variable
38981         test_avltree_list_LDADD.
38982         * modules/avltree-oset-tests (Makefile.am): New variable
38983         test_avltree_oset_LDADD.
38984         * modules/avltreehash-list-tests (Makefile.am): New variable
38985         test_avltreehash_list_LDADD.
38986         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
38987         test_canonicalize_lgpl_LDADD.
38988         * modules/carray-list-tests (Makefile.am): New variable
38989         test_carray_list_LDADD.
38990         * modules/dirname-tests (Makefile.am): New variable
38991         test_dirname_LDADD.
38992         * modules/linked-list-tests (Makefile.am): New variable
38993         test_linked_list_LDADD.
38994         * modules/linkedhash-list-tests (Makefile.am): New variable
38995         test_linkedhash_list_LDADD.
38996         * modules/rbtree-list-tests (Makefile.am): New variable
38997         test_rbtree_list_LDADD.
38998         * modules/rbtree-oset-tests (Makefile.am): New variable
38999         test_rbtree_oset_LDADD.
39000         * modules/rbtreehash-list-tests (Makefile.am): New variable
39001         test_rbtreehash_list_LDADD.
39002         * modules/xvasprintf-tests (Makefile.am): New variable
39003         test_xvasprintf_LDADD.
39004         Reported by Eric Blake.
39005
39006 2007-04-03  Eric Blake  <ebb9@byu.net>
39007
39008         * DEPENDENCIES: Weaken m4 requirements.
39009
39010 2007-04-03  Bruno Haible  <bruno@clisp.org>
39011
39012         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39013         * modules/isnanl-tests (configure.ac): Likewise.
39014
39015 2007-04-03  Ben Pfaff  <blp@gnu.org>
39016
39017         * modules/iconv_open: Add $(srcdir)/ to source directory
39018         references in Makefile fragments that call gperf, to fix VPATH
39019         builds.
39020
39021 2007-04-03  Bruno Haible  <bruno@clisp.org>
39022
39023         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39024         * lib/ldexpl.c: Undo last change.
39025
39026 2007-04-03  Bruno Haible  <bruno@clisp.org>
39027
39028         * modules/printf-frexpl (Depends-on): Undo last change.
39029         (Files): Add m4/ldexpl.m4.
39030
39031 2007-04-03  Bruno Haible  <bruno@clisp.org>
39032
39033         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39034         * modules/isnanl (Link): New section.
39035
39036         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39037         * modules/frexp (Link): New section.
39038
39039         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39040         * modules/frexpl (Link): New section.
39041
39042         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39043         * modules/ldexpl (Link): New section.
39044
39045 2007-04-03  Bruno Haible  <bruno@clisp.org>
39046
39047         * modules/TEMPLATE-EXTENDED: New file.
39048         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39049
39050 2007-04-03  Bruno Haible  <bruno@clisp.org>
39051
39052         * DEPENDENCIES: New file.
39053         Suggested by Simon Josefsson.
39054
39055 2007-04-03  Bruno Haible  <bruno@clisp.org>
39056
39057         * doc/gnulib.texi: Escape @.
39058
39059 2007-04-03  James Youngman  <jay@gnu.org>
39060         and Paul Eggert  <eggert@cs.ucla.edu>
39061
39062         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39063         birthtime on all systems that have birthtime, not just those which
39064         use st_birthtimensec rather than st_birthtim.  Putting zero in
39065         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39066         that the birth time is not available for files on an NFS mount.
39067
39068 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39069
39070         * modules/memxor: Move back from crypto/, suggested by Bruno.
39071         * modules/crypto/hmac-sha1: Fix memxor dependency.
39072
39073         * modules/crypto/gc: Moved from ../.
39074
39075 2007-04-02  Eric Blake  <ebb9@byu.net>
39076
39077         * lib/ldexpl.c (includes): Avoid libm.
39078
39079         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39080
39081 2007-04-02  Bruno Haible  <bruno@clisp.org>
39082
39083         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39084         on IRIX.
39085
39086 2007-04-02  Bruno Haible  <bruno@clisp.org>
39087
39088         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39089         x86 or x86_64 platforms running MacOS X.
39090         Reported by Ryan Schmidt <@ryandesign.com>.
39091
39092 2007-04-02  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39095         i386.
39096
39097 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39098
39099         * modules/crypto/arcfour: Moved from ../.
39100         * modules/crypto/arcfour-tests: Moved from ../.
39101         * modules/crypto/arctwo: Moved from ../.
39102         * modules/crypto/arctwo-tests: Moved from ../.
39103         * modules/crypto/des: Moved from ../.
39104         * modules/crypto/des-tests: Moved from ../.
39105         * modules/crypto/gc-arcfour: Moved from ../.
39106         * modules/crypto/gc-arcfour-tests: Moved from ../.
39107         * modules/crypto/gc-arctwo: Moved from ../.
39108         * modules/crypto/gc-arctwo-tests: Moved from ../.
39109         * modules/crypto/gc-des: Moved from ../.
39110         * modules/crypto/gc-des-tests: Moved from ../.
39111         * modules/crypto/gc-hmac-md5: Moved from ../.
39112         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39113         * modules/crypto/gc-hmac-sha1: Moved from ../.
39114         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39115         * modules/crypto/gc-md2: Moved from ../.
39116         * modules/crypto/gc-md2-tests: Moved from ../.
39117         * modules/crypto/gc-md4: Moved from ../.
39118         * modules/crypto/gc-md4-tests: Moved from ../.
39119         * modules/crypto/gc-md5: Moved from ../.
39120         * modules/crypto/gc-md5-tests: Moved from ../.
39121         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39122         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39123         * modules/crypto/gc-random: Moved from ../.
39124         * modules/crypto/gc-rijndael: Moved from ../.
39125         * modules/crypto/gc-rijndael-tests: Moved from ../.
39126         * modules/crypto/gc-sha1: Moved from ../.
39127         * modules/crypto/gc-sha1-tests: Moved from ../.
39128         * modules/crypto/gc-tests: Moved from ../.
39129         * modules/crypto/hmac-md5: Moved from ../.
39130         * modules/crypto/hmac-md5-tests: Moved from ../.
39131         * modules/crypto/hmac-sha1: Moved from ../.
39132         * modules/crypto/hmac-sha1-tests: Moved from ../.
39133         * modules/crypto/md2: Moved from ../.
39134         * modules/crypto/md2-tests: Moved from ../.
39135         * modules/crypto/md4: Moved from ../.
39136         * modules/crypto/md4-tests: Moved from ../.
39137         * modules/crypto/md5: Moved from ../.
39138         * modules/crypto/md5-tests: Moved from ../.
39139         * modules/crypto/memxor: Moved from ../.
39140         * modules/crypto/rijndael: Moved from ../.
39141         * modules/crypto/rijndael-tests: Moved from ../.
39142         * modules/crypto/sha1: Moved from ../.
39143
39144 2007-03-30  James Youngman  <jay@gnu.org>
39145
39146         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39147         rename() to change the ctime of a file (because ctime is unaffected
39148         by rename on jfs2 on AIX 5.1).
39149         (main): Start by doing cleanup, in case a previous run failed leaving
39150         test files behind.
39151
39152 2007-03-31  Bruno Haible  <bruno@clisp.org>
39153
39154         Support old proprietary implementations of iconv.
39155         * modules/iconv_open: New file.
39156         * lib/iconv_.h: New file.
39157         * m4/iconv_h.m4: New file.
39158         * lib/iconv_open.c: New file.
39159         * lib/iconv_open-aix.gperf: New file.
39160         * lib/iconv_open-hpux.gperf: New file.
39161         * lib/iconv_open-irix.gperf: New file.
39162         * lib/iconv_open-osf.gperf: New file.
39163         * m4/iconv_open.m4: New file.
39164         * modules/linebreak (Depends-on): Add iconv_open.
39165         * modules/striconv (Depends-on): Likewise.
39166         * modules/striconveh (Depends-on): Likewise.
39167         * modules/unicodeio (Depends-on): Likewise.
39168         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39169         (iconv_t)(-1).
39170         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39171         conversion if cd is (iconv_t)(-1).
39172         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39173         is not possible.
39174
39175 2007-03-31  Bruno Haible  <bruno@clisp.org>
39176
39177         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39178         work on Solaris either. Protect also second use of "autodetect_jp".
39179
39180 2007-03-31  Bruno Haible  <bruno@clisp.org>
39181
39182         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39183         the function is not present.
39184
39185 2007-03-31  Bruno Haible  <bruno@clisp.org>
39186
39187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39188         the function is not present.
39189
39190 2007-03-31  Bruno Haible  <bruno@clisp.org>
39191
39192         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39193         a bug in HP-UX iconv_open().
39194
39195 2007-03-31  Bruno Haible  <bruno@clisp.org>
39196
39197         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39198         (Mathematics <math.h>): New section, add fpieee.
39199         (Input/output <stdio.h>): Add fseterr.
39200         (Mathematics <math.h>): New section, add printf-frexp.
39201         (Container data structures): Add sublist.
39202         (Core language properties): Add fpucw, inline.
39203         (Functions for greatest-width integer types <inttypes.h>): Add
39204         imaxabs, imaxdiv, inttypes.
39205         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39206         isnanl-nolibm, ldexp.
39207         (Mathematics <math.h>): New section, add printf-frexpl.
39208         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39209         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39210         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39211         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39212         (Unicode string functions): Add unistr/u*-mbtoucr.
39213         (Java): Add javacomp-script, javaexec-script.
39214         (C#): Add csharpcomp-script, csharpexec-script.
39215         (Support for building libraries and executables): Add havelib,
39216         relocatable-*.
39217         (Support for maintaining and releasing projects): Renamed from
39218         'Support for maintaining and release projects'. Add announce-gen.
39219
39220 2007-03-31  Bruno Haible  <bruno@clisp.org>
39221
39222         * README: Talk primarily about git.
39223         (git and CVS): Renamed from CVS.
39224         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39225         gnulib is available through git.
39226         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39227
39228 2007-03-30  Bruno Haible  <bruno@clisp.org>
39229
39230         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39231         * lib/poll_.h: Likewise.
39232         * lib/stat_.h: Likewise.
39233         * lib/sys_time_.h: Likewise.
39234         * lib/sysexit_.h: Likewise.
39235         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39236         * lib/stdbool_.h: Likewise.
39237         * lib/byteswap_.h: Add double-inclusion guard.
39238
39239 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39240
39241         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39242
39243 2007-03-30  Karl Berry  <karl@gnu.org>
39244
39245         * config/srclist-update: double space after USA in the license
39246         substitution, since that's how it's usually (?) written.
39247
39248 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39249
39250         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39251         reported by Bruno Haible.
39252
39253 2007-03-29  Bruno Haible  <bruno@clisp.org>
39254
39255         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39256         a bug in AIX iconv().
39257
39258 2007-03-29  Bruno Haible  <bruno@clisp.org>
39259
39260         * modules/ldexpl-tests: New file.
39261         * tests/test-ldexpl.c: New file.
39262
39263 2007-03-29  Bruno Haible  <bruno@clisp.org>
39264
39265         * lib/ldexpl.c: Include fpucw.h.
39266         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39267         multiplication.
39268         * modules/ldexpl (Depends-on): Add fpucw.
39269
39270 2007-03-29  Bruno Haible  <bruno@clisp.org>
39271
39272         * modules/ldexpl: New file.
39273         * m4/ldexpl.m4: New file.
39274         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39275         set.
39276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39277         REPLACE_LDEXPL.
39278         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39279         REPLACE_LDEXPL.
39280         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39281         gl_FUNC_LDEXPL_WORKS.
39282         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39283         * modules/mathl (Files): Remove lib/ldexpl.c.
39284         (Depends-on): Add ldexpl.
39285
39286 2007-03-29  Bruno Haible  <bruno@clisp.org>
39287
39288         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39289
39290 2007-03-29  Bruno Haible  <bruno@clisp.org>
39291
39292         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39293         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39294         and possibly also HP-UX.
39295         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39296         work on AIX, IRIX, HP-UX, OSF/1.
39297         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39298         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39299         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39300         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39301         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39302         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39303
39304 2007-03-29  Bruno Haible  <bruno@clisp.org>
39305
39306         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39307
39308 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39309
39310         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39311         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39312
39313 2007-03-29  Eric Blake  <ebb9@byu.net>
39314
39315         * lib/acl-internal.h: Remove redundant include.
39316         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39317         Cygwin when a file is locked.
39318
39319 2007-03-29  Bruno Haible  <bruno@clisp.org>
39320
39321         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39322         file.
39323         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39324
39325 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39326
39327         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39328         try to remove a parent directory if the child couldn't be removed
39329         (except for the first rmdir, which could fail because the child
39330         doesn't exist).  Problem reported by Jeff Blaine in
39331         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39332
39333 2007-03-28  Bruno Haible  <bruno@clisp.org>
39334
39335         * lib/striconveh.c (utf8conv_carefully): New function.
39336         (mem_cd_iconveh_internal): Invoke it.
39337
39338 2007-03-28  Bruno Haible  <bruno@clisp.org>
39339
39340         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39341         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39342         input.
39343         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39344         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39345         unistr/u8-uctomb.
39346
39347 2007-03-28  Bruno Haible  <bruno@clisp.org>
39348
39349         * modules/unistr/u8-mbtoucr: New file.
39350         * lib/unistr/u8-mbtoucr.c: New file.
39351         * modules/unistr/u16-mbtoucr: New file.
39352         * lib/unistr/u16-mbtoucr.c: New file.
39353         * modules/unistr/u16-mbtoucr: New file.
39354         * lib/unistr/u16-mbtoucr.c: New file.
39355         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39356
39357 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39358             Bruno Haible  <bruno@clisp.org>
39359
39360         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39361         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39362         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39363
39364         * m4/stdio_h.m4: Add stubs for vasprintf too.
39365
39366         * modules/stdio: Support vasprintf in sed command.
39367
39368         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39369         vasprintf.h.  Add stdio module indicator.
39370
39371         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39372         vasprintf.h.
39373
39374         * lib/vasprintf.h: File removed.
39375
39376         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39377         * lib/vasprintf.c: Ditto.
39378         * lib/xvasprintf.c: Ditto.
39379         * tests/test-vasprintf-posix.c: Ditto.
39380         * tests/test-vasprintf.c: Ditto.
39381
39382 2007-03-27  Bruno Haible  <bruno@clisp.org>
39383
39384         Make vasnprintf multithread-safe.
39385         * lib/vasnprintf.c (decimal_point_char): New function.
39386         (VASNPRINTF): Use it.
39387         Suggested by Simon Josefsson.
39388
39389 2007-03-27  Eric Blake  <ebb9@byu.net>
39390
39391         Support sub-second birthtime on cygwin.
39392         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39393         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39394         (get_stat_birthtime): Also work with st_birthtim.
39395
39396 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39397
39398         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39399         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39400         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39401         (get_stat_birthtime_ns): Simplify compile-time tests.
39402         (get_stat_birthtime): Change the API to look like
39403         get_stat_mtime etc., except return a negative tv_nsec on error.
39404         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39405         Don't check for "spare" fields.
39406         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39407         or for struct stat.st_birthtime, as these tests aren't used.
39408         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39409
39410 2007-03-27  Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/stat-time.h: Include <sys/stat.h>.
39413
39414 2007-03-27  James Youngman  <jay@gnu.org>
39415
39416         * lib/stat-time.h (get_stat_birthtime): New function for
39417           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39418         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39419           and its variants.
39420         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39421         * modules/stat-time-test: New file.
39422         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39423
39424 2007-03-26  Bruno Haible  <bruno@clisp.org>
39425
39426         Better support of signalling NaNs.
39427         * lib/atanl.c: Include isnanl.h.
39428         (atanl): Perform test for NaN at the beginning of the function and
39429         through a call to isnanl.
39430         * lib/cosl.c: Include isnanl.h.
39431         (cosl): Perform test for NaN at the beginning of the function and
39432         through a call to isnanl.
39433         * lib/ldexpl.c: Include isnanl.h.
39434         (ldexpl): Perform test for NaN through a call to isnanl.
39435         * lib/logl.c: Include isnanl.h.
39436         (logl): Perform test for NaN at the beginning of the function and
39437         through a call to isnanl.
39438         * lib/sinl.c: Include isnanl.h.
39439         (sinl): Perform test for NaN at the beginning of the function and
39440         through a call to isnanl.
39441         * lib/sqrtl.c: Include isnanl.h.
39442         (sqrtl): Perform test for NaN at the beginning of the function and
39443         through a call to isnanl.
39444         * lib/tanl.c: Include isnanl.h.
39445         (tanl): Perform test for NaN at the beginning of the function and
39446         through a call to isnanl.
39447         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39448         * modules/mathl (Depends-on): Add isnanl.
39449
39450 2007-03-26  Eric Blake  <ebb9@byu.net>
39451
39452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39453         regression in logic sense of previous patch.
39454
39455 2007-03-26  Bruno Haible  <bruno@clisp.org>
39456
39457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39458         unportable shell command "if ! ...".
39459         Reported by Ralf Wildenhues.
39460
39461 2007-03-25  Bruno Haible  <bruno@clisp.org>
39462
39463         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39464         <sysexits.h> file, and only add EX_CONFIG.
39465         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39466         absolute file name and whether it is sufficient. Substitute also
39467         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39468         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39469         ABSOLUTE_SYSEXITS_H into sysexits.h.
39470
39471 2007-03-25  Bruno Haible  <bruno@clisp.org>
39472
39473         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39474         hints is NULL.
39475
39476 2007-03-25  Bruno Haible  <bruno@clisp.org>
39477
39478         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39479         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39480
39481 2007-03-25  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/vasnprintf.c: Include langinfo.h.
39484         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39485         multithread-safe.
39486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39495         Reported by Simon Josefsson.
39496
39497 2007-03-25  Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39500         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39501         * modules/vasnprintf (Depends-on): Add stdint.
39502
39503 2007-03-25  Bruno Haible  <bruno@clisp.org>
39504
39505         * modules/fpieee: New file.
39506         * m4/fpieee.m4: New file.
39507         * modules/isnan-nolibm (Depends-on): Add fpieee.
39508         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39509         * modules/isnanl (Depends-on): Add fpieee.
39510
39511 2007-03-25  Bruno Haible  <bruno@clisp.org>
39512
39513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39514
39515 2007-03-25  Bruno Haible  <bruno@clisp.org>
39516
39517         Avoid test failures on IRIX 6.5.
39518         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39519         (main): Use it.
39520         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39521         macros.
39522         (main): Use them.
39523
39524 2007-03-25  Bruno Haible  <bruno@clisp.org>
39525
39526         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
39527         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
39528         exists but doesn't work.
39529         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
39530         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
39531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
39532         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
39533
39534 2007-03-25  Bruno Haible  <bruno@clisp.org>
39535
39536         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
39537         returns inf. Needed on IRIX 6.5.
39538
39539 2007-03-25  Bruno Haible  <bruno@clisp.org>
39540
39541         * tests/test-frexpl.c: Include isnanl-nolibm.h.
39542         (main): Use isnanl instead of x != x idiom.
39543         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
39544
39545         * tests/test-frexp.c: Include isnan.h.
39546         (main): Use isnan instead of x != x idiom.
39547         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
39548
39549 2007-03-25  Bruno Haible  <bruno@clisp.org>
39550
39551         * tests/test-frexp.c (NaN): New function/macro.
39552         (main): Use it instead of 0.0 / 0.0.
39553         * tests/test-isnan.c (NaN): New function/macro.
39554         (main): Use it instead of 0.0 / 0.0.
39555         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
39556         (test_function): Use it instead of 0.0 / 0.0.
39557         * tests/test-vasprintf-posix.c (NaN): New function/macro.
39558         (test_function): Use it instead of 0.0 / 0.0.
39559         * tests/test-snprintf-posix.h (NaN): New function/macro.
39560         (test_function): Use it instead of 0.0 / 0.0.
39561         * tests/test-sprintf-posix.h (NaN): New function/macro.
39562         (test_function): Use it instead of 0.0 / 0.0.
39563         * tests/test-fprintf-posix.h (NaN): New function/macro.
39564         (test_function): Use it instead of 0.0 / 0.0.
39565         * tests/test-printf-posix.h (NaN): New function/macro.
39566         (test_function): Use it instead of 0.0 / 0.0.
39567
39568         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
39569
39570 2007-03-25  Bruno Haible  <bruno@clisp.org>
39571
39572         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
39573
39574 2007-03-25  Bruno Haible  <bruno@clisp.org>
39575
39576         * lib/regexec.c (merge_state_with_log): Make static.
39577
39578 2007-03-25  Bruno Haible  <bruno@clisp.org>
39579
39580         * lib/trigl.c (kernel_rem_pio2): Make static.
39581
39582 2007-03-25  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/sincosl.c (sincosl_table): Make static.
39585
39586 2007-03-25  Bruno Haible  <bruno@clisp.org>
39587
39588         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
39589         if the compiler does not support C99.
39590
39591 2007-03-25  Bruno Haible  <bruno@clisp.org>
39592
39593         * modules/time (Makefile.am): Ensure all rule action lines start with a
39594         tab.
39595
39596 2007-03-24  Bruno Haible  <bruno@clisp.org>
39597
39598         * modules/tsearch-tests: New file.
39599         * tests/test-tsearch.sh: New file.
39600         * tests/test-tsearch.c: New file, mostly copied from glibc.
39601
39602         * modules/search-tests: New file.
39603         * tests/test-search.c: New file.
39604
39605         * modules/search: New file.
39606         * lib/search_.h: New file, incorporating lib/tsearch.h.
39607         * m4/search_h.m4: New file.
39608         * lib/tsearch.h: Remove file.
39609         * lib/tsearch.c: Include search.h instead of tsearch.h.
39610         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
39611         HAVE_TSEARCH.
39612         * modules/tsearch (Files): Remove lib/tsearch.h.
39613         (Depends-on): Add search.
39614         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
39615         (Include): Change tsearch.h into search.h.
39616
39617 2007-03-24  Bruno Haible  <bruno@clisp.org>
39618
39619         * modules/fpucw: New file.
39620         * lib/fpucw.h: New file.
39621         * lib/frexp.c: Include fpucw.h.
39622         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39623         (FUNC): Use them.
39624         * lib/printf-frexp.c: Include fpucw.h.
39625         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
39626         (FUNC): Use them.
39627         * lib/vasnprintf.c: Include fpucw.h.
39628         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
39629         'long double' calculations.
39630         * tests/test-frexpl.c: Include fpucw.h.
39631         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39632         * tests/test-printf-frexpl.c: Include fpucw.h.
39633         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
39634         * modules/frexpl (Depends-on): Add fpucw.
39635         * modules/printf-frexpl (Depends-on): Likewise.
39636         * modules/fprintf-posix (Depends-on): Likewise.
39637         * modules/snprintf-posix (Depends-on): Likewise.
39638         * modules/sprintf-posix (Depends-on): Likewise.
39639         * modules/vasnprintf-posix (Depends-on): Likewise.
39640         * modules/vasprintf-posix (Depends-on): Likewise.
39641         * modules/vfprintf-posix (Depends-on): Likewise.
39642         * modules/vsnprintf-posix (Depends-on): Likewise.
39643         * modules/vsprintf-posix (Depends-on): Likewise.
39644         * modules/frexpl-tests (Depends-on): Likewise.
39645         * modules/printf-frexpl-tests (Depends-on): Likewise.
39646
39647 2007-03-24  Bruno Haible  <bruno@clisp.org>
39648
39649         * lib/float+.h: New file.
39650         * lib/isnan.c: Include float+.h.
39651         (SIZE): New macro.
39652         (FUNC): Compare only SIZE bytes of the value.
39653         * lib/vasnprintf.c: Include float+.h.
39654         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
39655         SIZEOF_LDBL or SIZEOF_DBL bytes.
39656         * modules/isnan-nolibm (Files): Add lib/float+.h.
39657         * modules/isnanl-nolibm (Files): Add lib/float+.h.
39658         * modules/isnanl (Files): Add lib/float+.h.
39659         * modules/vasnprintf (Files): Add lib/float+.h.
39660
39661 2007-03-24  Bruno Haible  <bruno@clisp.org>
39662
39663         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
39664         include isnanl-nolibm.h.
39665
39666 2007-03-24  Bruno Haible  <bruno@clisp.org>
39667
39668         * tests/test-read-file.c (main): Don't produce spurious output for
39669         expected situations. Make the test fail if it encountered unexpected
39670         results.
39671
39672 2007-03-24  Bruno Haible  <bruno@clisp.org>
39673
39674         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
39675         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
39676
39677 2007-03-24  Bruno Haible  <bruno@clisp.org>
39678
39679         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
39680
39681 2007-03-24  Bruno Haible  <bruno@clisp.org>
39682
39683         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
39684         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
39685
39686         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
39687         * modules/utf8-ucs4: Turn into a symbolic link to module
39688         unistr/u8-mbtouc.
39689
39690         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
39691         utf8-ucs4-unsafe.
39692         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
39693         unistr/u8-mbtouc-unsafe.
39694
39695         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
39696         * modules/utf16-ucs4: Turn into a symbolic link to module
39697         unistr/u16-mbtouc.
39698
39699         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
39700         utf16-ucs4-unsafe.
39701         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
39702         unistr/u16-mbtouc-unsafe.
39703
39704         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
39705         * modules/ucs4-utf8: Turn into a symbolic link to module
39706         unistr/u8-ubtomb.
39707
39708         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
39709         * modules/ucs4-utf16: Turn into a symbolic link to module
39710         unistr/u16-ubtomb.
39711
39712 2007-03-24  Bruno Haible  <bruno@clisp.org>
39713
39714         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
39715         Enable the function only if HAVE_INLINE.
39716         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
39717         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39718         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
39719         Enable the function only if HAVE_INLINE.
39720         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
39721         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
39722         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
39723         Enable the function only if HAVE_INLINE.
39724         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
39725         Enable the function only if HAVE_INLINE.
39726         * modules/utf8-ucs4: Update.
39727         * modules/utf8-ucs4-unsafe: Update.
39728         * modules/utf16-ucs4: Update.
39729         * modules/utf16-ucs4-unsafe: Update.
39730         * modules/ucs4-utf8: Update.
39731         * modules/ucs4-utf16: Update.
39732
39733 2007-03-24  Bruno Haible  <bruno@clisp.org>
39734
39735         * lib/utf8-ucs4.h: Remove file.
39736         * lib/utf8-ucs4-unsafe.h: Remove file.
39737         * lib/utf16-ucs4.h: Remove file.
39738         * lib/utf16-ucs4-unsafe.h: Remove file.
39739         * lib/ucs4-utf8.h: Remove file.
39740         * lib/ucs4-utf16.h: Remove file.
39741         * lib/unistr.h: Include their previous contents.
39742         * m4/utf-ucs4.m4: Remove file.
39743         * m4/ucs4-utf.m4: Remove file.
39744         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
39745         (Depends-on): Add unistr/base.
39746         (configure.ac): Remove gl_UTF_UCS4.
39747         (Makefile.am): Update.
39748         (Include): Change to unistr.h.
39749         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
39750         (Depends-on): Add unistr/base.
39751         (configure.ac): Remove gl_UTF_UCS4.
39752         (Makefile.am): Update.
39753         (Include): Change to unistr.h.
39754         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
39755         (Depends-on): Add unistr/base.
39756         (configure.ac): Remove gl_UTF_UCS4.
39757         (Makefile.am): Update.
39758         (Include): Change to unistr.h.
39759         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
39760         (Depends-on): Add unistr/base.
39761         (configure.ac): Remove gl_UTF_UCS4.
39762         (Makefile.am): Update.
39763         (Include): Change to unistr.h.
39764         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
39765         (Depends-on): Add unistr/base.
39766         (configure.ac): Remove gl_UCS4_UTF.
39767         (Makefile.am): Update.
39768         (Include): Change to unistr.h.
39769         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
39770         (Depends-on): Add unistr/base.
39771         (configure.ac): Remove gl_UCS4_UTF.
39772         (Makefile.am): Update.
39773         (Include): Change to unistr.h.
39774         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
39775         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
39776         utf8-ucs4-unsafe.h.
39777         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
39778         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
39779         utf16-ucs4-unsafe.h.
39780         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
39781         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
39782         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
39783         * lib/unistr/u8-strchr.c: Likewise.
39784         * lib/unistr/u8-strrchr.c: Likewise.
39785         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
39786         * lib/unistr/u16-strchr.c: Likewise.
39787         * lib/unistr/u16-strrchr.c: Likewise.
39788         * lib/striconveh.c: Update.
39789         * lib/linebreak.c: Update.
39790
39791 2007-03-24  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
39794         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
39795
39796 2007-03-22  Bruno Haible  <bruno@clisp.org>
39797
39798         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
39799
39800 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
39801
39802         * MODULES.html.sh (File system functions): New module write-any-file.
39803         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
39804         * m4/write-any-file.m4: New files.
39805
39806 2007-03-23  Eric Blake  <ebb9@byu.net>
39807
39808         * gnulib-tool: Rearrange space-tab sequences, since some editors
39809         like to eat them.
39810
39811 2007-03-23  Eric Blake  <ebb9@byu.net>
39812
39813         * lib/version-etc.c (version_etc_va): Update license wording to
39814         be more concise.  Recommended by Richard Stallman.
39815
39816 2007-03-22  Bruno Haible  <bruno@clisp.org>
39817
39818         * lib/poll.c (MSG_PEEK): New fallback definition.
39819
39820 2007-03-22  Bruno Haible  <bruno@clisp.org>
39821
39822         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
39823         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
39824         (main): Update.
39825         Fixes a compilation error on BeOS.
39826
39827 2007-03-22  Bruno Haible  <bruno@clisp.org>
39828
39829         * modules/frexpl-tests: New file.
39830         * tests/test-frexpl.c: New file.
39831
39832         * modules/frexpl: New file.
39833         * m4/frexpl.m4: New file.
39834         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
39835         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
39836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
39837         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
39838         (Depends-on): Add frexpl. Remove isnanl-nolibm.
39839         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
39840
39841 2007-03-22  Bruno Haible  <bruno@clisp.org>
39842
39843         * lib/frexpl.c: Share code with lib/frexp.c.
39844         * modules/mathl (Files): Add lib/frexp.c.
39845         (Depends-on): Add isnanl-nolibm.
39846
39847 2007-03-22  Bruno Haible  <bruno@clisp.org>
39848
39849         * modules/printf-frexp (Files): Add m4/frexp.m4.
39850         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
39851         only if the found frexp function actually works.
39852
39853 2007-03-22  Bruno Haible  <bruno@clisp.org>
39854
39855         * lib/frexp.c: Remove older implementation that uses divisions.
39856
39857 2007-03-21  Bruno Haible  <bruno@clisp.org>
39858
39859         * modules/frexp-tests: New file.
39860         * tests/test-frexp.c: New file.
39861
39862         * modules/frexp: New file.
39863         * lib/frexp.c: New file.
39864         * m4/frexp.m4: New file.
39865         * lib/math_.h (frexp): New declaration.
39866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
39867         REPLACE_FREXP.
39868         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
39869
39870 2007-03-21  Bruno Haible  <bruno@clisp.org>
39871
39872         * modules/isnanl-tests: New file.
39873         * tests/test-isnanl.c: New file.
39874
39875         * modules/isnanl: New file.
39876         * lib/isnanl.h: New file.
39877         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
39878         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
39879         gl_FUNC_ISNANL_WORKS.
39880         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
39881         New macros.
39882
39883 2007-03-21  Bruno Haible  <bruno@clisp.org>
39884
39885         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
39886         lib/isnanl.h.
39887         (Include): Update.
39888         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
39889         * lib/vasnprintf.c: Update.
39890         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
39891         tests/test-isnanl.h, remove tests/test-isnanl.c.
39892         (Makefile.am): Update.
39893         * tests/test-isnanl-nolibm.c: New file.
39894         * tests/test-isnanl.h: New file.
39895         * tests/test-isnanl.c: Remove file.
39896
39897 2007-03-21  Jim Meyering  <jim@meyering.net>
39898
39899         When trying to open ".", treat ESTALE like EACCES.
39900         * lib/savewd.c (savewd_save): Resort to forking not just upon
39901         failure with EACCES, but also when errno is ESTALE.
39902
39903 2007-03-20  Bruno Haible  <bruno@clisp.org>
39904
39905         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
39906         Needed on AIX 5.1. Reported by Matthew Woehlke.
39907
39908 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39909
39910         Suggestions by Bruno Haible:
39911         * lib/acl-internal.h: Include "gettext.h" rather than rolling
39912         our own.
39913         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
39914         * modules/acl (Depends-on): Add gettext.
39915
39916 2007-03-19  Bruno Haible  <bruno@clisp.org>
39917
39918         * modules/iconvme: Remove file.
39919         * lib/iconvme.h: Remove file.
39920         * lib/iconvme.c: Remove file.
39921         * m4/iconvme.m4: Remove file.
39922
39923 2007-03-19  Bruno Haible  <bruno@clisp.org>
39924
39925         * doc/relocatable-maint.texi: Break long shell script line.
39926         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39927
39928 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39929
39930         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
39931         handle file_has_acl.
39932         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
39933         * lib/acl.c: Move header inclusions and related macro defns into
39934         lib/acl-internal.h.
39935         (S_ISLNK): Remove defn, since that's now done for us.
39936         (file_has_acl): Move to lib/file-has-acl.c.
39937         Call acl_trivial if available.  This is the crucial part of the fix.
39938         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
39939         shared within the library.  Rewrite a bit, partly to make it compatible
39940         with the GNU coding style.
39941         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
39942         Remove unnecessary double-quotes.
39943         Don't test for acl_to_text; the build will catch that.
39944         Replace acl_entries if it doesn't exist and it is needed.
39945         Check for -lsec and acl_trivial (as used on Solaris 10).
39946         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
39947         lib/file-has-acl.c.
39948         (Depends-on): Add sys_stat, for S_ISLNK.
39949
39950 2007-03-19  Ben Pfaff  <blp@gnu.org>
39951
39952         * doc/gnulib.texi: Fix typos.
39953         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
39954
39955 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
39956
39957         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
39958         If size is zero here, buf must be zero.
39959
39960 2007-03-19  Simon Josefsson  <simon@josefsson.org>
39961
39962         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
39963         <bruno@clisp.org>.
39964
39965 2007-03-18  Bruno Haible  <bruno@clisp.org>
39966
39967         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
39968         Suggested by Eric Blake.
39969
39970 2007-03-18  Ben Pfaff  <blp@gnu.org>
39971
39972         * doc/relocatable.texi: Recommend using as prefix a directory
39973         that does not exist and will never be created.  Based on
39974         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
39975         and others.
39976
39977 2007-03-17  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/fchownat.c: Include lchown.h.
39980
39981 2007-03-17  Bruno Haible  <bruno@clisp.org>
39982
39983         Fix endless loop when the given allocated size was > INT_MAX.
39984         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
39985         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
39986         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
39987         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
39988         * lib/sprintf.c (sprintf): Likewise.
39989
39990 2007-03-17  Bruno Haible  <bruno@clisp.org>
39991
39992         * tests/test-argp-2.sh (func_compare): Output a context diff.
39993
39994 2007-03-17  Bruno Haible  <bruno@clisp.org>
39995
39996         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
39997         locale's decimal-point character.
39998
39999 2007-03-17  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40002         before comparing it. Needed because on some platforms (e.g. x86) a
40003         'long double' occupies less bytes than sizeof (long double).
40004
40005 2007-03-17  Bruno Haible  <bruno@clisp.org>
40006
40007         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40008         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40009         * tests/test-getaddrinfo.c (simple): Likewise.
40010         * tests/test-read-file.c (main): Likewise.
40011
40012 2007-03-17  Bruno Haible  <bruno@clisp.org>
40013
40014         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40015
40016 2007-03-17  Bruno Haible  <bruno@clisp.org>
40017
40018         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40019         unused variable.
40020
40021 2007-03-17  Bruno Haible  <bruno@clisp.org>
40022
40023         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40024         * tests/test-c-strncasecmp.c: Likewise.
40025
40026 2007-03-17  Bruno Haible  <bruno@clisp.org>
40027
40028         * modules/stdlib (Depends-on): Add unistd.
40029         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40030         Needed for MacOS X 10.3.
40031
40032 2007-03-17  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40035
40036 2007-03-17  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40039
40040 2007-03-17  Bruno Haible  <bruno@clisp.org>
40041
40042         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40043         to reflect files copied from gnulib (with or without modifications).
40044         Suggested by Jim Meyering.
40045
40046 2007-03-17  Eric Blake  <ebb9@byu.net>
40047
40048         * NEWS: Document stdlib change from 2007-02-18.
40049
40050 2007-03-17  Jim Meyering  <jim@meyering.net>
40051
40052         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40053         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40054         someone uses a name containing shell meta-characters.
40055         Reported by Alfred M. Szmidt.
40056
40057         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40058
40059 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40060
40061         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40062         and copy gettext configuration files only if configure.ac contains
40063         a use of AM_GNU_GETTEXT_VERSION.
40064
40065 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40066
40067         * build-aux/bootstrap (gnulib_name): New variable.
40068         (gnulib_tool_options): Use it.
40069
40070 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40071
40072         * tests/test-des.c: Use new namespace.
40073
40074 2007-03-15  Bruno Haible  <bruno@clisp.org>
40075
40076         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40077         Reported by James Youngman <jay@gnu.org>.
40078
40079 2007-03-15  Bruno Haible  <bruno@clisp.org>
40080
40081         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40082         declared prototype. Needed with cc on OSF/1 5.1.
40083
40084 2007-03-15  Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40087         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40088         (struct gl_list_implementation): Add dispose_fn argument to the
40089         'create_empty', 'create' methods.
40090         (struct gl_list_impl_base): Add field 'dispose_fn'.
40091         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40092         argument.
40093         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40094         dispose_fn argument.
40095         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40096         dispose_fn on the dropped values.
40097         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40098         dispose_fn argument.
40099         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40100         dropped values.
40101         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40102         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40103         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40104         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40105         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40106         argument.
40107         (gl_tree_list_free): Call dispose_fn on the dropped values.
40108         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40109         the dropped values.
40110         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40111         Add dispose_fn argument.
40112         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40113         Call dispose_fn on the dropped values.
40114         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40115         Add dispose_fn argument.
40116         (gl_sublist_create): Initialize the 'dispose_fn' field.
40117         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40118         * tests/test-array_list.c (main): Update.
40119         * tests/test-carray_list.c (main): Update.
40120         * tests/test-avltree_list.c (main): Update.
40121         * tests/test-rbtree_list.c (main): Update.
40122         * tests/test-avltreehash_list.c (main): Update.
40123         * tests/test-rbtreehash_list.c (main): Update.
40124         * tests/test-linked_list.c (main): Update.
40125         * tests/test-linkedhash_list.c (main): Update.
40126         * tests/test-array_oset.c (main): Update.
40127
40128 2007-03-15  Bruno Haible  <bruno@clisp.org>
40129
40130         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40131         (gl_oset_create_empty): Add dispose_fn argument.
40132         (struct gl_oset_implementation): Add dispose_fn argument to
40133         'create_empty' method.
40134         (struct gl_oset_impl_base): Add dispose_fn field.
40135         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40136         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40137         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40138         values.
40139         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40140         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40141         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40142         dropped value.
40143         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40144         dropped value.
40145         * tests/test-array_oset.c (main): Update.
40146         * tests/test-avltree_oset.c (main): Update.
40147         * tests/test-rbtree_oset.c (main): Update.
40148         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40149
40150 2007-03-13  Bruno Haible  <bruno@clisp.org>
40151
40152         * tests/test-stdbool.c (i): Update after last patch.
40153
40154 2007-03-12  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40157         the iswprint macro. Needed on Solaris 2.5.1.
40158
40159 2007-03-12  Bruno Haible  <bruno@clisp.org>
40160
40161         * tests/test-printf-frexp.c (main): Declare x as volatile.
40162
40163 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40164
40165         * doc/gnulib.texi (Build robot for gnulib): New section.
40166
40167 2007-03-12  Jim Meyering  <jim@meyering.net>
40168
40169         * build-aux/bootstrap: New file.
40170         * build-aux/bootstrap.conf: New file, from coreutils.
40171
40172 2007-03-11  Bruno Haible  <bruno@clisp.org>
40173
40174         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40175
40176 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40177
40178         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40179         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40180         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40181
40182 2007-03-11  Bruno Haible  <bruno@clisp.org>
40183
40184         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40185         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40186
40187 2007-03-11  Bruno Haible  <bruno@clisp.org>
40188
40189         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40190         formula. Needed for SunPRO C 5.0.
40191
40192 2007-03-11  Bruno Haible  <bruno@clisp.org>
40193
40194         * modules/long-options (Depends-on): Add getopt.
40195
40196 2007-03-11  Bruno Haible  <bruno@clisp.org>
40197
40198         * modules/modechange (Depends-on): Add stdbool.
40199
40200 2007-03-11  Bruno Haible  <bruno@clisp.org>
40201
40202         * modules/i-ring (Depends-on): Add stdbool.
40203
40204 2007-03-11  Bruno Haible  <bruno@clisp.org>
40205
40206         * modules/gc-des (Depends-on): Add stdbool.
40207
40208 2007-03-11  Bruno Haible  <bruno@clisp.org>
40209
40210         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40211
40212 2007-03-11  Bruno Haible  <bruno@clisp.org>
40213
40214         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40215
40216 2007-03-11  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40219
40220 2007-03-11  Bruno Haible  <bruno@clisp.org>
40221
40222         * lib/vasnprintf.c (sprintf): Undefine.
40223
40224 2007-03-11  Bruno Haible  <bruno@clisp.org>
40225
40226         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40227         initializers in SunPRO C and Compaq C compilers.
40228
40229 2007-03-11  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40232         decrementing code ANSI C compliant.
40233
40234 2007-03-11  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40237         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40238
40239 2007-03-11  Bruno Haible  <bruno@clisp.org>
40240
40241         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40242         <stdbool.h> substitute doesn't pass.
40243
40244 2007-03-11  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40247
40248 2007-03-11  Bruno Haible  <bruno@clisp.org>
40249
40250         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40251         script, for submission to autobuild.josefsson.org.
40252
40253 2007-03-10  Bruno Haible  <bruno@clisp.org>
40254
40255         * modules/canonicalize-lgpl-tests: New file.
40256         * tests/test-canonicalize-lgpl.sh: New file.
40257         * tests/test-canonicalize-lgpl.c: New file.
40258
40259         * modules/c-strcase-tests: New file.
40260         * tests/test-c-strcase.sh: New file.
40261         * tests/test-c-strcasecmp.c: New file.
40262         * tests/test-c-strncasecmp.c: New file.
40263
40264         * modules/atexit-tests: New file.
40265         * tests/test-atexit.sh: New file.
40266         * tests/test-atexit.c: New file.
40267
40268 2007-03-10  Bruno Haible  <bruno@clisp.org>
40269
40270         * tests/test-binary-io.sh: Use temporary filenames that are not so
40271         likely to clash with those of other tests (in a parallel make).
40272         * tests/test-binary-io.c: Likewise.
40273
40274 2007-03-10  Bruno Haible  <bruno@clisp.org>
40275
40276         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40277         fallback; use #error instead.
40278         Suggested by Simon Josefsson.
40279
40280 2007-03-10  Bruno Haible  <bruno@clisp.org>
40281
40282         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40283         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40284         first and the last.
40285
40286 2007-03-10  Bruno Haible  <bruno@clisp.org>
40287
40288         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40289
40290 2007-03-10  Bruno Haible  <bruno@clisp.org>
40291
40292         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40293         "make distcheck".
40294         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40295         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40296         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40297
40298 2007-03-10  Bruno Haible  <bruno@clisp.org>
40299
40300         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40301         variable.
40302         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40303         variable.
40304
40305 2007-03-09  Eric Blake  <ebb9@byu.net>
40306         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40307
40308         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40309         types are not being provided by gnulib.
40310         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40311         types are supported.
40312
40313 2007-03-10  Bruno Haible  <bruno@clisp.org>
40314
40315         * lib/stdio_.h (__attribute__): New macro.
40316         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40317         vsprintf): Specify __attribute__ __format__ for GCC.
40318         Suggested by Eric Blake.
40319
40320 2007-03-09  Bruno Haible  <bruno@clisp.org>
40321
40322         * modules/printf-posix-tests: New file.
40323         * tests/test-printf-posix.sh: New file.
40324         * tests/test-printf-posix.c: New file.
40325
40326         * modules/printf-posix: New file.
40327         * lib/printf.c: New file.
40328         * m4/printf-posix-rpl.m4: New file.
40329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40330         REPLACE_PRINTF.
40331         * lib/stdio_.h (printf): New declaration.
40332         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40333         ____strfmon____): New macros.
40334         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40335         REPLACE_PRINTF.
40336
40337 2007-03-09  Bruno Haible  <bruno@clisp.org>
40338
40339         * tests/test-vasnprintf-posix2.sh: New file.
40340         * tests/test-vasnprintf-posix2.c: New file.
40341         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40342         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40343         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40344
40345         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40346         a locale dependent decimal point, rather than always '.'.
40347
40348 2007-03-09  Eric Blake  <ebb9@byu.net>
40349
40350         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40351         spite of platforms like Tandem/NSK that define it to -1.
40352
40353 2007-03-08  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/vprintf-posix-tests: New file.
40356         * tests/test-vprintf-posix.sh: New file.
40357         * tests/test-vprintf-posix.c: New file.
40358         * tests/test-printf-posix.h: New file.
40359
40360         * modules/vprintf-posix: New file.
40361         * lib/vprintf.c: New file.
40362         * m4/vprintf-posix.m4: New file.
40363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40364         REPLACE_VPRINTF.
40365         * lib/stdio_.h (vprintf): New declaration.
40366         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40367         REPLACE_VPRINTF.
40368
40369 2007-03-08  Bruno Haible  <bruno@clisp.org>
40370
40371         * modules/fprintf-posix-tests: New file.
40372         * tests/test-fprintf-posix.sh: New file.
40373         * tests/test-fprintf-posix.c: New file.
40374
40375         * modules/fprintf-posix: New file.
40376         * lib/fprintf.c: New file.
40377         * m4/fprintf-posix.m4: New file.
40378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40379         REPLACE_FPRINTF.
40380         * lib/stdio_.h (fprintf): New declaration.
40381         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40382         REPLACE_FPRINTF.
40383
40384 2007-03-08  Bruno Haible  <bruno@clisp.org>
40385
40386         * modules/vfprintf-posix-tests: New file.
40387         * tests/test-vfprintf-posix.sh: New file.
40388         * tests/test-vfprintf-posix.c: New file.
40389         * tests/test-fprintf-posix.h: New file.
40390         * tests/test-fprintf-posix.out: New file.
40391
40392         * modules/vfprintf-posix: New file.
40393         * lib/vfprintf.c: New file.
40394         * m4/vfprintf-posix.m4: New file.
40395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40396         REPLACE_VFPRINTF.
40397         * lib/stdio_.h (vfprintf): New declaration.
40398         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40399         REPLACE_VFPRINTF.
40400
40401 2007-03-08  Bruno Haible  <bruno@clisp.org>
40402
40403         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40404
40405 2007-03-08  Bruno Haible  <bruno@clisp.org>
40406
40407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40408         instead of 'expr' invocations.
40409         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40410         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40411         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40412         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40413         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40414         Suggested by Paul Eggert.
40415
40416 2007-03-08  Bruno Haible  <bruno@clisp.org>
40417
40418         * modules/fseterr-tests: New file.
40419         * tests/test-fseterr.c: New file.
40420
40421         * modules/fseterr: New file.
40422         * lib/fseterr.h: New file.
40423         * lib/fseterr.c: New file.
40424
40425 2007-03-08  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40428         * lib/getopt_.h: Likewise.
40429         * lib/mbswidth.h: Likewise.
40430         * lib/setenv.h: Likewise.
40431         * lib/vasnprintf.h: Likewise.
40432         * lib/vasprintf.h: Likewise.
40433         * lib/verror.h: Likewise.
40434         * lib/xsetenv.h: Likewise.
40435         * lib/xvasprintf.h: Likewise.
40436
40437 2007-03-08  Jim Meyering  <jim@meyering.net>
40438
40439         * users.txt: Add parted.
40440
40441         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40442
40443 2007-03-07  Bruno Haible  <bruno@clisp.org>
40444
40445         * m4/printf.m4: Make the shell script snippets copy&pastable.
40446
40447 2007-03-02  Bruno Haible  <bruno@clisp.org>
40448
40449         * lib/netinet_in_.h: New file.
40450         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40451         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40452         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40453         (Depends-on): Add absolute-header.
40454         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40455         into netinet/in.h.
40456
40457 2007-03-03  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/sys_select_.h: New file.
40460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40461         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40462         * modules/sys_select (Files): Add lib/sys_select_.h.
40463         (Depends-on): Add absolute-header.
40464         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40465         into sys/select.h.
40466
40467 2007-03-02  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40470         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40471         values.
40472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40473         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40474         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40475         * modules/sys_socket (Depends-on): Add absolute-header.
40476         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40477         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40478         (Include): Remove requirement of inclusion of <sys/types.h>.
40479
40480 2007-03-02  Bruno Haible  <bruno@clisp.org>
40481
40482         * lib/byteswap_.h (bswap_32): Fix formula.
40483
40484 2007-03-06  Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/sprintf-posix-tests: New file.
40487         * tests/test-sprintf-posix.c: New file.
40488
40489         * modules/sprintf-posix: New file.
40490         * lib/sprintf.c: New file.
40491         * m4/sprintf-posix.m4: New file.
40492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40493         REPLACE_SPRINTF.
40494         * lib/stdio_.h (sprintf): New declaration.
40495         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40496         REPLACE_SPRINTF.
40497
40498 2007-03-06  Bruno Haible  <bruno@clisp.org>
40499
40500         * modules/vsprintf-posix-tests: New file.
40501         * tests/test-vsprintf-posix.c: New file.
40502         * tests/test-sprintf-posix.h: New file.
40503
40504         * modules/vsprintf-posix: New file.
40505         * lib/vsprintf.c: New file.
40506         * m4/vsprintf-posix.m4: New file.
40507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40508         REPLACE_VSPRINTF.
40509         * lib/stdio_.h (vsprintf): New declaration.
40510         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40511         REPLACE_VSPRINTF.
40512
40513 2007-03-06  Bruno Haible  <bruno@clisp.org>
40514
40515         * modules/vsnprintf (Depend-on): Remove minmax.
40516
40517 2007-03-06  Bruno Haible  <bruno@clisp.org>
40518
40519         * modules/snprintf-posix-tests: New file.
40520         * tests/test-snprintf-posix.c: New file.
40521
40522         * modules/snprintf-posix: New file.
40523         * m4/snprintf-posix.m4: New file.
40524         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40525         gl_FUNC_SNPRINTF.
40526         (gl_FUNC_SNPRINTF): Invoke it.
40527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
40528         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
40529         is set.
40530         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
40531
40532 2007-03-06  Bruno Haible  <bruno@clisp.org>
40533
40534         * modules/vsnprintf-posix-tests: New file.
40535         * tests/test-vsnprintf-posix.c: New file.
40536         * tests/test-snprintf-posix.h: New file.
40537
40538         * modules/vsnprintf-posix: New file.
40539         * m4/vsnprintf-posix.m4: New file.
40540         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
40541         gl_FUNC_VSNPRINTF.
40542         (gl_FUNC_VSNPRINTF): Invoke it.
40543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
40544         * lib/stdio_.h (vsnprintf): Define as a replacement if
40545         REPLACE_VSNPRINTF is set.
40546         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
40547
40548 2007-03-06  Bruno Haible  <bruno@clisp.org>
40549
40550         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
40551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
40552
40553 2007-03-06  Bruno Haible  <bruno@clisp.org>
40554
40555         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
40556         (asinl): Declare also if HAVE_DECL_ASINL is set.
40557         (atanl): Declare also if HAVE_DECL_ATANL is set.
40558         (ceill): Declare also if HAVE_DECL_CEILL is set.
40559         (cosl): Declare also if HAVE_DECL_COSL is set.
40560         (expl): Declare also if HAVE_DECL_EXPL is set.
40561         (floorl): Declare also if HAVE_DECL_FLOORL is set.
40562         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
40563         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
40564         (logl): Declare also if HAVE_DECL_LOGL is set.
40565         (sinl): Declare also if HAVE_DECL_SINL is set.
40566         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
40567         (tanl): Declare also if HAVE_DECL_TANL is set.
40568         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
40569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
40570         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
40571         declaration of frexpl, ldexpl.
40572         * modules/printf-frexpl (Depends-on): Add math.
40573         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
40574
40575 2007-03-05  Bruno Haible  <bruno@clisp.org>
40576
40577         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
40578         frexpl and ldexpl are declared.
40579         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
40580
40581 2007-03-05  Bruno Haible  <bruno@clisp.org>
40582
40583         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
40584         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
40585
40586 2007-03-05  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/stdio_.h: Include <stddef.h>.
40589
40590 2007-03-05  Bruno Haible  <bruno@clisp.org>
40591
40592         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
40593
40594 2007-03-05  Bruno Haible  <bruno@clisp.org>
40595
40596         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
40597         NetBSD 4, from Ralf Wildenhues.
40598
40599 2007-03-04  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/vasprintf.h: Update #if logic for the case when the functions
40602         exist but are overridden.
40603
40604 2007-03-04  Bruno Haible  <bruno@clisp.org>
40605
40606         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
40607         implementations: glibc-2.4 and MacOS X 10.3.
40608         * tests/test-vasnprintf-posix.c (test_function): Test also the case
40609         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
40610         * tests/test-vasprintf-posix.c (test_function): Likewise.
40611
40612 2007-03-04  Bruno Haible  <bruno@clisp.org>
40613
40614         * modules/vasprintf-posix-tests: New file.
40615         * tests/test-vasprintf-posix.c: New file.
40616
40617         * modules/vasprintf-posix: New file.
40618         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
40619         defined.
40620         * m4/vasprintf-posix.m4: New file.
40621         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
40622         gl_FUNC_VASPRINTF.
40623         (gl_FUNC_VASPRINTF): Invoke it.
40624         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
40625         here.
40626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
40627
40628 2007-03-04  Bruno Haible  <bruno@clisp.org>
40629
40630         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
40631         REPLACE_GETTIMEOFDAY.
40632         * modules/sys_time (Makefile.am): Likewise.
40633         * m4/sys_time_h.m4: Likewise.
40634         * m4/gettimeofday.m4: Likewise.
40635
40636 2007-03-04  Bruno Haible  <bruno@clisp.org>
40637
40638         * modules/vasnprintf-posix-tests: New file.
40639         * tests/test-vasnprintf-posix.c: New file.
40640
40641         * modules/vasnprintf-posix: New file.
40642         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
40643         printf-frexpl.h.
40644         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
40645         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
40646         REPLACE_VASNPRINTF is defined.
40647         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
40648         gl_FUNC_VASNPRINTF.
40649         (gl_FUNC_VASNPRINTF): Invoke it.
40650         * m4/vasnprintf-posix.m4: New file.
40651         * m4/printf.m4: New file.
40652
40653 2007-03-04  Bruno Haible  <bruno@clisp.org>
40654
40655         Compile progreloc.c only if --enable-relocatable is specified.
40656         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
40657         if --enable-relocatable was specified.
40658         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
40659         lib_SOURCES.
40660
40661 2007-03-04  Jim Meyering  <jim@meyering.net>
40662
40663         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
40664         Use it consistently, rather than enumerating errno constants.
40665
40666 2007-03-04  Bruno Haible  <bruno@clisp.org>
40667
40668         * modules/xvasprintf-tests: New file.
40669         * tests/test-xvasprintf.c: New file.
40670
40671         * modules/vasprintf-tests: New file.
40672         * tests/test-vasprintf.c: New file.
40673
40674         * modules/vasnprintf-tests: New file.
40675         * tests/test-vasnprintf.c: New file.
40676
40677         * modules/vsnprintf-tests: New file.
40678         * tests/test-vsnprintf.c: New file.
40679
40680         * modules/snprintf-tests: New file.
40681         * tests/test-snprintf.c: New file.
40682
40683 2007-03-04  Bruno Haible  <bruno@clisp.org>
40684
40685         Compile relocatable.c only if --enable-relocatable is specified.
40686         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
40687         gl_RELOCATABLE_LIBRARY.
40688         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
40689         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
40690         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
40691         gl_RELOCATABLE_LIBRARY.
40692         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
40693         (Makefile.am): Remove lib_SOURCES.
40694         * modules/relocatable-lib-lgpl (configure.ac): Invoke
40695         gl_RELOCATABLE_LIBRARY.
40696         (Makefile.am): Remove lib_SOURCES.
40697         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
40698         always.
40699         * modules/relocatable-prog-wrapper (configure.ac): Invoke
40700         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
40701
40702 2007-03-04  Bruno Haible  <bruno@clisp.org>
40703
40704         * modules/argmatch-tests: New file.
40705         * tests/test-argmatch.c: New file.
40706
40707         * tests/test-allocsa.c (main): Halve the number of loop runs.
40708
40709         * modules/alloca-opt-tests: New file.
40710         * tests/test-alloca-opt.c: New file.
40711
40712 2007-03-04  Jim Meyering  <jim@meyering.net>
40713
40714         Work around difference between Linux ACLs and Solaris 10 ZFS.
40715         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
40716         for EINVAL.
40717
40718 2007-03-03  Bruno Haible  <bruno@clisp.org>
40719
40720         * modules/relocatable-prog (Depends-on): Add back progreloc's
40721         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
40722
40723 2007-03-03  Bruno Haible  <bruno@clisp.org>
40724
40725         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
40726         * modules/relocatable-lib: New file.
40727
40728 2007-03-03  Bruno Haible  <bruno@clisp.org>
40729
40730         * modules/relocatable-prog: Renamed from modules/relocatable.
40731         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
40732
40733 2007-03-03  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/relocatable-script (Files): Add doc/relocatable.texi,
40736         m4/relocatable-lib.m4.
40737         (Depends-on): Remove 'relocatable'.
40738         (configure.ac): Add gl_RELOCATABLE_NOP.
40739
40740 2007-03-03  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/relocatable-prog-wrapper: New file.
40743         * modules/relocatable (Depends-on): Add it. Remove all other
40744         dependencies except progname.
40745         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
40746
40747         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
40748         (gl_FUNC_STRERROR): Nop.
40749         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
40750
40751         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
40752         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
40753
40754         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
40755         (gl_FUNC_READLINK): Update.
40756
40757         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
40758
40759 2007-03-03  Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/xreadlink.c: Include <unistd.h> unconditionally.
40762         * modules/xreadlink (Depends-on): Add unistd.
40763         * modules/xreadlink-with-size (Depends-on): Likewise.
40764
40765 2007-03-03  Bruno Haible  <bruno@clisp.org>
40766
40767         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
40768         extracted from gt_FUNC_SETENV.
40769         (gt_FUNC_SETENV): Remove macro.
40770         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
40771         remove gt_FUNC_SETENV.
40772
40773 2007-03-03  Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
40776         ENABLE_RELOCATABLE here.
40777         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
40778
40779 2007-03-03  Bruno Haible  <bruno@clisp.org>
40780
40781         * modules/rbtreehash-list-tests (Depends-on): Add progname.
40782         * tests/test-rbtreehash_list.c: Include progname.h.
40783         (main): Call set_program_name.
40784
40785         * modules/rbtree-oset-tests (Depends-on): Add progname.
40786         * tests/test-rbtree_oset.c: Include progname.h.
40787         (main): Call set_program_name.
40788
40789         * modules/rbtree-list-tests (Depends-on): Add progname.
40790         * tests/test-rbtree_list.c: Include progname.h.
40791         (main): Call set_program_name.
40792
40793         * modules/linked-list-tests (Depends-on): Add progname.
40794         * tests/test-linked_list.c: Include progname.h.
40795         (main): Call set_program_name.
40796
40797 2007-03-03  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
40800         All uses of __restrict changed to _Restrict_.
40801         * lib/glob_.h (__restrict): Remove macro.
40802
40803 2007-03-02  Bruno Haible  <bruno@clisp.org>
40804
40805         * modules/gettext (configure.ac): Require gettext infrastructure
40806         from version 0.16.1.
40807
40808 2007-03-02  Bruno Haible  <bruno@clisp.org>
40809
40810         * modules/linkedhash-list-tests (Depends-on): Add progname.
40811         * tests/test-linkedhash_list.c: Include progname.h.
40812         (main): Call set_program_name.
40813
40814         * modules/carray-list-tests (Depends-on): Add progname.
40815         * tests/test-carray_list.c: Include progname.h.
40816         (main): Call set_program_name.
40817
40818         * modules/avltreehash-list-tests (Depends-on): Add progname.
40819         * tests/test-avltreehash_list.c: Include progname.h.
40820         (main): Call set_program_name.
40821
40822         * modules/avltree-oset-tests (Depends-on): Add progname.
40823         * tests/test-avltree_oset.c: Include progname.h.
40824         (main): Call set_program_name.
40825
40826         * modules/avltree-list-tests (Depends-on): Add progname.
40827         * tests/test-avltree_list.c: Include progname.h.
40828         (main): Call set_program_name.
40829
40830         * modules/array-oset-tests (Depends-on): Add progname.
40831         * tests/test-array_oset.c: Include progname.h.
40832         (main): Call set_program_name.
40833
40834         * modules/array-list-tests (Depends-on): Add progname.
40835         * tests/test-array_list.c: Include progname.h.
40836         (main): Call set_program_name.
40837
40838         * modules/argp-tests (Depends-on): Add progname.
40839         * tests/test-argp.c: Include argp.h first. Include progname.h.
40840         (main): Call set_program_name.
40841
40842 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
40843
40844         * doc/gnulib-tool.texi (Initial import): Reword description of
40845         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
40846         limited effect even if defined after the first system include.
40847
40848 2007-03-01  Bruno Haible  <bruno@clisp.org>
40849
40850         * build-aux/config.libpath: Update to libtool-1.5.22.
40851         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40852
40853 2007-03-01  Bruno Haible  <bruno@clisp.org>
40854
40855         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
40856         foo_CFLAGS.
40857         Reported by Ralf Wildenhues.
40858
40859 2007-03-01  Bruno Haible  <bruno@clisp.org>
40860
40861         * build-aux/install-reloc: Remove object files left over by some
40862         compilers.
40863         Reported by Ralf Wildenhues.
40864
40865 2007-03-01  Bruno Haible  <bruno@clisp.org>
40866
40867         * build-aux/install-reloc: Break long lines.
40868
40869 2007-03-01  Bruno Haible  <bruno@clisp.org>
40870
40871         * doc/relocatable.texi: Document that it may not work on OpenBSD.
40872         Reported by Ralf Wildenhues.
40873
40874 2007-03-01  Bruno Haible  <bruno@clisp.org>
40875
40876         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
40877         include ordering constraints.
40878
40879 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
40880
40881         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
40882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
40883         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
40884         as another example.
40885         * lib/time_.h: Fix misspelling.
40886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40887         Require gl_HEADER_TIME_H_DEFAULTS.
40888         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
40889         * m4/time_r.m4 (gl_TIME_R): Likewise.
40890         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
40891
40892 2007-03-01  Bruno Haible  <bruno@clisp.org>
40893
40894         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
40895         * m4/utimens.m4 (gl_UTIMENS): Likewise.
40896
40897 2007-03-01  Jim Meyering  <jim@meyering.net>
40898
40899         * modules/xreadlink (Maintainer): Add my name.
40900         * modules/xreadlink-with-size (Depends-on): Alphabetize.
40901
40902 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
40903             Bruno Haible  <bruno@clisp.org>
40904
40905         * build-aux/install-reloc: Compile also c-ctype.c.
40906         * build-aux/relocatable.sh.in: New file.
40907         * doc/relocatable.texi: New file.
40908         * doc/relocatable-maint.texi: New file.
40909         * doc/gnulib.texi: Include relocatable-maint.texi.
40910         * lib/progreloc.c: Include unistd.h unconditionally.
40911         * lib/relocwrapper.c: Include unistd.h unconditionally.
40912         Include c-ctype.h.
40913         (add_dotbin): Use c_tolower.
40914         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
40915         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
40916         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
40917         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
40918         to m4/relocatable-lib.m4.
40919         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
40920         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
40921         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
40922         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
40923         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
40924         * modules/relocatable: New file.
40925         * modules/relocatable-lib: New file.
40926         * modules/relocatable-script: New file.
40927
40928 2007-02-28  Bruno Haible  <bruno@clisp.org>
40929
40930         Import --enable-relocatable infrastructure.
40931         * build-aux/config.libpath: New file, from GNU gettext.
40932         * build-aux/install-reloc: New file, from GNU gettext.
40933         * build-aux/reloc-ldflags: New file, from GNU gettext.
40934         * lib/relocatable.h: New file, from GNU gettext.
40935         * lib/relocatable.c: New file, from GNU gettext.
40936         * lib/relocwrapper.c: New file, from GNU gettext.
40937         * m4/relocatable.m4: New file, from GNU gettext.
40938
40939 2007-02-28  Bruno Haible  <bruno@clisp.org>
40940
40941         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
40942
40943         * modules/xreadlink: New file, from GNU gettext with modifications.
40944         * lib/xreadlink.c: New file, from GNU gettext.
40945         * lib/xreadlink.h: Add comments.
40946         (xreadlink): New declaration.
40947
40948         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
40949         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
40950         lib/xreadlink-with-size.c.
40951         (configure.ac): Remove gl_XREADLINK invocation.
40952         (Makefile.am): Augment lib_SOURCES.
40953         * m4/xreadlink.m4: Remove file.
40954         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
40955         (xreadlink_with_size): Renamed from xreadink.
40956         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
40957         * modules/canonicalize (Depends-on): Replace xreadlink with
40958         xreadlink-with-size.
40959         * lib/canonicalize.c (canonicalize_filename_mode): Update.
40960
40961 2007-02-25  Jim Meyering  <jim@meyering.net>
40962
40963         * build-aux/announce-gen: When complaining about excess arguments,
40964         list them.
40965
40966 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40967
40968         * README: Document signed integer overflow situation more
40969         accurately.
40970
40971 2007-02-25  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
40974         'a' or 'A' conversion.
40975
40976 2007-02-25  Bruno Haible  <bruno@clisp.org>
40977
40978         * modules/filename: Renamed from modules/pathname.
40979         (Files): Replace lib/pathname.h with lib/filename.h. Replace
40980         lib/concatpath.c with lib/concat-filename.c.
40981         (Makefile.am): Update.
40982         (Include): Replace pathname.h with filename.h.
40983         * lib/filename.h: Renamed from lib/pathname.h.
40984         (concatenated_filename): Renamed from concatenated_pathname.
40985         * lib/concat-filename.c: Renamed from lib/concatpath.c.
40986         (concatenated_filename): Renamed from concatenated_pathname.
40987         * lib/findprog.c: Include filename.h instead of pathname.h.
40988         (find_in_path): Update.
40989         * lib/javacomp.c: Include filename.h instead of pathname.h.
40990         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40991         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40992         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40993         is_oldgcj_14_13_usable, is_javac_usable): Update.
40994         * lib/javaexec.c: Include filename.h instead of pathname.h.
40995         (execute_java_class): Update.
40996         * modules/findprog: Update.
40997         * modules/javacomp: Update.
40998         * modules/javaexec: Update.
40999         * MODULES.html.sh (File system functions): Add 'filename', remove
41000         'pathname'.
41001
41002 2007-02-25  Bruno Haible  <bruno@clisp.org>
41003
41004         * modules/printf-frexpl-tests: New file.
41005         * tests/test-printf-frexpl.c: New file.
41006
41007         * modules/printf-frexpl: New file.
41008         * lib/printf-frexpl.h: New file.
41009         * lib/printf-frexpl.c: New file.
41010         * m4/printf-frexpl.m4: New file.
41011
41012 2007-02-25  Bruno Haible  <bruno@clisp.org>
41013
41014         * modules/printf-frexp-tests: New file.
41015         * tests/test-printf-frexp.c: New file.
41016
41017         * modules/printf-frexp: New file.
41018         * lib/printf-frexp.h: New file.
41019         * lib/printf-frexp.c: New file.
41020         * m4/printf-frexp.m4: New file.
41021
41022 2007-02-25  Bruno Haible  <bruno@clisp.org>
41023
41024         Assume automake >= 1.10 for the tests.
41025         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41026         * modules/arctwo-tests: Likewise.
41027         * modules/argp-tests: Likewise.
41028         * modules/avltree-list-tests: Likewise.
41029         * modules/avltree-oset-tests: Likewise.
41030         * modules/avltreehash-list-tests: Likewise.
41031         * modules/carray-list-tests: Likewise.
41032         * modules/crc-tests: Likewise.
41033         * modules/des-tests: Likewise.
41034         * modules/gc-arcfour-tests: Likewise.
41035         * modules/gc-arctwo-tests: Likewise.
41036         * modules/gc-des-tests: Likewise.
41037         * modules/gc-hmac-md5-tests: Likewise.
41038         * modules/gc-hmac-sha1-tests: Likewise.
41039         * modules/gc-md2-tests: Likewise.
41040         * modules/gc-md4-tests: Likewise.
41041         * modules/gc-md5-tests: Likewise.
41042         * modules/gc-pbkdf2-sha1-tests: Likewise.
41043         * modules/gc-rijndael-tests: Likewise.
41044         * modules/gc-sha1-tests: Likewise.
41045         * modules/gc-tests: Likewise.
41046         * modules/getaddrinfo-tests: Likewise.
41047         * modules/hmac-md5-tests: Likewise.
41048         * modules/hmac-sha1-tests: Likewise.
41049         * modules/linked-list-tests: Likewise.
41050         * modules/linkedhash-list-tests: Likewise.
41051         * modules/lock-tests: Likewise.
41052         * modules/md2-tests: Likewise.
41053         * modules/md4-tests: Likewise.
41054         * modules/md5-tests: Likewise.
41055         * modules/rbtree-list-tests: Likewise.
41056         * modules/rbtree-oset-tests: Likewise.
41057         * modules/rbtreehash-list-tests: Likewise.
41058         * modules/read-file-tests: Likewise.
41059         * modules/rijndael-tests: Likewise.
41060         * modules/stdint-tests: Likewise.
41061         * modules/tls-tests: Likewise.
41062
41063 2007-02-24  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41066         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41067         function; instead check whether isnan with a double argument links.
41068         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41069         function; instead check whether isnan with a 'long double' argument
41070         links.
41071         Reported by Eric Blake <ebb9@byu.net>.
41072
41073 2007-02-24  Bruno Haible  <bruno@clisp.org>
41074
41075         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41076         defined.
41077         * lib/isnanl.c: Remove all code. Just include isnan.c.
41078         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41079
41080 2007-02-25  Jim Meyering  <jim@meyering.net>
41081
41082         Avoid conflicting types for 'unsetenv' on FreeBSD.
41083         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41084         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41085         in stdlib.h.
41086
41087 2007-02-24  Bruno Haible  <bruno@clisp.org>
41088
41089         * modules/isnanl-nolibm-tests: New file.
41090         * tests/test-isnanl.c: New file.
41091
41092         * modules/isnanl-nolibm: New file.
41093         * lib/isnanl.h: New file.
41094         * lib/isnanl.c: New file.
41095         * m4/isnanl.m4: New file.
41096
41097 2007-02-24  Bruno Haible  <bruno@clisp.org>
41098
41099         * modules/isnan-nolibm-tests: New file.
41100         * tests/test-isnan.c: New file.
41101
41102         * modules/isnan-nolibm: New file.
41103         * lib/isnan.h: New file.
41104         * lib/isnan.c: New file.
41105         * m4/isnan.m4: New file.
41106
41107 2007-02-24  Bruno Haible  <bruno@clisp.org>
41108
41109         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41110         assume that an exponent fits in 20 bits.
41111
41112 2007-02-24  Jim Meyering  <jim@meyering.net>
41113
41114         * m4/regex.m4: Update the description of the configure-time option,
41115         --without-included-regex, to state accurately what the defaults are,
41116         and perhaps to give people an idea why using this option is risky.
41117
41118 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41119
41120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41121         loops on small arguments.  This attempts to avoid the problem
41122         Bruno Haible reported for AIX 4.3.2 in
41123         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41124
41125 2007-02-23  Bruno Haible  <bruno@clisp.org>
41126
41127         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41128         Needed for help2man.
41129
41130 2007-02-23  Karl Berry  <karl@gnu.org>
41131
41132         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41133         exists, foo.h should be cvs-ignored, not committed.
41134
41135 2007-02-23  Eric Blake  <ebb9@byu.net>
41136
41137         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41138         * lib/stat-time.h (includes): Likewise.
41139         * lib/utimecmp.c (includes): Likewise.
41140         * lib/utimens.h (includes): Likewise.
41141         * lib/getdate.y (includes): Also include "timespec.h" for use
41142         internal to the module.
41143         * modules/utimens (Depends-on): Revert yesterday's patch.
41144         * modules/nanosleep (Depends-on): Add missing dependency.
41145
41146 2007-02-22  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/glob.c: Don't include getlogin_r.h.
41149
41150 2007-02-22  Jim Meyering  <jim@meyering.net>
41151
41152         * modules/utimens (Depends-on): Add timespec, required for
41153         utimens.h's inclusion of timespec.h.
41154
41155 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41156
41157         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41158         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41159         Schwab in
41160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41161         I'll try to think of a better way to fix the Solaris problem.
41162
41163         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41164         like glibc; on Solaris 10, it fails with errno == EINVAL.
41165         POSIX says the behavior is unspecified if the first argument is NULL,
41166         so play it safe and never pass NULL to the system getcwd.
41167
41168 2007-02-21  Jim Meyering  <jim@meyering.net>
41169
41170         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41171         of gettimeofday.  It would conflict with the one now always
41172         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41173         an IRIX 6.5 build failure.
41174
41175 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41176
41177         Minor fixups to port to Solaris 10 with Sun C 5.8.
41178         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41179         * modules/getcwd (Depends-on): Add dirfd.
41180         * lib/putenv.c (putenv): #undef it.
41181         (rpl_putenv): New decl.
41182         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41183
41184 2007-02-20  Bruno Haible  <bruno@clisp.org>
41185
41186         * modules/stdio-tests: New file.
41187         * tests/test-stdio.c: New file.
41188
41189         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41190         (Depends-on): Add stdio.
41191         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41192         (Include): Use <stdio.h> instead of vsnprintf.h.
41193         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41194         HAVE_DECL_VSNPRINTF.
41195         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41196
41197         * modules/snprintf (Files): Remove lib/snprintf.h.
41198         (Depends-on): Add stdio.
41199         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41200         (Include): Use <stdio.h> instead of snprintf.h.
41201         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41202         HAVE_DECL_SNPRINTF.
41203         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41204         * lib/getaddrinfo.c: Likewise.
41205
41206         * modules/stdio: New file.
41207         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41208         * lib/snprintf.h: Remove file.
41209         * lib/vsnprintf.h: Remove file.
41210         * lib/.cppi-disable: Remove snprintf.h.
41211         * m4/stdio_h.m4: New file.
41212         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41213
41214 2007-02-20  Jim Meyering  <jim@meyering.net>
41215
41216         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41217         used by e.g., mingw.  From Bruno Haible.
41218
41219 2007-02-19  Bruno Haible  <bruno@clisp.org>
41220
41221         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41222         warnings.
41223         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41224
41225 2007-02-19  Bruno Haible  <bruno@clisp.org>
41226
41227         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41228         from mingw users.
41229
41230 2007-02-19  Bruno Haible  <bruno@clisp.org>
41231
41232         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41233         warnings.
41234         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41235
41236 2007-02-19  Jim Meyering  <jim@meyering.net>
41237
41238         Don't use FD after a successful "fdopendir (fd)".
41239         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41240         Reset it by calling dirfd on the just-obtained DIR*.
41241
41242         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41243         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41244
41245 2007-02-18  Bruno Haible  <bruno@clisp.org>
41246
41247         * lib/readlink.c: Include <unistd.h>.
41248         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41249         HAVE_READLINK.
41250         * modules/readlink (Depends-on): Add unistd.
41251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41252         (Include): Add <unistd.h>.
41253
41254         * lib/getlogin_r.h: Remove file.
41255         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41256         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41257         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41258         HAVE_DECL_GETLOGIN_R.
41259         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41261         (Include): Use <unistd.h> instead of getlogin_r.h.
41262
41263         * lib/getcwd.h: Remove file.
41264         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41265         * lib/xgetcwd.c: Likewise.
41266         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41267         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41268         * modules/getcwd (Files): Remove lib/getcwd.h.
41269         (Depends-on): Add unistd.
41270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41271         (Include): Use <unistd.h> instad of getcwd.h.
41272
41273         * lib/ftruncate.c: Include <unistd.h> first.
41274         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41275         Set HAVE_FTRUNCATE.
41276         * modules/ftruncate (Depends-on): Add unistd.
41277         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41278
41279         * lib/fchdir.c: Include <unistd.h> first.
41280         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41282         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41283         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41284         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41285
41286         * lib/dup2.c: Include <unistd.h> first.
41287         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41288         HAVE_DUP2.
41289         * modules/dup2 (Depends-on): Add unistd.
41290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41291
41292         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41293         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41294         REPLACE_CHOWN. Don't define chown as a macro here.
41295         * modules/chown (Depends-on): Add unistd.
41296         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41297
41298         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41299         Add definition for GL_LINK_WARNING.
41300         (chown, dup2): New declarations.
41301         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41302         link warning.
41303         (ftruncate): New declaration.
41304         (getcwd): New declaration, taken from old getcwd.h.
41305         (getlogin_r): New declaration, taken from old getlogin_r.h.
41306         (readlink): New declaration.
41307         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41308         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41309         (gl_PREREQ_UNISTD): Remove macro.
41310         (gl_UNISTD_MODULE_INDICATOR): New macro.
41311         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41312         many new variables. Don't set UNISTD_H.
41313         * modules/unistd (Description): Change.
41314         (Depends-on): Add link-warning.
41315         (configure.ac): Update.
41316         (Makefile.am): Create unistd.h always. Substitute many new variables
41317         into it.
41318
41319 2007-02-18  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41322         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41323         HAVE_GETSUBOPT.
41324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41325         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41326         * lib/getsubopt.h: Remove file.
41327         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41328         (Depends-on): Add stdlib.
41329         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41330         (Includes): Use <stdlib.h> instead of getsubopt.h.
41331         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41332         Set HAVE_GETSUBOPT.
41333         * lib/getsubopt.c: Don't include getsubopt.h.
41334
41335 2007-02-18  Bruno Haible  <bruno@clisp.org>
41336
41337         * modules/fchdir (Depends-on): Add dup2.
41338
41339 2007-02-18  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/stdlib_.h: Handle glibc's special invocation convention
41342         specially.
41343
41344 2007-02-18  Bruno Haible  <bruno@clisp.org>
41345
41346         * modules/stdlib-tests: New file.
41347         * tests/test-stdlib.c: New file.
41348
41349         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41350         (Depends-on): Add stdlib.
41351         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41352         (Includes): Use <stdlib.h> instead of mkstemp.h.
41353         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41354         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41355         * lib/mkstemp.c: Don't include mkstemp.h.
41356         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41357         * lib/stdlib--.h: Don't include mkstemp.h.
41358
41359         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41360         (Depends-on): Add stdlib.
41361         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41362         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41363         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41364         HAVE_MKDTEMP.
41365         * lib/mkdtemp.c: Don't include mkdtemp.h.
41366         * lib/clean-temp.c: Don't include mkdtemp.h.
41367
41368         * modules/exit (Files): Remove lib/exit.h.
41369         (Depends-on): Add stdlib.
41370         (Makefile.am): Remove lib_SOURCES.
41371         (Include): Use <stdlib.h> instead of exit.h.
41372         * lib/argmatch.c: Don't include exit.h.
41373         * lib/execute.c: Likewise.
41374         * lib/pagealign_alloc.c: Likewise.
41375         * lib/pipe.c: Likewise.
41376         * lib/wait-process.c: Likewise.
41377         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41378         * lib/exitfail.c: Likewise.
41379         * lib/savewd.c: Likewise.
41380         * lib/xsetenv.c: Likewise.
41381
41382         * modules/stdlib: New file.
41383         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41384         and extra comments about mkstemp().
41385         * lib/exit.h: Remove file.
41386         * lib/mkdtemp.h: Remove file.
41387         * lib/mkstemp.h: Remove file.
41388         * m4/stdlib_h.m4: New file.
41389         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41390
41391 2007-02-18  Bruno Haible  <bruno@clisp.org>
41392
41393         * modules/math-tests: New file.
41394         * tests/test-math.c: New file.
41395
41396         * modules/math: New file.
41397         * modules/mathl (Files): Remove lib/mathl.h.
41398         (Depends-on): Add math.
41399         (Makefile.am): Don't mention mathl.h.
41400         (Include): Use <math.h> instead of mathl.h.
41401         * lib/math_.h: New file.
41402         * lib/mathl.h: Remove file.
41403         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41404         mathl.h.
41405         * lib/asinl.c: Likewise.
41406         * lib/atanl.c: Likewise.
41407         * lib/ceill.c: Likewise.
41408         * lib/cosl.c: Likewise.
41409         * lib/expl.c: Likewise.
41410         * lib/floorl.c: Likewise.
41411         * lib/frexpl.c: Likewise.
41412         * lib/ldexpl.c: Likewise.
41413         * lib/logl.c: Likewise.
41414         * lib/sincosl.c: Likewise.
41415         * lib/sinl.c: Likewise.
41416         * lib/sqrtl.c: Likewise.
41417         * lib/tanl.c: Likewise.
41418         * lib/trigl.c: Likewise.
41419         * m4/math_h.m4: New file.
41420         * MODULES.html.sh (Mathematics): Add math.
41421
41422 2007-02-17  Bruno Haible  <bruno@clisp.org>
41423
41424         * modules/wctype-tests: New file.
41425         * tests/test-wctype.c: New file.
41426
41427         * modules/wchar-tests: New file.
41428         * tests/test-wchar.c: New file.
41429
41430         * modules/unistd-tests: New file.
41431         * tests/test-unistd.c: New file.
41432
41433         * modules/time-tests: New file.
41434         * tests/test-time.c: New file.
41435
41436         * modules/sysexits-tests: New file.
41437         * tests/test-sysexits.c: New file.
41438
41439         * modules/sys_time-tests: New file.
41440         * tests/test-sys_time.c: New file.
41441
41442         * modules/sys_stat-tests: New file.
41443         * tests/test-sys_stat.c: New file.
41444
41445         * modules/sys_socket-tests: New file.
41446         * tests/test-sys_socket.c: New file.
41447
41448         * modules/sys_select-tests: New file.
41449         * tests/test-sys_select.c: New file.
41450
41451         * modules/string-tests: New file.
41452         * tests/test-string.c: New file.
41453
41454         * modules/stdbool-tests: New file.
41455         * tests/test-stdbool.c: New file.
41456
41457         * modules/netinet_in-tests: New file.
41458         * tests/test-netinet_in.c: New file.
41459
41460         * modules/inttypes-tests: New file.
41461         * tests/test-inttypes.c: New file.
41462
41463         * modules/fcntl-tests: New file.
41464         * tests/test-fcntl.c: New file.
41465
41466         * modules/byteswap-tests: New file.
41467         * tests/test-byteswap.c: New file.
41468
41469         * modules/arpa_inet-tests: New file.
41470         * tests/test-arpa_inet.c: New file.
41471
41472 2007-02-17  Bruno Haible  <bruno@clisp.org>
41473
41474         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41475         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41476         if the corresponding module is not enabled. Emit link warnings if
41477         the function is used nevertheless.
41478         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41479         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41480         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41481         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41482         * modules/inttypes (Depends-on): Add link-warning.
41483         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41484         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41485         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41486         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41487         * modules/imaxdiv (configure.ac): Likewise.
41488         * modules/strtoimax (configure.ac): Likewise.
41489         * modules/strtoumax (configure.ac): Likewise.
41490
41491 2007-02-17  Bruno Haible  <bruno@clisp.org>
41492
41493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41494         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41495         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41496         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41497
41498 2007-02-17  Bruno Haible  <bruno@clisp.org>
41499
41500         * modules/link-warning: New file.
41501         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41502         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41503         * modules/string (Depends-on): Add link-warning.
41504         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41505         string.h.
41506         * MODULES.html.sh (Support for building libraries and executables): Add
41507         link-warning.
41508
41509 2007-02-17  Bruno Haible  <bruno@clisp.org>
41510
41511         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41512         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41513         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41514         long lines.
41515
41516 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41517             Bruno Haible  <bruno@clisp.org>
41518
41519         * modules/tmpfile: New file.
41520         * lib/tmpfile.c: New file.
41521         * m4/tmpfile.m4: New file.
41522         * MODULES.html.sh (func_all_modules): New section "Input/output".
41523
41524 2007-02-15  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
41527         (supports_delete_on_close): New function.
41528         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
41529
41530 2007-02-14  Bruno Haible  <bruno@clisp.org>
41531
41532         * modules/mbspcasecmp-tests: New file.
41533         * tests/test-mbspcasecmp.sh: New file.
41534         * tests/test-mbspcasecmp.c: New file.
41535
41536         New module mbspcasecmp.
41537         * modules/mbspcasecmp: New file.
41538         * lib/mbspcasecmp.c: New file.
41539         * lib/string_.h (strncasecmp): Change warning message.
41540         (mbspcasecmp): New declaration.
41541         * m4/mbspcasecmp.m4: New file.
41542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41543         GNULIB_MBSPCASECMP.
41544         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
41545         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
41546
41547 2007-02-14  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/mbsncasecmp-tests: New file.
41550         * tests/test-mbsncasecmp.sh: New file.
41551         * tests/test-mbsncasecmp.c: New file.
41552
41553         New module mbsncasecmp.
41554         * modules/mbsncasecmp: New file.
41555         * lib/mbsncasecmp.c: New file.
41556         * lib/string_.h (mbsncasecmp): New declaration.
41557         * m4/mbsncasecmp.m4: New file.
41558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41559         GNULIB_MBSNCASECMP.
41560         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
41561         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
41562
41563 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
41566         Verify that it doesn't overlap with our flags.
41567         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
41568         do not have the desired effect in multibyte locales; instead, use
41569         mbscasecmp.
41570         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
41571         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
41572         we don't require GNU fnmatch ourselves (if our users require it, they
41573         should do so explicitly).
41574
41575         Fix regex code so it doesn't rely on strcasecmp.
41576         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
41577         Otherwise, include gnulib's langinfo.h.
41578         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
41579         undesirable behavior in non-C locales.  Instead, rely on localecharset.
41580         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
41581         * modules/regex (FILES): Remove m4/codeset.m4.
41582         (Depends-on): Add localcharset.  Remove strcase.
41583
41584 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41585
41586         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
41587         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41588
41589 2007-02-13  Bruno Haible  <bruno@clisp.org>
41590
41591         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
41592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41593
41594 2007-02-12  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
41597         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
41598         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
41599         time warning rather than a link error.
41600
41601 2007-02-12  Bruno Haible  <bruno@clisp.org>
41602
41603         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
41604         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41606
41607 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41608
41609         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
41610         args, not 2.
41611
41612 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
41613
41614         New module 'time', so that apps can include <time.h> as per
41615         POSIX and GNU instead of separate include files like time_r.h
41616         and timegm.h.  This implementation tries out a simpler approach
41617         for replacing decls in standard include files (as compared to
41618         the string module), somewhat as an experiment.
41619
41620         * config/srclist.txt: Comment out mktime.c for now.
41621         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
41622         since it doesn't apply any more.  Use generic wording instead.
41623         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
41624         'time'.
41625         * lib/time_.h, m4/time_h.m4, modules/time: New files.
41626         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
41627         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
41628         Don't include <sys/types.h>; no longer needed since we assume C89.
41629         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
41630         * lib/strftime.c: Likewise.
41631         * lib/time_r.c: Likewise.
41632         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
41633         * lib/nanosleep.c: Include <time.h> first, to check interface.
41634         * lib/strptime.c: Likewise.
41635         * lib/time_r.c: Likewise.
41636         * lib/timegm.c: Likewise.
41637         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
41638         needed.
41639         * lib/timegm.c: Don't include timegm.h; no longer needed.
41640         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
41641         time.h now handles any problems in that area.
41642         (struct timespec, nanosleep): Remove; time.h now arranges for these.
41643         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
41644         that time.h defines struct timespec.
41645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
41646         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
41647         handles that.
41648         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
41649         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
41650         needed.  Set REPLACE_LOCALTIME.
41651         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
41652         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
41653         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
41654         nanosleep; time_h.m4 now does that.  Don't require
41655         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
41656         module handles this now.
41657         * modules/getdate (Depends-on): Remove timespec.  Add time.
41658         * modules/nanosleep (Depends-on): Likewise.
41659         * modules/stat-time (Depends-on): Likewise.
41660         * modules/nanosleep (Include): Include time.h, not timespec.h.
41661         * modules/strptime (Files): Remove lib/strptime.h.
41662         (Depends-on): Add extensions, time.
41663         (Include): Include time.h, not strptime.h.
41664         * modules/time_r (Files): Remove lib/time_r.h.
41665         (Depends-on): Add time.
41666         (Include): Include time.h, not time_r.h.
41667         * modules/timegm: Likewise.
41668         * modules/timespec (Description): Now does timespec-related decls
41669         of our own, instead of struct timespec itself.
41670         (Depends-on): Add time; remove extensions.
41671         (Maintainer): Add self.
41672         * modules/utimecmp (Depends-on): Add time; remove timespec.
41673         * modules/utimens (Depends-on): Likewise.
41674         * modules/xnanosleep (Depends-on): Likewise.
41675
41676 2007-02-11  Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/c-strstr.c: Include allocsa.h.
41679         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41680         * lib/c-strcasestr.c: Include allocsa.h.
41681         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41682         * lib/strcasestr.c: Include allocsa.h.
41683         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
41684         * lib/mbsstr.c: Include allocsa.h.
41685         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41686         allocsa/freesa instead of malloc/free.
41687         * lib/mbscasestr.c: Include allocsa.h.
41688         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
41689         allocsa/freesa instead of malloc/free.
41690         * modules/c-strstr (Depends-on): Add allocsa.
41691         * modules/c-strcasestr (Depends-on): Likewise.
41692         * modules/strcasestr (Depends-on): Likewise.
41693         * modules/mbsstr (Depends-on): Likewise.
41694         * modules/mbscasestr (Depends-on): Likewise.
41695
41696 2007-02-11  Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
41699
41700         * modules/mbsspn-tests: New file.
41701         * tests/test-mbsspn.sh: New file.
41702         * tests/test-mbsspn.c: New file.
41703
41704 2007-02-11  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
41707
41708         * modules/mbspbrk-tests: New file.
41709         * tests/test-mbspbrk.sh: New file.
41710         * tests/test-mbspbrk.c: New file.
41711
41712 2007-02-11  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
41715         unneeded cast.
41716
41717         * modules/mbscspn-tests: New file.
41718         * tests/test-mbscspn.sh: New file.
41719         * tests/test-mbscspn.c: New file.
41720
41721 2007-02-11  Bruno Haible  <bruno@clisp.org>
41722
41723         * modules/mbscasecmp-tests: New file.
41724         * tests/test-mbscasecmp.sh: New file.
41725         * tests/test-mbscasecmp.c: New file.
41726
41727 2007-02-11  Bruno Haible  <bruno@clisp.org>
41728
41729         Ensure O(n) worst-case complexity of mbscasestr.
41730         * lib/mbscasestr.c: Include stdbool.h.
41731         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41732         functions.
41733         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
41734         the bookkeeping indicates that it's worth it.
41735         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
41736
41737         * modules/mbscasestr-tests: New file.
41738         * tests/test-mbscasestr1.c: New file.
41739         * tests/test-mbscasestr2.sh: New file.
41740         * tests/test-mbscasestr2.c: New file.
41741         * tests/test-mbscasestr3.sh: New file.
41742         * tests/test-mbscasestr3.c: New file.
41743         * tests/test-mbscasestr4.sh: New file.
41744         * tests/test-mbscasestr4.c: New file.
41745         * m4/locale-tr.m4: New file.
41746
41747 2007-02-11  Bruno Haible  <bruno@clisp.org>
41748
41749         Ensure O(n) worst-case complexity of mbsstr.
41750         * lib/mbsstr.c: Include stdbool.h.
41751         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
41752         functions.
41753         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
41754         bookkeeping indicates that it's worth it.
41755         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
41756
41757         * modules/mbsstr-tests: New file.
41758         * tests/test-mbsstr1.c: New file.
41759         * tests/test-mbsstr2.sh: New file.
41760         * tests/test-mbsstr2.c: New file.
41761         * tests/test-mbsstr3.sh: New file.
41762         * tests/test-mbsstr3.c: New file.
41763         * m4/locale-fr.m4: New file.
41764
41765 2007-02-11  Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/mbsrchr.c (mbsrchr): Fix bug.
41768
41769         * modules/mbsrchr-tests: New file.
41770         * tests/test-mbsrchr.sh: New file.
41771         * tests/test-mbsrchr.c: New file.
41772
41773 2007-02-11  Bruno Haible  <bruno@clisp.org>
41774
41775         * lib/mbschr.c (mbschr): Fix bug.
41776
41777         * modules/mbschr-tests: New file.
41778         * tests/test-mbschr.sh: New file.
41779         * tests/test-mbschr.c: New file.
41780         * m4/locale-zh.m4: New file.
41781
41782 2007-02-11  Bruno Haible  <bruno@clisp.org>
41783
41784         Support for copying multibyte string iterators.
41785         * lib/mbiter.h: Include <string.h>.
41786         (mbiter_multi_copy): New function.
41787         (mbi_copy): New macro.
41788         * lib/mbuiter.h: Include <string.h>.
41789         (mbuiter_multi_copy): New function.
41790         (mbui_copy): New macro.
41791
41792 2007-02-11  Bruno Haible  <bruno@clisp.org>
41793
41794         New module mbslen.
41795         * modules/mbslen: New file.
41796         * lib/mbslen.c: New file.
41797         * lib/string_.h (mbslen): New declaration.
41798         * m4/mbslen.m4: New file.
41799         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41800         GNULIB_MBSLEN.
41801         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
41802         * MODULES.html.sh (Internationalization functions): Add mbslen.
41803
41804 2007-02-11  Bruno Haible  <bruno@clisp.org>
41805
41806         Ensure O(n) worst-case complexity of strcasestr substitute.
41807         * lib/strcasestr.c: Include stdbool.h.
41808         (knuth_morris_pratt): New function.
41809         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41810         bookkeeping indicates that it's worth it.
41811         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
41812
41813         * modules/strcasestr-tests: New file.
41814         * tests/test-strcasestr.c: New file.
41815
41816 2007-02-11  Bruno Haible  <bruno@clisp.org>
41817
41818         Ensure O(n) worst-case complexity of c_strcasestr.
41819         * lib/c-strcasestr.c: Include stdbool.h, string.h.
41820         (knuth_morris_pratt): New function.
41821         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
41822         the bookkeeping indicates that it's worth it.
41823         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
41824
41825         * modules/c-strcasestr-tests: New file.
41826         * tests/test-c-strcasestr.c: New file.
41827
41828 2007-02-11  Bruno Haible  <bruno@clisp.org>
41829
41830         Ensure O(n) worst-case complexity of c_strstr.
41831         * lib/c-strstr.c: Include stdbool.h, string.h.
41832         (knuth_morris_pratt): New function.
41833         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
41834         bookkeeping indicates that it's worth it.
41835         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
41836
41837         * lib/c-strstr.c: Complete rewrite for maintainability.
41838
41839         * modules/c-strstr-tests: New file.
41840         * tests/test-c-strstr.c: New file.
41841
41842 2007-02-11  Bruno Haible  <bruno@clisp.org>
41843
41844         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
41845         5.2.1 and earlier, whereby \055 was treated just like the range
41846         delimiter '-'.
41847         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41848
41849 2007-02-08  Bruno Haible  <bruno@clisp.org>
41850
41851         * modules/regex (Depends-on): Add stdbool.
41852         Reported by Dalibor Topic <robilad@kaffe.org>.
41853
41854 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
41855
41856         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
41857         Prefer returning from main to exiting from it.
41858         Remove unnecessary parens after sizeof.
41859
41860 2007-02-05  Bruno Haible  <bruno@clisp.org>
41861
41862         New module mbssep.
41863         * modules/mbssep: New file.
41864         * lib/mbssep.c: New file.
41865         * lib/string_.h (strsep): Add a conditional link warning.
41866         (mbssep): New declaration.
41867         * m4/mbssep.m4: New file.
41868         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41869         GNULIB_MBSSEP.
41870         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
41871         * MODULES.html.sh (Internationalization functions): Add mbssep.
41872
41873 2007-02-05  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
41876         Optimize search in case of 1 delimiter.
41877
41878 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41879
41880         * lib/acl.h: Include sys/types.h before sys/acl.h.
41881
41882 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
41883
41884         Merge upstream fix for glibc bugzilla #3957:
41885
41886         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
41887
41888         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
41889         bit for RE_HAT_LISTS_NOT_NEWLINE.
41890         (build_charclass_op): Remove bogus comment.
41891
41892 2007-02-05  Simon Josefsson  <simon@josefsson.org>
41893
41894         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
41895
41896 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41897
41898         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
41899         * lib/memmem.c [!defined _LIBC]: Include config.h.
41900
41901 2007-02-04  Bruno Haible  <bruno@clisp.org>
41902
41903         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
41904         warning message.
41905
41906 2007-02-04  Bruno Haible  <bruno@clisp.org>
41907
41908         New module mbstok_r.
41909         * modules/mbstok_r: New file.
41910         * lib/mbstok_r.c: New file.
41911         * lib/string_.h (strtok_r): Change argument names to match the
41912         comments. Add a conditional link warning.
41913         (mbstok_r): New declaration.
41914         * m4/mbstok_r.m4: New file.
41915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41916         GNULIB_MBSTOK_R.
41917         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
41918         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
41919
41920 2007-02-04  Bruno Haible  <bruno@clisp.org>
41921
41922         New module mbsspn.
41923         * modules/mbsspn: New file.
41924         * lib/mbsspn.c: New file.
41925         * lib/string_.h (strspn): Add a conditional link warning.
41926         (mbsspn): New declaration.
41927         * m4/mbsspn.m4: New file.
41928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41929         GNULIB_MBSSPN.
41930         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
41931         * MODULES.html.sh (Internationalization functions): Add mbsspn.
41932
41933 2007-02-04  Bruno Haible  <bruno@clisp.org>
41934
41935         New module mbspbrk.
41936         * modules/mbspbrk: New file.
41937         * lib/mbspbrk.c: New file.
41938         * lib/string_.h (strpbrk): Add a conditional link warning.
41939         (mbspbrk): New declaration.
41940         * m4/mbspbrk.m4: New file.
41941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41942         GNULIB_MBSPBRK.
41943         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
41944         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
41945
41946 2007-02-04  Bruno Haible  <bruno@clisp.org>
41947
41948         New module mbscspn.
41949         * modules/mbscspn: New file.
41950         * lib/mbscspn.c: New file.
41951         * lib/string_.h (strcspn): Add a conditional link warning.
41952         (mbscspn): New declaration.
41953         * m4/mbscspn.m4: New file.
41954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
41955         GNULIB_MBSCSPN.
41956         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
41957         * MODULES.html.sh (Internationalization functions): Add mbscspn.
41958
41959 2007-02-04  Bruno Haible  <bruno@clisp.org>
41960
41961         New module mbscasestr, reduced goal of strcasestr.
41962         * modules/mbscasestr: New file.
41963         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
41964         (mbscasestr): Renamed from strcasestr.
41965         * lib/strcasestr.c: Don't include mbuiter.h.
41966         (strcasestr): Remove support for multibyte locales.
41967         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
41968         Change the conditional link warning.
41969         (mbscasestr): New declaration.
41970         * m4/mbscasestr.m4: New file.
41971         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
41972         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
41973         REPLACE_STRCASESTR.
41974         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
41975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41976         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41977         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
41978         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
41979         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
41980         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
41981         (Depends-on): Remove mbuiter.
41982         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
41983
41984 2007-02-04  Bruno Haible  <bruno@clisp.org>
41985
41986         Simplify handling of strncasecmp.
41987         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
41988         the conditional link warning.
41989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41990         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
41991         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
41992         * modules/strcase (configure.ac): Don't invoke
41993         gl_STRING_MODULE_INDICATOR.
41994         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
41995
41996 2007-02-04  Bruno Haible  <bruno@clisp.org>
41997
41998         New module mbscasecmp, reduced goal of strcasecmp.
41999         * modules/mbscasecmp: New file.
42000         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42001         (mbscasecmp): Renamed from strcasecmp.
42002         * lib/strcasecmp.c: Don't include mbuiter.h.
42003         (strcasecmp): Remove support for multibyte locales.
42004         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42005         Change the conditional link warning.
42006         (mbscasecmp): New declaration.
42007         * m4/mbscasecmp.m4: New file.
42008         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42009         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42010         REPLACE_STRCASECMP.
42011         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42013         GNULIB_MBSCASECMP.
42014         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42015         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42016         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42017         (Depends-on): Remove mbuiter.
42018         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42019
42020 2007-02-04  Bruno Haible  <bruno@clisp.org>
42021
42022         New module mbsstr. Remove module strstr.
42023         * modules/mbsstr: New file.
42024         * modules/strstr: Remove file.
42025         * lib/mbsstr.c: Renamed from lib/strstr.c.
42026         (mbsstr): Renamed from strstr.
42027         * lib/string_.h (strstr): Remove declaration. Change the conditional
42028         link warning.
42029         (mbsstr): New declaration.
42030         * m4/mbsstr.m4: New file.
42031         * m4/strstr.m4: Remove file.
42032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42033         REPLACE_STRSTR.
42034         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42035         Don't initialize GNULIB_STRSTR.
42036         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42037         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42038         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42039         (Support for systems lacking ANSI C 89): Remove strstr.
42040
42041 2007-02-04  Bruno Haible  <bruno@clisp.org>
42042
42043         New module mbsrchr.
42044         * modules/mbsrchr: New file.
42045         * lib/mbsrchr.c: New file.
42046         * lib/string_.h (strrchr): Add a conditional link warning.
42047         (mbsrchr): New declaration.
42048         * m4/mbsrchr.m4: New file.
42049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42050         GNULIB_MBSRCHR.
42051         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42052         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42053
42054 2007-02-04  Bruno Haible  <bruno@clisp.org>
42055
42056         New module mbschr.
42057         * modules/mbschr: New file.
42058         * lib/mbschr.c: New file.
42059         * lib/string_.h (strchr): Add a conditional link warning.
42060         (mbschr): New declaration.
42061         * m4/mbschr.m4: New file.
42062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42063         GNULIB_MBSCHR.
42064         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42065         * MODULES.html.sh (Internationalization functions): Add mbschr.
42066
42067 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42068
42069         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42070
42071         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42072
42073 2007-02-04  Bruno Haible  <bruno@clisp.org>
42074
42075         New module description section 'configure.ac-early'.
42076         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42077         (func_get_autoconf_early_snippet): New function.
42078         (func_import, func_create_testdir): Use it. Remove special cases for
42079         modules 'extensions' and 'lock'.
42080         * modules/extensions (configure.ac-early): Require
42081         gl_USE_SYSTEM_EXTENSIONS.
42082         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42083
42084 2007-02-04  Bruno Haible  <bruno@clisp.org>
42085
42086         Make use of gcj-4.3's -fsource and -ftarget option.
42087         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42088         and if so try the options -fsource and -ftarget.
42089         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42090         source_version, ftarget_option, target_version arguments.
42091         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42092         (is_envjavac_oldgcj_14_14_usable): Renamed from
42093         is_envjavac_gcj_14_14_usable.
42094         (is_envjavac_oldgcj_14_13_usable): Renamed from
42095         is_envjavac_gcj_14_13_usable.
42096         (is_gcj_present): Update.
42097         (is_gcj_43, is_gcj43_usable): New functions.
42098         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42099         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42100         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42101         try the options -fsource and -ftarget.
42102
42103 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42104
42105         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42106         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42107         larger value.
42108
42109 2007-02-03  Jim Meyering  <jim@meyering.net>
42110
42111         Give tools a better chance to allocate space for very large buffers.
42112         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42113
42114         Make pwd and readlink work also when run with an unreadable parent dir
42115         on systems with openat support.
42116         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42117         provided getcwd function, even when we have openat support.
42118         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42119
42120 2007-02-02  Bruno Haible  <bruno@clisp.org>
42121
42122         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42123         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42124         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42125         portability problems if one of these functions is only used on specific
42126         platforms.
42127         Reported by Paul Eggert.
42128
42129 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42130
42131         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42132         is causing more trouble than it's curing.
42133         * lib/regex_internal.h (__mempcpy): Remove.
42134         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42135         (and make the code a tad smaller to boot).
42136         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42137
42138 2007-02-02  Jim Meyering  <jim@meyering.net>
42139
42140         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42141         section, not in the Makefile.am: one.
42142
42143 2007-02-02  Eric Blake  <ebb9@byu.net>
42144
42145         * lib/strchrnul.c: Always include config.h first.
42146
42147         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42148         gnulib strstr is not necessary here.
42149
42150 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42151
42152         * m4/socklen.m4: Fix typo.
42153
42154 2007-02-02  Eric Blake  <ebb9@byu.net>
42155
42156         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42157         * modules/netinet_in (Makefile.am): Likewise.
42158
42159 2007-02-01  Bruno Haible  <bruno@clisp.org>
42160
42161         * lib/string_.h (GL_LINK_WARNING): New macro.
42162         (strcasecmp, strstr, strcasestr): If provided by the system,
42163         conditionally define as a macro that leads to a warning instead of to
42164         an error.
42165         (strncasecmp): Conditionally define as a macro that leads to a warning.
42166
42167 2007-02-01  Karl Berry  <karl@gnu.org>
42168
42169         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42170
42171 2007-02-01  Bruno Haible  <bruno@clisp.org>
42172
42173         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42174         renamings.
42175
42176 2007-02-01  Eric Blake  <ebb9@byu.net>
42177
42178         * modules/regex (Depends-on): Revert dependence on mempcpy.
42179         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42180         module's definition of mempcpy.
42181         Reported by Paul Eggert.
42182
42183 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42184
42185         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42186         the symbol XYZ before redefining it.  This fixes a problem with
42187         programs that don't use XYZ, when compiled on systems that define
42188         XYZ to something else.
42189
42190 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42191
42192         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42193         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42194         writeable to group or other and (2) is intended to have a special
42195         mode bit that is set or cleared.  In such a case, the directory
42196         should be neither group- nor other-writeable until the special
42197         mode bits are right.
42198
42199 2007-01-31  Eric Blake  <ebb9@byu.net>
42200
42201         * modules/mountlist (Depends-on): Add strstr.
42202
42203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42204         bug.
42205         * modules/string (Makefile.am): Remove redundant replacement.
42206         * modules/regex (Depends-on): Add mempcpy.
42207
42208 2007-01-31  Bruno Haible  <bruno@clisp.org>
42209
42210         New module description field 'Link'.
42211         * gnulib-tool (func_usage): Document --extract-link-directive.
42212         (sed_extract_prog): Recognize 'Link' directive.
42213         (func_get_link_directive): New function.
42214         (func_import): Show summary of link directives.
42215         Handle --extract-link-directive option.
42216         * modules/acl (Link): New section.
42217         * modules/clock-time (Link): New section.
42218         * modules/euidaccess (Link): New section.
42219         * modules/gettext (Link): New section.
42220         * modules/iconv (Link): New section.
42221         * modules/lock (Link): New section.
42222         * modules/nanosleep (Link): New section.
42223         * modules/readline (Link): New section.
42224
42225 2007-01-27  Bruno Haible  <bruno@clisp.org>
42226
42227         Enforce the use of gnulib modules for unportable <string.h> functions.
42228         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42229         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42230         (gl_HEADER_STRING_H_BODY): Require it.
42231         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42232         the symbol XYZ to one that gives a link error.
42233         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42234         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42235         * modules/mempcpy (configure.ac): Likewise.
42236         * modules/memrchr (configure.ac): Likewise.
42237         * modules/stpcpy (configure.ac): Likewise.
42238         * modules/stpncpy (configure.ac): Likewise.
42239         * modules/strcase (configure.ac): Likewise.
42240         * modules/strcasestr (configure.ac): Likewise.
42241         * modules/strchrnul (configure.ac): Likewise.
42242         * modules/strdup (configure.ac): Likewise.
42243         * modules/strndup (configure.ac): Likewise.
42244         * modules/strnlen (configure.ac): Likewise.
42245         * modules/strpbrk (configure.ac): Likewise.
42246         * modules/strsep (configure.ac): Likewise.
42247         * modules/strstr (configure.ac): Likewise.
42248         * modules/strtok_r (configure.ac): Likewise.
42249
42250 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42251
42252         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42253
42254 2007-01-30  Jim Meyering  <jim@meyering.net>
42255
42256         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42257
42258 2007-01-29  Bruno Haible  <bruno@clisp.org>
42259
42260         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42261         * lib/execute.c: Likewise.
42262         * lib/pipe.c: Likewise.
42263         * lib/printf-args.h: Likewise.
42264         * lib/printf-args.c: Likewise.
42265         * lib/printf-parse.c: Likewise.
42266         * lib/vasnprintf.c: Likewise.
42267
42268 2007-01-29  Eric Blake  <ebb9@byu.net>
42269
42270         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42271         declaration.
42272
42273 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42274
42275         * lib/strptime.h (strptime): Use 'restrict' for args where
42276         POSIX requires this.
42277         * lib/strptime.c (strptime): Likewise.
42278         Change license notice from LGPL to GPL, since gnulib-tool will
42279         change this as needed.
42280         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42281         defined.
42282         Include "strptime.h" first, to check interface.
42283         Do not #undef _LIBC and _NL_CURRENT.
42284         Do not include <stdlib.h>; no longer needed.
42285         Include "time_r.h" and declare ptime_locale_status
42286         only if _LIBC is not defined.
42287         (__P): Remove unused macro.
42288         (match_string): Bring back glibc version, but use it only if _LIBC
42289         is defined.
42290         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42291         Remove unnecessary assertion and abort() call.
42292         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42293         * m4/strptime.m4: Fix serial number comment.
42294         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42295         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42296         (Depends-on): Add time_r.
42297
42298 2007-01-29  Bruno Haible  <bruno@clisp.org>
42299
42300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42301         strptime.
42302         * modules/strptime (Depends-on): Add stdbool.
42303         * lib/strptime.h: Include <time.h> always. Add comments.
42304
42305 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42306
42307         * modules/strptime: New file.
42308         * lib/strptime.h: New file.
42309         * lib/strptime.c: New file.
42310         * m4/strptime.m4: New file.
42311
42312 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42313
42314         * MODULES.html.sh: New module mpsort.
42315         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42316
42317         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42318         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42320         All uses changed.
42321         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42322         All uses changed.
42323         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42324         to _Restrict_.
42325         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42326         the parameter matches the prototype.
42327
42328 2007-01-28  Jim Meyering  <jim@meyering.net>
42329
42330         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42331         sys/time.h here, reverting that part of the previous patch:
42332         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42333
42334 2007-01-28  Bruno Haible  <bruno@clisp.org>
42335
42336         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42337         value of $(SYS_TIME_H).
42338         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42339         remove it conditionally, too. [added by Jim Meyering]
42340         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42342         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42343         GETTIMEOFDAY_REPLACEMENT to 1.
42344
42345 2007-01-28  Bruno Haible  <bruno@clisp.org>
42346
42347         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42348         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42350         Set UNISTD_H instead of UNISTD_H2.
42351         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42352
42353 2007-01-28  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42356         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42357
42358 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42359
42360         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42361         (func_create_testdir): Ensure C locale for `grep' and `tr'
42362         character ranges.
42363         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42364         ACLOCAL_AMFLAGS parsing state machine.
42365
42366 2007-01-27  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/unistr/base: Update.
42369
42370 2007-01-27  Bruno Haible  <bruno@clisp.org>
42371
42372         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42373         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42374         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42375         modules/unistr/u32-mbtouc.
42376         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42377         * lib/unistr.h: Update.
42378         * lib/linebreak.c: Update.
42379         * modules/unistr/u32-mbtouc: Renamed from
42380         modules/unistr/u32-mbtouc-safe.
42381         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42382         * lib/unistr.h: Update.
42383         * lib/unistr/u32-to-u8.c: Update.
42384         * lib/unistr/u32-to-u16.c: Update.
42385
42386 2007-01-27  Bruno Haible  <bruno@clisp.org>
42387
42388         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42389         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42390         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42391         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42392         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42393         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42394         modules/unistr/u16-mbtouc.
42395         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42396         * lib/unistr.h: Update.
42397         * lib/linebreak.c: Update.
42398         * modules/linebreak: Update.
42399         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42400         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42401         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42402         * modules/unistr/u16-mbtouc: Renamed from
42403         modules/unistr/u16-mbtouc-safe.
42404         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42405         * lib/unistr.h: Update.
42406         * lib/unistr/u16-to-u8.c: Update.
42407         * modules/unistr/u16-to-u8: Update.
42408         * lib/unistr/u16-to-u32.c: Update.
42409         * modules/unistr/u16-to-u32: Update.
42410
42411 2007-01-27  Bruno Haible  <bruno@clisp.org>
42412
42413         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42414         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42415         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42416         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42417         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42418         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42419         modules/unistr/u8-mbtouc.
42420         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42421         * lib/unistr.h: Update.
42422         * lib/striconveh.c: Update.
42423         * modules/striconveh: Update.
42424         * lib/linebreak.c: Update.
42425         * modules/linebreak: Update.
42426         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42427         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42428         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42429         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42430         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42431         * lib/unistr.h: Update.
42432         * lib/striconveh.c: Update.
42433         * modules/striconveh: Update.
42434         * lib/unistr/u8-to-u16.c: Update.
42435         * modules/unistr/u8-to-u16: Update.
42436         * lib/unistr/u8-to-u32.c: Update.
42437         * modules/unistr/u8-to-u32: Update.
42438
42439 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42440
42441         Sync from Libtool.
42442         * lib/argz.c: Do not include strings.h nor memory.h, include
42443         string.h unconditionally.  Patch by Simon Josefsson.
42444
42445 2007-01-27  Bruno Haible  <bruno@clisp.org>
42446
42447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42448         from gl_HEADER_STRING_H_BODY.
42449         (gl_HEADER_STRING_H_BODY): Require it.
42450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42451         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42452         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42453         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42455         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42457         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42458         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42459         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42461         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42462         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42463         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42465
42466 2007-01-27  Bruno Haible  <bruno@clisp.org>
42467
42468         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42469         check_PROGRAMS into noinst_PROGRAMS.
42470         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42471         check_PROGRAMS in this case.
42472         (func_import): Set for_test to false.
42473         (func_create_testdir): Set for_test to true.
42474
42475 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42476             Bruno Haible  <bruno@clisp.org>
42477
42478         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42479         (Depends-on): Add string.
42480         (Includes): Use <string.h> instead of strcasestr.h.
42481         * modules/string (Makefile.am): Also substitute the value of
42482         REPLACE_STRCASESTR.
42483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42484         assume strcasestr is declared in <string.h> not <strings.h>. Also
42485         set REPLACE_STRCASESTR.
42486         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42487         REPLACE_STRCASESTR.
42488         * lib/strcasestr.h: Remove file.
42489         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42490         * lib/string_.h (strcasestr): New declaration.
42491
42492 2007-01-27  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/string_.h: Use 'extern'.
42495
42496 2007-01-27  Jim Meyering  <jim@meyering.net>
42497
42498         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42499         of set-but-not-used local, "q".
42500
42501         * lib/mempcpy.c: Include <config.h> before <string.h>.
42502         This fixes a compilation error on HP-UX, due to the system's
42503         "restrict"-using mempcpy prototype.
42504
42505 2007-01-26  Bruno Haible  <bruno@clisp.org>
42506
42507         Small optimization.
42508         * lib/javacomp.c: Include c-strstr.h.
42509          (is_envjavac_gcj): Use c_strstr instead of strstr.
42510         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42511
42512 2007-01-26  Bruno Haible  <bruno@clisp.org>
42513
42514         * MODULES.html.sh (Unicode string functions): Add the new modules.
42515
42516         * modules/uniconv/u32-strconv-to-locale: New file.
42517         * lib/uniconv/u32-strconv-to-locale.c: New file.
42518
42519         * modules/uniconv/u16-strconv-to-locale: New file.
42520         * lib/uniconv/u16-strconv-to-locale.c: New file.
42521
42522         * modules/uniconv/u8-strconv-to-locale: New file.
42523         * lib/uniconv/u8-strconv-to-locale.c: New file.
42524
42525         * modules/uniconv/u32-strconv-from-locale: New file.
42526         * lib/uniconv/u32-strconv-from-locale.c: New file.
42527
42528         * modules/uniconv/u16-strconv-from-locale: New file.
42529         * lib/uniconv/u16-strconv-from-locale.c: New file.
42530
42531         * modules/uniconv/u8-strconv-from-locale: New file.
42532         * lib/uniconv/u8-strconv-from-locale.c: New file.
42533
42534         * modules/uniconv/u32-strconv-to-enc: New file.
42535         * lib/uniconv/u32-strconv-to-enc.c: New file.
42536         * modules/uniconv/u32-strconv-to-enc-tests: New file.
42537         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
42538
42539         * modules/uniconv/u16-strconv-to-enc: New file.
42540         * lib/uniconv/u16-strconv-to-enc.c: New file.
42541         * lib/uniconv/u-strconv-to-enc.h: New file.
42542         * modules/uniconv/u16-strconv-to-enc-tests: New file.
42543         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
42544
42545         * modules/uniconv/u8-strconv-to-enc: New file.
42546         * lib/uniconv/u8-strconv-to-enc.c: New file.
42547         * modules/uniconv/u8-strconv-to-enc-tests: New file.
42548         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
42549
42550         * modules/uniconv/u32-strconv-from-enc: New file.
42551         * lib/uniconv/u32-strconv-from-enc.c: New file.
42552         * modules/uniconv/u32-strconv-from-enc-tests: New file.
42553         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
42554
42555         * modules/uniconv/u16-strconv-from-enc: New file.
42556         * lib/uniconv/u16-strconv-from-enc.c: New file.
42557         * modules/uniconv/u16-strconv-from-enc-tests: New file.
42558         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
42559
42560         * modules/uniconv/u8-strconv-from-enc: New file.
42561         * lib/uniconv/u8-strconv-from-enc.c: New file.
42562         * lib/uniconv/u-strconv-from-enc.h: New file.
42563         * modules/uniconv/u8-strconv-from-enc-tests: New file.
42564         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
42565
42566         * modules/uniconv/u32-conv-from-enc: New file.
42567         * lib/uniconv/u32-conv-from-enc.c: New file.
42568         * modules/uniconv/u32-conv-from-enc-tests: New file.
42569         * tests/uniconv/test-u32-conv-from-enc.c: New file.
42570
42571         * modules/uniconv/u16-conv-from-enc: New file.
42572         * lib/uniconv/u16-conv-from-enc.c: New file.
42573         * lib/uniconv/u-conv-from-enc.h: New file.
42574         * modules/uniconv/u16-conv-from-enc-tests: New file.
42575         * tests/uniconv/test-u16-conv-from-enc.c: New file.
42576
42577         * modules/uniconv/u8-conv-from-enc: New file.
42578         * lib/uniconv/u8-conv-from-enc.c: New file.
42579         * modules/uniconv/u8-conv-from-enc-tests: New file.
42580         * tests/uniconv/test-u8-conv-from-enc.c: New file.
42581
42582         * modules/uniconv/base: New file.
42583         * lib/uniconv.h: New file.
42584
42585 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
42586
42587         * doc/gnulib-tool.texi (Initial import): Update to match current
42588         behavior with strdup module.
42589         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
42590         * lib/memmem.h: Remove; all uses removed.  This is now done
42591         by <string.h>.
42592         * lib/mempcpy.h: Likewise.
42593         * lib/memrchr.h: Likewise.
42594         * lib/stpcpy.h: Likewise.
42595         * lib/stpncpy.h: Likewise.
42596         * lib/strcase.h: Likewise.
42597         * lib/strchrnul.h: Likewise.
42598         * lib/strdup.h: Likewise.
42599         * lib/strndup.h: Likewise.
42600         * lib/strnlen.h: Likewise.
42601         * lib/strpbrk.h: Likewise.
42602         * lib/strsep.h: Likewise.
42603         * lib/strstr.h: Likewise.
42604         * lib/strtok_r.h: Likewise.
42605         * lib/string_.h: New file.
42606         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
42607         Rely on <string.h> instead.
42608         * lib/canon-host.c: Likewise.
42609         * lib/chdir-long.c: Likewise.
42610         * lib/concatpath.c: Likewise.
42611         * lib/exclude.c: Likewise.
42612         * lib/fchdir.c: Likewise.
42613         * lib/getaddrinfo.c: Likewise.
42614         * lib/getcwd.c: Likewise.
42615         * lib/getsubopt.c: Likewise.
42616         * lib/glob.c: Likewise.
42617         * lib/hard-locale.c: Likewise.
42618         * lib/iconvme.c: Likewise.
42619         * lib/javacomp.c: Likewise.
42620         * lib/mempcpy.c: Likewise.
42621         * lib/memrchr.c: Likewise.
42622         * lib/regex_internal.h: Likewise.
42623         * lib/stpncpy.c: Likewise.
42624         * lib/strcasecmp.c: Likewise.
42625         * lib/strchrnul.c: Likewise.
42626         * lib/strdup.c: Likewise.
42627         * lib/striconv.c: Likewise.
42628         * lib/striconveh.c: Likewise.
42629         * lib/striconveha.c: Likewise.
42630         * lib/strncasecmp.c: Likewise.
42631         * lib/strndup.c: Likewise.
42632         * lib/strnlen.c: Likewise.
42633         * lib/strsep.c: Likewise.
42634         * lib/strstr.c: Likewise.
42635         * lib/strtok_r.c: Likewise.
42636         * lib/userspec.c: Likewise.
42637         * lib/w32spawn.h: Likewise.
42638         * lib/xstrndup.c: Likewise.
42639         * lib/mountlist.c (strstr): Remove decl.
42640         * m4/string_h.m4: New file.
42641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
42642         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
42643         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
42644         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
42645         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
42646         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
42647         Set REPLACE_STRCASECMP if necessary.
42648         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
42649         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
42650         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
42651         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
42652         HAVE_DECL_STRDUP if necessary.
42653         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
42654         since gl_FUNC_STRNDUP does that now.
42655         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
42656         Check for decl here...
42657         (gl_PREREQ_STRNLEN): ... not here.
42658         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
42659         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
42660         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
42661         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
42662         necessary.
42663         * modules/string: New file.
42664         * modules/memmem (Files): Remove special-purpose include file.
42665         (Depends-on): Add string.
42666         (Include): Include <string.h>, not the removed file.
42667         * modules/mempcpy: Likewise.
42668         * modules/memrchr: Likewise.
42669         * modules/stpcpy: Likewise.
42670         * modules/stpncpy: Likewise.
42671         * modules/strcase: Likewise.
42672         * modules/strchrnul: Likewise.
42673         * modules/strdup: Likewise.
42674         * modules/strndup: Likewise.
42675         * modules/strnlen: Likewise.
42676         * modules/strpbrk: Likewise.
42677         * modules/strsep: Likewise.
42678         * modules/strstr: Likewise.
42679         * modules/strtok_r: Likewise.
42680         * tests/test-dirname.c: Don't include "strdup.h", since
42681         <string.h> now suffices.
42682         * tests/test-memmem.c: Don't include "memmem.h", since
42683         <string.h> now suffices.
42684
42685 2007-01-25  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
42688         *resultp is 0.
42689
42690         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
42691         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
42692         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
42693         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
42694
42695         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
42696         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
42697         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
42698         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
42699         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
42700         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
42701
42702 2007-01-24  Bruno Haible  <bruno@clisp.org>
42703
42704         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
42705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
42706         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
42707         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
42708         gl_FUNC_FTS_CORE.
42709         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
42710         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
42711         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42712         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
42713         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
42714         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
42715         gl_FUNC_FCHOWNAT.
42716         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
42717         gl_FUNC_STRFTIME.
42718         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
42719         Reported by Ralf Wildenhues.
42720
42721 2007-01-24  Bruno Haible  <bruno@clisp.org>
42722
42723         Drop AC_REQUIRE calls that are redundant with the module dependencies.
42724         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
42725         gl_GETADDRINFO.
42726         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
42727         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
42728         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
42729
42730 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
42731
42732         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
42733         Don't use 'exit'; just return from 'main'.
42734         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
42735
42736         * lib/fnmatch_.h: Readjust white space and comments to match
42737         glibc, to avoid spurious diffs.
42738
42739 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42740
42741         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
42742         2004-12-01 change by Jakub Jelinek, since this code won't compile
42743         if !LIBC.  Problem reported by Bob Proulx.
42744
42745 2007-01-23  Bruno Haible  <bruno@clisp.org>
42746
42747         * lib/striconveh.c: Include c-strcaseeq.h.
42748         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
42749         * modules/striconveh (Depends-on): Add c-strcaseeq.
42750
42751 2007-01-23  Bruno Haible  <bruno@clisp.org>
42752
42753         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
42754
42755         * modules/c-strcaseeq: New file.
42756         * lib/c-strcaseeq.h: New file.
42757
42758         * modules/streq: New file.
42759         * lib/streq.h: New file.
42760
42761 2007-01-23  Bruno Haible  <bruno@clisp.org>
42762
42763         * modules/striconveha-tests: New file.
42764         * tests/test-striconveha.c: New file.
42765
42766         * lib/striconveha.h: Include <stdbool.h>.
42767         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
42768         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
42769         (mem_iconveha_notranslit): Renamed from mem_iconveha.
42770         (mem_iconveha): New function.
42771         (str_iconveha_notranslit): Renamed from str_iconveha.
42772         (str_iconveha): New function.
42773         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
42774         c-strcase.
42775
42776 2007-01-23  Bruno Haible  <bruno@clisp.org>
42777
42778         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
42779         encodings without forgiving before trying any encoding with handler.
42780         (str_iconveha): Try all encodings without forgiving before trying any
42781         encoding with handler.
42782
42783 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         Import the following changes from libc.
42786
42787         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
42788
42789         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
42790
42791         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42792
42793         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
42794         normal_bracket label.
42795
42796         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
42797
42798         [BZ #361]
42799         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
42800         to normal_bracket after fetching the next character.
42801
42802 2007-01-22  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
42805         argument.
42806         * lib/striconveh.c (iconv_carefully_1): New function.
42807         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
42808         argument.
42809         (str_cd_iconveh): Update.
42810         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
42811         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
42812         * tests/test-striconveh.c (MAGIC): New macro.
42813         (new_offsets): New function.
42814         (main): Test call with and without offsets.
42815
42816 2007-01-22  Bruno Haible  <bruno@clisp.org>
42817
42818         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
42819         * modules/sys_select (Makefile.am): Likewise.
42820         * modules/sys_socket (Makefile.am): Likewise.
42821         * modules/sys_time (Makefile.am): Likewise.
42822
42823 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
42824
42825         * modules/gettimeofday (License): Change from GPL to LGPL, since
42826         gettimeofday is a library function.
42827
42828 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42829
42830         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
42831
42832 2007-01-21  Bruno Haible  <bruno@clisp.org>
42833
42834         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
42835
42836 2007-01-21  Bruno Haible  <bruno@clisp.org>
42837
42838         * modules/striconveha: New file.
42839         * lib/striconveha.h: New file.
42840         * lib/striconveha.c: New file.
42841         * MODULES.html.sh (Internationalization functions): Add striconveha.
42842         * lib/striconv.c (str_iconv): Optimize the case of an empty input
42843         string.
42844         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
42845
42846 2007-01-21  Bruno Haible  <bruno@clisp.org>
42847
42848         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
42849         * lib/striconveh.c (str_iconveh): Likewise.
42850
42851 2007-01-21  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/striconveh.h (mem_iconveh): New declaration.
42854         * lib/striconveh.c (mem_iconveh): New function.
42855         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
42856
42857 2007-01-21  Bruno Haible  <bruno@clisp.org>
42858
42859         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
42860
42861         * lib/striconveh.h (mem_cd_iconveh): Change specification.
42862         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
42863         original result buffer.
42864         (str_cd_iconveh): Update.
42865         * tests/test-striconveh.c (main): Update.
42866
42867         * lib/striconv.h (mem_cd_iconv): Change specification.
42868         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
42869         result buffer.
42870         (str_cd_iconv): Update.
42871         * tests/test-striconv.c (main): Update.
42872
42873 2007-01-21  Bruno Haible  <bruno@clisp.org>
42874
42875         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
42876
42877 2007-01-20  Jim Meyering  <jim@meyering.net>
42878
42879         * lib/userspec.c (parse_with_separator): If a user or group string
42880         starts with "+", skip the corresponding name-to-ID look-up, since
42881         such a look-up must fail: user and group names may not include "+".
42882
42883 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42884
42885         * lib/poll.c: Include sys/time.h and time.h unconditionally,
42886         since we now assume the sys_time module.
42887         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
42888         check for sys/time.h; no longer needed.
42889         * modules/poll (Depends-on): Depend on sys_time.
42890
42891 2007-01-18  Bruno Haible  <bruno@clisp.org>
42892
42893         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
42894         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42895
42896         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
42897         gettimeofday.
42898
42899         * tests/test-gettimeofday.c: Include <time.h>.
42900         (dummy): Remove variable.
42901
42902         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
42903         gl_HEADER_SYS_TIME_H.
42904         (gl_HEADER_SYS_TIME_H): New macro.
42905
42906         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
42907         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42908         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
42909         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
42910         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42911         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
42912         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
42913         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42914         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
42915         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
42916         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
42917
42918         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
42919         last change; it caused a compilation error when cross-compiling to
42920         Cygwin.
42921
42922 2007-01-18  Jim Meyering  <jim@meyering.net>
42923
42924         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
42925         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
42926         than the race-prone "test -d sys || mkdir sys".
42927         (configure.ac): Use AC_PROG_MKDIR_P.
42928         * modules/sys_select: Likewise.
42929         * modules/sys_socket: Likewise.
42930         * modules/sys_time: Likewise.
42931
42932 2007-01-18  Eric Blake  <ebb9@byu.net>
42933
42934         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
42935         replace gettimeofday.
42936         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
42937         name, to avoid infinite recursion.
42938
42939 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
42940
42941         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
42942         module sys_time.
42943         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
42944         assume timespec.h defines struct timeval.
42945         * lib/settime.c: Likewise.
42946         * lib/utimens.c: Likewise.
42947         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
42948         since we now assume the gettimeofday module.
42949         * lib/tempname.c (__gen_tempname): Likewise.
42950         * lib/gettimeofday.h: Remove.
42951         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
42952         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
42953         Include <time.h>, for 'time()'.
42954         (localtime_buffer_addr): Also use this workaround if
42955         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
42956         to simplify the uses.  All uses changed.
42957         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
42958         that #undef is inside {}, and 'const' follows type name consistently.
42959         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
42960         (gettimeofday): Do not use the maximum possible value for
42961         tv->tv_usec, since that might break usages other than ls.c.
42962         Instead, we'll leave ls.c alone.  This undoes today's patch
42963         by Bruno.  Add a compile-time warning for 1s-clock resolution;
42964         we've never observed the problem but might as well keep the
42965         canary.
42966         * lib/nanosleep.c: Include timespec.h first, for interface check.
42967         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
42968         now assume the sys_time module.
42969         * lib/tempname.c: Likewise.
42970         * lib/timespec.h: Likewise.
42971         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
42972         needed.
42973         * lib/strftime.c: Likewise.
42974         * lib/timespec.h: Likewise.
42975         * lib/posixtm.c: Include posixtm.h first, for interface check.
42976         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
42977         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
42978         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
42979         * lib/sys_time_.h: New file.
42980         * lib/timespec.h (struct timespec): Use long int, not long.
42981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42982         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
42983         Remove obsolescent call to AC_HEADER_TIME.
42984         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42986         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
42987         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
42988         Likewise.
42989         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
42990         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
42991         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
42992         into the sys_time module.  Check for gettimeofday just once.
42993         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
42994         for gettimeofday signature to just check the signature.  Merely
42995         compile it, since linking doesn't test signature.  Improve test for
42996         whether gettimeofday.o is actually needed.
42997         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
42998         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
42999         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43000         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43001         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43002         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43003         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43004         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43005         than worrying about sys/time.h.
43006         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43007         Don't bother worrying about TIME_WITH_SYS_TIME.
43008         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43009         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43010         * m4/sys_time_h.m4: New file.
43011         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43012         Don't include sys/time.h.  Return from main rather than exiting.
43013         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43014         all uses changed.
43015         * modules/gethrxtime (Depends-on): Add sys_time.
43016         * modules/gettime (Depends-on): Likewise.
43017         * modules/gettimeofday (Depends-on): Likewise.
43018         * modules/nanosleep (Depends-on): Likewise.
43019         * modules/settime (Depends-on): Likewise.
43020         * modules/tempname (Depends-on): Likewise.
43021         * modules/utimens (Depends-on): Likewise.
43022         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43023         (Include:) Change back to <sys/time.h>.
43024         (Maintainer:) Add self.
43025         * modules/sys_time: New file.
43026         * modules/tempname (Depends-on): Add gettimeofday.
43027         * tests/test-gettimeofday.c: Include <sys/time.h>
43028         rather than gettimeofday.h.
43029
43030 2007-01-17  Bruno Haible  <bruno@clisp.org>
43031
43032         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43033         the license default to GPL.
43034         (func_create_testdir): Don't complain if a module is LGPL and its
43035         tests module depends on GPLed modules.
43036
43037 2007-01-17  Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/gettimeofday.c (gettimeofday): Add code for the case
43040         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43041         maximum possible value for tv->tv_usec, rather than the minimum one.
43042
43043 2005-10-08  Martin Lambers  <marlam@marlam.de>
43044 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43045 2007-01-16  Bruno Haible  <bruno@clisp.org>
43046
43047         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43048         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43049         gl_FUNC_GETTIMEOFDAY.
43050         (Include): Add gettimeofday.h.
43051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43052         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43053         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43054         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43055         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43056         * lib/gettimeofday.h: New file.
43057         * lib/gettimeofday.c: Include <sys/timeb.h>.
43058         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43059         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43060         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43061         fall back on time().
43062
43063         * tests/test-gettimeofday.c: New file.
43064         * modules/gettimeofday-tests: New file.
43065
43066 2007-01-16  Eric Blake  <ebb9@byu.net>
43067
43068         * modules/fnmatch (Depends-on): Depend on wchar.
43069         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43070         * m4/fnmatch.m4: Likewise.
43071         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43072         * m4/mbchar.m4: Likewise.
43073         * modules/mbswidth (Depends-on): Depend on wchar.
43074         * lib/mbswidth.c: Assume <wchar.h>.
43075         * m4/mbswidth.m4: Likewise.
43076         * modules/quotearg (Depends-on): Depend on wchar.
43077         * lib/quotearg.c: Assume <wchar.h>.
43078         * m4/quotearg.m4: Likewise.
43079         * modules/regex (Depends-on): Depend on wchar.
43080         * lib/regex_internal.h: Assume <wchar.h>.
43081         * m4/regex.m4: Likewise.
43082         * modules/stdint (Depends-on): Depend on wchar.
43083         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43084         * m4/stdint.m4: Likewise.
43085         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43086         * modules/strftime (Depends-on): Depend on wchar.
43087         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43088         * modules/strtol (Depends-on): Depend on wchar.
43089         * lib/strtol.c: Assume <wchar.h>.
43090         * modules/wcwidth (Depends-on): Depend on wchar.
43091         * lib/wcwidth.h: Assume <wchar.h>.
43092         * m4/wcwidth.m4: Likewise.
43093
43094 2007-01-16  Bruno Haible  <bruno@clisp.org>
43095
43096         * modules/csharpexec-script: New, created from...
43097         * modules/csharpexec: ... this.
43098
43099 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43100
43101         * modules/javaexec-script: New, created from...
43102         * modules/javaexec: ... this.
43103
43104 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43105
43106         * modules/poll (Dependencies): Add sys_select.
43107
43108 2007-01-15  Jim Meyering  <jim@meyering.net>
43109
43110         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43111         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43112         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43113         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43114
43115 2007-01-15  Bruno Haible  <bruno@clisp.org>
43116
43117         * modules/striconveh: New file.
43118         * lib/striconveh.h: New file.
43119         * lib/striconveh.c: New file.
43120         * MODULES.html.sh (Internationalization functions): Add striconveh.
43121
43122         * modules/striconveh-tests: New file.
43123         * tests/test-striconveh.c: New file.
43124
43125 2007-01-15  Bruno Haible  <bruno@clisp.org>
43126
43127         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43128         not from GNU libiconv or GNU libc.
43129
43130 2007-01-15  Bruno Haible  <bruno@clisp.org>
43131
43132         * doc/gnulib-intro.texi (Copyright): Explain the different license
43133         terms for module descriptions, autoconf macros, tests, documentation.
43134
43135 2007-01-14  Bruno Haible  <bruno@clisp.org>
43136
43137         * modules/striconv-tests: New file.
43138         * tests/test-striconv.c: New file.
43139
43140 2007-01-14  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/iconv-tests: New file.
43143         * tests/test-iconv.c: New file.
43144
43145 2007-01-14  Bruno Haible  <bruno@clisp.org>
43146
43147         * gnulib-tool (func_get_license): For test modules, use the license of
43148         the main module.
43149
43150 2007-01-14  Bruno Haible  <bruno@clisp.org>
43151
43152         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43153         if iconv is found to exist.
43154
43155 2007-01-14  Bruno Haible  <bruno@clisp.org>
43156
43157         * modules/c-ctype-tests: New file.
43158         * tests/test-c-ctype.c: New file.
43159
43160 2007-01-14  Bruno Haible  <bruno@clisp.org>
43161
43162         * modules/binary-io-tests: New file.
43163         * tests/test-binary-io.sh: New file.
43164         * tests/test-binary-io.c: New file.
43165
43166 2007-01-14  Bruno Haible  <bruno@clisp.org>
43167
43168         * modules/array-oset-tests: New file.
43169         * tests/test-array_oset.c: New file.
43170
43171 2007-01-14  Bruno Haible  <bruno@clisp.org>
43172
43173         * modules/array-list-tests: New file.
43174         * tests/test-array_list.c: New file.
43175
43176 2007-01-14  Bruno Haible  <bruno@clisp.org>
43177
43178         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43179         and make.
43180         Reported by Simon Josefsson in
43181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43182
43183 2007-01-14  Bruno Haible  <bruno@clisp.org>
43184
43185         * modules/allocsa-tests: New file.
43186         * tests/test-allocsa.c: New file.
43187
43188 2007-01-14  Bruno Haible  <bruno@clisp.org>
43189
43190         * modules/fchdir (Depends-on): Add absolute-header.
43191         * modules/unistd (Depends-on): Likewise.
43192
43193 2006-12-30  Bruno Haible  <bruno@clisp.org>
43194
43195         * modules/fchdir: New file.
43196         * modules/unistd (Files): Add lib/unistd_.h.
43197         (Makefile.am): Generate unistd.h from unistd_.h.
43198         * lib/fchdir.c: New file.
43199         * lib/dirent_.h: New file.
43200         * lib/unistd_.h: New file.
43201         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43202         * m4/fchdir.m4: New file.
43203         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43204         (gl_HEADER_UNISTD): Invoke it.
43205         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43206         function.
43207         * lib/backupfile.c (opendir, closedir): Undefine.
43208         * lib/chown.c (open, close): Undefine.
43209         * lib/clean-temp.c (open, close): Undefine.
43210         * lib/copy-file.c (open, close): Undefine.
43211         * lib/execute.c (open, close): Undefine.
43212         * lib/fsusage.c (open, close): Undefine.
43213         * lib/gc-gnulib.c (open, close): Undefine.
43214         * lib/getcwd.c (opendir, closedir): Undefine.
43215         * lib/glob.c (opendir, closedir): Undefine.
43216         * lib/javacomp.c (open, close): Undefine.
43217         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43218         * lib/openat-proc.c (open, close): Undefine.
43219         * lib/pagealign_alloc.c (open, close): Undefine.
43220         * lib/pipe.c (open, close): Undefine.
43221         * lib/progreloc.c (open, close): Undefine.
43222         * lib/savedir.c (opendir, closedir): Undefine.
43223         * lib/utime.c (open, close): Undefine.
43224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43225
43226 2007-01-10  Bruno Haible  <bruno@clisp.org>
43227
43228         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43229
43230 2007-01-12  Eric Blake  <ebb9@byu.net>
43231
43232         Provide a robust <wchar.h>.  Further simplifications are now
43233         possible in other modules, but not included here.
43234         * modules/wchar: New module.
43235         * m4/wchar.m4: New file.
43236         * lib/wchar_.h: Likewise.
43237         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43238         of the new module.
43239         * MODULES.html.sh (Extended multibyte and wide character utilities):
43240         New section.
43241
43242 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43243
43244         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43245         to a reasonable default for memory allocation.
43246         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43247         file system that reports garbage st_size values for symlinks.
43248         Problem reported by Liyang Hu.
43249
43250 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43251
43252         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43253         Emacs .#* auto-save files).
43254
43255 2007-01-11  Bruno Haible  <bruno@clisp.org>
43256
43257         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43258         directory.
43259
43260 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43261
43262         Use @...@ consistently in lib/wctype_.h.
43263         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43264         on it being set to 1 or 0.
43265         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43266         go back to AC_SUBSTing it.
43267         * modules/wctype (Makefile.am): Undo previous change.
43268
43269 2007-01-10  Eric Blake  <ebb9@byu.net>
43270
43271         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43272         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43273         * modules/wctype (Makefile.am): Likewise.
43274         Reported by Chris McGuire.
43275
43276 2007-01-10  Jim Meyering  <jim@meyering.net>
43277
43278         fts.c: a small readability/maintainability improvement
43279         * lib/fts.c (fts_read): Make this code slightly more readable and
43280         maintainable by hoisting the "sp->fts_cur = p" assignments to
43281         immediately follow the statements that set P.  Derived from
43282         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43283
43284 2007-01-10  Eric Blake  <ebb9@byu.net>
43285
43286         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43287         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43289         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43290         Reported by Chris McGuire.
43291
43292 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43293
43294         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43295         in sed script.
43296
43297 2007-01-09  Bruno Haible  <bruno@clisp.org>
43298
43299         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43300         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43301         variables.
43302         (func_module): Use them.
43303
43304 2007-01-09  Bruno Haible  <bruno@clisp.org>
43305
43306         * modules/unistr/base: New file.
43307         * lib/unistr.h: New file.
43308
43309         * modules/unistr/u8-to-u16: New file.
43310         * lib/unistr/u8-to-u16.c: New file.
43311
43312         * modules/unistr/u8-to-u32: New file.
43313         * lib/unistr/u8-to-u32.c: New file.
43314
43315         * modules/unistr/u16-to-u8: New file.
43316         * lib/unistr/u16-to-u8.c: New file.
43317
43318         * modules/unistr/u16-to-u32: New file.
43319         * lib/unistr/u16-to-u32.c: New file.
43320
43321         * modules/unistr/u32-to-u8: New file.
43322         * lib/unistr/u32-to-u8.c: New file.
43323
43324         * modules/unistr/u32-to-u16: New file.
43325         * lib/unistr/u32-to-u16.c: New file.
43326
43327         * modules/unistr/u8-check: New file.
43328         * modules/unistr/u16-check: New file.
43329         * modules/unistr/u32-check: New file.
43330         * lib/unistr/u8-check.c: New file.
43331         * lib/unistr/u16-check.c: New file.
43332         * lib/unistr/u32-check.c: New file.
43333
43334         * modules/unistr/u8-chr: New file.
43335         * modules/unistr/u16-chr: New file.
43336         * modules/unistr/u32-chr: New file.
43337         * lib/unistr/u8-chr.c: New file.
43338         * lib/unistr/u16-chr.c: New file.
43339         * lib/unistr/u32-chr.c: New file.
43340
43341         * modules/unistr/u8-cmp: New file.
43342         * modules/unistr/u16-cmp: New file.
43343         * modules/unistr/u32-cmp: New file.
43344         * lib/unistr/u8-cmp.c: New file.
43345         * lib/unistr/u16-cmp.c: New file.
43346         * lib/unistr/u32-cmp.c: New file.
43347
43348         * modules/unistr/u8-cpy: New file.
43349         * modules/unistr/u16-cpy: New file.
43350         * modules/unistr/u32-cpy: New file.
43351         * lib/unistr/u8-cpy.c: New file.
43352         * lib/unistr/u16-cpy.c: New file.
43353         * lib/unistr/u32-cpy.c: New file.
43354         * lib/unistr/u-cpy.h: New file.
43355
43356         * modules/unistr/u8-cpy-alloc: New file.
43357         * modules/unistr/u16-cpy-alloc: New file.
43358         * modules/unistr/u32-cpy-alloc: New file.
43359         * lib/unistr/u8-cpy-alloc.c: New file.
43360         * lib/unistr/u16-cpy-alloc.c: New file.
43361         * lib/unistr/u32-cpy-alloc.c: New file.
43362         * lib/unistr/u-cpy-alloc.h: New file.
43363
43364         * modules/unistr/u8-endswith: New file.
43365         * modules/unistr/u16-endswith: New file.
43366         * modules/unistr/u32-endswith: New file.
43367         * lib/unistr/u8-endswith.c: New file.
43368         * lib/unistr/u16-endswith.c: New file.
43369         * lib/unistr/u32-endswith.c: New file.
43370         * lib/unistr/u-endswith.h: New file.
43371
43372         * modules/unistr/u8-mblen: New file.
43373         * modules/unistr/u16-mblen: New file.
43374         * modules/unistr/u32-mblen: New file.
43375         * lib/unistr/u8-mblen.c: New file.
43376         * lib/unistr/u16-mblen.c: New file.
43377         * lib/unistr/u32-mblen.c: New file.
43378
43379         * modules/unistr/u8-mbtouc: New file.
43380         * modules/unistr/u16-mbtouc: New file.
43381         * modules/unistr/u32-mbtouc: New file.
43382         * lib/unistr/u8-mbtouc.c: New file.
43383         * lib/unistr/u16-mbtouc.c: New file.
43384         * lib/unistr/u32-mbtouc.c: New file.
43385
43386         * modules/unistr/u8-mbtouc-safe: New file.
43387         * modules/unistr/u16-mbtouc-safe: New file.
43388         * modules/unistr/u32-mbtouc-safe: New file.
43389         * lib/unistr/u8-mbtouc-safe.c: New file.
43390         * lib/unistr/u16-mbtouc-safe.c: New file.
43391         * lib/unistr/u32-mbtouc-safe.c: New file.
43392
43393         * modules/unistr/u8-move: New file.
43394         * modules/unistr/u16-move: New file.
43395         * modules/unistr/u32-move: New file.
43396         * lib/unistr/u8-move.c: New file.
43397         * lib/unistr/u16-move.c: New file.
43398         * lib/unistr/u32-move.c: New file.
43399         * lib/unistr/u-move.h: New file.
43400
43401         * modules/unistr/u8-next: New file.
43402         * modules/unistr/u16-next: New file.
43403         * modules/unistr/u32-next: New file.
43404         * lib/unistr/u8-next.c: New file.
43405         * lib/unistr/u16-next.c: New file.
43406         * lib/unistr/u32-next.c: New file.
43407
43408         * modules/unistr/u8-prev: New file.
43409         * modules/unistr/u16-prev: New file.
43410         * modules/unistr/u32-prev: New file.
43411         * lib/unistr/u8-prev.c: New file.
43412         * lib/unistr/u16-prev.c: New file.
43413         * lib/unistr/u32-prev.c: New file.
43414
43415         * modules/unistr/u8-set: New file.
43416         * modules/unistr/u16-set: New file.
43417         * modules/unistr/u32-set: New file.
43418         * lib/unistr/u8-set.c: New file.
43419         * lib/unistr/u16-set.c: New file.
43420         * lib/unistr/u32-set.c: New file.
43421         * lib/unistr/u-set.h: New file.
43422
43423         * modules/unistr/u8-startswith: New file.
43424         * modules/unistr/u16-startswith: New file.
43425         * modules/unistr/u32-startswith: New file.
43426         * lib/unistr/u8-startswith.c: New file.
43427         * lib/unistr/u16-startswith.c: New file.
43428         * lib/unistr/u32-startswith.c: New file.
43429         * lib/unistr/u-startswith.h: New file.
43430
43431         * modules/unistr/u8-stpcpy: New file.
43432         * modules/unistr/u16-stpcpy: New file.
43433         * modules/unistr/u32-stpcpy: New file.
43434         * lib/unistr/u8-stpcpy.c: New file.
43435         * lib/unistr/u16-stpcpy.c: New file.
43436         * lib/unistr/u32-stpcpy.c: New file.
43437         * lib/unistr/u-stpcpy.h: New file.
43438
43439         * modules/unistr/u8-stpncpy: New file.
43440         * modules/unistr/u16-stpncpy: New file.
43441         * modules/unistr/u32-stpncpy: New file.
43442         * lib/unistr/u8-stpncpy.c: New file.
43443         * lib/unistr/u16-stpncpy.c: New file.
43444         * lib/unistr/u32-stpncpy.c: New file.
43445         * lib/unistr/u-stpncpy.h: New file.
43446
43447         * modules/unistr/u8-strcat: New file.
43448         * modules/unistr/u16-strcat: New file.
43449         * modules/unistr/u32-strcat: New file.
43450         * lib/unistr/u8-strcat.c: New file.
43451         * lib/unistr/u16-strcat.c: New file.
43452         * lib/unistr/u32-strcat.c: New file.
43453         * lib/unistr/u-strcat.h: New file.
43454
43455         * modules/unistr/u8-strchr: New file.
43456         * modules/unistr/u16-strchr: New file.
43457         * modules/unistr/u32-strchr: New file.
43458         * lib/unistr/u8-strchr.c: New file.
43459         * lib/unistr/u16-strchr.c: New file.
43460         * lib/unistr/u32-strchr.c: New file.
43461
43462         * modules/unistr/u8-strcmp: New file.
43463         * modules/unistr/u16-strcmp: New file.
43464         * modules/unistr/u32-strcmp: New file.
43465         * lib/unistr/u8-strcmp.c: New file.
43466         * lib/unistr/u16-strcmp.c: New file.
43467         * lib/unistr/u32-strcmp.c: New file.
43468
43469         * modules/unistr/u8-strcpy: New file.
43470         * modules/unistr/u16-strcpy: New file.
43471         * modules/unistr/u32-strcpy: New file.
43472         * lib/unistr/u8-strcpy.c: New file.
43473         * lib/unistr/u16-strcpy.c: New file.
43474         * lib/unistr/u32-strcpy.c: New file.
43475         * lib/unistr/u-strcpy.h: New file.
43476
43477         * modules/unistr/u8-strcspn: New file.
43478         * modules/unistr/u16-strcspn: New file.
43479         * modules/unistr/u32-strcspn: New file.
43480         * lib/unistr/u8-strcspn.c: New file.
43481         * lib/unistr/u16-strcspn.c: New file.
43482         * lib/unistr/u32-strcspn.c: New file.
43483         * lib/unistr/u-strcspn.h: New file.
43484
43485         * modules/unistr/u8-strdup: New file.
43486         * modules/unistr/u16-strdup: New file.
43487         * modules/unistr/u32-strdup: New file.
43488         * lib/unistr/u8-strdup.c: New file.
43489         * lib/unistr/u16-strdup.c: New file.
43490         * lib/unistr/u32-strdup.c: New file.
43491         * lib/unistr/u-strdup.h: New file.
43492
43493         * modules/unistr/u8-strlen: New file.
43494         * modules/unistr/u16-strlen: New file.
43495         * modules/unistr/u32-strlen: New file.
43496         * lib/unistr/u8-strlen.c: New file.
43497         * lib/unistr/u16-strlen.c: New file.
43498         * lib/unistr/u32-strlen.c: New file.
43499         * lib/unistr/u-strlen.h: New file.
43500
43501         * modules/unistr/u8-strmblen: New file.
43502         * modules/unistr/u16-strmblen: New file.
43503         * modules/unistr/u32-strmblen: New file.
43504         * lib/unistr/u8-strmblen.c: New file.
43505         * lib/unistr/u16-strmblen.c: New file.
43506         * lib/unistr/u32-strmblen.c: New file.
43507
43508         * modules/unistr/u8-strmbtouc: New file.
43509         * modules/unistr/u16-strmbtouc: New file.
43510         * modules/unistr/u32-strmbtouc: New file.
43511         * lib/unistr/u8-strmbtouc.c: New file.
43512         * lib/unistr/u16-strmbtouc.c: New file.
43513         * lib/unistr/u32-strmbtouc.c: New file.
43514
43515         * modules/unistr/u8-strncat: New file.
43516         * modules/unistr/u16-strncat: New file.
43517         * modules/unistr/u32-strncat: New file.
43518         * lib/unistr/u8-strncat.c: New file.
43519         * lib/unistr/u16-strncat.c: New file.
43520         * lib/unistr/u32-strncat.c: New file.
43521         * lib/unistr/u-strncat.h: New file.
43522
43523         * modules/unistr/u8-strncmp: New file.
43524         * modules/unistr/u16-strncmp: New file.
43525         * modules/unistr/u32-strncmp: New file.
43526         * lib/unistr/u8-strncmp.c: New file.
43527         * lib/unistr/u16-strncmp.c: New file.
43528         * lib/unistr/u32-strncmp.c: New file.
43529
43530         * modules/unistr/u8-strncpy: New file.
43531         * modules/unistr/u16-strncpy: New file.
43532         * modules/unistr/u32-strncpy: New file.
43533         * lib/unistr/u8-strncpy.c: New file.
43534         * lib/unistr/u16-strncpy.c: New file.
43535         * lib/unistr/u32-strncpy.c: New file.
43536         * lib/unistr/u-strncpy.h: New file.
43537
43538         * modules/unistr/u8-strnlen: New file.
43539         * modules/unistr/u16-strnlen: New file.
43540         * modules/unistr/u32-strnlen: New file.
43541         * lib/unistr/u8-strnlen.c: New file.
43542         * lib/unistr/u16-strnlen.c: New file.
43543         * lib/unistr/u32-strnlen.c: New file.
43544         * lib/unistr/u-strnlen.h: New file.
43545
43546         * modules/unistr/u8-strpbrk: New file.
43547         * modules/unistr/u16-strpbrk: New file.
43548         * modules/unistr/u32-strpbrk: New file.
43549         * lib/unistr/u8-strpbrk.c: New file.
43550         * lib/unistr/u16-strpbrk.c: New file.
43551         * lib/unistr/u32-strpbrk.c: New file.
43552         * lib/unistr/u-strpbrk.h: New file.
43553
43554         * modules/unistr/u8-strrchr: New file.
43555         * modules/unistr/u16-strrchr: New file.
43556         * modules/unistr/u32-strrchr: New file.
43557         * lib/unistr/u8-strrchr.c: New file.
43558         * lib/unistr/u16-strrchr.c: New file.
43559         * lib/unistr/u32-strrchr.c: New file.
43560
43561         * modules/unistr/u8-strspn: New file.
43562         * modules/unistr/u16-strspn: New file.
43563         * modules/unistr/u32-strspn: New file.
43564         * lib/unistr/u8-strspn.c: New file.
43565         * lib/unistr/u16-strspn.c: New file.
43566         * lib/unistr/u32-strspn.c: New file.
43567         * lib/unistr/u-strspn.h: New file.
43568
43569         * modules/unistr/u8-strstr: New file.
43570         * modules/unistr/u16-strstr: New file.
43571         * modules/unistr/u32-strstr: New file.
43572         * lib/unistr/u8-strstr.c: New file.
43573         * lib/unistr/u16-strstr.c: New file.
43574         * lib/unistr/u32-strstr.c: New file.
43575         * lib/unistr/u-strstr.h: New file.
43576
43577         * modules/unistr/u8-strtok: New file.
43578         * modules/unistr/u16-strtok: New file.
43579         * modules/unistr/u32-strtok: New file.
43580         * lib/unistr/u8-strtok.c: New file.
43581         * lib/unistr/u16-strtok.c: New file.
43582         * lib/unistr/u32-strtok.c: New file.
43583         * lib/unistr/u-strtok.h: New file.
43584
43585         * modules/unistr/u8-uctomb: New file.
43586         * modules/unistr/u16-uctomb: New file.
43587         * modules/unistr/u32-uctomb: New file.
43588         * lib/unistr/u8-uctomb.c: New file.
43589         * lib/unistr/u16-uctomb.c: New file.
43590         * lib/unistr/u32-uctomb.c: New file.
43591
43592         * MODULES.html.sh (Unicode string functions): Add the new modules.
43593
43594 2007-01-08  Bruno Haible  <bruno@clisp.org>
43595
43596         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
43597         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
43598         subdirectories.
43599
43600 2007-01-08  Karl Berry  <karl@gnu.org>
43601
43602         * doc/error.texi: mention that main() fns must set program_name
43603         when progname is used.
43604
43605 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
43606
43607         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
43608         WCTYPE_H is empty, for the benefit of builds from non-distclean
43609         directories.  Problem reported by Eric Blake in
43610         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
43611
43612 2007-01-08  Bruno Haible  <bruno@clisp.org>
43613
43614         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
43615         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
43616         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
43617         PROVIDE_CANONICALIZE_FILENAME_MODE.
43618         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
43619
43620 2007-01-08  Bruno Haible  <bruno@clisp.org>
43621
43622         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
43623         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
43624         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
43625         * lib/fts.c: Likewise.
43626         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
43627
43628 2006-12-25  Bruno Haible  <bruno@clisp.org>
43629
43630         * modules/utf8-ucs4-safe: New file.
43631         * lib/utf8-ucs4-safe.h: New file.
43632         * lib/unistr/utf8-ucs4-safe.c: New file.
43633
43634         * modules/utf16-ucs4-safe: New file.
43635         * lib/utf16-ucs4-safe.h: New file.
43636         * lib/unistr/utf16-ucs4-safe.c: New file.
43637
43638         * MODULES.html.sh (Unicode string functions): Add the new modules.
43639
43640 2007-01-08  Bruno Haible  <bruno@clisp.org>
43641
43642         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
43643         (Depends-on): Add unitypes.
43644         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43645         (u8_mbtouc_aux): Move out to separate file.
43646         (u8_mbtouc): Use ucs4_t, uint8_t types.
43647         * lib/unistr/utf8-ucs4.c: New file.
43648
43649         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
43650         (Depends-on): Add unitypes.
43651         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
43652         (u16_mbtouc_aux): Move out to separate file.
43653         (u16_mbtouc): Use ucs4_t, uint16_t types.
43654         * lib/unistr/utf16-ucs4.c: New file.
43655
43656         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
43657         (Depends-on): Add unitypes.
43658         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
43659         (u8_uctomb_aux): Move out to separate file.
43660         (u8_uctomb): Use ucs4_t, uint8_t types.
43661         * lib/unistr/ucs4-utf8.c: New file.
43662
43663         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
43664         (Depends-on): Add unitypes.
43665         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
43666         (u16_uctomb_aux): Move out to separate file.
43667         (u16_uctomb): Use ucs4_t, uint16_t types.
43668         * lib/unistr/ucs4-utf16.c: New file.
43669
43670 2006-12-25  Bruno Haible  <bruno@clisp.org>
43671
43672         * modules/unitypes: New file.
43673         * lib/unitypes.h: New file.
43674         * MODULES.html.sh (func_all_modules): New section "Unicode string
43675         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
43676         this section. Add unitypes.
43677
43678 2007-01-08  Bruno Haible  <bruno@clisp.org>
43679
43680         Avoid variable names that conflict with those from libtool.
43681         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
43682         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
43683         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
43684         library_names_spec to acl_library_names_spec, hardcode_* to
43685         acl_hardcode_*.
43686         Reported by Ralf Wildenhues.
43687
43688 2007-01-08  Bruno Haible  <bruno@clisp.org>
43689
43690         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
43691         definition.
43692         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
43693         definition.
43694         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
43695         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
43696         definition.
43697         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
43698         definition.
43699         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
43700         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
43701         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
43702         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
43703         definition.
43704         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
43705         definition.
43706         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
43707         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
43708         GC_USE_<algorithm>.
43709         * lib/gc-libgcrypt.c: Likewise.
43710         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
43711         * modules/gc-arctwo (configure.ac): Likewise.
43712         * modules/gc-des (configure.ac): Likewise.
43713         * modules/gc-hmac-md5 (configure.ac): Likewise.
43714         * modules/gc-hmac-sha1 (configure.ac): Likewise.
43715         * modules/gc-md2 (configure.ac): Likewise.
43716         * modules/gc-md4 (configure.ac): Likewise.
43717         * modules/gc-md5 (configure.ac): Likewise.
43718         * modules/gc-random (configure.ac): Likewise.
43719         * modules/gc-rijndael (configure.ac): Likewise.
43720         * modules/gc-sha1 (configure.ac): Likewise.
43721
43722 2007-01-08  Bruno Haible  <bruno@clisp.org>
43723
43724         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
43725         macro definition.
43726         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
43727         definition.
43728         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
43729         definition.
43730         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
43731         * modules/fcntl-safer (configure.ac): Likewise.
43732         * modules/fopen-safer (configure.ac): Likewise.
43733         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
43734         GNULIB_FWRITEERROR macro definition.
43735
43736 2007-01-08  Bruno Haible  <bruno@clisp.org>
43737
43738         * m4/gnulib-common.m4: New file.
43739         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
43740         (func_get_filelist): Add m4/gnulib-common.m4.
43741
43742 2007-01-08  Bruno Haible  <bruno@clisp.org>
43743
43744         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
43745         command.
43746
43747 2007-01-08  Jim Meyering  <jim@meyering.net>
43748
43749         Use a more robust test for a "can't happen" condition.
43750         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
43751         narrowed the st_size value.  Presuming the "can't happen" condition
43752         is true, that narrowing could conceivably convert an invalid st_size
43753         value into a valid one.  Instead, use a change based on Matthew
43754         Woehlke's original patch.
43755
43756         Slight readability improvement: use an assert-like macro
43757         in place of literal "abort ()" uses.
43758         * lib/fts.c (fts_assert): Define.
43759         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
43760         Use this macro instead of a bare 'abort'.
43761
43762 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43763
43764         Don't worry about using IRIX 5.3's wctype.h broken definitions;
43765         simply work around them.
43766         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
43767         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
43768         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
43769         declaring.
43770         Don't bother to define as macros, since the standard doesn't require it.
43771         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
43772         longer worry about IRIX 5.3.
43773         (HAVE_WCTYPE_CTMP_BUG): Remove.
43774
43775 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43776
43777         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
43778         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
43779         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43780         Problems reported by Georg Schwarz for IRIX 5.3.
43781
43782         * gnulib-tool (autoconf_minversion): Take the maximum version number
43783         found, not the minimum.  Problem reported by James Youngman.
43784
43785 2007-01-03  Karl Berry  <karl@gnu.org>
43786
43787         * doc/error.texi: new file, explaining interaction with progname.
43788         * doc/gnulib.texi: include it.  Update copyright.
43789
43790 2007-01-03  Simon Josefsson  <simon@josefsson.org>
43791
43792         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
43793         AC_CANONICAL_HOST, to improve autobuild outputs.
43794
43795 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
43796             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43797
43798         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
43799         sockets, server sockets, and other file descriptors.  Count errors
43800         to compute the return value.  Reorder the code a bit to be easier
43801         to follow.  Don't set event bits that were not requested (except
43802         POLLERR and POLLHUP).
43803
43804 2007-01-01  Bruno Haible  <bruno@clisp.org>
43805
43806         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
43807
43808 2007-01-03  Jim Meyering  <jim@meyering.net>
43809
43810         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
43811
43812 2007-01-02  Bruno Haible  <bruno@clisp.org>
43813
43814         * modules/settime (Include): Require timespec.h.
43815         * modules/nanosleep (Include): Likewise.
43816
43817 2007-01-01  Bruno Haible  <bruno@clisp.org>
43818
43819         * gnulib-tool (func_emit_copyright_notice): Bump year.
43820         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
43821
43822 2007-01-01  Bruno Haible  <bruno@clisp.org>
43823
43824         Improve support for OpenBSD.
43825         * build-aux/config.rpath (libname_spec): Export.
43826         (library_names_spec): New variable. Export.
43827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
43828         library_names_spec from the config.rpath output. Locate shared library
43829         through the name pattern in library_names_spec.
43830
43831 2007-01-01  Eric Blake  <ebb9@byu.net>
43832
43833         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
43834
43835 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
43836
43837         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
43838         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
43839         assume the C locale, and avoid an "eval" that could cause trouble.
43840         Problem with SORT reported by Bob Proulx.
43841
43842         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
43843         Define.  Trivial patch from Henning Nielsen Lund, originally
43844         sent to bug-grep@gnu.org today.
43845
43846 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43847
43848         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
43849         struct stat.  Problem reported by Henning Nielsen Lund.
43850         * lib/acl.c: Include acl.h first, to check interface.  Don't
43851         bother to include sys/types.h and sys/stat.h again.
43852
43853 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43854
43855         Import the following change from libc; problem reported by
43856         Sven Verdoolaege.
43857
43858         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
43859
43860         [BZ #1373]
43861         * lib/argp.h: Remove __NTH for __argp_usage inline function.
43862
43863 2006-12-28  Jim Meyering  <jim@meyering.net>
43864
43865         * build-aux/announce-gen: Do not assume that the package
43866         builds any of tar.gz, tar.bz2, and .xdelta files.
43867         Suggestion from Simon Josefsson.
43868
43869 2006-12-28  Simon Josefsson  <simon@josefsson.org>
43870
43871         * modules/announce-gen: New file.
43872
43873 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43874
43875         * lib/mbchar.h: Just include <wctype.h>; the wctype module
43876         handles its gotchas now.
43877         * lib/mbswidth.c: Likewise.
43878         * lib/wcwidth.h: Likewise.
43879         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
43880         and iswcntrl; the wctype module does this stuff now.
43881         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43883         * modules/mbchar (Depends-on): Add wctype.
43884         * modules/mbswidth (Depends-on): Likewise.
43885         * modules/wcwidth (Depends-on): Likewise.
43886
43887 2006-12-27  Eric Blake  <ebb9@byu.net>
43888
43889         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
43890         module uses more than what <wctype.h> is required to provide.
43891
43892 2006-12-26  Eric Blake  <ebb9@byu.net>
43893
43894         * gnulib-tool (sed_extract_prog): Avoid space-tab.
43895
43896 2006-12-26  Eric Blake  <ebb9@byu.net>
43897
43898         * modules/absolute-header: New module.
43899         * modules/fcntl (Depends-on): Depend on it.
43900         * modules/inttypes (Depends-on): Likewise.
43901         * modules/stdint (Depends-on): Likewise.
43902         * modules/sys_stat (Depends-on): Likewise.
43903         * modules/wctype (Depends-on): Likewise.
43904         * MODULES.html.sh (Support for building libraries and
43905         executables): Document it.
43906
43907 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43908
43909         * gnulib-tool (SED): Remove, undoing previous change.
43910         The problem was that it broke coreutils on Solaris, because
43911         "sed --posix" leaked into a makefile.
43912         (sed): New alias, if 'alias' and GNU sed.
43913
43914 2006-12-24  Jim Meyering  <jim@meyering.net>
43915
43916         Work around an fchownat bug in glibc-2.4:
43917         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
43918         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
43919         in spite of the -P option.
43920         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
43921         New macros.
43922         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
43923         * modules/openat (Files): Add lib/fchownat.c.
43924         * lib/openat.c (fchownat): Don't define here.  Move to...
43925         * lib/fchownat.c: ...this new file.
43926
43927 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
43928
43929         Fix bug reported by Bruno Haible in
43930         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
43931         where quotearg.c didn't compile on Mac OS X 10.2 because it
43932         lacks <wchar.h> and wint_t.
43933         * lib/wctype_.h (__wctype_wint_t): New type.
43934         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
43935         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
43936         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
43937         Arg is now of type __wctype_wint_t, not wint_t.
43938         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
43939         substitute HAVE_WINT_T.
43940         * modules/wctype (Files): Add m4/wint_t.m4.
43941         (wctype.h): Substitute HAVE_WINT_T.
43942
43943 2006-12-23  Bruno Haible  <bruno@clisp.org>
43944
43945         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
43946
43947 2006-12-23  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
43950         S_ISLNK.
43951         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
43952         mingw.
43953
43954 2006-12-22  Bruno Haible  <bruno@clisp.org>
43955
43956         * lib/copy-file.c: Include acl.h.
43957         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
43958         Close the file descriptors only after being done with copy_acl.
43959         * modules/copy-file (Depends-on): Add acl.
43960
43961 2006-12-22  Bruno Haible  <bruno@clisp.org>
43962
43963         * gnulib-tool (SED): New variable.
43964         Use $SED instead of sed everywhere.
43965
43966 2006-12-22  Bruno Haible  <bruno@clisp.org>
43967
43968         * modules/no-c++: New file.
43969         * m4/no-c++.m4: New file.
43970         * MODULES.html.sh (Support for building libraries and executables):
43971         Add no-c++.
43972
43973 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
43974
43975         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43976         Include <limits.h>, and use its INT_MAX to rewrite the
43977         j loop so that it does not overflow 'int'.  Problem reported by
43978         Ralf Wildenhues in
43979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
43980         Play it safe by shifting left by 1 rather than multiplying by 2,
43981         as GCC is less likely to optimize this away when the value
43982         is signed (when it assumes overflow leads to undefined behavior).
43983         Also, don't assume time_t uses two's complement.
43984
43985 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
43986
43987         * MODULES.html.sh: New module wctype.
43988         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
43989         * lib/fnmatch.c: Don't bother to include <wchar.h> before
43990         <wctype.h>, since the new wctype module should fix this.
43991         * lib/quotearg.c: Include <wctype.h> unconditionally, since
43992         the wctype module should arrange for it.
43993         * lib/regex_internal.h: Likewise.
43994         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
43995         since the wctype module should handle this now.
43996         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
43997         * modules/fnmatch (Depends-on): Add wctype.
43998         * modules/quotearg (Depends-on): Likewise.
43999         * modules/regex (Depends-on): Likewise.
44000
44001 2006-12-19  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44004         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44005
44006 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44007
44008         * modules/savewd (Depends-on): Fix dependency on fcntl.
44009
44010 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44011
44012         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44013         conforms to C99, rather than relying on the user's environment
44014         setting of STDINT_H.
44015
44016 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44017         and Eric Blake  <ebb9@byu.net>
44018
44019         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44020         This is more consistent with the other defines here.
44021         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44022         Port to z/OS.  Problem reported by Paul Gilmartin.
44023         Change local vars to use gl_ prefix rather than ac_.
44024         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44025         with other defines.
44026         * modules/double-slash-root: New module.
44027         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44028         (Depends-on): Add double-slash-root.
44029         * MODULES.html.sh (File system functions): Mention new module.
44030
44031 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44032
44033         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44034         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44035         This is for the benefit of gzip, which doesn't do i18n.
44036
44037 2006-12-12  Jim Meyering  <jim@meyering.net>
44038
44039         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44040         Reported by Andreas Schwab <schwab@suse.de>.
44041
44042 2006-12-12  Bruno Haible  <bruno@clisp.org>
44043
44044         Merge these changes.
44045         2006-09-05  Bruno Haible  <bruno@clisp.org>
44046         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44047         iconv_alloc succeeded.
44048         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44049         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44050         test for " && dest " at the end - dest is always != NULL there. Call
44051         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44052         with 2xNULL arguments, also to flush the state storage. Handle the
44053         IRIX iconv behaviour. Realloc the final result, to throw away unused
44054         memory.
44055
44056 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44057
44058         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44059         and fchmodat unconditionally, since glibc 2.4 has them.
44060         Problem reported by Arkadiusz Miskiewicz.
44061
44062 2006-12-10  Bruno Haible  <bruno@clisp.org>
44063
44064         * gnulib-tool (func_import): Show the include files only for those
44065         modules that are copied and specified.
44066         Reported by Karl Berry.
44067
44068 2006-12-08  Jim Meyering  <jim@meyering.net>
44069
44070         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44071         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44072
44073         * build-aux/announce-gen: Add two new options, both optional:
44074         --bootstrap-tools=TOOL_LIST
44075               a comma-separated list of tools, e.g.,
44076               autoconf,automake,bison,gnulib
44077         --gnulib-snapshot-date=DATE
44078               if gnulib is in the bootstrap tool list,
44079               then report this as the snapshot date.
44080               If not specified, use the current date/time.
44081               If you specify a date here, be sure it's UTC.
44082
44083 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44084
44085         * tests/test-argp-2.sh: Fix test to match actual output.
44086         (func_compare): Fix sed script to be portable.
44087
44088 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44089
44090         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44091         workaround for this case.  It is not autoconfigured now; offhand
44092         it's hard to see how to autoconfigure it.
44093
44094 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44095
44096         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44097         a directory that is about to be chowned.  Such a directory's
44098         initial file permissions should permit the owner only and this
44099         should not be changed until after the chown, since the group and
44100         other bits would be incorrect if they granted permission before
44101         the chown.
44102
44103         Fix porting problem for iswctype reported by Georg Schwarz in:
44104         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44105         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44106         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44107         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44108         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44109
44110 2006-12-03  Jim Meyering  <jim@meyering.net>
44111
44112         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44113         p->fts_statp may not yet be defined.
44114         (fts_read): Instead, set it in the caller, once p->fts_statp is
44115         sure to be defined, and corresponds to a top-level directory.
44116         This bug made du -x fail.  Here's the coreutils test case:
44117         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44118         Reported by Mike Frysinger.
44119
44120 2006-12-01  Jim Meyering  <jim@meyering.net>
44121
44122         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44123         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44124         Reported by Simon Josefsson.
44125
44126 2006-11-30  Jim Meyering  <jim@meyering.net>
44127
44128         * m4/warning.m4: Use the all-permissive copyright notice
44129         recommended by RMS (rather than LGPL).
44130         * m4/vararrays.m4: Likewise.
44131         * m4/flexmember.m4: Likewise.
44132
44133 2006-11-29  Bruno Haible  <bruno@clisp.org>
44134
44135         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44136         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44137         using +=.
44138         Reported by Simon Josefsson <simon@josefsson.org>.
44139
44140 2006-11-28  James Youngman <jay@gnu.org>
44141
44142         * README: Advise users that they might find the bug-gnulib@gnu.org
44143         and autotools-announce@gnu.org mailing lists useful.
44144
44145 2006-11-28  Bruno Haible  <bruno@clisp.org>
44146
44147         * m4/ptrdiff_max.m4: Remove file.
44148
44149 2006-11-21  Bruno Haible  <bruno@clisp.org>
44150
44151         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44152         _AC_COMPUTE_INT.
44153         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44154         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44155         _AC_COMPUTE_INT.
44156         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44157         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44158         _AC_COMPUTE_INT.
44159         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44160
44161 2006-11-28  Jim Meyering  <jim@meyering.net>
44162
44163         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44164         warning from "gcc -Wshadow" about shadowing the builtin.
44165
44166 2006-11-27  Bruno Haible  <bruno@clisp.org>
44167
44168         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44169         _AC_COMPUTE_INT.
44170         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44171
44172 2006-11-27  Bruno Haible  <bruno@clisp.org>
44173             Paul Eggert  <eggert@cs.ucla.edu>
44174
44175         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44176
44177 2006-11-26  Bruno Haible  <bruno@clisp.org>
44178
44179         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44180         noinst_LTLIBRARIES.
44181
44182 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44183             Bruno Haible  <bruno@clisp.org>
44184
44185         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44186         if compiling with "gcc -ansi".
44187
44188 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44189
44190         Fix some incompatibilities with gcc -ansi -pedantic.
44191         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44192         if compiling pedantically with GCC, unless it's C99 or later.
44193         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44194         it mishandles gcc -ansi -pedantic as well.
44195         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44196         if gcc -pedantic.
44197         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44198         initializers for struct if -pedantic, unless it's C99 or later.
44199
44200 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44201
44202         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44203         Don't close an fd more than once. Identical atimes indicate
44204         success, not failure.
44205
44206 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44207
44208         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44209
44210 2006-11-23  Jim Meyering  <jim@meyering.net>
44211
44212         * build-aux/announce-gen: New file.  From coreutils.
44213
44214 2006-11-22  Jim Meyering  <jim@meyering.net>
44215
44216         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44217         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44218         (fts_read): Use a temporary to narrow the overused st_size member
44219         before using it in a switch statement.  Reported by Matthew Woehlke.
44220
44221         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44222         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44223
44224 2006-11-20  Bruno Haible  <bruno@clisp.org>
44225
44226         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44227         changequote instead of pairs of brackets.
44228         Reported by Andreas Schwab <schwab@suse.de>.
44229
44230 2006-11-21  Jim Meyering  <jim@meyering.net>
44231
44232         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44233         so as to remain compatible with older compilers.
44234         Patch from Michael Deutschmann.
44235
44236 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44237
44238         * MODULES.html.sh (File system functions): Add openat.
44239
44240         * lib/openat.h (rpl_fstatat): New macro, if
44241         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44242         (fstatat): Define to rpl_fstatat under the same conditions,
44243         unless COMPILING_FSTATAT.
44244         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44245         seems to have the bug.
44246         * lib/fstatat.c: New file.
44247         * modules/openat (Files): Add it.
44248
44249 2006-11-20  Bruno Haible  <bruno@clisp.org>
44250
44251         * Makefile: New file.
44252
44253 2006-11-20  Jim Meyering  <jim@meyering.net>
44254
44255         The beginnings of syntax-related checks for gnulib.
44256         * lib/Makefile: New file.
44257         * lib/t-idcache: New script.  Ensure that the two halves of
44258         idcache.c stay in sync.
44259
44260         * lib/idcache.c: Adjust comments in user- and group- portions to
44261         be more accurate, and to be consistent with one another.
44262
44263 2006-11-20  Jim Meyering  <jim@meyering.net>
44264
44265         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44266         continue using the flexible array member (thus, this module performs
44267         half as many malloc calls), with the addition that...
44268         (getgroup, getuser): Consistently record a non-match via an empty
44269         "name" string, and map an empty string match to a NULL return value.
44270         * modules/idcache (Depends-on): Re-add flexmember.
44271
44272         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44273         (getuidbyname, getgroup, getgidbyname): Likewise.
44274
44275         Use cleaner syntax: NULL rather than 0.
44276         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44277
44278 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44279
44280         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44281         It mishandled the case where the group was missing.
44282         Problem reported by Greg Schafer.
44283         * modules/idcache: Likewise.
44284
44285 2006-11-18  Jim Meyering  <jim@meyering.net>
44286
44287         * check-module (%exempt_header): Add exception for some
44288         conditionally-included headers.
44289
44290         * modules/i-ring (Depends-on): Add verify.
44291         (License): Change to LGPL.
44292
44293 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44294
44295         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44296         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44297         and inttostr.h.  Use snprintf rather than uinttostr, so that
44298         LGPLed code doesn't depend on GPLed.
44299
44300 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44301
44302         * modules/inline (License): Change from GPL to LGPL.
44303
44304 2006-11-17  Jim Meyering  <jim@meyering.net>
44305
44306         * modules/d-type (License): Switch to LGPL.
44307
44308 2006-11-15  Bruno Haible  <bruno@clisp.org>
44309
44310         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44311
44312 2006-11-15  Eric Blake  <ebb9@byu.net>
44313
44314         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44315         the module dependency.
44316
44317 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44318             Bruno Haible  <bruno@clisp.org>
44319
44320         * gnulib-tool (func_create_testdir): Add license consistency check.
44321
44322 2006-11-15  Eric Blake  <ebb9@byu.net>
44323
44324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44325         random "(cached)" in configure output.
44326
44327 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44328
44329         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44330         test for conforming inttypes.h is both announced and cached.
44331
44332         * MODULES.html.sh (seen_modules, seen_files): New variables.
44333         (func_module): Rewrite to use a few less gnulib-tool and sed
44334         invocations.  Avoid a couple of quadratic algorithms for ...
44335         (missed_modules, missed_files): ... these, with ...
44336         (func_append, func_tmpdir): ... these new functions, from
44337         gnulib-tool.  Analogously, install traps for cleanup.
44338
44339         * tests/test-gc.c (main): Remove unused variables.
44340         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44341
44342 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44343
44344         * modules/inttostr (License): Change to LGPL.
44345
44346 2006-11-14  Eric Blake  <ebb9@byu.net>
44347
44348         * modules/tempname (License): Change to LGPL.
44349
44350 2006-11-14  Eric Blake  <ebb9@byu.net>
44351
44352         * doc/functions.texi (Function Portability): *printf functions on
44353         Cygwin now understand all POSIX size specifiers.
44354
44355 2006-11-14  Bruno Haible  <bruno@clisp.org>
44356
44357         * modules/c-ctype (License): Change to LGPL.
44358
44359 2006-11-12  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44362         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44363         for GNOME libraries, for which the include files are installed in
44364         subdirectories of $prefix/include.
44365
44366 2006-11-12  Bruno Haible  <bruno@clisp.org>
44367
44368         * m4/lib-link.m4: Require at least autoconf-2.54.
44369         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44370         name to underscores for the --with option.
44371
44372 2006-11-13  Bruno Haible  <bruno@clisp.org>
44373
44374         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44375         the tests directory.
44376         Reported by Ralf Wildenhues.
44377
44378 2006-11-13  Bruno Haible  <bruno@clisp.org>
44379
44380         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44381         (func_emit_initmacro_end): Undo the override here.
44382         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44383         Works around the famous automake error in coreutils.
44384
44385 2006-11-13  Eric Blake  <ebb9@byu.net>
44386
44387         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44388         element, not its node.
44389
44390 2006-11-12  Bruno Haible  <bruno@clisp.org>
44391
44392         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44393         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44394
44395 2006-11-12  Bruno Haible  <bruno@clisp.org>
44396
44397         * gnulib-tool: New option --local-symlink.
44398         (func_usage): Document it.
44399         (lsymbolic): New variable.
44400         (func_import, func_create_testdir): If --symlink was not specified,
44401         test whether --local-symlink was specified and the file comes from
44402         the local_gnulib_dir.
44403
44404 2006-11-12  Bruno Haible  <bruno@clisp.org>
44405
44406         * gnulib-tool (func_ln): New function.
44407         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44408
44409 2006-11-12  Bruno Haible  <bruno@clisp.org>
44410
44411         Finish support for source files in subdirectories.
44412         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44413         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44414         AUTOMAKE_OPTIONS.
44415         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44416
44417 2006-11-12  Bruno Haible  <bruno@clisp.org>
44418
44419         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44420         EXTRA_lib_SOURCES augmentation.
44421         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44422
44423 2006-11-12  Jim Meyering  <jim@meyering.net>
44424
44425         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44426         file descriptors.  This also averts a failure on systems with
44427         native openat support when a traversed directory lacks "x" access.
44428         * lib/fts_.h: Include "i-ring.h"
44429         (struct FTS) [fts_fd_ring]: New member.
44430         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44431         (FCHDIR): Add parentheses.
44432         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44433         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44434         When descending, rather than simply closing the previous
44435         fts_cwd_fd value, push that file descriptor onto the ring.
44436         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44437         (fts_open): Initialize the new fd_ring member.
44438         (fts_close): Clear the ring.
44439         (fts_safe_changedir): When possible, use our new fd_ring to skip
44440         the diropen and fstat and dev/ino comparison that would normally
44441         accompany a virtual `chdir ("..")'.
44442
44443         * modules/fts (Depends-on): Add i-ring.
44444         * modules/i-ring: New module.
44445         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44446         * m4/i-ring.m4: New file.
44447
44448 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44449
44450         * gnulib-tool (func_create_testdir): Fix replacement of
44451         `build-aux' in configure.ac.  Run autotools in gltests
44452         subdirectory.
44453         (func_create_testdir, func_create_megatestdir, test): There is
44454         no need for '--force' in most autotool invocations in a new
44455         tree.  Actually fail the whole test if any of the tools, or the
44456         configure or make stages fail.
44457
44458         Sync from Automake.
44459         * build-aux/gnupload: Revert last change.  Add pointer to upload
44460         instructions of the GNU Maintenance Instructions.
44461         Suggestion by Karl Berry.
44462
44463 2006-11-10  Jim Meyering  <jim@meyering.net>
44464
44465         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44466
44467 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44468
44469         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44470         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44471         (bind_textdomain_codeset) [! ENABLE_NLS]:
44472         Evaluate all the arguments.  That way, callers get compatible behavior
44473         if the arguments have side effects.  Also, it avoids some GCC
44474         diagnostics in some cases; Joel E. Denny reported problems when Bison
44475         was configured with --enable-gcc-warnigs.
44476
44477 2006-11-10  Jim Meyering  <jim@meyering.net>
44478
44479         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44480         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44481         account.
44482
44483 2006-11-10  Jim Meyering  <jim@meyering.net>
44484
44485         * modules/inline: New file/module.
44486         * modules/xalloc (Files): Remove m4/inline.m4.
44487         (Depends-on): Add inline, instead.
44488         * modules/oset: Likewise.
44489         * modules/list: Likewise.
44490
44491 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44492
44493         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44494         Problem reported by Matthew Woehlke.
44495
44496 2006-11-09  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/tempname.c (gen_tempname): Remove variant that invokes
44499         __gen_tempname.
44500         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44501         __gen_tempname.
44502
44503 2006-11-08  Bruno Haible  <bruno@clisp.org>
44504
44505         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44506         to 'yes' instead of 'cross-compiling'.
44507
44508 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44509
44510         * lib/quotearg.h (quotearg_free): New decl.
44511         * lib/quotearg.c (quotearg_free): New function.
44512         (slot0, nslots, slotvec0, slotvec):
44513         Now file-scope so that quotearg_free can get at them.
44514
44515 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44516
44517         Sync from Automake.
44518         * build-aux/gnupload: Add missing 'gnu' to example URL.
44519         Report by Karl Berry.
44520
44521 2006-11-08  Bruno Haible  <bruno@clisp.org>
44522
44523         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44524         Suggested by Paul Eggert.
44525
44526 2006-11-08  Jim Meyering  <jim@meyering.net>
44527
44528         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
44529         It's already included if !_LIBC.
44530         (fts_safe_changedir): Add a comment.
44531
44532 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
44535         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
44536         Matthew Woehlke.
44537
44538         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
44539         definitions up, to avoid colliding with change below.
44540         (static_inline) [HAVE_INLINE]: New macro.
44541         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
44542         Provide extern decls when !HAVE_INLINE.  Do not define unless
44543         static_inline is defined, either by us or by xmalloc.c.  Use
44544         static_inline rather than static inline.
44545         (XCALLOC): Optimize sizeof(T) = 1 case.
44546         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
44547
44548 2006-11-07  Bruno Haible  <bruno@clisp.org>
44549
44550         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
44551         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
44552         AC_C_INLINE.
44553         * modules/xalloc (Files): Add m4/inline.m4.
44554
44555 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44556
44557         * README: Fix typo.
44558         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
44559         (Miscellanous Notes): ...from this.
44560
44561 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
44562
44563         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44564         Mention that offsetof should be used instead of sizeof.
44565         From Bruno Haible.
44566
44567 2006-11-07  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
44570
44571 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44572
44573         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44574         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
44575         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44576         (gl_tree_add_before, gl_tree_add_after):
44577         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
44578         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
44579         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44580         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
44581         (gl_linked_add_after, gl_linked_add_at): Likewise.
44582         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
44583         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
44584         (gl_tree_add_before, gl_tree_add_after): Likewise.
44585         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
44586         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
44587         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
44588
44589 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44590
44591         * lib/gl_oset.h: Use C comment style, not C++ comment style.
44592
44593 2006-11-06  Bruno Haible  <bruno@clisp.org>
44594
44595         * m4/inline.m4: New file.
44596         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
44597         * modules/list (Files): Add m4/inline.m4.
44598         * modules/oset (Files): Likewise.
44599
44600 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44601
44602         * lib/idcache.c: Include <stddef.h>, for offsetof.
44603         (struct userid.name): Change from char * to a flexible array member.
44604         All uses changed.
44605         * modules/idcache (Depends-on): Add flexmember.
44606
44607         * MODULES.html.sh (Core language properties): New module flexmember.
44608         * modules/flexmember, m4/flexmember.m4: New files.
44609
44610         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
44611         inline functions that are identical with the old xnmalloc_inline,
44612         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
44613         that we can avoid some unnecessary integer multiplications and
44614         divisions in the common case where the element size is known at
44615         compile time.
44616         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
44617         needed.
44618         (xnboundedmalloc): Remove.
44619         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
44620         arguments, for consistency with rest of this header.
44621         (xcharalloc): Rewrite using XNMALLOC.
44622         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
44623         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
44624         versions have been moved to lib/xalloc.h and renamed to be the
44625         non-*_inline versions.
44626         (xmalloc, xrealloc): Implement without reference to the xnmalloc
44627         and xnrealloc functions, since those functions are now inline and
44628         now call us.
44629         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
44630         renaming described above.
44631         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
44632         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
44633         captures the dependency in AC_C_INLINE.
44634
44635         New module canonicalize-lgpl, proposed by Charles Wilson in
44636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
44637         with a few small changes afterwards.
44638         * MODULES.html.sh (File system functions): New module
44639         canonicalize-lgpl.
44640         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
44641         and canonicalize_file_name.
44642         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
44643         * modules/canonicalize-lgpl: New files.
44644
44645 2006-11-05  Bruno Haible  <bruno@clisp.org>
44646
44647         * gnulib-tool (func_import, func_create_testdir): Create directories
44648         also for files in subdirectories of lib/.
44649
44650 2006-11-05  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
44653         ANSI C compliant.
44654
44655 2006-11-03  Bruno Haible  <bruno@clisp.org>
44656
44657         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
44658         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
44659         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
44660         (xnboundedmalloc): New inline function.
44661         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
44662         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
44663         xmalloc.
44664         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
44665         xmalloc.
44666         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
44667         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
44668         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
44669         xmalloc.
44670         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44671         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
44672         xmalloc.
44673         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
44674         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44675         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
44676         xmalloc.
44677         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
44678         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
44679         gl_tree_add_after): Use XMALLOC instead of xmalloc.
44680         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
44681         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
44682         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
44683         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
44684
44685 2006-11-03  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/c-ctype.h [C++]: Define functions without name mangling.
44688         * lib/fwriteerror.h [C++]: Likewise.
44689         * lib/gcd.h [C++]: Likewise.
44690         * lib/linebreak.h [C++]: Likewise.
44691
44692 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
44693
44694         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
44695         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
44696         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
44697         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44698         Check for functions and headers just once.
44699         Check for declaration of canonicalize_file_name.
44700         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
44701
44702 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44703
44704         * gnulib-tool (func_import): Fix typo in actioncmd.
44705
44706 2006-11-02  Bruno Haible  <bruno@clisp.org>
44707
44708         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
44709         newline sequence in the Makefile.am snippet as a space, like "make"
44710         does.
44711         Reported by Roger Persson <perrog@gmail.com>.
44712
44713 2006-11-01  Bruno Haible  <bruno@clisp.org>
44714
44715         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
44716         already declared in <string.h>.
44717         * lib/strcase.h (strncasecmp): Don't declare it if yes.
44718
44719 2006-11-01  Bruno Haible  <bruno@clisp.org>
44720
44721         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
44722         * lib/strcase.h: Include <string.h>.
44723         (strcasecmp): Define to rpl_strcasecmp here.
44724
44725 2006-11-01  Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
44728
44729 2006-11-01  Eric Blake  <ebb9@byu.net>
44730
44731         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
44732
44733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
44734
44735 2006-10-29  Bruno Haible  <bruno@clisp.org>
44736
44737         Make it compile in C++ mode.
44738         * lib/full-write.c (full_rw): Add a cast.
44739
44740 2006-11-01  Bruno Haible  <bruno@clisp.org>
44741
44742         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
44743         be POSIX compliant.
44744         Reported by Roger Persson <perrog@gmail.com>.
44745
44746 2006-11-01  Eric Blake  <ebb9@byu.net>
44747
44748         * lib/getopt_.h: Fix comments.
44749
44750 2006-10-31  Eric Blake  <ebb9@byu.net>
44751
44752         * modules/tmpdir (Depends-on): Add sys_stat.
44753         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
44754         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
44755         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
44756         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
44757         tempname.
44758
44759 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44760
44761         Avoid some C++ diagnostics reported by Bruno Haible.
44762         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
44763         xmalloc.
44764         (quotearg_alloc): Use xcharalloc rather than xmalloc.
44765         (struct slotvec): Move to top level.
44766         (quotearg_n_options): Rewrite to avoid xmalloc.
44767         * lib/xalloc.h (xcharalloc): New function.
44768         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
44769         [defined __cplusplus]: Add function template that provides result
44770         type propagation.  This part of the change is from Bruno Haible.
44771
44772 2006-10-29  Bruno Haible  <bruno@clisp.org>
44773
44774         Make it compile in C++ mode.
44775         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
44776         * lib/strnlen1.c (strnlen1): Cast memchr result.
44777         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
44778         * lib/clean-temp.c (string_equals, string_hash): Add casts.
44779         (create_temp_dir): Rename local variable 'template'.
44780         (compile_csharp_using_sscli): Add cast.
44781         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
44782         * lib/findprog.c (find_in_path): Likewise.
44783         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
44784         * lib/wait-process.c (register_slave_subprocess): Likewise.
44785
44786 2006-10-22  Bruno Haible  <bruno@clisp.org>
44787
44788         * modules/tsearch: New file.
44789         * lib/tsearch.h: New file.
44790         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
44791         * m4/tsearch.m4: New file.
44792         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
44793
44794 2006-10-29  Eric Blake  <ebb9@byu.net>
44795
44796         * lib/arcfour.c: Assume config.h.
44797         * lib/arctwo.c: Likewise.
44798         * lib/base64.c: Likewise.
44799         * lib/check-version.c: Likewise.
44800         * lib/crc.c: Likewise.
44801         * lib/des.c: Likewise.
44802         * lib/gc-gnulib.c: Likewise.
44803         * lib/gc-libgcrypt.c: Likewise.
44804         * lib/gc-pbkdf2-sha1.c: Likewise.
44805         * lib/getaddrinfo.c: Likewise.
44806         * lib/getdelim.c: Likewise.
44807         * lib/getline.c: Likewise.
44808         * lib/hmac-md5.c: Likewise.
44809         * lib/hmac-sha1.c: Likewise.
44810         * lib/iconvme.c: Likewise.
44811         * lib/md2.c: Likewise.
44812         * lib/md4.c: Likewise.
44813         * lib/memxor.c: Likewise.
44814         * lib/read-file.c: Likewise.
44815         * lib/readline.c: Likewise.
44816         * lib/rijndael-alg-fst.c: Likewise.
44817         * lib/rijndael-api-fst.c: Likewise.
44818         * lib/xgetdomainname.c: Likewise.
44819
44820 2006-10-28  Eric Blake  <ebb9@byu.net>
44821
44822         * lib/xstrndup.c: Assume config.h.
44823
44824 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44825
44826         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
44827         stat-macros.h is now for our own macros, whereas stat_h is for
44828         macros in the <sys/stat.h> name space.
44829         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
44830         (STAT_MACROS_H): Remove.
44831         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
44832         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
44833         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
44834         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
44835         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
44836         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
44837         Move these macros to ...
44838         * lib/stat_.h: here.  Don't include stat-macros.h.
44839         * lib/canonicalize.c: Don't include stat-macros.h.
44840         * lib/chown.c: Likewise.
44841         * lib/euidaccess.c: Likewise.
44842         * lib/file-type.c: Likewise.
44843         * lib/filemode.c: Likewise.
44844         * lib/glob.c: Likewise.
44845         * lib/isapipe.c: Likewise.
44846         * lib/lchown.c: Likewise.
44847         * lib/lstat.c: Likewise.
44848         * lib/mkdir-p.c: Likewise.
44849         * lib/rmdir.c: Likewise.
44850         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
44851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
44852         unless mkdir isn't declared, to speed up 'configure'.
44853         Always create sys/stat.h, since it's unlikely any real sys/stat.h
44854         would define all the S_* symbols.
44855         * modules/canonicalize (Depends-on):
44856         Depend on sys_stat, not stat-macros.
44857         * modules/chown: Likewise.
44858         * modules/euidaccess: Likewise.
44859         * modules/filemode: Likewise.
44860         * modules/file-type: Likewise.
44861         * modules/glob: Likewise.
44862         * modules/isapipe: Likewise.
44863         * modules/lchown: Likewise.
44864         * modules/lstat: Likewise.
44865         * modules/mkancesdirs: Likewise.
44866         * modules/rmdir: Likewise.
44867         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
44868         * modules/modechange: Likewise.
44869         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
44870         (configure.ac): Remove gl_STAT_MACROS.
44871         * modules/sys_stat (Depends-on): Remove stat-macros.
44872
44873 2006-10-27  Bruno Haible  <bruno@clisp.org>
44874
44875         * m4/signed.m4: Remove file.
44876         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
44877         invocation.
44878         * modules/vasnprintf (Files): Remove m4/signed.m4.
44879
44880 2006-10-27  Bruno Haible  <bruno@clisp.org>
44881
44882         Update to GNU gettext 0.16.
44883         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
44884         m4/inttypes-h.m4, m4/signed.m4.
44885         * m4/gettext.m4: Update to GNU gettext 0.16.
44886         * m4/intl.m4: New file, from GNU gettext.
44887         * m4/intldir.m4: New file, from GNU gettext.
44888         * config/srclist.txt: Update
44889
44890 2006-10-27  Eric Blake  <ebb9@byu.net>
44891
44892         * MODULES.html.sh: Document tempname.
44893         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
44894         dependencies.
44895         (Files): Move lib/tempname.c...
44896         * modules/tempname: ...to this new module.
44897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
44898         (gl_PREREQ_TEMPNAME): Move...
44899         * m4/tempname.m4: ...to this new file.
44900         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
44901         * modules/sys_stat (Depends-on): Add stat-macros.
44902         * lib/stat_.h (includes): Pick up stat macros.
44903         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
44904         if stat macros are broken.
44905         * lib/tempname.c (includes): No need to include "stat-macros.h".
44906         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
44907         (direxists, __path_search) [!_LIBC]: Don't compile these in
44908         gnulib; the tmpdir module covers that.
44909         * lib/tempname.h: New file.
44910
44911 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
44912
44913         * COPYING: Explain how gnulib-tool converts licence headers.
44914         Almost all wording by Eric Blake.
44915
44916 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * lib/mbchar.h (is_basic_table): Make read-only.
44919         * lib/mbchar.c (is_basic_table): Likewise.
44920         Reported by John Darrington.
44921
44922 2006-10-25  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/progname.h (set_program_name): Undefine before defining.
44925
44926 2006-10-25  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
44929         false for non-gcc C++ compilers.
44930         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44931
44932 2006-10-24  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
44935         iconv implementations like Irix iconv.
44936
44937 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44938
44939         * modules/vararrays: New file.
44940         * m4/vararrays.m4: New file, taken from diffutils.
44941         * MODULES.html.sh: New module vararrays.
44942
44943 2006-10-24  Karl Berry  <karl@gnu.org>
44944
44945         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
44946         Don't call GNU Unix.
44947
44948 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44949
44950         * users.txt: Add Libtool.
44951
44952         Sync from Libtool:
44953
44954         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44955
44956         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
44957         to gnulib's policy of including config.h unconditionally.
44958
44959 2006-10-24  Bruno Haible  <bruno@clisp.org>
44960
44961         * modules/wcwidth (Files): Add m4/wint_t.m4.
44962         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
44963         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
44964
44965 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44966
44967         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
44968         to pacify GCC with some -W flags enabled.  Problem reported by
44969         Bruno Haible.
44970
44971 2006-10-24  Jim Meyering  <jim@meyering.net>
44972
44973         * MODULES.html.sh: Remove uinttostr.  It's not a module.
44974         Reported by Karl Berry.
44975
44976 2006-10-23  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
44979
44980 2006-10-24  Bruno Haible  <bruno@clisp.org>
44981
44982         * lib/gl_list.h: Use C comment style, not C++ comment style.
44983
44984 2006-10-23  Eric Blake  <ebb9@byu.net>
44985
44986         * lib/getaddrinfo.c (includes): Add missing include.
44987
44988 2006-10-23  Bruno Haible  <bruno@clisp.org>
44989             Paul Eggert  <eggert@cs.ucla.edu>
44990
44991         Ability to rename obstack_free.
44992         * lib/obstack.h (__obstack_free): New macro. Declare instead of
44993         obstack_free.
44994         (obstack_free): Invoke the __obstack_free macro.
44995         * lib/obstack.c (obstack_free): Use __obstack_free macro.
44996
44997 2006-10-23  Bruno Haible  <bruno@clisp.org>
44998             Paul Eggert  <eggert@cs.ucla.edu>
44999
45000         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45001         __argc, __argv from the declaration. (They are defined as macros on
45002         mingw.)
45003
45004 2006-10-22  Bruno Haible  <bruno@clisp.org>
45005
45006         * doc/gnulib-intro.texi: New file.
45007         * doc/gnulib.texi: Include it.
45008
45009 2006-10-21  Bruno Haible  <bruno@clisp.org>
45010
45011         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45012         "Introduction", "Miscellanous Notes", "Particular Modules".
45013
45014 2006-10-21  Bruno Haible  <bruno@clisp.org>
45015
45016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45017         Change mostlyclean-local rule to avoid sh syntax error from bash
45018         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45019
45020 2006-10-23  Jim Meyering  <jim@meyering.net>
45021
45022         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45023         in place of snprintf.
45024
45025         * modules/inttostr (Files): Add lib/uinttostr.c.
45026         * lib/uinttostr.c (inttostr): New file/function.
45027         * lib/inttostr.h (uinttostr): Declare.
45028         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45029         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45030         Add uinttostr.
45031         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45032
45033 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45034
45035         * lib/canonicalize.c (ELOOP): Define if not already defined.
45036         Problem reported by Bruno Haible in
45037         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45038
45039 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45040
45041         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45042         Problem reported by Perry Smith and Ville Laurikari.
45043
45044         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45045         uses.
45046
45047 2006-10-19  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45050         for mingw.
45051
45052 2006-10-19  Bruno Haible  <bruno@clisp.org>
45053
45054         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45055         Needed for mingw.
45056
45057 2006-10-19  Bruno Haible  <bruno@clisp.org>
45058
45059         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45060
45061 2006-10-19  Bruno Haible  <bruno@clisp.org>
45062
45063         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45064         it.
45065
45066 2006-10-19  Bruno Haible  <bruno@clisp.org>
45067
45068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45069         invocation.
45070
45071 2006-10-19  Bruno Haible  <bruno@clisp.org>
45072
45073         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45074         mountlist by default.
45075
45076 2006-10-16  Bruno Haible  <bruno@clisp.org>
45077
45078         * lib/c-strstr.c: Include c-strstr.h.
45079
45080 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45081
45082         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45083         in a slash.
45084
45085 2006-10-18  Bruno Haible  <bruno@clisp.org>
45086
45087         * lib/lock.h [C++]: Wrap definitions in extern "C".
45088
45089 2006-10-18  Bruno Haible  <bruno@clisp.org>
45090
45091         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45092         gl_LIBOBJS list.
45093
45094 2006-10-18  Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45097
45098 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45099
45100         * lib/xstrtol.h: Include gettext.h.
45101         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45102         Problem reported by Eric Blake.
45103         * modules/xstrtol (Depends-on): Add gettext-h.
45104
45105 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45106
45107         * lib/strftime.c (advance): New macro.
45108         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45109         incomplete type, so you can't add 0 to it.  Problem and patch
45110         reported by Eelco Dolstra for dietlibc.
45111
45112 2006-10-18  Jim Meyering  <jim@meyering.net>
45113
45114         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45115         type for a local, and rename it: s/up/user_proc/.
45116
45117 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45118
45119         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45120         READ_UTMP_USER_PROCESS.
45121         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45122
45123 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45124
45125         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45126         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45127
45128 2006-10-17  Eric Blake  <ebb9@byu.net>
45129
45130         * lib/sigprocmask.c (sigprocmask): Fix typo.
45131
45132         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45133
45134         * modules/clean-temp (Makefile.am): Don't add to make output...
45135         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45136         config.h.
45137
45138 2006-10-17  Bruno Haible  <bruno@clisp.org>
45139
45140         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45141         differently if DEFAULT_TEXT_DOMAIN is set.
45142
45143 2006-10-16  Bruno Haible  <bruno@clisp.org>
45144
45145         * lib/clean-temp.c: Include fwriteerror.h.
45146
45147 2006-10-16  Bruno Haible  <bruno@clisp.org>
45148
45149         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45150
45151 2006-10-16  Bruno Haible  <bruno@clisp.org>
45152
45153         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45154         * lib/sigprocmask.h: Include <sys/types.h>.
45155         (sigset_t): Use the system's definition if present.
45156
45157 2006-10-17  Eric Blake  <ebb9@byu.net>
45158
45159         * lib/xvasprintf.c (includes): Assume config.h.
45160         * lib/xasprintf.c (includes): Likewise.
45161
45162 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45163
45164         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45165         at least as wide as intmax_t.
45166
45167 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45168
45169         (Imported from Automake.)
45170         * build-aux/gnupload: Update to version 1.1 of directive file.
45171
45172 2006-10-16  Eric Blake  <ebb9@byu.net>
45173
45174         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45175         match Automake 1.10a.
45176
45177 2006-10-14  Bruno Haible  <bruno@clisp.org>
45178
45179         * modules/sigprocmask: New file.
45180         * lib/sigprocmask.h: New file.
45181         * lib/sigprocmask.c: New file.
45182         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45183         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45184         request sigprocmask.o.
45185         (gl_PREREQ_SIGPROCMASK): New macro.
45186         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45187         (Depends-on): Add sigprocmask.
45188         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45189         gt_SIGNALBLOCKING. Test for 'raise' only once.
45190         * lib/fatal-signal.c: Include sigprocmask.h.
45191         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45192         unblock_fatal_signals): Define always.
45193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45194         sigprocmask.
45195
45196 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45197
45198         Sync from Automake.
45199         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45200         which incorrectly sets the mode of an existing destination
45201         directory.  In some cases the unpatched install-sh could do the
45202         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45203         system.  We hope this is rare in practice, but it's clearly worth
45204         fixing.  Problem reported by Alex Unleashed in
45205         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45206         Also, don't bother to check for -m bugs unless we're using -m;
45207         suggested by Stepan Kasal.
45208
45209 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45210
45211         Sync from Automake.
45212         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45213         `-c' flag, so they appear at the same position as in %FASTDEP%
45214         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45215         which ignores unknown options only after the first non-option.
45216         Bug report against M4 by Nelson H. F. Beebe.
45217
45218 2006-10-13  Jim Meyering  <jim@meyering.net>
45219
45220         Fix a bug in yesterday's change.
45221         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45222         p->fts_statp->st_dev would be used uninitialized.
45223         Ensures that we always call fts_stat on the very first entry.
45224         Miklos Szeredi reported that find -xdev stopped working.
45225
45226 2006-10-12  Bruno Haible  <bruno@clisp.org>
45227
45228         * gnulib-tool (func_get_automake_snippet): Append an automatically
45229         computed EXTRA_DIST augmentation.
45230         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45231         * modules/alloca-opt (Makefile.am): Likewise.
45232         * modules/allocsa (Makefile.am): Likewise.
45233         * modules/arcfour (Makefile.am): Likewise.
45234         * modules/arctwo (Makefile.am): Likewise.
45235         * modules/argmatch (Makefile.am): Likewise.
45236         * modules/argz (Makefile.am): Likewise.
45237         * modules/atexit (Makefile.am): Likewise.
45238         * modules/backupfile (Makefile.am): Likewise.
45239         * modules/byteswap (Makefile.am): Likewise.
45240         * modules/c-strtod (Makefile.am): Likewise.
45241         * modules/c-strtold (Makefile.am): Likewise.
45242         * modules/calloc (Makefile.am): Likewise.
45243         * modules/canon-host (Makefile.am): Likewise.
45244         * modules/canonicalize (Makefile.am): Likewise.
45245         * modules/chdir-long (Makefile.am): Likewise.
45246         * modules/chdir-safer (Makefile.am): Likewise.
45247         * modules/check-version (Makefile.am): Likewise.
45248         * modules/chown (Makefile.am): Likewise.
45249         * modules/cloexec (Makefile.am): Likewise.
45250         * modules/close-stream (Makefile.am): Likewise.
45251         * modules/closeout (Makefile.am): Likewise.
45252         * modules/crc (Makefile.am): Likewise.
45253         * modules/csharpexec (Makefile.am): Likewise.
45254         * modules/cycle-check (Makefile.am): Likewise.
45255         * modules/des (Makefile.am): Likewise.
45256         * modules/dev-ino (Makefile.am): Likewise.
45257         * modules/dirfd (Makefile.am): Likewise.
45258         * modules/dirname (Makefile.am): Likewise.
45259         * modules/dup2 (Makefile.am): Likewise.
45260         * modules/eealloc (Makefile.am): Likewise.
45261         * modules/error (Makefile.am): Likewise.
45262         * modules/euidaccess (Makefile.am): Likewise.
45263         * modules/exclude (Makefile.am): Likewise.
45264         * modules/exitfail (Makefile.am): Likewise.
45265         * modules/fcntl-safer (Makefile.am): Likewise.
45266         * modules/fcntl (Makefile.am): Likewise.
45267         * modules/file-type (Makefile.am): Likewise.
45268         * modules/fileblocks (Makefile.am): Likewise.
45269         * modules/filemode (Makefile.am): Likewise.
45270         * modules/filenamecat (Makefile.am): Likewise.
45271         * modules/fnmatch (Makefile.am): Likewise.
45272         * modules/fopen-safer (Makefile.am): Likewise.
45273         * modules/fpending (Makefile.am): Likewise.
45274         * modules/fprintftime (Makefile.am): Likewise.
45275         * modules/free (Makefile.am): Likewise.
45276         * modules/fsusage (Makefile.am): Likewise.
45277         * modules/ftruncate (Makefile.am): Likewise.
45278         * modules/fts (Makefile.am): Likewise.
45279         * modules/gc-arcfour (Makefile.am): Likewise.
45280         * modules/gc-des (Makefile.am): Likewise.
45281         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45282         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45283         * modules/gc-md4 (Makefile.am): Likewise.
45284         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45285         * modules/gc-sha1 (Makefile.am): Likewise.
45286         * modules/gc (Makefile.am): Likewise.
45287         * modules/getaddrinfo (Makefile.am): Likewise.
45288         * modules/getcwd (Makefile.am): Likewise.
45289         * modules/getdelim (Makefile.am): Likewise.
45290         * modules/getdomainname (Makefile.am): Likewise.
45291         * modules/getgroups (Makefile.am): Likewise.
45292         * modules/gethostname (Makefile.am): Likewise.
45293         * modules/gethrxtime (Makefile.am): Likewise.
45294         * modules/getline (Makefile.am): Likewise.
45295         * modules/getloadavg (Makefile.am): Likewise.
45296         * modules/getlogin_r (Makefile.am): Likewise.
45297         * modules/getndelim2 (Makefile.am): Likewise.
45298         * modules/getopt (Makefile.am): Likewise.
45299         * modules/getpagesize (Makefile.am): Likewise.
45300         * modules/getpass-gnu (Makefile.am): Likewise.
45301         * modules/getpass (Makefile.am): Likewise.
45302         * modules/getsubopt (Makefile.am): Likewise.
45303         * modules/gettime (Makefile.am): Likewise.
45304         * modules/gettimeofday (Makefile.am): Likewise.
45305         * modules/getugroups (Makefile.am): Likewise.
45306         * modules/getusershell (Makefile.am): Likewise.
45307         * modules/glob (Makefile.am): Likewise.
45308         * modules/group-member (Makefile.am): Likewise.
45309         * modules/hard-locale (Makefile.am): Likewise.
45310         * modules/hash (Makefile.am): Likewise.
45311         * modules/hmac-md5 (Makefile.am): Likewise.
45312         * modules/hmac-sha1 (Makefile.am): Likewise.
45313         * modules/human (Makefile.am): Likewise.
45314         * modules/idcache (Makefile.am): Likewise.
45315         * modules/imaxabs (Makefile.am): Likewise.
45316         * modules/imaxdiv (Makefile.am): Likewise.
45317         * modules/inet_ntop (Makefile.am): Likewise.
45318         * modules/inet_pton (Makefile.am): Likewise.
45319         * modules/intprops (Makefile.am): Likewise.
45320         * modules/inttostr (Makefile.am): Likewise.
45321         * modules/inttypes (Makefile.am): Likewise.
45322         * modules/isapipe (Makefile.am): Likewise.
45323         * modules/javaversion (Makefile.am): Likewise.
45324         * modules/lchmod (Makefile.am): Likewise.
45325         * modules/lchown (Makefile.am): Likewise.
45326         * modules/localcharset (Makefile.am): Likewise.
45327         * modules/long-options (Makefile.am): Likewise.
45328         * modules/lstat (Makefile.am): Likewise.
45329         * modules/malloc (Makefile.am): Likewise.
45330         * modules/mathl (Makefile.am): Likewise.
45331         * modules/mbchar (Makefile.am): Likewise.
45332         * modules/md2 (Makefile.am): Likewise.
45333         * modules/md4 (Makefile.am): Likewise.
45334         * modules/md5 (Makefile.am): Likewise.
45335         * modules/memcasecmp (Makefile.am): Likewise.
45336         * modules/memchr (Makefile.am): Likewise.
45337         * modules/memcmp (Makefile.am): Likewise.
45338         * modules/memcoll (Makefile.am): Likewise.
45339         * modules/memcpy (Makefile.am): Likewise.
45340         * modules/memmem (Makefile.am): Likewise.
45341         * modules/memmove (Makefile.am): Likewise.
45342         * modules/mempcpy (Makefile.am): Likewise.
45343         * modules/memrchr (Makefile.am): Likewise.
45344         * modules/memset (Makefile.am): Likewise.
45345         * modules/memxor (Makefile.am): Likewise.
45346         * modules/mkancesdirs (Makefile.am): Likewise.
45347         * modules/mkdir-p (Makefile.am): Likewise.
45348         * modules/mkdir (Makefile.am): Likewise.
45349         * modules/mkdtemp (Makefile.am): Likewise.
45350         * modules/mkstemp (Makefile.am): Likewise.
45351         * modules/mktime (Makefile.am): Likewise.
45352         * modules/modechange (Makefile.am): Likewise.
45353         * modules/mountlist (Makefile.am): Likewise.
45354         * modules/nanosleep (Makefile.am): Likewise.
45355         * modules/obstack (Makefile.am): Likewise.
45356         * modules/openat (Makefile.am): Likewise.
45357         * modules/pagealign_alloc (Makefile.am): Likewise.
45358         * modules/pathmax (Makefile.am): Likewise.
45359         * modules/physmem (Makefile.am): Likewise.
45360         * modules/poll (Makefile.am): Likewise.
45361         * modules/posixtm (Makefile.am): Likewise.
45362         * modules/posixver (Makefile.am): Likewise.
45363         * modules/putenv (Makefile.am): Likewise.
45364         * modules/quote (Makefile.am): Likewise.
45365         * modules/quotearg (Makefile.am): Likewise.
45366         * modules/raise (Makefile.am): Likewise.
45367         * modules/read-file (Makefile.am): Likewise.
45368         * modules/readline (Makefile.am): Likewise.
45369         * modules/readlink (Makefile.am): Likewise.
45370         * modules/readtokens (Makefile.am): Likewise.
45371         * modules/readutmp (Makefile.am): Likewise.
45372         * modules/realloc (Makefile.am): Likewise.
45373         * modules/regex (Makefile.am): Likewise.
45374         * modules/rename-dest-slash (Makefile.am): Likewise.
45375         * modules/rename (Makefile.am): Likewise.
45376         * modules/rijndael (Makefile.am): Likewise.
45377         * modules/rmdir (Makefile.am): Likewise.
45378         * modules/rpmatch (Makefile.am): Likewise.
45379         * modules/safe-read (Makefile.am): Likewise.
45380         * modules/safe-write (Makefile.am): Likewise.
45381         * modules/same-inode (Makefile.am): Likewise.
45382         * modules/same (Makefile.am): Likewise.
45383         * modules/save-cwd (Makefile.am): Likewise.
45384         * modules/savedir (Makefile.am): Likewise.
45385         * modules/setenv (Makefile.am): Likewise.
45386         * modules/settime (Makefile.am): Likewise.
45387         * modules/sha1 (Makefile.am): Likewise.
45388         * modules/sig2str (Makefile.am): Likewise.
45389         * modules/snprintf (Makefile.am): Likewise.
45390         * modules/stat-macros (Makefile.am): Likewise.
45391         * modules/stat-time (Makefile.am): Likewise.
45392         * modules/stdbool (Makefile.am): Likewise.
45393         * modules/stdint (Makefile.am): Likewise.
45394         * modules/stdlib-safer (Makefile.am): Likewise.
45395         * modules/stpcpy (Makefile.am): Likewise.
45396         * modules/stpncpy (Makefile.am): Likewise.
45397         * modules/strcase (Makefile.am): Likewise.
45398         * modules/strcasestr (Makefile.am): Likewise.
45399         * modules/strchrnul (Makefile.am): Likewise.
45400         * modules/strcspn (Makefile.am): Likewise.
45401         * modules/strdup (Makefile.am): Likewise.
45402         * modules/strerror (Makefile.am): Likewise.
45403         * modules/strftime (Makefile.am): Likewise.
45404         * modules/strndup (Makefile.am): Likewise.
45405         * modules/strnlen (Makefile.am): Likewise.
45406         * modules/strpbrk (Makefile.am): Likewise.
45407         * modules/strsep (Makefile.am): Likewise.
45408         * modules/strstr (Makefile.am): Likewise.
45409         * modules/strtod (Makefile.am): Likewise.
45410         * modules/strtoimax (Makefile.am): Likewise.
45411         * modules/strtok_r (Makefile.am): Likewise.
45412         * modules/strtol (Makefile.am): Likewise.
45413         * modules/strtoll (Makefile.am): Likewise.
45414         * modules/strtoul (Makefile.am): Likewise.
45415         * modules/strtoull (Makefile.am): Likewise.
45416         * modules/strtoumax (Makefile.am): Likewise.
45417         * modules/strverscmp (Makefile.am): Likewise.
45418         * modules/sys_socket (Makefile.am): Likewise.
45419         * modules/sys_stat (Makefile.am): Likewise.
45420         * modules/sysexits (Makefile.am): Likewise.
45421         * modules/time_r (Makefile.am): Likewise.
45422         * modules/timegm (Makefile.am): Likewise.
45423         * modules/timespec (Makefile.am): Likewise.
45424         * modules/tmpfile-safer (Makefile.am): Likewise.
45425         * modules/trim (Makefile.am): Likewise.
45426         * modules/unistd-safer (Makefile.am): Likewise.
45427         * modules/unlinkdir (Makefile.am): Likewise.
45428         * modules/unlocked-io (Makefile.am): Likewise.
45429         * modules/userspec (Makefile.am): Likewise.
45430         * modules/utime (Makefile.am): Likewise.
45431         * modules/utimecmp (Makefile.am): Likewise.
45432         * modules/utimens (Makefile.am): Likewise.
45433         * modules/vasnprintf (Makefile.am): Likewise.
45434         * modules/vasprintf (Makefile.am): Likewise.
45435         * modules/vsnprintf (Makefile.am): Likewise.
45436         * modules/xalloc (Makefile.am): Likewise.
45437         * modules/xgetcwd (Makefile.am): Likewise.
45438         * modules/xnanosleep (Makefile.am): Likewise.
45439         * modules/xreadlink (Makefile.am): Likewise.
45440         * modules/xstrtod (Makefile.am): Likewise.
45441         * modules/xstrtol (Makefile.am): Likewise.
45442         * modules/xstrtold (Makefile.am): Likewise.
45443         * modules/yesno (Makefile.am): Likewise.
45444         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45445
45446 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45447
45448         * modules/error (Makefile.am): Distribute files through
45449         EXTRA_DIST, not lib_SOURCES.
45450
45451 2006-10-12  Eric Blake  <ebb9@byu.net>
45452
45453         * modules/error (Makefile.am): Distribute files in /lib.
45454         * modules/obstack (Makefile.am): Likewise.
45455
45456 2006-10-12  Bruno Haible  <bruno@clisp.org>
45457
45458         * modules/acl (Makefile.am): Distribute all files in lib/ through
45459         EXTRA_DIST.
45460         * modules/arcfour (Makefile.am): Likewise.
45461         * modules/arctwo (Makefile.am): Likewise.
45462         * modules/argmatch (Makefile.am): Likewise.
45463         * modules/argz (Makefile.am): Likewise.
45464         * modules/atexit (Makefile.am): Likewise.
45465         * modules/backupfile (Makefile.am): Likewise.
45466         * modules/c-strtod (Makefile.am): Likewise.
45467         * modules/c-strtold (Makefile.am): Likewise.
45468         * modules/calloc (Makefile.am): Likewise.
45469         * modules/canon-host (Makefile.am): Likewise.
45470         * modules/canonicalize (Makefile.am): Likewise.
45471         * modules/chdir-long (Makefile.am): Likewise.
45472         * modules/chdir-safer (Makefile.am): Likewise.
45473         * modules/check-version (Makefile.am): Likewise.
45474         * modules/chown (Makefile.am): Likewise.
45475         * modules/cloexec (Makefile.am): Likewise.
45476         * modules/close-stream (Makefile.am): Likewise.
45477         * modules/closeout (Makefile.am): Likewise.
45478         * modules/crc (Makefile.am): Likewise.
45479         * modules/cycle-check (Makefile.am): Likewise.
45480         * modules/des (Makefile.am): Likewise.
45481         * modules/dirfd (Makefile.am): Likewise.
45482         * modules/dirname (Makefile.am): Likewise.
45483         * modules/dup2 (Makefile.am): Likewise.
45484         * modules/euidaccess (Makefile.am): Likewise.
45485         * modules/exclude (Makefile.am): Likewise.
45486         * modules/exitfail (Makefile.am): Likewise.
45487         * modules/fcntl-safer (Makefile.am): Likewise.
45488         * modules/file-type (Makefile.am): Likewise.
45489         * modules/fileblocks (Makefile.am): Likewise.
45490         * modules/filemode (Makefile.am): Likewise.
45491         * modules/filenamecat (Makefile.am): Likewise.
45492         * modules/fnmatch (Makefile.am): Likewise.
45493         * modules/fopen-safer (Makefile.am): Likewise.
45494         * modules/fpending (Makefile.am): Likewise.
45495         * modules/fprintftime (Makefile.am): Likewise.
45496         * modules/free (Makefile.am): Likewise.
45497         * modules/fsusage (Makefile.am): Likewise.
45498         * modules/ftruncate (Makefile.am): Likewise.
45499         * modules/fts (Makefile.am): Likewise.
45500         * modules/gc (Makefile.am): Likewise.
45501         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45502         * modules/getaddrinfo (Makefile.am): Likewise.
45503         * modules/getcwd (Makefile.am): Likewise.
45504         * modules/getdelim (Makefile.am): Likewise.
45505         * modules/getdomainname (Makefile.am): Likewise.
45506         * modules/getgroups (Makefile.am): Likewise.
45507         * modules/gethostname (Makefile.am): Likewise.
45508         * modules/gethrxtime (Makefile.am): Likewise.
45509         * modules/getline (Makefile.am): Likewise.
45510         * modules/getloadavg (Makefile.am): Likewise.
45511         * modules/getlogin_r (Makefile.am): Likewise.
45512         * modules/getopt (Makefile.am): Likewise.
45513         * modules/getpass (Makefile.am): Likewise.
45514         * modules/getpass-gnu (Makefile.am): Likewise.
45515         * modules/getsubopt (Makefile.am): Likewise.
45516         * modules/gettime (Makefile.am): Likewise.
45517         * modules/gettimeofday (Makefile.am): Likewise.
45518         * modules/getugroups (Makefile.am): Likewise.
45519         * modules/getusershell (Makefile.am): Likewise.
45520         * modules/glob (Makefile.am): Likewise.
45521         * modules/group-member (Makefile.am): Likewise.
45522         * modules/hard-locale (Makefile.am): Likewise.
45523         * modules/hash (Makefile.am): Likewise.
45524         * modules/hmac-md5 (Makefile.am): Likewise.
45525         * modules/hmac-sha1 (Makefile.am): Likewise.
45526         * modules/human (Makefile.am): Likewise.
45527         * modules/idcache (Makefile.am): Likewise.
45528         * modules/imaxabs (Makefile.am): Likewise.
45529         * modules/imaxdiv (Makefile.am): Likewise.
45530         * modules/inet_ntop (Makefile.am): Likewise.
45531         * modules/inet_pton (Makefile.am): Likewise.
45532         * modules/inttostr (Makefile.am): Likewise.
45533         * modules/isapipe (Makefile.am): Likewise.
45534         * modules/lchown (Makefile.am): Likewise.
45535         * modules/long-options (Makefile.am): Likewise.
45536         * modules/lstat (Makefile.am): Likewise.
45537         * modules/malloc (Makefile.am): Likewise.
45538         * modules/mathl (Makefile.am): Likewise.
45539         * modules/mbchar (Makefile.am): Likewise.
45540         * modules/md2 (Makefile.am): Likewise.
45541         * modules/md4 (Makefile.am): Likewise.
45542         * modules/md5 (Makefile.am): Likewise.
45543         * modules/memcasecmp (Makefile.am): Likewise.
45544         * modules/memchr (Makefile.am): Likewise.
45545         * modules/memcmp (Makefile.am): Likewise.
45546         * modules/memcoll (Makefile.am): Likewise.
45547         * modules/memcpy (Makefile.am): Likewise.
45548         * modules/memmem (Makefile.am): Likewise.
45549         * modules/memmove (Makefile.am): Likewise.
45550         * modules/mempcpy (Makefile.am): Likewise.
45551         * modules/memrchr (Makefile.am): Likewise.
45552         * modules/memset (Makefile.am): Likewise.
45553         * modules/memxor (Makefile.am): Likewise.
45554         * modules/mkancesdirs (Makefile.am): Likewise.
45555         * modules/mkdir (Makefile.am): Likewise.
45556         * modules/mkdir-p (Makefile.am): Likewise.
45557         * modules/mkdtemp (Makefile.am): Likewise.
45558         * modules/mkstemp (Makefile.am): Likewise.
45559         * modules/mktime (Makefile.am): Likewise.
45560         * modules/modechange (Makefile.am): Likewise.
45561         * modules/mountlist (Makefile.am): Likewise.
45562         * modules/nanosleep (Makefile.am): Likewise.
45563         * modules/openat (Makefile.am): Likewise.
45564         * modules/pagealign_alloc (Makefile.am): Likewise.
45565         * modules/physmem (Makefile.am): Likewise.
45566         * modules/poll (Makefile.am): Likewise.
45567         * modules/posixtm (Makefile.am): Likewise.
45568         * modules/posixver (Makefile.am): Likewise.
45569         * modules/putenv (Makefile.am): Likewise.
45570         * modules/quote (Makefile.am): Likewise.
45571         * modules/quotearg (Makefile.am): Likewise.
45572         * modules/raise (Makefile.am): Likewise.
45573         * modules/read-file (Makefile.am): Likewise.
45574         * modules/readline (Makefile.am): Likewise.
45575         * modules/readlink (Makefile.am): Likewise.
45576         * modules/readtokens (Makefile.am): Likewise.
45577         * modules/readutmp (Makefile.am): Likewise.
45578         * modules/realloc (Makefile.am): Likewise.
45579         * modules/regex (Makefile.am): Likewise.
45580         * modules/rename (Makefile.am): Likewise.
45581         * modules/rename-dest-slash (Makefile.am): Likewise.
45582         * modules/rijndael (Makefile.am): Likewise.
45583         * modules/rmdir (Makefile.am): Likewise.
45584         * modules/rpmatch (Makefile.am): Likewise.
45585         * modules/safe-read (Makefile.am): Likewise.
45586         * modules/safe-write (Makefile.am): Likewise.
45587         * modules/same (Makefile.am): Likewise.
45588         * modules/save-cwd (Makefile.am): Likewise.
45589         * modules/savedir (Makefile.am): Likewise.
45590         * modules/setenv (Makefile.am): Likewise.
45591         * modules/settime (Makefile.am): Likewise.
45592         * modules/sha1 (Makefile.am): Likewise.
45593         * modules/sig2str (Makefile.am): Likewise.
45594         * modules/snprintf (Makefile.am): Likewise.
45595         * modules/stdlib-safer (Makefile.am): Likewise.
45596         * modules/stpcpy (Makefile.am): Likewise.
45597         * modules/stpncpy (Makefile.am): Likewise.
45598         * modules/strcase (Makefile.am): Likewise.
45599         * modules/strcasestr (Makefile.am): Likewise.
45600         * modules/strchrnul (Makefile.am): Likewise.
45601         * modules/strcspn (Makefile.am): Likewise.
45602         * modules/strdup (Makefile.am): Likewise.
45603         * modules/strerror (Makefile.am): Likewise.
45604         * modules/strftime (Makefile.am): Likewise.
45605         * modules/strndup (Makefile.am): Likewise.
45606         * modules/strnlen (Makefile.am): Likewise.
45607         * modules/strpbrk (Makefile.am): Likewise.
45608         * modules/strsep (Makefile.am): Likewise.
45609         * modules/strstr (Makefile.am): Likewise.
45610         * modules/strtod (Makefile.am): Likewise.
45611         * modules/strtoimax (Makefile.am): Likewise.
45612         * modules/strtok_r (Makefile.am): Likewise.
45613         * modules/strtol (Makefile.am): Likewise.
45614         * modules/strtoll (Makefile.am): Likewise.
45615         * modules/strtoul (Makefile.am): Likewise.
45616         * modules/strtoull (Makefile.am): Likewise.
45617         * modules/strtoumax (Makefile.am): Likewise.
45618         * modules/strverscmp (Makefile.am): Likewise.
45619         * modules/time_r (Makefile.am): Likewise.
45620         * modules/timegm (Makefile.am): Likewise.
45621         * modules/tmpfile-safer (Makefile.am): Likewise.
45622         * modules/unistd-safer (Makefile.am): Likewise.
45623         * modules/unlinkdir (Makefile.am): Likewise.
45624         * modules/userspec (Makefile.am): Likewise.
45625         * modules/utime (Makefile.am): Likewise.
45626         * modules/utimecmp (Makefile.am): Likewise.
45627         * modules/utimens (Makefile.am): Likewise.
45628         * modules/vasnprintf (Makefile.am): Likewise.
45629         * modules/vasprintf (Makefile.am): Likewise.
45630         * modules/vsnprintf (Makefile.am): Likewise.
45631         * modules/xalloc (Makefile.am): Likewise.
45632         * modules/xgetcwd (Makefile.am): Likewise.
45633         * modules/xnanosleep (Makefile.am): Likewise.
45634         * modules/xreadlink (Makefile.am): Likewise.
45635         * modules/xstrtod (Makefile.am): Likewise.
45636         * modules/xstrtol (Makefile.am): Likewise.
45637         * modules/xstrtold (Makefile.am): Likewise.
45638         * modules/yesno (Makefile.am): Likewise.
45639
45640 2006-10-12  Jim Meyering  <jim@meyering.net>
45641
45642         * m4/getloadavg.m4: Revert the change below.
45643
45644         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
45645         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
45646         fail with a symlink, which is what coreutils' ./bootstrap now
45647         creates by default.
45648
45649 2006-10-12  Bruno Haible  <bruno@clisp.org>
45650
45651         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
45652         mingw.
45653         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
45654         MSVC and mingw explicitly.
45655
45656 2006-10-11  Simon Josefsson  <jas@extundo.com>
45657             Bruno Haible  <bruno@clisp.org>
45658
45659         Add support for multiple gnulib-tool invocations in the scope of a
45660         single configure.ac file.
45661         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
45662         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
45663         with the same contents as the _LIBADD variable.
45664         (func_emit_initmacro_start, func_emit_initmacro_end,
45665         func_emit_initmacro_done): New functions.
45666         (func_import, func_create_testdir): Invoke them. Allow the identifiers
45667         gl_LIBOBJS and gl_LTLIBOBJS.
45668
45669 2006-10-11  Bruno Haible  <bruno@clisp.org>
45670
45671         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
45672         (func_create_testdir): Don't create po/Makefile.am, don't invoke
45673         autoreconf. Instead, invoke autopoint explicitly but move back the
45674         *.m4 files from gnulib.
45675
45676 2006-10-11  Bruno Haible  <bruno@clisp.org>
45677
45678         * gnulib-tool (func_usage): Make module names after --create-testdir
45679         optional.
45680         (func_create_testdir): If no module was specified, use nearly all
45681         modules.
45682
45683 2006-10-12  Jim Meyering  <jim@meyering.net>
45684
45685         Big performance improvement for fts-based tools that use FTS_NOSTAT.
45686         Avoid spurious inode-mismatch problems on non-POSIX file systems.
45687         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
45688         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
45689         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
45690         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
45691         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
45692         (fts_set_stat_required): New function.
45693         (fts_open): Defer the calls to fts_stat, if possible or requested.
45694         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
45695         into fts_stat itself.
45696         (fts_read): Perform any required (deferred) fts_stat call.
45697         (fts_build): Likewise, for the directory we're about to open and read.
45698         In the readdir loop, carefully decide whether each entry will require
45699         an eventual call to fts_stat, using dirent.d_type info if available.
45700         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
45701         a command line argument into this function.  Update all callers.
45702         Map a return value of FTS_DOT to FTS_D for a command line argument.
45703         * modules/fts (Depends-on): Add d-type.  Alphabetize.
45704         Thanks to Miklos Szeredi for his tenacity and for the initial
45705         bug report about "find" failing on a FUSE-based file system.
45706
45707         * lib/fts.c (fts_open): Use consistent indentation.
45708
45709 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45710
45711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
45712         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
45713         reported by Jim Meyering.  All uses of cache variables renamed
45714         to match Autoconf's.
45715         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
45716         the other one.
45717
45718         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45719         Fix misspelling in diagnostic.
45720
45721 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45722
45723         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
45724         defined.  Problem reported by Matthew Woehlke.
45725
45726         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
45727         Add support for Tandem NonStop R series.
45728         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
45729         Use new macro.
45730
45731         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
45732         (has_trailing_slash): Omit size arg; all callers changed.
45733         Omit 'inline', since it doesn't help performance and we'd
45734         need to configure it.
45735         Don't count //, ///, etc. as having a trailing slash.
45736         As a side effect, this removes a C99ism reported by Matthew Woehlke.
45737         (rpl_rename_dest_slash): On failure, use rename's errno rather
45738         than (in some cases) an incorrect or junk errno.
45739         Simplify code by removing need to compute length; this does
45740         cause it to make two passes instead of one over the file name,
45741         but it's worth it.
45742
45743         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
45744         change, since Autoconf's version may no longer be appropriate now
45745         that we are using CVS Autoconf's version.  Add support for Tandem.
45746
45747 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45748             Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
45751         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
45752         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
45753         gl_AC_TYPE_LONG_LONG.
45754
45755         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
45756         instead of HAVE_LONG_LONG.
45757         * lib/printf-args.c (printf_fetchargs): Likewise.
45758         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45759         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45760         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
45761         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
45762         gl_AC_TYPE_LONG_LONG.
45763
45764 2006-10-11  Bruno Haible  <bruno@clisp.org>
45765
45766         * m4/longlong.m4: Add comments.
45767         * m4/ulonglong.m4: Likewise.
45768
45769 2006-10-10  Bruno Haible  <bruno@clisp.org>
45770
45771         Make it possible to #define stpcpy, strdup to aliases.
45772         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
45773         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
45774
45775 2006-10-10  Bruno Haible  <bruno@clisp.org>
45776
45777         Make it possible to #define gcd to an alias.
45778         * lib/gcd.c: Include config.h.
45779
45780 2006-10-10  Bruno Haible  <bruno@clisp.org>
45781
45782         Make it possible to #define c_isascii to an alias.
45783         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
45784         defined. Undefine the macros before defining them, to avoid gcc
45785         warnings.
45786         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
45787         define NO_C_CTYPE_MACROS early.
45788
45789 2006-10-10  Bruno Haible  <bruno@clisp.org>
45790
45791         Make it possible to #define set_program_name to an alias.
45792         * lib/progname.c: Don't undefine set_program_name; instead, undefine
45793         ENABLE_RELOCATABLE early.
45794
45795 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         Port to Tandem NSK OSS, which has 64-bit signed int but at most
45798         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
45799         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
45800         More generally, don't assume that 64-bit signed int is available
45801         if unsigned int is, and vice versa.
45802         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
45803         unsigned symbols, not on their signed counterparts.
45804         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
45805         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
45806         (UINT64_C, UINTMAX_C):
45807         Likewise.
45808         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
45809         unsigned counterparts.
45810         (Have_long_long, Unsigned): New macros.
45811         (Int): Renamed from INT.
45812         (strtoimax): Use the new macros.
45813         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
45814         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
45815         * modules/inttypes (inttypes.h): Substitute
45816         HAVE_UNSIGNED_LONG_LONG_INT.
45817         * modules/stdint (stdint.h): Likewise.
45818         (Files): Add m4/ulonglong.m4.
45819
45820 2006-10-10  Bruno Haible  <bruno@clisp.org>
45821
45822         Fix a gcc -Wshadow warning.
45823         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
45824         to 'bucket'.
45825         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
45826         gl_linked_indexof_from_to): Likewise.
45827         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
45828         Likewise.
45829         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
45830         Likewise.
45831         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
45832         Reported by Eric Blake.
45833
45834 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
45835
45836         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
45837         for NetBSD.  Problem reported by Bruno Haible.
45838
45839 2006-10-09  Jim Meyering  <jim@meyering.net>
45840
45841         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
45842         Patch from Bruno Haible.
45843
45844 2006-10-09  Jim Meyering  <jim@meyering.net>
45845
45846         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
45847         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
45848         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
45849
45850 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45851
45852         Don't include <config.h> twice; this doesn't work in some cases,
45853         e.g., when config.h has "#define intmax_t long long int" and
45854         we include <config.h>, <inttypes.h>, <config.h> in that order.
45855         Problem reported by Matthew Woehlke in:
45856         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
45857         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
45858         * lib/fts-cycle.c: Don't include config.h.
45859         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
45860         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
45861         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
45862         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
45863         inttypes.h.
45864         * lib/xstrtoumax.c: Likewise.
45865         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
45866         __strtol and the like, so that this module is more like its siblings.
45867         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
45868         Remove; no longer needed now that we assume gnulib inttypes.h.
45869
45870 2006-10-08  Bruno Haible  <bruno@clisp.org>
45871
45872         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
45873         option.
45874
45875 2006-10-07  Jim Meyering  <jim@meyering.net>
45876
45877         * modules/inttypes (inttypes.h): Revert what seems to have been
45878         an inadvertent part of today's change: use "|", not "/" in the
45879         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
45880
45881 2006-10-07  Bruno Haible  <bruno@clisp.org>
45882
45883         * modules/sublist: New file.
45884
45885 2006-10-07  Bruno Haible  <bruno@clisp.org>
45886
45887         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
45888         * modules/argz (argz.h): Likewise.
45889         * modules/arpa_inet (arpa/inet.h): Likewise.
45890         * modules/byteswap (byteswap.h): Likewise.
45891         * modules/configmake (configmake.h): Likewise.
45892         * modules/fcntl (fcntl.h): Likewise.
45893         * modules/fnmatch (fnmatch.h): Likewise.
45894         * modules/getopt (getopt.h): Likewise.
45895         * modules/glob (glob.h): Likewise.
45896         * modules/inttypes (inttypes.h): Likewise.
45897         * modules/netinet_in (netinet/in.h): Likewise.
45898         * modules/poll (poll.h): Likewise.
45899         * modules/stdbool (stdbool.h): Likewise.
45900         * modules/stdint (stdint.h): Likewise.
45901         * modules/sys_select (sys/select.h): Likewise.
45902         * modules/sys_socket (sys/socket.h): Likewise.
45903         * modules/sys_stat (sys/stat.h): Likewise.
45904         * modules/sysexits (sysexits.h): Likewise.
45905         * modules/unistd (unistd.h): Likewise.
45906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45907         Add a "DO NOT EDIT" comment to the generated file.
45908         (func_import): Likewise for gnulib-comp.m4.
45909
45910 2006-10-07  Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/gl_sublist.h: New file.
45913         * lib/gl_sublist.c: New file.
45914
45915 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45916
45917         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
45918         name (relative to the original working directory) and the file
45919         name component (relative to the temporary working directory).  All
45920         callers changed.
45921         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
45922         * lib/mkdir-p.c (make_dir_parents): Likewise.
45923         * lib/mkdir-p.h (make_dir_parents): Likewise.
45924
45925 2006-10-06  Eric Blake  <ebb9@byu.net>
45926
45927         Define several macros for use by the clean-temp module.
45928         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
45929         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
45930         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
45931
45932         * lib/clean-temp.h (close_stream_temp): New declaration.
45933         * lib/clean-temp.c (includes): Pull in headers according to what
45934         other modules are in use.
45935         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
45936
45937 2006-10-06  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
45940         instead of fopen, fwriteerror.
45941
45942 2006-10-06  Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
45945         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
45946         int.
45947         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
45948         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
45949         Return an error indicator.
45950         Suggested by Eric Blake.
45951
45952 2006-10-06  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
45955         Reported by Eric Blake.
45956
45957 2006-10-06  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/closeout (Description): Mention stderr too.
45960
45961 2006-10-06  Bruno Haible  <bruno@clisp.org>
45962         and Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * lib/closeout.c (close_stdout): Also close stderr.
45965         * lib/closeout.h: Update comment.
45966
45967 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45968
45969         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
45970         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
45971         * lib/dirchownmod.c: Include lchown.h.
45972         * lib/lchown.c: Don't include files that lchown.h now includes.
45973         Don't declare chown, since lchown.h now does that.
45974         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
45975         (lchown): Define to rpl_chown if lchown is declared but
45976         does not exist.  Declare using a prototype if lchown is not
45977         declared.  Add a copyright notice.
45978         * lib/mkstemp.h: Include <unistd.h>.
45979         * lib/openat.c: Include lchown.h.
45980
45981         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
45982         we now test for that separately.
45983         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
45984         rather than O_NOFOLLOW, when testing whether it's possible to
45985         avoid a race condition reliably.
45986         * lib/savewd.c (savewd_chdir): Likewise.
45987
45988         Remove macros that are no longer needed now that stdint.h is
45989         reliable.
45990         * lib/fsusage.c (UINTMAX_MAX): Remove.
45991         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
45992         * lib/utimecmp.c (SIZE_MAX): Remove.
45993
45994         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
45995
45996         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
45997         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
45998         O_NOATIME works.
45999
46000 2006-10-05  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/gl_list.h (gl_sortedlist_search_from_to,
46003         gl_sortedlist_indexof_from_to): New declarations.
46004         (gl_list_implementation): New fields sortedlist_search_from_to,
46005         sortedlist_indexof_from_to.
46006         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46007         inline functions.
46008         * lib/gl_list.c (gl_sortedlist_search_from_to,
46009         gl_sortedlist_indexof_from_to): New functions.
46010         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46011         function.
46012         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46013         (gl_array_sortedlist_search_from_to): New function.
46014         (gl_array_list_implementation): Update.
46015         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46016         function.
46017         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46018         (gl_carray_sortedlist_search_from_to): New function.
46019         (gl_carray_list_implementation): Update.
46020         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46021         gl_linked_sortedlist_indexof_from_to): New functions.
46022         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46023         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46024         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46025         gl_tree_sortedlist_indexof_from_to): New functions.
46026         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46027         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46028         Update.
46029         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46030         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46031         Update.
46032
46033 2006-10-05  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46036         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46037         (struct gl_list_implementation): Add fields search_from_to,
46038         indexof_from_to. Remove fields search, indexof.
46039         (gl_list_search): Use the search_from_to method.
46040         (gl_list_search_from, gl_list_search_from_to): New functions.
46041         (gl_list_indexof): Use the indexof_from_to method.
46042         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46043         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46044         (gl_list_search_from, gl_list_search_from_to): New functions.
46045         (gl_list_indexof): Use the indexof_from_to method.
46046         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46047         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46048         gl_array_indexof. Add start_index, end_index arguments.
46049         (gl_array_search_from_to): Renamed from gl_array_search. Add
46050         start_index, end_index arguments.
46051         (gl_array_remove, gl_array_list_implementation): Update.
46052         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46053         gl_carray_indexof. Add start_index, end_index arguments.
46054         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46055         start_index, end_index arguments.
46056         (gl_carray_remove, gl_carray_list_implementation): Update.
46057         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46058         gl_linked_search. Add start_index, end_index arguments.
46059         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46060         start_index, end_index arguments.
46061         (gl_linked_remove): Update.
46062         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46063         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46064         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46065         field to 'size_t'.
46066         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46067         gl_tree_search. Add start_index, end_index arguments.
46068         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46069         start_index, end_index arguments.
46070         (gl_tree_remove): Update.
46071         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46072         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46073         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46074         function.
46075         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46076         gl_tree_search. Add start_index, end_index arguments.
46077         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46078         start_index, end_index arguments.
46079         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46080         Update.
46081         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46082
46083 2006-10-05  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46086
46087         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46088         fwriteerror_temp): New declarations.
46089         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46090         (descriptors): New variable.
46091         (cleanup): First, close the descriptors.
46092         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46093         fclose_temp, fwriteerror_temp): New functions.
46094
46095 2006-10-04  Jim Meyering  <jim@meyering.net>
46096
46097         * lib/fts.c (fts_open): Tiny comment change.
46098
46099 2006-10-04  Bruno Haible  <bruno@clisp.org>
46100
46101         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46102         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46103         gl_LOCK_BODY.
46104         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46105         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46106         gl_LOCK_EARLY_BODY.
46107         (gl_LOCK): Require gl_LOCK_BODY.
46108
46109 2006-10-04  Bruno Haible  <bruno@clisp.org>
46110
46111         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46112         (gl_oset_search_atleast): New declaration.
46113         (struct gl_oset_implementation): Add field 'search_atleast'.
46114         (gl_oset_search_atleast): New inline function.
46115         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46116         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46117         (gl_array_oset_implementation): Update.
46118         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46119         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46120         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46121
46122 2006-10-04  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46125
46126 2006-10-03  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46129         from gl_avltreehash_list_implementation.
46130
46131 2006-10-03  Bruno Haible  <bruno@clisp.org>
46132
46133         * lib/gl_oset.c (gl_oset_add): Fix return type.
46134
46135 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46136
46137         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46138
46139 2006-10-02  Eric Blake  <ebb9@byu.net>
46140
46141         * modules/strnlen (Depends-on): Add extensions.
46142
46143 2006-10-02  Eric Blake  <ebb9@byu.net>
46144
46145         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46146         definition in 2.60+.
46147
46148 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46149
46150         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46151         checks.
46152
46153 2006-10-02  Bruno Haible  <bruno@clisp.org>
46154
46155         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46156         to the AUTOMAKE_OPTIONS.
46157         Reported by Jim Meyering.
46158
46159 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46160
46161         Work around bug in Solaris 10 /proc file system:
46162         /proc/self/fd/NNN/.. isn't the parent directory of
46163         the directory whose file descriptor is NNN.  This needs to
46164         be worked around at run time, not compile time, since a
46165         program might be built on Solaris 8, where things work, and
46166         run on Solaris 10.
46167         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46168         to use the following interface instead:
46169         (OPENAT_BUFFER_SIZE): New macro.
46170         (openat_proc_name): New function.
46171         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46172         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46173         Likewise.
46174         * lib/openat-proc.c: New file.
46175         * modules/openat (Files): Add lib/openat-proc.c.
46176         (Depends-on): Add same-inode, stdbool.
46177         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46178
46179 2006-09-29  Bruno Haible  <bruno@clisp.org>
46180
46181         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46182         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46183         argument. Set stdout_closed before testing for ferror, not after.
46184         (fwriteerror, fwriteerror_no_ebadf): New functions.
46185
46186 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46187
46188         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46189
46190 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46191
46192         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46193         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46194
46195 2006-09-28  Jim Meyering  <jim@meyering.net>
46196
46197         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46198         Include <unistd.h>.
46199
46200 2006-09-28  Bruno Haible  <bruno@clisp.org>
46201
46202         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46203         * modules/linkedhash-list (Depends-on): Likewise.
46204         * modules/rbtreehash-list (Depends-on): Likewise.
46205
46206 2006-09-28  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/strndup.h: Simplify the redefinition of strndup.
46209         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46210         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46211
46212 2006-09-28  Bruno Haible  <bruno@clisp.org>
46213
46214         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46215         * lib/gl_linkedhash_list.c: Likewise.
46216         * lib/gl_rbtreehash_list.c: Likewise.
46217
46218 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46219
46220         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46221         getaddrinfo.
46222
46223         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46224         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46225         it causes <stdio_ext.h> to cause a compile-time error.
46226         Problem reported by Nelson H. F. Beebe.
46227         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46228         of HAVE_DECL___PENDING.
46229
46230         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46231         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46232         declaration.
46233
46234 2006-09-27  Jim Meyering  <jim@meyering.net>
46235
46236         This file could end up with a definition for a function
46237         named __strndup, rather than rpl_strndup on a system with
46238         incomplete weak_alias support.
46239         * lib/strndup.c (strndup): Rename from __strndup.
46240         Remove #defines that used to map __strndup to strndup.
46241         Don't use K&R prototypes.
46242         Remove LIBC-related code, since this file is not sync'd with glibc.
46243         * lib/strndup.h: Revamp, accordingly.
46244         * m4/strndup.m4: Modernize.
46245
46246 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46247
46248         * modules/savewd (Depends-on): Add 'raise'.
46249         * lib/savewd.c: Include <signal.h>, for 'raise'.
46250
46251 2006-09-26  Jim Meyering  <jim@meyering.net>
46252
46253         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46254         when we detect Darwin 8.7.0's acl_get_file bug.
46255         Rearrange to perform the new (below) run-test while $LIBS
46256         contains any acl-related library.  Set USE_ACL at the end.
46257         (gl_ACL_GET_FILE): New function.
46258
46259 2006-09-26  Eric Blake  <ebb9@byu.net>
46260
46261         * lib/verror.c: Include <config.h> unconditionally.
46262
46263 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46264
46265         * modules/clock-time (Maintainer): Add self.
46266         * modules/getlogin_r (Depends-on): Add extensions.
46267
46268 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46269
46270         * modules/clock-time: New module.
46271         * modules/nanosleep (Depends-on): Add clock-time.
46272         * modules/gethrxtime (Depends-on): Likewise.
46273         * modules/gettime (Depends-on): Likewise.
46274         * modules/settime (Depends-on): Likewise.
46275
46276         * modules/fts-lgpl: Depend on openat.
46277         * modules/mkancesdirs: Depend on savewd.
46278         * modules/mkdir-p: Likewise.
46279
46280 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46281
46282         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46283
46284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46285         `gl_have_arbitrary_file_name_length_limit' to
46286         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46287         actually works between configure runs.
46288
46289 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46290             Bruno Haible  <bruno@clisp.org>
46291
46292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46293
46294 2006-09-25  Jim Meyering  <jim@meyering.net>
46295
46296         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46297         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46298
46299 2006-09-25  Eric Blake  <ebb9@byu.net>
46300
46301         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46302         exec's in 2006-09-18 patch when shuffling fds.
46303
46304 2006-09-25  Bruno Haible  <bruno@clisp.org>
46305
46306         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46307         Reported by Jim Meyering.
46308
46309 2006-09-24  Jim Meyering  <jim@meyering.net>
46310
46311         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46312         compare a pointer against a literal "0".  That caused failures with
46313         at least HP-UX's hpcc.
46314
46315 2006-09-22  Simon Josefsson  <jas@extundo.com>
46316
46317         * modules/gc-sha1:
46318         * modules/gc-md4:
46319         * modules/gc-hmac-sha1:
46320         * modules/gc-hmac-md5:
46321         * modules/gc-des:
46322         * modules/gc-arcfour: Distribute more files.
46323
46324 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46325
46326         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46327         (gl_linked_iterator_from_to): Initialize struct completely.
46328         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46329         (gl_tree_iterator_from_to): Likewise
46330         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46331         * lib/gl_array_list.c [lint] (gl_array_iterator)
46332         (gl_array_iterator_from_to): Likewise.
46333         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46334         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46335         (gl_carray_iterator_from_to): Likewise.
46336
46337         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46338         * lib/md4.c (md4_process_block): Remove unused variable.
46339         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46340         parentheses for clarity.
46341
46342 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46343
46344         * modules/bison-i18n (Depends-on): Add gettext.
46345
46346 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46347
46348         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46349         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46350         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46351         also add missing comma that caused broken test.
46352         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46353         stdlib.h, for `abort'.
46354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46355         variables.
46356         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46357         include unistd.h if present, for `rmdir'.
46358         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46359         variables.
46360         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46361         in the process include standard headers for prototypes.
46362         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46363         gets declared on GNU/Linux.
46364         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46365         unistd.h, for `rmdir'.
46366         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46367
46368         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46369         always true.
46370         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46371
46372         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46373
46374 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46375
46376         * gnulib-tool (func_version): Create output all at once.  This
46377         may help avoid triggering unnecessary SIGPIPEs, and at any
46378         rate it doesn't hurt.
46379
46380 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46381             Bruno Haible  <bruno@clisp.org>
46382
46383         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46384         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46385         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46386
46387         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46388         (gl_FUNC_VASPRINTF): Invoke it.
46389
46390 2006-09-22  Bruno Haible  <bruno@clisp.org>
46391
46392         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46393         getloadavg.c as first argument.
46394
46395 2006-09-22  Bruno Haible  <bruno@clisp.org>
46396
46397         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46398         at the beginning of the gl_INIT macro.
46399         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46400         gl_GETLOADAVG.
46401
46402 2006-09-22  Bruno Haible  <bruno@clisp.org>
46403
46404         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46405         module.
46406         Suggested by Ralf Wildenhues.
46407
46408 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46409
46410         Import this patch from libc:
46411
46412         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46413
46414         * lib/regex_internal.c (re_string_reconstruct): Handle
46415         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46416         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46417         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46418         re_string_context_at.
46419
46420         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46421         now requires it.
46422         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46423         gl_REGEX now does it for us.
46424         (gl_REGEX): Add test taken from
46425         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46426
46427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46428         Check that large offsets work.  Modernize Autoconf usages.
46429         Prefer "yes" to mean a good thing rather than a bad.
46430         Don't put "#define mkstemp" in config.h, as this might interfere
46431         with standard system headers that "#define mkstemp mkstemp64".
46432
46433         * modules/mkstemp (Depends-on): Add extensions, so that
46434         mkstemp is visible on some platforms.
46435         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46436         (Include): Change to "mkstemp.h" from <stdlib.h>.
46437         (Files): Add mkstemp.h.
46438
46439         * lib/mkstemp.h: New file, since some standard headers
46440         #define mkstemp.
46441         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46442         Include "mkstemp.h".
46443         Make the _LIBC code resemble glibc original more,
46444         e.g., use K&R style.
46445         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46446         (mkstemp): Remove, since mkstemp.h does this for us.
46447         * lib/stdlib--.h: Include mkstemp.h.
46448
46449         Import this patch from libc:
46450
46451         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46452
46453         * lib/tempname.c (__gen_tempname): Change attempts_min
46454         into a macro.  Use preprocessor to decide how to initialize
46455         attempts [Coverity CID 67].
46456
46457 2006-09-20  Bruno Haible  <bruno@clisp.org>
46458
46459         * lib/mkdtemp.c: Import from libc.
46460         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46461                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46462                 attempts_min into a macro.  Use preprocessor to decide how to
46463                 initialize attempts [Coverity CID 67].
46464         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46465                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46466                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46467
46468 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46469
46470         * gnulib-tool (func_exit): New function, to allow to pass the
46471         exit status portably through the trap.  Use everywhere.
46472         (--help, --version): Signal a write error.
46473         (trap): catch SIGPIPE, for write errors.
46474         Exit at the end of the trap, with the correct exit status.
46475
46476 2006-09-19  Karl Berry  <karl@gnu.org>
46477
46478         * doc/gnulib.texi: note about the license texinfo files.
46479
46480 2006-09-19  Eric Blake  <ebb9@byu.net>
46481
46482         * gnulib-tool: Avoid space-tab.
46483
46484 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46485
46486         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46487         that prevented coreutils 6.1 from building.  Problem reported
46488         by Petter Reinholdtsen.
46489
46490 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46491
46492         * gnulib-tool (avoidlist): Fix typo that broke options like
46493         --avoid=lock that are used by coreutils bootstrap.
46494
46495 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46496
46497         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46498         more systematically.
46499
46500 2006-09-18  Jim Meyering  <jim@meyering.net>
46501
46502         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46503
46504 2006-09-18  Bruno Haible  <bruno@clisp.org>
46505
46506         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46507
46508 2006-09-18  Bruno Haible  <bruno@clisp.org>
46509
46510         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46511         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46512         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46513         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46514         * m4/gettext.m4: Require autoconf >= 2.52.
46515         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46516         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46517         of gl_cv_header_inttypes_h.
46518
46519 2006-09-18  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/javaversion.c: Include configmake.h.
46522
46523 2006-09-18  Bruno Haible  <bruno@clisp.org>
46524
46525         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46526         avoid that the while loops be executed in a subshell.
46527
46528 2006-09-18  Bruno Haible  <bruno@clisp.org>
46529
46530         * MODULES.html.sh (func_module): Break long lines.
46531         Suggested by Bruce Korb <bkorb@gnu.org>.
46532
46533 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46534
46535         Speed up by a factor of 1.12.
46536         * gnulib-tool (nl): New variable.
46537         (func_import): Rewrite include directive extraction to only read each
46538         directive once.
46539
46540 2006-09-17  Bruno Haible  <bruno@clisp.org>
46541
46542         * modules/javaversion (Makefile.am): Remove DEFS setting.
46543         (Depends-on): Add configmake, for PKGDATADIR definition.
46544
46545 2006-09-17  Bruno Haible  <bruno@clisp.org>
46546
46547         * gnulib-tool (func_create_testdir): Rewrite all files at once.
46548
46549 2006-09-17  Bruno Haible  <bruno@clisp.org>
46550
46551         * gnulib-tool (func_append): New function, stolen from libtool.m4.
46552         (func_modules_transitive_closure, func_modules_add_dummy,
46553         func_modules_to_filelist, func_import, func_create_testdir,
46554         func_create_megatestdir, ...): Use it wherever possible.
46555         Suggested by Ralf Wildenhues.
46556
46557 2006-09-16  Karl Berry  <karl@gnu.org>
46558
46559         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
46560         to avoid sectioning errors.
46561         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
46562         [ifinfo]: blank line after @center-ed titles.
46563         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
46564         Spell FSF address consistently with others.
46565         (These changes approved by rms.)
46566
46567 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46568
46569         Speed up by a factor of 1.61.
46570         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
46571         already checked module names again.
46572
46573 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46574
46575         Speed up by a factor of 1.13.
46576         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
46577         for new_files, and the input to func_add_or_update.
46578
46579 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46580
46581         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
46582         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
46583
46584 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46585
46586         * modules/mkancesdirs (Depends-on): Add fcntl.
46587         * modules/savewd: New file.
46588         * MODULES.html.sh (File system functions): Add savewd.
46589
46590         * modules/configmake (Makefile.am): Add support for the
46591         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
46592
46593 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46594
46595         * m4/savewd.m4: New file.
46596
46597 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46598
46599         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
46600         (dirchownmod): New arg FD.  All callers changed.
46601         Use FD rather than opening the directory ourself, as opening is
46602         now the caller's responsibility.
46603         * lib/dirchownmod.h: Likewise.
46604         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
46605         hosts that require <sys/types.h> before <sys/stat.h>.  Include
46606         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
46607         (test_dir): Remove.
46608         (mkancesdirs): Return length of prefix of FILE that has already
46609         been made, or -2 if there is a child doing the work.  Redo
46610         algorithm so that it is O(N) rather than O(N**2).  Optimize away
46611         ".", and treat ".." specially since it might stray back into
46612         already-created areas.  Use a subprocess if necessary.  New arg
46613         WD; all users changed.  MAKE_DIR function should now return 1
46614         if it creates a directory that is not readable.  Return -2 if
46615         a child process is spun off.
46616         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
46617         Adjust signature to match code.
46618         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
46619         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
46620         all users changed.
46621         * lib/savewd.c, lib/savewd.h: New files.
46622
46623 2006-09-15  Jim Meyering  <jim@meyering.net>
46624
46625         * modules/rename-dest-slash: New module.
46626         * MODULES.html.sh (posix_compat): Add it here.
46627
46628         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
46629
46630 2006-09-15  Jim Meyering  <jim@meyering.net>
46631
46632         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
46633         file.
46634
46635         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
46636
46637 2006-09-15  Jim Meyering  <jim@meyering.net>
46638
46639         * lib/rename-dest-slash.c (has_trailing_slash): Use
46640         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
46641         (rpl_rename_dest_slash): Perform the cheaper trailing slash
46642         test before testing whether SRC is a directory.
46643         Suggestions from Bruno Haible.
46644
46645         Avoid a warning about an unused variable.
46646         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
46647         into the #ifdef block where it's used.
46648
46649         * lib/rename-dest-slash.c: New file.
46650
46651 2006-09-14  Bruno Haible  <bruno@clisp.org>
46652
46653         * lib/allocsa.c: Include <config.h> unconditionally.
46654         * lib/asnprintf.c: Likewise.
46655         * lib/asprintf.c: Likewise.
46656         * lib/c-strcasecmp.c: Likewise.
46657         * lib/c-strcasestr.c: Likewise.
46658         * lib/c-strncasecmp.c: Likewise.
46659         * lib/c-strstr.c: Likewise.
46660         * lib/classpath.c: Likewise.
46661         * lib/clean-temp.c: Likewise.
46662         * lib/concatpath.c: Likewise.
46663         * lib/copy-file.c: Likewise.
46664         * lib/csharpcomp.c: Likewise.
46665         * lib/csharpexec.c: Likewise.
46666         * lib/execute.c: Likewise.
46667         * lib/fatal-signal.c: Likewise.
46668         * lib/findprog.c: Likewise.
46669         * lib/fwriteerror.c: Likewise.
46670         * lib/gl_array_list.c: Likewise.
46671         * lib/gl_array_oset.c: Likewise.
46672         * lib/gl_avltree_list.c: Likewise.
46673         * lib/gl_avltree_oset.c: Likewise.
46674         * lib/gl_avltreehash_list.c: Likewise.
46675         * lib/gl_carray_list.c: Likewise.
46676         * lib/gl_linked_list.c: Likewise.
46677         * lib/gl_linkedhash_list.c: Likewise.
46678         * lib/gl_list.c: Likewise.
46679         * lib/gl_oset.c: Likewise.
46680         * lib/gl_rbtree_list.c: Likewise.
46681         * lib/gl_rbtree_oset.c: Likewise.
46682         * lib/gl_rbtreehash_list.c: Likewise.
46683         * lib/imaxabs.c: Likewise.
46684         * lib/imaxdiv.c: Likewise.
46685         * lib/javacomp.c: Likewise.
46686         * lib/javaexec.c: Likewise.
46687         * lib/javaversion.c: Likewise.
46688         * lib/linebreak.c: Likewise.
46689         * lib/localcharset.c: Likewise.
46690         * lib/lock.c: Likewise.
46691         * lib/mbchar.c: Likewise.
46692         * lib/mbswidth.c: Likewise.
46693         * lib/mkdtemp.c: Likewise.
46694         * lib/pipe.c: Likewise.
46695         * lib/printf-args.c: Likewise.
46696         * lib/printf-parse.c: Likewise.
46697         * lib/progname.c: Likewise.
46698         * lib/progreloc.c: Likewise.
46699         * lib/readlink.c: Likewise.
46700         * lib/sh-quote.c: Likewise.
46701         * lib/stpcpy.c: Likewise.
46702         * lib/stpncpy.c: Likewise.
46703         * lib/strcasecmp.c: Likewise.
46704         * lib/strcasestr.c: Likewise.
46705         * lib/strcspn.c: Likewise.
46706         * lib/striconv.c: Likewise.
46707         * lib/strncasecmp.c: Likewise.
46708         * lib/strnlen1.c: Likewise.
46709         * lib/strstr.c: Likewise.
46710         * lib/strtok_r.c: Likewise.
46711         * lib/tls.c: Likewise.
46712         * lib/tmpdir.c: Likewise.
46713         * lib/unicodeio.c: Likewise.
46714         * lib/unsetenv.c: Likewise.
46715         * lib/vasnprintf.c: Likewise.
46716         * lib/vasprintf.c: Likewise.
46717         * lib/wait-process.c: Likewise.
46718         * lib/xallocsa.c: Likewise.
46719         * lib/xsetenv.c: Likewise.
46720         * lib/xstriconv.c: Likewise.
46721
46722 2006-09-13  Simon Josefsson  <jas@extundo.com>
46723
46724         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
46725         that internally, suggested by Ralf Wildenhues
46726         <Ralf.Wildenhues@gmx.de>.
46727
46728 2006-09-13  Simon Josefsson  <jas@extundo.com>
46729
46730         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
46731         @LIBOBJS@.
46732         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46733
46734 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
46735
46736         * lib/_fpending.c: Include <config.h> unconditionally, since we no
46737         longer worry about uses that don't define HAVE_CONFIG_H.
46738         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
46739         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
46740         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
46741         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
46742         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
46743         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
46744         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
46745         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
46746         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
46747         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
46748         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
46749         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
46750         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
46751         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
46752         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
46753         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
46754         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
46755         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
46756         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
46757         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
46758         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
46759         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
46760         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
46761         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
46762         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
46763         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
46764         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
46765         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
46766         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
46767         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
46768         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
46769         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
46770         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
46771         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
46772         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
46773         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
46774         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
46775         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
46776         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
46777         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
46778         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
46779         Likewise.
46780
46781 2006-09-13  Eric Blake  <ebb9@byu.net>
46782
46783         * lib/getopt.c: Fix typo in last commit.
46784
46785 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46786
46787         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
46788         dgettext.
46789
46790 2006-09-12  Jim Meyering  <jim@meyering.net>
46791
46792         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
46793         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
46794         Reported by Nelson H. F. Beebe.
46795
46796 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46797
46798         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
46799         program_invocation_name and program_invocation_short_name are
46800         initialized.
46801         * lib/argp-namefrob.h: Move declarations of program_invocation_name
46802         and program_invocation_short_name to argp.h, so they are visible
46803         to user programs.
46804         * lib/argp.h: Likewise
46805
46806 2006-09-10  Bruno Haible  <bruno@clisp.org>
46807
46808         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
46809         m4/inttypes_h.m4, m4/uintmax_t.m4.
46810
46811 2006-09-10  Bruno Haible  <bruno@clisp.org>
46812
46813         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
46814         gl_AC_TYPE_UINTMAX_T.
46815
46816 2006-09-10  Bruno Haible  <bruno@clisp.org>
46817
46818         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
46819
46820 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46821
46822         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
46823         convention.  Text proposed by Bruno Haible.
46824         (struct argp_option): Document the use of N_() wrappers.
46825
46826         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
46827         '\v', and translate the two parts separately, instead of feeding
46828         the whole string to gettext.  This allows to exclude
46829         '\v' from the strings visible to the translator by writing doc
46830         strings as N_("..") "\v" N_("..").
46831
46832 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
46833
46834         * config/srclist.txt: Undo latest change; the bug was fixed.
46835
46836 2006-09-09  Bruno Haible  <bruno@clisp.org>
46837
46838         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
46839         assignments if building a library without libtool.
46840         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
46841         in func_emit_lib_Makefile_am.
46842         (func_import): When building a static library libfoo.a, arrange to
46843         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
46844         (func_create_testdir): Likewise.
46845         * modules/gc (configure.ac, Makefile.am): If building statically,
46846         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
46847         * modules/iconvme (configure.ac, Makefile.am): Likewise.
46848         * modules/striconv (configure.ac, Makefile.am): Likewise.
46849         Based on a suggestion by Ralf Wildenhues.
46850
46851 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46852
46853         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46854         Check for unistd.h too, since Autoconf doesn't assume POSIX.
46855         Also:
46856
46857         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46858         Add year_2050_test to catch glibc bug 2821
46859         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46860
46861         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46862         Prefer #ifdef to #if.
46863
46864         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
46865         Return from 'main' instead of calling 'exit'.
46866
46867 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46868
46869         * lib/mktime.c (guess_time_tm): Fix bug where mktime
46870         returned the maximum time_t value rather than (time_t) -1.
46871         Problem originally reported by William Bardwell
46872         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
46873
46874         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46875         Moved to here ...
46876         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
46877         ... from here.
46878
46879 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46880
46881         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
46882         2821 is fixed.
46883
46884 2006-09-08  Jim Meyering  <jim@meyering.net>
46885
46886         Don't make generated files read-only.  That would bother too many
46887         people.  However, do retain the ability to work when targets are
46888         read-only: remove the destination and temporary files before writing
46889         them (when generated via sed or echo), or by using the -f option for
46890         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
46891         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46892         * modules/byteswap, modules/configmake, modules/fcntl:
46893         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46894         * modules/localcharset, modules/netinet_in, modules/poll:
46895         * modules/stdbool, modules/stdint, modules/sys_select:
46896         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46897
46898 2006-09-08  Jim Meyering  <jim@meyering.net>
46899
46900         Avoid new build failure on FreeBSD 6.0.
46901         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
46902         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
46903         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
46904
46905 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46906
46907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
46908
46909 2006-09-07  Jim Meyering  <jim@meyering.net>
46910
46911         Fix global typo in last change: use chmod u-w, not chmod u-x.
46912         Spotted by Paul Eggert and Bruce Korb.
46913         * modules/alloca-opt, modules/argz, modules/arpa_inet:
46914         * modules/byteswap, modules/configmake, modules/fcntl:
46915         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
46916         * modules/localcharset, modules/netinet_in, modules/poll:
46917         * modules/stdbool, modules/stdint, modules/sys_select:
46918         * modules/sys_socket, modules/sys_stat, modules/sysexits:
46919
46920 2006-09-06  Jim Meyering  <jim@meyering.net>
46921
46922         Make generated files be read-only.
46923         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
46924         Ensure that each generated file is now read-only.
46925         * modules/argz: Likewise.
46926         * modules/arpa_inet: Likewise.
46927         * modules/byteswap: Likewise.
46928         * modules/configmake: Likewise.
46929         * modules/fcntl: Likewise.
46930         * modules/fnmatch: Likewise.
46931         * modules/getopt: Likewise.
46932         * modules/glob: Likewise.
46933         * modules/inttypes: Likewise.
46934         * modules/netinet_in: Likewise.
46935         * modules/poll: Likewise.
46936         * modules/stdbool: Likewise.
46937         * modules/stdint: Likewise.
46938         * modules/sys_select: Likewise.
46939         * modules/sys_socket: Likewise.
46940         * modules/sys_stat: Likewise.
46941         * modules/sysexits: Likewise.
46942         * modules/localcharset: Same as above, but continue using temporary
46943         file named "t-$@" (why different?) rather than the "$@-t" used
46944         everywhere else.
46945
46946         * modules/sysexits (Makefile.am): Replace literal occurrences
46947         of "sysexit.h" more readable, and more consistent, "$@".
46948
46949 2006-09-06  Bruno Haible  <bruno@clisp.org>
46950
46951         * modules/striconv: New file.
46952         * modules/xstriconv: New file.
46953         * MODULES.html.sh (Internationalization functions): Add striconv,
46954         xstriconv.
46955
46956 2006-09-06  Bruno Haible  <bruno@clisp.org>
46957
46958         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
46959         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
46960         not using libtool correctly.
46961
46962 2006-09-06  Bruno Haible  <bruno@clisp.org>
46963
46964         * lib/striconv.h: New file.
46965         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
46966         iconvstring.c.
46967         * lib/xstriconv.h: New file.
46968         * lib/xstriconv.c: New file.
46969
46970 2006-09-06  Bruno Haible  <bruno@clisp.org>
46971
46972         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46973         lib_..._LDFLAGS.
46974
46975 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46976
46977         * lib/argz_.h: Sync from Libtool.
46978
46979         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
46980                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46981
46982         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
46983
46984 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46985
46986         * modules/trim: New file.
46987
46988 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
46989
46990         * lib/trim.h: New file.
46991         * lib/trim.c: New file.
46992
46993 2006-09-05  Bruno Haible  <bruno@clisp.org>
46994
46995         * MODULES.html.sh (String handling): Add trim.
46996
46997 2006-09-04  Karl Berry  <karl@gnu.org>
46998
46999         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47000         until next release.
47001
47002 2006-09-03  Bruno Haible  <bruno@clisp.org>
47003
47004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47005         correctly.
47006
47007 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47008
47009         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47010         not gl_GETLOADAVG.  Omit unneeded semicolons.
47011         Problems reported by Ralf Wildenhues in
47012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47013         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47014         at the end, which is the usual gnulib style.
47015
47016         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47017         of doing all the work ourselves.
47018         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47019         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47020
47021 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47022
47023         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47024         Problem reported by Ralf Wildenhues in
47025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47026
47027         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47028         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47029
47030 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47031
47032         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47033         yesterday's patch by changing test -n to test -z.
47034
47035 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47036
47037         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47038         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47039         the former is now obsolescent.
47040
47041         * modules/chdir-long (Depends-on): Add fcntl.
47042
47043 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47044
47045         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47046         obsolescent, and programs should use gnulib instead.
47047         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47048         but with prefixes changed.
47049
47050 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47051
47052         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47053         or stdbool.h, because they might not exist while configuring.
47054
47055         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47056         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47057         does that for us.
47058         (O_DIRECTORY): Remove.
47059
47060 2006-08-31  Eric Blake  <ebb9@byu.net>
47061
47062         * gnulib-tool: Don't let emacs change spaces to TAB.
47063
47064 2006-08-31  Bruno Haible  <bruno@clisp.org>
47065
47066         * gnulib-tool: When calling func_import more than once, do it in a
47067         subshell.
47068         Reported by Eric Blake <ebb9@byu.net>.
47069
47070 2006-08-31  Bruno Haible  <bruno@clisp.org>
47071
47072         * gnulib-tool (nl): Remove variable.
47073         (sed_transform_lib_file): Use more robust test for config-h module.
47074         (func_import): Fix typo in 2006-08-25 patch.
47075
47076 2006-08-31  Bruno Haible  <bruno@clisp.org>
47077
47078         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47079         specified, augment Makefile.am variables instead of assigning them.
47080
47081 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47082
47083         Work around a bug in both the Linux and SunOS 64-bit kernels:
47084         nanosleep mishandles sleeps for longer than 2**31 seconds.
47085         Problem reported by Frank v Waveren in
47086         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47088         Check for nanosleep bug.
47089         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47090
47091 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47092
47093         Work around a bug in both the Linux and SunOS 64-bit kernels:
47094         nanosleep mishandles sleeps for longer than 2**31 seconds.
47095         Problem reported by Frank v Waveren in
47096         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47097         * lib/nanosleep.c (BILLION): New constant.
47098         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47099         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47100         implementation.
47101
47102 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47103
47104         * modules/nanosleep (Depends-on): Add gettime.
47105
47106 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47107         and Simon Josefsson  <jas@extundo.com>
47108         and Oskar Liljeblad  <oskar@osk.mine.nu>
47109
47110         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47111         * gnulib-tool (func_import): New license type 'unmodifiable license
47112         text'.
47113         * modules/fdl: Use it.  Longer description.
47114         * module/gpl, module/lgpl: New files.
47115
47116 2006-08-30  Jim Meyering  <jim@meyering.net>
47117
47118         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47119         shadowing the parameter.
47120
47121 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47122
47123         Sync from Libtool:
47124
47125         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47126
47127         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47128         sharing with gnulib.  Report by Eric Blake.
47129
47130 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47131
47132         * modules/isapipe: New file.
47133         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47134
47135 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47136
47137         * modules/configmake (Makefile.am): Add a comment, and omit
47138         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47139         by Bruno Haible.
47140
47141 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47142
47143         * m4/isapipe.m4: New file.
47144
47145 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47146
47147         * lib/isapipe.c, lib/isapipe.h: New files.
47148
47149 2006-08-29  Jim Meyering  <jim@meyering.net>
47150
47151         * modules/configmake (Makefile.am): Make configmake.h depend on
47152         Makefile.  Otherwise, a stale configmake.h could hang around.
47153
47154 2006-08-29  Eric Blake  <ebb9@byu.net>
47155
47156         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47157         resolution of upstream bug 3044.
47158
47159 2006-08-29  Bruno Haible  <bruno@clisp.org>
47160
47161         * modules/localcharset (Depends-on): Add configmake.
47162         (Makefile.am): Remove setting of LIBDIR through DEFS.
47163
47164 2006-08-29  Bruno Haible  <bruno@clisp.org>
47165
47166         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47167         defined.
47168
47169 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47170
47171         * modules/fcntl: New file.
47172         * modules/chdir-safer (Depends-on): Add fcntl.
47173         * modules/fts: Likewise.
47174         * modules/mkdir-p: Likewise.
47175
47176         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47177         This undoes the most recent change, since we're now addressing the
47178         problem in a different way.
47179
47180         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47181         into output, since the output might be called Makefile.am even
47182         if $makefile_name is something different.
47183         (func_import): Use $makefile_am rather than
47184         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47185         empty.
47186
47187         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47188
47189 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47190
47191         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47192         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47193         recent change to stdint.m4, since we're now addressing the problem in a
47194         different way.
47195
47196 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47197
47198         * m4/fcntl_h.m4: New file.
47199
47200 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47201
47202         * lib/fcntl_.h: New file.
47203         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47204         the fcntl module.
47205         * lib/dirchownmod.c: Likewise.
47206         * lib/fts.c: Likewise.
47207
47208         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47209         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47210         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47211         just before including <inttypes.h>, to avoid circular inclusion.
47212
47213 2006-08-28  Jim Meyering  <jim@meyering.net>
47214
47215         * doc/visibility.texi: Actually read and correct the grammar of the
47216         sentence affected by yesterday's change.
47217
47218 2006-08-28  Eric Blake  <ebb9@byu.net>
47219
47220         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47221         needs wrapper.
47222
47223 2006-08-28  Eric Blake  <ebb9@byu.net>
47224
47225         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47226
47227 2006-08-28  Eric Blake  <ebb9@byu.net>
47228
47229         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47230
47231 2006-08-28  Bruno Haible  <bruno@clisp.org>
47232
47233         * modules/c-strstr: New file, from GNU gettext.
47234         * MODULES.html.sh (String handling): Add c-strstr.
47235
47236 2006-08-28  Bruno Haible  <bruno@clisp.org>
47237
47238         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47239         macros.
47240         Reported by Eric Blake.
47241
47242 2006-08-28  Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47245         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47246         * lib/vasprintf.c: Include errno.h, limits.h.
47247         (EOVERFLOW): New fallback definition.
47248         (vasprintf): Test here whether the string length is > INT_MAX.
47249         * lib/vsnprintf.c: Include errno.h, limits.h.
47250         (EOVERFLOW): New fallback definition.
47251         (vsnprintf): Fix bug when generated string was too long for the buffer.
47252         Test here whether the string length is > INT_MAX.
47253
47254 2006-08-28  Bruno Haible  <bruno@clisp.org>
47255
47256         * lib/inttypes_.h (SCNX*): Remove definitions.
47257         Reported by Eric Blake.
47258
47259 2006-08-28  Bruno Haible  <bruno@clisp.org>
47260
47261         * lib/c-strstr.h: New file, from GNU gettext.
47262         * lib/c-strstr.c: New file, from GNU gettext.
47263
47264 2006-08-28  Bruno Haible  <bruno@clisp.org>
47265
47266         * gnulib-tool: Reorder some statements.
47267
47268 2006-08-28  Bruno Haible  <bruno@clisp.org>
47269
47270         * gnulib-tool: New option --makefile-name.
47271         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47272         $makefile_name.
47273         (func_import): Write $makefile_name to the cache file, and read it from
47274         there unless explicitly specified. Use $makefile_name as file name
47275         instead of Makefile.am. Adjust the recommendations accordingly.
47276
47277 2006-08-28  Bruno Haible  <bruno@clisp.org>
47278
47279         * gnulib-tool (func_verify_module): Check against misapplying patch.
47280
47281 2006-08-28  Bruno Haible  <bruno@clisp.org>
47282
47283         * gnulib-tool (func_relativize, func_relconcat): New functions.
47284         Give an error if --local-dir is given with --update.
47285         Remove trailing slashes from $local_gnulib_dir.
47286         (func_import): Store the relativized $local_gnulib_dir in
47287         gnulib-cache.m4, and read it from there if not specified explicitly.
47288
47289 2006-08-28  Bruno Haible  <bruno@clisp.org>
47290
47291         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47292         is the current directory. Respect also $local_gnulib_dir.
47293
47294 2006-08-28  Bruno Haible  <bruno@clisp.org>
47295             Simon Josefsson  <jas@extundo.com>
47296
47297         BeOS portability.
47298         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47299
47300 2006-08-27  Jim Meyering  <jim@meyering.net>
47301
47302         * doc/visibility.texi: Remove duplicate word: "pointer".
47303
47304 2006-08-26  Bruno Haible  <bruno@clisp.org>
47305
47306         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47307         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47308         (Makefile.am): Create inttypes.h from inttypes_.h.
47309         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47310
47311         * modules/imaxabs: New file.
47312
47313         * modules/imaxdiv: New file.
47314
47315 2006-08-26  Bruno Haible  <bruno@clisp.org>
47316
47317         * m4/inttypes.m4: New file.
47318         * m4/_inttypes_h.m4: Remove file.
47319         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47320         PRI_MACROS_BROKEN.
47321         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47322
47323         * m4/imaxabs.m4: New file.
47324
47325         * m4/imaxdiv.m4: New file.
47326
47327 2006-08-26  Bruno Haible  <bruno@clisp.org>
47328
47329         * lib/inttypes_.h: New file.
47330         * lib/inttypes.h: Remove file.
47331         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47332
47333         * lib/imaxabs.c: New file.
47334
47335         * lib/imaxdiv.c: New file.
47336
47337 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47338
47339         New config-h module, so that "make" output needn't be cluttered
47340         by -DHAVE_CONFIG_H.
47341         * MODULES.html.sh (Support for building libraries and executables):
47342         Add config-h.
47343         * modules/config-h: New file.
47344         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47345         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47346         the config-h module is used.
47347
47348         New configmake module, so that "make" output needn't be cluttered
47349         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47350         * MODULES.html.sh (Support for building libraries and executables):
47351         Add configmake.
47352         * modules/configmake: New file.
47353
47354 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47355
47356         * m4/config-h.m4: New file.
47357
47358 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47359
47360         * config/srclist.txt: Add elisp-comp.
47361
47362 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47363
47364         * MODULES.html.sh (Support for building libraries and executables):
47365         Add elisp-comp.
47366         * build-aux/elisp-comp: New file.
47367         * modules/elisp-comp: New file.
47368
47369 2006-08-24  Bruno Haible  <bruno@clisp.org>
47370
47371         * gnulib-tool (func_create_testdir): Use non-default values of
47372         sourcebase and m4base.
47373
47374 2006-08-24  Bruno Haible  <bruno@clisp.org>
47375
47376         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47377         HTML structure.
47378
47379 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47380
47381         * modules/openat (Depends-on): Add lchown.
47382
47383 2006-08-23  Bruno Haible  <bruno@clisp.org>
47384
47385         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47386         of gl_LOCK_EARLY instead of gl_LOCK.
47387
47388 2006-08-23  Bruno Haible  <bruno@clisp.org>
47389
47390         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47391         on OSF/1 to no.
47392         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47393
47394 2006-08-23  Bruno Haible  <bruno@clisp.org>
47395
47396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47397         as unusable.
47398
47399         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47400         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47401         (gl_LOCK): New macro.
47402
47403 2006-08-22  Simon Josefsson  <jas@extundo.com>
47404
47405         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47406         to md5 module.
47407
47408 2006-08-22  Simon Josefsson  <jas@extundo.com>
47409
47410         * MODULES.html.sh: Add "Support for maintaining and release
47411         projects".
47412
47413         * build-aux/gnupload: New file, from coreutils.
47414
47415 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47416
47417         Avoid the need for AC_LIBSOURCES in m4 macros.
47418         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47419         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47420         * modules/check-version (EXTRA_DIST): Add check-version.h.
47421         * modules/crc (EXTRA_DIST): Add crc.h.
47422         * modules/des (EXTRA_DIST): Add des.h.
47423         * modules/gc (EXTRA_DIST): Add gc.h.
47424         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47425         * modules/getline (EXTRA_DIST): Add getline.h.
47426         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47427         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47428         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47429         * modules/md2 (EXTRA_DIST): Add md2.h.
47430         * modules/md4 (EXTRA_DIST): Add md4.h.
47431         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47432         * modules/read-file (EXTRA_DIST): Add read-file.h.
47433         * modules/readline (EXTRA_DIST): Add readline.h.
47434         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47435         rijndael-api-fst.h.
47436
47437 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47438
47439         * m4/rijndael.m4 (gl_ARCFOUR):
47440         * m4/arctwo.m4 (gl_ARCTWO):
47441         * m4/check-version.m4 (gl_CHECK_VERSION):
47442         * m4/crc.m4 (gl_CRC):
47443         * m4/des.m4 (gl_DES):
47444         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47445         * m4/gc.m4 (gl_GC):
47446         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47447         * m4/getline.m4 (gl_FUNC_GETLINE):
47448         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47449         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47450         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47451         * m4/md2.m4 (gl_MD2):
47452         * m4/md4.m4 (gl_MD4):
47453         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47454         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47455         * m4/readline.m4 (gl_FUNC_READLINE):
47456         * m4/rijndael.m4 (gl_RIJNDAEL):
47457         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47458         to get the necessary .h files and whatnot.
47459
47460 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47461
47462         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47463         gnulib rather than the other way around.
47464         * config/srclistvars.sh (COREUTILS): Remove.
47465
47466 2006-08-22  Jim Meyering  <jim@meyering.net>
47467
47468         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47469
47470         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47471
47472 2006-08-22  Eric Blake  <ebb9@byu.net>
47473
47474         * modules/regexprops-generic: New file.
47475         * MODULES.html.sh (Support for building documentation): List it.
47476
47477 2006-08-22  Eric Blake  <ebb9@byu.net>
47478
47479         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47480         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47481         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47482         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47483
47484 2006-08-22  Bruno Haible  <bruno@clisp.org>
47485
47486         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47487         and lib_LTLIBRARIES like the other lib_* variables.
47488
47489 2006-08-22  Bruno Haible  <bruno@clisp.org>
47490
47491         * build-aux/x-to-1.in: New file, from GNU gettext.
47492
47493 2006-08-22  Bruno Haible  <bruno@clisp.org>
47494
47495         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47496         <utmpx.h> exists.
47497
47498 2006-08-22  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47501         <utmpx.h> exists.
47502
47503 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47504
47505         BeOS portability.
47506         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47507         exist.
47508         Problem reported by Bruno Haible.
47509
47510 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47511
47512         Avoid the need for AC_LIBSOURCES in m4 macros.
47513         * modules/acl (EXTRA_DIST): Add acl.h.
47514         * modules/argmatch (Files): Add m4/argmatch.m4.
47515         (configure.ac): Add gl_ARGMATCH.
47516         (EXTRA_DIST): Renamed from lib_SOURCES, for
47517         consistency with the other modules.  Remove argmatch.c.
47518         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47519         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47520         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47521         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47522         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47523         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47524         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47525         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47526         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
47527         * modules/closeout (EXTRA_DIST): Add closeout.h.
47528         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
47529         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
47530         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
47531         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
47532         dirname.h; remove basename.c and stripslash.c.
47533         * modules/exclude (EXTRA_DIST): Add exclude.h.
47534         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
47535         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
47536         * modules/file-type (EXTRA_DIST): Add file-type.h.
47537         * modules/filemode (EXTRA_DIST): Add filemode.h.
47538         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
47539         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47540         * modules/fpending (EXTRA_DIST): Add __fpending.h.
47541         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
47542         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
47543         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
47544         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
47545         * modules/getdate (EXTRA_DIST): Add getdate.c.
47546         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
47547         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
47548         * modules/getpass (EXTRA_DIST): Add getpass.h.
47549         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
47550         * modules/group-member (EXTRA_DIST): Add group-member.h.
47551         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
47552         * modules/hash (EXTRA_DIST): Add hash.h.
47553         * modules/human (EXTRA_DIST): Add human.h.
47554         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
47555         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
47556         * modules/lchown (EXTRA_DIST): Add lchown.h.
47557         * modules/long-options (EXTRA_DIST): Add long-options.h.
47558         * modules/lstat (EXTRA_DIST): Add lstat.h.
47559         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
47560         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
47561         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
47562         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
47563         * modules/memxor (EXTRA_DIST): Add memxor.h.
47564         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
47565         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
47566         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
47567         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
47568         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
47569         * modules/physmem (EXTRA_DIST): Add physmem.h.
47570         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
47571         * modules/posixver (EXTRA_DIST): Add posixver.h.
47572         * modules/quote (EXTRA_DIST): Add quote.h.
47573         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
47574         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
47575         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
47576         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
47577         regex_internal.h regexec.c.
47578         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
47579         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
47580         * modules/same (EXTRA_DIST): Add same.h.
47581         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
47582         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
47583         * modules/savedir (EXTRA_DIST): Add savedir.h.
47584         * modules/sha1 (EXTRA_DIST): Add sha1.h.
47585         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
47586         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
47587         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
47588         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
47589         * modules/strdup (EXTRA_DIST): Add strdup.h.
47590         * modules/strftime (EXTRA_DIST): Add strftime.h.
47591         * modules/strndup (EXTRA_DIST): Add strndup.h.
47592         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
47593         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
47594         * modules/time_r (EXTRA_DIST): Add time_r.h.
47595         * modules/timespec (EXTRA_DIST): Add timespec.h.
47596         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
47597         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
47598         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
47599         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
47600         * modules/userspec (EXTRA_DIST): Add userspec.h.
47601         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
47602         * modules/utimens (EXTRA_DIST): Add utimens.h.
47603         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
47604         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
47605         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
47606         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
47607         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
47608         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
47609         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
47610         * modules/yesno (EXTRA_DIST): Add yesno.h.
47611
47612 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47613
47614         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
47615
47616         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
47617         * m4/dev-ino.m4, same-inode.m4: Remove.
47618
47619         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
47620         * m4/acl.m4 (AC_FUNC_ACL):
47621         * m4/backupfile.m4 (gl_BACKUPFILE):
47622         * m4/c-strtod.m4 (gl_C99_STRTOLD):
47623         * m4/canon-host.m4 (gl_CANON_HOST):
47624         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47625         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
47626         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
47627         * m4/cloexec.m4 (gl_CLOEXEC):
47628         * m4/close-stream.m4 (gl_CLOSE_STREAM):
47629         * m4/closeout.m4 (gl_CLOSEOUT):
47630         * m4/dirfd.m4 (gl_FUNC_DIRFD):
47631         * m4/dirname.m4 (gl_DIRNAME):
47632         * m4/exclude.m4 (gl_EXCLUDE):
47633         * m4/exitfail.m4 (gl_EXITFAIL):
47634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
47635         * m4/file-type.m4 (gl_FILE_TYPE):
47636         * m4/filemode.m4 (gl_FILEMODE):
47637         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
47638         * m4/fpending.m4 (gl_FUNC_FPENDING):
47639         * m4/fprintftime.m4 (gl_FPRINTFTIME):
47640         * m4/fts.m4 (gl_FUNC_FTS):
47641         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
47642         * m4/getdate.m4 (gl_GETDATE):
47643         * m4/gethrxtime.m4 (gl_GETHRXTIME):
47644         * m4/getpagesize.m4 (gl_GETPAGESIZE):
47645         * m4/getpass.m4 (gl_FUNC_GETPASS):
47646         * m4/gettime.m4 (gl_GETTIME):
47647         * m4/getugroups.m4 (gl_GETUGROUPS):
47648         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
47649         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
47650         * m4/hard-locale.m4 (gl_HARD_LOCALE):
47651         * m4/hash.m4 (gl_HASH):
47652         * m4/idcache.m4 (gl_IDCACHE):
47653         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
47654         * m4/lchown.m4 (gl_FUNC_LCHOWN):
47655         * m4/long-options.m4 (gl_LONG_OPTIONS):
47656         * m4/lstat.m4 (gl_FUNC_LSTAT):
47657         * m4/md5.m4 (gl_MD5):
47658         * m4/memcasecmp.m4 (gl_MEMCASECMP):
47659         * m4/memcoll.m4 (gl_MEMCOLL):
47660         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
47661         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
47662         * m4/memxor.m4 (gl_MEMXOR):
47663         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
47664         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
47665         * m4/modechange.m4 (gl_MODECHANGE):
47666         * m4/mountlist.m4 (gl_MOUNTLIST):
47667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47668         * m4/openat.m4 (gl_FUNC_OPENAT):
47669         * m4/pathmax.m4 (gl_PATHMAX):
47670         * m4/physmem.m4 (gl_PHYSMEM):
47671         * m4/posixtm.m4 (gl_POSIXTM):
47672         * m4/posixver.m4 (gl_POSIXVER):
47673         * m4/quote.m4 (gl_QUOTE):
47674         * m4/quotearg.m4 (gl_QUOTEARG):
47675         * m4/readtokens.m4 (gl_READTOKENS):
47676         * m4/readutmp.m4 (gl_READUTMP):
47677         * m4/regex.m4 (gl_REGEX):
47678         * m4/safe-read.m4 (gl_SAFE_READ):
47679         * m4/safe-write.m4 (gl_SAFE_WRITE):
47680         * m4/same.m4 (gl_SAME):
47681         * m4/save-cwd.m4 (gl_SAVE_CWD):
47682         * m4/savedir.m4 (gl_SAVEDIR):
47683         * m4/settime.m4 (gl_SETTIME):
47684         * m4/sha1.m4 (gl_SHA1):
47685         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
47686         * m4/stat-macros.m4 (gl_STAT_MACROS):
47687         * m4/stat-time.m4 (gl_STAT_TIME):
47688         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
47689         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
47690         * m4/strdup.m4 (gl_FUNC_STRDUP):
47691         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
47692         * m4/strndup.m4 (gl_FUNC_STRNDUP):
47693         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
47694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
47695         * m4/time_r.m4 (gl_TIME_R):
47696         * m4/timespec.m4 (gl_TIMESPEC):
47697         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
47698         * m4/unlinkdir.m4 (gl_UNLINKDIR):
47699         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
47700         * m4/userspec.m4 (gl_USERSPEC):
47701         * m4/utimecmp.m4 (gl_UTIMECMP):
47702         * m4/utimens.m4 (gl_UTIMENS):
47703         * m4/xalloc.m4 (gl_XALLOC):
47704         * m4/xgetcwd.m4 (gl_XGETCWD):
47705         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
47706         * m4/xreadlink.m4 (gl_XREADLINK):
47707         * m4/xstrtod.m4 (gl_XSTRTOD):
47708         * m4/yesno.m4 (gl_YESNO):
47709         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47710         to get the necessary .h files and whatnot.
47711
47712 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
47713             Bruno Haible  <bruno@clisp.org>
47714
47715         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
47716         /bin/sh understanding of '!' conditional negation.
47717
47718 2006-08-21  Jim Meyering  <jim@meyering.net>
47719
47720         * modules/openat (Depends-on): Really alphabetize.
47721
47722         * modules/acl (Depends-on): Add error and quote.
47723
47724         * check-module (find_included_lib_files): Add at-func.c to the
47725         ok-to-include-more-than-once white list.
47726
47727         * modules/openat (Depends-on): Add lstat.  Alphabetize.
47728
47729 2006-08-21  Bruno Haible  <bruno@clisp.org>
47730
47731         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47732         Emit a pkgdata_DATA variable only if some snippets add contents to it.
47733         Reported by Martin Lambers <marlam@marlam.de>.
47734
47735 2006-08-21  Bruno Haible  <bruno@clisp.org>
47736
47737         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
47738         specify an installation location, don't emit a noinst_LIBRARIES or
47739         noinst_LTLIBRARIES assignment.
47740
47741 2006-08-21  Bruno Haible  <bruno@clisp.org>
47742
47743         BeOS portability.
47744         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
47745         BeOS has mbrtowc() but no <wctype.h>.
47746
47747 2006-08-21  Bruno Haible  <bruno@clisp.org>
47748
47749         BeOS portability.
47750         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
47751         exist.
47752
47753 2006-08-21  Bruno Haible  <bruno@clisp.org>
47754
47755         BeOS portability.
47756         * lib/mbchar.h: Include <wctype.h> only if it exists.
47757
47758 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47759
47760         Remove files that are no longer needed by their respective modules.
47761         * m4/obstack.m4: Remove.
47762         * m4/strerror_r.m4: Remove.
47763         * m4/uint32_t.m4: Remove.
47764         * m4/uintptr_t.m4: Remove.
47765         * m4/ullong_max.m4: Remove.
47766         * m4/xstrtoimax.m4: Remove.
47767         * m4/xstrtoumax.m4: Remove.
47768
47769         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
47770         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
47771         dependencies now capture this.
47772
47773         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
47774         Do not use AC_LIBSOURCES, since gnulib modules now do this.
47775         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
47776         * m4/human.m4 (gl_HUMAN): Likewise.
47777         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
47778         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
47779
47780         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
47781
47782         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
47783         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
47784         stdint.
47785         * m4/human.m4 (gl_HUMAN): Likewise.
47786         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
47787         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
47788         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47789         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47790         * m4/xstrtol (gl_XSTRTOL): Likewise.
47791
47792         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
47793         AC_TYPE_LONG_LONG_INT.
47794         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
47795         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
47796         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
47797         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
47798
47799         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
47800         on stdbool.
47801
47802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
47803         (gl_PREREQ_XSTRTOUL): Remove.
47804
47805         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
47806
47807         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
47808         mode.
47809
47810 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47811
47812         Add and change modules to make it easier for coreutils to use
47813         gnulib-tool.
47814         * modules/backupfile (Files): Remove m4/d-ino.m4.
47815         (Depends-on): Add d-ino.
47816         * modules/cycle-check (Depends-on): Add stdint.
47817         (lib_SOURCES): Add cycle-check.h.
47818         * modules/d-ino: New module.
47819         * modules/d-type: New module.
47820         * modules/error (Files): Remove m4/strerror_r.m4.
47821         * modules/filemode (Files): Add m4/st_dm_mode.m4.
47822         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47823         m4/inttypes_h.m4, m4/uintmax_t.m4.
47824         (Depends-on): Add stdint.
47825         (lib_SOURCES): Add fsusage.h.
47826         * modules/getcwd (Files): Remove d-ino.m4.
47827         (Depends-on): Add d-ino.
47828         * modules/getndelim2 (Depends-on): Add stdint.
47829         * modules/glob (Files): Remove m4/d-type.m4.
47830         (Depends-on): Add d-type.
47831         * modules/host-os: New module.
47832         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
47833         m4/inttypes_h.m4, m4/uintmax_t.m4.
47834         * Depends-on: Add stdint.
47835         (lib_SOURCES): Add human.h.
47836         * modules/inttostr (Files): Remove m4/intmax_t.m4,
47837         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
47838         m4/uintmax_t.m4, m4/ulonglong.m4.
47839         (Depends-on): Add stdint.
47840         (EXTRA_DIST): Add inttostr.h.
47841         * modules/lchmod: New module.
47842         * modules/link-follow: New module.
47843         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
47844         (Depends-on): Add lchmod.
47845         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
47846         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
47847         (Depends-on): Add stdint.
47848         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
47849         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
47850         (Depends-on): Add stdint.
47851         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
47852         * modules/perl: New module.
47853         * modules/regex (Depends-on): Add stdint.
47854         * modules/rmdir-errno: New module.
47855         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47856         m4/intmax_t.m4.
47857         (Depends-on): Add stdint.
47858         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
47859         m4/uintmax_t.m4.
47860         (Depends-on): Add stdint.
47861         * modules/unlink-busy: New module.
47862         * modules/utimecmp (Depends-on): Add stdint.
47863         * modules/uptime: New module.
47864         * modules/winsz-ioctl: New module.
47865         * modules/winsz-termios: New module.
47866         * modules/xnanosleep (Depends-on): Add nanosleep.
47867         * modules/ullong_max: Remove.
47868         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
47869         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
47870         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
47871         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
47872         (Depends-on): Add inttypes.
47873         (lib_SOURCES): Add xstrtol.h.
47874         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
47875         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
47876         * MODULES.html.sh: Move 'assert' into the assert section.
47877         Move 'dummy' into the linking section.
47878         Remove ullong_max.
47879         Add section for compatibility checks for POSIX:2001 functions,
47880         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
47881         winsz-ioctl, and winsz-termios into it.
47882         Add lchmod.
47883         Add top-level Misc section and put host-os, perl, and uptime
47884         into it.
47885
47886 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
47889         now assume the stdint module.  Do not include inttypes.h.
47890         * lib/fsusage.h: Likewise.
47891         * lib/getndelim2.c: Likewise.
47892         * lib/human.h: Likewise.
47893         * lib/inttostr.h: Likewise.
47894         * lib/obstack.c: Likewise.
47895         * lib/regex_internal.h: Likewise.
47896         * lib/tempname.c: Likewise.
47897         * lib/utimecmp.c: Likewise.
47898         * lib/xstrtol.h: Likewise.
47899
47900         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
47901
47902         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
47903         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
47904         * lib/xtime.h: Likewise.
47905
47906 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47907
47908         * modules/openat (Files): Add lib/fchmodat.c.
47909         Fixes problem reported by Jay Youngman.
47910
47911 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47912
47913         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
47914         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
47915
47916 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
47917             Bruno Haible  <bruno@clisp.org>
47918
47919         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
47920         and is a script that invokes bison. Tighten the code. Add comments.
47921
47922 2006-08-18  Jim Meyering  <jim@meyering.net>
47923
47924         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
47925         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
47926         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
47927         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
47928
47929 2006-08-18  Bruno Haible  <bruno@clisp.org>
47930
47931         * modules/bison-i18n: New file.
47932         * MODULES.html.sh (Internationalization functions): Add it.
47933
47934 2006-08-18  Bruno Haible  <bruno@clisp.org>
47935
47936         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
47937         sys/statvfs.h. When getmntinfo was found, check its declaration and
47938         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
47939
47940 2006-08-18  Bruno Haible  <bruno@clisp.org>
47941
47942         * m4/bison-i18n.m4: New file, from bison.
47943
47944 2006-08-18  Bruno Haible  <bruno@clisp.org>
47945
47946         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
47947         (ME_DUMMY): Treat "kernfs" as a dummy.
47948         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
47949
47950 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47951
47952         Update from coreutils.
47953
47954         2006-08-15  Jim Meyering  <jim@meyering.net>
47955
47956         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
47957
47958         2006-01-17  Jim Meyering  <jim@meyering.net>
47959
47960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
47961
47962         2006-01-11  Jim Meyering  <jim@meyering.net>
47963
47964         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
47965         Check for the lchmod function.
47966
47967 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         Update from coreutils.
47970
47971         * lib/__fpending.h: Add copyright notice.
47972         * lib/fprintftime.h: Likewise.
47973         * lib/savedir.c: Use (C) in copyright notice.
47974         * lib/savedir.h: Likewise.
47975
47976         2006-08-15  Jim Meyering  <jim@meyering.net>
47977
47978         * lib/at-func.c: New file, with the logic of all emulated at-functions.
47979         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
47980         in support of the EXPECTED_ERRNO macro.
47981         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
47982         definitions.  Instead, define the appropriate symbols and include
47983         "at-func.c".
47984         * lib/mkdirat.c (mkdirat): Likewise.
47985         * lib/fchmodat.c (fchmodat): Likewise.
47986         (ENOSYS): Remove definition.
47987         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
47988         it.  Don't include "unistd--.h" -- it wasn't ever used.
47989
47990         2006-01-17  Jim Meyering  <jim@meyering.net>
47991
47992         Rewrite fts.c not to change the current working directory,
47993         by using openat, fstatat, fdopendir, etc..
47994
47995         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
47996         (HAVE_OPENAT_SUPPORT): Define.
47997         [_LIBC] (fchdir): Don't undef or define; no longer used.
47998         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
47999         Now, this `function' always succeeds, and consumes its file descriptor
48000         parameter -- so callers must not close such FDs.  Update callers.
48001         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48002         (diropen): Add parameter, SP.  Adjust all callers.
48003         Implement using diropen_fd, rather than open.
48004         (fts_open): Initialize new member, fts_cwd_fd.
48005         Remove fts_rft-setting code.
48006         (fts_close): Close fts_cwd_fd, if necessary.
48007         (__opendir2): Define in terms of opendir or opendirat,
48008         depending on whether the FST_NOCHDIR flag is set.
48009         (fts_build): Since fts_safe_changedir consumes its FD, and since
48010         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48011         and close the dup'd file descriptor upon failure.
48012         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48013         (fts_safe_changedir): Tweak semantics to reflect that this function
48014         now calls cwd_advance_fd and hence consumes its FD argument.
48015         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48016         [struct FTS] (fts_rft): Remove now-unused member.
48017         [struct FTS] (fts_cycle.state): Improve comment.
48018
48019         * lib/openat.c (openat_needs_fchdir): New function.
48020         * lib/openat.h (openat_needs_fchdir): Declare it.
48021
48022 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48023
48024         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48025         Problem and fix reported by Pádraig Brady in
48026         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48027
48028 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48029
48030         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48031
48032 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48033
48034         * lib/memcoll.c (memcoll): Optimize for the common case where the
48035         arguments are bytewise equal.
48036
48037 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48038
48039         * doc/regexprops-generic.texi: Add a copyright notice.
48040
48041 2006-08-15  Bruno Haible  <bruno@clisp.org>
48042
48043         * modules/tmpdir (License): Change to LGPL.
48044
48045 2006-08-15  Bruno Haible  <bruno@clisp.org>
48046
48047         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48048         module.
48049
48050 2006-08-14  Simon Josefsson  <jas@extundo.com>
48051
48052         * config/srclist.txt: Add gnupload.
48053
48054 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         Change copyright notice from LGPL 2 to GPL 2, since that's the
48057         standard form used in the gnulib repository.
48058         * tests/test-lock.c: Likewise.
48059         * tests/test-stdint.c: Likewise.
48060         * tests/test-tls.c: Likewise.
48061
48062         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48063         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48064         Add copyright notice.
48065
48066         * check-module: Add copyright notice.  Output a copyright
48067         notice if "--version" is specified.
48068         * modules/COPYING: New file.
48069         * tests/test-getaddrinfo.c: Add copyright notice.
48070         * tests/test-verify.c: Likewise.
48071
48072 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48073
48074         Change copyright notice from LGPL 2 to GPL 2, since that's the
48075         standard form used in the gnulib repository.
48076         * lib/lock.c: LGPL -> GPL.
48077         * lib/lock.h: Likewise.
48078         * lib/strnlen1.c: Likewise.
48079         * lib/strnlen1.h: Likewise.
48080         * lib/tls.c: Likewise.
48081         * lib/tls.h: Likewise.
48082         * lib/tmpdir.c: Likewise.
48083
48084         * lib/TODO: Remove; this belongs only in coreutils.
48085
48086 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48087
48088         Add copyright notices to long-enough files that lack them, since
48089         otherwise the files aren't clearly free.  Use the same notice that
48090         getdate.texi already uses.
48091         * doc/alloca-opt.texi: Add copyright notice.
48092         * doc/alloca.texi: Likewise.
48093         * doc/ctime.texi: Likewise.
48094         * doc/functions.texi: Likewise.
48095         * doc/gcd.texi: Likewise.
48096         * doc/gnulib-tool.texi: Likewise.
48097         * doc/inet_ntoa.texi: Likewise.
48098         * doc/visibility.texi: Likewise.
48099
48100         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48101         * doc/quote.texi: Add copyright notice.
48102
48103         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48104         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48105         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48106         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48107         is now obsolete, and give a pointer to the Sun list.
48108         Add copyright notice.
48109
48110 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48111
48112         * config/srclistvars.sh: Add copyright notice.
48113
48114 2006-08-14  Eric Blake  <ebb9@byu.net>
48115
48116         Import the following change from libc:
48117
48118         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48119
48120         Upstream bug 2997.
48121         * lib/misc/error.c: Add space between program name and message if file
48122         name is missing.
48123
48124 2006-08-12  Karl Berry  <karl@gnu.org>
48125
48126         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48127         remove, these originate in gnulib now.
48128
48129 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48130
48131         * doc/Makefile (standards.info standards.html standards.dvi):
48132         Also depend on make-stds.texi.
48133
48134 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48135
48136         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48137         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48138
48139         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48140         in wchar_t.  Problem reported by Eric Blake.
48141
48142         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48143         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48144         Also, help the compiler to keep LEN in a register.
48145
48146 2006-08-11  Eric Blake  <ebb9@byu.net>
48147
48148         * users.txt: Sort.  Add tar.
48149
48150 2006-08-11  Bruno Haible  <bruno@clisp.org>
48151
48152         * users.txt: New file.
48153
48154 2006-08-11  Bruno Haible  <bruno@clisp.org>
48155
48156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48157         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48158
48159 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48160
48161         * modules/snprintf (Depends-on): Remove minmax.
48162         (Maintainer): Add self and Bruno.
48163
48164 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48165
48166         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48167         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48168         (EOVERFLOW): Define if the system does not.
48169         Do not include "minmax.h"; it wasn't used.
48170         (snprintf): Don't assume size_t promotes to an unsigned type.
48171         Fix bug when generated string was too long for the buffer: the
48172         buffer's contents are supposed to be the initial prefix of the
48173         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48174         exceeds INT_MAX; do the check ourselves.
48175
48176         Import the following changes from libc:
48177
48178         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48179
48180         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48181         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48182         set wc to the byte which couldn't be converted.
48183         (re_string_reconstruct): Don't clear valid_raw_len before calling
48184         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48185         tip_context using re_string_context_at.
48186
48187         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48188
48189         * lib/posix/regex.h: g++ still cannot handled [restrict].
48190
48191         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48192
48193         * lib/posix/regex.h: Remove special handling for VMS.
48194
48195 2006-08-10  Jim Meyering  <jim@meyering.net>
48196
48197         * modules/same-inode: New module.
48198         * modules/dev-ino: New module.
48199         * modules/cycle-check: Depend on these modules, rather than simply
48200         including their .h files.
48201         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48202         required via m4/cycle-check.m4.
48203         * modules/same: Depend on new same-inode module, rather than
48204         including same-inode.h.
48205         * modules/chdir-safer: New file.
48206
48207         * modules/chown (Depends-on): Add stat-macros.
48208
48209 2006-08-10  Jim Meyering  <jim@meyering.net>
48210
48211         * m4/cycle-check.m4: New file.
48212         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48213         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48214
48215 2006-08-10  Eric Blake  <ebb9@byu.net>
48216
48217         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48218         in from original proposal.
48219
48220 2006-08-10  Eric Blake  <ebb9@byu.net>
48221         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48222
48223         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48224         namespace.
48225
48226 2006-08-10  Bruno Haible  <bruno@clisp.org>
48227
48228         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48229         as well.
48230
48231 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48232
48233         Sync from coreutils.
48234
48235         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48236
48237         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48238         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48239
48240 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48241
48242         * modules/restrict: Remove; no longer needed now that we assume
48243         Autoconf 2.59 or later.
48244         * MODULES.html.sh: Remove 'restrict'.
48245         * modules/argp (Depends-on): Remove 'restrict'.
48246         * modules/base64 (Depends-on): Likewise.
48247         * modules/gc (Depends-on): Likewise.
48248         * modules/getaddrinfo (Depends-on): Likewise.
48249         * modules/glob (Depends-on): Likewise.
48250         * modules/inet_ntop (Depends-on): Likewise.
48251         * modules/inet_pton (Depends-on): Likewise.
48252         * modules/memxor (Depends-on): Likewise.
48253         * modules/regex (Depends-on): Likewise.
48254         * modules/strtok_r (Depends-on): Likewise.
48255         * modules/time_r (Depends-on): Likewise.
48256
48257 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48258
48259         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48260         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48261         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48262         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48263         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48264         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48265         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48266         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48267
48268         Merge from coreutils.
48269         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48270         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48271         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48272         * m4/time_r.m4 (gl_TIME_R): Likewise.
48273
48274 2006-08-09  Karl Berry  <karl@gnu.org>
48275
48276         * config/srclist.txt: no more gettext-tools, per Bruno.
48277
48278 2006-08-08  Eric Blake  <ebb9@byu.net>
48279
48280         * modules/verror: New module.
48281         * MODULES.html.sh: Document it.
48282
48283 2006-08-08  Eric Blake  <ebb9@byu.net>
48284
48285         * lib/verror.h, lib/verror.c: New files.
48286
48287 2006-08-08  Eric Blake  <ebb9@byu.net>
48288
48289         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48290         verror_at_line output complies with GNU Coding Standards even when
48291         file is NULL.
48292
48293 2006-08-07  Bruno Haible  <bruno@clisp.org>
48294
48295         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48296         versions of AIX.
48297         Reported by Ralf Wildenhues.
48298
48299 2006-08-07  Bruno Haible  <bruno@clisp.org>
48300
48301         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48302         in an AC_DEFUN. Needed so that the autoconf snippets can use
48303         AC_REQUIRE.
48304
48305 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48306
48307         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48308         Initialize pkgdata_DATA.
48309         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48310         overriding it.
48311
48312 2006-08-06  Eric Blake  <ebb9@byu.net>
48313
48314         * lib/error.h: Fold in some upstream changes from glibc.
48315         * lib/error.c: Likewise.
48316
48317 2006-08-04  Bruno Haible  <bruno@clisp.org>
48318
48319         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48320         Make the mostlyclean-local rule depend on mostlyclean-generic.
48321         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48322
48323 2006-07-31  Bruno Haible  <bruno@clisp.org>
48324
48325         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48326         <stdlib.h>, <string.h>.
48327
48328 2006-07-30  Bruno Haible  <bruno@clisp.org>
48329
48330         * modules/readlink (License): Change to LGPL.
48331
48332 2006-07-30  Bruno Haible  <bruno@clisp.org>
48333
48334         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48335         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48336         set PKGDATADIR to point to it.
48337
48338 2006-07-30  Bruno Haible  <bruno@clisp.org>
48339
48340         * modules/csharpexec (configure.ac): Comment out macro invocation.
48341         * modules/javaexec (configure.ac): Likewise.
48342         * modules/javacomp-script (configure.ac): Likewise.
48343
48344         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48345
48346 2006-07-30  Bruno Haible  <bruno@clisp.org>
48347
48348         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48349         linked-list.
48350
48351 2006-07-30  Bruno Haible  <bruno@clisp.org>
48352
48353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48354
48355 2006-07-30  Bruno Haible  <bruno@clisp.org>
48356
48357         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48358         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48359         get removed.
48360
48361 2006-07-29  Bruno Haible  <bruno@clisp.org>
48362
48363         Make it possible for gnulib-tool to work with locally modified or
48364         augmented gnulib repositories.
48365         * gnulib-tool (func_usage): Document --local-dir option.
48366         (local_gnulib_dir): New variable.
48367         Handle --local-dir option.
48368         (func_lookup_file): New function.
48369         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48370         (func_get_description, func_get_filelist, func_get_description,
48371         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48372         func_get_automake_snippet, func_get_include_directive,
48373         func_get_license, func_get_maintainer): Use func_lookup_file.
48374         (func_import, func_create_testdir): Use func_lookup_file.
48375
48376 2006-07-29  Bruno Haible  <bruno@clisp.org>
48377
48378         * modules/setenv (Depends-on): Add unistd.
48379
48380 2006-07-29  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48383
48384 2006-07-29  Bruno Haible  <bruno@clisp.org>
48385
48386         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48387
48388 2006-07-29  Bruno Haible  <bruno@clisp.org>
48389
48390         * gnulib-tool (import, update): If there is no Makefile.am, look at
48391         aclocal.m4, instead of bailing out.
48392
48393 2006-07-29  Bruno Haible  <bruno@clisp.org>
48394
48395         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48396         Categorize the options by when they are useful.
48397
48398 2006-07-29  Bruno Haible  <bruno@clisp.org>
48399
48400         * gnulib-tool (func_usage): Document option --no-libtool.
48401         Handle option --no-libtool.
48402         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48403         for changed semantics of $libtool variable.
48404         (func_import): Likewise. If libtool is not used, show this through
48405         an option --no-libtool.
48406         (func_create_testdir): Update.
48407
48408 2006-07-29  Bruno Haible  <bruno@clisp.org>
48409
48410         * gnulib-tool (func_import): Extend error message about missing
48411         --doc-base.
48412
48413 2006-07-29  Bruno Haible  <bruno@clisp.org>
48414
48415         * gnulib-tool (func_import): Don't create the $docbase directory if
48416         there is no file to store there.
48417
48418 2006-07-29  Bruno Haible  <bruno@clisp.org>
48419
48420         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48421         relevant, look for configure.ac there, not in the current directory.
48422         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48423
48424 2006-07-29  Bruno Haible  <bruno@clisp.org>
48425
48426         * gnulib-tool (SORT): New variable.
48427         (func_usage): Undocument --assume-autoconf option.
48428         Remove --assume-autoconf option handling.
48429         (autoconf_minversion): Determine from the contents of configure.ac.
48430         (func_import): Remove autoconf_minversion handling.
48431         Suggested by Eric Blake.
48432
48433 2006-07-29  Bruno Haible  <bruno@clisp.org>
48434
48435         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48436
48437 2006-07-29  Bruno Haible  <bruno@clisp.org>
48438
48439         * config/srclist.txt (*setenv.[ch]): Remove rules.
48440
48441 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48442
48443         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48444
48445 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48446
48447         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48448         arpa/inet.h.
48449
48450 2006-07-28  Simon Josefsson  <jas@extundo.com>
48451
48452         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48453         * modules/inet_pton (Depends-on): Likewise.
48454
48455 2006-07-28  Simon Josefsson  <jas@extundo.com>
48456
48457         * m4/netinet_in_h.m4: New file.
48458
48459 2006-07-28  Simon Josefsson  <jas@extundo.com>
48460
48461         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48462         #include's.
48463
48464 2006-07-28  Simon Josefsson  <jas@extundo.com>
48465
48466         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48467         #include's.
48468
48469 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48470
48471         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48472         setgid on directories only if they set these bits.
48473         * lib/modechange.h: Remove obsolete comment about masks.
48474
48475 2006-07-28  Eric Blake  <ebb9@byu.net>
48476
48477         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48478         macro expansion.
48479
48480 2006-07-28  Bruno Haible  <bruno@clisp.org>
48481
48482         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48483
48484 2006-07-28  Bruno Haible  <bruno@clisp.org>
48485
48486         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48487
48488 2006-07-28  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48491         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48492         Define fallbacks.
48493         Avoids link error on FreeBSD 4.x.
48494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48495
48496         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48497         encoding.
48498         * lib/mbswidth.c (iswcntrl): Likewise.
48499
48500 2006-07-27  Bruno Haible  <bruno@clisp.org>
48501
48502         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48503         test.
48504
48505 2006-07-27  Bruno Haible  <bruno@clisp.org>
48506
48507         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48508         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48509         defined.
48510
48511 2006-07-26  Eric Blake  <ebb9@byu.net>
48512
48513         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48514
48515 2006-07-26  Eric Blake  <ebb9@byu.net>
48516
48517         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48518         like mingw that lack mkstemp.
48519         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48520         avoid compilation warning on mingw.
48521
48522 2006-07-26  Bruno Haible  <bruno@clisp.org>
48523
48524         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48525         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48526         INT_FAST*_MIN, INTPTR_MIN.
48527
48528 2006-07-25  Bruno Haible  <bruno@clisp.org>
48529
48530         * modules/version-etc (Depends-on): Add stdarg.
48531
48532 2006-07-25  Bruno Haible  <bruno@clisp.org>
48533
48534         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
48535         complex commands.
48536
48537 2006-07-25  Bruno Haible  <bruno@clisp.org>
48538
48539         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
48540         defined in <stdarg.h> or config.h.
48541
48542 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48543
48544         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
48545         (gl_STDIO_SAFER): Remove.
48546
48547 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
48548
48549         * MODULES.html.sh (File stream based Input/Output):
48550         Add fopen-safer, tmpfile-safer; remove stdio-safer.
48551         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
48552         * modules/fopen-safer, modules/tmpfile-safer: New files.
48553         * modules/stdio-safer: Remove.
48554
48555 2006-07-24  Bruno Haible  <bruno@clisp.org>
48556
48557         * modules/tmpdir: New file.
48558         * MODULES.html.sh (File system functions): Add it.
48559
48560 2006-07-24  Bruno Haible  <bruno@clisp.org>
48561
48562         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
48563         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
48564
48565 2006-07-24  Bruno Haible  <bruno@clisp.org>
48566
48567         * modules/clean-temp: New file.
48568
48569 2006-07-24  Bruno Haible  <bruno@clisp.org>
48570
48571         * m4/tmpdir.m4: New file, from GNU gettext.
48572
48573 2006-07-24  Bruno Haible  <bruno@clisp.org>
48574
48575         * lib/tmpdir.h: New file, from GNU gettext.
48576         * lib/tmpdir.c: New file, from GNU gettext.
48577
48578 2006-07-24  Bruno Haible  <bruno@clisp.org>
48579
48580         * lib/clean-temp.h: New file, from GNU gettext.
48581         * lib/clean-temp.c: New file, from GNU gettext.
48582
48583 2006-07-23  Eric Blake  <ebb9@byu.net>
48584
48585         * modules/stdio-safer (Files): Add tmpfile-safer.c.
48586         (Depends-on): Add binary-io.
48587
48588 2006-07-23  Eric Blake  <ebb9@byu.net>
48589
48590         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
48591
48592 2006-07-23  Eric Blake  <ebb9@byu.net>
48593
48594         * lib/tmpfile-safer.c: New file.
48595         * lib/stdio-safer.h (fopen_safer): Add prototype.
48596         * lib/stdio--.h (tmpfile): Make safer.
48597
48598 2006-07-23  Bruno Haible  <bruno@clisp.org>
48599
48600         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
48601         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
48602         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
48603         gl_linked_remove_at): Use it.
48604
48605 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48606         and Simon Josefsson <jas@extundo.com>
48607
48608         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
48609
48610         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
48611
48612 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48613
48614         * modules/close-stream: New file.
48615         * modules/closeout (Description): Make it clear that it exits
48616         with a diagnostic on error.
48617         (Depends-on): Add close-stream.  Remove fpending, stdbool.
48618         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
48619
48620 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * m4/close-stream.m4: New file.
48623
48624 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48625
48626         * lib/close-stream.c, lib/close-stream.h: New files.
48627
48628 2006-07-22  Bruno Haible  <bruno@clisp.org>
48629
48630         Merge from GNU gettext 0.15.
48631
48632         2006-05-01  Bruno Haible  <bruno@clisp.org>
48633
48634                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
48635
48636         2006-07-22  Bruno Haible  <bruno@clisp.org>
48637
48638                 * modules/javaversion: New file.
48639                 * MODULES.html.sh (Java): Add javaversion.
48640
48641         2006-03-12  Bruno Haible  <bruno@clisp.org>
48642
48643                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
48644
48645         2005-12-04  Bruno Haible  <bruno@clisp.org>
48646
48647                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
48648                 (untested).
48649
48650         2006-06-21  Bruno Haible  <bruno@clisp.org>
48651
48652                 Avoid warnings from recent versions of mcs.
48653                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
48654                 -o, -L, -r any more. Use options documented since mcs-1.0
48655                 instead. Similarly for -g.
48656
48657         2005-12-04  Bruno Haible  <bruno@clisp.org>
48658
48659                 * build-aux/csharpcomp.sh.in: Suffix for resources is
48660                 .resources, not .resource.
48661
48662         2005-07-09  Bruno Haible  <bruno@clisp.org>
48663
48664                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
48665                 add a .dll suffix.
48666                 Reported by Mark Junker <mjscod@gmx.de>.
48667
48668         2006-07-22  Bruno Haible  <bruno@clisp.org>
48669
48670                 * modules/gettext: Upgrade to gettext-0.15.
48671                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
48672                 m4/visibility.m4.
48673                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
48674
48675 2006-07-22  Bruno Haible  <bruno@clisp.org>
48676
48677         Merge from GNU gettext 0.15.
48678
48679         2006-03-25  Bruno Haible  <bruno@clisp.org>
48680
48681                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
48682
48683         2006-07-21  Bruno Haible  <bruno@clisp.org>
48684
48685                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
48686                 "1.1".
48687
48688         2006-05-09  Bruno Haible  <bruno@clisp.org>
48689
48690                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
48691                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
48692                 for the conftestver execution.
48693
48694         2006-05-01  Bruno Haible  <bruno@clisp.org>
48695
48696                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
48697                 optional target-version argument. Verify that the compiler
48698                 groks source of the specified source-version, or add -source
48699                 option as necessary. Verify that the compiler produces
48700                 bytecode in the specified target-version, or add -target and
48701                 -source options as necessary. Make the result of the test
48702                 available as variable CONF_JAVAC. Also log error output in
48703                 config.log.
48704
48705         2006-03-11  Bruno Haible  <bruno@clisp.org>
48706
48707                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
48708
48709         2006-05-09  Bruno Haible  <bruno@clisp.org>
48710
48711                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
48712                 CLASSPATH_SEPARATOR to a semicolon.
48713
48714         2006-03-12  Bruno Haible  <bruno@clisp.org>
48715
48716                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
48717                 available as variable CONF_JAVA, for subsequent autoconf
48718                 tests. Also log error output in config.log.
48719
48720         2006-07-19  Bruno Haible  <bruno@clisp.org>
48721
48722                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
48723                 that getline works on glibc2 systems. Needed to avoid trouble
48724                 in relocatable.c.
48725                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
48726
48727         2005-12-04  Bruno Haible  <bruno@clisp.org>
48728
48729                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
48730                 launcher (untested).
48731
48732         2005-12-04  Bruno Haible  <bruno@clisp.org>
48733
48734                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
48735
48736         2006-07-22  Bruno Haible  <bruno@clisp.org>
48737
48738                 * gettext.m4: Update from GNU gettext-0.15.
48739                 * nls.m4: Likewise.
48740                 * po.m4: Likewise.
48741                 * inttypes-pri.m4: Likewise.
48742                 * inttypes-h.m4: Renamed from inttypes.m4.
48743                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
48744
48745 2006-07-22  Bruno Haible  <bruno@clisp.org>
48746
48747         Merge from GNU gettext 0.15.
48748
48749         2005-07-05  Bruno Haible  <bruno@clisp.org>
48750
48751                 * printf-args.c (printf_fetchargs): Work around broken
48752                 definition of wint_t on mingw.
48753
48754         2005-02-12  Bruno Haible  <bruno@clisp.org>
48755
48756                 * xallocsa.h: Add extern "C" for C++.
48757
48758         2006-05-17  Bruno Haible  <bruno@clisp.org>
48759
48760                 Cygwin portability.
48761                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
48762
48763         2006-04-30  Bruno Haible  <bruno@clisp.org>
48764
48765                 * progreloc.c: Include <mach-o/dyld.h> if available.
48766                 (find_executable): Use _NSGetExecutablePath when possible.
48767
48768         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48769
48770                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
48771                 function.
48772
48773         2005-12-29  Bruno Haible  <bruno@clisp.org>
48774
48775                 * progreloc.c (set_program_name_and_installdir): Fix
48776                 compilation error.
48777
48778         2005-12-04  Bruno Haible  <bruno@clisp.org>
48779
48780                 Cygwin portability.
48781                 * progreloc.c: Include <windows.h> also on Cygwin.
48782                 (find_executable): Add support for Cygwin.
48783                 (set_program_name_and_installdir): Handle also platforms with
48784                 nonempty EXEEXT.
48785
48786         2006-07-11  Bruno Haible  <bruno@clisp.org>
48787
48788                 * javacomp.c: Fix a comment.
48789                 Reported by Jim Meyering.
48790
48791         2006-04-30  Bruno Haible  <bruno@clisp.org>
48792
48793                 * javacomp.h (compile_java_class): Add source_version,
48794                 target_version arguments.
48795                 * javacomp.c: Rewritten to choose only a compiler that
48796                 respects the specified source_version and target_version.
48797
48798         2006-06-27  Bruno Haible  <bruno@clisp.org>
48799
48800                 Assume correct S_ISDIR macro.
48801                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
48802
48803         2006-07-22  Bruno Haible  <bruno@clisp.org>
48804
48805                 * javaversion.h: New file, from GNU gettext.
48806                 * javaversion.c: New file, from GNU gettext.
48807                 * javaversion.java: New file, from GNU gettext.
48808                 * javaversion.class: New file, from GNU gettext.
48809
48810         2006-05-17  Bruno Haible  <bruno@clisp.org>
48811
48812                 Cygwin portability.
48813                 * javaexec.c (execute_java_class): Test for jview program
48814                 also on Cygwin.
48815
48816         2006-04-09  Bruno Haible  <bruno@clisp.org>
48817
48818                 * fatal-signal.c: Don't include string.h.
48819                 (at_fatal_signal): Use a copying loop instead of memcpy.
48820
48821         2005-12-04  Bruno Haible  <bruno@clisp.org>
48822
48823                 * csharpexec.c: Add support for 'clix' launcher (untested).
48824                 (execute_csharp_using_sscli): New function.
48825                 (execute_csharp_program): Call it.
48826
48827         2006-06-21  Bruno Haible  <bruno@clisp.org>
48828
48829                 Avoid warnings from recent versions of mcs.
48830                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
48831                 -o, -L, -r any more. Use options documented since mcs-1.0
48832                 instead. Similarly for -g.
48833
48834         2005-07-09  Bruno Haible  <bruno@clisp.org>
48835
48836                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
48837                 add a .dll suffix.
48838                 Reported by Mark Junker <mjscod@gmx.de>.
48839
48840         2006-06-17  Bruno Haible  <bruno@clisp.org>
48841
48842                 * config.charset: Update for NetBSD 3.0.
48843
48844         2006-05-17  Bruno Haible  <bruno@clisp.org>
48845
48846                 Cygwin portability.
48847                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
48848
48849         2006-05-16  Bruno Haible  <bruno@clisp.org>
48850
48851                 * localcharset.c [CYGWIN]: Include <windows.h>.
48852                 (get_charset_aliases): For Cygwin, return the same CPxxx
48853                 aliases list as under WIN32.
48854                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
48855                 the environment variables. Fall back to GetACP().
48856
48857         2006-04-05  Bruno Haible  <bruno@clisp.org>
48858
48859                 * config.charset: Update Juan Manuel Guerrero's address.
48860
48861         2005-02-12  Bruno Haible  <bruno@clisp.org>
48862
48863                 * allocsa.h: Add extern "C" for C++.
48864
48865         2005-02-10  Bruno Haible  <bruno@clisp.org>
48866
48867                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
48868                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
48869
48870         2006-07-22  Bruno Haible  <bruno@clisp.org>
48871
48872                 * gettext.h: Update to GNU gettext-0.15.
48873
48874 2006-07-22  Bruno Haible  <bruno@clisp.org>
48875
48876         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
48877         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
48878         lib-prefix.m4, longdouble.m4, ssize_t.m4.
48879
48880 2006-07-21  Eric Blake  <ebb9@byu.net>
48881
48882         * modules/stdlib-safer: New file.
48883         * MODULES.html.sh (File stream based Input/Output): Add
48884         stdlib-safer.
48885
48886 2006-07-21  Eric Blake  <ebb9@byu.net>
48887
48888         * lib/stdlib-safer.h: New file from coreutils, required by
48889         stdlib--.h.
48890
48891 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
48892
48893         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
48894
48895 2006-07-20  Bruno Haible  <bruno@clisp.org>
48896
48897         * gnulib-tool: Recognize new option --assume-autoconf.
48898         (autoconf_minversion): New variable.
48899         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
48900
48901 2006-07-20  Bruno Haible  <bruno@clisp.org>
48902
48903         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
48904
48905 2006-07-19  Derek R. Price  <derek@ximbiot.com>
48906
48907         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
48908         Reindent and repaginate.
48909
48910 2006-07-19  Derek Price  <derek@ximbiot.com>
48911
48912         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
48913         Correct grammar.
48914
48915 2006-07-17  Bruno Haible  <bruno@clisp.org>
48916
48917         * modules/list: New file.
48918         * modules/array-list: New file.
48919         * modules/carray-list, modules/carray-list-tests: New files.
48920         * modules/linked-list, modules/linked-list-tests: New files.
48921         * modules/avltree-list, modules/avltree-list-tests: New files.
48922         * modules/rbtree-list, modules/rbtree-list-tests: New files.
48923         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
48924         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
48925         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
48926         * modules/oset: New file.
48927         * modules/array-oset: New file.
48928         * modules/avltree-oset, modules/avltree-oset-tests: New files.
48929         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
48930         * tests/test-carray_list.c: New file.
48931         * tests/test-linked_list.c: New file.
48932         * tests/test-avltree_list.c: New file.
48933         * tests/test-rbtree_list.c: New file.
48934         * tests/test-linkedhash_list.c: New file.
48935         * tests/test-avltreehash_list.c: New file.
48936         * tests/test-rbtreehash_list.c: New file.
48937         * tests/test-avltree_oset.c: New file.
48938         * tests/test-rbtree_oset.c: New file.
48939         * MODULES.html.sh (Container data structures): New section.
48940
48941 2006-07-17  Bruno Haible  <bruno@clisp.org>
48942
48943         * m4/gl_list.m4: New file.
48944
48945 2006-07-17  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/gl_list.h: New file.
48948         * lib/gl_list.c: New file.
48949         * lib/gl_array_list.h: New file.
48950         * lib/gl_array_list.c: New file.
48951         * lib/gl_carray_list.h: New file.
48952         * lib/gl_carray_list.c: New file.
48953         * lib/gl_linked_list.h: New file.
48954         * lib/gl_linked_list.c: New file.
48955         * lib/gl_anylinked_list1.h: New file.
48956         * lib/gl_anylinked_list2.h: New file.
48957         * lib/gl_avltree_list.h: New file.
48958         * lib/gl_avltree_list.c: New file.
48959         * lib/gl_anyavltree_list1.h: New file.
48960         * lib/gl_anyavltree_list2.h: New file.
48961         * lib/gl_rbtree_list.h: New file.
48962         * lib/gl_rbtree_list.c: New file.
48963         * lib/gl_anyrbtree_list1.h: New file.
48964         * lib/gl_anyrbtree_list2.h: New file.
48965         * lib/gl_anytree_list1.h: New file.
48966         * lib/gl_anytree_list2.h: New file.
48967         * lib/gl_linkedhash_list.h: New file.
48968         * lib/gl_linkedhash_list.c: New file.
48969         * lib/gl_anyhash_list1.h: New file.
48970         * lib/gl_anyhash_list2.h: New file.
48971         * lib/gl_avltreehash_list.h: New file.
48972         * lib/gl_avltreehash_list.c: New file.
48973         * lib/gl_rbtreehash_list.h: New file.
48974         * lib/gl_rbtreehash_list.c: New file.
48975         * lib/gl_anytreehash_list1.h: New file.
48976         * lib/gl_anytreehash_list2.h: New file.
48977
48978         * lib/gl_oset.h: New file.
48979         * lib/gl_oset.c: New file.
48980         * lib/gl_array_oset.h: New file.
48981         * lib/gl_array_oset.c: New file.
48982         * lib/gl_avltree_oset.h: New file.
48983         * lib/gl_avltree_oset.c: New file.
48984         * lib/gl_rbtree_oset.h: New file.
48985         * lib/gl_rbtree_oset.c: New file.
48986         * lib/gl_anytree_oset.h: New file.
48987
48988 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48989
48990         * m4/mkancesdirs.m4: New file.
48991         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
48992         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
48993         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
48994         it.
48995
48996 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
48997
48998         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
48999         * lib/mkancesdirs.h: New files.
49000         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49001         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49002         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49003         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49004         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49005         callers changed.  Revamp internals significantly, by not
49006         attempting to create directories that are temporarily more
49007         permissive than the final results.  Do not attempt to use
49008         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49009         This removes some race conditions, fixes some bugs, and simplifies
49010         things.  Use new dirchownmod function to do owner and mode changes.
49011         * lib/mkdir-p.h: Likewise.
49012         * lib/modechange.c (octal_to_mode): New function.
49013         (struct mode_change): New member mentioned.
49014         (make_node_op_equals): New arg mentioned.  All callers changed.
49015         (mode_compile): Keep track of which mode bits the user has explicitly
49016         mentioned.
49017         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49018         New arg PMODE_BITS, to keep track of which mode bits the user
49019         mentioned; it treats S_ISUID and S_ISGID speciall.
49020         All callers changed.
49021         * lib/modechange.h: Likewise.
49022
49023 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49024
49025         * MODULES.html.sh: Add mkancestors.
49026         * modules/mkancesdirs: New module.
49027         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49028         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49029         The chdir-safer and afs files are now orphans; I'll remove them
49030         unless someone speaks up.
49031         Add lib/dirchownmod.c, lib/dirchownmod.h.
49032         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49033         Add lchown, mkancesdirs.
49034         (Maintainer): Add self.
49035
49036 2006-07-15  Karl Berry  <karl@gnu.org>
49037
49038         * gnulib-tool: help message wording/arrangement.
49039
49040 2006-07-14  Simon Josefsson  <jas@extundo.com>
49041
49042         * doc/gnulib.texi (Libtool and Windows): New section.
49043
49044 2006-07-12  Simon Josefsson  <jas@extundo.com>
49045
49046         * modules/gendocs (License): Fix license, approved by Karl.
49047
49048 2006-07-12  Eric Blake  <ebb9@byu.net>
49049
49050         * MODULES.html.sh: Add gendocs.
49051
49052 2006-07-11  Eric Blake  <ebb9@byu.net>
49053
49054         * modules/fdl: New module, to install doc/fdl.texi.
49055         * MODULES.html.sh: Add new section for documentation modules.
49056         * gnulib-tool: Avoid space-tab.
49057         (--doc-base): New option, to manage files from doc.
49058
49059 2006-07-11  Eric Blake  <ebb9@byu.net>
49060
49061         * m4/absolute-header.m4: Fix comments to match recent change.
49062
49063 2006-07-11  Eric Blake  <ebb9@byu.net>
49064
49065         * gnulib-tool: List --doc-base before --tests-base.
49066
49067 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49068
49069         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49070
49071 2006-07-11  Bruno Haible  <bruno@clisp.org>
49072
49073         * README: Mention where to put documentation.
49074
49075 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49076
49077         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49078
49079 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49080
49081         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49082         to stdint.m4.
49083
49084 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49085
49086         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49087         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49088         "no/such/file/stdint.h" when there is no such file, so that
49089         the resulting C code can be parsed by dodgy compilers.
49090         Problems reported by Bob Proulx.
49091
49092 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49093
49094         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49095         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49096         macros into the GNU _D_EXACT_NAMLEN.
49097         * lib/savedir.c:  Likewise.
49098         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49099
49100 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49101         and Paul Eggert  <eggert@cs.ucla.edu>
49102
49103         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49104         * m4/savedir.m4:
49105         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49106         macros into the GNU _D_EXACT_NAMLEN.
49107
49108 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49109
49110         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49111         around the absolute name, to work around a problem with the HP-UX
49112         11.23 native C compiler, reported by Bob Proulx.
49113
49114 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49115
49116         * doc/maintain.texi, make-stds.texi: Sync from
49117         <http://savannah.gnu.org/projects/gnustandards>.
49118
49119 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49120
49121         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49122
49123 2006-07-09  Jim Meyering  <jim@meyering.net>
49124
49125         * m4/glob.m4: Remove a doubled word in a comment.
49126
49127 2006-07-09  Jim Meyering  <jim@meyering.net>
49128
49129         * lib/argp-pv.c: Remove a doubled word in a comment.
49130         * lib/check-version.c (check_version): Likewise.
49131         * lib/javacomp.c (compile_java_class): Likewise.
49132
49133 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49134
49135         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49136         for the benefit of people using Autoconf 2.60.  If you want to
49137         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49138         (or m4/onceonly.m4, if pre-2.57) manually.
49139
49140 2006-07-08  Jim Meyering  <jim@meyering.net>
49141
49142         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49143         comment.
49144         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49145         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49146         comment.
49147
49148 2006-07-08  Jim Meyering  <jim@meyering.net>
49149
49150         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49151
49152 2006-07-07  Simon Josefsson  <jas@extundo.com>
49153
49154         * tests/test-crc.c: Change expected crc value, the test vector
49155         were probably computed using the old broken crc.c?
49156
49157 2006-07-06  Simon Josefsson  <jas@extundo.com>
49158
49159         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49160         now the canonical place for the M4 file).
49161
49162         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49163         from the sys_socket dependency now.
49164
49165         * modules/inet_pton (Files): Ditto.
49166
49167         * modules/inet_ntop (Files): Ditto.
49168
49169 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49170
49171         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49172         not gl_PREREQ_GETUSERSHELL.
49173
49174 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49175
49176         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49177         with only one argument, for Autoconf 2.60.
49178         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49179         expand to nothing, so add a shell command to avoid syntax error.
49180         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49181
49182 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49183
49184         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49185
49186 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49187
49188         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49189         no longer needed.  Check for isblank decl.
49190         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49191         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49192         of existence.
49193
49194 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49195
49196         * lib/getloadavg.c: Use __VMS, not VMS.
49197         * lib/getopt.c: Likewise.
49198         * lib/getpagesize.h: Likewise.
49199         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49200         and probably does not work.
49201
49202 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49203
49204         * lib/.cppi-disable: Add wcwidth.
49205         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49206         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49207         (ISGRAPH): Remove.  All uses changed to isgraph.
49208         (FOLD) [!defined _LIBC]: Remove special case.
49209         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49210         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49211         HAVE_ISBLANK.
49212         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49213         case.
49214
49215 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49216
49217         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49218         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49219         brackets.  Other minor changes to suppress some compiler
49220         warnings.
49221
49222 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49223         and Paul Eggert  <eggert@cs.ucla.edu>
49224
49225         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49226         of invoking obsolescent AC_HEADER_DIRENT macro.
49227         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49228         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49229         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49231         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49232         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49233         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49234         * m4/readdir.m4: Remove; no longer needed.
49235
49236 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49237         and Paul Eggert  <eggert@cs.ucla.edu>
49238
49239         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49240         Don't worry about this obsolete case any more.
49241         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49242         directories.
49243         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49244         worry about this obsolete case any more.
49245         * lib/fts.c: Likewise.
49246         * lib/getcwd.c: Likewise.
49247         * lib/glob.h: Likewise.
49248         * lib/savedir.c: Likewise.
49249
49250 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49251
49252         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49253         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49254         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49255         needed.
49256         All uses removed.
49257         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49258         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49259         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49260         needed.
49261         * m4/getdate.m4 (gl_GETDATE): Likewise.
49262         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49263         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49264         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49265         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49266         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49268         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49269         needed.
49270
49271 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49272
49273         * lib/memcasecmp.c: Include <limits.h>.
49274         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49275         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49276         Don't assume isdigit succeeds only on '0' through '9'.
49277
49278 2006-07-05  Eric Blake  <ebb9@byu.net>
49279
49280         * modules/getaddrinfo (Depends-on): Add snprintf.
49281
49282 2006-07-05  Eric Blake  <ebb9@byu.net>
49283
49284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49285         to avoid 'header present but could not be compiled' on cygwin.
49286
49287 2006-07-05  Eric Blake  <ebb9@byu.net>
49288
49289         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49290         missing from netdb.h.
49291         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49292
49293 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49294
49295         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49296         no longer needed.
49297         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49298         * m4/getdate.m4 (gl_GETDATE): Likewise.
49299         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49300         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49301         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49302         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49303         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49304
49305 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49306
49307         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49308         All uses of is_space replaced by isspace.
49309         * lib/exit.h: Don't talk about STDC_HEADERS.
49310         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49311         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49312         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49313         replaced by isprint etc.
49314         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49315         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49316         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49317         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49318         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49319         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49320
49321 2006-07-05  Bruno Haible  <bruno@clisp.org>
49322
49323         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49324         the function exists, before testing against AIX.
49325         Reported by Martin Lambers <marlam@marlam.de>.
49326
49327 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49328
49329         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49330         From Mark D. Baushke.
49331
49332 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49335         to the absolute name, not just one, to bypass Sun C 5.8's
49336         "warning: #include of /usr/include/... may be non-portable".
49337
49338 2006-07-04  Eric Blake  <ebb9@byu.net>
49339
49340         * modules/dirname-tests: New test module.
49341         * tests/test-dirname.c: New file, replacing dirname.c
49342         TEST_DIRNAME section that was recently deleted.
49343
49344 2006-07-04  Bruno Haible  <bruno@clisp.org>
49345
49346         Assume ANSI C header files and <ctype.h> functions.
49347         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49348         (mbsnwidth): Use isprint, iscntrl instead.
49349
49350 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49351
49352         Merge from coreutils.
49353         * MODULES.html.sh: Add xstrtold.
49354         * modules/xstrtold: New file.
49355         * modules/cycle-check (Files): Add lib/same-inode.h.
49356         * modules/dirname (Files): Add m4/double-slash-root.m4.
49357         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49358         * modules/mkdir-p (Files): Add lib/same-inode.h.
49359         * modules/same (Files): Add lib/same-inode.h.
49360
49361 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49364         This is to keep the terminology clean; POSIX talks about
49365         "absolute pathnames", not "full pathnames", but the GNU
49366         Coding Standards say to use "path" for something else;
49367         so use "absolute" to keep both sides happy.
49368         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49369         Set gl_absolute_header, not gl_full_header_path.
49370         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49371         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49372         All uses changed.
49373
49374         Merge from coreutils.
49375
49376         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49377
49378         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49379         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49380         want to require the building of c-strtod.o.
49381         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49382         needs -lm directly.
49383         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49384
49385         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49386
49387         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49388         --as-needed option if available.  Problem reported by Albert Chin in
49389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49390         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49391         cc merely issues a bunch of annoying warnings for --as-needed
49392         (this problem was reported by Bob Proulx).  Also, try linking with
49393         -lm to detect a bug in binutils 2.16 (this problem was reported
49394         by Ralf Wildenhues).
49395
49396         2006-06-18  Jim Meyering  <jim@meyering.net>
49397
49398         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49399         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49400         macro.
49401         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49402         also check for glibc-2.4's abort-inducing bug.
49403
49404         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49405         Low-probability clean-up should be to use rmdir to get rid of
49406         the just-created directory, not unlink.
49407
49408         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49409         configure fail, and request a bug report to inform us about it.
49410         Add a comment that, barring reports to the contrary, in 2007 we'll
49411         assume ftruncate is universally available.
49412
49413         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49414
49415         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49416
49417         2006-03-12  Jim Meyering  <jim@meyering.net>
49418
49419         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49420         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49421         * m4/same.m4 (gl_SAME): Likewise.
49422         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49423
49424         2006-03-11  Eric Blake  <ebb9@byu.net>
49425
49426         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49427         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49428         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49429         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49430
49431 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49432
49433         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49434         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49435         reported by Mark D. Baushke, one in
49436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49437
49438         Merge from coreutils.
49439
49440         * lib/.cppi-disable: Add stdint_.h.
49441         * lib/.cvsignore: Add stdint.h.
49442
49443         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49444
49445         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49446         both double and long double versions.
49447         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49448         * lib/xstrtold.c: New file.
49449         * lib/xstrtod.h (xstrtold): New decl.
49450
49451         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49452
49453         * lib/filemode.c (setst): Remove.
49454         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49455         (arguably) clearer, and the generated code is a bit smaller on my
49456         Debian GNU/Linux stable x86 host.
49457
49458         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49459
49460         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49461         Assume that filemode.h includes sys/types.h and sys/stat.h.
49462         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49463         (ftypelet): Reorder to put common cases first, for efficiency.
49464         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49465         to do 'M'.
49466         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49467         of 10, for compatibility with FreeBSD.  All callers changed.
49468         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49469         types that can't be deduced solely from st_mode.  First arg is now a
49470         const pointer.
49471         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49472         (strmode): Renamed from mode_string.
49473         (filemodestring): New decl.
49474         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49475         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49476         needed.
49477         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49478
49479         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49480
49481         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49482         fsusage.h now does that.  Include fsusage.h first, to test interface.
49483         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49484         at most one method (the old code could have generated decls that
49485         didn't conform to C89, not that this was ever exercised).
49486         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49487
49488         2006-03-19  Jim Meyering  <jim@meyering.net>
49489
49490         Work even in a chroot where d_ino values for entries in "/"
49491         don't match the stat.st_ino values for the same names.
49492         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49493         number, iterate through all entries again, using lstat instead.
49494         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49495         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49496
49497         * lib/getcwd.c (__getcwd): Clarify a comment.
49498         Use memcpy in place of a call to strcpy.
49499
49500         2006-03-12  Jim Meyering  <jim@meyering.net>
49501
49502         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49503         matches that of the current directory (which we're about to chdir ".."
49504         out of), then save the dev-ino of the parent, instead.
49505
49506         * lib/same-inode.h (SAME_INODE): New file/macro.
49507         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49508         Include "same-inode.h", instead.
49509         * lib/same.c: Likewise.
49510         * lib/cycle-check.h: Include "same-inode.h".
49511         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49512         * lib/cycle-check.c (SAME_INODE): Remove definition.
49513         * lib/root-dev-ino.h: Include "same-inode.h".
49514
49515         2006-03-11  Eric Blake  <ebb9@byu.net>
49516
49517         * lib/same.c (same_name): s/base_name/last_component/
49518         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49519         * lib/filenamecat.c (file_name_concat): Likewise.
49520
49521         2006-03-11  Eric Blake  <ebb9@byu.net>,
49522                     Paul Eggert  <eggert@cs.ucla.edu>
49523
49524         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49525         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49526         drive prefix.
49527         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
49528         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
49529         (last_component): New method.
49530         * lib/dirname.c (dir_len): Determine when drive letters need a
49531         subsequent slash.  Preserve // when it is special.
49532         (dir_name): Don't append dot when drive letter is absolute.
49533         [TEST_DIRNAME]: Move into a full-blown gnulib test.
49534         * lib/basename.c (base_name): New semantics - malloc the result.
49535         Preserve // when it is special.  Preserve relative files that look
49536         like drive letters.
49537         (base_len): Preserve // when it is special.
49538         (last_component): New method, similar to old base_name semantics.
49539         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
49540         base_name.  Strip redundant slashes from ///.
49541
49542 2006-07-03  Jim Meyering  <jim@meyering.net>
49543
49544         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
49545         macro is used before the first cycle_check call.
49546
49547 2006-07-03  Eric Blake  <ebb9@byu.net>
49548
49549         * modules/dirname (Depends-on): Add xstrndup.
49550
49551 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49552
49553         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
49554         test cases, so that config.log is a bit easier to follow.
49555
49556 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49557
49558         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
49559         both are 64 bits, since this seems to be the tradition, and this
49560         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
49561         we ever run into a host that prefers long long to long in this
49562         case, we'll need another configure-time test.  Problem reported by
49563         Jim Meyering.
49564
49565 2006-07-02  Eric Blake  <ebb9@byu.net>
49566
49567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
49568
49569 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49570
49571         * modules/inttypes (Depends-on): No longer depends on stdint.
49572         * modules/stdint (Description): Say more about assumptions.
49573         Say that the fast types might differ.  Say macros are used.
49574         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
49575         (Makefile.am): Revise list of substituted symbols to match
49576         new stdint.m4.
49577         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
49578         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
49579         * tests/test-stdint.c (verify_same_types)
49580         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
49581         the code conforms to C99/C89.
49582         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
49583         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
49584
49585 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49586
49587         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
49588         but fix a bug, by requiring at least 64 bits.
49589         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49590         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
49591         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
49592         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
49593
49594         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
49595         changes.  Make 2.59 a prerequisite.  Check and substitute for
49596         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
49597         inttypes.h.  Do not use special include files; just use the
49598         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
49599         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
49600         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
49601         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
49602         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
49603         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
49604         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
49605         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
49606         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
49607         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
49608         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
49609         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
49610         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
49611         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
49612         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
49613         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
49614         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
49615         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
49616         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
49617         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
49618         WINT_MAX.  Check for C99 conformance more strictly, by detecting
49619         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
49620         not check for things that C99 does not require, e.g., int8_t.  If
49621         a test isn't needed unless <stdint.h> isn't working, and is
49622         unlikely to be needed for any other reason, then don't do it
49623         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
49624         size_t, since we assume C89 freestanding at least.  Do not check
49625         for sig_atomic_t, wchar_t, or wint_t, since the code now does
49626         the right thing even if the types are not defined.  Instead use:
49627         (gl_STDINT_TYPE_PROPERTIES): New macro.
49628         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
49629         testing whether <sys/types.h> clashes, as Autoconf does this for
49630         us now.  All uses removed.
49631         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
49632         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
49633         (gl_CHECK_TYPE_SAME):
49634         Remove; no longer needed.
49635         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
49636         exists, since we'll return 0 anyway in that case.
49637         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
49638
49639 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
49642         possible collision with system files.
49643         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
49644         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
49645         WCHAR_MIN and WCHAR_MAX in this case.
49646         (<stddef.h>): Do not include; no longer needed.
49647         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
49648         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
49649         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
49650         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
49651         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
49652         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
49653         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
49654         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
49655         !defined(__c99))]: Include in this case too, since it's harmless
49656         now.
49657         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
49658         dangerous to do so.
49659         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
49660         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
49661         (_STDINT_MIN, _STDINT_MAX): New macros.
49662         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
49663         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
49664         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
49665         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
49666         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
49667         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
49668         macros, not typedefs; this simplifies things quite a bit.
49669         Use long int for all types narrower than int64_t.
49670         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
49671         Define in terms of long long int or int64_t or long int,
49672         not int64_t or int32_t.  This saves some compile-time testing.
49673         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
49674         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
49675         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
49676         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
49677         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
49678         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
49679         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
49680         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
49681         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
49682         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
49683         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49684         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49685         undef any previous version and define our own version, for
49686         simplicity and consistency with the new macros for types.
49687         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
49688         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
49689         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
49690         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
49691         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
49692         @WINT_T_SUFFIX@ to keep things simple here.
49693         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
49694         Simplify by assuming typical 8/16/32/64 host, since we're
49695         already doing that elsewhere anyway.
49696         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
49697         and assume long long int is 64 bits if available.  This
49698         speeds up 'configure'.
49699
49700 2006-07-01  Eric Blake  <ebb9@byu.net>
49701
49702         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
49703         Reported by Andreas Buening.
49704
49705 2006-07-01  Eric Blake  <ebb9@byu.net>
49706
49707         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
49708
49709 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49710
49711         * lib/getaddrinfo.c: fixed typo
49712
49713 2006-06-29  Jim Meyering  <jim@meyering.net>
49714
49715         * modules/strftime (Maintainer): Add my name, since with the
49716         FPRINTFTIME changes strftime.c has forked from glibc.
49717
49718 2006-06-29  Eric Blake  <ebb9@byu.net>
49719
49720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
49721
49722 2006-06-29  Eric Blake  <ebb9@byu.net>
49723
49724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
49725
49726 2006-06-29  Eric Blake  <ebb9@byu.net>
49727
49728         * lib/stat_.h: New file.
49729
49730 2006-06-29  Eric Blake  <ebb9@byu.net>
49731
49732         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
49733         unused static function.
49734
49735 2006-06-29  Eric Blake  <ebb9@byu.net>
49736
49737         * doc/functions.texi (Function Portability): Document missing lstat
49738         on mingw.
49739
49740 2006-06-29  Eric Blake  <ebb9@byu.net>
49741
49742         * MODULES.html.sh: Add sys_stat.
49743         * modules/sys_stat: New module.
49744         * modules/mkstemp (Depends-on): Add sys_stat.
49745
49746 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49747
49748         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
49749
49750 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49751
49752         * m4/c-bs-a.m4: Removed.
49753
49754 2006-06-29  Derek R. Price  <derek@ximbiot.com>
49755
49756         * lib/strftime.c: Assume strftime() exists.
49757
49758 2006-06-29  Derek Price  <derek@ximbiot.com>
49759
49760         * modules/c-bs-a: Removed - \a is C89.
49761         * MODULES.html.sh: Remove c-bs-a.
49762
49763 2006-06-29  Bruno Haible  <bruno@clisp.org>
49764
49765         * modules/wcwidth (License): Change to LGPL.
49766
49767 2006-06-28  Simon Josefsson  <jas@extundo.com>
49768
49769         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
49770         on _WIN32.
49771
49772         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
49773         getnameinfo.
49774
49775 2006-06-28  Simon Josefsson  <jas@extundo.com>
49776
49777         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
49778
49779 2006-06-28  Simon Josefsson  <jas@extundo.com>
49780
49781         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
49782         functions there.  It will succeed on Windows XP, but on Windows
49783         2000 and (presumably) earlier, it will fail, and use the internal
49784         re-implementation.
49785         (use_win32_p): New function.
49786         (getaddrinfo): Use strtoul on servname, to support numeric ports.
49787         Support AI_NUMERICSERV to disable getservbyname.
49788         (getnameinfo): New function, only supports
49789         NI_NUMERICHOST|NI_NUMERICSERV for now.
49790
49791         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
49792         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
49793         getnameinfo.
49794
49795 2006-06-28  Eric Blake  <ebb9@byu.net>
49796
49797         * modules/wcwidth: New file.
49798         * modules/mbchar (Depends-on): Add wcwidth.
49799         * modules/mbswidth (Depends-on): Add wcwidth.
49800         * MODULES.html.sh: Add wcwidth.
49801
49802 2006-06-28  Eric Blake  <ebb9@byu.net>
49803
49804         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
49805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
49806
49807 2006-06-28  Eric Blake  <ebb9@byu.net>
49808
49809         * lib/xvasprintf.h: Fix comments.
49810
49811 2006-06-28  Eric Blake  <ebb9@byu.net>
49812
49813         * lib/mbchar.h (wcwidth): Include wcwidth.h.
49814         * lib/mbswidth.c (wcwidth): Move from here...
49815         * lib/wcwidth.h: ...to this new file.
49816
49817 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49818
49819         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
49820
49821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
49822         it's obsolete.
49823         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
49824
49825 2006-06-28  Derek R. Price  <derek@ximbiot.com>
49826
49827         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
49828         Autoconf 2.60 says this stuff was obsolete.
49829
49830 2006-06-28  Bruno Haible  <bruno@clisp.org>
49831
49832         * modules/wcwidth (Files): Add m4/wchar_t.m4.
49833
49834 2006-06-28  Bruno Haible  <bruno@clisp.org>
49835
49836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
49837         gt_TYPE_WCHAR_T.
49838
49839 2006-06-28  Bruno Haible  <bruno@clisp.org>
49840
49841         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
49842         declaration for wcwidth.
49843         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
49844
49845 2006-06-28  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/mkdtemp.c [MINGW]: Include <io.h>.
49848         (mkdir): Define using _mkdir.
49849
49850 2006-06-28  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/getaddrinfo.h: Fix POSIX URL.
49853         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
49854         _WIN32.
49855         (use_win32_p): Make static.
49856         (getaddrinfo): Reject service name if it is empty or does not consist
49857         solely of decimal digits, or if its value is > 65535.
49858         (getnameinfo): Remove useless casts.
49859
49860 2006-06-27  Simon Josefsson  <jas@extundo.com>
49861
49862         * modules/sys_select: New file, suggested by Bruno Haible, Paul
49863         Eggert and Martin Lambers.
49864
49865 2006-06-27  Simon Josefsson  <jas@extundo.com>
49866
49867         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
49868         Eggert and Martin Lambers.
49869
49870 2006-06-27  Bruno Haible  <bruno@clisp.org>
49871
49872         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
49873         result to 0, not to empty.
49874         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
49875
49876 2006-06-27  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
49879
49880 2006-06-26  Simon Josefsson  <jas@extundo.com>
49881
49882         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
49883         present.
49884
49885 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
49886
49887         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
49888         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
49889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
49890
49891 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
49892
49893         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
49894
49895 2006-06-26  Bruno Haible  <bruno@clisp.org>
49896
49897         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
49898
49899 2006-06-26  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
49902
49903 2006-06-26  Bruno Haible  <bruno@clisp.org>
49904
49905         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
49906         SGI C compiler in pre-C99 mode.
49907         Suggested by Mark D. Baushke and Larry Jones.
49908
49909 2006-06-26  Bruno Haible  <bruno@clisp.org>
49910
49911         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
49912         WCHAR_MAX.
49913         Reported by Mark D. Baushke and Larry Jones.
49914
49915 2006-06-26  Bruno Haible  <bruno@clisp.org>
49916
49917         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
49918         in pre-C99 mode.
49919         Suggested by Mark D. Baushke and Larry Jones.
49920
49921 2006-06-23  Simon Josefsson  <jas@extundo.com>
49922             Bruno Haible  <bruno@clisp.org>
49923
49924         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
49925         Emit mostlyclean-local rule.
49926         (func_emit_tests_Makefile_am): Likewise.
49927         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
49928
49929 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
49930
49931         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
49932
49933 2006-06-23  Bruno Haible  <bruno@clisp.org>
49934
49935         * tests/test-stdint.c: Update to match ISO C 99 Technical
49936         Corrigendum 1.
49937
49938 2006-06-23  Bruno Haible  <bruno@clisp.org>
49939
49940         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
49941
49942 2006-06-23  Bruno Haible  <bruno@clisp.org>
49943
49944         * lib/stdint_.h: Treat IRIX like OpenBSD.
49945
49946 2006-06-23  Bruno Haible  <bruno@clisp.org>
49947
49948         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
49949         ISO C 99 Technical Corrigendum 1.
49950
49951 2006-06-22  Simon Josefsson  <jas@extundo.com>
49952
49953         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
49954         MinGW.
49955
49956 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49957
49958         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
49959         needed.  Some compiler complained about some of them.  Problem reported
49960         by Larry Jones in
49961         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
49962
49963 2006-06-21  Simon Josefsson  <jas@extundo.com>
49964
49965         * tests/test-getaddrinfo.c: New file.
49966
49967         * modules/getaddrinfo-tests: New file.
49968
49969         * MODULES.html.sh: Add inet_pton.
49970
49971         * modules/inet_pton: New file.
49972
49973 2006-06-21  Simon Josefsson  <jas@extundo.com>
49974
49975         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
49976         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
49977         of using the (limited) gnulib implementation on Windows XP.
49978
49979         * m4/inet_pton.m4: New file.
49980
49981 2006-06-21  Simon Josefsson  <jas@extundo.com>
49982
49983         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
49984         variable.
49985
49986         * lib/socket_.h: Don't define WINVER.
49987
49988         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
49989         slightly modified to work in gnulib.
49990
49991 2006-06-21  Simon Josefsson  <jas@extundo.com>
49992
49993         * doc/gnulib.texi (Windows sockets): Add.
49994
49995 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * lib/read-file.c (fread_file): Start with buffer allocation of
49998         0 bytes rather than 1 byte; this simplifies the code.
49999         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50000         code to free buffer and save/restore errno.
50001         (internal_read_file): Remove unused local.
50002
50003 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50004
50005         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50006         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50007         Problem reported by Denis Excoffier in
50008         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50009
50010 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50011
50012         * modules/sys_socket, modules/socklen: Include sys/types since
50013         FreeBSD 4.x's sys/socket.h needs it.
50014
50015 2006-06-19  Simon Josefsson  <jas@extundo.com>
50016
50017         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50018
50019 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50020
50021         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50022
50023 2006-06-19  Bruno Haible  <bruno@clisp.org>
50024
50025         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50026         and FULL_PATH_INTTYPES_H in angle brackets.
50027         Reported by Mark D. Baushke <mdb@gnu.org>.
50028
50029 2006-06-17  Eric Blake  <ebb9@byu.net>
50030
50031         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50032         errno.
50033
50034 2006-06-17  Bruno Haible  <bruno@clisp.org>
50035
50036         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50037         <sys/inttypes.h>.
50038
50039 2006-06-17  Bruno Haible  <bruno@clisp.org>
50040
50041         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50042         whether errno is declared. Assume <errno.h> declares errno.
50043
50044 2006-06-17  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50047
50048 2006-06-17  Bruno Haible  <bruno@clisp.org>
50049
50050         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50051         problem on Solaris 2.5.1.
50052
50053 2006-06-16  Eric Blake  <ebb9@byu.net>
50054
50055         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50056         * lib/unicodeio.c [!defined errno]: Likewise.
50057         * lib/strtol.c [!defined errno]: Likewise.
50058         * lib/strtod.c [!defined errno]: Likewise.
50059
50060 2006-06-15  Eric Blake  <ebb9@byu.net>
50061
50062         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50063
50064 2006-06-15  Eric Blake  <ebb9@byu.net>
50065
50066         * config/srclist.txt (ssize_t.m4): Lose sync.
50067
50068 2006-06-15  Bruno Haible  <bruno@clisp.org>
50069
50070         * modules/stdint (Files): Include m4/full-header-path.m4,
50071         m4/size_max.m4, m4/wchar_t.m4.
50072         (Makefile.am): Many more substitutions.
50073         * modules/stdint-tests: New file.
50074         * tests/test-stdint.c: New file.
50075
50076 2006-06-15  Bruno Haible  <bruno@clisp.org>
50077
50078         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50079         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50080         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50081         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50082         gl_CHECK_TYPE_SAME): New macros.
50083
50084 2006-06-15  Bruno Haible  <bruno@clisp.org>
50085
50086         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50087
50088 2006-06-15  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/stdint_.h: Rewritten to be fully auto-configured.
50091         Fixes bug on HP-UX/IA64.
50092
50093 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50094
50095         * lib/getdate.y (__attribute__): Don't define if already defined.
50096         Problem reported by Larry Jones.
50097         * lib/utimens.c (__attribute__): Likewise.
50098
50099 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50102         reported by Andreas Schwab.
50103
50104 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50105             Bruno Haible  <bruno@clisp.org>
50106
50107         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50108         check for the declaration of strnlen and a run test that exposes the
50109         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50110         rpl_strndup.
50111
50112 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50113             Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50116
50117 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50118
50119         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50120         compile test, for Tru64 4.0D.
50121
50122 2006-05-28  Karl Berry  <karl@gnu.org>
50123
50124         * config/srclist.txt (printf-args.c): lose sync.
50125
50126 2006-05-26  Martin Lambers  <marlam@marlam.de>
50127
50128         * lib/getpass.c: Updates the test for the native W32 API, and adds
50129         missing includes, thus fixing compilation warnings.
50130
50131 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50132
50133         * lib/exclude.c (exclude_fnmatch): New function.
50134         (excluded_file_name): Call exclude_fnmatch.
50135         * lib/exclude.h (excluded_file_name): New prototype
50136
50137 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50138
50139         * lib/tempname.c (small_open, large_open): New macros.
50140         (__open, __open64) [!_LIBC]: Remove.
50141         (__gen_tempname): Use small_open and large_open instead of __open
50142         and __open64.  This fixes a portability bug on HP-UX 11.11i
50143         reported by Simon Wing-Tang in
50144         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50145
50146 2006-05-24  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50149         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50150         Reported by Thorsten Maerz <torte@netztorte.de> via
50151         Aaron Stone <aaron@serendipity.cx>.
50152
50153 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50156         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50157         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50158         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50159         not really conditional on the cache.
50160         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50161
50162 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50163
50164         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50165         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50166         (my_usleep): Don't mishandle maximum value.
50167
50168 2006-05-19  Jim Meyering  <jim@meyering.net>
50169
50170         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50171
50172 2006-05-17  Bruno Haible  <bruno@clisp.org>
50173
50174         Cygwin portability.
50175         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50176
50177 2006-05-17  Bruno Haible  <bruno@clisp.org>
50178
50179         * lib/stdint_.h: Fix recognition of Cygwin.
50180
50181 2006-05-15  Bruno Haible  <bruno@clisp.org>
50182
50183         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50184         on libtool patch by Ralf Wildenhues.
50185
50186 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50187
50188         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50189         test for C99 conformance; (bool) 0.5 is an integer constant
50190         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50191         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50192
50193 2006-05-11  Simon Josefsson  <jas@extundo.com>
50194
50195         * m4/xvasprintf.m4: Fix obvious typo.
50196
50197 2006-05-11  Jim Meyering  <jim@meyering.net>
50198
50199         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50200         James Lemley.
50201
50202 2006-05-10  Simon Josefsson  <jas@extundo.com>
50203
50204         * lib/md4.c: Typo fix, update copyright years.
50205         (K1, K2): Don't use L because it turn computations into 64-bit on
50206         64-bit platforms.
50207
50208 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50209
50210         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50211         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50212         unwanted sign propagation, e.g., on hosts with 64-bit int.
50213         There still are some problems with reeelly weird theoretical hosts
50214         (e.g., 33-bit int) but it's not worth worrying about now.
50215         * lib/sha1.c (rol): Likewise.
50216         (K1, K2, K3, K4): Remove unnecessary L suffix.
50217
50218 2006-05-10  Bruno Haible  <bruno@clisp.org>
50219
50220         * lib/des.c: Cast to avoid warnings.
50221
50222 2006-05-09  Bruno Haible  <bruno@clisp.org>
50223
50224         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50225         (Depends-on): Depend also on xsize, stdarg.
50226         (configure.ac): Add gl_XVASPRINTF.
50227
50228 2006-05-09  Bruno Haible  <bruno@clisp.org>
50229
50230         * m4/xvasprintf.m4: New file.
50231
50232 2006-05-09  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50235         (EOVERFLOW): Define fallback value.
50236         (xstrcat): New function.
50237         (xvasprintf): Recognize the special case of a string concatenation.
50238
50239 2006-05-08  Eric Blake  <ebb9@byu.net>
50240
50241         * gnulib-tool (func_version): Base copyright year on CVS date.
50242         (func_emit_copyright_notice): New function.
50243         (func_emit_lib_Makefile_am): Use it.
50244         (func_emit_tests_Makefile_am): Likewise.
50245         (func_import): Likewise.
50246
50247 2006-05-08  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/stdarg: New file.
50250         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50251
50252 2006-05-08  Bruno Haible  <bruno@clisp.org>
50253
50254         * m4/stdarg.m4: New file, from GNU gettext.
50255
50256 2006-05-08  Bruno Haible  <bruno@clisp.org>
50257
50258         * config/srclist.txt (build-aux/config.rpath): different from latest
50259         release.
50260
50261 2006-05-08  Bruno Haible  <bruno@clisp.org>
50262
50263         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50264
50265 2006-05-05  Jim Meyering  <jim@meyering.net>
50266
50267         * m4/warning.m4: New file, derived from bison's file by the same name.
50268
50269 2006-05-03  Bruno Haible  <bruno@clisp.org>
50270
50271         * lib/stdint_.h: Shorter URL.
50272         * lib/inttypes.h: Likewise.
50273
50274 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50275
50276         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50277
50278 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50279
50280         * lib/verify.h: Document the internals better.  Most of this change
50281         was written by Bruno Haible.
50282
50283 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50284
50285         * doc/verify.texi: New file, partly based on a proposal by
50286         Bruno Haible.
50287
50288 2006-05-02  Bruno Haible  <bruno@clisp.org>
50289
50290         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50291         test from here...
50292         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50293
50294 2006-04-29  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50297         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50298
50299 2006-04-29  Bruno Haible  <bruno@clisp.org>
50300
50301         * gnulib-tool: Make --update option actually work.
50302
50303 2006-04-29  Bruno Haible  <bruno@clisp.org>
50304
50305         * doc/gcd.texi: New file.
50306         * doc/gnulib.texi: Include it.
50307
50308 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50309
50310         * lib/getdate.y (get_date): When adding relative date, start with the
50311         initial time, not with the result of the first mktime call.
50312
50313 2006-04-25  Bruno Haible  <bruno@clisp.org>
50314
50315         * gnulib-tool (func_import): Output the include directives in three
50316         blocks, sorted separately.
50317         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50318
50319 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50320
50321         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50322         to define main with arguments, for C++.  Reported by Eric Blake.
50323         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50324         Prefer 'int main ()' to 'int main (void)', for C++.
50325         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50326         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50327         for 'main', for C99 and C++.
50328
50329 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50330
50331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50332         Don't assume that exit status -1 is valid.
50333         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50334         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50335         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50336         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50337         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50338         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50339         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50340         functions can be used without declaring them, or that you can
50341         exit with status -1.
50342         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50343
50344 2006-04-24  Karl Berry  <karl@gnu.org>
50345
50346         * config/srclist.txt (longdouble.m4): sync lost.
50347
50348 2006-04-24  Eric Blake  <ebb9@byu.net>
50349
50350         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50351
50352 2006-04-24  Bruno Haible  <bruno@clisp.org>
50353
50354         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50355         poll() implementation in AIX.
50356         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50357
50358 2006-04-24  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50361         assigned exactly once.
50362
50363 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50364             Bruno Haible  <bruno@clisp.org>
50365
50366         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50367         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50368         for AM_CPPFLAGS.
50369
50370 2006-04-23  Bruno Haible  <bruno@clisp.org>
50371
50372         * modules/copy-file: Depend on unistd.
50373         * modules/execute: Likewise.
50374         * modules/fatal-signal: Likewise.
50375         * modules/findprog: Likewise.
50376         * modules/mkdtemp : Likewise.
50377         * modules/pipe: Likewise.
50378         * modules/wait-process: Likewise.
50379
50380 2006-04-23  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50383         condition was already detected.
50384         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50385
50386 2006-04-23  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/copy-file.c: Include <unistd.h> unconditionally.
50389         * lib/execute.c: Likewise.
50390         * lib/fatal-signal.c: Likewise.
50391         * lib/findprog.c: Likewise.
50392         * lib/mkdtemp.c: Likewise.
50393         * lib/pipe.h: Likewise.
50394         * lib/pipe.c: Likewise.
50395         * lib/wait-process.h: Likewise.
50396
50397 2006-04-23  Bruno Haible  <bruno@clisp.org>
50398
50399         * gnulib-tool (func_usage): Fix --import description. Document
50400         --update.
50401         (func_import): Create temporary file in a temporary directory, if
50402         --dry-run is specified. Silence errors from 'grep' when there are no
50403         m4 files in $m4dir.
50404         (func_create_testdir): Silence errors from 'grep' when there are no
50405         m4 files in $m4dir.
50406         Reported by Karl Berry <karl@freefriends.org>.
50407
50408 2006-04-20  Bruno Haible  <bruno@clisp.org>
50409
50410         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50411         one argument, so that the code will be portable to Autoconf 2.60.
50412         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50413         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50414         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50415
50416 2006-04-19  Derek Price  <derek@ximbiot.com>
50417             Eric Blake  <ebb9@byu.net>
50418
50419         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50420         rather than "/full/path.h".  Update comment to match.  Shorten &
50421         generalize m4_translit call via AS_TR_CPP.
50422
50423 2006-04-19  Derek Price  <derek@ximbiot.com>
50424             Eric Blake  <ebb9@byu.net>
50425
50426         * lib/inttypes.h: Correct grammar in comment.
50427
50428 2006-04-18  Derek Price  <derek@ximbiot.com>
50429             Paul Eggert  <eggert@cs.ucla.edu>
50430
50431         * modules/inttypes: New file.
50432         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50433
50434 2006-04-18  Derek Price  <derek@ximbiot.com>
50435             Paul Eggert  <eggert@cs.ucla.edu>
50436
50437         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50438         New files.
50439
50440 2006-04-18  Derek Price  <derek@ximbiot.com>
50441             Paul Eggert  <eggert@cs.ucla.edu>
50442
50443         * lib/inttypes.h: New file.
50444         * lib/strtoimax.c: Assume <inttypes.h>.
50445
50446 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50447
50448         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50449         isn't mounted.  Problem reported by Kir Kolyshkin.
50450
50451 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50452
50453         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50454         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50455         Derek R. Price.
50456         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50457         implementation.
50458
50459 2006-04-12  Eric Blake  <ebb9@byu.net>
50460
50461         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50462         is now done automatically by the corresponding Autoconf macro.
50463
50464 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50465
50466         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50467         time_r.h.
50468
50469 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50470
50471         Merge regex changes from libc, removing some of our
50472         POSIX-conformance changes that were rejected and redoing them in a
50473         less-intrusive way.
50474
50475         * lib/regcomp.c (re_compile_internal, init_dfa):
50476         Length arg is now size_t, not Idx.  All uses changed.
50477         (peek_token): Forward decl now says internal_function.
50478         (__re_error_msgid, __re_error_msgid_idx):
50479         Now static rather than extern with attribute_hidden.
50480         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50481         For some reason libc prefers K&R style defns for external functions.
50482         (regerror) [!defined _LIBC]: Likewise.
50483         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50484         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50485         (build_range_exp, build_collating_symbol):
50486         Use K&R-style defn.
50487         (re_compile_fastmap): Use '\0' to memset, not 0.
50488         (utf8_sb_map): Make the calculations more obvious.
50489         (init_dfa, parse_bracket_exp, build_charclass_op):
50490         Call calloc and cast result, as glibc does.
50491         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50492         (build_range_exp, build_collating_symbol):
50493         Now internal functions.
50494
50495         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50496
50497         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50498         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50499         Don't depend on VMS; depend on __VMS instead, for POSIX
50500         namespace cleanness.
50501         (regoff_t): Define to ssize_t, not long int.
50502
50503         Remove the REG_ macros named below.  Instead, make the old names
50504         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50505         __USE_GNU_REGEX.
50506         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50507         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50508         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50509         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50510         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50511         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50512         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50513         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50514         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50515         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50516         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50517         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50518         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50519         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50520         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50521         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50522         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50523         (REG_NREGS):
50524         Remove.  All uses replaced by the old RE_* names.
50525         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50526         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
50527         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
50528         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
50529         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
50530         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
50531         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
50532         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
50533         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
50534         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
50535         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
50536         Don't bother having these macros be independent of each others'
50537         values, since they no longer exist in the POSIX name space.
50538
50539         Rename the following member names back to their old names,
50540         unless !__USE_GNU_REGEX.  All uses changed back.
50541         (buffer): Renamed from re_buffer.
50542         (allocated): Renamed from re_allocated.
50543         (used): Renamed from re_used.
50544         (syntax): Renamed from re_syntax.
50545         (fastmap): Renamed from re_fastmap.
50546         (translate): Renamed from re_translate.
50547         (can_be_null): Renamed from re_can_be_null.
50548         (regs_allocated): Renamed from re_regs_allocated.
50549         (fastmap_accurate): Renamed from re_fastmap_accurate.
50550         (no_sub): Renamed from re_no_sub.
50551         (not_bol): Renamed from re_not_bol.
50552         (not_eol): Renamed from re_not_eol.
50553         (newline_anchor): Renamed from re_newline_anchor.
50554         (num_regs): Renamed from rm_num_regs.
50555         (start): Renamed from rm_start.
50556         (end): Renamed from rm_end.
50557
50558         (free_state): Move up a bit.
50559
50560         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
50561         #define to be empty.
50562         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
50563         when that is what is intended.
50564         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
50565         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
50566         (MAX): New macro.
50567         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
50568         All uses changed back to re_malloc, etc.  It's now the caller's
50569         responsibility to check for overflow; all callers changed.
50570         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
50571         (re_x2nrealloc): Remove.
50572         (free_state): Remove decl.
50573
50574         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
50575         (re_set_registers, re_exec):
50576         Use K&R-style defn.
50577
50578         2006-01-31  Roland McGrath  <roland@redhat.com>
50579
50580         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
50581         Reported by Mike Frysinger <vapier@gentoo.org>.
50582
50583         2006-01-15  Andreas Jaeger  <aj@suse.de>
50584
50585         [BZ #1950]
50586         * lib/regex_internal.c (re_string_reconstruct): Adjust for
50587         build_wcs_upper_buffer change.
50588         (build_wcs_upper_buffer): Change return type.
50589
50590         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
50591
50592         * lib/regex_internal.h: Include <stdint.h> if available.
50593
50594         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
50595
50596         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
50597
50598         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
50599
50600         * lib/regcomp.c: Adjust for changed secondary hash function.
50601
50602         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
50603
50604         * lib/regex.h: Pretty printing.
50605         Clean up namespace a bit.
50606
50607         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
50608
50609         * lib/regexec.c (update_cur_sifted_state, check_arrival,
50610         check_arrival_add_next_nodes): Avoid using uninitialized variable.
50611
50612         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50613                     Ulrich Drepper  <drepper@redhat.com>
50614
50615         [BZ #1302]
50616         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
50617         changed.
50618         (bitset_word_t): Renamed from bitset_word.  All uses changed.
50619
50620         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
50621
50622         [BZ #281]
50623         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
50624         * lib/regcomp.c: Remove unnecessary uses of
50625         unsigned RE_TRANSLATE_TYPE.
50626         * lib/regex_internal.h: Likewise.
50627         * lib/regex_internal.c: Likewise.
50628         * lib/regexec.c: Likewise.
50629         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
50630
50631         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
50632
50633         * lib/regexec.c (find_recover_state): Remove unnecessary
50634         initialization.
50635         (transit_state_bkref): Make DFA a const pointer.
50636         (get_subexp): Likewise.
50637         (check_arrival): Likewise.
50638         (update_cur_sifted_state): Likewise.
50639         (re_search_internal): Likewise.
50640         (prune_impossible_nodes): Likewise.
50641         (acquire_init_state_context): Likewise.
50642         (proceed_next_node): Likewise.
50643         (set_regs): Likewise.
50644         (free_fail_stack_return): Likewise.
50645         (check_arrival_expand_ecl): Mark DFA parameter as const.
50646         (check_arrival_expand_ecl_sub): Likewise.
50647         (check_subexp_limits): Likewise.
50648         (sub_epsilon_src_nodes):  Likewise.
50649         (add_epsilon_src_nodes):  Likewise.
50650         (merge_state_array): Likewise.
50651         (update_regs): Likewise.
50652         (build_trtable): Likewise.
50653         (sift_states_backward): Mark MCTX parameter as const.
50654         (build_sifted_states): Likewise.
50655         (update_cur_sifted_state): Likewise.
50656         (sift_states_mkref): Likewise.
50657         (check_arrival_expand_ecl): Mark eclosure as const.
50658         (check_dst_limits_calc_pos_1): Likewise.
50659         * lib/regex_internal.h (re_match_context_t): Make dfa a const
50660         pointer.
50661
50662         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
50663
50664         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
50665         (transit_state_sb): Likewise.
50666         (transit_state_mb): Likewise.
50667         (sift_states_iter_mb): Likewise.
50668         (check_arrival_add_next_nodes): Likewise.
50669         (check_node_accept_bytes): Change first parameter to pointer-to-const.
50670         [_LIBC] (re_search_2_stub): Use mempcpy.
50671
50672         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
50673         mbrtowc for very simple UTF-8 case.
50674
50675         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
50676         a pointer-to-const.
50677         (re_acquire_state_context): Likewise.
50678         * lib/regex_internal.h: Adjust prototypes.
50679
50680         * lib/regex.c: Prevent using C++ compilers.
50681
50682         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
50683         (re_acquire_state_context): Likewise.
50684
50685 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * modules/regex (Depends-on): Add ssize_t.
50688
50689 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
50692         translation table.
50693
50694 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50695
50696         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
50697
50698 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
50699             Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
50702         <sys/types.h> and <inttypes.h>.
50703
50704 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50705
50706         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
50707         `__error_t_defined', so argp.h will not typedef the former.
50708
50709 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50710
50711         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
50712         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
50713         glibc names.  Even if glibc is changed to conform to POSIX, the
50714         traditional names will be available anyway, since regex depends on
50715         the extensions module.  Also, fix a longstanding typo in the
50716         implementation of Spencer ERE test #75 from grep 2.3.  Problems
50717         reported by Emanuele Giaquinta.  Also, change sense of cached
50718         variable, so that the message makes sense.
50719
50720 2006-03-24  Simon Josefsson  <jas@extundo.com>
50721
50722         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
50723         including some doc fixes.
50724         (base64_encode_alloc): Fix +1 bug on allocation failures.
50725
50726 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50727
50728         * lib/base64.c (base64_encode): Do not read past end of array with
50729         unsanitized input on systems with CHAR_BIT > 8.
50730
50731 2006-03-24  Eric Blake  <ebb9@byu.net>
50732
50733         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
50734
50735 2006-03-22  Karl Berry  <karl@gnu.org>
50736
50737         * config/srclist.txt (*setenv.[ch]): get from coreutils.
50738         * config/srclistvars.sh (COREUTILS): new var.
50739
50740 2006-03-17  Jim Meyering  <jim@meyering.net>
50741
50742         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
50743         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
50744
50745 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50746
50747         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
50748         no longer needs it.  Instead, check that regoff_t is as least
50749         as wide as ptrdiff_t.
50750
50751         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
50752         so that our regex.h stays compatible with the installed regex.
50753         This is helpful for installers who configure --without-included-regex.
50754         Problem reported by Emanuele Giaquinta.
50755
50756 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
50757
50758         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
50759         Typedef to long int, not to off_, as POSIX will likely change
50760         in that direction.
50761
50762 2006-03-15  Eric Blake  <ebb9@byu.net>
50763
50764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
50765
50766 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
50767
50768         * lib/argp-help.c (validate_uparams): Fix typo
50769         * lib/argp-parse.c (argp_default_options): Consistently begin help
50770         messages with a lowercase letter.
50771
50772 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
50775         overrun buffers and shouldn't be used (much as gets shouldn't be
50776         used).
50777         * lib/time_r.c (asctime_r, ctime_r): Likewise.
50778
50779 2006-03-08  Simon Josefsson  <jas@extundo.com>
50780
50781         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
50782         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50783
50784 2006-03-08  Simon Josefsson  <jas@extundo.com>
50785
50786         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
50787         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50788
50789 2006-03-08  Simon Josefsson  <jas@extundo.com>
50790
50791         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
50792         signal that configure disabled the device.
50793
50794 2006-03-08  Simon Josefsson  <jas@extundo.com>
50795
50796         * build-aux/maint.mk: Fix refresh-po, to handle no translated
50797         languages.
50798
50799 2006-03-07  Simon Josefsson  <jas@extundo.com>
50800
50801         * modules/getopt (Depends-on): Add unistd.
50802
50803         * modules/unistd: New file.
50804
50805 2006-03-07  Simon Josefsson  <jas@extundo.com>
50806
50807         * modules/gc-random: New file.
50808
50809 2006-03-07  Simon Josefsson  <jas@extundo.com>
50810
50811         * m4/unistd_h.m4: New file.
50812
50813 2006-03-07  Simon Josefsson  <jas@extundo.com>
50814
50815         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
50816         test to be side-effect free by storing the result in the cache
50817         variable gl_cv_lib_readline, and moving the assignment of
50818         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
50819         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50820
50821 2006-03-07  Simon Josefsson  <jas@extundo.com>
50822
50823         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
50824         error on missing devices (the functions will return an error).
50825
50826         * m4/gc.m4: Move random stuff to gc-random.m4
50827
50828 2006-03-07  Simon Josefsson  <jas@extundo.com>
50829
50830         * lib/unistd_.h: New file.
50831
50832 2006-03-07  Simon Josefsson  <jas@extundo.com>
50833
50834         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
50835
50836 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
50839         Problem reported by Juan Manuel Guerrero.
50840
50841 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50842
50843         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
50844         the unistd module.
50845         * lib/getlogin_r.c: Likewise.
50846         * lib/getlogin_r.h: Likewise.
50847         * lib/glob.c: Likewise.
50848         * lib/pagealign_alloc.c: Likewise.
50849         * lib/unistd_.h: Remove; no longer needed.
50850
50851 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
50852
50853         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50854         Add unistd.
50855         * modules/c-stack (Depends-on): Add unistd.
50856         * modules/getlogin_r: Likewise.
50857         * modules/glob: Likewise.
50858         * modules/pagealign_alloc: Likewise.
50859         * modules/unistd (Files): Remove lib/unistd_.h.
50860         (EXTRA_DIST): Remove.
50861         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
50862         need unistd_.h.
50863         (MOSTLYCLEANFILES): Remove unistd.h-t.
50864
50865 2006-03-03  Simon Josefsson  <jas@extundo.com>
50866
50867         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
50868
50869 2006-03-03  Simon Josefsson  <jas@extundo.com>
50870
50871         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
50872         libidn and bison.
50873
50874 2006-03-03  Simon Josefsson  <jas@extundo.com>
50875
50876         * build-aux/maint.mk: Add indent target.
50877
50878 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
50879
50880         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
50881         our replacement poll.h in any case, to avoid a differing
50882         declaration from a system header.  Seen on AIX.
50883
50884 2006-03-01  Simon Josefsson  <jas@extundo.com>
50885
50886         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
50887         <kasal@ucw.cz>.
50888
50889 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50890
50891         * modules/gettime (Depends-on): Add extensions module.
50892         * modules/nanosleep (Depends-on): Likewise.
50893         * modules/settime (Depends-on): Likewise.
50894
50895 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50896
50897         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
50898         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
50899         pedantically.
50900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50901         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
50902
50903         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
50904         not "==".  Reported by Ralf Wildenhues.
50905
50906 2006-03-01  Karl Berry  <karl@gnu.org>
50907
50908         * doc/Copyright/request-*: new files, synced from gnuorg.
50909
50910 2006-03-01  Karl Berry  <karl@gnu.org>
50911
50912         * config/srclist.txt (Copyright/*): new entries.
50913
50914 2006-02-28  Simon Josefsson  <jas@extundo.com>
50915
50916         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
50917
50918 2006-02-27  Simon Josefsson  <jas@extundo.com>
50919
50920         * lib/base64.h: Indent #define's.  From Jim Meyering
50921         <jim@meyering.net>.
50922
50923 2006-02-27  Jim Meyering  <jim@meyering.net>
50924
50925         Revert the change of 2006-02-24, so these files can continue
50926         to be sync'd from gettext.
50927         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
50928         of `config.h'.
50929
50930 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50931
50932         * modules/intprops: New file.
50933         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
50934         Add intprops.
50935         * modules/getloadavg (Files): Remove lib/intprops.h.
50936         (Depends-on): Add intprops.
50937         * modules/human: Likewise.
50938         * modules/inttostr: Likewise.
50939         * modules/openat: Likewise.
50940         * modules/sig2str: Likewise.
50941         * modules/userspec: Likewise.
50942         * modules/utimecmp: Likewise.
50943         * modules/xnanosleep: Likewise.
50944         * modules/xstrtol: Likewise.
50945
50946 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
50947
50948         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
50949         * modules/lock-tests (TESTS): Use $(EXEEXT).
50950         * modules/tls-tests: Likewise.
50951         * modules/argp-tests: Likewise.
50952         (check_PROGRAMS): New var, replacing...
50953         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
50954
50955 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50956
50957         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
50958         `config.h'.
50959
50960 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
50963
50964 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50965
50966         Sync from coreutils.
50967         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
50968         gl_CHDIR_SAFER.
50969
50970 2006-02-22  Jim Meyering  <jim@meyering.net>
50971
50972         Sync from coreutils.
50973         * m4/chdir-safer.m4: New file.
50974
50975 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
50976
50977         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
50978         AT_FDCWD exceeds INT_MAX.
50979         * lib/openat.h (AT_FDCWD): Likewise.
50980
50981 2006-02-17  Eric Blake  <address@hidden>
50982
50983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
50984
50985 2006-02-16  Simon Josefsson  <jas@extundo.com>
50986
50987         * modules/getaddrinfo (Depends-on): Add sys_socket.
50988
50989 2006-02-15  Simon Josefsson  <jas@extundo.com>
50990
50991         * build-aux/maint.mk: Add dsyntax-check rule.
50992
50993 2006-02-15  Eric Blake  <ebb9@byu.net>
50994
50995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
50996         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
50997         'present but cannot compile' warnings on cygwin.
50998         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
50999         use ws2tcpip.h if sys/socket.h works.
51000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51001         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51002
51003 2006-02-14  Simon Josefsson  <jas@extundo.com>
51004
51005         * modules/maintainer-makefile (Files): Rename.
51006
51007         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51008         and (the local) Makefile.cfg to maint-cfg.mk.
51009
51010         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51011         to the latter.
51012
51013         * modules/maintainer-makefile: New module.
51014
51015         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51016         severaly stripped to make it possible to build it up from scratch
51017         with reliable tests.
51018
51019         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51020         fixes to permit overriding the default actions when configure and
51021         makefile are not available.
51022
51023 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51024
51025         Sync from coreutils.
51026         * modules/lstat (Depends-on): Don't depend on xalloc.
51027         (License): Change from GPL to LGPL, since this is now simply a
51028         replacement for a libc function.
51029
51030 2006-02-14  Jim Meyering  <jim@meyering.net>
51031
51032         Sync from coreutils.
51033
51034         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51035         failure on deficient systems, and simplify gnulib lgpl dependencies.
51036         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51037         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51038
51039         * lib/xalloc-die.c: Remove unused definition of N_.
51040
51041 2006-02-14  Jim Meyering  <jim@meyering.net>
51042
51043         Sync from coreutils.
51044         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51045         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51046         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51047         double-quote uses of that variable, to accommodate the rare case in
51048         which getmntent is available in none of the libraries checked.  This
51049         happens at least on FreeBSD 5.0.
51050
51051 2006-02-13  Simon Josefsson  <jas@extundo.com>
51052
51053         * gnulib-tool (Usage): Fix --import, from
51054         karl@freefriends.org (Karl Berry).
51055
51056 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51057
51058         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51059
51060 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51061
51062         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51063         "autoupdate" on 2005-12-12.
51064
51065 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51066
51067         * modules/closeout (Depends-on): Remove atexit.
51068
51069 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51070
51071         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51072         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51073
51074 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51075
51076         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51077         __EXTENSIONS__ if this causes compilation to fail.  Problem
51078         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51079         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51080
51081 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51082
51083         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51084         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51086         All uses changed.
51087
51088 2006-01-26  Simon Josefsson  <jas@extundo.com>
51089
51090         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51091         prototype is visible on mingw32.
51092
51093         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51094         for mingw32.
51095
51096         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51097         mingw32).
51098
51099 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51102         attempt to open for write; this always fails, at least on POSIX
51103         hosts.  This reinstates the 2006-01-09 change, which was
51104         inadvertently removed.
51105
51106 2006-01-26  Bruno Haible  <bruno@clisp.org>
51107
51108         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51109         Reported by Paul Eggert.
51110
51111 2006-01-26  Bruno Haible  <bruno@clisp.org>
51112             Paul Eggert  <eggert@cs.ucla.edu>
51113
51114         * lib/stdbool_.h (_Bool)
51115         [(! (defined __cplusplus || defined __BEOS__)
51116           && !defined __GNUC__
51117           && !(defined __HP_cc || defined __xlc__
51118                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51119                || defined __sgi))]:
51120         #define to signed char in these cases too; this simplifies
51121         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51122         etc., separately) and makes it more conservative.
51123
51124 2006-01-25  Simon Josefsson  <jas@extundo.com>
51125
51126         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51127         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51128         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51129
51130 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51131
51132         * lib/argp-namefrob.h: Bugfix. Remove stray #
51133
51134 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51135
51136         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51137         so that we test the test.
51138         Check for yet another HP-UX cc bug involving *bool |= bool.
51139
51140 2006-01-25  Karl Berry  <karl@gnu.org>
51141
51142         * config/srclist.txt (vasnprintf.c): sync lost.
51143
51144 2006-01-25  Jim Meyering  <jim@meyering.net>
51145
51146         Sync from the stable (b5) branch of coreutils:
51147
51148         * lib/fts.c (fts_children): Don't let close() clobber errno from
51149         failed fchdir().
51150
51151         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51152         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51153         a dangling symlink.  That can also happen at least for ELOOP.
51154         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51155         FYI, this bug predates the inclusion of fts.c in coreutils.
51156
51157         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51158         in their own block, so pre-c99 compilers don't object.
51159
51160         Avoid the double-free (first in fts_read, second in fts_close) that
51161         would occur when an `active' directory is made inaccessible (e.g.,
51162         via chmod a-x) during a traversal.
51163         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51164         before returning.  Reproduce this failure by
51165         mkdir -p a/b; cd a; chmod a-x . b
51166         Reported by Stavros Passas.
51167
51168 2006-01-25  Jim Meyering  <jim@meyering.net>
51169
51170         * lib/fileblocks.c: Remove more useless parentheses.
51171         * lib/readutmp.h: Likewise.
51172
51173 2006-01-25  Bruno Haible  <bruno@clisp.org>
51174
51175         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51176         warnings.
51177         Reported by Paul Eggert.
51178
51179 2006-01-25  Bruno Haible  <bruno@clisp.org>
51180
51181         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51182         rid of a trap command. For Solaris sh.
51183         Reported by Mark D. Baushke <mdb@gnu.org>.
51184
51185 2006-01-24  Simon Josefsson  <jas@extundo.com>
51186
51187         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51188         Bruno.
51189
51190 2006-01-24  Karl Berry  <karl@gnu.org>
51191
51192         * config/srclist.txt (argp-namefrob.h): sync lost.
51193
51194 2006-01-24  Jim Meyering  <jim@meyering.net>
51195
51196         * modules/openat (Files): Add lib/intprops.h.
51197         From Mark D. Baushke.
51198
51199 2006-01-24  Jim Meyering  <jim@meyering.net>
51200
51201         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51202         Reported by Mark D. Baushke.
51203
51204 2006-01-24  Jim Meyering  <jim@meyering.net>
51205
51206         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51207
51208 2006-01-24  Bruno Haible  <bruno@clisp.org>
51209
51210         * modules/strnlen (Maintainer): Change from glibc to all.
51211
51212 2006-01-24  Bruno Haible  <bruno@clisp.org>
51213
51214         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51215         Patch by Paul Eggert.
51216
51217 2006-01-24  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51220         already has it.
51221         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51222         2005-11-26.
51223
51224         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51225         'signed char' to avoid problems with the built-in _Bool type.
51226         Reported by Paul Eggert on 2005-11-26.
51227
51228 2006-01-24  Bruno Haible  <bruno@clisp.org>
51229
51230         * gnulib-tool (func_import): Avoid constructing complicated sed
51231         expressions inside backquote.
51232         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51233
51234 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51235
51236         These changes imported from libc.
51237         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51238         test and two separate function calls.
51239         * lib/strndup.c (__strndup): Add libc_hidden_def.
51240
51241 2006-01-23  Simon Josefsson  <jas@extundo.com>
51242
51243         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51244         Remove the test_*_SOURCES variable: automake infers it by default.
51245         * modules/tls-tests: Likewise.
51246
51247 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         Work around porting bugs reported by Dieter in
51250         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51251         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51252         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51253         Include "getopt.h" first, to check interface.
51254         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51255         !HAVE_DECL_GETENV.
51256         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51257         (__strndup): Revert to K&R-style function dfns, the glibc style.
51258         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51259         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51260         Include strnlen.h first, to get prototype properly.
51261         (strnlen): Renamed from __strnlen.
51262         Remove weak alias.
51263
51264 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51265
51266         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51267
51268 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         * config/srclist.txt: Adjust to reflect glibc reorganization.
51271         This affects only comments.
51272
51273 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51274
51275          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51276          Reported by Bruce Korb <bkorb@gnu.org>.
51277
51278 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51279
51280         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51281         to pacify gcc -Wswitch-default.
51282
51283 2006-01-22  Bruno Haible  <bruno@clisp.org>
51284
51285         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51286         temporary buffer for sprintf, take into account the precision also
51287         for 'd', 'i', 'u', 'o', 'x', 'X'.
51288
51289 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51290
51291         * modules/argp-tests: New module
51292         * tests/test-argp.c: New file
51293         * tests/test-argp-2.sh: New file
51294
51295 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51296
51297         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51298         (__argp_base_name): Removed
51299         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51300         typo.
51301         (__argp_base_name): Provide macro definition or extern declaration
51302         depending on the configuration
51303
51304 2006-01-20  Simon Josefsson  <jas@extundo.com>
51305
51306         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51307
51308 2006-01-20  Simon Josefsson  <jas@extundo.com>
51309
51310         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51311
51312 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51313
51314         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51315         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51316         Suggested by Bruno Haible.
51317
51318 2006-01-20  Karl Berry  <karl@gnu.org>
51319
51320         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51321         until changes propagate, I guess.
51322
51323 2006-01-19  Simon Josefsson  <jas@extundo.com>
51324
51325         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51326
51327 2006-01-19  Simon Josefsson  <jas@extundo.com>
51328
51329         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51330
51331 2006-01-19  Simon Josefsson  <jas@extundo.com>
51332
51333         * gnulib-tool: Set check_PROGRAMS.
51334
51335         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51336         modules/des-tests, modules/gc-arcfour-tests,
51337         modules/gc-arctwo-tests, modules/gc-des-tests,
51338         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51339         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51340         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51341         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51342         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51343         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51344         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51345         test_*_SOURCES.
51346
51347 2006-01-18  Simon Josefsson  <jas@extundo.com>
51348
51349         * modules/socklen (Depends-on): Depend on sys_socket.
51350
51351 2006-01-18  Simon Josefsson  <jas@extundo.com>
51352
51353         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51354         modules/des-tests, modules/gc-arcfour-tests,
51355         modules/gc-arctwo-tests, modules/gc-des-tests,
51356         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51357         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51358         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51359         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51360         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51361         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51362         $(EXEEXT) to automake TESTS variable, for mingw32.
51363
51364 2006-01-17  Simon Josefsson  <jas@extundo.com>
51365
51366         * modules/socklen (Include): Need sys/socket.h.
51367
51368 2006-01-17  Bruno Haible  <bruno@clisp.org>
51369
51370         * modules/ssize_t (Include): Add <sys/types.h>.
51371
51372 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51373
51374         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51375         it's not portable and it doesn't work with cross-compiles.
51376         Problem reported by Bruno Haible.  Fix missing-$ typo in
51377         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51378         -zignore from being used with Sun's C compiler.
51379
51380 2006-01-12  Simon Josefsson  <jas@extundo.com>
51381
51382         * lib/base64.c: Fix warning, reported by Bruno Haible
51383         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51384
51385 2006-01-12  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/ldd: New file.
51388         * build-aux/ldd.sh.in: New file.
51389         * MODULES.html.sh (Support for building libraries and executables): Add
51390         ldd.
51391
51392 2006-01-12  Bruno Haible  <bruno@clisp.org>
51393
51394         * m4/ldd.m4: New file.
51395
51396 2006-01-12  Bruno Haible  <bruno@clisp.org>
51397
51398         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51399         endless loop while replacing $auxdir with build-aux.
51400
51401 2006-01-11  Simon Josefsson  <jas@extundo.com>
51402
51403         * lib/stdint_.h (SIZE_MAX): Add missing (.
51404
51405 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51406
51407         Sync from coreutils.
51408         * lib/md5.c: Fix commentary typos.
51409         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51410         * lib/md5.h (__attribute__): Remove; unused.
51411         * lib/sha1.c: Fix commentary to match md5 better.
51412         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51413         so that we don't need to worry about alignment.  All uses changed.
51414         This merges the 2005-10-28 md5 change into sha1.
51415
51416 2006-01-11  Jim Meyering  <jim@meyering.net>
51417
51418         Sync from coreutils.
51419         * lib/md5.c (OP): Fix spacing.
51420
51421 2006-01-11  Bruno Haible  <bruno@clisp.org>
51422
51423         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51424         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51425         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51426
51427 2006-01-11  Bruno Haible  <bruno@clisp.org>
51428
51429         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51430         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51431         the "early" section as well.
51432
51433 2006-01-11  Bruno Haible  <bruno@clisp.org>
51434
51435         Avoid "ar: no archive members specified" error on MacOS X.
51436         * gnulib-tool (func_modules_add_dummy): New function.
51437         (func_import, func_create_testdir): Invoke it.
51438
51439 2006-01-11  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51442         with $auxdir in AC_CONFIG_FILES statements.
51443
51444 2006-01-11  Bruno Haible  <bruno@clisp.org>
51445
51446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51447         Initialize also noinst_HEADERS to empty.
51448
51449 2006-01-11  Bruno Haible  <bruno@clisp.org>
51450
51451         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51452         variables.
51453         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51454         autoreconf.
51455
51456 2006-01-11  Bruno Haible  <bruno@clisp.org>
51457
51458         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51459         overridable by the user.
51460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51461
51462 2006-01-10  Simon Josefsson  <jas@extundo.com>
51463
51464         * modules/sys_socket: New file.
51465
51466 2006-01-10  Simon Josefsson  <jas@extundo.com>
51467
51468         * m4/sys_socket_h.m4: New file.
51469
51470 2006-01-10  Simon Josefsson  <jas@extundo.com>
51471
51472         * lib/socket_.h: New file.
51473
51474 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51475
51476         * modules/readutmp (Maintainer): Add myself.
51477
51478 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51481         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51482         People who are still concerned with buggy memcmp implementations
51483         can invoke gl_FUNC_MEMCMP themselves.
51484
51485 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51486
51487         * lib/regex_internal.h (BITSET_WORD_BITS):
51488         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51489         preprocessor mishandles large unsigned values as if they were signed.
51490         Problem reported by Claudio Fontana in
51491         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51492
51493 2006-01-10  Jim Meyering  <jim@meyering.net>
51494
51495         Avoid the double-free (first in fts_read, second in fts_close) that
51496         would occur when an `active' directory is made inaccessible (e.g.,
51497         via chmod a-x) during a traversal.
51498         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51499         before returning.  Reproduce this failure by
51500         mkdir -p a/b; cd a; chmod a-x . b
51501         Reported by Stavros Passas.
51502
51503         Sync from coreutils.
51504         * lib/sha1.c: Tweak grammar in a comment.
51505
51506 2006-01-10  Jim Meyering  <jim@meyering.net>
51507
51508         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51509         Patch by Joerg Sonnenberger.
51510
51511 2006-01-10  Bruno Haible  <bruno@clisp.org>
51512
51513         * modules/readutmp: Depend on module free.
51514         * modules/strtok_r: Depend on module restrict.
51515
51516 2006-01-10  Bruno Haible  <bruno@clisp.org>
51517
51518         * modules/gettext (configure.ac): Add an invocation of
51519         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51520
51521 2006-01-10  Bruno Haible  <bruno@clisp.org>
51522
51523         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51524         Reported by Werner Lemberg <wl@gnu.org>.
51525
51526 2006-01-10  Bruno Haible  <bruno@clisp.org>
51527
51528         * lib/localcharset.c: Update from GNU gettext.
51529
51530 2006-01-10  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/argp.h (__const): Remove macro. Use const instead.
51533         * lib/argp-fmtstream.h (__const): Likewise.
51534         * lib/glob_.h (__const): Remove macro.
51535         * lib/glob-libc.h: Use const instead of __const.
51536
51537 2006-01-10  Bruno Haible  <bruno@clisp.org>
51538
51539         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
51540         variable.
51541         Needed to avoid an automake error regarding the 'gettext' module.
51542
51543 2006-01-09  Simon Josefsson  <jas@extundo.com>
51544
51545         * modules/inet_ntop (Depends-on): Add restrict.
51546
51547 2006-01-09  Simon Josefsson  <jas@extundo.com>
51548
51549         * modules/gc-rijndael-tests (License): Put under LGPL.
51550
51551         * modules/gc-des-tests (License): Likewise.
51552
51553         * modules/gc-arcfour-tests (License): Likewise.
51554
51555         * modules/gc-arctwo-tests (License): Likewise.
51556
51557         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
51558
51559         * modules/gc-hmac-sha1-tests (Files): Likewise.
51560
51561         * modules/gc-hmac-md5-tests (License): Likewise.
51562
51563         * modules/gc-sha1-tests (License): Likewise.
51564
51565         * modules/gc-md5-tests (License): Likewise.
51566
51567         * modules/gc-md4-tests (License): Likewise.
51568
51569         * modules/gc-md2-tests (License): Likewise.
51570
51571         * modules/gc-tests (License): Likewise.
51572
51573         * modules/des-tests (License): Likewise.
51574
51575         * modules/md4-tests (License): Likewise.
51576
51577         * modules/md2-tests (License): Likewise.
51578
51579 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         Sync from coreutils:
51582
51583         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
51584         * modules/lib-ignore: New file.
51585         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
51586         chdir-safer.m4, lchmod.m4.
51587         * modules/openat: Add mkdirat.c, openat-priv.h.
51588
51589 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         Sync from coreutils.
51592         * m4/lib-ignore.m4: New file.
51593         * m4/lchmod.m4: New file.
51594
51595 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51596
51597         Sync from coreutils.
51598         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
51599         for write access: POSIX says that must fail.
51600         * lib/fts.c (diropen): Likewise.
51601         * lib/save-cwd.c (save_cwd): Likewise.
51602         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
51603         well, for minor improvements on hosts that lack O_DIRECTORY.
51604         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
51605         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
51606         Fall back on chown if open failed with EACCES.
51607
51608         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
51609         Report an error at compile-time if only a 1-second nominal clock
51610         resolution is found.
51611
51612         * lib/lchmod.h: New file.
51613         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
51614         (make_dir_parents): Use lchown rather than chown, and
51615         lchmod rather than chmod.
51616
51617         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
51618         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
51619         "proc" reported by n0dalus.
51620
51621         * lib/mountlist.c: Include <limits.h>.
51622         (dev_from_mount_options)
51623         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
51624         New function.  It no longer assumes "dev=" has the System V meaning
51625         on Linux (since it doesn't).  It also parses "dev=" more carefully.
51626         (read_file_system_list)
51627         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
51628         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
51629         dev= in that case.
51630
51631         * lib/posixtm.h (PDS_PRE_2000): New macro.
51632         * lib/posixtm.c (year): Arg is now syntax_bits rather than
51633         allow_century.  All usages changed.  Reject dates outside the range
51634         1969-1999 if PDS_PRE_2000 is used.
51635
51636 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51637
51638         Sync from coreutils.
51639         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
51640         (Time of day items): Mention the possibility of leap seconds.
51641         Problem reported by Dr. David Alan Gilbert.
51642
51643 2006-01-09  Jim Meyering  <jim@meyering.net>
51644
51645         Sync from coreutils.
51646
51647         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
51648
51649         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
51650
51651         * lib/modechange.c (mode_compile): Reject an invalid mode string
51652         that starts with an octal digit.  From Andreas Gruenbacher.
51653
51654         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
51655         and dup to open_safer and dup_safer, respectively.
51656         (openat_permissive): Fix typo in comment.
51657
51658         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
51659         "gettext.h"; either no longer needed or are guaranteed by openat.h.
51660         (_): Remove; no longer needed.
51661         (openat): Renamed from rpl_openat; no need for rpl_openat
51662         since openat.h renames openat for us.
51663         Replace most of the body with a call to openat_permissive,
51664         to avoid duplicate code.
51665         Port to (probably hypothetical) environments were mode_t is
51666         wider than int.
51667         (openat_permissive): Require mode arg, so that we can check
51668         types better.  Put it just after flags.  Change cwd failure
51669         indicator from pointer-to-bool to pointer-to-errno-value.
51670         All callers changed.
51671         Invoke openat_save_fail and/or openat_restore_fail if
51672         cwd_errno is null, so that openat can call us.
51673         (openat_permissive, fdopendir, fstatat, unlinkat):
51674         Simplify errno handling to avoid some duplicate code,
51675         as it's OK to set errno on success.
51676         * lib/openat.h: Revamp code so that function macros depend on
51677         __OPENAT_PREFIX only, not also on AT_FDCWD.
51678         (openat_ro): Remove.  Caller changed to use openat_permissive.
51679         (openat_permissive): Now a macro, if not a function.
51680         (openat_restore_fail, openat_save_fail): Now always functions,
51681         since mkdirat needs them even if __OPENAT_PREFIX is defined.
51682
51683         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
51684         and openat.c.
51685         * lib/mkdirat.c: Include openat-priv.h.
51686         Remove definitions of macros defined therein.
51687         * lib/openat.c: Likewise.
51688
51689         * lib/mkdirat.c (mkdirat): New file and function.
51690         * lib/openat.h (mkdirat): Declare.
51691
51692         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
51693
51694         * lib/openat.h (openat_permissive): Declare.
51695         (openat_ro): Define.
51696
51697         * lib/openat.c (EXPECTED_ERRNO): New macro.
51698         (openat_permissive): New function -- used in remove.c rewrite.
51699         (all functions): Set errno just before returning, only if there
51700         was an actual failure.
51701         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
51702
51703         Emulate openat-family functions using Linux's procfs, if possible.
51704         Idea and some code based on Ulrich Drepper's glibc changes.
51705
51706         * lib/openat.c: (BUILD_PROC_NAME): New macro.
51707         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
51708         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
51709         before falling back on save_cwd and restore_cwd.
51710         (fdopendir, fstatat, unlinkat): Likewise.
51711
51712         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
51713         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
51714
51715         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
51716         as second argument to va_arg.  Otherwise, some versions of gcc
51717         warn that `if this code is reached, the program will abort'.
51718
51719 2006-01-09  Jim Meyering  <jim@meyering.net>
51720
51721         Sync from coreutils.
51722         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
51723         Require openat-priv.h.
51724
51725 2006-01-09  Bruno Haible  <bruno@clisp.org>
51726
51727         * modules/strnlen (Include): Use strnlen.h.
51728
51729 2006-01-09  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
51732
51733 2006-01-09  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/sysexit_.h (EX_OK): New macro.
51736         Suggested by Martin Lambers <marlam@marlam.de>.
51737
51738 2006-01-09  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
51741         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
51742
51743 2006-01-09  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
51746         numbers.
51747
51748 2006-01-09  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
51751         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
51752         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
51753         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
51754
51755 2006-01-09  Bruno Haible  <bruno@clisp.org>
51756
51757         * build-aux/javacomp.sh.in: New file, moved from lib/.
51758         * modules/javacomp-script (Files): Update.
51759         (configure.ac): Add AC_CONFIG_FILES invocation.
51760         (EXTRA_DIST): Remove variable.
51761
51762         * build-aux/javaexec.sh.in: New file, moved from lib/.
51763         * modules/javaexec (Files): Update.
51764         (configure.ac): Add AC_CONFIG_FILES invocation.
51765         (EXTRA_DIST): Remove javaexec.sh.in.
51766
51767         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
51768         * modules/csharpcomp-script (Files): Update.
51769         (configure.ac): Add AC_CONFIG_FILES invocation.
51770         (EXTRA_DIST): Remove variable.
51771
51772         * build-aux/csharpexec.sh.in: New file, moved from lib/.
51773         * modules/csharpexec (Files): Update.
51774         (configure.ac): Add AC_CONFIG_FILES invocation.
51775         (EXTRA_DIST): Remove csharpexec.sh.in.
51776
51777 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51778
51779         Sync from coreutils.
51780
51781         Add POSIX ACL support
51782         * lib/acl.h (copy_acl, set_acl): Add declarations.
51783         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
51784         systems other than Linux.
51785         (chmod_or_fchmod): New function: use fchmod when possible,
51786         and chmod otherwise.
51787         (file_has_acl): Add a POSIX ACL implementation, with a
51788         Linux-specific subcase.
51789         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
51790         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
51791         acls are unsupported.
51792         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
51793         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
51794         are unsupported.
51795
51796 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
51797
51798         Sync from coreutils.
51799         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
51800
51801 2006-01-07  Bruno Haible  <bruno@clisp.org>
51802
51803         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
51804         gl_EARLY.
51805
51806 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         * lib/strftime.c (tzname): Don't declare if it is already #defined.
51809         Problem reported for Mingw by Mark Junker.
51810
51811 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         * README: Gnulib normally doesn't generate a tarball.
51814
51815 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
51816
51817         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
51818         long int, not int, for nanosecond counts, so that people who are
51819         used to POSIX struct timespec won't be surprised.  Reported by Jim
51820         Meyering.
51821
51822 2005-12-28  Bruno Haible  <bruno@clisp.org>
51823
51824         * build-aux/config.rpath: Update from GNU gettext.
51825
51826 2005-12-16  Jim Meyering  <jim@meyering.net>
51827
51828         * modules/fprintftime: New module.
51829         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
51830
51831 2005-12-16  Jim Meyering  <jim@meyering.net>
51832
51833         * m4/fprintftime.m4: New file.
51834
51835 2005-12-16  Jim Meyering  <jim@meyering.net>
51836
51837         * lib/fprintftime.c, lib/fprintftime.h: New files.
51838
51839 2005-12-15  Simon Josefsson  <jas@extundo.com>
51840
51841         * modules/socklen (configure.ac): Fix M4 macro name, to align with
51842         new m4/socklen.m4.
51843
51844 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51845
51846         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
51847         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
51848
51849 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51850
51851         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
51852         * lib/argp-help.c (fill_in_uparams): Check if the constructed
51853         struct uparams is valid. Fall back to the default values if it is
51854         not.
51855
51856 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51857
51858         * modules/argp (Files): Add argp-pin.c
51859         (Depends-on): dirname
51860         (lib_SOURCES): Add argp-pin.c
51861
51862 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51863
51864         * m4/argp.m4:  Check if program_invocation_name and
51865         program_invocation_short_name are declared and define appropriate
51866         macros if they are not.
51867
51868 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51869
51870         * lib/argp-help.c (__argp_base_name): New function
51871         (__argp_short_program_name): Rewrite using __argp_base_name
51872         * lib/argp-namefrob.h: Define program_invocation_name and
51873         program_invocation_short_name if requested
51874         (__argp_base_name): Add prototype
51875         * lib/argp-parse.c (argp_def): Use gettext wrappers
51876         (argp_default_parser): Use __argp_base_name
51877         * lib/argp-pin.c: New file. Defines program_invocation_name and
51878         program_invocation_short_name on systems that lack them.
51879
51880 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51881
51882         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
51883         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51884         porting problem reported by Georg Schwarz in
51885         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51886
51887 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51888
51889         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
51890         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
51891         porting problem reported by Georg Schwarz in
51892         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
51893
51894 2005-12-05  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
51897         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
51898         Reported by Mark Junker <mjscod@gmx.de>.
51899
51900 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
51901
51902         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
51903         Use implementation from Albert Chin, with some
51904         comments/corrections by Stepan Kasal and myself.
51905
51906 2005-12-02  Bruno Haible  <bruno@clisp.org>
51907
51908         * gnulib-tool (func_import): Accept GPLed build tool modules when
51909         --lgpl is given.
51910         * modules/csharpcomp-script: New file.
51911         * modules/csharpcomp: Depend on it.
51912         * modules/javacomp-script: New file.
51913         * modules/javacomp: Depend on it.
51914         Suggested by Simon Josefsson.
51915
51916 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
51917
51918         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
51919         statement, to work around an HP-UX 10.20 compiler bug reported by
51920         Peter O'Gorman.
51921
51922 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51923
51924         * modules/savedir (Depends-on): Add openat.
51925
51926 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
51927
51928         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
51929         (uintmax_t) [defined uintmax_t]: Do not declare.
51930         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
51931         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
51932         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
51933         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
51934         sake of portability to weird hosts that C allows (though we don't
51935         know of any practical examples).
51936
51937         * lib/savedir.h (fdsavedir): New decl.
51938         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
51939         contains most of the former guts of savedir.
51940         (savedir): Use savedirstream.
51941         Include "openat.h".
51942
51943 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51944
51945         * modules/obstack (Files): Add m4/ulonglong.m4.
51946         Problem reported by Davide Angelocola.
51947
51948 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51949
51950         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
51951         coreutils no longer futzes with rounding modes.
51952
51953 2005-11-14  Jim Meyering  <jim@meyering.net>
51954
51955         * lib/mkstemp-safer.c: Include <config.h>, required for possible
51956         replacement of mkstemp.
51957
51958 2005-11-10  Simon Josefsson  <jas@extundo.com>
51959
51960         * lib/readline.c: Remove EOL.
51961
51962 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51963
51964         * modules/gethrxtime (Depends-on): Add gettime.
51965
51966 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51967
51968         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
51969         or gettimeofday; no longer needed.
51970
51971 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
51974         time business.
51975         (gethrxtime) [! (HAVE_NANOUPTIME
51976         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
51977         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
51978         our own approximation.
51979
51980 2005-11-08  Eric Blake  <ebb9@byu.net>
51981
51982         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51983
51984 2005-11-08  Eric Blake  <ebb9@byu.net>
51985
51986         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
51987
51988 2005-11-04  Bruno Haible  <bruno@clisp.org>
51989
51990         * gnulib-tool: Implement --update mode.
51991
51992 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51993
51994         Fix porting problem reported by Theodoros V. Kalamatianos.
51995         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
51996         Don't assume that futimes failing means we must fail.
51997
51998 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
51999
52000         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52001         variables to suggest the intended function of the PATH_MAX check.
52002
52003 2005-10-30  Kean Johnston  <jkj@sco.com>
52004
52005         Trivial changes to support SCO systems.
52006         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52007         as PATH_MAX.
52008         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52009         where __ptr is null when no I/O is pending.
52010
52011 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52014         leave errno alone.  Problem reported by Dmitry V. Levin.
52015
52016 2005-10-28  Simon Josefsson  <jas@extundo.com>
52017
52018         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52019         Test more.
52020
52021         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52022
52023         * modules/md2, modules/md2-tests: New files.
52024
52025 2005-10-28  Simon Josefsson  <jas@extundo.com>
52026
52027         * m4/inet_ntop.m4: More tests.
52028
52029         * m4/gc-md2.m4, md2.m4: New file.
52030
52031 2005-10-28  Simon Josefsson  <jas@extundo.com>
52032
52033         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52034         "restrict" keywords, as per POSIX.  Protect the function
52035         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52036         Don't use K&R prototypes.  Check the sprintf return values.
52037         Re-define EAFNOSUPPORT if not present.  Indent.
52038
52039         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52040         suggested by Bruno Haible <bruno@clisp.org>.
52041
52042         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52043
52044         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52045
52046         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52047         libgcrypt).
52048
52049         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52050
52051         * lib/md2.h, lib/md2.c: New files.
52052
52053 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52054
52055         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52056         errno alone.  Problem reported by Frederic Jolliton.
52057
52058 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * modules/verify (License): Change from GPL to LGPL.  This is a
52061         tiny module and there are apparently near-equivalents that are
52062         under the BSD license.
52063
52064 2005-10-24  Simon Josefsson  <jas@extundo.com>
52065
52066         * modules/sha1: Relicense to LGPL.
52067
52068 2005-10-24  Simon Josefsson  <jas@extundo.com>
52069
52070         * lib/md4.h: Shrink buffer size, now that we changed the type.
52071
52072 2005-10-23  Simon Josefsson  <jas@extundo.com>
52073
52074         * gnulib-tool (func_import): Fix --tests-base.
52075
52076 2005-10-22  Simon Josefsson  <jas@extundo.com>
52077
52078         * modules/arcfour (Depends-on): Need stdint.
52079
52080 2005-10-22  Simon Josefsson  <jas@extundo.com>
52081
52082         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52083         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52084
52085 2005-10-22  Simon Josefsson  <jas@extundo.com>
52086
52087         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52088         suggested by Bruno Haible <bruno@clisp.org>.
52089
52090 2005-10-22  Simon Josefsson  <jas@extundo.com>
52091
52092         * lib/crc.h: Include stddef.h, for size_t.
52093
52094 2005-10-22  Simon Josefsson  <jas@extundo.com>
52095
52096         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52097         arcfour_context struct (simplify test vector testing in GNU
52098         Shishi).
52099
52100 2005-10-21  Simon Josefsson  <jas@extundo.com>
52101
52102         * modules/des, modules/des-tests: New files.
52103
52104         * modules/gc-des, modules/gc-des-tests: New files.
52105
52106         * tests/test-des.c, tests/test-gc-des.c: New file.
52107
52108 2005-10-21  Simon Josefsson  <jas@extundo.com>
52109
52110         * modules/arctwo, modules/arctwo-tests: New files.
52111
52112         * tests/test-arctwo.c: New file.
52113
52114         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52115
52116         * tests/test-gc-arctwo.c: New file.
52117
52118 2005-10-21  Simon Josefsson  <jas@extundo.com>
52119
52120         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52121         Bruno Haible <bruno@clisp.org>.
52122
52123         * m4/gc-des.m4: New file.
52124
52125 2005-10-21  Simon Josefsson  <jas@extundo.com>
52126
52127         * m4/arctwo.m4: New file.
52128
52129         * m4/gc-arctwo.m4: New file.
52130
52131 2005-10-21  Simon Josefsson  <jas@extundo.com>
52132
52133         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52134         block.
52135
52136 2005-10-21  Simon Josefsson  <jas@extundo.com>
52137
52138         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52139         <bruno@clisp.org>.
52140
52141         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52142
52143         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52144         Bruno Haible <bruno@clisp.org>.
52145
52146         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52147         <bruno@clisp.org>.
52148
52149 2005-10-21  Simon Josefsson  <jas@extundo.com>
52150
52151         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52152
52153 2005-10-21  Simon Josefsson  <jas@extundo.com>
52154
52155         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52156
52157 2005-10-21  Simon Josefsson  <jas@extundo.com>
52158
52159         * lib/des.h, lib/des.c: New files.
52160
52161         * lib/gc-gnulib.c: Support DES.c
52162
52163 2005-10-21  Simon Josefsson  <jas@extundo.com>
52164
52165         * lib/arctwo.h, lib/arctwo.c: New files.
52166
52167         * lib/gc-gnulib.c: Support ARCTWO.
52168
52169 2005-10-21  Simon Josefsson  <jas@extundo.com>
52170
52171         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52172         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52173
52174 2005-10-21  Simon Josefsson  <jas@extundo.com>
52175
52176         * gnulib-tool (func_import, func_create_testdir): Define automake
52177         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52178         Makefile.am snippet),
52179         suggested by Bruno Haible <bruno@clisp.org>.
52180
52181         * modules/gc (Makefile.am): Use it.
52182
52183 2005-10-21  Bruno Haible  <bruno@clisp.org>
52184
52185         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52186         patch.
52187
52188 2005-10-19  Simon Josefsson  <jas@extundo.com>
52189
52190         * tests/test-gc-rijndael.c: New file.
52191
52192         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52193
52194 2005-10-19  Simon Josefsson  <jas@extundo.com>
52195
52196         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52197         interface too.
52198
52199 2005-10-19  Simon Josefsson  <jas@extundo.com>
52200
52201         * tests/test-gc-arcfour.c: New file.
52202
52203         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52204
52205 2005-10-19  Simon Josefsson  <jas@extundo.com>
52206
52207         * modules/gc-md4, modules/gc-md4-tests: New file.
52208
52209         * tests/test-gc-md4.c: New file.
52210
52211 2005-10-19  Simon Josefsson  <jas@extundo.com>
52212
52213         * m4/gc-md4.m4: New file.
52214
52215 2005-10-19  Simon Josefsson  <jas@extundo.com>
52216
52217         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52218         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52219         <kasal@ucw.cz>.
52220
52221 2005-10-19  Simon Josefsson  <jas@extundo.com>
52222
52223         * m4/gc-arcfour.m4: New file.
52224
52225         * m4/gc-rijndael.m4: New file.
52226
52227 2005-10-19  Simon Josefsson  <jas@extundo.com>
52228
52229         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52230
52231 2005-10-19  Simon Josefsson  <jas@extundo.com>
52232
52233         * lib/gc-gnulib.c: Support ARCFOUR.
52234
52235 2005-10-19  Simon Josefsson  <jas@extundo.com>
52236
52237         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52238         support.
52239
52240         * lib/gc.h: Add ECB enum type.
52241
52242         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52243
52244 2005-10-18  Simon Josefsson  <jas@extundo.com>
52245
52246         * tests/test-md5.c: New file.
52247
52248         * modules/md5-tests: New file.
52249
52250 2005-10-18  Simon Josefsson  <jas@extundo.com>
52251
52252         * tests/test-md4.c: New file.
52253
52254         * modules/md4, modules/md4-tests: New files.
52255
52256 2005-10-18  Simon Josefsson  <jas@extundo.com>
52257
52258         * m4/md4.m4: New file.
52259
52260 2005-10-18  Simon Josefsson  <jas@extundo.com>
52261
52262         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52263
52264 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52265
52266         * gnulib-tool (func_create_testdir): Omit the second check whether
52267         BUILT_SOURCES in nonempty.
52268
52269 2005-10-17  Simon Josefsson  <jas@extundo.com>
52270
52271         * tests/test-rijndael.c: New file.
52272
52273 2005-10-17  Simon Josefsson  <jas@extundo.com>
52274
52275         * modules/sha1: Depend on stdint instead of md5.
52276
52277         * modules/md5: Depend on stdint, remove uint32_t.
52278
52279 2005-10-17  Simon Josefsson  <jas@extundo.com>
52280
52281         * modules/gc-sha1-tests: New file.
52282
52283         * tests/test-gc-sha1.c: New file.
52284
52285 2005-10-17  Simon Josefsson  <jas@extundo.com>
52286
52287         * m4/md5.m4: Remove call to uint32_t.m4.
52288
52289 2005-10-17  Simon Josefsson  <jas@extundo.com>
52290
52291         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52292
52293         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52294         md5.h.
52295
52296         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52297
52298         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52299
52300 2005-10-17  Simon Josefsson  <jas@extundo.com>
52301
52302         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52303
52304 2005-10-17  Simon Josefsson  <jas@extundo.com>
52305
52306         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52307
52308 2005-10-17  Simon Josefsson  <jas@extundo.com>
52309
52310         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52311
52312         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52313
52314 2005-10-17  Bruno Haible  <bruno@clisp.org>
52315
52316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52317         that it can also be used in a test.
52318
52319 2005-10-16  Bruno Haible  <bruno@clisp.org>
52320
52321         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52322         TESTS_ENVIRONMENT, so that individual tests can augment it.
52323
52324         * gnulib-tool (func_create_testdir): Use an intermediate target for
52325         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52326         macros, like $(ALLOCA_H), which cannot be passed through the command
52327         line.
52328
52329 2005-10-15  Simon Josefsson  <jas@extundo.com>
52330
52331         * modules/rijndael-tests: New file.
52332
52333         * modules/rijndael: New file.
52334
52335 2005-10-15  Simon Josefsson  <jas@extundo.com>
52336
52337         * m4/rijndael.m4: New file.
52338
52339 2005-10-15  Simon Josefsson  <jas@extundo.com>
52340
52341         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52342
52343         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52344
52345 2005-10-14  Simon Josefsson  <jas@extundo.com>
52346
52347         * tests/test-arcfour.c: New file.
52348
52349         * modules/arcfour, modules/arcfour-tests: New files.
52350
52351 2005-10-14  Simon Josefsson  <jas@extundo.com>
52352
52353         * m4/arcfour.m4: New file.
52354
52355 2005-10-14  Simon Josefsson  <jas@extundo.com>
52356
52357         * lib/arcfour.h, lib/arcfour.c: New files.
52358
52359 2005-10-14  Roland McGrath  <roland@redhat.com>
52360
52361         Import from libc.  [BZ #1331]
52362         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52363         macro argument.
52364         Reported by Matej Vela <vela@debian.org>.
52365
52366 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52367
52368         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52369         include <wchar.h>; no longer needed.
52370
52371 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52372
52373         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52374
52375 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52376         and  Ulrich Drepper  <drepper@redhat.com>
52377
52378         Import from libc.
52379         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52380         instead of inline stream orientation test and two separate
52381         function calls.  Pay no attention to USE_IN_LIBIO.
52382
52383 2005-10-13  Simon Josefsson  <jas@extundo.com>
52384
52385         * modules/gc-hmac-md5-tests: New file.
52386
52387         * tests/test-gc-hmac-sha1.c: New file.
52388
52389         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52390
52391         * modules/gc-hmac-md5-tests: New file.
52392
52393         * tests/test-gc-md5.c: New file.
52394
52395         * modules/gc-md5-tests: New file.
52396
52397 2005-10-13  Simon Josefsson  <jas@extundo.com>
52398
52399         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52400         Move memory allocation outside of loop.
52401
52402 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52405         intermediate directory is in a read-only file system.  Problem
52406         reported by Eric Blake.
52407
52408 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52409
52410         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52411
52412 2005-10-12  Simon Josefsson  <jas@extundo.com>
52413
52414         * tests/test-hmac-sha1.c: New file.
52415
52416         * modules/hmac-sha1-tests: New file.
52417
52418         * modules/hmac-sha1: New file.
52419
52420 2005-10-12  Simon Josefsson  <jas@extundo.com>
52421
52422         * modules/gc-sha1: New file.
52423
52424 2005-10-12  Simon Josefsson  <jas@extundo.com>
52425
52426         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52427
52428         * tests/test-gc-pbkdf2-sha1.c: New file.
52429
52430 2005-10-12  Simon Josefsson  <jas@extundo.com>
52431
52432         * modules/gc-md5, modules/gc-hmac-md5: New files.
52433
52434         * modules/gc (Files): Remove md5, memxor and hmac files.
52435
52436 2005-10-12  Simon Josefsson  <jas@extundo.com>
52437
52438         * m4/gc-pbkdf2-sha1.m4: New file.
52439
52440         * m4/gc-hmac-sha1.m4: New file.
52441
52442         * m4/gc-sha1: New file.
52443
52444         * m4/hmac-sha1.m4: New file.
52445
52446 2005-10-12  Simon Josefsson  <jas@extundo.com>
52447
52448         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52449
52450         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52451
52452 2005-10-12  Simon Josefsson  <jas@extundo.com>
52453
52454         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52455         suggested by Bruno Haible <bruno@clisp.org>.
52456
52457 2005-10-12  Simon Josefsson  <jas@extundo.com>
52458
52459         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52460
52461 2005-10-12  Simon Josefsson  <jas@extundo.com>
52462
52463         * lib/gc-pbkdf2-sha1.c: New file.
52464
52465         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52466
52467 2005-10-12  Simon Josefsson  <jas@extundo.com>
52468
52469         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52470
52471         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52472
52473 2005-10-12  Simon Josefsson  <jas@extundo.com>
52474
52475         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52476         GC_USE_HMAC_MD5, respectively.
52477
52478         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52479         (gc_md5): Fix typo.
52480
52481         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52482
52483         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52484
52485         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52486
52487 2005-10-12  Bruno Haible  <bruno@clisp.org>
52488
52489         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52490         Reported by Stepan Kasal <kasal@ucw.cz>.
52491
52492 2005-10-11  Simon Josefsson  <jas@extundo.com>
52493
52494         * tests/test-crc.c: New file.
52495
52496         * modules/crc, modules/crc-tests: New files.
52497
52498 2005-10-11  Simon Josefsson  <jas@extundo.com>
52499
52500         * m4/crc.m4: New file.
52501
52502 2005-10-11  Simon Josefsson  <jas@extundo.com>
52503
52504         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52505
52506         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52507
52508         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52509
52510 2005-10-11  Simon Josefsson  <jas@extundo.com>
52511
52512         * lib/crc.h, lib/crc.c: New files.
52513
52514         * lib/gc.h (gc_hash_buffer): Add doc.
52515
52516 2005-10-11  Bruno Haible  <bruno@clisp.org>
52517
52518         * modules/c-strcasestr: New file.
52519         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52520
52521 2005-10-11  Bruno Haible  <bruno@clisp.org>
52522
52523         * modules/c-strcase: New file.
52524         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52525
52526 2005-10-11  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/strcasecmp.c: Include limits.h.
52529         (strcasecmp): Avoid integer overflow on exotic platforms.
52530         * lib/strncasecmp.c: Include limits.h.
52531         (strncasecmp): Avoid integer overflow on exotic platforms.
52532         Reported by Paul Eggert.
52533
52534 2005-10-11  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/c-strcasestr.h: New file, from GNU gettext.
52537         * lib/c-strcasestr.c: New file, from GNU gettext.
52538
52539 2005-10-11  Bruno Haible  <bruno@clisp.org>
52540
52541         * lib/c-strcase.h: New file, from GNU gettext.
52542         * lib/c-strcasecmp.c: New file, from GNU gettext.
52543         * lib/c-strncasecmp.c: New file, from GNU gettext.
52544
52545 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52546
52547         * modules/mempcpy (License): GPL -> LGPL.
52548         * modules/strchrnul (License): Likewise.
52549         * modules/sysexits (License): Likewise.
52550
52551 2005-10-08  Simon Josefsson  <jas@extundo.com>
52552
52553         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
52554
52555 2005-10-07  Simon Josefsson  <jas@extundo.com>
52556
52557         * m4/memxor.m4: Remove gl_C_RESTRICT call.
52558
52559 2005-10-06  Simon Josefsson  <jas@extundo.com>
52560
52561         * tests/test-hmac-md5.c: New file.
52562
52563         * modules/hmac-md5-tests: New file.
52564
52565         * modules/hmac-md5: New file.
52566
52567 2005-10-06  Simon Josefsson  <jas@extundo.com>
52568
52569         * m4/hmac-md5.m4: New file.
52570
52571         * m4/memxor.m4: Require gl_C_RESTRICT.
52572
52573 2005-10-06  Simon Josefsson  <jas@extundo.com>
52574
52575         * lib/memxor.c (memxor): Avoid casts and warnings.
52576
52577 2005-10-06  Simon Josefsson  <jas@extundo.com>
52578
52579         * lib/hmac-md5.c: New file.
52580
52581         * lib/hmac.h: New file.
52582
52583 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
52586         promotes to int, not unsigned int, to catch the AIX 5.3
52587         compiler bug.
52588
52589 2005-10-05  Simon Josefsson  <jas@extundo.com>
52590
52591         * modules/memxor: New file.
52592
52593         * modules/iconv (Files): Move config.rpath to havelib, it is used
52594         there.
52595
52596         * modules/havelib (Files): Add config.rpath.
52597
52598 2005-10-05  Simon Josefsson  <jas@extundo.com>
52599
52600         * m4/memxor.m4: New file.
52601
52602 2005-10-05  Simon Josefsson  <jas@extundo.com>
52603
52604         * lib/memxor.c (memxor): Fix compiler error.
52605
52606         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
52607         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
52608
52609         * lib/memxor.h, lib/memxor.c: New files.
52610
52611         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
52612         we assume all systems have it, suggested by Jim Meyering
52613         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
52614         any systems lack sys/socket.h; mingw32 is known to lack it, but we
52615         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
52616         same reasons.
52617
52618 2005-10-05  Simon Josefsson  <jas@extundo.com>
52619
52620         * config/srclist.txt: Add glibc bug 1423 for md5.h.
52621
52622 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
52623
52624         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
52625         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
52626         needed, since the source code now assumes these .h files.
52627
52628 2005-10-05  Derek Price  <derek@ximbiot.com>
52629
52630         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
52631
52632 2005-10-05  Bruno Haible  <bruno@clisp.org>
52633
52634         * modules/stdint (License): Change to LGPL.
52635
52636 2005-10-04  Simon Josefsson  <jas@extundo.com>
52637
52638         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
52639         D. Baushke" <mdb@gnu.org>.
52640
52641 2005-10-04  Bruno Haible  <bruno@clisp.org>
52642
52643         * lib/verify.h (verify_true): Provide alternative definition for C++.
52644
52645 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
52646
52647         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
52648         (SSIZE_MAX): New macro, if not already defined.
52649         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
52650         than 2 GiB.
52651
52652 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52653
52654         Sync from coreutils.
52655         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
52656         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
52657         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
52658         ULLONG_MAX doesn't work with 2.7.2.1.
52659
52660 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
52663         From Ben Pfaff.
52664
52665         * modules/exclude (Depends-on): Depend on verify.
52666         * modules/strtoimax (Depends-on): Likewise.
52667         * modules/utimecmp (Depends-on): Likewise.
52668
52669 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * lib/exclude.c: Include verify.h.
52672         (verify): Remove.  All callers changed to use verify.h's version.
52673         * lib/strtoimax.c: Likewise.
52674         * lib/utimecmp.c: Likewis.e
52675
52676         Sync from coreutils.
52677         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
52678         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
52679         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
52680         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
52681         bother returning ENOSYS if settimeofday or stime fails; just let
52682         them return whatever errno they want to return.
52683         * lib/utimens.c: Include unistd.h, for dup2.
52684         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
52685         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
52686
52687 2005-10-02  Jim Meyering  <jim@meyering.net>
52688
52689         Sync from coreutils.
52690         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
52691         from glibc-2.2.5 that fails for read-only files.
52692
52693 2005-10-02  Jim Meyering  <jim@meyering.net>
52694
52695         Sync from coreutils.
52696         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
52697         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
52698         `#if HAVE_CONFIG_H'.
52699         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
52700         Remove AT_FDCWD test.
52701         Do not consume the fd unless successful.
52702         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
52703         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
52704         block, so that we don't even try to compile it if settimeofday is
52705         available.  This works around a compilation failure on OSF1 V5.1,
52706         due to stime requiring a `long int*' while tv_sec is `int'.
52707
52708 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
52709
52710         Sync from coreutils.
52711         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
52712         against `yes', rather than just testing for nonempty.
52713
52714 2005-10-01  Simon Josefsson  <jas@extundo.com>
52715
52716         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
52717         and Darwin.
52718
52719         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
52720         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
52721         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
52722         freeaddrinfo and gai_strerror are declared by the POSIX headers.
52723         Check if struct addrinfo is declared.
52724
52725 2005-10-01  Simon Josefsson  <jas@extundo.com>
52726
52727         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
52728         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
52729         AI_* and EAI_* definitions.  Protect function declarations.
52730
52731 2005-10-01  Jim Meyering  <jim@meyering.net>
52732
52733         Sync from coreutils.
52734
52735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
52736         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
52737         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
52738         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52739         in the inet and nsl libraries.  Required on Solaris 5.7.
52740
52741 2005-10-01  Jim Meyering  <jim@meyering.net>
52742
52743         Sync from coreutils.
52744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
52745         in the inet and nsl libraries.  Required on Solaris 5.7.
52746
52747 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
52748
52749         * lib/getdelim.c (getdelim): Remove unused variables.
52750
52751 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
52752
52753         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
52754         so that the code works even with ancient cpp.  Portability problem
52755         with GCC 2.7.2.1 reported by Thomas M.Ott.
52756
52757 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         * modules/regex (Depends-on): Add strcase.
52760
52761         * modules/gethostname (Licence): Change from GPL to LGPL, since
52762         gethostname.c is a trivial implementation of a standard library
52763         function.
52764         * modules/poll (License): Change from GPL to LGPL, since it's
52765         derived from LGPL code.
52766
52767 2005-09-27  Jim Meyering  <jim@meyering.net>
52768
52769         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
52770         HAVE_CONFIG_H.
52771
52772         * lib/intprops.h (signed_type_or_expr__): Define.
52773         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
52774         for unsigned types.
52775
52776 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         * lib/verify.h (verify_expr): Remove, replacing with:
52779         (verify_true): New macro that returns true instead of void.
52780         (verify_type__): Remove.
52781         (verify): Use verify_true rather than verify_type__.
52782
52783 2005-09-26  Bruno Haible  <bruno@clisp.org>
52784
52785         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
52786         is necessary.
52787         (lib_SOURCES): Remove mbchar.c.
52788         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
52789         (Files): Add m4/mbrtowc.m4.
52790         * modules/mbiter: Likewise.
52791         * modules/mbuiter: Likewise.
52792
52793 2005-09-26  Bruno Haible  <bruno@clisp.org>
52794
52795         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
52796         compile mbchar.c if they are not both present.
52797         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
52798         * m4/mbiter.m4 (gl_MBITER): Likewise.
52799         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
52800         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
52801         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
52802
52803 2005-09-25  Jim Meyering  <jim@meyering.net>
52804
52805         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
52806         also uses socklen_t.
52807
52808 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         * lib/utimens.c (ENOSYS): Define if not already defined.
52811         (futimens): Support having a null PATH if the file descriptor
52812         is nonnegative.
52813
52814         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
52815         Remove.
52816         (__attribute): Define to empty unless GCC 3.1 or later.
52817         This works around a core dump on OpenBSD 3.4, which has GCC
52818         2.95.3, which dumps core when given __attribute__(()).  It also
52819         simplifies other tests, since we really don't want to bother with
52820         worrying about which ancient version of GCC supported what.
52821         Original problem reported by Yoann Vandoorselaere, with part of
52822         the fix suggested by Derek Price.
52823
52824 2005-09-24  Jim Meyering  <jim@meyering.net>
52825
52826         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
52827         so we can once again use a positive bitfield width of 1 -- now we
52828         don't have to explain why we were using a bitfield width of 2.
52829
52830 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52831
52832         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
52833         and similarly for the other external symbols.  Problem reported
52834         by James Gallager.
52835
52836         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
52837         bug reported by Jim Meyering.
52838
52839         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
52840         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
52841         not needed, since socklen is a prerequisite module.
52842
52843 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
52844
52845         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
52846         Problem reported by Eric Blake.
52847         (getaddrinfo): Initialize se so that it's not garbage.
52848         Redo internal storage allocation so that it doesn't make unportable
52849         assumptions about alignment.
52850         Fix a memory leak.
52851
52852         * lib/utimens.c (futimens): Use futimesat if available.
52853         Prefer it to futimes since it doesn't have the futimes bug.
52854
52855         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
52856         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
52857         Instead, declare a function that returns a pointer to an array,
52858         and use verify_type__ to declare the size of the array.
52859         Problem and germ of a solution reported by Bruno Haible.
52860         (verify_type__): Use 2, not 1, for bitfield size, to avoid
52861         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
52862
52863 2005-09-23  Jim Meyering  <jim@meyering.net>
52864
52865         Sync from coreutils.
52866         Correct build failure (socklen_t not defined) on at least
52867         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
52868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
52869
52870 2005-09-23  Jim Meyering  <jim@meyering.net>
52871
52872         * modules/getaddrinfo (Depends-on): Add socklen.
52873
52874 2005-09-23  Bruno Haible  <bruno@clisp.org>
52875
52876         * tests/test-verify.c: New file.
52877
52878 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52879
52880         Sync from coreutils.
52881
52882         * modules/argmatch (Depends-on): Add verify.
52883         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
52884         unistd-safer.
52885         * modules/save-cwd (Depends-on): Likewise.
52886
52887         * modules/openat (Files): Add lib/openat-die.c.
52888         (Depends-on): Remove error, exitfail.
52889         Add dirname.
52890
52891         * modules/verify: New file.
52892         * MODULES.html.sh (Diagnostics <assert.h>): New section,
52893         with "verify" module.
52894
52895 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         Sync from coreutils.
52898
52899         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
52900         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
52901         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
52902         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
52903         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
52904         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
52905         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
52906         Don't bother checking for string.h, stdlib.h, unistd.h.
52907         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
52908         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
52909         module's job.
52910         * m4/jm-macros.m4 (gl_MACROS): Likewise.
52911         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
52912
52913         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
52914         (gl_GETDATE): Use it.
52915
52916         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
52917
52918 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52919
52920         Sync from coreutils.
52921
52922         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
52923         stat-time.h.
52924         * lib/argmatch.h: Include verify.h
52925         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
52926         (ARGMATCH_ASSERT): Remove; unused.
52927         * lib/canonicalize.c: Assume STDC_HEADERS.
52928         * lib/exclude.c: Include "strcase.h".
52929         * lib/regex_internal.h [!defined _LIBC]: Likewise.
52930         * lib/getusershell.c: Include stdio--.h rather than stdio.h
52931         and stdio-safer.h.
52932         (getusershell): Call fopen, not fopen_safer.
52933         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
52934         Do not include unistd-safer.h.
52935         (save_cwd): Don't call fd_safer; no longer needed
52936         now that we include fcntl--.h.
52937
52938         * lib/getdate.y (relative_time): New type.
52939         (RELATIVE_TIME_0): New constant.
52940         (parser_control): Use relative_time instead of doing it ourselves.
52941         (%union): Add new relative_time rel member.
52942         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
52943         Now typeless.
52944         (relunit, relunit_snumber): Now of type rel.
52945         (zone, rel, relunit, get_date): Adjust to above changes.
52946
52947         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
52948         Do not include unistd-safer.h.
52949         (getloadavg): Don't call fd_safer; no longer needed
52950         now that we include fcntl--.h.
52951
52952         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
52953         (make_dir_parents): Treat ENOSYS like EEXIST.
52954
52955         Improve quality of diagnostics on restore_cwd failure.
52956         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
52957         (make_dir_parents): Last arg is now int * (for errno), not bool *.
52958         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
52959         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
52960         each time through the loop.  Do not diagnose restore_cwd failure;
52961         that is the caller's job (and perhaps the caller does not care).
52962
52963         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
52964         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
52965         If the file already exists but is not a directory, don't bother
52966         to try to make its parents.
52967         Close potential file descriptor leak if we can't chdir("/") (!).
52968         Don't always return true if chdir($PWD) fails; return true only
52969         if the requested action was done successfully (except for the
52970         chdir($PWD)).
52971         Don't log final directory unless we actually made it.
52972         Refactor to avoid duplicate code to fix up permissions.
52973         Don't attempt to fix up parent permissions if chdir($PWD) fails.
52974
52975         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
52976         to make it a bit faster and (I hope) clearer.
52977         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
52978         Fix bug in formats like %2N.
52979
52980         * lib/verify.h: New file.
52981
52982 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
52983
52984         Sync from coreutils.
52985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
52986
52987 2005-09-22  Jim Meyering  <jim@meyering.net>
52988
52989         Sync from coreutils.
52990
52991         * m4/lstat.m4 (gl_FUNC_LSTAT):
52992         Use AC_LIBSOURCES to require lstat.c and lstat.h.
52993         Remove obsolete comment.
52994         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
52995         * m4/xstrtod.m4: Likewise.
52996
52997         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
52998
52999 2005-09-22  Jim Meyering  <jim@meyering.net>
53000
53001         Sync from coreutils.
53002
53003         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53004
53005         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53006         the .tm_year member, since otherwise gcc-4.0 would now warn about
53007         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53008
53009         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53010         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53011
53012         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53013         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53014         when run in a time zone for which daylight savings time is in effect
53015         for the starting date.
53016
53017         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53018         stop us from restricting permissions of just-created absolute-named
53019         directories.
53020         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53021         to restore initial working directory.
53022         * lib/mkdir-p.c (make_dir_parents): New parameter:
53023         different_working_dir, to tell caller if/when we change the working
53024         directory and are unable to return to the initial one.
53025         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53026         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53027         `return false'.  This fixes a bug introduced on 2004-07-30.
53028
53029         * lib/openat.c (fdopendir): Be sure to close the supplied
53030         file descriptor before returning.  This makes our replacement
53031         implementation a little closer to Solaris's, where fdopendir
53032         ties the file descriptor to the returned DIR* pointer.
53033         * lib/openat.c (unlinkat): New function.
53034         * lib/openat.h (unlinkat): Add prototype.
53035         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53036         (openat_restore_fail): Rename from openat_restore_die.
53037         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53038
53039         Provide an alternative to exiting immediately upon save_cwd or
53040         restore_cwd failure.  Now, an application can arrange e.g.,
53041         to perform a longjump in that case.
53042         * lib/openat.c: Include dirname.h.
53043         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53044         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53045         and openat_restore_die rather than calling error directly.
53046         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53047
53048         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53049         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53050         define.
53051
53052         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53053         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53054                             int utc, int nanoseconds);
53055         Background:
53056         date should not have to allocate a megabyte of virtual memory to
53057         handle a format argument like +%1048575T.  When implemented with
53058         strftime, it must allocate such a buffer, use strftime to fill it
53059         in, print it, then free it.
53060         With fprintftime, it simply prints everything and exits.
53061         With no need for memory allocation, that's one fewer way to fail.
53062         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53063         optional field width, not before, so we accept %9:z, not %:9z.
53064         (my_strftime): Be sure to use L_('x') for literals.
53065
53066         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53067         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53068         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53069         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53070         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53071         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53072         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53073         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53074         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53075         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53076         * lib/xgethostname.c, lib/xreadlink.c:
53077         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53078
53079         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53080         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53081         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53082         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53083         and don't include <sys/file.h>).
53084
53085 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53086
53087         Sync from coreutils.
53088
53089         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53090         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53091         [!LDAV_DONE]: Avoid unused variable warning.
53092
53093 2005-09-21  Bruno Haible  <bruno@clisp.org>
53094
53095         * lib/unicodeio.h (unicode_to_mb): New declaration.
53096
53097 2005-09-20  Derek Price  <derek@ximbiot.com>
53098
53099         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53100         getaddrinfo.h.
53101
53102 2005-09-20  Bruno Haible  <bruno@clisp.org>
53103
53104         * gnulib-tool: Remove trailing slashes from the values specified for
53105         --source-base, --m4-base, --tests-base, --aux-dir.
53106         Suggested by Simon Josefsson <jas@extundo.com>.
53107
53108 2005-09-20  Bruno Haible  <bruno@clisp.org>
53109
53110         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53111         func_modules_to_filelist, func_import, func_create_testdir): Make all
53112         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53113         change when gnulib-tool is invoked in a different locale.
53114
53115 2005-09-19  Simon Josefsson  <jas@extundo.com>
53116
53117         * m4/socklen.m4: Fix typo.
53118
53119 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53120
53121         Use a consistent style for including <config.h>.
53122         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53123         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53124         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53125         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53126         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53127         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53128         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53129         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53130         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53131         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53132         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53133         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53134         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53135         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53136         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53137         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53138         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53139         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53140         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53141         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53142         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53143         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53144         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53145         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53146         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53147         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53148         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53149         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53150         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53151         lib/xstrtoumax.c, lib/yesno.c:
53152         Standardize inclusion of config.h.
53153         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53154         lib/inttostr.h:  Removed inclusion of config.h from header files.
53155         * lib/inttostr.c:  Adjusted in-tree users.
53156         * lib/timespec.h: Remove superfluous warning to include config.h.
53157         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53158         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53159         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53160         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53161         config.h with HAVE_CONFIG_H.
53162
53163 2005-09-19  Jim Meyering  <jim@meyering.net>
53164
53165         * modules/pathmax (License): Change to LGPL.
53166
53167 2005-09-19  Derek Price  <derek@ximbiot.com>
53168
53169         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53170
53171 2005-09-19  Bruno Haible  <bruno@clisp.org>
53172
53173         * gnulib-tool (import): Provide default for --tests-base.
53174
53175 2005-09-19  Bruno Haible  <bruno@clisp.org>
53176
53177         * doc/quote.texi: New file, extracted from gnulib.texi.
53178         * doc/ctime.texi: New file, extracted from gnulib.texi.
53179         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53180         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53181         * doc/gnulib.texi: Include them.
53182
53183 2005-09-18  Bruno Haible  <bruno@clisp.org>
53184
53185         Portability fix.
53186         * gnulib-tool (func_readlink): New function.
53187         (func_ln_if_changed): Use it.
53188
53189 2005-09-18  Bruno Haible  <bruno@clisp.org>
53190
53191         * gnulib-tool: Support --with-tests also with --import.
53192         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53193         (func_import): Use variables $testsbase and $inctests. Emit a
53194         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53195         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53196         SUBDIRS += $testsdir.
53197         (func_create_testdir): Update.
53198
53199 2005-09-18  Bruno Haible  <bruno@clisp.org>
53200
53201         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53202         instead of $dry_run.
53203         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53204         (func_ln_if_changed): Don't handle dry-run here.
53205         (func_import): In dry-run mode, detect more precisely which actions
53206         would be performed, and don't use "...ing" verbs.
53207
53208 2005-09-18  Bruno Haible  <bruno@clisp.org>
53209
53210         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53211         (func_import): Use join on two temporary files instead of three nested
53212         loops, in order to determine which files are new or old.
53213
53214 2005-09-18  Bruno Haible  <bruno@clisp.org>
53215
53216         * gnulib-tool (func_import): Comment out code that spits out the
53217         new files with --dry-run.
53218
53219 2005-09-18  Bruno Haible  <bruno@clisp.org>
53220
53221         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53222
53223 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * lib/stat-time.h: New file.
53226         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53227         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53228         in a different way.
53229         (timespec_cmp): New function.
53230         * lib/utimecmp.c: Include stat-time.h.
53231         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53232         members exist, not on the obsolescent ST_MTIM_NSEC.
53233         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53234
53235 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53238
53239 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53240
53241         * MODULES.html.sh (File system functions): Add stat-time.
53242         * modules/stat-time: New file.
53243         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53244         is now done in a different way, by the stat-time module.
53245         * modules/utimecmp (Depends-on): Add stat-time.
53246
53247 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         * m4/st_mtim.m4: Remove.  Superseded by...
53250         * m4/stat-time.m4: New file.
53251         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53252         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53253
53254 2005-09-15  Derek Price  <derek@ximbiot.com>
53255
53256         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53257
53258 2005-09-15  Derek Price  <derek@ximbiot.com>
53259
53260         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53261         * lib/regex_internal.c: Ditto, using this...
53262         (__GNUC_PREREQ): ...new macro.
53263         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53264         using...
53265         (__GNUC_PREREQ): ...this new macro.
53266
53267         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53268
53269 2005-09-15  Derek Price  <derek@ximbiot.com>
53270             Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53273         changes, consolidating in...
53274         * lib/regex_internal.h: ...this file.
53275
53276 2005-09-13  Jim Meyering  <jim@meyering.net>
53277
53278         * lib/canon-host.c: Filter through gnu indent and reword comments
53279         slightly.
53280         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53281
53282 2005-09-13  Derek Price  <derek@ximbiot.com>
53283
53284         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53285         failure.
53286         Reported by Jim Meyering  <jim@meyering.net>.
53287
53288 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53289
53290         * lib/base64.c: Typo.
53291         (base64_encode): Put b64str in initialized data section.
53292
53293 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         Merge glibc and coreutils changes into gnulib, plus a few
53296         extra fixes.
53297         * lib/md5.c: Use #error rather than a string.
53298         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53299         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53300         (__attribute__): Define to empty for non recent-GCC.
53301         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53302         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53303         Renamed from their non-__ counterparts, with new macros replacing
53304         them if not _LIBC.  Add __THROW attribute.
53305         (rol): Remove.
53306         (struct md5_ctx): Align buffer if using GCC.
53307         * lib/sha1.h (struct sha1_ctx): Likewise.
53308         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53309         The old name was backwards.
53310         (NOTSWAP): Remove; not used.
53311         (rol): New macro, moved here from md5.h.
53312         (sha1_process_block): Remove a FIXME that doesn't make sense.
53313
53314 2005-09-12  Derek Price  <derek@ximbiot.com>
53315
53316         Return usable errors from canon-host.
53317         * lib/canon-host.h: New file.
53318         * lib/canon-host.c (canon_host): Wrap...
53319         (canon_host_r): ...this new function, which now relies exclusively on
53320         getaddrinfo.
53321         (ch_strerror): New function.
53322         (last_cherror): New global.
53323         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53324         interface.
53325         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53326         void *.
53327         (freeaddrinfo): Free ai->ai_canonname when set.
53328
53329 2005-09-12  Derek Price  <derek@ximbiot.com>
53330
53331         Make canon-host require getaddrinfo.
53332         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53333         AC_LIBSOURCE canon-host.h.  Call...
53334         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53335         gl_GETADDRINFO.
53336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53337
53338 2005-09-12  Derek Price  <derek@ximbiot.com>
53339
53340         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53341         LGPL.
53342         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53343
53344 2005-09-12  Derek Price  <derek@ximbiot.com>
53345
53346         * lib/gai_strerror.c: Include config.h when available.  Include
53347         getaddrinfo.h before other headers to test interface.
53348         Reported by Larry Jones <lawrence.jones@ugs.com>.
53349
53350 2005-09-12  Derek Price  <derek@ximbiot.com>
53351             Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         * modules/glob (Files): Add glob-libc.h.
53354
53355 2005-09-12  Derek Price  <derek@ximbiot.com>
53356             Paul Eggert  <eggert@cs.ucla.edu>
53357
53358         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53359         glob_.h, glob-libc.h.
53360         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53361
53362 2005-09-12  Derek Price  <derek@ximbiot.com>
53363             Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53366         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53367         protecting things that should be done only in gnulib contexts.
53368         * lib/glob_.h: New file, containing only the glob things needed for
53369         gnulib.
53370         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53371         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53372         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53373         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53374         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53375         and to respect the namespace rules better.
53376
53377 2005-09-08  Simon Josefsson  <jas@extundo.com>
53378
53379         * modules/socklen: New file.
53380
53381 2005-09-08  Simon Josefsson  <jas@extundo.com>
53382
53383         * m4/socklen.m4: New file.
53384
53385 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53386
53387         * modules/utimens (Files): Add m4/utimbuf.m4, since
53388         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53389         Reported by Sergey Poznyakoff.
53390
53391 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53394         definitions, since that's the preferred style in glibc.
53395         Fix a minor spacing issue, and update copyright notice to match
53396         glibc's.
53397
53398 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53399
53400         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53401
53402 2005-09-06  Simon Josefsson  <jas@extundo.com>
53403
53404         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53405         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53406
53407 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53410         warning.
53411
53412 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53413
53414         * config/srclist.txt: Add glibc bug 1302.
53415
53416 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         Change bitset word type from unsigned int to unsigned long int,
53419         as this has better performance on typical 64-bit hosts.
53420         Port bitset code to hosts with unusual word sizes.
53421         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53422         (build_collating_symbol):
53423         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53424         argument is a bitset.  This is merely a style issue, but it makes
53425         it clearer that an entire array is expected.
53426         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53427         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53428         Port to the case where bitset_word is not the same as unsigned int.
53429         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53430         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53431         Likewise.
53432         * lib/regexec.c (check_dst_limits_calc_pos_1,
53433         check_subexp_matching_top):
53434         (build_trtable, group_nodes_into_DFAstates):
53435         Likewise.
53436         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53437         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53438         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53439         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53440         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53441         * lib/regcomp.c (optimize_subexps, lower_subexp):
53442         Work even if bitset_word has holes in its bitwise representation.
53443         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53444         * lib/regexec.c (check_dst_limits_calc_pos_1,
53445         check_subexp_matching_top):
53446         Likewise.
53447         * lib/regex_internal.c (re_string_reconstruct):
53448         Don't assume UCHAR_MAX == 255.
53449         * lib/regex_internal.h (bitset_set_all): Likewise.
53450         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53451         All uses changed.
53452         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53453         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53454         All uses changed.
53455         (BITSET_WORD_MAX): New macro.
53456         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53457         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53458         (bitset_empty, bitset_copy):
53459         Prefer sizeof (bitset) to multiplying it out ourselves.
53460         (bitset_not_merge): Remove; unused.
53461         (bitset_contain): Return bool, not unsigned int with one bit on.
53462         All callers changed.
53463         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53464         alignment than re_node_set; do this by defining a new internal
53465         type struct dests_alloc and using it to allocate memory.
53466
53467 2005-09-05  Bruno Haible  <bruno@clisp.org>
53468
53469         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53470         links.
53471
53472 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53473
53474         * modules/size_max (Makefile.am): Add size_max.h
53475
53476 2005-09-04  Derek Price  <derek@ximbiot.com>
53477
53478         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53479
53480 2005-09-03  Simon Josefsson  <jas@extundo.com>
53481
53482         * gnulib-tool: Fix typo.
53483
53484 2005-09-03  Simon Josefsson  <jas@extundo.com>
53485
53486         * config/srclist.txt: Add glibc bug 1293.
53487
53488 2005-09-03  Derek Price  <derek@ximbiot.com>
53489
53490         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53491         From Larry Jones <lawrence.jones@ugs.com>.
53492
53493 2005-09-02  Simon Josefsson  <jas@extundo.com>
53494
53495         * modules/socklen: New file.
53496
53497 2005-09-02  Simon Josefsson  <jas@extundo.com>
53498
53499         * modules/havelib: New module.
53500
53501         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53502         Use havelib.
53503
53504 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         Check for arithmetic overflow when calculating sizes, to prevent
53507         some buffer-overflow issues.  These patches are conservative, in the
53508         sense that when I couldn't determine whether an overflow was possible,
53509         I inserted a run-time check.
53510         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53511         macros.
53512         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53513         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53514         (re_xnrealloc, re_x2nrealloc): New inline functions.
53515         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53516         parse_bracket_exp):
53517         (build_equiv_class, build_charclass): Check for arithmetic overflow
53518         in size expression calculations.
53519         * lib/regex_internal.c (re_string_realloc_buffers):
53520         (build_wcs_upper_buffer, re_node_set_add_intersect):
53521         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53522         (re_dfa_add_node, register_state): Likewise.
53523         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53524         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53525         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53526         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
53527
53528 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53531         m4/ulonglong.m4.  Problem reported by Martin Lambers.
53532
53533 2005-09-02  Bruno Haible  <bruno@clisp.org>
53534
53535         Support for lib vs. lib64 distinction on biarch platforms.
53536         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
53537         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
53538         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
53539
53540 2005-09-02  Bruno Haible  <bruno@clisp.org>
53541
53542         * gnulib-tool (import): In the other first-use case, provide defaults
53543         as well.
53544
53545 2005-09-02  Bruno Haible  <bruno@clisp.org>
53546
53547         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
53548         patches not yet found in the latest gettext release.
53549
53550 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
53553         to avoid a collision with bits/local_lim.h in glibc.
53554         All uses changed.  Problem reported by Dmitry V. Levin in
53555         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
53556
53557         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
53558         bugs in int versus size_t comparisons.
53559         (re_string_context_at): Fix bug where the code assumed that
53560         Idx is signed.
53561
53562         Use bool where appropriate.
53563         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
53564         All callers changed.
53565         (calc_eclosure_iter): Likewise, for ROOT arg.
53566         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
53567         (build_charclass_op): Likewise, for NON_MATCH arg.
53568         * lib/regex_internal.c (re_string_allocate, re_string_construct):
53569         (re_string_construct_common): Likewise, for ICASE arg.
53570         * lib/regexec.c (re_search_2_stub, re_search_stub):
53571         Likewise, for RET_LEN arg.
53572         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
53573         (set_regs): Likewise, for FL_BACKTRACK arg.
53574         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
53575         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
53576         (calc_eclosure_iter, parse_bracket_exp):
53577         Use bool for internal variables that are booleans.
53578         * lib/regexec.c (re_search_internal, check_matching,
53579         proceed_next_node):
53580         (set_regs, build_sifted_states, sift_states_bkref):
53581         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
53582         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
53583         (find_collation_sequence_value):
53584         Likewise.
53585         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
53586         (re_node_set_compare):
53587         Return bool, not int. All callers changed.
53588         * lib/regexec.c (check_halt_node_context, check_dst_limits):
53589         (build_trtable, check_node_accept): Likewise.
53590         * lib/regex_internal.h: Include stdbool.h.
53591
53592         Fix bugs uncovered when converting to bool.
53593         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
53594         failure instead of charging ahead blindly.
53595         * lib/regex_internal.c (register_state): Likewise.
53596         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
53597         for freeing internal storage.
53598         (group_nodes_into_DFA_states): Use unsigned int, not int, for
53599         bitset pieces used as boolean, to avoid undefined behavior
53600         on hosts that do int overflow checking.
53601
53602 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * config/srclist.txt: Add glibc bugs 1285-1287.
53605
53606 2005-09-01  Jim Meyering  <jim@meyering.net>
53607
53608         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
53609         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
53610         Require gl_STAT_MACROS, too.
53611
53612 2005-09-01  Bruno Haible  <bruno@clisp.org>
53613
53614         * gnulib-tool (import): In the first-use case, provide defaults.
53615
53616 2005-09-01  Bruno Haible  <bruno@clisp.org>
53617
53618         * gnulib-tool (func_import): Remove the .tmp files.
53619
53620 2005-09-01  Bruno Haible  <bruno@clisp.org>
53621
53622         * gnulib-tool (func_import): Fix handling of symbolic links.
53623
53624 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
53627         old glibc regex code mishandles strings longer than 2**31 bytes.
53628         This patch fixes this when the regex code is used in gnulib
53629         (i.e., outside glibc).
53630
53631         This patch should not affect the use of the regex code inside
53632         glibc.  No doubt this problem also needs to be handled for glibc
53633         as well, but the result will be an incompatible change to the
53634         glibc ABI, and the old ABI will have to be supported too.  That
53635         can be the the subject for another patch.
53636
53637         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
53638         governing whether the rest of this patch is active.  By default,
53639         the macro is disabled and the patch has no effect.
53640         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
53641         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
53642         (struct re_pattern_buffer, re_search, re_search_2, re_match):
53643         (re_match_2, re_set_registers): Use the new types.
53644         * lib/regex_internal.h (Idx, re_hashval_t): New types.
53645         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
53646         New macros.
53647         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
53648         (re_string_context_at, bin_tree_t, re_dfastate_t):
53649         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
53650         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
53651         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
53652         (re_string_char_size_at, re_string_wchar_at):
53653         (re_string_elem_size_at):
53654         Use the new types and macros to port to 64-bit hosts.
53655         Use unsigned types for internal values, so that the code
53656         mostly works even for arrays larger than SSIZE_MAX.
53657         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
53658         (search_duplicated_node, calc_eclosure_iter, fetch_number):
53659         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
53660         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
53661         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
53662         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
53663         (calc_inveclosure, parse_dup_op, build_range_exp):
53664         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
53665         (fetch_number, create_token_tree, mark_opt_subexp):
53666         Likewise.
53667         * lib/regex_internal.c (re_string_construct_common,
53668         create_ci_newstate):
53669         (create_cd_newstate, re_string_allocate, re_string_construct):
53670         (re_string_realloc_buffers, build_wcs_upper_buffer):
53671         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
53672         (re_string_reconstruct, re_string_peek_byte_case):
53673         (re_string_fetch_byte_case, re_string_context_at):
53674         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
53675         (re_node_set_init_copy, re_node_set_add_intersect):
53676         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53677         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53678         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
53679         (re_acquire_state, re_acquire_state_context, register_state):
53680         Likewise.
53681         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
53682         search_cur_bkref_entry):
53683         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
53684         (re_search_internal, re_search_2_stub, re_search_stub)
53685         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
53686         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
53687         (update_cur_sifted_state, check_dst_limits):
53688         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53689         (check_subexp_limits, sift_states_bkref, merge_state_array):
53690         (check_subexp_matching_top, get_subexp, get_subexp_sub):
53691         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
53692         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
53693         (expand_bkref_cache, check_node_accept_bytes):
53694         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
53695         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
53696         (acquire_init_state_context, check_halt_node_context):
53697         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
53698         (sift_states_backward, clean_state_log_if_needed):
53699         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
53700         (find_recover_state, transit_state_sb, transit_state_mb):
53701         (transit_state_bkref, build_trtable, match_ctx_clean):
53702         Likewise.
53703         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
53704         to work around an assumption that REG_MISSING is negative.
53705
53706         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
53707         (seek_collating_symbol_entry) [defined _LIBC]:
53708         (lookup_collation_sequence_value) [defined _LIBC]:
53709         (build_range_exp, build_collating_symbol) [defined _LIBC]:
53710         Use prototypes rather than old-style function definitions.
53711         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
53712         (transit_state_sb) [0]:
53713         (find_collation_sequence_value) [defined _LIBC]: Likewise.
53714
53715         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
53716         rm_eo.
53717
53718         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
53719         (optimize_subexps, lower_subexp):
53720         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
53721         since the signed shift might overflow.  Use 1u<<31 instead.
53722         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53723         Likewise.
53724         * lib/regexec.c (check_dst_limits_calc_pos_1,
53725         check_subexp_matching_top): Likewise.
53726
53727         * lib/regcomp.c (optimize_subexps, lower_subexp):
53728         Use CHAR_BIT rather than 8, for clarity.
53729         * lib/regexec.c (check_dst_limits_calc_pos_1):
53730         (check_subexp_matching_top): Likewise.
53731         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
53732         have to worry about portability issues when shifting it left.
53733         Remove no-longer-needed test for table_size > 0.
53734         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
53735         in a word, as the resulting behavior is undefined.
53736         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
53737         in one case, a <= should have been an <, and in another case the
53738         whole test was missing.
53739         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
53740         the standard name CHAR_BIT.
53741         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
53742         this is not true on one's complement and signed-magnitude hosts.
53743
53744         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
53745         next_last_offset.
53746         (struct re_dfa_t): Remove unused member states_alloc.
53747         * lib/regcomp.c (init_dfa): Don't initialize unused members.
53748
53749 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53750
53751         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
53752         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
53753         and large-file glibc and in 32-bit large-file Solaris.
53754
53755 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53756
53757         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
53758         lengths fit in regoff_t; this isn't true if regoff_t is the same
53759         width as size_t.
53760         * lib/regex.c (re_search_internal): 5th arg is LAST_START
53761         (= START + RANGE) instead of RANGE.  This avoids overflow
53762         problems when regoff_t is the same width as size_t.
53763         All callers changed.
53764         (re_search_2_stub): Check for overflow when adding the
53765         sizes of the two strings.
53766         (re_search_stub): Check for overflow when adding START
53767         to RANGE; if it occurs, substitute the extreme value.
53768
53769 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
53770
53771         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
53772
53773 2005-08-31  Jim Meyering  <jim@meyering.net>
53774
53775         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
53776         a pointer-to-const.
53777         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
53778         (register_state): Likewise.
53779         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
53780         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
53781         (group_nodes_into_DFAstates): Likewise.
53782
53783 2005-08-31  Jim Meyering  <jim@meyering.net>
53784
53785         * check-module: Add a FIXME comment.
53786
53787 2005-08-31  Eric Blake  <ebb9@byu.net>
53788
53789         * modules/unistd-safer (Files): Add unistd--.h.
53790         * modules/stdio-safer (Files): Add stdio--.h.
53791
53792 2005-08-31  Derek Price  <derek@ximbiot.com>
53793
53794         * lib/getdelim.c (getdelim): Return EOF on EOF.
53795         Reported by Larry Jones <lawrence.jones@ugs.com>.
53796
53797 2005-08-31  Bruno Haible  <bruno@clisp.org>
53798
53799         Avoid unnecessary diffs in the generated lib/Makefile.am.
53800         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
53801         the generated files.
53802         (func_import): Don't set cmd.
53803
53804 2005-08-31  Bruno Haible  <bruno@clisp.org>
53805
53806         * lib/strstr.c: Include <stddef.h>, for NULL.
53807         * lib/strcasestr.c: Likewise.
53808         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53809
53810 2005-08-31  Bruno Haible  <bruno@clisp.org>
53811
53812         * gnulib-tool: New option --macro-prefix.
53813         (func_import): Use macro_prefix.
53814         (import): Handle option --macro-prefix.
53815
53816 2005-08-31  Bruno Haible  <bruno@clisp.org>
53817
53818         * gnulib-tool (import): Rename most ac_* variables to cached_*.
53819         Also use new variables cached_lgpl, cached_libtool.
53820
53821 2005-08-31  Bruno Haible  <bruno@clisp.org>
53822
53823         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
53824         always instantiating them.
53825
53826 2005-08-31  Bruno Haible  <bruno@clisp.org>
53827
53828         * gnulib-tool (func_import): Read the previous cached settings
53829         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
53830         earlier added by gnulib but are now dropped. Warn when a gnulib file
53831         overwrites a non-gnulib file.
53832
53833 2005-08-31  Bruno Haible  <bruno@clisp.org>
53834
53835         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
53836         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
53837         projects that don't keep autogenerated files in CVS. Put into
53838         actioncmd only the specified modules, not the transitive closure.
53839
53840 2005-08-31  Bruno Haible  <bruno@clisp.org>
53841
53842         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
53843         Create directories that shall be filled.
53844         (import): Don't look for gl_* macros in configure.ac. Recurse across
53845         all directories containing a gnulib-cache.m4 files, if meaningful.
53846
53847 2005-08-31  Bruno Haible  <bruno@clisp.org>
53848
53849         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
53850         (import): Set seen_libtool when we see gl_LIBTOOL.
53851
53852 2005-08-31  Bruno Haible  <bruno@clisp.org>
53853
53854         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
53855         declaration macro definitions from generated gnulib.m4.
53856
53857 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
53858
53859         * lib/iconvme.h: Add prototype for iconv_alloc.
53860
53861 2005-08-29  Simon Josefsson  <jas@extundo.com>
53862
53863         * lib/iconvme.c: Fix errno.
53864
53865 2005-08-29  Bruno Haible  <bruno@clisp.org>
53866
53867         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
53868         that it works when the directory contains spaces.
53869
53870 2005-08-29  Bruno Haible  <bruno@clisp.org>
53871
53872         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
53873
53874 2005-08-29  Bruno Haible  <bruno@clisp.org>
53875
53876         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
53877         Emit more advice.
53878
53879 2005-08-29  Bruno Haible  <bruno@clisp.org>
53880         and Stepan Kasal  <kasal@ucw.cz>
53881
53882         * check-module: If more parameters are given, check each of them
53883         separately; add more exceptions, as noted by Jim Meyering.
53884         (check_module): New procedure.
53885         (%exempt_header): Now contains all exceptions.
53886
53887 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
53888
53889         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
53890
53891 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53892
53893         * lib/iconvme.c: Split iconv_string into iconv_alloc.
53894
53895 2005-08-28  Bruno Haible  <bruno@clisp.org>
53896
53897         * m4/gnulib-tool.m4: New file.
53898
53899 2005-08-27  Jim Meyering  <jim@meyering.net>
53900
53901         * modules/unistd-safer (Files): Add pipe-safer.c.
53902         * modules/fcntl-safer (Files): Add creat-safer.c.
53903
53904 2005-08-27  Jim Meyering  <jim@meyering.net>
53905
53906         * m4/stdlib-safer.m4: New file.  From coreutils.
53907         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
53908         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
53909         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
53910         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
53911         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
53912
53913 2005-08-27  Jim Meyering  <jim@meyering.net>
53914
53915         * lib/fopen-safer.c: Merge minor changes from coreutils.
53916         * lib/dup-safer.c: Likewise.
53917         * lib/fd-safer.c: Likewise.
53918
53919         Merge from coreutils.
53920         * lib/stdio--.h: New file.
53921         * lib/stdlib--.h: New file.
53922         * lib/mkstemp-safer.c: New file.
53923
53924         GNU tar needs these.
53925         * lib/pipe-safer.c: New file.
53926         * lib/creat-safer.c: New file.
53927         * lib/fcntl--.h (creat): Define to creat_safer.
53928         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
53929         * lib/unistd--.h (pipe): Define to pipe_safer.
53930         * lib/unistd-safer.h: Declare pipe_safer.
53931
53932 2005-08-26  Simon Josefsson  <jas@extundo.com>
53933
53934         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
53935         Haible <bruno@clisp.org>.
53936
53937 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * lib/regex_internal.h: Remove all references to
53940         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
53941         or better.
53942         (bitset_not, bitset_merge, bitset_not_merge):
53943         (bitset_mask, re_string_allocate, re_string_construct):
53944         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
53945         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
53946         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
53947         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
53948         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
53949         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
53950         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
53951         (re_acquire_state_context):
53952         Remove unnecessary forward decls.
53953         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
53954         Put __attribute at function definition,
53955         now that the function decl has been removed.
53956         * lib/regex_internal.c (re_string_peek_byte_case):
53957         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
53958         Likewise.
53959
53960 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
53961
53962         * m4/regex.m4: Add AC_PREREQ(2.50).
53963         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
53964
53965 2005-08-25  Simon Josefsson  <jas@extundo.com>
53966
53967         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
53968         __fsetlocking.
53969
53970 2005-08-25  Simon Josefsson  <jas@extundo.com>
53971
53972         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
53973         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
53974         GLIBC specific code.
53975
53976 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53977
53978         Make regex safe for g++.  This fixes one real bug (an "err"
53979         that should have been "*err").  g++ problem reported by
53980         Sam Steingold.
53981         * lib/regex_internal.h (re_calloc): New macro, consistent with
53982         re_malloc etc.  All callers of calloc changed to use re_calloc.
53983         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
53984         not int.  All callers changed.
53985         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
53986         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
53987         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
53988         (find_recover_state): Change "err" to "*err"; this fixes what
53989         appears to be a real bug.
53990         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
53991         versus int.
53992
53993 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         * modules/regex (Depends-on): Add malloc, since the code
53996         assumes that !malloc(0) means failure.
53997
53998 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54001
54002         alloca modernization/simplification for regex.
54003         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54004         needs to be at the start of the file, and can be moved into
54005         regex_internal.h and simplified.
54006         * lib/regex_internal.h: Include <alloca.h>.
54007         (__libc_use_alloca) [!defined _LIBC]: New macro.
54008         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54009         now works outside glibc.
54010
54011 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54012
54013         * config/srclist.txt: Add glibc bugs 1241, 1245.
54014
54015 2005-08-25  Jim Meyering  <jim@meyering.net>
54016
54017         * lib/open-safer.c: Include <config.h>.
54018         Otherwise, we'd lose LARGEFILE support in any file using
54019         e.g. "fcntl--.h"
54020
54021 2005-08-25  Bruno Haible  <bruno@clisp.org>
54022
54023         * m4/minmax.m4: Require autoconf 2.52.
54024         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54025         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54026         alternatives of translit over the alphabet.
54027         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54028
54029 2005-08-24  Simon Josefsson  <jas@extundo.com>
54030
54031         * tests/test-getpass.c: New file.
54032
54033 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54036         for GNU regex features.
54037
54038 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54041         * lib/regex.h (regerror): Likewise.
54042
54043         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54044         requires this.  (The code never needed it.)
54045
54046         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54047         All uses of recently-renamed identifiers changed to use the new,
54048         POSIX-compliant names.  The code will build and run just fine
54049         without these changes, but it's better to eat our own dog food
54050         and use the standard-conforming names.
54051
54052         * lib/regex.h: Fix a multitude of POSIX name space violations.
54053         These changes have an effect only for programs that define
54054         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54055         do not change anything for programs compiled in the normal way.
54056         Also, there is no effect on the ABI.
54057
54058         (_REGEX_SOURCE): New macro.
54059         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54060         defined and _GNU_SOURCE is not; this fixes a name space violation.
54061
54062         Rename the following macros to obey POSIX requirements.
54063         The old names are still visible as macros if _REGEX_SOURCE is defined.
54064         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54065         RE_BACKSLASH_ESCAPE_IN_LISTS.
54066         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54067         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54068         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54069         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54070         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54071         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54072         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54073         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54074         (REG_INTERVALS): renamed from RE_INTERVALS.
54075         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54076         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54077         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54078         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54079         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54080         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54081         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54082         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54083         RE_UNMATCHED_RIGHT_PAREN_ORD.
54084         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54085         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54086         (REG_DEBUG): renamed from RE_DEBUG.
54087         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54088         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54089         unusual, since we can't clash with the POSIX REG_ICASE.
54090         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54091         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54092         (REG_NO_SUB): renamed from RE_NO_SUB.
54093         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54094         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54095         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54096         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54097         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54098         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54099         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54100         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54101         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54102         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54103         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54104         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54105         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54106         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54107         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54108         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54109         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54110         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54111         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54112         (REG_FIXED): Renamed from REGS_FIXED.
54113         (REG_NREGS): Renamed from RE_NREGS.
54114
54115         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54116         of other REG_* macros, since POSIX says the user is allowed to
54117         #undef these macros selectively.
54118
54119         (reg_errcode_t): Update comment stating what other tables need
54120         to be consistent.
54121
54122         Rename the following enum values to obey POSIX requirements.
54123         The old names are still visible as macros.
54124         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54125         is not defined, since GNU is supposed to be a superset of POSIX as
54126         much as possible, and since we want reg_errcode_t to be a signed
54127         type for implementation consistency.
54128         (_REG_NOERROR): Renamed from REG_NOERROR.
54129         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54130         (_REG_BADPAT): Renamed from REG_BADPAT.
54131         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54132         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54133         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54134         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54135         (_REG_EBRACK): Renamed from REG_EBRACK.
54136         (_REG_EPAREN): Renamed from REG_EPAREN.
54137         (_REG_EBRACE): Renamed from REG_EBRACE.
54138         (_REG_BADBR): Renamed from REG_BADBR.
54139         (_REG_ERANGE): Renamed from REG_ERANGE.
54140         (_REG_ESPACE): Renamed from REG_ESPACE.
54141         (_REG_BADRPT): Renamed from REG_BADRPT.
54142         (_REG_EEND): Renamed from REG_EEND.
54143         (_REG_ESIZE): Renamed from REG_ESIZE.
54144         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54145         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54146         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54147         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54148         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54149
54150         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54151         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54152         changed.  But support the old name if the new one is not defined
54153         and if _REGEX_SOURCE.
54154
54155         Change the following member names in struct re_pattern_buffer.
54156         The old names are still supported if !_REGEX_SOURCE.
54157         The new names are always supported, regardless of _REGEX_SOURCE.
54158         (re_buffer): Renamed from buffer.
54159         (re_allocated): Renamed from allocated.
54160         (re_used): Renamed from used.
54161         (re_syntax): Renamed from syntax.
54162         (re_fastmap): Renamed from fastmap.
54163         (re_translate): Renamed from translate.
54164         (re_can_be_null): Renamed from can_be_null.
54165         (re_regs_allocated): Renamed from regs_allocated.
54166         (re_fastmap_accurate): Renamed from fastmap_accurate.
54167         (re_no_sub): Renamed from no_sub.
54168         (re_not_bol): Renamed from not_bol.
54169         (re_not_eol): Renamed from not_eol.
54170         (re_newline_anchor): Renamed from newline_anchor.
54171
54172         Change the following member names in struct re_registers.
54173         The old names are still supported if !_REGEX_SOURCE.
54174         The new names are always supported, regardless of _REGEX_SOURCE.
54175         (rm_num_regs): Renamed from num_regs.
54176         (rm_start): Renamed from start.
54177         (rm_end): Renamed from end.
54178
54179         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54180         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54181         Prepend __ to parameter names.
54182
54183         Undo yesterday's changes.
54184
54185 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54186
54187         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54188         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54189         lib/regex.c.
54190
54191 2005-08-24  Jim Meyering  <jim@meyering.net>
54192
54193         Sync from coreutils.
54194         * m4/fcntl-safer.m4: New file.
54195
54196         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54197         and object files for this module.
54198
54199 2005-08-24  Jim Meyering  <jim@meyering.net>
54200
54201         Sync from coreutils.
54202         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54203
54204 2005-08-24  Jim Meyering  <jim@meyering.net>
54205
54206         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54207         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54208
54209 2005-08-24  Jim Meyering  <jim@meyering.net>
54210
54211         * modules/fcntl-safer: New module.
54212         * modules/fts (Depends-on): Add fcntl-safer.
54213         * MODULES.html.sh (File descriptor based Input/Output):
54214         Add fcntl-safer.
54215
54216 2005-08-24  Bruno Haible  <bruno@clisp.org>
54217
54218         Support for unit test modules.
54219         * modules/README: Mention tests modules.
54220         * modules/TEMPLATE-TESTS: New file.
54221         * gnulib-tool: New options --extract-tests-module, --with-tests and
54222         --tests-base (unused for the moment).
54223         (testsbase, inctests): New variables.
54224         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54225         (func_verify_module): Exclude TEMPLATE-TESTS.
54226         (func_verify_nontests_module, func_verify_tests_module): New functions.
54227         (func_get_dependencies): Add implicit dependency for tests modules.
54228         (func_get_tests_module): New function.
54229         (func_modules_transitive_closure): When --with-tests was specified,
54230         include the unit tests as well, unless explicitly avoided.
54231         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54232         (func_emit_tests_Makefile_am): New function.
54233         (func_create_testdir): When --with-tests was specified, emit a
54234         tests/ directory.
54235         * MODULES.html.sh (Future developments): Update.
54236
54237 2005-08-24  Bruno Haible  <bruno@clisp.org>
54238
54239         * modules/tls-tests: New file.
54240         * tests/test-tls.c: New file, from GNU gettext.
54241
54242 2005-08-24  Bruno Haible  <bruno@clisp.org>
54243
54244         * modules/lock-tests: New file.
54245         * tests/test-lock.c: New file, from GNU gettext.
54246
54247 2005-08-24  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/lock.h: Add multiple inclusion guard.
54250         * lib/tls.h: Add multiple inclusion guard.
54251
54252 2005-08-24  Bruno Haible  <bruno@clisp.org>
54253
54254         * gnulib-tool: Add support for the --aux-dir option to
54255         --create-testdir, --create-megatestdir, --test, --megatest.
54256         (func_create_testdir, func_create_megatestdir): Optionally emit a
54257         AC_CONFIG_AUX_DIR directive.
54258         (create-testdir, create-megatestdir, test, megatest): Provide a
54259         default value for $auxdir.
54260
54261 2005-08-24  Bruno Haible  <bruno@clisp.org>
54262
54263         * gnulib-tool (import): Use compound statement instead of subshell
54264         where possible.
54265
54266 2005-08-24  Bruno Haible  <bruno@clisp.org>
54267
54268         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54269
54270 2005-08-24  Bruno Haible  <bruno@clisp.org>
54271
54272         * gnulib-tool (func_version): Update.
54273
54274 2005-08-24  Bruno Haible  <bruno@clisp.org>
54275
54276         * gnulib-tool (func_import, func_create_testdir,
54277         func_create_megatestdir): Quote all autoconf macro arguments.
54278
54279 2005-08-24  Bruno Haible  <bruno@clisp.org>
54280
54281         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54282         option --force, because --force causes the aclocal.m4 of each
54283         subdirectory to be newer than the corresponding config.h.in.
54284
54285 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54286
54287         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54288         All contents moved to gl_REGEX.
54289         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54290         assume that it does.
54291
54292 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54293
54294         * lib/regex.h (REG_NOSYS)
54295         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54296         Define, since POSIX requires it as of 2001.
54297         (_REG_ENOSYS)
54298         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54299         New private symbol, used to keep the enum signed in all cases.
54300         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54301         Youngman in
54302         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54303
54304         * lib/regex_internal.c (re_string_skip_chars, register_state):
54305         (calc_state_hash):
54306         Remove forward decls; no longer needed now that we use prototypes.
54307         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54308         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54309         (clean_state_log_if_needed): Likewise.
54310
54311 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54312
54313         * config/srclist.txt: Add glibc bugs 1231-1233.
54314
54315 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         Fix problems reported by Sam Steingold in
54318         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54319         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54320         assumed that reg_errcode_t is a signed type, which is not
54321         necessarily true if _XOPEN_SOURCE is not defined.
54322         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54323         since some compilers warn about it otherwise.
54324
54325 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54326
54327         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54328         (init_word_char, create_initial_state, duplicate_node_closure):
54329         (fetch_token, peek_token_bracket, build_range_exp):
54330         (build_collating_symbol): Remove forward decls; no longer needed
54331         now that we use prototypes.
54332
54333         * lib/regcomp.c:
54334         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54335         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54336         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54337         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54338         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54339         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54340         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54341         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54342         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54343         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54344         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54345         (build_charclass, build_charclass_op, fetch_number, create_tree):
54346         (create_token_tree, mark_opt_subexp, duplicate_tree):
54347         Use prototypes rather than old-style definitions.
54348
54349         * lib/regex_internal.c:
54350         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54351         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54352         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54353         (re_string_reconstruct, re_string_peek_byte_case):
54354         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54355         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54356         (re_node_set_init_copy, re_node_set_add_intersect):
54357         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54358         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54359         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54360         (re_acquire_state, re_acquire_state_context, register_state):
54361         (create_ci_newstate, create_cd_newstate, free_state):
54362         Likewise.
54363         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54364         re_search_2):
54365         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54366         (re_search_internal, prune_impossible_nodes):
54367         (acquire_init_state_context, check_matching, static):
54368         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54369         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54370         (update_regs, sift_states_backward, build_sifted_states):
54371         (clean_state_log_if_needed, merge_state_array):
54372         (update_cur_sifted_state, add_epsilon_src_nodes):
54373         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54374         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54375         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54376         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54377         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54378         (check_arrival, check_arrival_add_next_nodes):
54379         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54380         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54381         (check_node_accept_bytes, check_node_accept, extend_buffers):
54382         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54383         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54384         (sift_ctx_init):
54385         Likewise.
54386
54387         * lib/regex_internal.h:
54388         (re_string_allocate, re_string_construct, re_string_reconstruct):
54389         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54390         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54391         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54392         (re_string_context_at, re_string_peek_byte_case):
54393         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54394         is defined, since we now use prototypes always.
54395
54396         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54397         C89 or better.  All uses removed.
54398
54399 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         * config/srclist.txt: Add glibc bugs 1220-1227.
54402
54403 2005-08-20  Jim Meyering  <jim@meyering.net>
54404
54405         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54406         of unused local, dfa.
54407
54408 2005-08-20  Bruno Haible  <bruno@clisp.org>
54409
54410         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54411
54412 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54413
54414         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54415         (re_node_set_insert_last, re_dfa_add_node):
54416         Rename local variables to avoid GCC shadowing warnings.
54417
54418 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54421         [defined lint]: Suppress bogus uninitialized-variable warnings.
54422
54423         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54424         and let the caller return REG_ESPACE if out of space.  This
54425         removes an uninitialied-variable warning with GCC 4.0.1, and also
54426         avoids taking the address of a local variable.  All callers
54427         changed.
54428
54429 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54430
54431         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54432         $LIBCSRC/posix/regexec.c.
54433         Add glibc bug 1217 for regcomp.c.
54434
54435 2005-08-19  Jim Meyering  <jim@meyering.net>
54436
54437         * lib/regexec.c (proceed_next_node): Redo local variables to
54438         avoid GCC shadowing warnings.
54439
54440 2005-08-18  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/strstr.c (strstr): Fix return value in multibyte case.
54443         * lib/strcasestr.c (strcasestr): Likewise.
54444
54445 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54446
54447         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54448
54449 2005-08-17  Jim Meyering  <jim@meyering.net>
54450
54451         Make the %s format (seconds since the epoch) work for a negative
54452         number and when used with a zero-padded field width, e.g. %015s.
54453
54454         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54455         label so that it precedes the code to set `digits'.  Otherwise,
54456         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54457         print `00-22'.  Now, it prints `-0022', as it should.
54458
54459 2005-08-17  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/strstr (Files): Add m4/mbrtowc.m4.
54462         (Depends-on): Add mbuiter.
54463
54464 2005-08-17  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/strcasestr: New file.
54467         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54468         strcasestr.
54469
54470 2005-08-17  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54473
54474 2005-08-17  Bruno Haible  <bruno@clisp.org>
54475
54476         * modules/mbuiter: New file.
54477         * MODULES.html.sh (Extended multibyte and wide character utilities):
54478         Add mbuiter.
54479
54480 2005-08-17  Bruno Haible  <bruno@clisp.org>
54481
54482         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54483         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54484
54485 2005-08-17  Bruno Haible  <bruno@clisp.org>
54486
54487         * m4/strcasestr.m4: New file.
54488
54489 2005-08-17  Bruno Haible  <bruno@clisp.org>
54490
54491         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54492         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54493
54494 2005-08-17  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/strcasestr.h: New file.
54497         * lib/strcasestr.c: New file.
54498
54499 2005-08-17  Bruno Haible  <bruno@clisp.org>
54500
54501         * lib/strcasecmp.c: Use mbuiter.h.
54502
54503 2005-08-17  Bruno Haible  <bruno@clisp.org>
54504
54505         * lib/mbuiter.h: New file.
54506
54507 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54510         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54511         and gl_GETOPT are both invoked via different paths (as happens
54512         with GNU tar CVS because it uses both argp and getopt), the former
54513         wins.
54514
54515 2005-08-16  Bruno Haible  <bruno@clisp.org>
54516
54517         * modules/tls: New file.
54518         * MODULES.html.sh (Multithreading): Add tls.
54519
54520 2005-08-16  Bruno Haible  <bruno@clisp.org>
54521
54522         * modules/strnlen1: New file.
54523         * MODULES.html.sh (String handling): Add strnlen1.
54524
54525 2005-08-16  Bruno Haible  <bruno@clisp.org>
54526
54527         * modules/strcase (Files): Add m4/mbrtowc.m4.
54528         (Depends-on): Add strnlen1, mbchar.
54529
54530 2005-08-16  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/mbiter: New file.
54533         * MODULES.html.sh (Extended multibyte and wide character utilities):
54534         Add mbiter.
54535
54536 2005-08-16  Bruno Haible  <bruno@clisp.org>
54537
54538         * modules/mbfile: New file.
54539         * MODULES.html.sh (Extended multibyte and wide character utilities):
54540         Add mbfile.
54541
54542 2005-08-16  Bruno Haible  <bruno@clisp.org>
54543
54544         * modules/mbchar: New file.
54545         * MODULES.html.sh (Extended multibyte and wide character utilities):
54546         New section.
54547
54548 2005-08-16  Bruno Haible  <bruno@clisp.org>
54549
54550         * m4/tls.m4: New file, from GNU gettext.
54551
54552 2005-08-16  Bruno Haible  <bruno@clisp.org>
54553
54554         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
54555         always.
54556         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
54557
54558 2005-08-16  Bruno Haible  <bruno@clisp.org>
54559
54560         * m4/mbiter.m4: New file.
54561
54562 2005-08-16  Bruno Haible  <bruno@clisp.org>
54563
54564         * m4/mbfile.m4: New file.
54565
54566 2005-08-16  Bruno Haible  <bruno@clisp.org>
54567
54568         * m4/mbchar.m4: New file.
54569
54570 2005-08-16  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/tls.h: New file, from GNU gettext.
54573         * lib/tls.c: New file, from GNU gettext.
54574
54575 2005-08-16  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/strnlen1.h: New file.
54578         * lib/strnlen1.c: New file.
54579
54580 2005-08-16  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
54583         (mbi_init): Update.
54584         (mbi_avail, mbi_advance): Let the iteration end before the terminating
54585         NUL byte, not after it.
54586
54587 2005-08-16  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/strcase.h (strcasecmp): Add note in comments.
54590         * lib/strncasecmp.c: Use code from strcasecmp.c.
54591         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
54592         (strcasecmp): Work correctly in multibyte locales.
54593
54594 2005-08-16  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/mbiter.h: New file.
54597
54598 2005-08-16  Bruno Haible  <bruno@clisp.org>
54599
54600         * lib/mbfile.h: New file.
54601
54602 2005-08-16  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/mbchar.h: New file.
54605         * lib/mbchar.c: New file.
54606
54607 2005-08-16  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
54610         the valid ones. Makes the comparison operations transitive:
54611         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
54612         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
54613
54614 2005-08-15  Simon Josefsson  <jas@extundo.com>
54615
54616         * modules/ssize_t (License): Change to 'unlimited'.
54617
54618         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
54619
54620 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
54623         Add comments for each pending glibc patch.
54624
54625 2005-08-15  Bruno Haible  <bruno@clisp.org>
54626
54627         * lib/regex.h (__restrict_arr): Don't define to __restrict if
54628         __cplusplus is defined.
54629
54630 2005-08-14  Jim Meyering  <jim@meyering.net>
54631
54632         Sync from coreutils.
54633
54634         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
54635         Use the hash-table-based cycle-detection code not just when
54636         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
54637         Reported by James Youngman in
54638         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
54639         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
54640         FTS_TIGHT_CYCLE_CHECK.
54641         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
54642         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
54643         once again.
54644         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
54645         * lib/fts.c (fd_safer): Remove decl.
54646         Include fcntl--.h rather than unistd-safer.h
54647         (fts_safe_changedir): Don't call fd_safer; no longer needed
54648         now that we include fcntl--.h.
54649
54650 2005-08-12  Simon Josefsson  <jas@extundo.com>
54651
54652         * modules/getndelim2: Use ssize_t module.
54653         * modules/getnline: Likewise.
54654         * modules/safe-read: Likewise.
54655         * modules/xreadlink: Likewise.
54656
54657         * modules/ssize_t: New file.
54658
54659 2005-08-12  Simon Josefsson  <jas@extundo.com>
54660
54661         * m4/readline.m4: Look for termcap, curses or ncurses if required.
54662
54663 2005-08-12  Simon Josefsson  <jas@extundo.com>
54664
54665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54666         ssize_t.
54667
54668 2005-08-12  Simon Josefsson  <jas@extundo.com>
54669
54670         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
54671         readline, getdelim and check_version.
54672         (Support for systems lacking ISO C 99: Sizes of integer types):
54673         Add size_max.
54674
54675 2005-08-12  Bruno Haible  <bruno@clisp.org>
54676
54677         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
54678
54679 2005-08-11  Simon Josefsson  <jas@extundo.com>
54680
54681         * modules/readline: New file.
54682
54683         * modules/strnlen (Files): Add strnlen.h.
54684
54685 2005-08-11  Simon Josefsson  <jas@extundo.com>
54686
54687         * m4/readline.m4: New file.
54688
54689 2005-08-11  Simon Josefsson  <jas@extundo.com>
54690
54691         * lib/readline.h, readline.c: New file.
54692
54693 2005-08-11  Simon Josefsson  <jas@extundo.com>
54694
54695         * doc/gnulib.texi (Initial import, Finishing touches): Mention
54696         gl_AVOID.
54697
54698 2005-08-11  Bruno Haible  <bruno@clisp.org>
54699
54700         * lib/strnlen.h (strnlen): Change parameter name to match comment.
54701
54702 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
54703
54704         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
54705
54706 2005-08-10  Simon Josefsson  <jas@extundo.com>
54707
54708         * tests/test-iconvme.c: New file.
54709
54710 2005-08-10  Simon Josefsson  <jas@extundo.com>
54711
54712         * m4/strnlen.m4: New file.
54713
54714         * m4/strndup.m4: Don't check for strnlen declaration, done in
54715         strnlen.m4.
54716
54717 2005-08-10  Simon Josefsson  <jas@extundo.com>
54718
54719         * lib/strndup.c: Use strnlen.h.
54720
54721         * lib/strnlen.h: New file.
54722
54723 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54724
54725         * README: Typos.
54726
54727 2005-08-02  Simon Josefsson  <jas@extundo.com>
54728
54729         * modules/readline: New file.
54730
54731 2005-08-02  Simon Josefsson  <jas@extundo.com>
54732
54733         * modules/getdelim: New file.
54734
54735         * modules/getline: Rewrite, don't use getndelim2.
54736
54737 2005-08-02  Simon Josefsson  <jas@extundo.com>
54738
54739         * m4/getline.m4: Separate out getdelim stuff into separate module.
54740
54741         * m4/getdelim.m4: New file.
54742
54743 2005-08-02  Simon Josefsson  <jas@extundo.com>
54744
54745         * lib/getline.h, getline.c: Rewrite.
54746
54747         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
54748
54749 2005-07-31  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/lock.h (gl_lock_initializer): New macro.
54752         (gl_lock_define_initialized): Use it.
54753         (gl_rwlock_initializer): New macro.
54754         (gl_rwlock_define_initialized): Use it.
54755         (gl_recursive_lock_initializer): New macro.
54756         (gl_recursive_lock_define_initialized): Use it.
54757
54758 2005-07-30  Karl Berry  <karl@gnu.org>
54759
54760         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
54761         Report from Ben Pfaff, regarding getopt.
54762
54763 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
54764
54765         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
54766         normal way.
54767         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
54768         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
54769         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
54770         (gl_GETOPT): Use the new macros.  Most of the implementation
54771         is moved to the new macros.  This is for programs like Emacs
54772         that don't want all the functionality of gl_GETOPT.
54773
54774 2005-07-26  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/lock.m4: Update from GNU gettext.
54777
54778 2005-07-26  Bruno Haible  <bruno@clisp.org>
54779
54780         * lib/lock.h: Update from GNU gettext.
54781         * lib/lock.c: Update from GNU gettext.
54782
54783 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
54784
54785         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
54786         obsolescent AC_TRY_RUN.  Include the default includes files, for
54787         'exit'.
54788
54789 2005-07-24  Bruno Haible  <bruno@clisp.org>
54790
54791         * modules/visibility: New file.
54792         * MODULES.html.sh (Misc): Add visibility.
54793
54794 2005-07-24  Bruno Haible  <bruno@clisp.org>
54795
54796         * m4/visibility.m4: New file.
54797
54798 2005-07-24  Bruno Haible  <bruno@clisp.org>
54799
54800         * doc/visibility.texi: New file.
54801
54802 2005-07-22  Bruno Haible  <bruno@clisp.org>
54803
54804         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
54805         $(ALLOCA_H), redundant through BUILT_SOURCES.
54806         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
54807         redundant through BUILT_SOURCES.
54808         * modules/byteswap (Makefile.am): Remove explicit dependency on
54809         $(BYTESWAP_H), redundant through BUILT_SOURCES.
54810         * modules/fnmatch (Makefile.am): Remove explicit dependency on
54811         $(FNMATCH_H), redundant through BUILT_SOURCES.
54812         * modules/getopt (Makefile.am): Remove explicit dependency on
54813         $(GETOPT_H), redundant through BUILT_SOURCES.
54814         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
54815         redundant through BUILT_SOURCES.
54816         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
54817         redundant through BUILT_SOURCES.
54818         * modules/stdbool (Makefile.am): Remove explicit dependency on
54819         $(STDBOOL_H), redundant through BUILT_SOURCES.
54820         * modules/stdint (Makefile.am): Remove explicit dependency on
54821         $(STDINT_H), redundant through BUILT_SOURCES.
54822         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
54823         Remove explicit dependency on $(SYSEXITS_H).
54824         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
54825
54826 2005-07-18  Simon Josefsson  <jas@extundo.com>
54827
54828         * lib/check-version.c (check_version): Accept identical versions too.
54829
54830 2005-07-18  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/lock: New file.
54833         * MODULES.html.sh (Multithreading): New section.
54834
54835 2005-07-18  Bruno Haible  <bruno@clisp.org>
54836
54837         * m4/lock.m4: New file, from GNU gettext.
54838
54839 2005-07-18  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/lock.h: New file, from GNU gettext.
54842         * lib/lock.c: New file, from GNU gettext.
54843
54844 2005-07-18  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/lock.h (gl_once_t): New type.
54847         (gl_once_define, gl_once): New macros.
54848         * lib/lock.c (fresh_once): New variable.
54849         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
54850         functions.
54851
54852 2005-07-16  Simon Josefsson  <jas@extundo.com>
54853
54854         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
54855         workaround, suggested by Bruno.
54856
54857 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54858
54859         * modules/xalloc (Depends-on): Add xalloc-die.
54860         * modules/xvasprintf (Depends-on): Add xalloc-die.
54861
54862 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
54863
54864         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
54865         with a minor change.
54866
54867 2005-07-15  Bruno Haible  <bruno@clisp.org>
54868
54869         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
54870         When using lib/poll.c, define poll as rpl_poll.
54871
54872 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * modules/argp (Depends-on): Remove unlocked-io.
54875
54876 2005-07-14  Derek Price  <derek@ximbiot.com>
54877
54878         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
54879         for glob symlink bug.
54880
54881 2005-07-14  Bruno Haible  <bruno@clisp.org>
54882
54883         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
54884         Instead, test for *_unlocked function declarations directly.
54885
54886 2005-07-11  Simon Josefsson  <jas@extundo.com>
54887
54888         * modules/size_max: New file.
54889
54890         * modules/xsize: Depend on size_max module for size_max.m4.
54891
54892 2005-07-11  Simon Josefsson  <jas@extundo.com>
54893
54894         * lib/size_max.h: New file.
54895
54896 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
54897
54898         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
54899         copyright symbol and the year.
54900         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
54901         (version_etc_va): Use parameterized copyright notice.
54902         Reword to conform to the current GNU coding standards.
54903
54904 2005-07-11  Karl Berry  <karl@gnu.org>
54905
54906         * doc/gnulib.texi (Quoting): new node.
54907         (Initial import): more info, from Patrice.
54908
54909 2005-07-11  Bruno Haible  <bruno@clisp.org>
54910
54911         * gnulib-tool (func_usage): Document option --avoid.
54912         (Command line options): Handle --avoid.
54913         (func_acceptable): New function.
54914         (func_modules_transitive_closure): Use it.
54915
54916 2005-07-11  Bruno Haible  <bruno@clisp.org>
54917
54918         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
54919         Reported by Jim Meyering.
54920
54921 2005-07-10  Bruno Haible  <bruno@clisp.org>
54922
54923         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
54924         Needed when size_t is smaller than 'unsigned int'.
54925         Reported by Paul Eggert.
54926
54927 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54928
54929         * modules/argp (Depends-on): Add unlocked-io
54930
54931 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54932
54933         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
54934         block of defines.
54935
54936 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
54937
54938         * config/srclist.txt: Comment out regcomp.c, since we have a porting
54939         fix now.
54940
54941 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
54942         and Paul Eggert  <eggert@cs.ucla.edu>
54943
54944         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
54945         in wint_t, not wchar_t.  Remove now-unnecessary cast.
54946
54947 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54948
54949         * modules/regex (Files): Add lib/regex_internal.c,
54950         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
54951         (Depends-on): Add extensions.
54952         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
54953
54954 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54955
54956         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
54957         pathconf.
54958         * m4/same.m4 (gl_SAME): Likewise.
54959         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
54960
54961         * m4/regex.m4: Adjust to new libc regex implementation.
54962         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
54963         all the .c and .h parts of (the new) regex.
54964         Quote the m4 stuff better.
54965         Check for RE_ICASE bug of old gnulib.
54966         Check for REG_STARTEND of recent libc.
54967         Rename local variables from jm_* to gl_*.
54968         Quote operand of "test -f".
54969         Say "recent enough" version of libc, not "version 2".
54970         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
54971         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
54972         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
54973         Remove check for btowc, isascii.
54974         Require AM_LANGINFO_CODESET.
54975
54976 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * lib/regex.c, regex.h: Sync from libc.
54979         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
54980         * lib/regexec.c:
54981         New files, synced from libc, except that regex_internal.h
54982         currently has a small porting fix.
54983
54984 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
54987         regex_internal.c, regexec.c.
54988         Add regex_internal.h too, but as a comment, since the libc version
54989         is currently broken in gnulib mode.
54990
54991 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
54992
54993         Support programs like Emacs that use gnulib but not gettext.
54994         * MODULES.html.sh (Internationalization functions): Add gettext-h.
54995         * modules/gettext-h: New file.
54996         * modules/gettext (Files): Remove lib/gettext.h.
54997         (Depends-on): Add gettext-h.
54998         (Makefile.am): Remove lib_SOURCES.
54999         * modules/argmatch, modules/c-stack, modules/closeout:
55000         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55001         * modules/execute, modules/file-type, modules/getaddrinfo:
55002         * modules/getopt, modules/human, modules/javacomp:
55003         * modules/javaexec, modules/mkdir-p, modules/obstack:
55004         * modules/openat, modules/pagealign_alloc, modules/pipe:
55005         * modules/quotearg, modules/regex, modules/rpmatch:
55006         * modules/unicodeio, modules/userspec, modules/version-etc:
55007         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55008         * modules/xsetenv:
55009         Depend on gettext-h, not gettext.
55010
55011 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55012
55013         * gnulib-tool (func_import): Add support for 'public domain' license.
55014         * modules/alloca, modules/atexit, modules/memmove:
55015         Now public domain, not GPL.
55016         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55017         * modules/realloc, modules/strerror, modules/strtod:
55018         Now LGPL, not GPL.
55019
55020 2005-07-05  Bruno Haible  <bruno@clisp.org>
55021
55022         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55023         autoconf CVS. Needed for mingw.
55024
55025 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         Remove the dependency of the strftime module on the tzset module.
55028         * modules/strftime (Depends-on): Remove dependency on tzset.
55029
55030 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55031
55032         Remove the dependency of the strftime module on the tzset module.
55033         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55034         gl_FUNC_TZSET_CLOBBER.
55035
55036 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55037
55038         Remove the dependency of the strftime module on the tzset module.
55039         * lib/strftime.c (my_strftime)
55040         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55041         Copy the input structure, to work around some of the bug with
55042         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55043         Solaris releases, you should also use the tzset module, but we won't
55044         require it as a dependency any more since we don't want LGPLed code
55045         to depend on GPLed code.
55046
55047 2005-07-02  Jim Meyering  <jim@meyering.net>
55048
55049         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55050         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55051         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55052         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55053
55054 2005-07-02  Jim Meyering  <jim@meyering.net>
55055
55056         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55057
55058 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55059
55060         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55061         declares only 'struct timespec;' (!).
55062
55063 2005-07-01  Jim Meyering  <jim@meyering.net>
55064
55065         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55066         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55067         * lib/save-cwd.c, tempname.c:
55068         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55069         and don't include <sys/file.h>).
55070
55071 2005-06-29  Jim Meyering  <jim@meyering.net>
55072
55073         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55074         type name.  Use the variable name instead.
55075         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55076         Likewise.
55077
55078 2005-06-28  Simon Josefsson  <jas@extundo.com>
55079
55080         * modules/check-version (Files): Add check-version.m4.
55081
55082 2005-06-28  Simon Josefsson  <jas@extundo.com>
55083
55084         * m4/check-version.m4: New file, suggested by Jim Meyering
55085         <jim@meyering.net>.
55086
55087 2005-06-28  Simon Josefsson  <jas@extundo.com>
55088
55089         * lib/check-version.h, lib/check-version.c: New files.
55090
55091 2005-06-28  Simon Josefsson  <jas@extundo.com>
55092
55093         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55094         collision with global variable.  Better indentation.  Don't
55095         increment buffer pointer beyond buffer end.  Based on comments
55096         from Paul Eggert <eggert@cs.ucla.edu>.
55097
55098         * lib/base64.h: Indent.
55099
55100 2005-06-28  Simon Josefsson  <jas@extundo.com>
55101
55102         * doc/gnulib.texi (Library version handling): New section.
55103
55104 2005-06-28  Jim Meyering  <jim@meyering.net>
55105
55106         * check-module (find_included_lib_files): Hard-code another
55107         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55108         but modules/fts-lgpl (correctly) does not list those files.
55109
55110         * modules/canonicalize (Files): Add lib/pathmax.h.
55111
55112 2005-06-25  Simon Josefsson  <jas@extundo.com>
55113
55114         * modules/check-version: New file.
55115
55116 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55117
55118         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55119         initializer of struct addrinfo, as an indication that we don't
55120         care how many members the structure has.
55121
55122 2005-06-24  Derek Price  <derek@ximbiot.com>
55123         and Bruno Haible  <bruno@clisp.org>
55124
55125         Remove stat module & update lstat.
55126         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55127         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55128         * m4/stat.m4: Remove this file.
55129
55130 2005-06-24  Derek Price  <derek@ximbiot.com>
55131         and Bruno Haible  <bruno@clisp.org>
55132
55133         Remove stat module & update lstat.
55134         * lib/stat.c: Remove this file...
55135         (slash_aware_lstat): ...moving this content and its support...
55136         * lib/lstat.c (rpl_lstat): ...into here.
55137         * lib/lstat.h: New file.
55138
55139 2005-06-24  Derek Price  <derek@ximbiot.com>
55140         and Bruno Haible  <bruno@clisp.org>
55141
55142         Remove stat module & update lstat.
55143         * config/srclist.txt (libc sources): Remove stat.
55144
55145 2005-06-24  Derek Price  <derek@ximbiot.com>
55146         and Bruno Haible  <bruno@clisp.org>
55147
55148         Remove stat module & update lstat.
55149         * MODULES.html.sh (stat): Remove.
55150         * MODULES.html: Regenerated.
55151         * modules/lstat (Description): Correct function name.
55152         (Files): Add "lstat.h".
55153         (Depends-on): Remove stat, add xalloc, stat-macros.
55154         * modules/stat: Remove this file.
55155         (Include): Add "lstat.h", remove <sys/stat.h>.
55156
55157 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55158
55159         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55160         (ranged_convert): Don't save conversion in a temporary struct.
55161         This causes a warning with GCC 4.0.0, and anyway in the typical
55162         case it's not worth the extra 100 bytes or so of code.
55163         (ranged_convert, __mktime_internal): When calling a function via a
55164         pointer P, use P () rather than (*P) (), as we now assume C89 or
55165         better.
55166
55167 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55168
55169         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55170         "who -r" failed to give output.  Problem reported by Tim Waugh.
55171
55172         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55173         (xcalloc): Use it to avoid needless tests.
55174         Problem reported by Jim Meyering.
55175
55176 2005-06-20  Derek Price  <derek@ximbiot.com>
55177
55178         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55179         unnecessary for Autoconfs > 2.59c.
55180
55181 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55182
55183         * lib/argp.h (__option_is_short): Check upper limit of
55184         __key. Isprint() requires its argument to have the value
55185         of an unsigned char or EOF.
55186
55187 2005-06-16  Jim Meyering  <jim@meyering.net>
55188
55189         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55190         when either N or S is zero.
55191
55192 2005-06-16  Derek Price  <derek@ximbiot.com>
55193
55194         * m4/bison.m4: Declare YACC & YFLAGS precious.
55195
55196 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55197
55198         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55199         multibyte string or pattern, fall back on unibyte matching.
55200         Problem reported by James Youngman.
55201
55202 2005-06-08  Bruno Haible  <bruno@clisp.org>
55203
55204         * modules/csharpcomp: New file.
55205         * MODULES.html.sh (C#): Add csharpcomp.
55206
55207 2005-06-08  Bruno Haible  <bruno@clisp.org>
55208
55209         * m4/csharpcomp.m4: New file, from GNU gettext.
55210
55211 2005-06-08  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/csharpcomp.h: New file, from GNU gettext.
55214         * lib/csharpcomp.c: New file, from GNU gettext.
55215         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55216
55217 2005-06-08  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55220         warning on mingw.
55221
55222 2005-06-07  Derek Price  <derek@ximbiot.com>
55223
55224         Sync from CVS.
55225         * lib/glob_.h: Indent nested #ifdef.
55226
55227 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55228
55229         Sync from coreutils.
55230         Use "file name" when talking about file names, instead of "filename"
55231         or "path", as per the GNU coding standards.
55232         * lib/mkdir-p.c: Renamed from makepath.c.
55233         (make_dir_parents): Renamed from make_path.  All callers changed.
55234         * lib/mkdir-p.h: Likewise.  All includers changed.
55235         * lib/filenamecat.c: Renamed from path-concat.c.
55236         (file_name_concat): Renamed from path_concat.  All callers changed.
55237         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55238         * lib/filenamecat.h: Likewise.  All includers changed.
55239         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55240         in comments or local variable names.
55241         * lib/basename.c: Likewise.
55242         * lib/canonicalize.c, canonicalize.h: Likewise.
55243         * lib/dirname.c, dirname.h: Likewise.
55244         * lib/euidaccess.c: Likewise.
55245         * lib/exclude.c: Likewise
55246         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55247         * lib/fsusage.c, fsuage.h: Likewise.
55248         * lib/fts.c, fts_.h: Likewise.
55249         * lib/getcwd.c: Likewise.
55250         * lib/getloadavg.c: Likewise.
55251         * lib/mkstemp.c: Likewise.
55252         * lib/mountlist.c, mountlist.h: Likewise.
55253         * lib/openat.c, openat.h: Likewise.
55254         * lib/readlink-stub.c: Likewise.
55255         * lib/readutmp.c, readutmp.h: Likewise.
55256         * lib/rename.c: Likewise.
55257         * lib/rmdir.c: Likewise.
55258         * lib/same.c: Likewise.
55259         * lib/savedir.c: Likewise.
55260         * lib/stripslash.c: Likewise.
55261         * lib/tempname.c: Likewise.
55262         * lib/xreadlink.c: Likewise.
55263         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55264         All uses changed.
55265         * lib/exclude.h: Likewise.
55266
55267         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55268         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55269         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55270         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55271         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55272         files have been getting away with it for years (MORE/BSD 4.3
55273         is extinct now).
55274         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55275         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55276
55277         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55278         Define to 256, not 255, as per modern POSIX.
55279
55280 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         Sync from coreutils.
55283         Use "file name" when talking about file names, instead of "filename"
55284         or "path", as per the GNU coding standards.
55285         * MODULES.html.sh: mkdir-p renamed from makepath.
55286         filenamecat renamed from path-concat.
55287         * modules/filenamecat: Renamed from modules/path-concat.
55288         (Files): filenamecat.h and filenamecat.c renamed from
55289         path-concat.h and path-concat.c.
55290         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55291         (Include): filenamecat.h, not path-concat.h.
55292         * modules/mkdir-p: Renamed from modules/makepath.
55293         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55294         makepath.c.
55295         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55296         (Include): mkdir-p.h, not makepath.h.
55297
55298 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         Sync from coreutils.
55301         * m4/mkdir-p.m4: Renamed from makepath.m4.
55302         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55303         Rename files from makepath.c to mkdir-p.c, and from
55304         makepath.h to mkdir-p.h.
55305         * m4/filenamecat.m4: Renamed from path-concat.m4.
55306         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55307         Rename files from path-concat.c to filenamecat.c,
55308         and from path-concat.h to filenamecat.h.
55309         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55310         "file name" in local variables or comments.
55311         * m4/rename.m4: Likewise.
55312
55313 2005-06-01  Bruno Haible  <bruno@clisp.org>
55314
55315         * modules/csharpexec: New file.
55316         * MODULES.html.sh (C#): New section.
55317
55318 2005-06-01  Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/csharp.m4: New file, from GNU gettext.
55321         * m4/csharpexec.m4: New file, from GNU gettext.
55322
55323 2005-06-01  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/csharpexec.h: New file, from GNU gettext.
55326         * lib/csharpexec.c: New file, from GNU gettext.
55327         * lib/csharpexec.sh.in: New file, from GNU gettext.
55328
55329 2005-05-31  Derek Price  <derek@ximbiot.com>
55330             Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         Sync from cvs.
55333         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55334
55335 2005-05-31  Derek Price  <derek@ximbiot.com>
55336             Paul Eggert  <eggert@cs.ucla.edu>
55337
55338         Sync from cvs.
55339         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55340
55341 2005-05-29  Derek Price  <derek@ximbiot.com>
55342
55343         * config/srclist.txt (glob_.h, glob.c): Add these files.
55344
55345 2005-05-29  Derek Price  <derek@ximbiot.com>
55346
55347         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55348         * modules/glob: New file.
55349         * modules/getlogin_r: Add link to POSIX spec in description.
55350
55351 2005-05-29  Derek Price  <derek@ximbiot.com>
55352             Paul Eggert  <eggert@cs.ucla.edu>
55353
55354         * m4/glob.m4: New file.
55355
55356 2005-05-29  Derek Price  <derek@ximbiot.com>
55357             Paul Eggert  <eggert@cs.ucla.edu>
55358
55359         * lib/glob_.h, lib/glob.c: New files.
55360
55361 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55364         * modules/fts-lgpl (Depends-on): Remove gettext.
55365
55366 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55367
55368         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55369         and don't require gt_INTTYPES_PRI.
55370
55371 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55374
55375         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55376         the configuration hassle isn't worth it.
55377         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55378         (LONGEST_MODIFIER, PRIuMAX): Remove.
55379
55380 2005-05-27  Bruno Haible  <bruno@clisp.org>
55381
55382         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55383
55384 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55387         _POSIX_PTHREAD_SEMANTICS for Solaris.
55388
55389 2005-05-25  Derek Price  <derek@ximbiot.com>
55390
55391         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55392
55393 2005-05-25  Derek Price  <derek@ximbiot.com>
55394             Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55397         * lib/getlogin_r.c, getlogin_r.h: New files.
55398
55399 2005-05-25  Bruno Haible  <bruno@clisp.org>
55400             Derek Price  <derek@ximbiot.com>
55401
55402         * lib/getlogin_r.h: Simplify API documentation.
55403
55404 2005-05-23  Derek Price  <derek@ximbiot.com>
55405
55406         * modules/minmax (Files): Add m4/minmax.m4.
55407         (configure.ac): Add gl_MINMAX.
55408
55409 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55410
55411         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55412         so that unistd-safer.h (GPL'ed code) need not be included.
55413
55414 2005-05-22  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/minmax.m4: New file.
55417         Based on a patch by Derek Price <derek@ximbiot.com>.
55418
55419 2005-05-22  Bruno Haible  <bruno@clisp.org>
55420
55421         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55422         (INT64_MIN): Fix definition.
55423         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55424
55425         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55426         NEED_SIGNED_INT_TYPES.
55427
55428         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55429         HAVE_SYSTEM_INTTYPES.
55430
55431 2005-05-22  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55434         Also include <sys/param.h> if it defines MIN, MAX.
55435         Based on a patch by Derek Price <derek@ximbiot.com>.
55436
55437 2005-05-21  Jim Meyering  <jim@meyering.net>
55438
55439         * modules/fts (Files): Add m4/inttypes-pri.m4.
55440         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55441
55442 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         New fts module.
55445         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55446         (setup_dir, free_dir): New functions.
55447         (enter_dir, leave_dir): Define trivial
55448         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55449         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55450         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55451         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55452         Move to fts-cycle.c.
55453         (fts_open): Use setup_dir.
55454         (fts_close): Use free_dir.
55455         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55456         This adds a label and some gotos, but the alternatives were messier.
55457         Check for memory allocation failure when entering a dir.
55458         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55459         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55460         (FTS): New member fts_cycle, that is a union that contains the
55461         old active_dir_ht and cycle_state.  All uses changed to mention
55462         fts_cycle.ht and fts_cycle.state.
55463         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55464         fts.c, with the following changes:
55465         (setup_dir, free_dir): New functions.
55466         (enter_dir): Now returns bool.  Return true if successful, false
55467         if memory exhausted.  All callers changed.
55468         Do not bother partly cleaning up on
55469         memory allocation failure; that is free_dir's job.
55470         However, free ad if hash_insert fails, to avoid memory leak.
55471         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55472         fts->fts_options to see which union member to use.
55473
55474 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55475
55476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55477         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55478
55479 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55480
55481         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55482
55483 2005-05-20  Jim Meyering  <jim@meyering.net>
55484
55485         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55486         Now a macro, to pacify GCC.
55487
55488 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55489
55490         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55491         of -1.
55492
55493 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55494
55495         * lib/chown.c (rpl_chown): Return -1 on failure.
55496
55497 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55498
55499         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55500         Don't check for stddef.h.
55501         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55502         don't use its results.
55503         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55504         since we include them unconditionally.  Don't require
55505         AM_STDBOOL_H, since stdbool is a prerequisite.
55506         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55507         since we assume C89 or better.
55508         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55509         as we don't use their results.
55510         Don't check for fchdir, memmove, memset, strrchr, as we use
55511         them unconditionally.
55512         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55513         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55514
55515 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55516
55517         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55518         Include <stddef.h> unconditionally, since we assume C89 now.
55519         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55520         * lib/fts.c: Include fts_.h first, to check interface.
55521         Do not include intprops.h; no longer needed.
55522         Include cycle-check.h and hash.h, since fts_.h no longer does.
55523         Remove unnecessary casts of closedir to void.
55524         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55525         decide whether to decrement nlinks.
55526         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
55527         (FTS): Use struct hash_table * instead of Hash_table, so that
55528         we no longer need to include hash.h here.
55529
55530 2005-05-18  Jim Meyering  <jim@meyering.net>
55531
55532         * modules/dirfd (License): Change to LGPL.  Most of the code
55533         is already in the public domain.
55534
55535 2005-05-18  Jim Meyering  <jim@meyering.net>
55536
55537         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
55538         Reported by Yoann Vandoorselaere.
55539
55540 2005-05-17  Jim Meyering  <jim@meyering.net>
55541
55542         * m4/fts.m4: New file, from coreutils.
55543
55544 2005-05-17  Jim Meyering  <jim@meyering.net>
55545
55546         * lib/fts.c, lib/fts_.h: New files, from coreutils.
55547
55548 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55549
55550         Sync from coreutils.
55551         * m4/unlinkdir.m4: New file.
55552
55553 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55554
55555         Sync from coreutils.
55556         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
55557         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
55558         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
55559         White space changes only.
55560         * lib/makepath.c (make_path): Port to hosts where leading "//" is
55561         special.
55562         * lib/yesno.c: Include getline.h, not ctype.h.
55563         (yesno): Don't remove leading white space; POSIX doesn't allow it.
55564         Use getline to remove arbitrary restriction on response length.
55565
55566 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
55567
55568         * config/srclist-update: Spell out "Street" in FSF postal
55569         mail address; this is the style the FSF seems to prefer.
55570
55571         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
55572         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
55573         this updates FSF postal mail address.
55574
55575         Sync from coreutils.
55576         * modules/unlinkdir: New file.
55577         * modules/yesno (Depends-on): Add getline.
55578         * MODULES.html.sh (File system functions): Add unlinkdir.
55579
55580 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55581
55582         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
55583         lib/strsep.h:
55584         Change the initial comment to refer to GPL, not LGPL.
55585         gnulib-tool will change it to LGPL as needed.
55586
55587         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
55588         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
55589         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
55590         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
55591         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
55592         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
55593         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
55594         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
55595         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
55596         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
55597         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
55598         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
55599         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
55600         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
55601         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
55602         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
55603         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
55604         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
55605         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
55606         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
55607         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
55608         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
55609         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
55610         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
55611         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
55612         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
55613         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
55614         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
55615         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
55616         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
55617         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
55618         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
55619         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
55620         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
55621         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
55622         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
55623         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
55624         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
55625         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
55626         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
55627         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
55628         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
55629         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
55630         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
55631         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
55632         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
55633         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
55634         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
55635         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
55636         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
55637         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55638         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
55639         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
55640         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
55641         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
55642         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
55643         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
55644         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
55645         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
55646         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
55647         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
55648         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
55649         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
55650         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
55651         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
55652         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
55653         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
55654         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
55655         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
55656         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
55657         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
55658         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
55659         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
55660         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
55661         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
55662         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
55663         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
55664         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
55665         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
55666         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
55667         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
55668         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
55669         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
55670         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
55671         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
55672         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
55673         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
55674         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
55675         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
55676         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
55677         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
55678         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
55679         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
55680         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
55681         lib/yesno.c, lib/yesno.h:
55682         Update FSF postal mail address.
55683
55684 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55685
55686         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
55687         tests/test-memmem.c, tests/test-stpncpy.c:
55688         Update FSF postal mail address.
55689
55690 2005-05-13  Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
55693         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
55694         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
55695         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
55696         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
55697         Add support for 64-bit integers in the MSVC compiler.
55698
55699 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55700
55701         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
55702
55703 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
55704
55705         * gnulib-tool (func_import): Sort and uniquify recommended includes.
55706
55707 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * doc/getdate.texi (General date syntax): Don't say that date
55710         date --iso-8601=ns generates acceptable dates; it doesn't yet.
55711         Problem reported by Nic Ferrier.
55712
55713 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55714
55715         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
55716         specified in ai_socktype. Fix invalid ai_protocol
55717         check. ai_protocol is usually set to 0 or depending on
55718         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
55719         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
55720         ai_socktype / ai_protocol in the returned addrinfo structure.
55721
55722 2005-05-10  Simon Josefsson  <jas@extundo.com>
55723
55724         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
55725         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55726
55727 2005-05-10  Karl Berry  <karl@gnu.org>
55728
55729         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
55730         (from http://www.gnu.org/licenses).
55731         * doc/COPYING.LIB: also rename to COPYING.LESSER.
55732         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
55733         fdl.texi suffices.
55734
55735 2005-05-10  Karl Berry  <karl@gnu.org>
55736
55737         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
55738         (COPYING.DOC): remove.
55739
55740         * config/srclist-update: new FSF address.
55741
55742 2005-05-10  Derek Price  <derek@ximbiot.com>
55743
55744         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
55745         possible.
55746
55747 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55748             Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/inet_ntop: New file.
55751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55752         inet_ntop.
55753
55754 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55755             Bruno Haible  <bruno@clisp.org>
55756
55757         * m4/inet_ntop.m4: New file.
55758
55759 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55760             Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/inet_ntop.h: New file.
55763         * lib/inet_ntop.c: New file, from glibc with modifications.
55764
55765 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         * modules/time_r (License): Change to LGPL.
55768         * modules/extensions (License): Change to LGPL.  Actually,
55769         the license is more permissive than that, but currently gnulib-tool
55770         doesn't know how to handle more-permissive licenses.
55771
55772         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
55773         Problem reported by Dave Love.
55774
55775 2005-05-08  Jim Meyering  <jim@meyering.net>
55776
55777         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
55778         blank.
55779
55780 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55781
55782         * modules/argmatch (Depends-on): Add stdbool.
55783         * modules/backupfile (Depends-on): Likewise.
55784         * modules/chdir-long (Depends-on): Likewise.
55785         * modules/closeout (Depends-on): Likewise.
55786         * modules/cycle-check (Depends-on): Likewise.
55787         * modules/dirname (Depends-on): Likewise.
55788         * modules/fnmatch (Depends-on): Likewise.
55789         * modules/fsusage (Depends-on): Likewise.
55790         * modules/fwriteerror (Depends-on): Likewise.
55791         * modules/getcwd (Depends-on): Likewise.
55792         * modules/getloadavg (Depends-on): Likewise.
55793         * modules/hard-locale (Depends-on): Likewise.
55794         * modules/makepath (Depends-on): Likewise.
55795         * modules/mountlist (Depends-on): Likewise.
55796         * modules/nanosleep (Depends-on): Likewise.
55797         * modules/posixtm (Depends-on): Likewise.
55798         * modules/quotearg (Depends-on): Likewise.
55799         * modules/readtokens (Depends-on): Likewise.
55800         * modules/readtokens0 (Depends-on): Likewise.
55801         * modules/readutmp (Depends-on): Likewise.
55802         * modules/save-cwd (Depends-on): Likewise.
55803         * modules/strftime (Depends-on): Likewise.
55804         * modules/userspec (Depends-on): Likewise.
55805         * modules/utimecmp (Depends-on): Likewise.
55806         * modules/xgetcwd (Depends-on): Likewise.
55807         * modules/xnanosleep (Depends-on): Likewise.
55808         * modules/xstrtod (Depends-on): Likewise.
55809         * modules/yesno (Depends-on): Likewise.
55810
55811 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
55814         needless checks.
55815
55816 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55817
55818         Merge from coreutils.  Among other things,
55819         add bulletproofing for cases where stdin, stdout, or stderr are closed.
55820         * lib/fd-safer.c: New file.
55821         * lib/fcntl-safer.h, open-safer.c: Remove.
55822         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
55823         * lib/dup-safer.c: Include unistd-safer.h first.
55824         Don't include errno.h.
55825         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
55826         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
55827         * lib/file-type.c: Rely on file-type.h change.
55828         * lib/getloadavg.c: Include unistd-safer.h.
55829         (getloadavg): Use safer open.
55830         * lib/getusershell.c: Include "stdio-safer.h".
55831         (getusershell): Use safer fopen.
55832         * lib/long-options.c (long_options): Use NULL rather than 0.
55833         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
55834         'free'.
55835         * lib/modechange.c: Likewise.
55836         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
55837         (MODE_DONE): New constant.
55838         (struct mode_change): Remove 'next' member.
55839         (make_node_op_equals): New function; like the old one of the
55840         same name, except it allocates an array.
55841         (mode_compile, mode_create_from_ref): Use it.
55842         (mode_compile): Allocate result as an array, not a linked list.
55843         Parse octal string ourself, so that we catch mistakes like "+0".
55844         (mode_adjust): Arg is an array, not a linked list.
55845         * lib/modechange.c: Include stat-macros.h, xalloc.h.
55846         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
55847         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
55848         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
55849         Remove.  This is now stat-macros.h's job.
55850         (talloc): Remove.  All callers replaced by xalloc, so that
55851         our invokers don't have to worry about reporting memory failures.
55852         (make_node_op_equals): Remove.
55853         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55854         New constants.
55855         (struct mode_change): Moved here from modechange.h.
55856         (mode_append_entry): Remove.
55857         (mode_compile): Remove MASKED_OPS arg, since it encouraged
55858         apps to have incorrect behavior.  Use simpler algorithm for head
55859         and tail.  Don't futz with umask; that's now the job of mode_adjust.
55860         Detect more invalid usages rather than having somewhat-random behavior.
55861         Don't insert an "a=" action, as that leads to incorrect behavior.
55862         (mode_compile, mode_create_from_ref): Return NULL on error instead
55863         of an enum, since now there's only one way to have an error.  All
55864         callers changed.
55865         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
55866         at the correct time.  Simplify calculation of "+u" and its ilk.
55867         Don't mishandle "+X".
55868         (mode_free): Remove "register" and localize decls.
55869         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
55870         (struct mode_change): Move to modechange.c; callers don't
55871         need to see this stuff.
55872         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
55873         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
55874         (mode_change, mode_adjust): Reflect the new signatures noted above.
55875         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
55876         that might redefine system include files.
55877         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
55878         (my_usleep): Use NULL rather than (void *) 0.
55879         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
55880         Use siginterrupt to specify that system calls should be interrupted.
55881         (rpl_nanosleep): Move initialization of suspended closer to call of
55882         my_usleep.
55883         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
55884         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
55885         (desirable_utmp_entry): New function.
55886         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
55887         using x2nrealloc, to simplify logic.
55888         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
55889         size calculation.  Do not assume utmp file is a regular file.
55890         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
55891         (READ_UTMP_CHECK_PIDS): New constant.
55892         * lib/save-cwd.c: Include unistd-safer.h.
55893         (save_cwd): Use fd_safer.
55894         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
55895         [!_LIBC] Include "stat-macros.h" instead.
55896         * lib/unistd-safer.h (fd_safer): New decl.
55897
55898 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * modules/getloadavg (Depends-on): Add unistd-safer.
55901         * modules/getusershell (Depends-on): Add stdio-safer.
55902         * modules/lstat (Depends-on): Remove xalloc.
55903         * modules/mkstemp (Depends-on): Add stat-macros.
55904         * modules/modechange (Depends-on): Remove xstrtol.
55905         Add stat-macros, xalloc.
55906         * modules/save-cwd (Depends-on): Add unistd-safer.
55907         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
55908         * modules/unistd-safer (Files): Add lib/fd-safer.c
55909         (Makefile.am): Remove lib_SOURCES.
55910
55911         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
55912         Remove fcntl-safer; unistd-safer supersedes it.
55913
55914 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55915
55916         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
55917         AC_HEADER_STAT.
55918         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
55919         (gl_PREREQ_CHOWN): Remove.
55920         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
55921         it.  Don't require AC_HEADER_STAT.
55922         (gl_PREREQ_LSTAT): Remove.
55923         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
55924         Don't require AC_HEADER_STAT.
55925         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
55926         (gl_PREREQ_RMDIR): Remove.
55927         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
55928         mention stat-macros.h or AC_HEADER_STAT, since we'll make
55929         the stat-macros module a prerequisite.
55930         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
55931         * m4/filemode.m4 (gl_FILEMODE): Likewise.
55932         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
55933         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
55934         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
55935         variable names.
55936         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
55937         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
55938         variable prefixes.
55939         * m4/fcntl-safer.m4: Remove.
55940         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
55941         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
55942         Invoke gl_PREREQ_FD_SAFER.
55943         (gl_PREREQ_FD_SAFER): New macro.
55944         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
55945         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
55946         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
55947         Remove duplicate call to AC_LIBOBJ(readutmp).
55948         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
55949
55950         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
55951         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
55952
55953 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
55954
55955         * MODULES.html.sh (Misc): Add byteswap.
55956
55957 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55958
55959         * modules/getcwd (Depends-on): Add extensions.
55960         * modules/openat (Depends-on): Likewise.
55961
55962 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55963
55964         * modules/byteswap: New file.
55965
55966 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55967
55968         * m4/byteswap.m4: New file.
55969
55970 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
55971
55972         * lib/byteswap_.h: New file.
55973
55974 2005-04-25  Karl Berry  <karl@gnu.org>
55975
55976         * m4/gettext.m4: Update from GNU gettext 0.14.4.
55977
55978 2005-04-25  Albert Chin  <china@thewrittenword.com>
55979
55980         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
55981         Toolkit C bug.
55982
55983 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
55984
55985         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
55986         (func_ln_if_changed) Remove forcibly for no error message
55987         in case file does not exist.
55988
55989 2005-04-19  Simon Josefsson  <jas@extundo.com>
55990
55991         * gnulib-tool (Options): Make --symlink mean --symbolic.
55992
55993 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
55994
55995         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
55996
55997 2005-04-16  Simon Josefsson  <jas@extundo.com>
55998
55999         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56000
56001 2005-04-15  Simon Josefsson  <jas@extundo.com>
56002
56003         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56004
56005 2005-04-15  Simon Josefsson  <jas@extundo.com>
56006
56007         * gnulib-tool: Rename --symlink to --symbolic.
56008
56009 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56010
56011         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56012         symbolic links to files instead of copying/moving.  Add --aux-dir,
56013         specifying directory relative --dir where auxiliary build tools
56014         are placed.
56015
56016 2005-04-14  Bruno Haible  <bruno@clisp.org>
56017
56018         * modules/allocsa (License): Change to LGPL.
56019         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56020
56021 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56022
56023         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56024         that "UTC +1 second" continues to work.  Problem reported
56025         by Dmitry V. Levin.
56026         (relunit_snumber): New rule.
56027         (relunit): Use it.
56028
56029 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56030
56031         * lib/getdate.y (universal_time_zone_table): New constant.
56032         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56033         universal_time_zone_table.
56034         (lookup_zone): Prefer universal_time_zone_table to
56035         local_time_zone_table, so that "GMT" time stamps are allowed in
56036         London during the summer.  Problem reported by Ian Abbott.
56037
56038 2005-04-12  Jim Meyering  <jim@meyering.net>
56039
56040         * lib/human.c (humblock): Set *options even when returning due to
56041         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56042         warning from gcc-4.
56043
56044 2005-04-09  Jim Meyering  <jim@meyering.net>
56045
56046         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56047         -Wuninitialized: initialize tm0.tm_year.
56048
56049 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56050
56051         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56052         count, since there's no maximum.  All uses changed.
56053         Add member dsts_seen.
56054         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56055         not being INT_MAX.
56056         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56057         Use pc_rels_seen to decide whther a date is absolute.
56058
56059         * lib/getdate.y (number): Don't overwrite year.
56060         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56061         check.
56062
56063 2005-04-02  Simon Josefsson  <jas@extundo.com>
56064
56065         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56066         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56067
56068 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56069
56070         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56071         where no absolute path name can be longer than PATH_MAX.
56072
56073 2005-03-27  Jim Meyering  <jim@meyering.net>
56074
56075         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56076
56077 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56078
56079         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56080         "one's complement" -> "ones' complement" in comment, as per Knuth.
56081         "value of type" -> "type or expression" in comment.
56082         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56083
56084 2005-03-26  Jim Meyering  <jim@meyering.net>
56085
56086         Comment nits.
56087         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56088         Correct typos: s/or/of/.
56089
56090 2005-03-26  Jim Meyering  <jim@meyering.net>
56091
56092         * modules/check-include-files: Move to ../ and rename to...
56093         * check-module: ...this.
56094
56095 2005-03-25  Jim Meyering  <jim@meyering.net>
56096
56097         * modules/xvasprintf (Files): Add xalloc.h.
56098
56099 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56100
56101         * modules/gettext (Files): config/config.rpath ->
56102         build-aux/config.rpath
56103         * modules/iconv (Files): Likewise.
56104         Problem reported by Oskar Liljeblad.
56105
56106 2005-03-23  Jim Meyering  <jim@meyering.net>
56107
56108         * modules/check-include-files: New script to check for
56109         missing dependencies, multiple includes, etc.
56110
56111         * modules/c-strtold (Depends-on): Add xalloc.
56112         * modules/c-strtod (Depends-on): Add xalloc.
56113         * modules/hash (Depends-on): Add xalloc.
56114         (Files): Remove lib/xalloc.h.
56115
56116         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56117         * modules/userspec (Files): Add lib/inttostr.h.
56118
56119 2005-03-23  Jim Meyering  <jim@meyering.net>
56120
56121         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56122
56123 2005-03-22  Jim Meyering  <jim@meyering.net>
56124
56125         * modules/stat-macros: New module.
56126         * modules/canonicalize, modules/euidaccess, modules/file-type,
56127         * modules/filemode, modules/lchown, modules/makepath,
56128         * modules/rmdir, modules/stat: Depend on new stat-macros module
56129         rather than listing lib/stat-macros.h manually.
56130         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56131
56132 2005-03-22  Jim Meyering  <jim@meyering.net>
56133
56134         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56135
56136 2005-03-22  Bruno Haible  <bruno@clisp.org>
56137
56138         * config/srclist.txt: Replace target directory 'config' with
56139         'build-aux'.
56140         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56141         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56142         ../build-aux/.
56143
56144 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * modules/chdir-long (Depends-on): Add mempcpy.
56147
56148         * modules/acl, modules/backupfile, modules/c-strtod,
56149         modules/c-strtold, modules/canon-host, modules/canonicalize,
56150         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56151         modules/exclude, modules/exitfail, modules/file-type,
56152         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56153         modules/getdate, modules/getline, modules/getpagesize,
56154         modules/getpass, modules/getugroups, modules/group-member,
56155         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56156         modules/inttostr, modules/long-options, modules/makepath,
56157         modules/md5, modules/memcasecmp, modules/memcoll,
56158         modules/modechange, modules/mountlist, modules/path-concat,
56159         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56160         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56161         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56162         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56163         modules/strftime, modules/strndup, modules/strverscmp,
56164         modules/timespec, modules/unlocked-io, modules/userspec,
56165         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56166         modules/yesno:
56167         Remove lib_SOURCES line from Makefile.am section, as this is now
56168         done automatically by the corresponding Autoconf macro.
56169
56170 2005-03-21  Jim Meyering  <jim@meyering.net>
56171
56172         Changes imported from coreutils.
56173
56174         * lib/cycle-check.c: Don't include xalloc.h.
56175
56176         * lib/path-concat.c: Don't include assert.h.
56177         (path_concat): Remove assertion that would have triggered
56178         for ABASE starting with more than one slash.
56179         Reported by Andreas Schwab.
56180
56181         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56182         properly when ABASE is an absolute file name.
56183         Correct the description of this function.
56184         Include <assert.h>.
56185         Add an assertion and a test driver.
56186         This fixes a bug introduced on 2004-07-02.
56187         Andreas Schwab reported the resulting failure of cp --parents:
56188         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56189
56190 2005-03-21  Jim Meyering  <jim@meyering.net>
56191
56192         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56193         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56194
56195 2005-03-21  Jim Meyering  <jim@meyering.net>
56196         and  Paul Eggert  <eggert@cs.ucla.edu>
56197
56198         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56199         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56200         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56201         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56202         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56203         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56204         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56205         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56206         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56207         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56208         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56209         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56210         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56211         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56212         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56213         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56214         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56215         for these modules.
56216
56217 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56218
56219         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56220         (which shouldn't happen), generate nothing instead of returning 0
56221         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56222
56223 2005-03-16  Bruno Haible  <bruno@clisp.org>
56224
56225         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56226         HAVE_LONGLONG_64BIT.
56227
56228 2005-03-16  Bruno Haible  <bruno@clisp.org>
56229
56230         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56231         HAVE_LONGLONG_64BIT.
56232
56233 2005-03-16  Bruno Haible  <bruno@clisp.org>
56234
56235         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56236         HAVE_LONGLONG_64BIT.
56237
56238 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56239
56240         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56241         reliably distinguish strftime failure from empty output on POSIX
56242         hosts.
56243
56244 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56247         (iconv_string): Don't guess a size-zero buffer, as that might cause
56248         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56249         result would be 'too large', where 'too large' is (heuristically)
56250         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56251         overflow concerns.  This will prevent some unwanted malloc failures
56252         when the inputs are very large.
56253
56254 2005-03-15  Karl Berry  <karl@gnu.org>
56255
56256         * config/srclist.txt (config.rpath): from gettext.
56257         * config/config.rpath: update.
56258
56259 2005-03-15  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56262         to 'negate'.
56263
56264         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56265         variable.
56266
56267         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56268         results.
56269
56270 2005-03-14  Simon Josefsson  <jas@extundo.com>
56271
56272         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56273         <fx@gnu.org>.
56274
56275 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56276
56277         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56278         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56279         intprops.h.
56280         * lib/strtol.c: Likewise.
56281
56282 2005-03-14  Jim Meyering  <jim@meyering.net>
56283
56284         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56285         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56286         to be nonzero so that we (and caller) can detect the difference
56287         between a valid zero-length expansion and an error return, even
56288         when the underlying strftime fails before writing anything into
56289         that location.
56290
56291 2005-03-14  Bruno Haible  <bruno@clisp.org>
56292
56293         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56294         Update from GNU gettext 0.14.3.
56295
56296 2005-03-10  Jim Meyering  <jim@meyering.net>
56297
56298         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56299
56300 2005-03-10  Jim Meyering  <jim@meyering.net>
56301
56302         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56303         so that this module works on systems without fchdir.
56304
56305 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56306
56307         Factor int-properties macros into a single file, except for
56308         glibc-related files.
56309         * lib/intprops.h: New file.
56310         * lib/getloadavg.c: Include it instead of limits.h.
56311         (INT_STRLEN_BOUND): Remove.
56312         * lib/human.c: Include intprops.h.
56313         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56314         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56315         302/1000.
56316         * lib/inttostr.h: Include intprops.h instead of limits.h.
56317         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56318         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56319         for consistency with intprops.h.
56320         (time_t_is_integer, twos_complement_arithmetic): Use them.
56321         * lib/sig2str.h: Include <signal.h>, intprops.h.
56322         (INT_STRLEN_BOUND): Remove.
56323         * lib/strftime.c (TYPE_SIGNED): Remove.
56324         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56325         * lib/strtol.c: Adjust comments to match intprops.h.
56326         * lib/userspec.c: Include intprops.h.
56327         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56328         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56329         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56330         instead of rolling our own expressions.
56331         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56332
56333         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56334         instead of int.
56335         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56336         the right thing even if adding 1900 would overflow.  Similarly
56337         for tm_mon + 1 and tm_yday + 1.
56338         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56339         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56340         (DO_SIGNED_NUMBER): New macro.
56341         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56342
56343 2005-03-07  Bruno Haible  <bruno@clisp.org>
56344
56345         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56346
56347 2005-03-07  Bruno Haible  <bruno@clisp.org>
56348
56349         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56350
56351 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56352
56353         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56354         (func_import): Only replace files via --import when they have actually
56355         changed.
56356
56357 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56358
56359         * m4/mmap-anon.m4: New file.
56360         * m4/pagealign_alloc.m4: New file.
56361
56362 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56363             Bruno Haible  <bruno@clisp.org>
56364
56365         * modules/pagealign_alloc: New file.
56366         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56367
56368 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56369             Bruno Haible  <bruno@clisp.org>
56370
56371         * lib/pagealign_alloc.h: New file.
56372         * lib/pagealign_alloc.c: New file.
56373
56374 2005-03-03  Bruno Haible  <bruno@clisp.org>
56375
56376         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56377         Use an all-permissive copyright notice, recommended by RMS.
56378
56379 2005-03-02  Bruno Haible  <bruno@clisp.org>
56380
56381         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56382         of AIX, the replacement has to be done only after <string.h> is
56383         included, therefore not in config.h. stpncpy.h does the replacement,
56384         and stpncpy.c uses it.
56385
56386 2005-03-02  Bruno Haible  <bruno@clisp.org>
56387
56388         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56389         stpncpy.c uses it.
56390
56391 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56392
56393         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56394         The workaround isn't strictly needed for POSIX conformance, and
56395         it's too much of a pain to configure and maintain.  We'll ask
56396         people to fix their kernels instead.
56397         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56398         (NANOSLEEP_BUG_WORKAROUND): Remove.
56399         (xnanosleep): Remove the workaround.
56400
56401 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56404         Reported by Derek Price.
56405         (Include): Add "timespec.h".
56406
56407         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56408
56409 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56410
56411         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56412         to detect nanosleep bug.
56413
56414 2005-03-01  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56417
56418 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56419
56420         * modules/gethrxtime: New file.
56421         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56422         (Depends-on): Add gethrxtime.
56423         (configure.ac): Add gl_XNANOSLEEP.
56424         (Makefile.am): Remove lib_SOURCES line.
56425
56426 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56429         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56430
56431 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56434         * lib/timespec.h (gettime): Return void, since it always
56435         succeeds now.  All uses changed.
56436         * lib/gettime.c (gettime) Likewise.
56437         [HAVE_NANOTIME]: Prefer nanotime.
56438         Assume gettimeofday succeeds, as POSIX requires.
56439         Assime time () succeeds, since other code already does.
56440         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56441         (timespec_subtract): Remove.
56442         (NANOSLEEP_BUG_WORKAROUND): New constant.
56443         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56444         things considerably.  Use it only on GNU/Linux hosts, since the
56445         workaround shouldn't be needed elsewhere.
56446
56447 2005-02-24  Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/gettext (Files): Add m4/glibc2.m4.
56450
56451 2005-02-24  Bruno Haible  <bruno@clisp.org>
56452
56453         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56454         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56455         * m4/progtest.m4:
56456         Update from GNU gettext 0.14.2.
56457         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56458
56459 2005-02-24  Bruno Haible  <bruno@clisp.org>
56460
56461         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56462         * lib/config.charset: Update from GNU gettext 0.14.2.
56463
56464 2005-02-24  Bruno Haible  <bruno@clisp.org>
56465
56466         * lib/gettext.h: Update from GNU gettext 0.14.2.
56467
56468 2005-02-23  Simon Josefsson  <jas@extundo.com>
56469
56470         * m4/iconvme.m4: New file.
56471
56472 2005-02-23  Jim Meyering  <jim@meyering.net>
56473
56474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56475         change.
56476         Thanks to Bruno Haible for catching it.
56477
56478 2005-02-22  Simon Josefsson  <jas@extundo.com>
56479
56480         * modules/iconvme: New file.
56481
56482         * MODULES.html.sh: Add iconvme.
56483
56484 2005-02-22  Simon Josefsson  <jas@extundo.com>
56485
56486         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56487
56488 2005-02-22  Simon Josefsson  <jas@extundo.com>
56489
56490         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56491
56492 2005-02-22  Jim Meyering  <jim@meyering.net>
56493
56494         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56495         s/ifndef/ifdef/.
56496
56497 2005-02-20  Neil Conway  <neilc@samurai.com>
56498
56499         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56500         returned by OSX/Darwin if the specified buffer is not large
56501         enough for the hostname.
56502
56503 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56504
56505         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56506         pass it to _help, otherwise the latter coredumps trying to
56507         dereference state.root_argp.
56508
56509 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56510
56511         * modules/chdir-long (Depends-on): Add memrchr.
56512         * modules/memrchr (Files): Add lib/memrchr.h.
56513         (Include): "memrchr.h".
56514
56515 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56518
56519 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56520
56521         * lib/memrchr.h: New file.
56522         * lib/chdir-long.c: Include it.
56523         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56524         Don't bother including stddef.h.
56525
56526 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56527
56528         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
56529         inclusion.
56530         Include <sys/types.h>, for dev_t.
56531         (ME_DUMMY, ME_REMOTE): Move from here....
56532         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
56533         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
56534         Dmitry V. Levin.
56535         Include mountlist.h first, to test the interface.
56536
56537 2005-01-29  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/progname.c (program_name): Initialize.
56540         Needed when linking statically on MacOS X.
56541
56542 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         Sync from coreutils.
56545         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
56546         (Depends-on): Add c-strtod.
56547         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
56548
56549 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56550
56551         Sync from coreutils.
56552         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
56553
56554         Remove files that are specific to coreutils.
56555         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
56556
56557 2005-01-28  Bruno Haible  <bruno@clisp.org>
56558
56559         * modules/javacomp: New file.
56560         * MODULES.html.sh (Java): Add javacomp.
56561
56562 2005-01-28  Bruno Haible  <bruno@clisp.org>
56563
56564         * m4/javacomp.m4: New file, from GNU gettext.
56565
56566 2005-01-28  Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/javacomp.sh.in: New file, from GNU gettext.
56569         * lib/javacomp.h: New file, from GNU gettext.
56570         * lib/javacomp.c: New file, from GNU gettext.
56571
56572 2005-01-26  Simon Josefsson  <jas@extundo.com>
56573
56574         * lib/gai_strerror.c: Use GPL in header.
56575
56576 2005-01-26  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/javaexec: New file.
56579         * MODULES.html.sh (Java): Add javaexec.
56580
56581 2005-01-26  Bruno Haible  <bruno@clisp.org>
56582
56583         * m4/javaexec.m4: New file, from GNU gettext.
56584
56585 2005-01-26  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/javaexec.sh.in: New file, from GNU gettext.
56588         * lib/javaexec.h: New file, from GNU gettext.
56589         * lib/javaexec.c: New file, from GNU gettext.
56590
56591 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56592
56593         * modules/lchown (Depends-on): Remove lchown.h
56594
56595 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56596
56597         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
56598         must be defined if the header file was not found, in order
56599         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
56600
56601 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56602
56603         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
56604         initializers for struct pentry_state.
56605         (__argp_error): Check return value of __asprintf
56606         (__argp_failure): Translate error message
56607
56608         * lib/argp-parse.c: Removed braces around the expansion of N_()
56609
56610 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56611
56612         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
56613         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
56614         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
56615         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
56616         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
56617         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
56618         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
56619         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
56620         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
56621         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
56622         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
56623         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
56624         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
56625         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
56626         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
56627         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
56628         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
56629         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
56630         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
56631         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
56632         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
56633         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
56634         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
56635         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
56636         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
56637         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
56638         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
56639         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
56640         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
56641         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
56642         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
56643         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
56644         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
56645         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
56646         xstrtol.m4, xstrtoumax.m4, yesno.m4:
56647         Use an all-permissive copyright notice, recommended by RMS.
56648
56649 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56650
56651         * modules/chdir-long (Depends-on): Remove mempcpy.
56652
56653 2005-01-21  Jim Meyering  <jim@meyering.net>
56654
56655         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
56656         same value as for Solaris 9.
56657
56658         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
56659         component length.  This included changing the parameter to be
56660         of type `char *' rather than `char const *'.
56661         * lib/chdir-long.h (chdir_long): Update prototype.
56662
56663         * lib/openat.c (fdopendir, fstatat): New functions.
56664         * lib/openat.h: Include headers required for use of DIR and struct
56665         stat.
56666         [AT_SYMLINK_NOFOLLOW]: Define.
56667         (fdopendir, fstatat): Add prototypes.
56668
56669 2005-01-21  Bruno Haible  <bruno@clisp.org>
56670
56671         * modules/classpath: New file.
56672         * MODULES.html.sh (Java): Add classpath.
56673
56674 2005-01-21  Bruno Haible  <bruno@clisp.org>
56675
56676         * lib/classpath.h: New file, from GNU gettext.
56677         * lib/classpath.c: New file, from GNU gettext.
56678
56679 2005-01-20  Simon Josefsson  <jas@extundo.com>
56680
56681         * modules/version-etc-fsf: New file.
56682
56683 2005-01-20  Simon Josefsson  <jas@extundo.com>
56684
56685         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
56686         * lib/version-etc.c: Remove version_etc_copyright.
56687         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
56688         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
56689
56690 2005-01-20  Simon Josefsson  <jas@extundo.com>
56691
56692         * lib/base64.h (isbase64): Add.
56693
56694         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
56695         using a unsigned prototype, don't inline.
56696         (base64_decode): Use it.
56697
56698 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56699
56700         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
56701         it.
56702
56703 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56704
56705         * lib/save-cwd.c (save_cwd): Remove code to support the case
56706         where fchdir is missing or flaky.
56707
56708 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
56709
56710         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
56711
56712 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
56715         AC_LIBSOURCES now does this.
56716         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
56717         with new ullong_max module.
56718
56719 2005-01-19  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/sh-quote: New file.
56722         * MODULES.html.sh (Executing programs): Add sh-quote.
56723
56724 2005-01-19  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/sh-quote.h: New file, from GNU gettext.
56727         * lib/sh-quote.c: New file, from GNU gettext.
56728
56729 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56730
56731         Merge from coreutils.
56732         * m4/ullong_max.m4: New file.
56733         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
56734         (gl_MACROS): Assume localeconv exists.
56735
56736 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         Merge changes from coreutils, as described below in several
56739         changelogs dated today.
56740
56741         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
56742         (O_DIRECTORY): Remove; not needed here, since "." must be
56743         a directory.  All uses removed.
56744         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
56745         universal on Suns, and we also need to test for IRIX.
56746         Revamp code to use 'if' rather than '#if'.
56747         Avoid unnecessary comparison of cwd->desc to 0.
56748
56749         * lib/utimens.c (futimens): Robustify the previous patch, by checking
56750         for known valid error numbers rather than observed invalid ones.
56751
56752 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56753
56754         * modules/ullong_max: New file.
56755
56756         * modules/chdir-long, modules/openat: New files.
56757         * modules/save-cwd (Depends-on): Depend on chdir-long.
56758         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
56759
56760 2005-01-18  Jim Meyering  <jim@meyering.net>
56761
56762         Merge from coreutils.
56763         * m4/chdir-long.m4, m4/openat.m4: New files.
56764         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
56765         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
56766         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
56767         is sane and DOES follow symlinks.  Besides, testing 20 different
56768         systems found no broken chown implementations.
56769         Prompted by a change in rsync's copy of this macro.
56770         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
56771
56772         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
56773
56774         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
56775         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
56776         NULL-means-set-to-current-time semantics.
56777         Remove temporary file immediately, rather than waiting
56778         for configure's at-exit trap code to do it.
56779
56780 2005-01-18  Jim Meyering  <jim@meyering.net>
56781
56782         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56783
56784         * lib/utimens.c (futimens): Account for the fact that futimes
56785         can also fail with errno == ENOSYS or errno == ENOENT.
56786         Patch from Dmitry V. Levin.
56787
56788         Change the name of the robust chdir function from chdir to chdir_long.
56789         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
56790         (restore_cwd): Use chdir_long, not chdir.
56791         * lib/chdir-long.c: Renamed from chdir.c.
56792         * lib/chdir-long.h: Renamed from chdir.h.
56793         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
56794         Hurd.
56795
56796 2005-01-18  Bruno Haible  <bruno@clisp.org>
56797
56798         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
56799         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
56800         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
56801         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
56802         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
56803         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
56804         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
56805         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
56806         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
56807         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
56808         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
56809         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
56810         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
56811         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
56812         Use an all-permissive copyright notice, recommended by RMS.
56813
56814 2005-01-18  Bob Proulx  <bob@proulx.com>
56815
56816         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
56817         simplify offsetof() macro construct to avoid compile failure with
56818         native HP-UX 11.0 ANSI C compiler.
56819
56820 2005-01-17  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
56823         redundant because stpncpy.m4 takes care of it.
56824
56825 2005-01-17  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
56828
56829 2005-01-17  Bruno Haible  <bruno@clisp.org>
56830
56831         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
56832         used.
56833
56834 2005-01-17  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/fwriteerror.h (fwriteerror): Change specification to include
56837         fclose.
56838         * lib/fwriteerror.c: Include <stdbool.h>.
56839         (fwriteerror): At the end, close the file stream. Record whether
56840         stdout was already closed.
56841
56842 2005-01-17  Bruno Haible  <bruno@clisp.org>
56843
56844         * lib/execute.c (environ): Declare if needed.
56845         * lib/pipe.c (environ): Likewise.
56846         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
56847
56848 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56849
56850         * modules/argp: Depend on vsnprintf
56851
56852 2005-01-10  Jim Meyering  <jim@meyering.net>
56853
56854         * modules/closeout (Depends-on): Add atexit.
56855
56856 2005-01-06  Bruno Haible  <bruno@clisp.org>
56857
56858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
56859
56860 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
56863         definitions to be after all include files, to avoid collisions.
56864         Problem reported by Bob Proulx.
56865
56866 2005-01-04  Jim Meyering  <jim@meyering.net>
56867
56868         Changes imported from coreutils.
56869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
56870         as the mkstemp template, use a temporary directory and an
56871         8.3-friendly template to avoid trouble on systems like DJGPP.
56872         Reported by Juan M. Guerrero via Stepan Kasal.
56873         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
56874         close. Remove the temporary directory right away, rather than waiting
56875         for configure's at-exit trap code to do it.
56876         Suggestion from Stepan Kasal.
56877
56878 2005-01-01  Simon Josefsson  <jas@extundo.com>
56879
56880         * gnulib-tool: Print #include directives when --import'ing.
56881
56882 2004-12-28  Simon Josefsson  <jas@extundo.com>
56883
56884         * tests/test-base64.c: Include required header files.  Remove
56885         unused variables.
56886
56887 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56888
56889         * modules/error (Depends-on): Remove gettext.
56890
56891 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
56894         not needed.  This removes a dependency on the gettext module.
56895         [defined _LIBC]: Do not include <libintl.h>; not needed.
56896
56897 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56898
56899         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
56900         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
56901
56902 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
56905         HAVE_DECL_STRTOLD.
56906
56907 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * modules/getdate (Depends-on): Remove alloca-opt.
56910
56911 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56912
56913         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
56914
56915 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56916
56917         * lib/argp-parse.c: Include <stddef.h>.
56918         (alignof, alignto): New macros.
56919         (parser_init): Don't assume that void * is aligned sufficiently
56920         for struct option.
56921
56922         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
56923         need to extend the stack.
56924         (YYINITDEPTH): New macro, so that the initial stack isn't overly
56925         large.
56926
56927 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56928
56929         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
56930
56931 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
56934         (2004-10-24) change.  Apparently this was a false alarm.
56935
56936         * modules/getdate: Depend on alloca-opt, not alloca.
56937
56938 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
56939
56940         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
56941         Remove now-obsolete comment about AIX.
56942         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
56943         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
56944         (YYMAXDEPTH): New macro.
56945
56946 2004-12-18  Simon Josefsson  <jas@extundo.com>
56947
56948         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
56949
56950 2004-12-18  Bruno Haible  <bruno@clisp.org>
56951
56952         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
56953
56954 2004-12-18  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/fatal-signal.c (fatal_signals): Make non-const.
56957         (init_fatal_signals): New function.
56958         (uninstall_handlers, install_handlers): Ignore signals that were set to
56959         SIG_IGN.
56960         (at_fatal_signal): Call init_fatal_signals.
56961         (init_fatal_signal_set): Likewise. Ignore signals that were set to
56962         SIG_IGN.
56963         Reported by Paul Eggert.
56964
56965 2004-12-18  Bruno Haible  <bruno@clisp.org>
56966
56967         * doc/alloca.texi: New file.
56968         * doc/alloca-opt.texi: New file.
56969
56970 2004-12-17  Jim Meyering  <jim@meyering.net>
56971
56972         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
56973         Otherwise, install-sh could exit with improper exit status when
56974         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
56975
56976 2004-12-16  Simon Josefsson  <jas@extundo.com>
56977
56978         * tests/test-base64.c: Add license.
56979
56980 2004-12-15  Stepan Kasal  <address@hidden>
56981
56982         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
56983
56984 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * modules/getcwd (Files): Add m4/d-ino.m4.
56987         Suggested by Mark D. Baushke.
56988
56989 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         * lib/getdate.y (textint): New member "negative".
56992         (time_zone_hhmm): New function.
56993         Expect 14 shift-reduce conflicts, not 13.
56994         (o_colon_minutes): New rule.
56995         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
56996         (yylex): Set the "negative" member of signed numbers.
56997
56998 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * doc/getdate.texi (Time of day items, Time zone items):
57001         Describe new formats +00:00, UTC+00:00.
57002
57003 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57004
57005         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57006         spurious "-l"s.  Problem reported by Stepan Kasal.
57007
57008 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57009
57010         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57011         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57012
57013 2004-12-04  Simon Josefsson  <jas@extundo.com>
57014
57015         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57016         Vandoorselaere <yoann@prelude-ids.org>.
57017
57018 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57019
57020         Changes imported from coreutils.
57021         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57022         exist.
57023         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57024
57025 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         Changes imported from coreutils.
57028         * lib/hard-locale.c: Assume <locale.h> exists.
57029         Include "strdup.h".
57030         (GLIBC_VERSION): New macro.
57031         (hard_locale): Assume setlocale exists.
57032         Rewrite to avoid #ifdef.
57033         Use strdup rather than malloc + strcpy.
57034         * lib/human.c: Assume <locale.h> exists.
57035         (human_readable): Assume localeconv exists.
57036
57037 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         * modules/hard-locale (Depends-on): Add strdup.
57040
57041 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57042
57043         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57044         convert T2, not T.  (Imported from libc.)
57045
57046 2004-11-30  Simon Josefsson  <jas@extundo.com>
57047
57048         * modules/restrict (License): Change to LGPL.
57049
57050 2004-11-30  Simon Josefsson  <jas@extundo.com>
57051
57052         * m4/restrict.m4: Add copyright and copying conditions.
57053
57054 2004-11-30  Simon Josefsson  <jas@extundo.com>
57055
57056         * m4/base64.m4: New file.
57057
57058 2004-11-30  Simon Josefsson  <jas@extundo.com>
57059
57060         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57061         base64.
57062
57063         * tests/test-base64.c: New file.
57064
57065         * modules/base64: New file.
57066
57067 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57068
57069         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57070         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57071
57072         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57073
57074 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57075
57076         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57077         (__getcwd.c): Don't restore errno; glibc doesn't.
57078         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57079         first, falling back to our code only if its results look suspicious.
57080         Ensure that the resulting buffer is only as large as necessary.
57081
57082         * lib/readutmp.c: Include readutmp.h first.
57083         Include <errno.h>, since readutmp.h no longer does that.
57084         * lib/readutmp.h: Don't include <errno.h>,
57085         <sys/param.h>, <time.h>; not needed to establish interface.
57086         (errno): Remove decl.
57087         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57088         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57089         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57090
57091 2004-11-28  Simon Josefsson  <jas@extundo.com>
57092
57093         * lib/base64.h, base64.c: New file.
57094
57095 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57098
57099 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57102         (Depends-on): Remove pathmax, same.  Add mempcpy.
57103         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57104         (Makefile.am): Append getcwd.h to lib_SOURCES.
57105         (Include): Add getcwd.h.
57106         (Maintainer): Change from Jim Meyering to "all, glibc",
57107         since getdate now uses intended-for-glibc code.
57108         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57109         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57110
57111 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57112
57113         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57114         HP's ANSI C compiler.
57115         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57116         Declaring int functions causes warnings on some modern systems and
57117         shouldn't be needed to compile on ancient ones.
57118         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57119         defined.
57120
57121         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57122         with the following changes.
57123         (__set_errno): Parenthesize properly.
57124         Include <stdbool.h>.
57125         (MIN, MAX, MATCHING_INO): New macros.
57126         (__getcwd): Define with prototype, not K&R form.
57127         Use heuristics to allocate default buffer on stack if possible.
57128         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57129         behavior, and to avoid the PATH_MAX limit when computing
57130         ../../../../...
57131         Use MATCHING_INO to compare inode number to file.
57132         Check for arithmetic overflow in size calculations.
57133         Fix bug in reallocation of dot array that caused getcwd to fail
57134         on directories nested deeper than 75.
57135         Be more careful about saving errno on error.
57136         Do not use realloc; use only free+malloc, as this is a bit
57137         more flexible and avoids a needless copy operation.
57138         Do not inspect st_dev and st_ino for symbolic links; POSIX
57139         doesn't specify the latter.
57140         Check for closedir errors.
57141         Avoid needless casts.
57142         Use "#ifdef weak_alias" around weak_alias, to be like other
57143         glibc code.
57144         The following changes to getcwd.c have effect only when used in
57145         gnulib; they have no effect inside glibc proper.
57146         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57147         as alloca isn't used.
57148         (alloca, __alloca): Likewise.
57149         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57150         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57151         unconditionally, as gnulib assumes C89 or better.
57152         Do not include <sys/param.h>.
57153         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57154         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57155         better.
57156         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57157         Include <dirent.h> in a way that is compatible with modern Autoconf.
57158         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57159         New macros, if not already defined.
57160         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57161         Use "_LIBC", not "defined _LIBC", for consistency.
57162         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57163         a mempcpy module.
57164         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57165         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57166         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57167         credit only to Jim Meyering and adjust the copyright dates.
57168         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57169         <stdlib.h>, <unistd.h>, "pathmax.h".
57170         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57171         (INITIAL_BUFFER_SIZE): Remove.
57172         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57173
57174 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57175
57176         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57177         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57178         Use the _ONCE methods, for efficiency.
57179         Check for fcntl.h.  In test program, include <errno.h>
57180         and <fcntl.h> if available.  Remove old K&R cruft from
57181         test program.  Check for common errors in GNU/Linux,
57182         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57183         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57184         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57185         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57186         name accordingly.
57187         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57188         accommodate new getcwd.c.
57189         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57190         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57191         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57192         that's all we need now.
57193
57194 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57195
57196         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57197         argp-parse.c depends on getopt internals, that means we should
57198         always use our getopt, to be on the safe side.
57199         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57200         order not to spoil the result of an eventual previous invocation
57201         of gl_GETOPT_SUBSTITUTE.
57202
57203 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57204
57205         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57206         redefinition warnings. To avoid them, include the defines
57207         in `#if !defined __need_getopt ... #endif'. The only place
57208         where __getopt_argv_const is used is in definitions
57209         of getopt_long and getopt_long_only below, which are as well
57210         protected by `#ifndef __need_getopt'.
57211         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57212         __need_getopt after including <stdio.h> and <unistd.h> These
57213         headers might have defined it.
57214
57215 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57218
57219 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57220
57221         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57222         (futimens): New function, which uses futimes if available.
57223         (futimens, utimens): Support timespec==NULL, with same semantics
57224         as utime and utimens.
57225         * lib/utimens.h (futimens): New decl.
57226
57227 2004-11-23  Jim Meyering  <jim@meyering.net>
57228
57229         * lib/getopt_.h: Remove trailing blanks.
57230
57231 2004-11-23  Jim Meyering  <jim@meyering.net>
57232
57233         * lib/__fpending.c: Add comment.
57234
57235 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57236
57237         * modules/canonicalize (Depends-on): Add xreadlink.
57238         Problem reported by James Youngman.
57239
57240 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57243         New macros.
57244         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57245         optopt): Use them instead of invoking ## directly; otherwise, the
57246         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57247
57248 2004-11-19  Bruno Haible  <bruno@clisp.org>
57249
57250         * lib/strtok_r.c: Move comments from here...
57251         * lib/strtok_r.h: ... to here.
57252
57253 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57254
57255         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57256         implementations that mishandle size_t overflow.
57257
57258 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57259
57260         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57261         might fail.  Problem reported by Yoann Vandoorselaere.
57262         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57263         implementations that mishandle size_t overflow.
57264
57265 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57266
57267         * modules/canon-host (Depends-on): Add strdup.
57268
57269 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57272
57273 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57274
57275         * lib/canon-host.c: Include "strdup.h".
57276         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57277         Use strdup instead of malloc/strcpy to duplicate strings.
57278
57279         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57280         (human_space_before_unit): New constant.
57281         * lib/human.c (human_readable): Support it.
57282
57283         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57284         (xgetcwd): Set errno correctly when failing.
57285         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57286         the failure is actually due to a PATH_MAX problem.
57287
57288         Further getopt changes to make it more likely that glibc will
57289         buy the changes back.
57290         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57291         (getopt): Use it, so to preserve glibc semantic
57292         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57293         when compiling for libc.
57294         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57295         (getopt_long, getopt_long_only): Use it.
57296
57297         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57298         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57299         (getopt): Argv is now char * const *, as per standard.
57300         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57301         not char *__getopt_argv_const *.
57302         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57303         _getopt_long_only_r): Likewise.
57304         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57305         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57306         _getopt_long_r, _getopt_long_only_r): Likewise.
57307         * lib/getopt_.h (__getopt_argv_const): Remove.
57308         (getopt): Argv is now char * const *, as per standard.
57309
57310         * lib/getdate.y (tORDINAL): New token.
57311         (day, relunit): Allow it for relative times.
57312         (relative_time_table): Use tORDINAL for ordinals.
57313
57314 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57317         Document that "second" isn't allowed as an ordinal number.
57318
57319 2004-11-16  Jim Meyering  <jim@meyering.net>
57320
57321         * modules/closeout (Depends-on): Add fpending.
57322
57323 2004-11-15  Jim Meyering  <jim@meyering.net>
57324
57325         * lib/closeout.c: Include "__fpending.h" once again.
57326         Include <stdbool.h>.
57327         (close_stdout): Don't fail just because stdout was closed initially,
57328         since some programs don't write to stdout in the normal course of
57329         operation (other than --version and --help), and we don't want this
57330         function to make e.g. `touch file >&-' fail.
57331         But do fail if it was closed and someone has tried to write to it.
57332         E.g., `printf foo >&-' must fail.
57333
57334 2004-11-13  Jim Meyering  <jim@meyering.net>
57335
57336         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57337
57338 2004-11-12  Simon Josefsson  <jas@extundo.com>
57339
57340         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57341         small doc fix is still pending.
57342
57343 2004-11-11  Simon Josefsson  <jas@extundo.com>
57344
57345         * modules/strtok_r: New file.
57346
57347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57348         strtok_r.
57349
57350 2004-11-11  Simon Josefsson  <jas@extundo.com>
57351
57352         * m4/strtok_r.m4: New file.
57353
57354         * m4/getopt.m4: Replace opterr.
57355
57356 2004-11-11  Simon Josefsson  <jas@extundo.com>
57357
57358         * lib/strtok_r.h, strtok_r.c: New file.
57359
57360 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57363         of replacing opterr, getopt, etc.  This should handle the
57364         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57365
57366 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57367
57368         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57369         we can stop lying to compilers about the constness of argv when we
57370         are compiled outside glibc.
57371         (getopt, getopt_long, getopt_long_only): Use it.
57372         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57373         _getopt_internal, getopt): Likewise.
57374         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57375         _getopt_long_only_r): Likewise.
57376         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57377         _getopt_long_r, _getopt_long_only_r): Likewise.
57378
57379         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57380         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57381         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57382         the other external symbols.
57383         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57384         declaration, since the above renaming now works around collisions.
57385
57386 2004-11-11  Jim Meyering  <jim@meyering.net>
57387
57388         * lib/linebreak.c: Remove trailing blanks.
57389         * lib/alloca_.h: Likewise.
57390         * lib/acosl.c: Likewise.
57391         * lib/euidaccess.c: Likewise.
57392         * lib/allocsa.h: Likewise.
57393
57394 2004-11-10  Simon Josefsson  <jas@extundo.com>
57395
57396         * m4/getaddrinfo.m4: New file.
57397
57398 2004-11-10  Simon Josefsson  <jas@extundo.com>
57399
57400         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57401
57402 2004-11-10  Simon Josefsson  <jas@extundo.com>
57403
57404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57405         getaddrinfo.
57406
57407         * modules/getaddrinfo: New file.
57408
57409 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57410
57411         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57412
57413 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57414
57415         * lib/mktime.c (SHR): New macro, which is a portable
57416         substitute for >> that should work even on Crays.
57417         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57418         Problem reported by Mark D. Baushke in
57419         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57420         * lib/getdate.y (SHR): Likewise.
57421         (tm_diff): Use it.
57422         * lib/strftime.c (SHR): Likewise.
57423         (tm_diff): Use it.
57424         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57425         quote_these_too, so that right shifts are well defined.  All uses
57426         changed.
57427
57428 2004-11-10  Jim Meyering  <jim@meyering.net>
57429
57430         Ensure that no close failure goes unreported.
57431         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57432         return early when it seems there's nothing to flush.
57433         Don't include __fpending.h.
57434
57435 2004-11-10  Jim Meyering  <jim@meyering.net>
57436
57437         * modules/closeout (Depends-on): Remove fpending.
57438
57439 2004-11-10  Jim Meyering  <jim@meyering.net>
57440
57441         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57442
57443 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57444
57445         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57446         gl_FUNC_STRFTIME.
57447         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57448         and AC_REQUIRE when possible, to avoid duplicate checks.
57449         Check for <wchar.h>.
57450
57451 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57454
57455 2004-11-09  Bruno Haible  <bruno@clisp.org>
57456
57457         * m4/sockpfaf.m4: New file.
57458
57459 2004-11-05  Bruno Haible  <bruno@clisp.org>
57460
57461         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57462         Reported by Mark D. Baushke <mdb@cvshome.org>.
57463
57464 2004-11-04  Bruno Haible  <bruno@clisp.org>
57465
57466         2004-09-11  Bruno Haible  <bruno@clisp.org>
57467                 * allocsa.valgrind: New file.
57468         2004-02-06  Bruno Haible  <bruno@clisp.org>
57469                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57470                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57471                 Reported by Christopher Seip <chris.seip@hp.com>.
57472
57473 2004-11-04  Bruno Haible  <bruno@clisp.org>
57474
57475         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57476         (Makefile.am): Distribute it.
57477
57478 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57479
57480         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57481         with errno == ERANGE if the buffer is too small.
57482         Problem reported by Mark D. Baushke.
57483
57484 2004-11-03  Albert Chin  <china@thewrittenword.com>
57485             Paul Eggert  <eggert@cs.ucla.edu>
57486
57487         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57488         equivalent, substitute $ac_type for equivalent type rather than
57489         blindly using uint32_t *always* which won't work if uint32_t is not
57490         available.  Define _UINT32_T to work around typedef of uint32_t if
57491         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57492         2.5.1.
57493
57494 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57495
57496         * m4/jm-macros.m4: Sync from coreutils.
57497         (gl_MACROS): Check for mbrlen, for pathchk.
57498         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57499
57500 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57501
57502         * lib/xreadlink.c (MAXSIZE): New macro.
57503         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57504         size does not exceed MAXSIZE.  Avoid cast.
57505         As suggested by Mark D. Baushke in
57506         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57507         if readlink fails with buffer size just under MAXSIZE, try again
57508         with MAXSIZE.
57509
57510 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57513
57514 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57515         and  Paul Eggert  <eggert@cs.ucla.edu>
57516
57517         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57518         (get_date): Overparenthesize to avoid GCC warning.
57519
57520 2004-11-02  Bruno Haible  <bruno@clisp.org>
57521
57522         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57523         returns void.
57524
57525 2004-11-02  Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
57528         function returns void.
57529
57530 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57531
57532         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
57533         fflush_unlocked, flockfile, funlockfile, funlockfile,
57534         fputs_unlocked, putc_unlocked.
57535
57536 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57537
57538         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57539         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
57540         already declared.
57541
57542 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57543
57544         * modules/getdate (Files): Add doc/getdate.texi.
57545         (Depends-on): Add setenv, xalloc.
57546
57547 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/getdate.y: Add support for TZ="foo" within a date string.
57550         Fix some bugs near time_t boundaries.  Reject dates with
57551         out-of-range components, e.g., "Sept 31".
57552         Include <stdlib.h>, "setenv.h", "xalloc.h".
57553         (ISDIGIT_LOCALE): Remove; unused.
57554         Note that the TZ and time functions used here are not reentrant.
57555         (mktime_ok, get_tz): New functions.
57556         (TZBUFSIZE): New constant.
57557         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
57558         This requires that we sometimes generate our own TZ="XXX..." setting.
57559
57560 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * doc/getdate.texi: New file, from coreutils with modifications for
57563         the new TZ parsing.
57564
57565 2004-10-27  Derek R. Price  <derek@ximbiot.com>
57566
57567         * lib/mktime.c (not_equal_tm): Remove redundant check.
57568
57569 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57570
57571         * modules/regex (lib_SOURCES): Add regex.c.
57572         Reported by James Youngman in
57573         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
57574
57575 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57576
57577         * lib/getdate.y: Use Bison 1.875 features, and some minor
57578         code cleanups.  This change does not affect semantics.
57579         Don't include <stdlib.h>; no longer needed.
57580         Don't include unlocked-io.h; only the "#if TEST" code uses
57581         stdio, and performance isn't crucial there.
57582         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
57583         Bison 1.875 features as described below.
57584         All uses of "PC." replaced by "pc->".
57585         (YYSTYPE): Add a forward declaration.
57586         (yylex, yyerror): Use full prototypes in forward decls.
57587         Use "%pure-parser" rather than obsolescent "%pure_parser".
57588         Use %parse-param and %lex-param instead of obsolescent
57589         YYPARSE_PARAM and YYLEX_PARAM.
57590         (meridian_table, month_and_day_table, time_units_table,
57591         relative_time_table, time_zone_table, military_table,
57592         lookup_zone, lookup_word, get_date):
57593         Use NULL instead of 0 where appropriate.
57594         (to_hour): Avoid abort (), to avoid a dependency on
57595         stdlib.h.
57596         (yyerror, yylex): Now accepts parser_control * arg.
57597         (main) [TEST]: Use '\0' rather than 0 for char.
57598
57599 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57600
57601         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
57602
57603 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57604
57605         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
57606         It's now the caller's responsibility to handle the case where
57607         !HAVE_GETPAGESIZE && !defined getpagesize.
57608
57609         * lib/mktime.c (leapyear): Arg is long int, not int.
57610
57611 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
57614
57615 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
57618         missing.  Problem reported by James Youngman.
57619
57620 2004-10-16  Simon Josefsson  <jas@extundo.com>
57621
57622         * gnulib-tool: Fix comments.  Fix parse problem.
57623         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
57624
57625 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
57626
57627         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
57628         implementation of getopt_long.  Problem reported by Alexander Taler in:
57629         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
57630
57631 2004-10-15  Bruno Haible  <bruno@clisp.org>
57632
57633         * gnulib-tool: Untabify. Initialize supplied_libname.
57634         (func_usage): More homogenous output.
57635         (func_modules_transitive_closure, func_modules_to_filelist,
57636         func_emit_lib_Makefile_am): New functions.
57637         (func_import): New function, extracted from big case statement. Use
57638         func_get_license, func_modules_transitive_closure,
57639         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
57640         opt_lgpl. Don't use test -a, as it's not portable.
57641         (func_create_testdir): Use func_modules_transitive_closure,
57642         func_modules_to_filelist, func_emit_lib_Makefile_am.
57643
57644 2004-10-15  Bruno Haible  <bruno@clisp.org>
57645
57646         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
57647
57648 2004-10-15  Bruno Haible  <bruno@clisp.org>
57649
57650         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
57651         the portions belonging to each module.
57652         Suggested by Derek Robert Price <derek@ximbiot.com>.
57653
57654 2004-10-12  Simon Josefsson  <jas@extundo.com>
57655
57656         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
57657         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
57658         to real functions.
57659
57660 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57661
57662         * modules/vsnprintf: New file.
57663
57664 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57665
57666         * m4/vsnprintf.m4: New file.
57667
57668 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57669
57670         * lib/vsnprintf.h: New file.
57671         * lib/vsnprintf.c: New file.
57672
57673 2004-10-11  Bruno Haible  <bruno@clisp.org>
57674
57675         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
57676         vsnprintf.
57677
57678 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
57681
57682 2004-10-07  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
57685         fits into the provided buffer.
57686
57687 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57688
57689         * lib/diacrit.c, diacrit.h: Add GPL notice.
57690
57691         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
57692         notice.
57693         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
57694         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
57695         This avoids a potential constant-folding bug.
57696
57697 2004-10-05  Bruno Haible  <bruno@clisp.org>
57698
57699         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
57700         for the declaration of strsep.
57701
57702 2004-10-05  Bruno Haible  <bruno@clisp.org>
57703
57704         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
57705
57706 2004-10-04  Simon Josefsson  <jas@extundo.com>
57707
57708         * modules/memmem: New file.
57709         * tests/test-memmem.c: New file.
57710         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
57711
57712 2004-10-04  Simon Josefsson  <jas@extundo.com>
57713
57714         * m4/memmem.m4: New file.
57715
57716 2004-10-04  Simon Josefsson  <jas@extundo.com>
57717
57718         * lib/memmem.h: New file.
57719         * lib/memmem.c: New file, taken from glibc.
57720
57721 2004-10-04  Simon Josefsson  <jas@extundo.com>
57722
57723         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
57724         '#ifdef USE_UNLOCKED_IO'.
57725
57726 2004-10-04  Simon Josefsson  <jas@extundo.com>
57727
57728         * config/srclist.txt: Add memmem from glibc.
57729
57730 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57731
57732         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
57733
57734         * modules/argmatch, modules/argp, modules/closeout, modules/error,
57735         modules/exclude, modules/getdate, modules/getline,
57736         modules/getndelim2, modules/getpass, modules/getpass-gnu,
57737         modules/getusershell, modules/linebuffer, modules/md5,
57738         modules/mountlist, modules/posixtm, modules/readtokens,
57739         modules/readutmp, modules/regex, modules/sha1,
57740         modules/version-etc, modules/yesno:
57741         Remove dependency on unlocked-io.
57742
57743 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57744
57745         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
57746
57747         * m4/unlocked-io.m4: Add copyright notice.
57748         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
57749
57750 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
57753         * lib/xmalloc.c (xmemdup): Likewise.
57754         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
57755         XFREE): Remove these long-obsolescent macros.
57756         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
57757         * lib/xstrdup.c: Remove.
57758
57759         * lib/regex.c (re_comp): Cast gettext return value to char *,
57760         Problem reported by Martin Neitzel via Mark D. Baushke.
57761
57762 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
57765         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
57766         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
57767         regex.c, sha1.c, version-etc.c, yesno.c:
57768         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
57769         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
57770         the includer's responsibility.
57771
57772         Sync from coreutils.
57773
57774         * lib/modechange.c (mode_compile): Don't decrement a pointer that
57775         points to the start of a string, as the C Standard says the
57776         resulting behavior is undefined.
57777
57778         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
57779         simple -> simple_backups, numbered_existing ->
57780         numbered_existing_backups, numbered -> numbered_backups
57781         to avoid shadowing problems.  All uses changed.
57782         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
57783         * lib/backupfile.c (check_extension, numbered_backup):
57784         Rename locals to avoid shadowing 'basename'.
57785         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
57786         once.
57787
57788         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
57789         * lib/.cvsignore: Add getopt.h.
57790
57791 2004-10-04  Bruno Haible  <bruno@clisp.org>
57792
57793         * modules/README: New file.
57794         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
57795         not a module.
57796
57797 2004-10-02  Jim Meyering  <jim@meyering.net>
57798
57799         * lib/dirfd.h, getpagesize.h: Add copyright notice.
57800
57801 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57802
57803         * modules/strsep: New file.
57804
57805 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57806
57807         * m4/strsep.m4: New file.
57808
57809 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57810
57811         * lib/strsep.h: New file.
57812         * lib/strsep.c: New file.
57813
57814 2004-10-01  Simon Josefsson  <jas@extundo.com>
57815
57816         * lib/snprintf.c (snprintf): Handle size==0.
57817
57818 2004-10-01  Simon Josefsson  <jas@extundo.com>
57819             Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
57822         (snprintf): Declare 'args'.
57823
57824 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
57825
57826         * lib/snprintf.c: Remove comments as to why each header is needed.
57827
57828 2004-10-01  Bruno Haible  <bruno@clisp.org>
57829
57830         * MODULES.html.sh: Add strsep.
57831
57832 2004-09-30  Simon Josefsson  <jas@extundo.com>
57833
57834         * modules/snprintf: New file.
57835
57836 2004-09-30  Simon Josefsson  <jas@extundo.com>
57837
57838         * m4/snprintf.m4: New file.
57839
57840 2004-09-30  Simon Josefsson  <jas@extundo.com>
57841
57842         * lib/snprintf.h, lib/snprintf.c: New files.
57843
57844 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57845
57846         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
57847         (hol_entry_help): Never translate an empty string.
57848         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
57849         * lib/argp.h (OPTION_NO_TRANS): New option.
57850
57851 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57852
57853         * modules/argp (Maintainer): Replace Simon Josefsson
57854         by Sergey Poznyakoff.
57855
57856 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
57859         changes merged back into glibc.
57860
57861 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
57862
57863         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
57864
57865 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57866
57867         * lib/xvasprintf.c: Include xalloc.h.
57868         (xvasprintf): Use xalloc_die, not xmalloc_die.
57869
57870 2004-09-29  Bruno Haible  <bruno@clisp.org>
57871
57872         * modules/alloca-opt: New file, derived from modules/alloca.
57873         * modules/allocsa: Depend on alloca-opt instead of alloca.
57874         * modules/setenv: Likewise.
57875         * modules/vasnprintf: Likewise.
57876         * MODULES.html.sh: Add alloca-opt.
57877
57878 2004-09-28  Simon Josefsson  <jas@extundo.com>
57879
57880         * gnulib-tool: New parameter --lgpl, to asseert that modules are
57881         LGPL, and to replace license template from GPL to LGPL.
57882
57883 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         * modules/dummy: Change license to LGPL.
57886
57887 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
57890
57891 2004-09-24  Simon Josefsson  <jas@extundo.com>
57892
57893         * modules/minmax (License): Change from GPL to LGPL.
57894
57895 2004-09-23  Simon Josefsson  <jas@extundo.com>
57896
57897         * gnulib-tool (--import): Typo.
57898
57899 2004-09-23  Simon Josefsson  <jas@extundo.com>
57900
57901         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
57902
57903 2004-09-22  Bruno Haible  <bruno@clisp.org>
57904
57905         * modules/*: Add 'License' field.
57906         * gnulib-tool: Accept --extract-license option.
57907         (func_get_license): New function.
57908
57909 2004-09-21  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
57912         Reported by Simon Josefsson.
57913
57914 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57915
57916         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
57917         gl_AC_TYPE_LONG_LONG.
57918
57919 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57920
57921         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
57922
57923 2004-09-18  Simon Josefsson  <jas@extundo.com>
57924         and  Paul Eggert  <eggert@cs.ucla.edu>
57925
57926         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
57927         calls with autoreconf.  Define GL_LIB.
57928
57929 2004-09-14  Karl Berry  <karl@gnu.org>
57930
57931         * config/srclist.txt: unsync setenv.c, sigh.
57932
57933 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57934
57935         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
57936         Problem reported by Bruno Haible in:
57937         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
57938
57939 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         * config/srclist.txt: Comment out argp-pvh.c.
57942
57943 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
57944
57945         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
57946         in case some system header has #define'd it.  Problem reported by
57947         Soeren D. Schulze in
57948         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
57949
57950 2004-09-09  Karl Berry  <karl@gnu.org>
57951
57952         * regex.[ch]: delete from the root.  These were supposed to be
57953                 synced with emacs cvs, but this has not happened for about
57954                 a year, and anyway nothing else uses emacs regex.[ch].
57955                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
57956                 lib/regex[.ch] is untouched.
57957
57958 2004-09-09  Bruno Haible  <bruno@clisp.org>
57959
57960         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
57961
57962 2004-09-09  Bruno Haible  <bruno@clisp.org>
57963
57964         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
57965         modifications.
57966         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
57967
57968 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57969
57970         * modules/xvasprintf: New file.
57971         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
57972
57973 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
57974
57975         * lib/xvasprintf.h: New file.
57976         * lib/xvasprintf.c: New file.
57977         * lib/xasprintf.c: New file.
57978
57979 2004-09-08  Bruno Haible  <bruno@clisp.org>
57980
57981         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
57982
57983 2004-09-08  Bruno Haible  <bruno@clisp.org>
57984
57985         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
57986         length is > INT_MAX.
57987         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
57988         more.
57989
57990 2004-09-08  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/stdint_.h: New file, taken from GNU clisp.
57993
57994 2004-09-08  Bruno Haible  <bruno@clisp.org>
57995             Oskar Liljeblad  <oskar@osk.mine.nu>
57996
57997         * modules/stdint: New file.
57998         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
57999
58000 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58001
58002         Import from coreutils.
58003         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58004         strings on unbounded length.  alloca's performance benefits aren't
58005         that important here.
58006         (V_STRDUP): Remove.
58007         (parse_with_separator): New function, with most of the internals
58008         of the old parse_user_spec.  Allow user to omit both user and group,
58009         for compatibility with FreeBSD.
58010         Clone only the user name, not the entire spec.
58011         Do not set *uid, *gid unless entirely successful.
58012         Avoid memory leak in some failing cases.
58013         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58014         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58015         (parse_user_spec): Rewrite to use parse_with_separator.
58016
58017 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58018
58019         * modules/userspec: Don't depend on alloca.
58020
58021 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58024
58025 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58028         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58029         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58030
58031 2004-08-16  Simon Josefsson  <jas@extundo.com>
58032
58033         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58034         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58035         Add --dry-run for --import.
58036         Let user provided command line parameters override configure.ac
58037         settings.
58038
58039 2004-08-12  Simon Josefsson  <jas@extundo.com>
58040
58041         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58042         as discussed with Paul Eggert in threads rooted at
58043         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58044         and
58045         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58046         Before, the test was empty, and relied on ELIDE_CODE in source
58047         code.)
58048         (gl_PREREQ_GETOPT): New macro.
58049         (gl_GETOPT): Use them.
58050
58051 2004-08-12  Simon Josefsson  <jas@extundo.com>
58052
58053         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58054         * lib/getopt_.h: Renamed from getopt.h.
58055
58056 2004-08-12  Simon Josefsson  <jas@extundo.com>
58057
58058         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58059         Change default library name from libfoo to libgnu.
58060         Now, if you have a configure.ac that says:
58061                 gl_SOURCE_BASE(gl)
58062                 gl_M4_BASE(gl/m4)
58063                 gl_MODULES(error getopt etcetera)
58064                 gl_INIT
58065         you can import all you need by running:
58066                 ../gnulib/gnulib-tool --import
58067
58068         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58069         (Makefile.am): Rewrite, use logic from argz.
58070         (Include): Use <getopt.h> instead of "getopt.h".
58071
58072 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58073
58074         * modules/argp (Files): Add m4/unlocked-io.m4.
58075         (Depends-on): Add extensions.
58076
58077 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58080         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58081         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58082         Check for program_invocation_name, program_invocation_short_name,
58083         flockfile, funlockfile, features.h, _getopt_long_only_r.
58084
58085 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58086
58087         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58088         its complicated substitute.
58089         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58090         and program_invocation_name.
58091         (__argp_basename) [!_LIBC]: Remove; the only use was
58092         replaced by its body.
58093         (__argp_short_program_name): Change condition from
58094         !defined __argp_short_program_name to
58095         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58096         to match argp-namefrob.h.
58097         (__argp_failure): Don't assume strerror_r returns char *.
58098         * lib/argp-parse.c (N_): Define unconditionally.
58099         (argp_default_options): Fill out initializers with 0 to avoid
58100         gcc warnings.
58101
58102 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58105         getopt1.c.
58106
58107 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58108
58109         Merge from coreutils.
58110
58111         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58112
58113         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58114         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58115
58116 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         Merge from coreutils.
58119
58120         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58121         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58122         for Reliant Unix 5.43.
58123
58124         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58125         (union fooround): Use uintmax_t, not long int.
58126         The rest is a merge from libc:
58127         [defined _LIBC]: Include <shlib-compat.h>.
58128         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58129
58130         * lib/settime.c (settime): Recode to avoid warning with
58131         Sun Forte C 6U2.
58132
58133         * lib/strverscmp.c: Convert to UTF-8.
58134
58135 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58136
58137         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58138         m4/uintmax_t.m4.
58139
58140 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58141
58142         * modules/xalloc-die: New file.
58143         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58144
58145         * modules/md5 (Files): Add m4/uint32_t.m4.
58146         * modules/sha1: Renamed from modules/sha.
58147         (Files):
58148         Rename lib/sha.h to lib/sha1.h.
58149         Rename lib/sha.c to lib/sha1.c.
58150         Rename m4/sha.m4 to m4/sha1.m4.
58151         (lib_SOURCES): Likewise.
58152         (configure.ac): Rename gl_SHA to gl_SHA1.
58153         (Include): sha.h -> sha1.h.
58154
58155 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58156
58157         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58158         * m4/sha1.m4: Renamed from sha.m4.
58159         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58160
58161 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58162
58163         * lib/obstack.h (obstack_empty_p):
58164         Don't assume that chunk->contents is suitably aligned.
58165         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58166         Likewise. Problem reported by Benno in
58167         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58168
58169         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58170         readable.  This could be improved further but it'd take some work.
58171
58172 2004-08-08  Simon Josefsson  <jas@extundo.com>
58173
58174         * modules/xgethostname (Depends-on): Remove exit and error (not
58175         used).
58176
58177         * modules/getpass-gnu: Add getpass.h.
58178         (Depends-on): Add stdbool.
58179         * modules/getpass: Add getpass.h.
58180
58181 2004-08-08  Simon Josefsson  <jas@extundo.com>
58182
58183         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58184         Check getpass declaration.
58185
58186 2004-08-08  Simon Josefsson  <jas@extundo.com>
58187
58188         * lib/xgethostname.c: Don't include error.h (not used).
58189
58190         * lib/getpass.h: Add.
58191         * lib/getpass.c: Include getpass.h first.
58192
58193 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         * lib/xalloc-die.c: New file.
58196         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58197         All uses removed.
58198         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58199         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58200         xalloc-die.c.
58201         (_, N_, xalloc_die): Move to xalloc-die.c.
58202         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58203         so that we needn't mess with xalloc_msg_memory_exhausted.
58204
58205         * lib/sha1.h: Renamed from sha.h.
58206         (SHA1_H): Renamed from _SHA_H.
58207         (sha1_ctx): Renamed from sha_ctx.
58208         (sha1_init_ctx): Renamed from sha_init_ctx.
58209         (sha1_process_block): Renamed from sha_process_block.
58210         (sha1_process_bytes): Renamed from sha_process_bytes.
58211         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58212         (sha1_read_ctx): Renamed from sha_read_ctx.
58213         (sha1_stream): Renamed from sha_stream.
58214         (sha1_buffer): Renamed from sha_buffer.
58215         * lib/sha1.c: Likewise; renamed from sha.c.
58216         Do not include <sys/types.h>.
58217         Include <stddef.h> rather than <stdlib.h>.
58218
58219 2004-08-08  Bruno Haible  <bruno@clisp.org>
58220
58221         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58222         FILESYSTEM_PREFIX_LEN.
58223         * lib/progreloc.c: Likewise.
58224         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58225
58226 2004-08-06  Simon Josefsson  <jas@extundo.com>
58227
58228         * modules/progname (Depends-on): Don't depend on stdbool.
58229
58230 2004-08-06  Simon Josefsson  <jas@extundo.com>
58231
58232         * modules/getsubopt: New file.
58233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58234         getsubopt.
58235
58236 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58237
58238         More merge from coreutils.
58239
58240         * m4/utimens.m4, m4/utimecmp.m4: New files.
58241         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58242         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58243         prereq.m4, sha.m4: Import changes from coreutils.
58244
58245 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58246
58247         More merge from coreutils.
58248         * modules/raise, modules/readtokens0, modules/utimens:
58249         * modules/utimecmp, module/xnanosleep: New files.
58250         * modules/strftime: Add lib/strftime.h.
58251         Change include from <time.h> to "strftime.h".
58252         * modules/yesno: Add lib/yesno.h.
58253         * modules/backupfile: Remove lib/addext.c.
58254         * modules/euidaccess: Add stat-macros.h.
58255         * modules/canonicalize, modules/euidaccess,
58256         modules/filemode, modules/lchown, modules/makepath,
58257         modules/rmdir, modules/stat: Likewise.
58258
58259 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         Merge from tar.
58262         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58263         SIZE_MAX is a valid preprocessor constant.
58264         (__argp_basename): Change from "#ifndef _LIBC"
58265         to "#ifndef __argp_short_program_name", so that
58266         we don't compile these functions for tar.
58267
58268         More merges from coreutils.
58269         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58270         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58271         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58272         * lib/addext.c: Remove; no longer needed.
58273         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58274         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58275         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58276         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58277         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58278         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58279         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58280         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58281         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58282         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58283         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58284         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58285         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58286         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58287         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58288         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58289         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58290         Import changes from coreutils.
58291
58292 2004-08-05  Simon Josefsson  <jas@extundo.com>
58293
58294         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58295
58296 2004-08-05  Simon Josefsson  <jas@extundo.com>
58297
58298         * m4/getsubopt.m4: New file.
58299
58300 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58301
58302         Merge from coreutils.
58303
58304         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58305         * m4/getcwd-path-max.m4: New files.
58306
58307         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58308         FILESYSTEM_PREFIX_LEN ->
58309         FILE_SYSTEM_PREFIX_LEN.
58310         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58311         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58312         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58313         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58314
58315         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58316         prerequisite modules now handle the DOS stuff.
58317         Don't check for unistd.h.
58318
58319 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58320
58321         Merge from coreutils.
58322
58323         * lib/.gdb-history: Remove; this doesn't belong here.
58324
58325         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58326         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58327         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58328         * lib/getcwd.c: New files.
58329
58330         * lib/dirname.h: Include <stdbool.h>.
58331         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58332         for consistency with POSIX terminology.  All uses changed.
58333         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58334         (strip_trailing_slashes): Use bool for booleans.
58335         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58336
58337         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58338         sometimes returns a positive errno value even when it succeeds.
58339         (print_errno_message) [!LIBC]: Fall back on strerror if
58340         __strerror_r fails.
58341
58342         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58343         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58344         (longest_relative_suffix): New function.
58345         (path_concat): Use it.  Assume first argument is not NULL.
58346         Port to DOS.  Omit redundant separators.
58347         Report an error instead of returning NULL.
58348         Use mempcpy instead of memcpy.
58349         (xpath_concat): Remove: not declared or used.
58350
58351         * lib/same.h: Include <stdbool.h>
58352         (same_name): Return bool, not int.
58353         * lib/same.c (same_name): Likewise.
58354         (errno): Don't declare; we assume C89 or better now.
58355
58356         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58357         if not already defined.
58358
58359         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58360         * lib/dup-safer.c (errno): Likewise.
58361
58362 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58363
58364         Merge from coreutils.
58365         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58366         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58367         * modules/path-concat: Don't depend on strdup.
58368
58369 2004-08-03  Simon Josefsson  <jas@extundo.com>
58370
58371         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58372         * lib/progname.h: Don't include stdbool.h.
58373
58374 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58375
58376         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58377         * MODULES.html.sh (func_all_modules): Remove fatal.
58378
58379 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58380
58381         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58382
58383 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58386         working.
58387
58388 2004-08-02  Simon Josefsson  <jas@extundo.com>
58389
58390         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58391         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58392         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58393
58394 2004-08-01  Simon Josefsson  <jas@extundo.com>
58395
58396         * lib/xgetdomainname.c: Include stdlib.h, for free().
58397
58398 2004-07-19  Bruno Haible  <bruno@clisp.org>
58399
58400         * MODULES.html.sh (func_all_modules): Add dummy.
58401
58402 2004-07-16  Simon Josefsson  <jas@extundo.com>
58403
58404         * modules/dummy: New file.
58405
58406 2004-07-16  Simon Josefsson  <jas@extundo.com>
58407
58408         * lib/dummy.c: New file.
58409
58410 2004-07-16  Bruno Haible  <bruno@clisp.org>
58411
58412         * lib/backupfile.h: Add extern "C" for C++.
58413         * lib/closeout.h: Likewise.
58414         * lib/copy-file.h: Likewise.
58415         * lib/findprog.h: Likewise.
58416         * lib/full-write.h: Likewise.
58417         * lib/pathname.h: Likewise.
58418         * lib/progname.h: Likewise.
58419         * lib/stpcpy.h: Likewise.
58420         * lib/stpncpy.h: Likewise.
58421         * lib/strcase.h: Likewise.
58422         * lib/strstr.h: Likewise.
58423         * lib/xalloc.h: Likewise.
58424
58425         * lib/mbswidth.h: Add extern "C" for C++.
58426         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58427
58428 2004-07-13  Robert Millan  <robertmh@gnu.org>
58429
58430         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58431
58432 2004-07-09  Simon Josefsson  <jas@extundo.com>
58433
58434         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58435         failed without this.)
58436
58437 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58438
58439         * modules/chown (Files): Add lib/fchown-stub.c, since
58440         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58441
58442 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * lib/fchown-stub.c: New file.
58445
58446 2004-06-24  Jim Meyering  <jim@meyering.net>
58447
58448         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58449
58450 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58451
58452         * modules/argz: Omit "#include".
58453
58454         * MODULES.html.sh (func_all_modules): Add calloc, to match
58455         2004-06-01 addition of calloc module.
58456
58457 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         * m4/argz.m4: New file, which is autoupdated from libtool.
58460
58461 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58462
58463         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58464         libtool.
58465
58466 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58467
58468         * config/srclist-update: Don't insist on "USA." before the
58469         close-comment, as libtool omits the period and puts the */ on a
58470         separate line.
58471         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58472         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58473
58474 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58475
58476         * modules/argz: New file.
58477         * MODULES.html.sh (func_all_modules): Add argz.
58478
58479 2004-06-12  Jim Meyering  <jim@meyering.net>
58480         and  Paul Eggert  <eggert@cs.ucla.edu>
58481
58482         * modules/hash (Files): Add lib/xalloc.h.
58483         * modules/pipe (Depends-on): Add wait-process.
58484         * modules/stat (Depends-on): Add xalloc.
58485         * modules/userspec (Files): Add lib/userspec.h.
58486         * modules/xstrto
58487
58488         Upgrade from gettext-0.13.
58489         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58490         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58491         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58492
58493 2004-06-10  Jim Meyering  <jim@meyering.net>
58494
58495         * lib/calloc.c: New file.
58496
58497 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * lib/getdate.y (yylex): Allow space between sign and number.
58500         Problem reported by Dan Jacobson.
58501
58502 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58503
58504         Merge from coreutils CVS.
58505
58506         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58507         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58508         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58509         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58510         xstrtol.m4: Fix copyright date and/or serial number.
58511
58512         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58513         See if we need an fchown replacement.
58514         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58515         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58516         and use the replacement function if we detect either defect.
58517
58518         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58519         gl_UTIMECMP.
58520
58521 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58522         and  Jim Meyering  <jim@meyering.net>
58523
58524         Merge from coreutils CVS.
58525
58526         * lib/stat-macros.h: New file, with contents from file-type.h
58527         and coreutils' system.h.
58528         * lib/file-type.c: Include "stat-macros.h".
58529         * lib/file-type.h (file_type): Move all macro definitions to new file,
58530         stat-macros.h.
58531
58532         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
58533         Wrap old code with this conditional.
58534         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
58535         function that does not dereference symlinks.
58536         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
58537
58538         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
58539         dependency problems.
58540         (xreadlink): Accept new arg SIZE, for efficiency.
58541         All decls and uses changed.
58542         * lib/xreadlink.h: Include <stddef.h>, for size_t.
58543
58544         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
58545         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
58546
58547         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
58548         sysexits.h.
58549
58550 2004-06-01  Jim Meyering  <jim@meyering.net>
58551
58552         * m4/calloc.m4: New file.
58553
58554 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
58555
58556         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
58557         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
58558         Also, fix a typo in a diagnostic.
58559
58560 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58561
58562         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
58563         or AC_FUNC_REALLOC.
58564
58565 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
58566
58567         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
58568         macros to be defined.
58569         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
58570         the allocator returns NULL because the requested size is zero.
58571
58572 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58573
58574         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
58575         var.  Add comment explaining why libc still defines it.  This
58576         merges the following patch from glibc:
58577         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
58578
58579 2004-05-20  Andreas Schwab  <schwab@suse.de>
58580
58581         * m4/free.m4: Replace free if it not known to work, not the other
58582         way round.
58583
58584 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
58585
58586         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
58587         present in glibc since revision 1.1 of this file.
58588         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
58589         obstack_alignment_mask, obstack_alloc, obstack_base,
58590         obstack_blank, obstack_blank_fast, obstack_chunk_size,
58591         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
58592         obstack_grow0, obstack_init, obstack_int_grow,
58593         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
58594         obstack_next_free, obstack_object_size, obstack_ptr_grow,
58595         obstack_ptr_grow_fast, obstack_room): Remove declarations of
58596         nonexistent functions.
58597
58598 2004-05-18  Karl Berry  <karl@gnu.org>
58599
58600         * config/srclist.txt: break link for vasnprintf.c.
58601
58602 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58603
58604         Port obstack to the AS/400, where pointers are 16 bytes wide and
58605         you cannot cast an integer to a valid pointer.  This patch is
58606         currently waiting to be integrated into glibc; see
58607         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
58608
58609         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
58610         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
58611         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
58612         (struct obstack): temp member is now a union of a pointer and
58613         an integer, instead of an integer.  All integer uses changed.
58614         This does not affect the physical layout of struct obstack,
58615         except on hosts (like the AS/400) where the size or alignment of
58616         void * is greater than that of ptrdiff_t.
58617         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
58618         __STDC__)]: Store temporary in pointer member of union, not
58619         integer member.
58620         * lib/obstack.c: Include <stddef.h>, for offsetof.
58621         (struct fooalign): Remove; it doesn't need a name.
58622         (union fooround): Change double to long double, and add void *.
58623         (DEFAULT_ALIGNMENT): Use offsetof to compute.
58624         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
58625         not a macro.  Hence the values are always int; so remove all
58626         casts-to-int in uses.
58627
58628 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
58631         we can get this patch merged into glibc.
58632
58633 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58634             Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * m4/argp: Depend on alloca.
58637
58638 2004-05-17  Derek R. Price  <derek@ximbiot.com>
58639             Paul Eggert  <eggert@cs.ucla.edu>
58640
58641         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
58642         freecoding.
58643
58644 2004-05-17  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
58647         precision that consists of a '.' followed by an empty digit string.
58648         Patch by Tor Lillqvist <tml@iki.fi>.
58649
58650 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58651
58652         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
58653         for backward compatibility with older code.  We need our own
58654         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
58655         it under some other name, and our alloca.h will define it.
58656
58657 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58658             Derek Price  <derek@ximbiot.com>
58659
58660         * lib/alloca.c: Include <alloca.h>, to get our interface.
58661         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
58662         include <alloca.h> first.  Use C89 prototype for alloca; this
58663         requires including <stddef.h> for size_t.  Use extern "C" if C++.
58664         Use #elif for simplicity, since we can assume C89 now.
58665         Don't try to source the system alloca.h since it will not be found
58666         and to prevent recursively including its replacement.
58667         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
58668         * lib/regex.c: Likewise.
58669
58670 2004-05-16  Derek Price  <derek@ximbiot.com>
58671             Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         getline cleanup.  This changes the getndelim2 API: both order of
58674         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
58675         no delimiter).
58676
58677         * lib/getline.c: Don't include stddef.h or stdio.h, since our
58678         interface does that.
58679         (getline): Always use getdelim, so that we don't have two
58680         copies of this code.
58681         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
58682         if available.
58683         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
58684         (GETNDELIM2_MAXIMUM): New macro.
58685         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
58686         instead of the old practice of delim2==0.  All callers changed.
58687         Return -1 on overflow, instead of returning junk.
58688         Do not set *linesize unless allocation succeeds.
58689         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
58690         that we include sys/types.h.
58691         * lib/getnline.h: Likewise.
58692         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
58693         (getndelim2): Reorder arguments.
58694         * lib/getnline.c (getnline, getndelim):
58695         Don't discard the NMAX argument.
58696         (getnline): Invoke getndelim, to avoid code duplication.
58697         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
58698         of (size_t) -1 by callers of the getnline family.
58699
58700 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
58703         Check for gettimeofday.
58704         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
58705         Check for settimeofday, stime.
58706
58707 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         * lib/nanosleep.c (suspended): Change its type from int to
58710         sig_atomic_t volatile.
58711         (first_call): Make it private to rpl_nanosleep, and have it
58712         be zero initially as that's a bit faster.
58713         (my_usleep): Round up fractional times instead of truncating them,
58714         as this is the usual meaning for 'sleep'.
58715
58716         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
58717         doesn't work.
58718         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
58719         (ENOSYS): Define if not defined.
58720         (settime): Fall back on stime if it exists and settimeofday fails.
58721         But don't bother with fallbacks if a method fails with errno == EPERM.
58722
58723 2004-05-11  Jim Meyering  <jim@meyering.net>
58724
58725         Prior to this change, the save_cwd caller required read access to the
58726         current directory on most systems (ones with the fchdir function).
58727
58728         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
58729         fails, try write-only, and finally, resort to using xgetcwd.
58730
58731 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         * lib/obstack.c, obstack.h: Import changes from libc.
58734
58735 2004-04-28  Bruno Haible  <bruno@clisp.org>
58736
58737         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
58738         also implicitly appends .exe to executables.
58739         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
58740         accepts Windows pathnames.
58741         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58742         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58743         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
58744         Treat Cygwin like Windows, since it now accepts Windows pathnames.
58745         Reported by Derek Robert Price <derek@ximbiot.com>.
58746
58747 2004-04-21  Karl Berry  <karl@gnu.org>
58748
58749         * config/srclist.txt (localcharset.c): break sync.
58750
58751 2004-04-20  Paul Eggert  <eggert@twinsun.com>
58752
58753         * m4/host-os.m4: Add a copyright notice.
58754
58755 2004-04-20  Jim Meyering  <jim@meyering.net>
58756
58757         Change UTILS_ to gl_ in AC_DEFINE'd names.
58758         Change utils_- and jm_-prefixed variables, too.
58759         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
58760         UTILS_FUNC_MKDIR_TRAILING_SLASH.
58761         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
58762
58763         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
58764         Don't emit trailing blanks.
58765         Also rename jm_-prefixed variables to have gl_ prefix.
58766
58767         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
58768         Also rename jm_-prefixed variables to have gl_ prefix.
58769
58770         * m4/jm-macros.m4: Reflect the renamings.
58771         * m4/prereq.m4: Likewise.
58772
58773 2004-04-20  Jim Meyering  <jim@meyering.net>
58774
58775         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
58776         memory.
58777
58778 2004-04-20  Jim Meyering  <jim@meyering.net>
58779             Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
58782         memory when realloc fails.
58783
58784 2004-04-19  Jim Meyering  <jim@meyering.net>
58785
58786         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
58787         now that readutmp.c may call `free (0)'.
58788
58789 2004-04-19  Bruno Haible  <bruno@clisp.org>
58790
58791         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
58792         * m4/inttypes_h.m4: Likewise.
58793         * m4/stdint_h.m4: Likewise.
58794         * m4/intmax_t.m4: Likewise.
58795         * m4/uintmax_t.m4: Likewise.
58796
58797 2004-04-18  Jim Meyering  <jim@meyering.net>
58798
58799         * m4/prereq.m4: Don't forbid jm_ prefix.
58800
58801         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
58802         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
58803         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
58804         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
58805         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
58806         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
58807         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
58808         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
58809         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
58810         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
58811         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
58812         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
58813         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
58814         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
58815         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
58816         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
58817         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
58818         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
58819         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
58820
58821 2004-04-18  Jim Meyering  <jim@meyering.net>
58822
58823         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
58824         failure, don't leak memory and do call END_UTMP_ENT.
58825
58826 2004-04-16  Jim Meyering  <jim@meyering.net>
58827
58828         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
58829         coreutils' stat program.
58830         (gl_PREREQ): Don't require jm_PREREQ_STAT.
58831
58832 2004-04-11  Paul Eggert  <eggert@twinsun.com>
58833
58834         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
58835         C89.
58836         (CHAR_BIT): Remove, since we assume C89.
58837         Include <stdint.h> if available, as per current Autoconf CVS advice.
58838
58839 2004-03-31  Jim Meyering  <jim@meyering.net>
58840
58841         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
58842         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
58843         * m4/xalloc.m4: Likewise.
58844
58845 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58846
58847         Merge from coreutils.
58848
58849         * m4/inttostr.m4: New file.
58850         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
58851         Require AM_STDBOOL_H and gl_TIMESPEC instead.
58852         Require gl_CLOCK_TIME.
58853         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
58854
58855 2004-03-30  Paul Eggert  <eggert@twinsun.com>
58856
58857         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
58858         not bool, to be more consistent with Unix conventions.
58859         Suggested by Bruno Haible.
58860
58861         Merge from coreutils.
58862
58863         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
58864         * lib/umaxtostr.c: New files.
58865
58866         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
58867         the usual <time.h> dance.
58868         (get_date): Change signature to support fractional time stamps.
58869         All callers changed.
58870         * lib/getdate.y: Include "getdate.h" first, as we can now
58871         assume C89 and don't need to worry about 'const'.
58872         Similarly, include "unlocked-io.h" near start, not in middle.
58873         Include <limits.h>.
58874         (textint.value): Use long int rather than int.
58875         (textint.digits): Use size_t rather than int.
58876         (BILLION, LOG10_BILLION): New constants.
58877         (parser_control): New member rel_ns.  Members day_ordinal,
58878         time_zone, month, day, hour, minutes, rel_year, rel_month,
58879         rel_day, rel_hour, rel_minutes, rel_seconds
58880         are now long int, not int.  Member seconds is now struct timespec,
58881         not int.  New member timespec_seen.  Members dates_seen, days_seen,
58882         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
58883         not int.
58884         (%union.intval): Now long int, not int.
58885         New member timespec.
58886         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
58887         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
58888         (spec): Now is a timespec or an item list.
58889         (timespec, items): New nonterminals.
58890         (time, rel, relunit, number, get_date):
58891         Add support for fractional seconds.
58892         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
58893         (gmtime, localtime, mktime): Remove decls; not needed with C89.
58894         (to_hour): First arg is now long int, not int.
58895         (to_year): Returns long int, not int.
58896         Don't treat year -70 like 70.
58897         (tm_diff): Returns long int, not int.
58898         (lookup_word): Use bool instead of int when appropriate.
58899         (yylex): Use size_t for count, not int.
58900         Detect overflow when parsing large integer constants.
58901         Add support for fractions.
58902         (get_date): Make pointers 'const' if possible.
58903         Use more-portable code to detect integer overflow.
58904         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
58905         Don't use ctime; it's not reliable if the year has >4 digits.
58906
58907         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
58908         This is for compatibility with BSD.
58909
58910         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
58911         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
58912         From coreutils' system.h.
58913
58914         * lib/userspec.c: Don't include "posixver.h".
58915         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
58916         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
58917         compatible extension.  Simplify code by removing a boolean int
58918         that was always nonzero if a string was nonnull.
58919
58920 2004-03-30  Jim Meyering  <jim@meyering.net>
58921
58922         Merge from coreutils.
58923
58924         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
58925         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
58926         on some systems one must include <grp.h> before it.
58927         Reported by Christian Krackowizer.
58928
58929 2004-03-30  Jim Meyering  <jim@meyering.net>
58930
58931         Merge from coreutils.
58932
58933         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
58934
58935         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
58936         an empty input stream.
58937
58938         * lib/readtokens.c: Include <stdbool.h>.
58939         (readtoken): Use `size_t' rather than int/long.
58940         All callers adjusted.
58941         Use `bool' rather than `int' where appropriate.
58942         Use memset rather than an explicit loop.
58943         Use x2nrealloc rather than xrealloc.
58944         Allow the use of `\0' as a delimiter.
58945         (readtokens): Likewise.
58946         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
58947
58948 2004-03-30  Jim Meyering  <jim@meyering.net>
58949
58950         * m4/realloc.m4: Remove file, since now it does no more than
58951         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
58952         the `configure.ac' section of module/realloc.
58953         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
58954
58955 2004-03-30  Bruno Haible  <bruno@clisp.org>
58956
58957         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
58958         nonnull.
58959
58960 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58961
58962         Merge changes to getloadavg.c from coreutils and Emacs.
58963
58964         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
58965         Define to an expression, not to the empty string.
58966         Include cloexec.h and xalloc.h.
58967         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
58968         Use set_cloexec_flag rather than rolling our own.
58969         * lib/cloexec.c, lib/cloexec.h: New files.
58970
58971 2004-03-29  Paul Eggert  <eggert@twinsun.com>
58972
58973         * m4/cloexec.m4: New file.
58974
58975 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58976
58977         * lib/getopt.h: Sync with libc CVS.
58978
58979 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58980             Bruno Haible  <bruno@clisp.org>
58981
58982         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
58983         mbswidth.
58984
58985 2004-03-18  Paul Eggert  <eggert@twinsun.com>
58986             Bruno Haible  <bruno@clisp.org>
58987
58988         * lib/mbswidth.h: Include <wchar.h> only if
58989         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
58990         <wchar.h>.
58991         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
58992
58993 2004-03-09  Paul Eggert  <eggert@twinsun.com>
58994
58995         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
58996         Sync with libc CVS.
58997         * lib/getopt_int.h: New file, also synced from libc.
58998
58999 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59000
59001         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59002         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59003         Bring back getopt.c, getopt.h, getopt1.c.
59004
59005 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59006
59007         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59008         All uses changed.  Check for sa_sigaction member; this fixes
59009         a bug first reported by Jason Andrade in
59010         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59011
59012 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59013
59014         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59015         '#if' expressions.  Unlike the code it replaces, it does not
59016         depend on (defined _SC_PAGESIZE).  However, it does depend on
59017         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59018         first reported by Jason Andrade in
59019         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59020
59021 2004-02-25  Simon Josefsson  <jas@extundo.com>
59022
59023         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59024
59025 2004-02-25  Simon Josefsson  <jas@extundo.com>
59026
59027         * lib/strdup.h: New file.
59028         * lib/strdup.c: Include it.
59029         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59030         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59031
59032 2004-02-23  Karl Berry  <karl@gnu.org>
59033
59034         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59035         (from fencepost.gnu.org:/gd/gnuorg).
59036
59037 2004-02-23  Karl Berry  <karl@gnu.org>
59038
59039         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59040         * config/srclist.txt: add maintain/standards documents.
59041
59042 2004-02-18  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59045         Reported by Derek Robert Price <derek@ximbiot.com>.
59046
59047 2004-02-16  Karl Berry  <karl@gnu.org>
59048
59049         * config/mkinstalldirs, install-sh: update from automake.
59050
59051 2004-02-06  Karl Berry  <karl@gnu.org>
59052
59053         * m4/po.m4: update from gettext 0.14.1.
59054
59055 2004-02-06  Karl Berry  <karl@gnu.org>
59056
59057         * lib/config.charset: update from gettext 0.14.1.
59058
59059 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59060
59061         Add comments and code, prompted by suggestions from Bruno Haible
59062         for sh-quote.
59063         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59064         describing the enum quoting_style values.
59065         * lib/quotearg.c (quotearg_alloc): New function.
59066         (quotearg_buffer_restyled): Treat lone { and } as special.
59067         Treat = as special.  Work around bug with older shells
59068         that "see" a '\' that is really the 2nd byte of a multibyte char.
59069         Quote empty string with shell_quoting_style.
59070
59071 2004-02-03  Bruno Haible  <bruno@clisp.org>
59072
59073         * m4/pipe.m4: New file, from GNU gettext.
59074
59075 2004-02-03  Bruno Haible  <bruno@clisp.org>
59076
59077         * lib/pipe.h: New file, from GNU gettext.
59078         * lib/pipe.c: New file, from GNU gettext.
59079
59080 2004-01-27  Bruno Haible  <bruno@clisp.org>
59081
59082         * m4/execute.m4: New file, from GNU gettext.
59083
59084 2004-01-27  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/execute.h: New file, from GNU gettext.
59087         * lib/execute.c: New file, from GNU gettext.
59088         * lib/w32spawn.h: New file, from GNU gettext.
59089
59090 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59091
59092         Merge from diffutils.
59093
59094         * lib/file-type.c (file_type): Add typed memory objects.
59095         * lib/file-type.h (S_TYPEISTMO): New macro.
59096
59097         * lib/c-stack.h (c_stack_action): Remove argv argument.
59098         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59099         (die): Don't calculate message unless segv_action returns.
59100         (get_stack_location, min_address_from_argv, max_address_from_argv,
59101         volatile stack_base, volatile_stack_size): Remove.
59102         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59103         that every segmentation violation is a stack overflow.  (Ouch!)
59104         See Debian bug 136249 (still outstanding) for more info about why
59105         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59106
59107 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59108
59109         Exit-status fix from coreutils.
59110
59111         Use exit_failure consistently in place of EXIT_FAILURE,
59112         so that program exit statuses are consistent on failure.
59113
59114         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59115         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59116         * lib/argmatch.h: Comment fix to match the above.
59117         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59118         Now a macro referring to exit_failure, instead of a separate
59119         variable.  Include "exitfail.h" to get it.
59120         * lib/xstrtol.h: Include "exitfail.h".
59121         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59122
59123         * lib/long-options.c (parse_long_options): Use prototype
59124         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59125         for clarity.
59126
59127 2004-01-21  Jim Meyering  <jim@meyering.net>
59128
59129         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59130         so as not to conflict with a different-sized __mktime_internal
59131         function in GNU libc.
59132         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59133         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59134
59135 2004-01-20  Karl Berry  <karl@gnu.org>
59136
59137         * config/config.guess: update from config.
59138
59139         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59140
59141 2004-01-20  Bruno Haible  <bruno@clisp.org>
59142
59143         Safer stack allocation.
59144         * lib/setenv.c: Include allocsa.h.
59145         (alloca): Remove fallback definition.
59146         (freea): Remove macro.
59147         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59148         instead of freea.
59149
59150 2004-01-20  Bruno Haible  <bruno@clisp.org>
59151
59152         * m4/eealloc.m4: New file, from GNU gettext.
59153
59154 2004-01-20  Bruno Haible  <bruno@clisp.org>
59155
59156         * m4/allocsa.m4: New file, from GNU gettext.
59157
59158 2004-01-20  Bruno Haible  <bruno@clisp.org>
59159
59160         * lib/xallocsa.h: New file, from GNU gettext.
59161         * lib/xallocsa.c: New file, from GNU gettext.
59162
59163 2004-01-20  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59166
59167 2004-01-20  Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59170         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59171         specially.
59172
59173 2004-01-20  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59176         patch.
59177
59178 2004-01-20  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59181
59182 2004-01-20  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/eealloc.h: New file.
59185
59186 2004-01-20  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/binary-io.h: Avoid warnings on Cygwin.
59189
59190 2004-01-20  Bruno Haible  <bruno@clisp.org>
59191
59192         * lib/allocsa.h: New file, from GNU gettext.
59193         * lib/allocsa.c: New file, from GNU gettext.
59194
59195 2004-01-18  Karl Berry  <karl@gnu.org>
59196
59197         * doc/gpl.texi, doc/lgpl.texi: new files.
59198
59199 2004-01-18  Karl Berry  <karl@gnu.org>
59200
59201         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59202         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59203
59204 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59205
59206         Merge from coreutils.
59207
59208         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59209         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59210         (gl_DEFAULT_POSIX2_VERSION): Move
59211         the documentation from 'configure' into 'config.hin',
59212         so that 'configure --help' isn't burdened by it and
59213         we don't have to worry about its formatting there.
59214         Reword the documentation so that it's more succinct
59215         and can be run together into a single paragraph.
59216         * m4/same.m4 (gl_SAME): Check for pathconf.
59217
59218 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59219
59220         Merge from coreutils.
59221
59222         * lib/posixver.c: Include posixver.h.
59223
59224         * lib/same.c: Include <stdbool.h>, <limits.h>.
59225         (_POSIX_NAME_MAX): Define if not defined.
59226         (MIN): New macro.
59227         (same_name): If file names are silently truncated, report
59228         that the file names are the same if they are the same after
59229         the silent truncation.
59230
59231         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59232         conversion function.
59233         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59234         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59235         longer needed.
59236
59237 2004-01-15  Jim Meyering  <jim@meyering.net>
59238
59239         Merge from coreutils.
59240
59241         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59242         if no library is required.
59243         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59244         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59245         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59246         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59247         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59248         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59249         value, $ac_cv_search_crypt, if it's "none required".
59250         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59251         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59252         not gl_FUNC_GETLOADAVG.
59253         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59254         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59255
59256 2004-01-15  Jim Meyering  <jim@meyering.net>
59257
59258         Merge from coreutils.
59259
59260         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59261         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59262         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59263
59264         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59265         optional configure-time default.
59266
59267         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59268
59269         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59270
59271 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59272
59273         Merge from coreutils.
59274
59275         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59276         value, $ac_cv_search_nanosleep, if it's "none required".
59277
59278 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59279
59280         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59281         with like-named macro in fnmatch.c.
59282         (EXT): Use an internal constant instead.
59283
59284         Merge fnmatch patches from glibc.
59285         * lib/fnmatch.c (mbsinit): Remove define.
59286         Add libc_hidden_ver (__fnmatch, fnmatch).
59287         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59288         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59289
59290 2004-01-14  Karl Berry  <karl@gnu.org>
59291
59292         * config/install-sh: update from automake.
59293
59294 2004-01-13  Karl Berry  <karl@gnu.org>
59295
59296         * config/install-sh: update from automake.
59297
59298 2004-01-09  Karl Berry  <karl@gnu.org>
59299
59300         * config/install-sh: update from automake.
59301
59302 2004-01-05  Karl Berry  <karl@gnu.org>
59303
59304         * config/config.{sub,guess}: update from config.
59305
59306 2003-12-31  Karl Berry  <karl@gnu.org>
59307
59308         * config/depcomp: update from automake.
59309
59310 2003-12-14  Karl Berry  <karl@gnu.org>
59311
59312         * lib/config.charset: update from gettext-runtime.
59313
59314 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59315
59316         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59317         Bug reported by Alfred M. Szmidt.
59318
59319 2003-12-03  Bruno Haible  <bruno@clisp.org>
59320
59321         * m4/gettext.m4: Upgrade from gettext-0.13.
59322         * m4/po.m4: Upgrade from gettext-0.13.
59323         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59324         * m4/intmax.m4: New file, from gettext-0.13.
59325         * m4/printf-posix.m4: New file, from gettext-0.13.
59326
59327 2003-11-29  Karl Berry  <karl@gnu.org>
59328
59329         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59330
59331 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59332             Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/printf-parse.h: Don't include sys/types.h.
59335         (ARG_NONE): New macro.
59336         (char_directive): Change type of *arg_index fields to size_t.
59337         * lib/printf-parse.c: Don't include sys/types.h.
59338         (SSIZE_MAX): Remove macro.
59339         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59340         Remove unnecessary overflow check.
59341         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59342         fields.
59343
59344 2003-11-25  Bruno Haible  <bruno@clisp.org>
59345
59346         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59347
59348 2003-11-25  Bruno Haible  <bruno@clisp.org>
59349
59350         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59351         gt_TYPE_SSIZE_T.
59352
59353 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59354
59355         * modules/alloca: Remove dependency on xalloc.
59356
59357 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59358
59359         * lib/alloca.c: Remove dependency on xalloc module.
59360         (xalloc_die): Remove.
59361         (memory_full) [!defined emacs]: New macro.
59362         [!defined emacs]: Don't include xalloc.h.
59363         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59364         address arithmetic overflows.  Change datatypes a bit to avoid
59365         unnecessary casts.
59366
59367 2003-11-22  Jim Meyering  <jim@meyering.net>
59368
59369         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59370         s/size/size_t/.
59371
59372 2003-11-21  Karl Berry  <karl@gnu.org>
59373
59374         * config/config.{sub,guess}: update from config.
59375
59376 2003-11-18  Karl Berry  <karl@gnu.org>
59377
59378         * config/config.{sub,guess}: update from config.
59379
59380         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59381
59382 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59383
59384         * README: Mention that S+T cannot overflow if S is the size of
59385         an existing object and T is sufficiently small.
59386
59387 2003-11-17  Jim Meyering  <jim@meyering.net>
59388
59389         On systems without utime and without a utimes function capable of
59390         dealing with a NULL struct utimbuf* argument, this utime replacement
59391         could -- in unusual circumstances -- leak a file descriptor.
59392         * lib/utime.c: Include <unistd.h> and <errno.h>.
59393         (utime_null): Be sure to close `fd' and to preserve errno.
59394         Reported by Geoff Collyer via Arnold Robbins.
59395
59396 2003-11-17  Bruno Haible  <bruno@clisp.org>
59397
59398         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59399         (Depends-on): Add xsize.
59400
59401 2003-11-17  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59404
59405 2003-11-17  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/vasnprintf.c (alloca): Remove fallback definition.
59408         (freea): Remove definition.
59409         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59410         Reported by Paul Eggert.
59411
59412 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59413             Bruno Haible  <bruno@clisp.org>
59414
59415         Protect against address arithmetic overflow.
59416         * lib/printf-args.h: Include stddef.h.
59417         (arguments): Change type of field 'count' to size_t.
59418         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59419         'unsigned int' where appropriate.
59420         * lib/printf-parse.h: Include sys/types.h.
59421         (char_directive): Change type of *arg_index fields to ssize_t.
59422         (char_directives): Change type of fields 'count', max_*_length to
59423         size_t.
59424         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59425         (SSIZE_MAX): Define fallback value.
59426         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59427         instead of 'int' where appropriate. Check a_allocated, d_allocated
59428         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59429         * lib/vasnprintf.c: Include xsize.h.
59430         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59431         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59432         overflow. Avoid wraparound when converting a width or precision from
59433         decimal to binary.
59434
59435 2003-11-16  Bruno Haible  <bruno@clisp.org>
59436
59437         Update from GNU gettext.
59438         * lib/printf-parse.c: Generalize to it can be compiled for wide
59439         strings.
59440         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59441         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59442         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59443         SNPRINTF): New macros.
59444         Don't include <alloca.h> if the file is used inside libintl.
59445         (local_wcslen): New function, for Solaris 2.5.1.
59446         (VASNPRINTF): Use it instead of wcslen.
59447
59448 2003-11-16  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/xsize.h (xmax): New function.
59451         (xsum, xsum3, xsum4): Declare as "pure" functions.
59452
59453 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59454
59455         * modules/xalloc (Files): Undo latest change, since xalloc.h
59456         no longer needs SIZE_MAX or PTRDIFF_MAX.
59457
59458 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59459
59460         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59461         gl_PTRDIFF_MAX.
59462
59463 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59464
59465         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59466         "return", to pacify some unknown compiler.  Problem reported
59467         by Joerg Schilling.
59468
59469 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59470
59471         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59472         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59473         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59474         heuristic is just as accurate as far as we know, and it removes a
59475         dependency on size_max.m4 and ptrdiff_max.m4.
59476
59477 2003-11-11  Bruno Haible  <bruno@clisp.org>
59478
59479         * modules/xsize (Files): Add m4/size_max.m4.
59480         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59481
59482 2003-11-11  Bruno Haible  <bruno@clisp.org>
59483
59484         * m4/size_max.m4: New file.
59485         * m4/ptrdiff_max.m4: New file.
59486         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59487         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59488         (gl_XALLOC): Invoke it.
59489
59490 2003-11-11  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59493         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59494         defined.
59495
59496 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59497
59498         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59499         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59500         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59501         From Bruno Haible.
59502         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59503         not (size_t) -1, since it's defined here.
59504
59505 2003-11-09  Karl Berry  <karl@gnu.org>
59506
59507         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59508
59509 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59510
59511         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59512         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59513         Reject sizes of exactly SIZE_MAX bytes.
59514         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59515         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59516
59517 2003-11-05  Bruno Haible  <bruno@clisp.org>
59518
59519         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59520         SIZE_MAX defined in <limits.h> on Solaris.
59521
59522 2003-11-04  Jim Meyering  <jim@meyering.net>
59523
59524         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59525         variable names, rather than @VAR@.
59526         * modules/poll: Likewise.
59527
59528 2003-11-04  Bruno Haible  <bruno@clisp.org>
59529
59530         * modules/xsize: New file.
59531         * modules/linebreak: Depend on xsize.
59532         * MODULES.html.sh (func_all_modules): Add xsize.
59533
59534 2003-11-04  Bruno Haible  <bruno@clisp.org>
59535
59536         * m4/xsize.m4: New file.
59537
59538 2003-11-04  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/xsize.h: New file.
59541         * lib/linebreak.c: Include xsize.h.
59542         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
59543         argument for overflow.
59544         Suggested by Paul Eggert.
59545
59546 2003-11-03  Karl Berry  <karl@gnu.org>
59547
59548         * config/config.{guess,sub}: update from config.
59549
59550 2003-11-03  Jim Meyering  <jim@meyering.net>
59551
59552         * modules/userspec (lib_SOURCES): Add userspec.h.
59553         (Include): Add "userspec.h".
59554         Improve description.
59555
59556 2003-11-03  Jim Meyering  <jim@meyering.net>
59557
59558         * lib/userspec.c: Include "userspec.h".
59559         * lib/userspec.h: New file.
59560
59561 2003-11-03  Bruno Haible  <bruno@clisp.org>
59562
59563         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
59564
59565 2003-11-03  Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
59568         available, to avoid (extremely rare) race condition.
59569         Suggested by Paul Eggert.
59570
59571 2003-11-02  Karl Berry  <karl@gnu.org>
59572
59573         * config/srclist.txt (vasprintf.c): sync broken, sigh.
59574
59575 2003-10-31  Paul Eggert  <eggert@twinsun.com>
59576
59577         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
59578         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
59579         (read_filesystem_list): Set and use me_type_malloced.
59580         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
59581         whatever the type happens to be), for brevity and consistency.
59582         Check for size calculation overflow on Alphas running OSF/1.
59583
59584 2003-10-31  Jim Meyering  <jim@meyering.net>
59585
59586         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
59587
59588         * lib/linebuffer.c: Include <string.h> for declaration of memset.
59589
59590 2003-10-30  Paul Eggert  <eggert@twinsun.com>
59591             Bruno Haible  <bruno@clisp.org>
59592
59593         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
59594         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
59595
59596 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
59597
59598         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
59599         netbsd*-gnu*.  Suggested by Robert Millan.
59600
59601 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59602
59603         * modules/group-member: Depend on stdbool.
59604
59605 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59606
59607         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
59608
59609 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59610
59611         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
59612         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
59613         after the 'gnu' in these cases.  This fixes some bugs in the
59614         previous change, and is based on suggestions by Robert Millan.
59615
59616 2003-10-29  Paul Eggert  <eggert@twinsun.com>
59617
59618         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
59619         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
59620         no longer needed.
59621         * lib/quotearg.c (quotearg_n_options): Use it.
59622         * lib/group-member.c: Include <stdbool.h>.
59623         (free_group_info): Arg is now const *; don't free arg.
59624         (get_group_info): Now returns bool and accepts struct group_info *,
59625         rather than returning a malloc'ed struct group_info *.
59626         All uses changed.  Check for overflow in internal size calculation.
59627
59628         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
59629         rather than xmalloc/xrealloc.
59630         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
59631         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
59632         conformance bug: the old code used a pointer after freeing the
59633         storage that it addressed.
59634         * lib/hash.c (hash_initialize): Simplify the code by using
59635         xalloc_oversized rather than doing it by hand.
59636         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
59637         the buffer preserved.  Use free and xmalloc instead.
59638         * lib/quotearg.c (quotearg_n_options): Likewise.
59639         Use a simpler test for size overflow.  Don't use xalloc_oversized
59640         because unsigned int might be wider than size_t (!); this suggests
59641         that we should switch from unsigned int to size_t for slot numbers.
59642
59643 2003-10-28  Paul Eggert  <eggert@twinsun.com>
59644
59645         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
59646         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
59647         NetBSD kernels.  Requested by Richard Stallman.
59648
59649 2003-10-27  Paul Eggert  <eggert@twinsun.com>
59650
59651         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
59652         to allocate the returned structure.  Do not allocate a subarray,
59653         as x2nrealloc will do that.
59654         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
59655         instead of xnrealloc.
59656         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
59657
59658 2003-10-27  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/stdbool_.h: Better support for BeOS.
59661
59662 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59663
59664         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
59665         now uses inline.
59666
59667 2003-10-26  Paul Eggert  <eggert@twinsun.com>
59668
59669         * lib/xalloc.h (xalloc_oversized): New static inline function, for
59670         callers that want to do their own size-overflow checking.  Include
59671         <stdbool.h>, since xalloc_oversized returns bool.
59672         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
59673         to use xalloc_oversized.
59674
59675         Add two functions x2realloc, x2nrealloc, for programs that grow
59676         arrays dynamically by doubling their sizes.
59677         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
59678         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
59679         New functions.
59680
59681         Port to C99 semantics for 'inline' of external functions.
59682         Bug reported by Bruno Haible.
59683         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
59684         with the old contents of xnmalloc.
59685         (xnmalloc, xmalloc): Use it.
59686         (xnrealloc_inline): New static inline function,
59687         with the old contents of xnrealloc.
59688         (xnrealloc, xrealloc): Use it.
59689
59690         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
59691         that.
59692
59693 2003-10-26  Karl Berry  <karl@gnu.org>
59694
59695         * config/srclist.txt (COPYING.DOC): no longer available from
59696         /gd/gnuorg; don't know where the ultimate source is.
59697
59698 2003-10-25  Paul Eggert  <eggert@twinsun.com>
59699
59700         Fix several address-calculation bugs in the hash modules,
59701         plus some minor code cleanup.
59702
59703         * lib/hash.h: Include <stdbool.h>, for bool.
59704         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
59705         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
59706         hash_get_n_entries, hash_get_max_bucket_length,
59707         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
59708         hash_rehash): Use size_t rather than unsigned.
59709         * lib/hash.c (struct hash_table, hash_get_n_buckets,
59710         hash_get_n_buckets_used, hash_get_n_entries,
59711         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
59712         hash_get_entries, hash_do_for_each, hash_string, is_prime,
59713         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
59714         Likewise.
59715         (SIZE_MAX): Define if not defined.
59716         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
59717         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
59718         hash_print):
59719         Use const * when possible.
59720         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
59721         (check_tuning): Fix bug: if tuning parameters were very close to
59722         0 or 1, rounding errors could have caused subscript violations.
59723         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
59724         (hash_initialize): Add 'fail:' label
59725         to free table and return NULL, and use it to simplify code.
59726         Use calloc rather than clearing the storage ourself.
59727         (hash_initialize, hash_rehash): Check for arithmetic overflow in
59728         buffer size calculations.
59729         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
59730         Include <stddef.h>, for size_t.
59731         * lib/hash-pjw.c (hash_pjw): Likewise.
59732         Switch to method described by Bruno Haible.
59733         Include <limits.h>, for CHAR_BIT.
59734         (SIZE_BITS): New macro.
59735
59736 2003-10-23  Paul Eggert  <eggert@twinsun.com>
59737
59738         * m4/getline.m4 (AM_FUNC_GETLINE):
59739         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
59740         hosts.  Problem reported by Derek Robert Price in
59741         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
59742         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
59743         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
59744
59745 2003-10-21  Paul Eggert  <eggert@twinsun.com>
59746
59747         * lib/getndelim2.c (getndelim2): When size calculation overflows,
59748         ceiling the allocation at NMAX bytes rather than silently
59749         discarding input bytes before NMAX is reached.  This makes
59750         a difference only if NMAX exceeds SIZE_MAX / 2.
59751
59752         * lib/obstack.c: Merge from glibc.
59753         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
59754         Add libc_hidden_def (_obstack_newchunk).
59755         (_obstack_free) [! defined _LIBC]: Remove.
59756         [defined _LIBC]: Make a strong alias from obstack_free, rather than
59757         a clone of the function body.
59758         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
59759         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
59760
59761         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
59762         glibc.
59763         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
59764         arg to memcpy.
59765
59766         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
59767         (obstack_ptr_grow_fast, obstack_int_grow_fast):
59768         Don't use lvalue casts, as GCC plans to remove support for them
59769         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
59770         was also present in the non-GCC version, indicating that this
59771         code had always been buggy and had never been widely used.
59772         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
59773         Use the fast variant of each macro, rather than copying the
59774         definiens of the fast variant; that way, we'll be more likely to
59775         catch future bugs in the fast variants.
59776
59777 2003-10-20  Bruno Haible  <bruno@clisp.org>
59778
59779         * modules/wait-process: New file.
59780         * MODULES.html.sh (func_all_modules): Add wait-process.
59781
59782 2003-10-20  Bruno Haible  <bruno@clisp.org>
59783
59784         * m4/wait-process.m4: New file.
59785
59786 2003-10-20  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/wait-process.h: New file, from GNU gettext.
59789         * lib/wait-process.c: New file, from GNU gettext.
59790
59791 2003-10-19  Jim Meyering  <jim@meyering.net>
59792
59793         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
59794         HPUX 10.20.
59795
59796 2003-10-18  Karl Berry  <karl@gnu.org>
59797
59798         * config/config.guess: update from config.
59799
59800 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59801
59802         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
59803         (getgroups): First arg is int, not size_t.
59804         Don't let 'free' mangle errno.
59805
59806 2003-10-16  Paul Eggert  <eggert@twinsun.com>
59807
59808         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
59809
59810 2003-10-16  Karl Berry  <karl@gnu.org>
59811
59812         * config/config.{guess,sub}: update from config.
59813
59814 2003-10-16  Jim Meyering  <jim@meyering.net>
59815
59816         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
59817         memcpy.
59818
59819 2003-10-15  Paul Eggert  <eggert@twinsun.com>
59820
59821         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
59822         (SIZE_MAX): Remove.
59823         (new_exclude, add_exclude_file): Initial size no longer needs to
59824         be a power of 2.
59825         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
59826         our own address arithmetic overflow checking.
59827
59828         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
59829         (fnmatch): Do not alloca more than 2000 wide characters;
59830         instead, use malloc for large buffers.
59831         Check for address arithmetic overflow, and return -1
59832         with errno set to ENOMEM in that case.
59833         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
59834         (NEW_PATTERN): Do not alloca more than 8000 bytes;
59835         instead, return -1.  Check for address arithmetic overflow.
59836
59837 2003-10-14  Paul Eggert  <eggert@twinsun.com>
59838
59839         Handle invalid suffixes and overflow independently, so that
59840         callers can treat them independently as needed.  Fix some bugs in
59841         suffix handling, e.g., "100k@" was not diagnosed as an invalid
59842         suffix for a human-readable blocksize.  The major caller-visible
59843         change is the addition of a new
59844         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
59845         that both overflow and suffix chars were found.
59846
59847         * lib/human.c (humblock): Don't check separately for invalid suffix
59848         char; that is xstrtoumax's job (now that its bug is fixed).
59849         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
59850         INTMAX_MAX]: New macros.
59851         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
59852         TYPE_MAXIMUM): New macros.
59853         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
59854         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
59855         if overflow occurs, as it's what __strtol does and it's more useful
59856         in practice.
59857         (__xstrtol): If __strtol reports some error other than ERANGE,
59858         reflect it to the caller as LONGINT_INVALID.  If it reports
59859         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
59860         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
59861         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
59862         value.
59863         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
59864         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
59865         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
59866         [defined UINTMAX_MAX]: New macros.
59867
59868 2003-10-14  Bruno Haible  <bruno@clisp.org>
59869
59870         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
59871
59872 2003-10-14  Bruno Haible  <bruno@clisp.org>
59873
59874         * m4/sig_atomic_t: New file, from GNU gettext.
59875         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
59876
59877 2003-10-14  Bruno Haible  <bruno@clisp.org>
59878
59879         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
59880         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
59881         Also use volatile where needed.
59882
59883 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59884
59885         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
59886         Change maintainer from Bruno Haible to 'all'.
59887
59888 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59889
59890         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
59891
59892 2003-10-12  Paul Eggert  <eggert@twinsun.com>
59893
59894         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
59895         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
59896         and define in terms of the other primitives.
59897         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
59898         (SIZE_MAX): Define if not already defined.
59899         (array_size_overflow): New function.
59900         (xalloc_die): Abort instead of exiting if 'error' returns.
59901         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
59902         (xmalloc, xrealloc): Use them.
59903         (xcalloc): Check for address arithmetic overflow.
59904         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
59905         a bit faster than strcpy.
59906
59907 2003-10-10  Simon Josefsson  <jas@extundo.com>
59908
59909         * modules/argp (Depends-on): Add restrict and strcase.
59910
59911 2003-10-10  Simon Josefsson  <jas@extundo.com>
59912
59913         * m4/argp.m4: Add AC_C_INLINE.
59914
59915 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59916
59917         Merge getpass from libc, plus a few fixes.
59918
59919         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
59920         Include <stdbool.h>.
59921         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
59922         __fsetlocking to empty.
59923         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
59924         do include <bits/libc-lock.h>.
59925         Do not include <fcntl.h>; not needed.
59926         [_LIBC]: Include <wchar.h>.
59927         (NOTCANCEL_MODE): New macro.
59928         (flockfile, funlockfile) [_LIBC]: New macros.
59929         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
59930         [!_LIBC]: New macros.
59931         (call_fclose): New function.
59932         (getpass): Use it.  Save tty stream separately; this simplifies the
59933         code and makes it more reliable if stdin happens to equal stdout.
59934         Invoke __fsetlocking on tty.
59935         Handle thread cancellation if needed.
59936         Namespace cleanup (use __tcgetattr, __getline).
59937         Use bool for Booleans.
59938         [USE_IN_LIBIO]: Handle wide streams.
59939         [!_LIBC]: Unconditionally do the fseek, since we don't know what
59940         stream might go where.
59941
59942         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
59943         doesn't have to include <stdio.h> before us.
59944         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
59945         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
59946         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
59947         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
59948         if not declared, so that we can use getpass.c code from libc without
59949         rewriting it.
59950         (flockfile, ftrylockfile, funlockfile): New macros.
59951
59952 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59953
59954         * modules/getpass: Depend on stdbool.
59955
59956 2003-10-08  Paul Eggert  <eggert@twinsun.com>
59957
59958         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
59959
59960 2003-10-07  Karl Berry  <karl@gnu.org>
59961
59962         * config/config.{guess,sub}: update from config.
59963
59964 2003-10-06  Jim Meyering  <jim@meyering.net>
59965             Bruno Haible  <bruno@clisp.org>
59966
59967         This lets translators provide better translations for the
59968         "Written by ..." part of --version output.
59969         * lib/version-etc.h: Include stdarg.h.
59970         (version_etc_copyright): Declare as readonly.
59971         (version_etc): Make this function variadic with a NULL-terminated list
59972         of author name strings.
59973         (version_etc_va): New declaration.
59974         * lib/version-etc.c: Include stdarg.h, stdlib.h.
59975         (version_etc_copyright): Declare as readonly.
59976         (version_etc_va): New function. Provide a different translatable string
59977         for each possible number of authors < 10. Abbreviate when there are 10
59978         authors or more.
59979         (version_etc): Make this function variadic. Call version_etc_va.
59980         Suggestion from Gary V. Vaughan.
59981
59982         * lib/long-options.h (parse_long_options): Change prototype: the
59983         authors string is moved to the end and becomes variadic.
59984         * lib/long-options.c: Include stdarg.h.
59985         (parse_long_options): Make this function variadic, too.
59986         Call version_etc_va, not version_etc.
59987
59988 2003-10-06  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/version-etc-2: Remove file.
59991         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
59992
59993 2003-10-06  Bruno Haible  <bruno@clisp.org>
59994
59995         * modules/fatal-signal: New file.
59996         * MODULES.html.sh (func_all_modules): Add fatal-signal.
59997
59998 2003-10-06  Bruno Haible  <bruno@clisp.org>
59999
60000         * m4/fatal-signal.m4: New file.
60001         * m4/signalblocking.m4: New file, from GNU gettext.
60002
60003 2003-10-06  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/version-etc-2.h: Remove file.
60006         * lib/version-etc-2.c: Remove file.
60007
60008 2003-10-06  Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/fatal-signal.h: New file, from GNU gettext.
60011         * lib/fatal-signal.c: New file, from GNU gettext.
60012
60013 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60014
60015         * README: Rework advice for preventing empty .o files.
60016         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60017         not <sys/types.h>.
60018
60019 2003-10-04  Karl Berry  <karl@gnu.org>
60020
60021         * lib/argp*: update from libc.
60022
60023 2003-10-04  Karl Berry  <karl@gnu.org>
60024
60025         * config/config.{guess,sub}: update from config.
60026
60027 2003-10-02  Bruno Haible  <bruno@clisp.org>
60028
60029         * modules/lchown (Include): Add lchown.h.
60030         * modules/time_r (Include): Use "..." syntax.
60031         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60032
60033 2003-10-01  Simon Josefsson  <jas@extundo.com>
60034
60035         * MODULES.html.sh (func_all_modules): Move gethostname from section
60036         'based on' to section 'lacking' POSIX:2001.
60037
60038 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60039
60040         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60041         to output mode on the same stream.
60042
60043 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60044
60045         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60046         Fix arg typo in previous patch.
60047
60048 2003-09-28  Jim Meyering  <jim@meyering.net>
60049
60050         * lib/error.c: Correct cpp indentation.
60051
60052 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60053
60054         * modules/free: New file.
60055
60056 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60057
60058         * m4/free.m4: New file.
60059
60060 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60061
60062         * lib/minmax.h (MIN, MAX)
60063         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60064         Omit the special code that used __typeof__, since we worry that
60065         it could be more trouble than it's worth.  See:
60066         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60067         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60068
60069         * lib/free.c: New file.
60070
60071 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60072
60073         Trivial fixes to Makefile.am parts of module listings.
60074         * modules/strstr: Append strstr.h to lib_SOURCES.
60075         * modules/strcase: Likewise, for strcase.h.
60076
60077 2003-09-27  Karl Berry  <karl@gnu.org>
60078
60079         * config/mkinstalldirs: update from automake.
60080
60081 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60082
60083         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60084         (error_tail): Do not loop, reallocating temporary buffer, since
60085         the output cannot contain more wide characters than the input
60086         contains bytes, the size must be big enough already.  This avoids
60087         one potential size overflow calculation.  Check for size overflow
60088         when calculating temporary buffer size.  Free temporary buffer
60089         when done, if it was allocated with malloc; this plugs a memory
60090         leak.  Remove casts from void * to pointers, that are no longer
60091         needed now that we're assuming C89 or better.
60092
60093         Merge error changes from glibc.
60094
60095         * lib/error.c, error.h: Update copyright notice header to match glibc.
60096         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60097         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60098         Disable cancellation while printing error.
60099         * lib/error.h: Prepend __ to parameter names.
60100
60101 2003-09-26  Jim Meyering  <jim@meyering.net>
60102
60103         * lib/error.c (error_tail): Move some declarations
60104         into inner scope where the local variables are used.
60105
60106 2003-09-26  Bruno Haible  <bruno@clisp.org>
60107
60108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60109         stpncpy().
60110         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60111
60112 2003-09-26  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60115         (stpncpy): Define as alias for gnu_stpncpy.
60116         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60117
60118 2003-09-25  Simon Josefsson  <jas@extundo.com>
60119
60120         * lib/xgetdomainname.h: New file.
60121         * lib/xgetdomainname.c: New file.
60122
60123 2003-09-25  Simon Josefsson  <jas@extundo.com>
60124             Bruno Haible  <bruno@clisp.org>
60125
60126         * modules/getdomainname: New file.
60127         * modules/xgetdomainname: New file.
60128         * MODULES.html.sh (func_all_modules): Add getdomainname,
60129         xgetdomainname.
60130
60131 2003-09-25  Simon Josefsson  <jas@extundo.com>
60132             Bruno Haible  <bruno@clisp.org>
60133
60134         * m4/getdomainname.m4: New file.
60135
60136 2003-09-25  Simon Josefsson  <jas@extundo.com>
60137             Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/getdomainname.h: New file.
60140         * lib/getdomainname.c: New file.
60141
60142 2003-09-25  Karl Berry  <karl@gnu.org>
60143
60144         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60145
60146 2003-09-25  Karl Berry  <karl@gnu.org>
60147
60148         * config/install-sh: update from automake.
60149
60150 2003-09-25  Bruno Haible  <bruno@clisp.org>
60151
60152         * modules/version-etc-2: New file, from modules/version-etc with
60153         modifications.
60154         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60155
60156 2003-09-25  Bruno Haible  <bruno@clisp.org>
60157
60158         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60159         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60160
60161 2003-09-24  Simon Josefsson  <jas@extundo.com>
60162
60163         * modules/xgethostname: Add xgethostname.h.
60164
60165 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60166
60167         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60168         the buffer associated with the argument.  Bug reported by
60169         Simon Josefsson.
60170
60171 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60172
60173         * README: Document assumptions that 'int' is at least 32 bits
60174         wide, that integer arithmetic is 2's complement without overflow,
60175         that there are no holes in integer values, that adding sizes of
60176         two nonoverlapping objects can't overflow, and that all-bits-zero
60177         yields scalar zero.  Fix spelling and capitalization typos.
60178
60179 2003-09-19  Karl Berry  <karl@gnu.org>
60180
60181         * lib/argp.h: update from libc.
60182
60183 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60184
60185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60186         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60187         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60188
60189 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60190
60191         * gnulib-tool: Use "test -h", not "test -L", for portability
60192         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60193         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60194         (sed_extract_prog): Issue s commands one-by-one, rather than
60195         using \| in one s command.
60196
60197 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60198
60199         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60200         input error, instead of returning NULL the next time we are called
60201         (and therefore losing track of errno).
60202
60203 2003-09-16  Bruno Haible  <bruno@clisp.org>
60204
60205         * gnulib-tool (func_create_testdir): Warn about duplicated
60206         dependencies.
60207
60208 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60209
60210         * modules/argmatch, modules/fatal, modules/obstack,
60211         modules/xalloc, modules/xgethostname: Sort dependencies by
60212         importance, not alphabetically.
60213
60214 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60215
60216         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60217         fails, so that the caller gets the proper errno.
60218
60219         * lib/readutmp.c (read_utmp): Likewise.
60220         Check for fstat error.  Close stream and free storage
60221         when failing.
60222
60223 2003-09-14  Karl Berry  <karl@gnu.org>
60224
60225         * config/srclist.txt (strdup.c): disable for c89 changes.
60226
60227 2003-09-14  Jim Meyering  <jim@meyering.net>
60228
60229         * lib/getloadavg.c: Correct cpp indentation.
60230         * lib/strdup.c: Likewise.
60231         * lib/vasnprintf.c: Likewise.
60232
60233 2003-09-14  Bruno Haible  <bruno@clisp.org>
60234
60235         * modules/fwriteerror: New file.
60236         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60237
60238 2003-09-14  Bruno Haible  <bruno@clisp.org>
60239
60240         * lib/fwriteerror.h: New file.
60241         * lib/fwriteerror.c: New file.
60242
60243 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60244
60245         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60246         modules/xgethostname, modules/xalloc: Depend on exit.
60247
60248 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60249
60250         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60251
60252         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60253         and AC_MINIX, too, so that their extensions are available.
60254
60255         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60256         This macro has been superseded by gl_BACKUPFILE.
60257
60258         More patches to assume C89 or better.
60259
60260         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60261
60262         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60263         unconditionally.
60264         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60265         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60266         Include <string.h>, <stdlib.h> unconditionally.
60267         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60268         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60269         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60270         headers or for string.h.
60271         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60272         or strtoul.
60273
60274         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60275         headers.
60276         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60277         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60278         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60279         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60280         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60281         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60282         memcpy, memset.
60283         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60284         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60285         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60286         strtol.
60287         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60288         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60289         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60290         strtoul.
60291
60292 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60293
60294         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60295         * lib/obstack.c [!defined _LIBC]: Likewise.
60296         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60297         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60298         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60299
60300         More changes to assume C89 or better.
60301
60302         * lib/error.c (error_tail): Assume vprintf.
60303
60304         * lib/argmatch.c (getenv): Remove decl.
60305         * lib/progreloc.c (get_full_program_name): Define via prototype.
60306         * lib/setenv.c (clearenv): Likewise.
60307         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60308         needed.
60309         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60310         (malloc, memcpy): Remove decls.
60311         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60312         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60313         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60314         (memcpy): Remove macro.
60315         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60316         (__P): Remove.  All uses removed.
60317         (PTR): Remove.  All uses changed to void *.
60318         (CHAR_BIT, NULL): Remove.
60319         (spaces, zeros, memset_space, memset_zero)
60320         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60321         Remove.
60322         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60323         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60324         Define with prototype.
60325         Remove now-unnecessary prototype decl.
60326         (extra_args_spec): Assume ANSI C.  All uses changed.
60327         (extra_args_spec_iso): Remove.
60328         (my_strftime, emacs_strftimeu): Define via prototype.
60329         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60330         unconditionally.
60331         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60332         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60333         (strtoul, strtol): Remove decls.
60334         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60335         LONG_MAX): Remove.
60336         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60337         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60338         (LOCALE_PARAM_PROTO): New macro.
60339         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60340         (INTERNAL (strtol), strtol): Define with a prototype.
60341         (PARAMS): Remove.  All uses removed.
60342         * lib/tempname.c: Include <string.h> unconditionally.
60343         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60344         * lib/xgethostname.c (main): Define with a prototype.
60345         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60346         Include <stdlib.h> unconditionally.
60347         (calloc, malloc, realloc, free): Remove decls.
60348         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60349         Include <stdlib.h> unconditionally.  Sort include file names.
60350         (strtod): Remove.
60351         (xstrtod): Define with a prototype.
60352         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60353         (strtol, strtoul): Remove decls.
60354
60355 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60356
60357         More patches to assume C89 or better.
60358         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60359         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60360         string.h, memchr, STDC_HEADERS.
60361
60362 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60363
60364         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60365         Include <stdlib.h>, <string.h> unconditionally.
60366         Remove now-unnecessary cast to char *.
60367         * lib/strnlen.c: Include <string.h> unconditionally.
60368         * lib/yesno.c (yesno): Define with a prototype.
60369
60370 2003-09-11  Bruno Haible  <bruno@clisp.org>
60371
60372         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60373
60374 2003-09-10  Jim Meyering  <jim@meyering.net>
60375
60376         * lib/error.c: Correct indentation of cpp directives.
60377
60378 2003-09-10  Bruno Haible  <bruno@clisp.org>
60379
60380         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60381         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60382         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60383         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60384         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60385         <stdlib.h> and <string.h> checks.
60386         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60387         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60388
60389 2003-09-10  Bruno Haible  <bruno@clisp.org>
60390
60391         * lib/strcspn.c: Include <string.h> unconditionally.
60392         * lib/strpbrk.c: Include <string.h> unconditionally.
60393         * lib/strstr.c: Include <string.h> unconditionally.
60394         * lib/unicodeio.c: Include <string.h> unconditionally.
60395         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60396         * lib/unsetenv.c: Likewise.
60397         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60398         * lib/yesno.c: Include <stdlib.h> unconditionally.
60399         (rpmatch): Add prototype.
60400
60401 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60402
60403         More patches to assume C89 or better.
60404         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60405         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60406         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60407         or for string.h.
60408         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60409         stdlib.h.
60410         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60411         C headers.
60412         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60413         string.h.
60414         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60415         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60416         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60417         or for string.h.
60418         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60419         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60420         C headers.
60421         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60422         memcpy.
60423         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60424         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60425         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60426         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60427         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60428         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60429         string.h, free.
60430         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60431         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60432         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60433         C headers, or for string.h.
60434         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60435         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60436         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60437         headers, memory.h, stdlib.h, string.h, strings.h.
60438         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60439         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60440         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60441         strchr.
60442         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60443         headers, memory.h, string.h.
60444         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60445         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60446         free.
60447         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60448         headers.
60449         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60450         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60451         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60452         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60453         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60454
60455 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60456
60457         More K&R removal.
60458
60459         * lib/acosl.c (main): Use a prototype.
60460         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60461         tanl.c: Likewise.
60462
60463         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60464
60465         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60466         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60467         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60468         with a prototype.
60469         * lib/getopt.c (const): Remove macro.
60470         Include <string.h> unconditionally.
60471         (my_index): Remove; all uses changed to strchr.
60472         (strlen): Remove decl.
60473         (exchange): Remove forward decl; no longer needed.
60474         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60475         Define with prototype.
60476         * lib/getopt1.c (const): Remove macro.
60477         (getopt_long, getopt_long_only, main): Define with prototype.
60478
60479         * lib/getugroups.c: Include <string.h> unconditionally.
60480
60481         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60482         (getusershell, setusershell, endusershell, readname, main):
60483         Define with prototypes.
60484
60485         * lib/group-member.c: Include group-member.h first.
60486         Include <stdlib.h> unconditionally.
60487
60488         * lib/hard-locale.c: Include hard-locale.h first.
60489         Include <stdlib.h>, <string.h> unconditionally.
60490
60491         * lib/hash.c (free, malloc): Remove decls.
60492         Include <stdlib.h> unconditionally.
60493
60494         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60495         (getenv): Do not declare.
60496
60497         * lib/idcache.c: Include <string.h> unconditionally.
60498
60499         * lib/long-options.c: Include long-options.h first, to test interface.
60500         Include <stdlib.h> unconditionally.
60501
60502         * lib/makepath.c: Include makepath.h first, to test interface.
60503         Include <stdlib.h> and <string.h> unconditionally.
60504
60505         * lib/linebuffer.c: Include <stdlib.h>.
60506         (free): Remove decl.
60507
60508         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60509         stddef.h. rpl_malloc returns void *, not char *.
60510         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60511         prototype.
60512
60513         * lib/md5.h: Include <limits.h> unconditionally.
60514         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60515         (__P): Remove; all uses removed.
60516         * lib/md5.c: Include "md5.h" first.
60517         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60518         md5_buffer, md5_process_bytes, md5_process_block):
60519         Define with prototypes.
60520         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60521         * lib/sha.c: Include "sha.h" first.
60522         Include <stdlib.h>, <string.h> unconditionally.
60523
60524         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60525         * lib/memcmp.c (__ptr_t): Likewise.
60526         * lib/memrchr.c (__ptr_t): Likewise.
60527         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
60528         Include <string.h> unconditionally.
60529         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
60530         * lib/memchr.c: Include <stdlib.h> unconditionally.
60531         * lib/memchr.c (LONG_MAX): Remove.
60532         * lib/memrchr.c (LONG_MAX): Likewise.
60533         * lib/memchr.c (__memchr): Define via a prototype.
60534         * lib/memrchr.c (__memrchr): Likewise.
60535         * lib/memcmp.c (__P): Remove, and remove all uses.
60536         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
60537         Remove forward decls; no longer needed.
60538         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
60539         Use types required by C89 in prototype.
60540
60541         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
60542         * lib/savedir.c: Likewise.
60543         * lib/mkdir.c (free): Remove decl.
60544         * lib/rmdir.c (rmdir): Define with a prototype.
60545         * lib/savedir.c: Include savedir.h first, to test interface.
60546
60547         * lib/mktime.c (STDC_HEADERS): Remove.
60548         Include <stdlib.h>, <string.h> unconditionally.
60549
60550         * lib/modechange.c: Include <stdlib.h> unconditionally.
60551         (malloc): Remove decl.
60552
60553         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
60554         (free): Remove decl.
60555
60556         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
60557         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
60558         (This type really should be intptr_t, but that's a C99ism.)
60559         (_obstack_memcpy): Remove: all uses changed to memcpy.
60560         Include <string.h> unconditionally.
60561         (struct obstack): Assume __STDC__ for types of members
60562         chunkfun, freefun, extra_arg.
60563         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
60564         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
60565         obstack_begin, obstack_specify_allocation,
60566         obstack_specify_allocation_with_arg, obstack_chunkfun,
60567         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
60568         Remove unprototyped decls and the macros that use them.
60569         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
60570         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
60571         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
60572         (defined __STDC__ && __STDC__)]:
60573         Remove nonprototyped code.
60574         Include <stdlib.h> unconditionally.
60575         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
60576         _obstack_allocated_p, _obstack_free, obstack_free,
60577         _obstack_memory_used, print_and_abort):
60578         Define using prototypes.
60579         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
60580         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
60581         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
60582         obstack_next_free, obstack_object_size, obstack_room) [0]:
60583         Remove unused, unprototyped code.
60584
60585         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
60586
60587         * lib/physmem.c (physmem_total, physmem_available, main): Define
60588         with prototypes.
60589
60590         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
60591         (main): Define with a prototype.
60592
60593         * lib/posixver.c (getenv): Remove decl.
60594
60595         * lib/putenv.c (malloc): Returns void *, not char *.
60596         Include <string.h> unconditionally.
60597         (strchr, memcpy, NULL): Do not define.
60598
60599         * lib/readtokens.c: Include readtokens.h first, to test interface.
60600         Include <stdlib.h>, <string.h> unconditionally.
60601         (init_tokenbuffer): Define with a prototype.
60602
60603         * lib/regex.c (PARAMS): Remove.  All uses removed.
60604         All uses of _RE_ARGS removed, too.
60605         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60606         unconditionally.
60607         (bzero): Assume memset exists.
60608         (memcmp, memcpy, NULL): Remove.
60609         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
60610         char, or assignments to local vars of type signed char.
60611         (init_syntax_once, PREFIX(extract_number_and_incr),
60612         PREFIX(print_partial_compiled_pattern),
60613         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
60614         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
60615         PREFIX(regex_grow_registers), PREFIX(regex_compile),
60616         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
60617         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
60618         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
60619         wcs_compile_range, byte_compile_range, truncate_wchar,
60620         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
60621         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
60622         count_mbs_length, wcs_re_match_2_internal,
60623         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
60624         PREFIX(alt_match_null_string_p),
60625         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
60626         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
60627         regfree, PREFIX(extract_number)): Define with prototype.  Remove
60628         now-unnecessary declaration, if any.
60629         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
60630         regcomp, regexec):
60631         Remove now-unnecessary casts among pointer types.
60632         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
60633
60634         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
60635         (free): Remove decl.
60636
60637         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
60638
60639         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
60640         (free): Remove decl.
60641
60642         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
60643         * lib/xgetcwd.c: Likewise.
60644
60645         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
60646         (free): Remove decl.
60647
60648         * lib/strchrnul.c (strchrnul): Define with a prototype.
60649         Fix bug: c_in was not converted to char before searching.
60650
60651         The following changes are not K&R related:
60652
60653         * lib/group-member.h: Include <sys/types.h>, so that this file is
60654         self-contained.
60655         * lib/makepath.h: Likewise.
60656
60657         * lib/getusershell.c (readname, default_index, line_size, readname):
60658         Use size_t, not int, for sizes.
60659         (readname): If the size overflows, report an error instead of
60660         looping forever.
60661
60662 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60663
60664         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
60665         libc.
60666
60667 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60668
60669         * README: New section: portability guidelines.
60670
60671 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60672
60673         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
60674         C89 spec.
60675
60676 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
60677
60678         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
60679
60680 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60681
60682         Assume C89 or better; remove K&R cruft.
60683         A few of these changes were first proposed by Derek Robert Price
60684         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
60685
60686         * lib/addext.c: Include <string.h> unconditionally.
60687         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
60688         Don't declare getenv or malloc.
60689
60690         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
60691         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
60692         (NULL): Remove.
60693         (find_stack_direction, alloca): Use prototypes.
60694
60695         * lib/atexit.c (atexit): Define using a prototype.
60696
60697         * lib/basename.c, dirname.c, stripslash.c:
60698         Include <string.h> unconditionally.
60699
60700         * lib/bcopy.c: Include <stddef.h>.
60701         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
60702
60703         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
60704
60705         * lib/error.h (error, error_at_line, error_print_progname)
60706         [! (defined (__STDC__) && __STDC__)]: Remove decls.
60707         * lib/error.c: Include error.h first, to check interface.
60708         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60709         (VA_START): Remove; all uses changeed to va_start.
60710         (exit, strerror): Remove decls.
60711         (error_print_progname): Prototype uncondionally.
60712         Don't include <errno.h>; no longer needed.
60713         (private_strerror): Remove.
60714         (error_tail): Always define.
60715         (error, error_at_line): Assume C89 or better; always use prototypes.
60716         * lib/fatal.c: Include "fatal.h" first, to test interface.
60717         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
60718         (VA_START): Remove; all uses changed to va_start.
60719         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
60720         this case.
60721         (exit): Remove decl.
60722         (fatal): Prototype unconditionally.  Assume va_start works.
60723         Abort at end, to pacify gcc.
60724
60725         * lib/euidaccess.c (main): Define with a prototype.
60726
60727         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
60728
60729         * lib/exitfail.c: Include <stdlib.h> unconditionally.
60730
60731         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
60732         prototypes.
60733         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
60734         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
60735         (getenv): Remove decl.
60736         (fnmatch): Define using a prototype.
60737         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
60738         (FCT): Define using a prototype.
60739
60740         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
60741
60742         * lib/gethostname.c: Include <stddef.h>.
60743         (gethostname): Define with prototype.  Length is size_t, not int.
60744
60745 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60746
60747         Assume C89 or better; remove K&R cruft.
60748         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
60749         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
60750         string.h, getenv, malloc.
60751         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
60752         headers.
60753         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
60754         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
60755         do not check for strerror.
60756         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
60757         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
60758         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
60759         do not check for doprnt or vprintf.
60760         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
60761         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
60762
60763 2003-09-08  Paul Eggert  <eggert@twinsun.com>
60764
60765         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
60766         getversion.c should have been removed then, but was accidentally
60767         preserved.
60768
60769         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
60770         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
60771
60772 2003-09-08  Karl Berry  <karl@gnu.org>
60773
60774         * config/config.sub, config.guess, srclistvars.sh: update from savannah
60775                 config, forget about prep.
60776
60777         * config/depcomp, missing: update from automake.
60778
60779 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60780
60781         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
60782         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60783
60784 2003-09-07  Paul Eggert  <eggert@twinsun.com>
60785
60786         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
60787         copy_tm_result.  Bug reported by Simon Josefsson in
60788         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
60789
60790 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60791
60792         * m4/time_r.m4: New file.
60793         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
60794         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
60795         is. Check for timegm declaration.
60796         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
60797         Do not check for gmtime_r.
60798         Replace mktime if __mktime_internal does not exist and if mktime
60799         hasn't been replaced already.
60800
60801 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60802
60803         * lib/time_r.c, lib/time_r.h: New files.
60804
60805         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
60806         __localtime_r.
60807         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
60808         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
60809
60810         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
60811         __gmtime_r.
60812         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
60813         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
60814         Include <time_r.h>.
60815
60816         * lib/timegm.c: Switch to glibc implementation, with the following
60817         changes:
60818         [defined HAVE_CONFIG_H]: Include <config.h>.
60819         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
60820         (__mktime_internal) [!defined _LIBC]: New decl.
60821         (__gmtime_r) [!defined _LIBC]: New macro and function.
60822         (timegm): Use a prototype, since gnulib assumes C89.
60823         Do not bother declaring tmp to be const, as it's not really usefu.
60824         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
60825         (timegm): Declare only if HAVE_DECL_TIMEGM.
60826
60827 2003-09-06  Paul Eggert  <eggert@twinsun.com>
60828
60829         * MODULES.html.sh (func_all_modules): Add time_r.
60830         * modules/time_r: New file.
60831         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
60832         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
60833
60834 2003-09-03  Paul Eggert  <eggert@twinsun.com>
60835
60836         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
60837         Bug reported by Lute Kamstra in
60838         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
60839
60840         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
60841         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
60842         course with correspondingly smaller numbers for tomorrow and
60843         yesterday.  From Tadayoshi Funaba.  Originally installed into
60844         sh-utils on 1999-08-07, but the patch got lost (I guess during the
60845         coreutils merge?).
60846
60847 2003-08-31  Simon Josefsson  <jas@extundo.com>
60848
60849         * modules/timegm: New file.
60850         * MODULES.html.sh (func_all_modules): Add timegm.
60851
60852 2003-08-31  Simon Josefsson  <jas@extundo.com>
60853
60854         * m4/timegm.m4: New file.
60855
60856 2003-08-31  Simon Josefsson  <jas@extundo.com>
60857
60858         * lib/timegm.h: New file.
60859         * lib/timegm.c: New file.  Based on
60860         wget-1.8.2/src/http.c:mktime_from_utc.
60861
60862 2003-08-31  Karl Berry  <karl@gnu.org>
60863
60864         * lib/argp.h: update from libc.
60865
60866 2003-08-28  Bruno Haible  <bruno@clisp.org>
60867
60868         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
60869         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
60870         followed by '#define fnmatch fnmatch_posix' gives an error.
60871
60872 2003-08-28  Bruno Haible  <bruno@clisp.org>
60873
60874         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
60875         warning on QNX, which defines O_BINARY to 000000.
60876
60877 2003-08-27  Jim Meyering  <jim@meyering.net>
60878
60879         * m4/mkstemp.m4: Require that the system mkstemp be able to create
60880         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
60881         would fail after 32.  Reported by Danny Levinson.  Details here:
60882         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
60883
60884 2003-08-24  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
60887         MSVC7 <stdio.h> is included later.
60888
60889 2003-08-22  Simon Josefsson  <jas@extundo.com>
60890
60891         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
60892
60893 2003-08-20  Karl Berry  <karl@gnu.org>
60894
60895         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
60896
60897 2003-08-20  Bruno Haible  <bruno@clisp.org>
60898
60899         * modules/progname: New file.
60900         * MODULES.html.sh (func_all_modules): Add progname.
60901
60902 2003-08-20  Bruno Haible  <bruno@clisp.org>
60903
60904         * lib/progname.h: New file, from GNU gettext.
60905         * lib/progname.c: New file, from GNU gettext.
60906         * lib/progreloc.c: New file, from GNU gettext.
60907
60908 2003-08-19  Jim Meyering  <jim@meyering.net>
60909
60910         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
60911         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
60912
60913 2003-08-19  Bruno Haible  <bruno@clisp.org>
60914
60915         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
60916         more.
60917
60918 2003-08-19  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/xstrdup.c: Assume <string.h> exists.
60921
60922 2003-08-18  Paul Eggert  <eggert@twinsun.com>
60923
60924         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
60925         in makefile rules.
60926
60927 2003-08-18  Jim Meyering  <jim@meyering.net>
60928
60929         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
60930         * m4/lib-ld.m4: Likewise.
60931
60932 2003-08-18  Jim Meyering  <jim@meyering.net>
60933
60934         * lib/setenv.h: Indent nested cpp directive.
60935         * lib/vasnprintf.c: Remove trailing blanks.
60936
60937 2003-08-17  Simon Josefsson  <jas@extundo.com>
60938
60939         * modules/xstrndup: New file.
60940         * MODULES.html.sh (func_all_modules): Add xstrndup.
60941
60942 2003-08-17  Simon Josefsson  <jas@extundo.com>
60943
60944         * modules/argp: Fix autoconf macro name. Add more dependencies.
60945
60946 2003-08-17  Simon Josefsson  <jas@extundo.com>
60947
60948         * m4/xstrndup.m4: New file.
60949
60950 2003-08-17  Simon Josefsson  <jas@extundo.com>
60951
60952         * m4/argp.m4: New file.
60953
60954 2003-08-17  Simon Josefsson  <jas@extundo.com>
60955             Bruno Haible  <bruno@clisp.org>
60956
60957         * lib/xstrndup.h: New file.
60958         * lib/xstrndup.c: New file.
60959
60960 2003-08-17  Bruno Haible  <bruno@clisp.org>
60961
60962         * modules/strndup (Files, Include): Add lib/strndup.h.
60963
60964 2003-08-17  Bruno Haible  <bruno@clisp.org>
60965
60966         * modules/euidaccess (Files): Add lib/euidaccess.h.
60967
60968 2003-08-17  Bruno Haible  <bruno@clisp.org>
60969
60970         * lib/strndup.h: New file.
60971
60972 2003-08-17  Bruno Haible  <bruno@clisp.org>
60973
60974         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
60975         like AC_GNU_SOURCE.
60976         * modules/extensions (configure.ac): Comment out the invocation of
60977         gl_USE_SYSTEM_EXTENSIONS.
60978
60979 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60980
60981         Merges from coreutils, etc.
60982         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
60983         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
60984         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
60985         fixing a typo.
60986         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
60987         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
60988
60989 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60990
60991         Document merge from coreutils.
60992         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
60993         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
60994         * modules/utime: Add m4/utimes-null.m4.
60995
60996 2003-08-16  Paul Eggert  <eggert@twinsun.com>
60997
60998         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
60999         space, undoing this 2003-08-12 change:
61000         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61001
61002 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61003
61004         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61005         strtoul.c from libc, undoing this 2003-08-12 change:
61006         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61007
61008 2003-08-16  Jim Meyering  <jim@meyering.net>
61009
61010         Merges from coreutils.
61011         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61012         prefix.  Adjust cache variables similarly.  Create 500 rather than
61013         just 300 files, to exercise bug on Darwin6.5, too.
61014         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61015         $missing_dir.
61016         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61017         AM_SYS_POSIX_TERMIOS.
61018         Reported by mkc@mathdogs.com.
61019         Also change use of $am_cv_sys_posix_termios
61020         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61021         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61022         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61023         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61024         in /proc/mounts until it finds one with matching device number.  This
61025         is unnecessary when the FILE argument *is* a mount point.  No stat call
61026         is necessary in that case.  So, disable the statvfs-testing code on
61027         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61028         as RedHat bug# 84846.
61029         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61030         to 1MB, so as not to render systems with no stack size limit (e.g.,
61031         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61032         Include <unistd.h>.  On some systems,
61033         it is required for the definition of _SC_PAGESIZE.
61034
61035 2003-08-16  Jim Meyering  <jim@meyering.net>
61036
61037         Merge from coreutils.
61038         * lib/xstrtoimax.c: #else #if -> #elif.
61039         * lib/xstrtoumax.c: Likewise.
61040
61041 2003-08-16  Jim Meyering  <jim@meyering.net>
61042
61043         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61044         * m4/utimes.m4: Removed.
61045         * m4/utimes-null.m4: Renamed from utimes.m4.
61046
61047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61048         to 1MB, so as not to render systems with no stack size limit (e.g.,
61049         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61050         Include <unistd.h>.  On some systems,
61051         it is required for the definition of _SC_PAGESIZE.
61052
61053 2003-08-16  Jim Meyering  <jim@meyering.net>
61054         and Paul Eggert  <eggert@cs.ucla.edu>
61055
61056         Merges from coreutils, etc.
61057
61058         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61059         using the latest version from cvs.  This avoids problems with #line
61060         directives using a vendor (Sun) compiler.
61061         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61062         Don't set GETGROUPS_LIB here; now it's
61063         done via getgroups.m4's wrapper function.
61064         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61065         rather than just in sh-util/configure.in, so that the
61066         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61067         same.
61068         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61069         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61070         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61071         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61072         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61073         Remove code that is now done by the newly-required macros.
61074         Append $(EXEEXT) to DF_PROG.
61075         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61076         Do not invoke or require the following here,
61077         since prereq.m4 or some gnulib .m4 now does this for us:
61078         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61079         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61080         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61081         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61082         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61083         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61084         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61085         AC_FUNC_OBSTACK.
61086         Do not replace the following functions, as this is now the job
61087         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61088         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61089         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61090         atexit getpass, strdup, getpagesize.
61091         Replace 'raise'.
61092         Do not check for the following functions, as this is now the job
61093         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61094         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61095         setregid.
61096         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61097         Check for sys/sysctl.h.
61098         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61099         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61100         of checking for ssize_t ourselves.
61101
61102         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61103         Require every macro that gnulib/modules/* suggests for us.
61104         (jm_PREREQ_ADDEXT): New macro.
61105         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61106         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61107
61108         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61109         (gl_PHYSMEM): Use it.
61110         Also check for `table' function.
61111         Check for new headers and functions.
61112         Add check for sys/sysmp.h.
61113         With suggestions from Kaveh Ghazi.
61114         Ignore headers that are present but cannot be compiled.  This
61115         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61116         C 5.4.
61117
61118 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61119
61120         Document merge from coreutils.
61121         * modules/userspec: Depend on posixver.
61122         * modules/strftime: Depend on tzset.
61123
61124 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61125
61126         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61127         rather than tab, after '#' in shell-script copyright notices.
61128         Suggested by Bruno Haible.
61129
61130 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61131
61132         * config/srclist-update: Use three spaces, rather than tab, after '#'
61133         in shell-script copyright notices.  Suggested by Bruno Haible.
61134         Remove unnecessary parenthesization in regular expression.
61135
61136 2003-08-15  Jim Meyering  <jim@meyering.net>
61137
61138         Merge from coreutils.
61139         * lib/xgethostname.c: Include <stdlib.h>.
61140         (xghostname): Don't exit for anything other than memory-related
61141         failure; just return NULL.
61142         * lib/userspec.c: Include "posixver.h".
61143         (parse_user_spec): Accept `.' as a separator only
61144         in pre-POSIX-200112 mode.
61145         * lib/strtoimax.c: Use #elif rather than #else #if.
61146         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61147         Remove function, now that we can rely on a working tzset function.
61148         [!_LIBC]: Ensure that the required autoconf test has been run.
61149         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61150         Use underlying_strftime for %r.
61151         * lib/sha.c: Merge in some clean-up and optimization changes from
61152         glibc.
61153         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61154         Ensure that it is a multiple of 64.
61155         Rearrange loop exit tests so as to avoid performing an
61156         additional fread after encountering an error or EOF.
61157         * lib/realloc.c: Update copyright date.
61158
61159 2003-08-15  Jim Meyering  <jim@meyering.net>
61160         and Paul Eggert  <eggert@twinsun.com>
61161
61162         Merge from coreutils.
61163         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61164         member but strut utmpx does not.  Needed for AIX 4.3.3.
61165         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61166
61167 2003-08-15  Jim Meyering  <jim@meyering.net>
61168         and Paul Eggert  <eggert@cs.ucla.edu>
61169
61170         Merges from coreutils, etc.
61171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61172         Require gl_FUNC_TZSET_CLOBBER.
61173         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61174         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61175         members.
61176
61177 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61178
61179         Help the merge from coreutils.
61180         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61181         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61182         * m4/tzset.m4: Use it too.
61183
61184 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61185
61186         * modules/tzset: New file.
61187
61188 2003-08-14  Jim Meyering  <jim@meyering.net>
61189
61190         Merges from coreutils.
61191         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61192         variable names, rather than @FNMATCH_H@.
61193         * modules/alloca: Likewise for $(ALLOCA_H).
61194
61195         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61196         the three copies of the literal target, `fnmatch.h'.
61197         * modules/alloca (alloca.h): Likewise.
61198
61199 2003-08-14  Jim Meyering  <jim@meyering.net>
61200
61201         Merge from coreutils.
61202         * m4/tzset.m4: New file.
61203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61204         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61205         otherwise, AIX 5.1 systems would end up using the latter.
61206         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61207         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61208         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61209         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61210
61211 2003-08-14  Jim Meyering  <jim@meyering.net>
61212
61213         Merge from coreutils.
61214         * lib/obstack.h: Whitespace changes.
61215         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61216         and xcalloc return values.
61217         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61218         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61219         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61220         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61221         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61222         error from mntctl.
61223         Use mntctl's return value to drive the entry-processing loop, since
61224         we can't rely on the value of the vmt_length member in the last
61225         entry.  On some systems doing so could result in exhausting
61226         virtual memory.  Based in part on a patch from Mike Jetzer.
61227
61228 2003-08-14  Jim Meyering  <jim@meyering.net>
61229         and Paul Eggert  <eggert@twinsun.com>
61230
61231         Merges from coreutils, plus other fixes.
61232         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61233         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61234         for credits and details.  Thanks to Kaveh Ghazi for helping
61235         to keep these files in sync.
61236         (ARRAY_SIZE): Define it.
61237         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61238         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61239         (memcasecmp): Don't assume size_t fits in unsigned int.
61240         Remove casts and duplicate code.
61241         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61242         (memcpy): Remove definition.
61243         Merge in some clean-up and optimization changes from glibc.
61244         [BLOCKSIZE]: Move definition to top of file.
61245         Ensure that it is a multiple of 64.
61246         Rearrange loop exit tests so as to avoid performing an
61247         additional fread after encountering an error or EOF.
61248         * lib/md5.h (md5_uintptr): Define.
61249         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61250         return to the initial working directory.  Preserve errno
61251         for caller.
61252         * lib/idcache.c: Include "xalloc.h".
61253         (xmalloc, xrealloc): Remove decls.
61254         (getuser): Remove casts no longer required in C89.
61255         * lib/human.c: Include stdio.h, for sprintf.
61256         * lib/group-member.c: Include "xalloc.h".
61257         (xmalloc, xrealloc): Remove decls.
61258         (get_group_info): Remove casts no longer required in C89.
61259         * lib/getusershell.c (readname): Remove casts no longer required in
61260         C89.
61261         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61262         * lib/getline.c: Whitespace fix, from coreutils.
61263
61264 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61265
61266         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61267         Check for isascii.
61268
61269         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61270         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61271         Undo previous (whitespace-only) change.
61272
61273 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61274
61275         * lib/exclude.c: Include <ctype.h>
61276         (IN_CTYPE_DOMAIN): New macro.
61277         (is_space): New fn.
61278         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61279         and empty lines.
61280
61281         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61282         Undo previous (whitespace-only) change.
61283
61284 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61285
61286         * config/srclist-update: Change update back to the old behavior,
61287         leaving whitespace alone.  Use one 'sed' command rather than a
61288         pipeline.
61289         (fixlicense): Now a variable, not a function.
61290         (remove_trailing_blanks): Remove.
61291         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61292         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61293         Undo previous (whitespace-only) change.
61294
61295 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61296
61297         Merge from coreutils.
61298         * modules/euidaccess: Add lib_SOURCES, include for new
61299         file euidaccess.h
61300
61301 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61302
61303         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61304         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61305         Normalize leading white space and remove trailing white space.
61306
61307         Merge from coreutils
61308         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61309
61310         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61311         0.12.1.  These files are now being upgraded automatically by
61312         ../config/srclist-update.
61313
61314 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61315
61316         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61317         Normalize leading white space and remove trailing white space.
61318         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61319         notice, as per ../config/srclist-update.
61320
61321         Merge from coreutils.
61322         * lib/euidaccess.h: New file.
61323         * lib/euidaccess.c: Include it.
61324         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61325         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61326         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61327
61328 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61329
61330         * config/srclist-update: Add copyright notice.
61331         (remove_id_lines, remove_trailing_blanks): New constants.
61332         (fixfile): Use them to normalize spacing a bit in copied files.
61333         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61334         Normalize leading white space and remove trailing white space.
61335
61336         * config/texinfo.tex: Sync with texinfo.
61337
61338         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61339         strtoul.c from libc, to merge coreutils whitespace changes.
61340
61341         * config/srclist.txt: Get the following m4 files from gettext:
61342         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61343         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61344         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61345         wint_t.m4.
61346
61347 2003-08-12  Karl Berry  <karl@gnu.org>
61348
61349         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61350         been made.
61351
61352 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61353
61354         * modules/gnu-source, m4/gnu-source.m4:
61355         Remove; we're assuming Autoconf 2.54 or later now.
61356         Suggested by Bruno Haible.
61357         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61358
61359 2003-08-11  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61362
61363 2003-08-11  Bruno Haible  <bruno@clisp.org>
61364
61365         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61366         (vasnprintf): Use it instead of wcslen.
61367
61368 2003-08-11  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61371         value to ensure that _Bool promotes to int. Use #define for _Bool when
61372         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61373
61374 2003-08-10  Karl Berry  <karl@gnu.org>
61375
61376         * lib/regex.h: update from libc (whitespace fix).
61377
61378 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61379
61380         Merge some files from coreutils.  These changes were
61381         originally made by Jim Meyering.
61382         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61383         many older Unixes require this.
61384         * lib/alloca.c (alloca): Remove cast to argument of free;
61385         no longer needed in C89.
61386         * lib/alloca_.h, regex.h: Fix white space to match
61387         what GNU indent does.
61388
61389 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61390
61391         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61392         apparently Emacs's Unicode mode got confused before my 2003-08-05
61393         checkin.
61394
61395 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61396
61397         * m4/extensions.m4: New file.
61398         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61399         Require gl_USE_SYSTEM_EXTENSIONS.
61400         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61401         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61402
61403 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61404
61405         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61406         * modules/extensions, modules/gnu-source: New files.
61407         * modules/timespec, modules/unlocked-io: Depend on extensions.
61408
61409 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61410
61411         * modules/restrict: New file.
61412         * MODULES.html.sh (func_all_modules): Add restrict.
61413         * modules/regex: Depend on restrict.
61414
61415 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61416
61417         * m4/restrict.m4: New file.
61418         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61419
61420 2003-08-07  Bruno Haible  <bruno@clisp.org>
61421
61422         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61423         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61424
61425 2003-08-07  Bruno Haible  <bruno@clisp.org>
61426
61427         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61428         makes the module 'getndelim2' compatible with the module 'getline'.
61429
61430 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61431
61432         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61433         byte with "\201" to avoid glitches when editing that source file
61434         with multi-gnome-terminal.
61435
61436 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61437
61438         * lib/bumpalloc.h: Remove.
61439
61440 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61441
61442         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61443         * modules/bumpalloc: Remove.
61444
61445 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61446
61447         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61448         GNU coding style.
61449
61450         Merge from coreutils.
61451         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61452         1. From glibc.
61453         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61454         from Karl Berry, implemented by Jim Meyering.
61455         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61456         from Dmitry V. Levin.
61457         Remove anachronistic cast of xrealloc.
61458         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61459         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61460         type. Otherwise, it wouldn't compile with at least /bin/cc on
61461         ymp-cray-unicos9.0.2.X.
61462         Combine two mostly-identical uses of alloca into one.
61463         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61464
61465 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61466
61467         [From Emacs.]
61468
61469         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61470         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61471         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61472         obsolete NLIST_NAME_UNION.
61473         [__GNU__]: Undef BSD and FSCALE.
61474         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61475
61476 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61477
61478         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61479         an enum type, so that it's guaranteed to promote to int.  See:
61480         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61481
61482 2003-08-03  Karl Berry  <karl@gnu.org>
61483
61484         * config/depcomp: update from automake.
61485
61486 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61487
61488         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61489         (strerror): Don't assume that a printable int fits in 14 bytes.
61490
61491 2003-07-31  Bruno Haible  <bruno@clisp.org>
61492
61493         * modules/getpass-gnu: New file.
61494         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61495
61496 2003-07-31  Bruno Haible  <bruno@clisp.org>
61497
61498         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61499
61500 2003-07-24  Karl Berry  <karl@gnu.org>
61501
61502         * config/missing: update from automake.
61503
61504 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61505             Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61508         * lib/getline.c (getline, getdelim): Likewise.
61509         Remove _GNU_SOURCE define; now it's defined in config.h through
61510         m4/getline.m4.
61511
61512 2003-07-23  Karl Berry  <karl@gnu.org>
61513
61514         * config/config.sub: update from prep.
61515
61516 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61517
61518         * modules/xalloc (Depends-on): Add exitfail.
61519         * modules/xmemcoll: Likewise.
61520
61521 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61522
61523         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61524         over-parenthesization in macros.
61525
61526         Sync with coreutils.
61527
61528         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
61529         required by C99.
61530
61531         Use `exit_failure' for xalloc and xmemcoll instead of their own
61532         private exit-failure variables.
61533         * lib/xalloc.h (xalloc_exit_failure): Remove.
61534         * lib/xmalloc.c: Likewise.  Include exitfail.h.
61535         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
61536         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
61537         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
61538         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
61539
61540 2003-07-20  Jim Meyering  <jim@meyering.net>
61541
61542         * modules/closeout (Depends-on): Add exitfail.
61543         Suggestion from Bruno Haible.
61544
61545 2003-07-19  Karl Berry  <karl@gnu.org>
61546
61547         * config/config.sub: update from prep.
61548
61549 2003-07-18  Paul Eggert  <eggert@twinsun.com>
61550
61551         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
61552         Remove.
61553         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
61554         to test that it can stand by itself.  Include "exitfail.h".
61555         Clients should set exit_failure instead.
61556         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
61557
61558 2003-07-18  Bruno Haible  <bruno@clisp.org>
61559
61560         * modules/getndelim2: New file.
61561         * modules/getline: Share files with module getndelim2.
61562         * modules/getnline: Depend on getndelim2 instead of sharing files with
61563         it. Add getnline.c to lib_SOURCES.
61564         * MODULES.html.sh (func_all_modules): Add getndelim2.
61565
61566 2003-07-18  Bruno Haible  <bruno@clisp.org>
61567
61568         * m4/getndelim2.m4: New file.
61569         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
61570         invoke gl_PREREQ_GETNDELIM2.
61571         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
61572         gl_PREREQ_GETNDELIM2.
61573         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
61574         gl_GETNDELIM2.
61575
61576 2003-07-18  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/getndelim2.h: New file.
61579         * lib/getndelim2.c: Make into a module of its own. Include config.h,
61580         getndelim2.h.
61581         (getndelim2): Make non-static. Change return type to ssize_t.
61582         * lib/getline.h: Change argument names.
61583         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
61584         * lib/getnline.c: Include getndelim2.h.
61585
61586 2003-07-18  Andreas Schwab  <schwab@suse.de>
61587
61588         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
61589
61590 2003-07-17  Karl Berry  <karl@gnu.org>
61591
61592         * config/config.sub: update from prep.
61593
61594 2003-07-17  Bruno Haible  <bruno@clisp.org>
61595
61596         * modules/getnline: New file.
61597         * modules/getline: Add lib/getndelim2.c to source file list.
61598         * MODULES.html.sh (func_all_modules): Add getnline.
61599
61600 2003-07-17  Bruno Haible  <bruno@clisp.org>
61601
61602         * m4/getnline.m4: New file.
61603
61604 2003-07-17  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/Makefile.am.in: Remove file.
61607         * m4/Makefile.am: Remove file.
61608         * m4/Makefile.in: Remove file.
61609
61610 2003-07-17  Bruno Haible  <bruno@clisp.org>
61611
61612         * lib/getnline.h: New file.
61613         * lib/getnline.c: New file.
61614         * lib/getndelim2.c: New file, extracted from getline.c.
61615         (getndelim2): Renamed from getdelim2, with added nmax argument.
61616         * lib/getline.c: Include getndelim2.c.
61617         (getdelim2): Moved out to getndelim2.c.
61618         (getline, getdelim): Update.
61619
61620 2003-07-17  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/Makefile.am: Remove file.
61623         * lib/Makefile.in: Remove file.
61624
61625 2003-07-17  Bruno Haible  <bruno@clisp.org>
61626
61627         * configure.in: Remove file.
61628         * Makefile.in: Remove file.
61629
61630 2003-07-17  Bruno Haible  <bruno@clisp.org>
61631
61632         * MODULES.html.sh: Put the </BODY> right before </HTML>.
61633
61634 2003-07-16  Karl Berry  <karl@gnu.org>
61635
61636         * config/srclist-update: was running fixlicense twice, which caused
61637                 texinfo.tex to be nullified for some reason.  Simplify,
61638                 $gplsrc is no longer needed as far as I can see?
61639
61640 2003-07-16  Jim Meyering  <jim@meyering.net>
61641
61642         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
61643
61644 2003-07-15  Paul Eggert  <eggert@twinsun.com>
61645
61646         * config/srclist.txt: Get the following files from gettext-runtime/intl
61647         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
61648         ref-del.sin.  From Bruno Haible.
61649         * config/srclist-update (fixfile): Change grep pattern again, since the
61650         previous fix didn't work (there was another trailing $).  Use
61651         '[$]' to escape the $s.
61652
61653 2003-07-15  Karl Berry  <karl@gnu.org>
61654
61655         * lib/vasnprintf.c: update from gettext.
61656
61657 2003-07-15  Karl Berry  <karl@gnu.org>
61658
61659         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
61660         gets expanded when surrounded by '$'.
61661
61662 2003-07-15  Jim Meyering  <jim@meyering.net>
61663
61664         * modules/save-cwd: Don't depend on error.  From Derek Price.
61665
61666 2003-07-15  Jim Meyering  <jim@meyering.net>
61667
61668         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
61669
61670 2003-07-14  Simon Josefsson  <jas@extundo.com>
61671
61672         * modules/mempcpy: New file.
61673         * MODULES.html.sh (func_all_modules): Add mempcpy.
61674
61675 2003-07-14  Simon Josefsson  <jas@extundo.com>
61676
61677         * m4/mempcpy.m4: New file.
61678
61679 2003-07-14  Simon Josefsson  <jas@extundo.com>
61680
61681         * lib/mempcpy.h: New file.
61682         * lib/mempcpy.c: New file.
61683
61684 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61685
61686         * modules/getdate, modules/posixtm: Depend on mktime.
61687
61688 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61689
61690         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
61691         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
61692         unicodeio.c, unicodeio.h, unlocked-io.h:
61693         Switch from LGPL to GPL.
61694
61695 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61696
61697         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
61698         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
61699         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
61700         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
61701         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
61702         updated automatically by ../config/srclist-update.  This changes
61703         their license from LPGL to GPL.
61704
61705 2003-07-14  Paul Eggert  <eggert@twinsun.com>
61706
61707         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
61708         assumed to refer to the root of the most recent stable gettext version.
61709         * config/srclistvars.sh: Add defaults for eggert.
61710         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
61711         Match "This program" as well as "The program".  This is needed
61712         for gettext.
61713
61714 2003-07-14  Jim Meyering  <jim@meyering.net>
61715
61716         Don't emit diagnostics.  Let callers do that.
61717         * lib/save-cwd.c: Don't include "error.h".
61718         (save_cwd): Don't call error.  Ensure that errno is valid
61719         when returning nonzero.
61720
61721         * lib/save-cwd.h (restore_cwd): Update prototype.
61722         * lib/save-cwd.c (restore_cwd): Remove two parameters.
61723         Simplify.  Don't call error upon failure.  Let callers do that.
61724         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
61725         when auditing is enabled.  But don't bother updating the #if.
61726
61727 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
61728
61729         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
61730         it breaks C++ compilation.
61731         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
61732
61733 2003-07-10  Simon Josefsson  <jas@extundo.com>
61734
61735         * modules/strchrnul (Makefile.am): Add strchrnul.h.
61736
61737 2003-07-10  Jim Meyering  <jim@meyering.net>
61738
61739         * m4/clock_time.m4: Remove trailing blank.
61740         * m4/intmax_t.m4: Likewise.
61741
61742 2003-07-10  Jim Meyering  <jim@meyering.net>
61743
61744         * lib/vasnprintf.c: Remove trailing blanks.
61745         Make cpp indentation consistent.
61746
61747 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61748
61749         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
61750         posixver.c, strftime.c, strnlen.c, strverscmp.c:
61751         Switch from LGPL to GPL.
61752
61753 2003-07-09  Paul Eggert  <eggert@twinsun.com>
61754
61755         * config/srclist.txt: Sort sublists.  Add
61756         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
61757         that differ from gnulib for one reason or another; we'd like this list
61758         to be smaller but for now let's document what we have.
61759
61760 2003-07-08  Paul Eggert  <eggert@twinsun.com>
61761
61762         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
61763         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
61764         and sweeter "eval x=$x".
61765         * config/srclist.txt: Get lib/argp* from glibc.
61766
61767 2003-07-07  Paul Eggert  <eggert@twinsun.com>
61768
61769         * lib/mktime.c: Fix some boundary cases and remove need for floating
61770         point.
61771
61772         Issue a compile-time diagnostic if time_t is floating point, or if
61773         two's complement arithmetic is not in effect, or if arithmetic
61774         right shift does not propagate the sign.  These assumptions were
61775         all in the original code but they weren't checked.
61776
61777         (TIME_T_MIDPOINT, verify): New macros.
61778         (__isleap): Remove; it has integer overflow problems.
61779         (leapyear): New function, without those problems.
61780         (ydhms_tm_diff): Remove; splitting into two parts.
61781         (ydhms_diff): New function, containing the arithmetic part of
61782         the old ydhms_tm_diff function.  Issue a compile-time
61783         diagnostic if we are not using C99 integer division.
61784         Avoid casts when possible.
61785         (guess_time_tm): New function, containing the checking part of
61786         the old ydhms_tm_diff function.  Return the new value, rather than
61787         the difference between it and the old.  Accept a new argument T
61788         so that *T specifies the old value.  Check for overflow in the result.
61789
61790         (__mktime_internal): Use a time_t offset, not a long int offset.
61791         This undoes the 2003-06-04 change, which is no longer needed now
61792         that we have better overflow checking.
61793         (localtime_offset): Likewise.
61794
61795         (__mktime_internal): Avoid harmful overflow on hosts where time_t
61796         and long are 64-bit but int is only 32-bit.
61797         (ydhms_diff): Use long int to store year1 and yday1.
61798         Issue a compile-time diagnostic if long int is not wide enough.
61799
61800         (__mktime_internal): Use long int to store adjusted year and yday.
61801         Use plain C rather than preprocessor commands, if that doesn't
61802         affect efficiency.
61803         Check for overflow (and try to repair) after each probe
61804         rather than checking only at the very end.  This avoids some bugs
61805         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
61806         does not equal GMT offset at maximum time).
61807         Use integer to check for overflow rather than floating point; this
61808         is more portable to non-IEEE hosts, and is a tad faster.
61809         When we detect that we are oscillating between two values,
61810         don't check whether tm_isdst has the requested value, since
61811         we already know the answer.  When tm_isdst has the wrong value,
61812         use a different heuristic to find the right one, based on the
61813         extreme values actually observed in practice in tz2003a,
61814         rather than the (overly optimistic) "previous 3 calendar quarters".
61815
61816         (not_equal_tm, print_tm, check_result): Use "const T" rather than
61817         "T const" to accommodate glibc style.
61818         (check_result): Use less-confusing report format.  "long" -> "long int.
61819         (main): Likewise.
61820         Don't loop if the iteration overflows time_t.
61821         Allow a negative step in the iteration.
61822
61823 2003-07-06  Karl Berry  <karl@gnu.org>
61824
61825         * config/depcomp: update from automake.
61826         * config/config.sub: update from prep.
61827
61828 2003-07-03  Karl Berry  <karl@gnu.org>
61829
61830         * config/config.guess: update from prep.
61831
61832 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61833
61834         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
61835         xreadlink.c now includes it unconditionally.
61836
61837 2003-07-01  Paul Eggert  <eggert@twinsun.com>
61838
61839         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
61840         having it depend on HAVE_SYS_TYPES_H.
61841
61842 2003-07-01  Bruno Haible  <bruno@clisp.org>
61843
61844         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
61845         <sys/types.h> should be sufficient.
61846         Reported by Paul Eggert.
61847
61848 2003-06-26  Karl Berry  <karl@gnu.org>
61849
61850         * config/depcomp: update from automake.
61851
61852 2003-06-26  Bruno Haible  <bruno@clisp.org>
61853
61854         * modules/human: Depend on module stdbool.
61855
61856 2003-06-25  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/readlink: New file.
61859         * modules/xreadlink: Depend on it.
61860         * MODULES.html.sh (func_all_modules): Add readlink.
61861
61862 2003-06-25  Bruno Haible  <bruno@clisp.org>
61863
61864         * m4/readlink.m4: New file.
61865
61866 2003-06-25  Bruno Haible  <bruno@clisp.org>
61867
61868         * lib/readlink.c: New file.
61869
61870 2003-06-22  Karl Berry  <karl@gnu.org>
61871
61872         * config/srclist.txt: update mkinstalldirs from automake.
61873         * config/mkinstalldirs: update.
61874
61875 2003-06-22  Bruno Haible  <bruno@clisp.org>
61876
61877         Portability to mingw32.
61878         * m4/ssize_t.m4: New file, from GNU gettext.
61879         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
61880         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
61881
61882 2003-06-22  Bruno Haible  <bruno@clisp.org>
61883
61884         * modules/safe-read: Add m4/ssize_t.m4.
61885         * modules/xreadlink: Add m4/ssize_t.m4.
61886
61887 2003-06-20  Bruno Haible  <bruno@clisp.org>
61888
61889         Assume C89, so PARAMS isn't needed.
61890         * lib/unicodeio.h (PARAMS): Remove.
61891         * lib/unicodeio.c: Don't use PARAMS.
61892
61893 2003-06-18  Karl Berry  <karl@gnu.org>
61894
61895         * config/config.{guess,sub}: update from prep.
61896
61897 2003-06-18  Jim Meyering  <jim@meyering.net>
61898
61899         Merge changes from coreutils.
61900         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
61901         Remove explicit declarations of xmalloc and realloc.
61902         Include xalloc.h.
61903         (read_utmp): Remove anachronistic cast of xmalloc.
61904
61905 2003-06-17  Paul Eggert  <eggert@twinsun.com>
61906
61907         Assume C89, so PARAMS isn't needed.
61908         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
61909         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
61910         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
61911         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
61912         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
61913         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
61914         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
61915         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
61916         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
61917         lib/xstrtod.h, lib/xstrtol.h: Likewise.
61918         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
61919         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
61920         no longer needed. Anyway, config.h should always be included before any
61921         other file.
61922
61923 2003-06-11  Simon Josefsson  <jas@extundo.com>
61924
61925         * modules/sysexits: New file.
61926         * MODULES.html.sh (func_all_modules): Add sysexits.
61927
61928 2003-06-11  Simon Josefsson  <jas@extundo.com>
61929
61930         * lib/sysexit_.h: New file.
61931
61932 2003-06-11  Derek Price  <derek@ximbiot.com>
61933
61934         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
61935         necessary.
61936
61937 2003-06-11  Bruno Haible  <bruno@clisp.org>
61938
61939         * m4/sysexits.m4: New file.
61940
61941 2003-06-10  Simon Josefsson  <jas@extundo.com>
61942
61943         * lib/argp.h: New file, from glibc.
61944         * lib/argp-ba.c: New file, from glibc.
61945         * lib/argp-eexst.c: New file, from glibc.
61946         * lib/argp-fmtstream.c: New file, from glibc.
61947         * lib/argp-fmtstream.h: New file, from glibc.
61948         * lib/argp-fs-xinl.c: New file, from glibc.
61949         * lib/argp-help.c: New file, from glibc.
61950         * lib/argp-namefrob.h: New file, from glibc.
61951         * lib/argp-parse.c: New file, from glibc.
61952         * lib/argp-pv.c: New file, from glibc.
61953         * lib/argp-pvh.c: New file, from glibc.
61954         * lib/argp-xinl.c: New file, from glibc.
61955
61956 2003-06-10  Simon Josefsson  <jas@extundo.com>
61957
61958         * modules/strchrnul: New file.
61959
61960 2003-06-10  Simon Josefsson  <jas@extundo.com>
61961
61962         * modules/argp: New file.
61963
61964 2003-06-10  Simon Josefsson  <jas@extundo.com>
61965
61966         * m4/strchrnul.m4: New file.
61967
61968 2003-06-10  Simon Josefsson  <jas@extundo.com>
61969
61970         * lib/strchrnul.h: New file.
61971         * lib/strchrnul.c: New file.
61972
61973 2003-06-10  Bruno Haible  <bruno@clisp.org>
61974
61975         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
61976
61977 2003-06-07  Karl Berry  <karl@gnu.org>
61978
61979         * config/config.{guess,sub}: update from prep.
61980
61981 2003-06-07  Jim Meyering  <jim@meyering.net>
61982
61983         * modules/strtod: Use $(...) notation, not @...@ for
61984         AC_REPLACE'd variables.
61985         * modules/localcharset: Likewise.
61986
61987 2003-06-07  Jim Meyering  <jim@meyering.net>
61988
61989         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
61990         in place of my name in the copyright comment.
61991         Remove definition and uses of __P.
61992
61993         From coreutils.
61994         * lib/stat.c: Don't declare xmalloc explicitly.
61995         Instead, include "xalloc.h".
61996         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
61997         xrealloc, and xcalloc return values.
61998         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
61999         Improve comment.
62000         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62001
62002 2003-06-07  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62005         avoid AC_CONFIG_LINKS.
62006         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62007         fnmatch.h, to avoid AC_CONFIG_LINKS.
62008         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62009
62010 2003-06-07  Bruno Haible  <bruno@clisp.org>
62011
62012         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62013         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62014         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62015         directory.
62016         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62017         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62018         directory.
62019
62020 2003-06-06  Jim Meyering  <jim@meyering.net>
62021
62022         Merge from coreutils.
62023         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62024         Consolidate declarations and initializations of *_base* locals.
62025
62026         Merge from coreutils.
62027         This avoids a core dump on systems without GNU putenv,
62028         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62029         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62030         (unsetenv): New static function, from GNU libc.
62031         (rpl_putenv): Use it.
62032
62033         * lib/modechange.c: Remove trailing blanks.
62034
62035         Merge from coreutils.
62036         * lib/fsusage.c: Remove declaration of statfs.
62037         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62038
62039         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62040
62041 2003-06-06  Jim Meyering  <jim@meyering.net>
62042
62043         * lib/stdbool_.h: Renamed from stdbool.h.in.
62044
62045 2003-06-06  Jim Meyering  <jim@meyering.net>
62046             Bruno Haible  <bruno@clisp.org>
62047
62048         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62049         Adjust Makefile.am snippet not to redirect directly to target.
62050         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62051
62052 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62053
62054         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62055         mismatch, look in future quarters as well as past.  This fixes a
62056         bug when processing fall-backwards gaps immediately after a long
62057         period of daylight-saving time.
62058
62059         * lib/mktime.c: Assume freestanding C89 or better.
62060         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62061         (__P): Remove; not used.
62062         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62063         (mktime, not_equal_tm, print_tm, check_result,
62064         main): Use prototypes.  Use const * where appropriate.
62065         (main): Fix typo in testing code that uncovered by above changes.
62066         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62067
62068 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62069
62070         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62071         locale.h, localeconv.  This merges changes from coreutils.
62072
62073         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62074         It can be removed after the next Autoconf is released.
62075         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62076         needed.
62077
62078 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62079
62080         * lib/mktime.c: Fix Debian bug 177940
62081         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62082         (localtime_offset): Now long int, not time_t, because we want it
62083         to be guaranteed to be signed.  All uses changed.
62084         (__mktime_internal): If overflow would occur when adding offset,
62085         don't add it.
62086
62087         Merge 'human' changes from coreutils.  Rewrite to support
62088         locale-specific notations like thousands separators.
62089         * lib/human.c: Simplify authorship notice.
62090         Include human.h immediately after config.h.
62091         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62092         <limits.h>: Do not include, since human.h does.
62093         (SIZE_MAX, UINTMAX_MAX): New macros.
62094         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62095         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62096         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62097         (power_letter): Renamed from suffixes.
62098         (generate_suffix_backwards): Remove.
62099         (adjust_value): Now takes int style (because of human.h changes)
62100         and long double value (for greater precision on some platforms).
62101         (group_number): New function.
62102         (human_readable): Use it.  Use integer options, not enum.
62103         Put the options before the sizes in the arg list.
62104         Support all the new options.
62105         The old human_readable function has been removed;
62106         use inttostr.h instead.
62107         (human_readable, default_block_size, humblock):
62108         Use uintmax_t, not int, for block sizes.
62109         (human_readable_inexact, block_size_types): Remove.
62110         (block_size_opts): New constant.
62111         (human_options): Renamed from human_block_size, with new signature
62112         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62113         * lib/human.h: Add copyright and authorship notice.
62114         Include <limits.h> and <stdbool.h> unconditionally.
62115         (PARAMS): Remove.  All uses removed.
62116         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62117         (enum human_inexact_style): Remove tag; now a nameless enum.
62118         (human_floor, human_ceiling, human_round_to_even): Now have
62119         values 2, 0, 1 rather than -1, 1, 0.
62120         (human_group_digits, human_suppress_point_zero, human_autoscale,
62121         human_base_1024, human_SI, human_B): New constants.
62122         (human_readable_inexact, human_block_size): Remove.
62123         (human_readable): Size args are now uintmax_t, not int.
62124         (human_options): New decl.
62125
62126         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62127         unnecessary now that we assume C89 or better.  This change
62128         imported from coreutils.
62129
62130         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62131         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62132         in the 2003-05-30 sync from glibc.
62133
62134         .h files should stand alone, but we shouldn't include <sys/types.h>
62135         if we can get away with just <stddef.h>.
62136
62137         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62138         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62139         rather than <sys/types.h>, as we merely need size_t.
62140         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62141         to get size_t.
62142         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62143         Include <stdio.h>, to get FILE.
62144         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62145         memcasecmp.h has included <stddef.h> and all we need is size_t.
62146         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62147         our interface, instead of including <sys/types.h>
62148
62149 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62150
62151         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62152         now, as glibc mktime is buggy on non-glibc systems.
62153
62154 2003-06-03  Karl Berry  <karl@gnu.org>
62155
62156         * config/config.sub: update from prep.
62157
62158 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62159
62160         [from coreutils]
62161         Fix some minor time-related bugs with POSIX time arguments.
62162         Some valid time stamps were being rejected (notably -1, and
62163         time stamps before 1900 on 64-bit hosts).  And some invalid
62164         time stamps were being accepted, e.g. September 31.
62165
62166         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62167         that we can return (time_t) -1 successfully.
62168         * lib/posixtm.c: Likewise.
62169         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62170         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62171         (t): Remove static var.
62172         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62173         of static var.  All uses changed.
62174         (year): Do not reject years before 1900; they can occur with
62175         64-bit time_t.
62176         (posix_time_parse): Do not check for out-of-range components;
62177         that is now the caller's responsibility, since our checks were
62178         only approximations.
62179         (posixtime): Use mktime to check for out-of-range components,
62180         since it knows them exactly.
62181         If mktime returns (time_t) -1, check whether an error actually occurred
62182         by invoking localtime on -1.
62183         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62184         posixtime failures better.
62185         Improve the test data (in comments only).
62186
62187 2003-06-02  Karl Berry  <karl@gnu.org>
62188
62189         * config/mkinstalldirs (version): new variable.
62190         (--version): new option.
62191         (usage): improve message.
62192
62193 2003-05-30  Karl Berry  <karl@gnu.org>
62194
62195         * lib/mktime.c: update from libc.
62196
62197 2003-05-30  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62200         * config/config.rpath: Upgrade to gettext-0.12.1.
62201
62202 2003-05-30  Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62205         * m4/nls.m4: New file, from gettext-0.12.1.
62206         * m4/po.m4: New file, from gettext-0.12.1.
62207         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62208
62209 2003-05-30  Bruno Haible  <bruno@clisp.org>
62210
62211         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62212         * lib/localcharset.h: Likewise.
62213         * lib/localcharset.c: Likewise.
62214
62215 2003-05-29  Karl Berry  <karl@gnu.org>
62216
62217         * config/config.rpath: update from gettext.
62218
62219 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62220
62221         Assume the headers required for C89 freestanding compilers.
62222         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62223         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62224         * m4/human.m4 (gl_HUMAN): Likewise.
62225         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62226         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62227         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62228         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62229         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62230         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62231
62232 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62233
62234         Assume the headers required for C89 freestanding compilers.
62235         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62236         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62237         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62238         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62239         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62240         define, since <limits.h> is guaranteed to do that.
62241         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62242         * lib/exclude.c: Include <stdbool.h> unconditionally.
62243         * lib/tempname.c: Include <stddef.h> unconditionally.
62244         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62245         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62246         <stddef.h> does that.
62247         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62248         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62249         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62250         needed.
62251         * lib/xstrtol.c: Likewise.
62252         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62253         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62254
62255         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62256         warnings on some platforms.
62257
62258         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62259         arbitrarily.
62260
62261 2003-05-26  Jim Meyering  <jim@meyering.net>
62262
62263         Merge in a change from coreutils:
62264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62265         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62266         that condition, rather than `-1' which is slightly misleading.
62267         Change the name of the cache variable to have the gl_ prefix.
62268         Prompted by a patch from Richard Dawe for DJGPP.
62269
62270 2003-05-24  Karl Berry  <karl@gnu.org>
62271
62272         * config/config.guess: update from prep.
62273
62274 2003-05-22  Karl Berry  <karl@gnu.org>
62275
62276         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62277
62278 2003-05-20  Karl Berry  <karl@gnu.org>
62279
62280         * config/config.guess: update from prep.
62281
62282 2003-05-18  Karl Berry  <karl@gnu.org>
62283
62284         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62285         might actually be set by the user.
62286
62287         * config/depcomp, install-sh, mdate-sh: update from automake.
62288
62289 2003-05-17  Bruno Haible  <bruno@clisp.org>
62290
62291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62292         invalid expansion for AC_EGREP_CPP.
62293         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62294         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62295         Suggested by Akim Demaille <akim@epita.fr> in
62296         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62297
62298 2003-05-12  Jim Meyering  <jim@meyering.net>
62299
62300         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62301         the space-padded-by-default conversion specifiers, %e, %k, %l.
62302
62303 2003-05-12  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62306         the string is longer than 4 KB.
62307
62308 2003-05-11  Karl Berry  <karl@gnu.org>
62309
62310         * config/config.{guess,sub}: update from prep.
62311
62312 2003-05-09  Bruno Haible  <bruno@clisp.org>
62313
62314         * modules/error: Add m4/strerror_r.m4 to file list.
62315
62316 2003-05-03  Bruno Haible  <bruno@clisp.org>
62317
62318         Upgrade to Unicode-4.0.
62319         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62320         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62321         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62322         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62323         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62324         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62325         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62326         Change width of U+E0100..U+E01EF from 1 to 0.
62327
62328 2003-04-25  Jim Meyering  <jim@meyering.net>
62329
62330         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62331         of type size_t, not int.
62332
62333 2003-04-25  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/copy-file.c: Include <stddef.h>, for size_t.
62336
62337 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62338
62339         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62340         code which expansion is under static control.  Patch imported from
62341         Akim Demaille's patch to Bison; see
62342         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62343
62344 2003-04-14  Bruno Haible  <bruno@clisp.org>
62345
62346         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62347
62348 2003-04-11  Jim Meyering  <jim@meyering.net>
62349
62350         Merge changes from Coreutils.
62351
62352         2003-03-22  Jim Meyering  <jim@meyering.net>
62353
62354         * lib/strftime.c (widen): Cast alloca return value to proper type.
62355
62356         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62357
62358         From GNU libc.
62359         * lib/strftime.c (my_strftime): Handle very large width
62360         specifications for numeric values correctly.  Improve checks for
62361         overflow.
62362
62363         2003-01-19  Jim Meyering  <jim@meyering.net>
62364
62365         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62366         definitions.
62367         (nl_get_alt_digit) [! defined my_strftime]: Define.
62368         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62369         _nl_get_alt_digit and _nl_get_walt_digit.
62370
62371         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62372         libc. These changes have no effect outside of _LIBC.
62373
62374 2003-04-10  Bruno Haible  <bruno@clisp.org>
62375
62376         * modules/findprog: New file.
62377         * MODULES.html.sh (func_all_modules): Add it.
62378
62379 2003-04-10  Bruno Haible  <bruno@clisp.org>
62380
62381         * m4/findprog.m4: New file.
62382         * m4/eaccess.m4: New file.
62383
62384 2003-04-10  Bruno Haible  <bruno@clisp.org>
62385
62386         * lib/findprog.h: New file, from GNU gettext.
62387         * lib/findprog.c: New file, from GNU gettext.
62388
62389 2003-04-05  Jim Meyering  <jim@meyering.net>
62390
62391         Merge changes from Coreutils.
62392
62393         * lib/exclude.h (PARAMS): Remove definition and uses.
62394         * lib/exclude.c: Remove uses of `PARAMS'.
62395
62396         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62397         Add test-cases for DOS filenames. Declare program_name.
62398         (main): Set up program_name.  Patch by Rich Dawe.
62399
62400         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62401         error from mntctl.
62402         Use mntctl's return value to drive the entry-processing loop, since
62403         we can't rely on the value of the vmt_length member in the last
62404         entry.  On some systems doing so could result in exhausting
62405         virtual memory.  Based in part on a patch from Mike Jetzer.
62406
62407 2003-04-04  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/linebreak: New file.
62410         * MODULES.html.sh (func_all_modules): Add it.
62411
62412 2003-04-04  Bruno Haible  <bruno@clisp.org>
62413
62414         * m4/linebreak.m4: New file.
62415
62416 2003-04-04  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/linebreak.h: New file, from GNU gettext.
62419         * lib/linebreak.c: New file, from GNU gettext with slight
62420         modifications.
62421         * lib/lbrkprop.h: New file, from GNU gettext.
62422
62423 2003-04-03  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/utf8-ucs4: New file.
62426         * modules/utf16-ucs4: New file.
62427         * modules/ucs4-utf8: New file.
62428         * modules/ucs4-utf16: New file.
62429         * MODULES.html.sh (func_all_modules): Add them.
62430
62431 2003-04-03  Bruno Haible  <bruno@clisp.org>
62432
62433         * m4/utf-ucs4.m4: New file.
62434         * m4/ucs4-utf.m4: New file.
62435
62436 2003-04-03  Bruno Haible  <bruno@clisp.org>
62437
62438         * lib/utf8-ucs4.h: New file, from GNU gettext.
62439         * lib/utf16-ucs4.h: New file, from GNU gettext.
62440         * lib/ucs4-utf8.h: New file, from GNU gettext.
62441         * lib/ucs4-utf16.h: New file, from GNU gettext.
62442
62443 2003-04-02  Bruno Haible  <bruno@clisp.org>
62444
62445         * modules/binary-io: New file.
62446         * MODULES.html.sh (func_all_modules): Add it.
62447
62448 2003-04-02  Bruno Haible  <bruno@clisp.org>
62449
62450         * lib/binary-io.h: New file, from GNU gettext.
62451
62452 2003-04-01  Bruno Haible  <bruno@clisp.org>
62453
62454         * modules/pathname: New file.
62455         * MODULES.html.sh (func_all_modules): Add it.
62456
62457 2003-04-01  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/pathname.h: New file, from GNU gettext.
62460         * lib/concatpath.c: New file, from GNU gettext.
62461
62462 2003-03-30  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62465
62466 2003-03-30  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62469         function chown() doesn't exist.
62470
62471 2003-03-28  Bruno Haible  <bruno@clisp.org>
62472
62473         * modules/copy-file: New file.
62474         * MODULES.html.sh (func_all_modules): Add it.
62475
62476 2003-03-28  Bruno Haible  <bruno@clisp.org>
62477
62478         * m4/copy-file.m4: New file.
62479
62480 2003-03-28  Bruno Haible  <bruno@clisp.org>
62481
62482         * lib/copy-file.h: New file, from GNU gettext.
62483         * lib/copy-file.c: New file, from GNU gettext.
62484
62485 2003-03-18  Jim Meyering  <jim@meyering.net>
62486
62487         * lib/quote.c (quote_n): Fix typo in comment.
62488
62489 2003-03-18  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62492         checking.
62493         * m4/onceonly_2_57.m4: Likewise.
62494
62495 2003-03-17  Bruno Haible  <bruno@clisp.org>
62496
62497         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62498         (m4_quote): Remove macro.
62499         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62500
62501 2003-03-14  Jim Meyering  <jim@meyering.net>
62502
62503         Merge changes from Coreutils.
62504         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62505         to be const, in order to avoid warnings.
62506         (obstack_room): Likewise.
62507         (obstack_empty_p): Likewise.
62508
62509 2003-03-14  Bruno Haible  <bruno@clisp.org>
62510
62511         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62512         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62513
62514 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62515
62516         Merge changes from Bison.
62517         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62518         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62519         when compiling Bison 1.875's `bitset bset = obstack_alloc
62520         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62521         * lib/hash.c: Include <stdbool.h> unconditionally.
62522
62523 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62524
62525         * m4/onceonly.m4 (m4_quote): New macro.
62526         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
62527         Quote AC_FOREACH variable-expansions properly.
62528
62529 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62530
62531         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
62532
62533 2003-03-09  Paul Eggert  <eggert@twinsun.com>
62534
62535         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
62536         Reported by Bruce Becker; see:
62537         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
62538
62539 2003-03-03  Paul Eggert  <eggert@twinsun.com>
62540             Bruno Haible  <bruno@clisp.org>
62541
62542         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
62543         Reported by John Hughes, see
62544         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
62545
62546 2003-02-20  Bruno Haible  <bruno@clisp.org>
62547
62548         * MODULES.html.sh (func_all_modules): Add poll.
62549
62550 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62551
62552         * modules/poll: New file.
62553
62554 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62555
62556         * lib/poll_.h: New file.
62557         * lib/poll.c: New file.
62558
62559 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
62560
62561         * m4/poll.m4: New file.
62562
62563 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62564
62565         * modules/mathl: New file.
62566
62567 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62568
62569         * lib/mathl.h: New file.
62570         * lib/acosl.c: New file.
62571         * lib/asinl.c: New file.
62572         * lib/atanl.c: New file.
62573         * lib/ceill.c: New file.
62574         * lib/cosl.c: New file.
62575         * lib/expl.c: New file.
62576         * lib/floorl.c: New file.
62577         * lib/frexpl.c: New file.
62578         * lib/ldexpl.c: New file.
62579         * lib/logl.c: New file.
62580         * lib/sincosl.c: New file.
62581         * lib/sinl.c: New file.
62582         * lib/sqrtl.c: New file.
62583         * lib/tanl.c: New file.
62584         * lib/trigl.c: New file.
62585         * lib/trigl.h: New file.
62586
62587 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
62588
62589         * m4/mathl.m4: New file.
62590
62591 2003-02-18  Bruno Haible  <bruno@clisp.org>
62592
62593         * MODULES.html.sh (func_all_modules): Add mathl.
62594
62595 2003-02-17  Bruno Haible  <bruno@clisp.org>
62596
62597         * modules/mkdtemp: New module.
62598         * MODULES.html.sh (func_all_modules): Add it.
62599
62600 2003-02-17  Bruno Haible  <bruno@clisp.org>
62601
62602         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
62603
62604 2003-02-17  Bruno Haible  <bruno@clisp.org>
62605
62606         * lib/mkdtemp.h: New file, from GNU gettext.
62607         * lib/mkdtemp.c: New file, from GNU gettext.
62608
62609 2003-02-02  Jim Meyering  <jim@meyering.net>
62610
62611         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
62612         e.g. glibc-2.2.93.
62613
62614 2003-01-31  Bruno Haible  <bruno@clisp.org>
62615
62616         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
62617         'rpl_rename'.
62618         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
62619         'rpl_strnlen'.
62620         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
62621         'rpl_strtod'.
62622         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
62623         'rpl_utime'.
62624
62625 2003-01-31  Bruno Haible  <bruno@clisp.org>
62626
62627         * lib/rename.c: #undef rename before defining rpl_rename.
62628         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
62629
62630 2003-01-30  Bruno Haible  <bruno@clisp.org>
62631
62632         * modules/vasnprintf, modules/vasprintf: New modules.
62633         * MODULES.html.sh (func_all_modules): Add them.
62634
62635 2003-01-30  Bruno Haible  <bruno@clisp.org>
62636
62637         * m4/signed.m4: New file, from GNU gettext.
62638         * m4/longdouble.m4: New file, from GNU gettext.
62639         * m4/wchar_t.m4: New file, from GNU gettext.
62640         * m4/wint_t.m4: New file, from GNU gettext.
62641         * m4/vasnprintf.m4: New file.
62642         * m4/vasprintf.m4: New file.
62643
62644 2003-01-30  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/printf-args.h: New file, from GNU gettext.
62647         * lib/printf-args.c: New file, from GNU gettext.
62648         * lib/printf-parse.h: New file, from GNU gettext.
62649         * lib/printf-parse.c: New file, from GNU gettext.
62650         * lib/vasnprintf.h: New file, from GNU gettext.
62651         * lib/vasnprintf.c: New file, from GNU gettext.
62652         * lib/asnprintf.c: New file, from GNU gettext.
62653         * lib/vasprintf.h: New file, from GNU gettext with modifications.
62654         * lib/vasprintf.c: New file, from GNU gettext.
62655         * lib/asprintf.c: New file, from GNU gettext.
62656
62657 2003-01-29  Bruno Haible  <bruno@clisp.org>
62658
62659         * modules/stpncpy: New module.
62660         * MODULES.html.sh (func_all_modules): Add it.
62661
62662 2003-01-29  Bruno Haible  <bruno@clisp.org>
62663
62664         * m4/stpncpy.m4: New file.
62665
62666 2003-01-29  Bruno Haible  <bruno@clisp.org>
62667
62668         * lib/stpncpy.h: New file, from GNU gettext with modifications.
62669         * lib/stpncpy.c: New file, from GNU gettext with modifications.
62670
62671 2003-01-28  Bruno Haible  <bruno@clisp.org>
62672
62673         * modules/c-ctype: New module.
62674         * MODULES.html.sh (func_all_modules): Add it.
62675
62676 2003-01-28  Bruno Haible  <bruno@clisp.org>
62677
62678         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
62679         Paul Eggert.
62680         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
62681         Paul Eggert.
62682
62683 2003-01-27  Bruno Haible  <bruno@clisp.org>
62684
62685         * modules/xsetenv: New module.
62686         * MODULES.html.sh (func_all_modules): Add it.
62687
62688 2003-01-27  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/xsetenv.h: New file, from GNU gettext.
62691         * lib/xsetenv.c: New file, from GNU gettext.
62692
62693 2003-01-23  Jim Meyering  <jim@meyering.net>
62694
62695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
62696         from working on systems without dirfd (at least Irix and OSF1/Tru64).
62697
62698 2003-01-23  Bruno Haible  <bruno@clisp.org>
62699
62700         * modules/minmax: New module.
62701         * MODULES.html.sh (func_all_modules): Add it.
62702
62703 2003-01-23  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
62706         Eggert.
62707
62708 2003-01-22  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/exit: New module.
62711         * MODULES.html.sh (func_all_modules): Add it.
62712
62713 2003-01-22  Bruno Haible  <bruno@clisp.org>
62714
62715         * lib/exit.h: New file, from GNU gettext.
62716
62717 2003-01-19  Bruno Haible  <bruno@clisp.org>
62718
62719         * gnulib-tool: Recognize option --extract-maintainer.
62720         (func_get_maintainer): New function.
62721         * modules/*: Add Maintainer entry.
62722
62723 2003-01-16  Jim Meyering  <jim@meyering.net>
62724
62725         * m4/regex.m4: The `regex' struct is both input and output.
62726         Initialize it before each use.  Patch by Tim Waugh.
62727
62728 2003-01-16  Bruno Haible  <bruno@clisp.org>
62729
62730         * MODULES.html.sh: Add a table of contents. Add the module name as
62731         leftmost column. Add hyperlinks.
62732
62733 2003-01-15  Bruno Haible  <bruno@clisp.org>
62734
62735         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
62736
62737 2003-01-15  Bruno Haible  <bruno@clisp.org>
62738
62739         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
62740         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
62741         suffix.
62742
62743 2003-01-15  Bruno Haible  <bruno@clisp.org>
62744
62745         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
62746
62747 2003-01-15  Bruno Haible  <bruno@clisp.org>
62748
62749         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
62750         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
62751
62752 2003-01-14  Jim Meyering  <jim@meyering.net>
62753
62754         * lib/same.c (same_name): Tweak a comment.
62755
62756 2003-01-14  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
62759         when a string comparison is sufficient.
62760
62761 2003-01-14  Bruno Haible  <bruno@clisp.org>
62762
62763         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
62764         'unsigned int'.
62765
62766 2003-01-14  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/hash-pjw.c: Add comment about low quality of this function.
62769
62770 2003-01-13  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/stpcpy: Distribute lib/stpcpy.h.
62773         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
62774
62775 2003-01-13  Bruno Haible  <bruno@clisp.org>
62776
62777         * modules/*: Add a description.
62778         * modules/strpbrk: Fix Makefile.am snippet.
62779         * modules/strtoimax: Fix dependencies.
62780         * modules/strtoumax: Likewise.
62781
62782 2003-01-13  Bruno Haible  <bruno@clisp.org>
62783
62784         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
62785         * modules/alloca (Makefile.am): All object files depend on alloca.h.
62786         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
62787
62788 2003-01-13  Bruno Haible  <bruno@clisp.org>
62789
62790         * gnulib-tool (func_create_testdir): Store config/* files in the main
62791         directory.
62792         * config.rpath: Move to ...
62793         * config/config.rpath: ... here.
62794         * modules/gettext: Contains config/config.rpath, not config.rpath.
62795         * modules/iconv: Likewise.
62796
62797 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62798
62799         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62800         to avoid collisions with libcurses and libreadline.
62801
62802         * m4/getstr.m4: Remove.
62803         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
62804
62805 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62806
62807         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62808         to avoid collisions with libcurses and libreadline.
62809
62810         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
62811         * lib/getstr.h, getstr.c: Remove.
62812         * lib/getline.c: Include "getline.h", to check interface.
62813         Move body of old getstr.c here: this defines MIN_CHUNK and
62814         declares getdelim2, which is renamed from getstr.
62815         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
62816
62817         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
62818         All uses changed.
62819         * lib/linebuffer.h: Likewise.
62820         (readline): Remove backward-compatibility macro.
62821
62822 2003-01-12  Paul Eggert  <eggert@twinsun.com>
62823
62824         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
62825         to avoid collisions with libcurses and libreadline.
62826         * getstr: Remove.
62827         * MODULES.html.sh: Remove getstr.
62828         * modules/getline: Depend on unlocked-io, not getstr.
62829
62830 2003-01-12  Jim Meyering  <jim@meyering.net>
62831
62832         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
62833
62834 2003-01-10  Bruno Haible  <bruno@clisp.org>
62835
62836         * modules/alloca: Change Makefile.am requirements. Simplify Include
62837         requirements. Add lib/alloca_.h to file list.
62838
62839 2003-01-10  Bruno Haible  <bruno@clisp.org>
62840
62841         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
62842
62843 2003-01-10  Bruno Haible  <bruno@clisp.org>
62844
62845         * lib/alloca_.h: New file.
62846         * lib/getdate.y: Unconditionally include alloca.h.
62847         * lib/makepath.c: Likewise.
62848         * lib/setenv.c: Likewise.
62849         * lib/userspec.c: Likewise.
62850
62851 2003-01-09  Karl Berry  <karl@gnu.org>
62852
62853         * MODULES.html.sh: include `dirname $0` in PATH, to find
62854         gnulib-tool.
62855
62856 2003-01-09  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/stdbool: Change configure.ac, Makefile.am requirements.
62859         Simplify Include requirements. Add lib/stdbool.h.in to file list.
62860
62861 2003-01-09  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
62864
62865 2003-01-09  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/stdbool.h.in: New file.
62868
62869 2003-01-09  Bruno Haible  <bruno@clisp.org>
62870
62871         * gnulib-tool (func_all_modules): Ignore files ending in ~.
62872         * MODULES.html.sh: Likewise.
62873
62874 2003-01-08  Jim Meyering  <jim@meyering.net>
62875
62876         * lib/full-write.c: Undefine and define-away `const' after inclusion
62877         of errno.h, not before.  Suggestion from Bruno Haible.
62878
62879 2003-01-08  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/full-read: Depend on full-write.
62882
62883 2003-01-08  Bruno Haible  <bruno@clisp.org>
62884
62885         * lib/safe-read.c: Include specification header first, to ensure its
62886         selfcontainedness.
62887         * lib/full-write.c: Likewise.
62888
62889 2003-01-07  Jim Meyering  <jim@meyering.net>
62890
62891         * lib/full-write.c: Rework so that it may serve to define full_read,
62892         too.
62893         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
62894
62895 2003-01-07  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/strtoimax.c: Include <stdint.h> as an alternative to
62898         <inttypes.h>.
62899         * lib/xstrtol.h: Likewise.
62900         * lib/xstrtoimax.c: Likewise.
62901         * lib/xstrtoumax.c: Likewise.
62902         * lib/human.h: Likewise.
62903
62904         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
62905         on systems that have <inttypes.h> but not <stdint.h>.
62906
62907 2003-01-07  Bruno Haible  <bruno@clisp.org>
62908
62909         * MODULES.html.sh: Add copyright notice.
62910         (missed_files): Omit CVS directory entries.
62911         (func_module): Make it work with sed-3.02.
62912         * MODULES.txt: Remove file.
62913
62914 2003-01-06  Jim Meyering  <jim@meyering.net>
62915
62916         * lib/version-etc.c: Update year in translatable copyright string.
62917
62918 2003-01-03  Karl Berry  <karl@gnu.org>
62919
62920         * config/config.{guess,sub}: update from prep.
62921
62922 2003-01-02  Karl Berry  <karl@gnu.org>
62923
62924         * doc/COPYING.DOC: belatedly updated to 1.2.
62925
62926 2003-01-01  Karl Berry  <karl@gnu.org>
62927
62928         * gnulib-tool (func_verify_module): report module name $module in
62929         error message, not $1.
62930         * gnulib-tool (create-testdir): don't complain if destdir couldn't
62931         be created, only if it doesn't exist.
62932         * gnulib-tool (last_checkin_date): don't expand the $Date here.
62933
62934 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62935
62936         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
62937
62938 2002-12-31  Paul Eggert  <eggert@twinsun.com>
62939
62940         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
62941         memcmp if strcoll doesn't work.
62942
62943 2002-12-31  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/utime.c (utime_null): No need to call ftruncate if the file was
62946         nonempty.
62947
62948 2002-12-31  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/memcoll.c (STRCOLL): New macro.
62951         (memcoll): Use it.
62952
62953 2002-12-31  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/localcharset.h: New file.
62956         * lib/localcharset.c: Include it.
62957         * lib/unicodeio.c: Likewise.
62958
62959 2002-12-31  Bruno Haible  <bruno@clisp.org>
62960
62961         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
62962         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
62963
62964 2002-12-31  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/getline.h: Include <stddef.h>, for size_t.
62967
62968         * lib/unicodeio.h: Include <stddef.h>, for size_t.
62969         * lib/unicodeio.c: Don't include <stddef.h>.
62970
62971 2002-12-31  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
62974         HAVE_TM_ZONE.
62975
62976 2002-12-24  Karl Berry  <karl@gnu.org>
62977
62978         * config/config.guess: update from prep.
62979
62980 2002-12-24  Bruno Haible  <bruno@clisp.org>
62981
62982         General infrasructure.
62983         * m4/README: Rewritten.
62984         * m4/onceonly.m4: New file.
62985         * m4/onceonly_2_57.m4: New file.
62986
62987         Module atexit.
62988         * m4/atexit.m4: New file.
62989
62990         Module strtod.
62991         * m4/strtod.m4: New file.
62992
62993         Module strtol.
62994         * m4/strtol.m4: New file.
62995
62996         Module strtoul.
62997         * m4/strtoul.m4: New file.
62998
62999         Module memchr.
63000         * m4/memchr.m4: New file.
63001
63002         Module memcmp.
63003         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63004         (jm_FUNC_MEMCMP): Invoke it.
63005
63006         Module memcpy.
63007         * m4/memcpy.m4: New file.
63008
63009         Module memmove.
63010         * m4/memmove.m4: New file.
63011
63012         Module memset.
63013         * m4/memset.m4: New file.
63014
63015         Module strcspn.
63016         * m4/strcspn.m4: New file.
63017
63018         Module strpbrk.
63019         * m4/strpbrk.m4: New file.
63020
63021         Module strstr.
63022         * m4/strstr.m4: New file.
63023
63024         Module strerror.
63025         * m4/strerror.m4: New file.
63026
63027         Module mktime.
63028         * m4/mktime.m4: Renamed from jm-mktime.m4.
63029         (gl_PREREQ_MKTIME): New macro.
63030         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63031
63032         Module malloc.
63033         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63034         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63035         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63036
63037         Module realloc.
63038         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63039         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63040         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63041
63042         Module strftime.
63043         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63044         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63045         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63046         gl_TM_GMTOFF.
63047         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63048
63049         Module xalloc.
63050         * m4/xalloc.m4: New file.
63051
63052         Module alloca.
63053         * m4/alloca.m4: New file.
63054
63055         Module putenv.
63056         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63057         (jm_FUNC_PUTENV): Invoke it.
63058
63059         Module setenv.
63060         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63061         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63062         when invoked twice.
63063         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63064         gt_FUNC_SETENV.
63065
63066         Module memrchr.
63067         * m4/memrchr.m4: New file.
63068
63069         Module stpcpy.
63070         * m4/stpcpy.m4: New file.
63071
63072         Module strcase.
63073         * m4/strcase.m4: New file.
63074
63075         Module strdup.
63076         * m4/strdup.m4: New file.
63077
63078         Module strnlen.
63079         * m4/strnlen.m4: New file.
63080
63081         Module strndup.
63082         * m4/strndup.m4: New file.
63083
63084         Module xstrtod.
63085         * m4/xstrtod.m4: New file.
63086
63087         Module xstrtol.
63088         * m4/xstrtol.m4: New file.
63089
63090         Module getdate.
63091         * m4/getdate.m4: New file.
63092
63093         Module unlocked-io.
63094         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63095         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63096         * m4/jm-glibc-io.m4n: Remove file.
63097
63098         Module long-options.
63099         * m4/long-options.m4: New file.
63100
63101         Module md5.
63102         * m4/md5.m4: New file.
63103
63104         Module sha.
63105         * m4/sha.m4: New file.
63106
63107         Module getstr.
63108         * m4/getstr.m4: New file.
63109
63110         Module getline.
63111         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63112         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63113         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63114         simply getline. Infoke gl_PREREQ_GETLINE.
63115
63116         Module obstack.
63117         * m4/obstack.m4: New file.
63118
63119         Module hash.
63120         * m4/hash.m4: New file.
63121
63122         Module readtokens.
63123         * m4/readtokens.m4: New file.
63124
63125         Module strverscmp.
63126         * m4/strverscmp.m4: New file.
63127
63128         Module stdbool.
63129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63130         OSF/1.
63131
63132         Module strtoll.
63133         * m4/strtoll.m4: New file.
63134
63135         Module strtoull.
63136         * m4/strtoull.m4: New file.
63137
63138         Module strtoimax.
63139         * m4/strtoimax.m4: New file.
63140
63141         Module strtoumax.
63142         * m4/strtoumax.m4: New file.
63143
63144         Module xstrtoimax.
63145         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63146         jm_AC_PREREQ_XSTRTOIMAX.
63147         Moved the strtol prerequisites to strtol.m4.
63148         Moved the strtoll prerequisites to strtoll.m4.
63149         Moved the strtoimax prerequisites to strtoimax.m4.
63150
63151         Module xstrtoumax.
63152         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63153         jm_AC_PREREQ_XSTRTOUMAX.
63154         Moved the strtoul prerequisites to strtoul.m4.
63155         Moved the strtoull prerequisites to strtoull.m4.
63156         Moved the strtoumax prerequisites to strtoumax.m4.
63157
63158         Module chown.
63159         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63160         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63161
63162         Module dup2.
63163         * m4/dup2.m4: New file.
63164
63165         Module ftruncate.
63166         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63167         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63168
63169         Module getgroups.
63170         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63171         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63172
63173         Module gettimeofday.
63174         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63175         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63176         gl_PREREQ_GETTIMEOFDAY.
63177
63178         Module mkdir.
63179         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63180         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63181
63182         Module mkstemp.
63183         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63184         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63185         jm_AC_TYPE_UINTMAX_T.
63186         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63187
63188         Module stat.
63189         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63190         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63191
63192         Module lstat.
63193         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63194         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63195
63196         Module timespec.
63197         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63198         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63199         * m4/st_mtim.m4: Indentation.
63200
63201         Module nanosleep.
63202         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63203         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63204         gl_PREREQ_NANOSLEEP.
63205
63206         Module regex.
63207         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63208         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63209         (gl_REGEX): New macro.
63210
63211         Module rename.
63212         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63213         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63214
63215         Module rmdir.
63216         * m4/rmdir.m4: New file.
63217
63218         Module utime.
63219         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63220         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63221         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63222
63223         Module dirname.
63224         * m4/dirname.m4: New file.
63225
63226         Module getopt.
63227         * m4/getopt.m4: New file.
63228
63229         Module unistd-safer.
63230         * m4/unistd-safer.m4: New file.
63231
63232         Module fnmatch.
63233         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63234         declaration.
63235         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63236         (gl_FUNC_FNMATCH_POSIX): New macro.
63237         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63238         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63239         simply fnmatch.
63240
63241         Module exclude.
63242         * m4/exclude.m4: New file.
63243
63244         Module human.
63245         * m4/human.m4: New file.
63246
63247         Module acl.
63248         * m4/acl.m4: Nop.
63249
63250         Module backupfile.
63251         * m4/backupfile.m4: New file.
63252         * m4/d-ino.m4: Indentation.
63253
63254         Module fsusage.
63255         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63256         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63257         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63258
63259         Module dirfd.
63260         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63261         requirements.
63262
63263         Module euidaccess.
63264         * m4/euidaccess.m4: New file.
63265
63266         Module file-type.
63267         * m4/file-type.m4: New file.
63268
63269         Module fileblocks.
63270         * m4/fileblocks.m4: New file.
63271
63272         Module filemode.
63273         * m4/filemode.m4: New file.
63274
63275         Module isdir.
63276         * m4/isdir.m4: New file.
63277
63278         Module lchown.
63279         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63280         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63281
63282         Module makepath.
63283         * m4/makepath.m4: New file.
63284
63285         Module modechange.
63286         * m4/modechange.m4: New file.
63287
63288         Module mountlist.
63289         * m4/mountlist.m4: New file.
63290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63291         Indentation.
63292
63293         Module path-concat.
63294         * m4/path-concat.m4: New file.
63295
63296         Module pathmax.
63297         * m4/pathmax.m4: New file.
63298
63299         Module same.
63300         * m4/same.m4: New file.
63301
63302         Module save-cwd.
63303         * m4/save-cwd.m4: New file.
63304
63305         Module savedir.
63306         * m4/savedir.m4: New file.
63307
63308         Module xgetcwd.
63309         * m4/xgetcwd.m4: New file.
63310         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63311
63312         Module xreadlink.
63313         * m4/xreadlink.m4: New file.
63314
63315         Module safe-read.
63316         * m4/safe-read.m4: New file.
63317
63318         Module safe-write.
63319         * m4/safe-write.m4: New file.
63320
63321         Module closeout.
63322         * m4/closeout.m4: New file.
63323
63324         Module stdio-safer.
63325         * m4/stdio-safer.m4: New file.
63326
63327         Module getpass.
63328         * m4/getpass.m4: New file.
63329
63330         Module getugroups.
63331         * m4/getugroups.m4: New file.
63332
63333         Module group-member.
63334         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63335         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63336
63337         Module idcache.
63338         * m4/idcache.m4: New file.
63339
63340         Module userspec.
63341         * m4/userspec.m4: New file.
63342
63343         Module gettime.
63344         * m4/clock_time.m4: New file.
63345         * m4/gettime.m4: New file.
63346
63347         Module settime.
63348         * m4/settime.m4: New file.
63349
63350         Module posixtm.
63351         * m4/posixtm.m4: New file.
63352
63353         Module gethostname.
63354         * m4/gethostname.m4: New file.
63355
63356         Module canon-host.
63357         * m4/canon-host.m4: New file.
63358
63359         Module gettext.
63360         * m4/codeset.m4: New file, from gettext-0.11.5.
63361         * m4/gettext.m4: New file, from gettext-0.11.5.
63362         * m4/glibc21.m4: New file, from gettext-0.11.5.
63363         * m4/iconv.m4: New file, from gettext-0.11.5.
63364         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63365         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63366         * m4/inttypes.m4: New file, from gettext-0.11.5.
63367         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63368         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63369         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63370         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63371         * m4/lib-link.m4: New file, from gettext-0.11.5.
63372         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63373         * m4/progtest.m4: New file, from gettext-0.11.5.
63374         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63375         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63376         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63377
63378         Module localcharset.
63379         * m4/localcharset.m4: New file.
63380
63381         Module hard-locale.
63382         * m4/hard-locale.m4: New file.
63383
63384         Module mbswidth.
63385         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63386         onceonly macros.
63387         * m4/mbrtowc.m4: Add comment.
63388
63389         Module memcasecmp.
63390         * m4/memcasecmp.m4: New file.
63391
63392         Module memcoll.
63393         * m4/memcoll.m4: New file.
63394
63395         Module unicodeio.
63396         * m4/unicodeio.m4: New file.
63397
63398         Module rpmatch.
63399         * m4/rpmatch.m4: New file.
63400
63401         Module yesno.
63402         * m4/yesno.m4: New file.
63403
63404         Module exitfail.
63405         * m4/exitfail.m4: New file.
63406
63407         Module c-stack.
63408         * m4/c-stack.m4 (gl_C_STACK): New macro.
63409         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63410
63411         Module error.
63412         * m4/error.m4 (gl_ERROR): New macro.
63413         (jm_PREREQ_ERROR): Use onceonly macros.
63414
63415         Module fatal.
63416         * m4/fatal.m4: New file.
63417
63418         Module getloadavg.
63419         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63420         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63421
63422         Module getpagesize.
63423         * m4/getpagesize.m4: New file.
63424
63425         Module getusershell.
63426         * m4/getusershell.m4: New file.
63427
63428         Module physmem.
63429         * m4/physmem.m4: New file.
63430
63431         Module posixver.
63432         * m4/posixver.m4: New file.
63433
63434         Module quotearg.
63435         * m4/quotearg.m4: New file.
63436
63437         Module quote.
63438         * m4/quote.m4: New file.
63439
63440         Module readutmp.
63441         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63442
63443         Module sig2str.
63444         * m4/sig2str.m4: New file.
63445
63446         Other.
63447         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63448         ulonglong.m4.
63449         * m4/intmax_t.m4: New file.
63450         * m4/d-type.m4: Indentation.
63451         * m4/jm-macros.m4: Update.
63452         * m4/prereq.m4 (jm_PREREQ): Update.
63453         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63454         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63455         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63456         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63457         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63458         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63459         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63460         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63461         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63462         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63463         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63464         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63465         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63466         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63467         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63468         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63469         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63470         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63471         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63472
63473 2002-12-24  Bruno Haible  <bruno@clisp.org>
63474
63475         * MODULES.txt: Update according to m4/ changes.
63476
63477         Module gettext.
63478         * config.rpath: New file, from gettext-0.11.5.
63479
63480         * modules/*: New module descriptions.
63481         * gnulib-tool: New file.
63482         * MODULES.html.sh: New file.
63483
63484 2002-12-21  Karl Berry  <karl@gnu.org>
63485
63486         * doc/fdl.texi: update to version 1.2.
63487
63488 2002-12-19  Karl Berry  <karl@gnu.org>
63489
63490         * config/config.guess: update from prep.
63491
63492 2002-12-18  Bruno Haible  <bruno@clisp.org>
63493
63494         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63495         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63496
63497 2002-12-17  Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63500         stdlib.h, string.h.
63501
63502 2002-12-17  Bruno Haible  <bruno@clisp.org>
63503
63504         * lib/canon-host.c (strdup): Remove unused declaration.
63505
63506         * lib/fsusage.c: Include full_read.h.
63507         (get_fs_usage): Use full_read instead of safe_read.
63508
63509         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63510
63511 2002-12-12  Karl Berry  <karl@gnu.org>
63512
63513         * config/config.guess: update from prep.
63514
63515 2002-12-11  Bruno Haible  <bruno@clisp.org>
63516
63517         * m4/setenv.m4: New file, from gettext-0.11.5.
63518
63519 2002-12-11  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63522         not unsetenv().
63523         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63524         modifications:
63525
63526         2002-12-11  Bruno Haible  <bruno@clisp.org>
63527
63528                 * setenv.c (alloca): Fall back to malloc.
63529                 (freea): New macro.
63530                 (setenv): Use freea() to free memory allocated with alloca().
63531
63532         2002-11-13  Bruno Haible  <bruno@clisp.org>
63533
63534                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
63535                 function declarations.
63536                 * unsetenv.c (unsetenv): Likewise.
63537
63538         2002-03-04  Bruno Haible  <bruno@clisp.org>
63539
63540                 Portability to AIX 4.3.3.
63541                 * unsetenv.c: New file, extracted from setenv.c.
63542                 * setenv.c: Move the unsetenv() function to unsetenv.c.
63543
63544         2001-12-20  Bruno Haible  <bruno@clisp.org>
63545
63546                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
63547                 use malloc instead. For SunOS 4.
63548
63549         2001-12-11  Bruno Haible  <bruno@clisp.org>
63550
63551                 * setenv.c: Declare alloca.
63552                 (compar_fn_t): New typedef.
63553                 (KNOWN_VALUE, STORE_VALUE): Use it.
63554
63555         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
63556         setenv.h.
63557
63558 2002-12-10  Paul Eggert  <eggert@twinsun.com>
63559
63560         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
63561         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
63562         Choose values that are less likely to collide with system fnmatch
63563         options.
63564         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
63565         defined (e.g., a pure POSIX system).
63566         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
63567         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
63568
63569 2002-12-06  Paul Eggert  <eggert@twinsun.com>
63570
63571         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
63572         a pain in practice to deal with generated m4 files.  This change
63573         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
63574
63575         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
63576         and jm-glibc-io.m4, as they are no longer a special case.
63577         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
63578         kludge and the auto-generation stuff.  Check only whether the
63579         functions are declared, not whether they exist, since older hosts
63580         that don't declare the functions can't use the optimization anyway.
63581
63582 2002-12-06  Jim Meyering  <jim@meyering.net>
63583
63584         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
63585
63586         Merge in changes from libc's misc/error.c, in preparation
63587         for the merge of gnulib's changes back into libc.
63588
63589         * lib/error.c (_): Define only if not already defined.
63590         Move definition to follow all #include directives.
63591         Include unlocked-io.h only if !_LIBC.
63592         [_LIBC]: Include <libio/libioP.h>.
63593         [USE_IN_LIBIO]: Include <libio/iolibio.h>
63594         (fflush): Tweak definition to use INTUSE.
63595         (putc): Define.
63596
63597 2002-12-05  Paul Eggert  <eggert@twinsun.com>
63598
63599         * lib/alloca.c [defined emacs]: Include "lisp.h".
63600         (xalloc_die) [defined emacs]: New macro.
63601         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
63602         [! defined emacs]: Include <xalloc.h>.
63603         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
63604         (pointer): Typedef to POINTER_TYPE *.
63605         (malloc): Remove decl; we now always use xmalloc.
63606         (alloca): Use old-style definition, since Emacs needs this.
63607         Check for arithmetic overflow when computing combined size.
63608
63609 2002-12-04  Paul Eggert  <eggert@twinsun.com>
63610
63611         Do not generate unlocked-io.h automatically, since it's easier to
63612         maintain it by hand.
63613
63614         * lib/unlocked-io.h: New file, from GNU diffutils,
63615         but with proper copyright notice and attribution.
63616         * lib/gen-uio: Remove.
63617         * lib/Makefile.am: Add copyright notice.
63618         (libfetish_a_SOURCES): Add unlocked-io.h.
63619         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
63620         (DISTCLEANFILES, io_functions): Remove macros.
63621         (EXTRA_DIST): Remove gen_uio.
63622         (unlocked-io.h): Remove rule.
63623
63624 2002-12-04  Jim Meyering  <jim@meyering.net>
63625
63626         Reflect the fact that stat.c and lstat.c are no longer generated.
63627         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
63628         (DISTCLEANFILES): Likewise.
63629         (EXTRA_DIST): Likewise.
63630         (all_local): Don't depend on stat.c or lstat.c.
63631         (stat.c, lstat.c): Remove rules.
63632         (EXTRA_DIST): Remove xstat.in.
63633
63634         * lib/xstat.in: Remove file.  Contents moved into stat.c.
63635         * lib/stat.c: New file.  Contents mostly from xstat.in.
63636         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
63637         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
63638
63639         * lib/safe-read.c: Rework so that it may serve to define safe_write,
63640         too.
63641         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
63642
63643 2002-12-03  Jim Meyering  <jim@meyering.net>
63644
63645         * lib/safe-read.c, safe-write.c: Change variable names and comments,
63646         but not semantics, to minimize the differences between these two files.
63647         (safe_read): Change comment to mention SAFE_READ_ERROR.
63648
63649         * lib/safe-read.c (IS_EINTR): Define.
63650         (safe_read): Use IS_EINTR in place of in-function cpp directives.
63651
63652 2002-12-02  Jim Meyering  <jim@meyering.net>
63653
63654         * lib/safe-read.c (EINTR): Define.
63655         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63656         (INT_MAX): Provide fallback.
63657         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
63658
63659         * lib/safe-read.h (SAFE_READ_ERROR): Define.
63660
63661 2002-12-02  Bruno Haible  <bruno@clisp.org>
63662
63663         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
63664         Define, taken from safe-read.c.
63665         (INT_MAX): Provide fallback.
63666         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
63667         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
63668
63669         * lib/safe-read.c (EINTR): Remove definition.
63670         (safe_read): Don't use EINTR if it is absent.
63671
63672 2002-12-01  Jim Meyering  <jim@meyering.net>
63673
63674         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
63675         zero.
63676         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
63677
63678 2002-11-27  Paul Eggert  <eggert@twinsun.com>
63679
63680         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
63681         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
63682         with `if (! (value < limit)) abort ();', for readability.
63683
63684 2002-11-26  Karl Berry  <karl@gnu.org>
63685
63686         * lib/strdup.c: copy from libc again, with jim's ok.
63687         * lib/.cppi-disable: re-add strdup.c
63688
63689 2002-11-25  Karl Berry  <karl@gnu.org>
63690
63691         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
63692         instead of "strtol.c".
63693
63694 2002-11-25  Karl Berry  <karl@gnu.org>
63695
63696         * config/install-sh: update from automake for variable quoting, $0 in
63697         error msgs, etc.
63698
63699         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
63700         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
63701         entry.
63702
63703 2002-11-25  Jim Meyering  <jim@meyering.net>
63704
63705         * lib/mktime.c: Sync from libc, now that it has the latest fix.
63706
63707 2002-11-24  Karl Berry  <karl@gnu.org>
63708
63709         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
63710         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
63711
63712 2002-11-24  Jim Meyering  <jim@meyering.net>
63713
63714         Update from coreutils:
63715
63716         * lib/mktime.c: Merge in changes from libc.
63717
63718         Avoid a link-time failure on some Linux systems.
63719         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
63720         (otherwise).
63721         (__mon_yday): Declare with the STATIC attribute.
63722         (__mktime_internal): Likewise.
63723         Based on a report from Greg Schafer.
63724
63725 2002-11-23  Jim Meyering  <jim@meyering.net>
63726
63727         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
63728         Use `unsigned', not `int', as type of index.
63729
63730         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
63731
63732         * lib/fsusage.c: Remove unneeded parentheses around operands of
63733         `defined'.
63734
63735 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63736
63737         * lib/quotearg.h: Allow multiple inclusion by surrounding with
63738         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
63739         so that we can be included first.
63740         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
63741         * lib/quotearg.c: Include quotearg.h immediately after config.h.
63742         No need to include stddef.h or sys/types.h any more.
63743         Surround local include files with "", not "<>".
63744         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
63745         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
63746         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
63747         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
63748         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
63749         (ISPRINT): Remove; no longer needed now that we assume C89.
63750
63751         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
63752         Preserve errno.
63753
63754         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
63755         quotearg_char): Use SIZE_MAX rather than
63756         (size_t) -1 when we are talking about "infinity".
63757
63758         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
63759
63760 2002-11-22  Paul Eggert  <eggert@twinsun.com>
63761
63762         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
63763         hint that one should use `if (! x) abort ();' rather than `assert
63764         (x);', and anyway it's one less thing to worry about configuring.
63765         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
63766         hash_rehash, hash_insert): Use abort rather than assert.
63767
63768 2002-11-22  Bruno Haible  <bruno@clisp.org>
63769
63770         * lib/safe-read.h: Assume C89. Add comments.
63771         (safe_read): Change return type to size_t.
63772         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
63773         byte counts > SSIZE_MAX correctly.
63774         * lib/safe-write.h: New file.
63775         * lib/safe-write.c: New file.
63776         * lib/full-read.h: New file.
63777         * lib/full-read.c: New file.
63778         * lib/full-write.h: Assume C89. Add comments.
63779         * lib/full-write.c: Include safe-write.h.
63780         (full_write): Rewritten to use safe_write.
63781         Suggested by Jim Meyering and Paul Eggert.
63782
63783 2002-11-21  Jim Meyering  <jim@meyering.net>
63784
63785         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
63786
63787         Merge in changes from the coreutils.
63788
63789         2002-09-25  Paul Eggert  <eggert@twinsun.com>
63790         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
63791         <stdint.h>.
63792         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
63793         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
63794         int.  Work more efficiently if X is the same width as uintmax_t.
63795         Do not compare X to -1, to avoid bogus compiler warning.
63796         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
63797         Don't assume that f_frsize and f_bsize are the same type.
63798
63799         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
63800         warning on FreeBSD.
63801
63802         * lib/makepath.c (make_path): Restore umask *before* creating the final
63803         component.
63804         (make_path): Minor reformatting.
63805
63806         * lib/xmalloc.c: Adjust to work with new autoconf macros,
63807         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
63808         HAVE_MALLOC/HAVE_REALLOC.
63809
63810         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
63811         dummy ones.  At least on GNU/Linux systems, `auto' means something
63812         else.
63813         From Michael Stone.
63814
63815 2002-11-21  Bruno Haible  <bruno@clisp.org>
63816
63817         Remove case insensitive option matching.
63818         * lib/argmatch.h (argcasematch): Remove declaration.
63819         (ARGCASEMATCH): Remove macro.
63820         (__xargmatch_internal): Remove case_sensitive argument.
63821         (XARGMATCH): Update.
63822         (XARGCASEMATCH): Remove macro.
63823         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
63824         case_sensitive argument.
63825         (argcasematch): Remove function.
63826         (__xargmatch_internal): Remove case_sensitive argument.
63827         (main): Use XARGMATCH instead of XARGCASEMATCH.
63828
63829         * lib/xmalloc.c: Change compile-time error message. Add comment about
63830         required autoconf version.
63831
63832 2002-11-20  Paul Eggert  <eggert@twinsun.com>
63833
63834         Merge argmatch cleanups from Bison.  Assume C89.
63835
63836         * lib/argmatch.c: Include config.h here, not in argmatch.h.
63837         Include stdlib.h, for EXIT_FAILURE.
63838         Always include <string.h>, since we assume C89.
63839         (EXIT_FAILURE): Remove pre-C89 bug workaround.
63840         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
63841         Include <stddef.h> instead, since it's all we need for size_t.
63842         (PARAMS): Remove.  All uses removed.
63843         (ARRAY_CARDINALITY): Do not bother to #undef.
63844         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
63845         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63846         Remove unnecessary parentheses.
63847         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
63848         Insert necessary parentheses.
63849         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
63850         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
63851
63852 2002-11-19  Bruno Haible  <bruno@clisp.org>
63853
63854         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
63855         * lib/mbswidth.h: Include <stddef.h>, for size_t.
63856
63857         * lib/mbswidth.h (PARAMS): Remove macro.
63858         (mbswidth, mbsnwidth): Use ANSI C function declarations.
63859         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
63860
63861         * lib/gcd.h (PARAMS): Remove macro.
63862         (gcd): Use ANSI C function declarations.
63863         * lib/gcd.c (gcd): Likewise.
63864
63865 2002-11-15  Bruno Haible  <bruno@clisp.org>
63866
63867         * lib/strcspn.c: Include <stddef.h>.
63868         (strcspn): Use ANSI C function declaration. Change return type to
63869         size_t. Use NULL.
63870         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
63871         (strpbrk): Use NULL.
63872         * lib/strpbrk.h (PARAMS): Remove macro.
63873         (strpbrk): Use ANSI C function declaration.
63874         * lib/strstr.c: Don't include <sys/types.h>.
63875         * lib/strstr.h (PARAMS): Remove macro.
63876         (strstr): Use ANSI C function declarations.
63877
63878 2002-11-14  Karl Berry  <karl@gnu.org>
63879
63880         * config/mkinstalldirs: `do' on separate line, instead of
63881         `for var; do'.
63882
63883 2002-11-06  Bruno Haible  <bruno@clisp.org>
63884
63885         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
63886         * lib/gcd.c (gcd): Likewise.
63887
63888 2002-11-05  Bruno Haible  <bruno@clisp.org>
63889
63890         * lib/gcd.h: New file, from gettext-0.11.5.
63891         * lib/gcd.c: New file, from gettext-0.11.5.
63892
63893 2002-11-05  Bruno Haible  <bruno@clisp.org>
63894
63895         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63896         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63897         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63898         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
63899
63900         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
63901         <libintl.h>.
63902         * lib/makepath.c: Include gettext.h instead of <locale.h> and
63903         <libintl.h>.
63904
63905         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
63906         * lib/human.c: Include gettext.h instead of <libintl.h>.
63907         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
63908         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
63909         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
63910         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
63911         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
63912         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
63913         (textdomain): Remove definition.
63914         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
63915
63916         * lib/long-options.c: Remove include of <libintl.h> and definition of
63917         _.
63918         * lib/same.c: Remove include of <libintl.h> and definition of _.
63919
63920 2002-11-04  Owen Taylor  <otaylor@redhat.com>
63921
63922         * lib/config.charset: A few additions for Solaris.
63923
63924 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63925
63926         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
63927         * lib/localcharset.c (locale_charset): Declare as extern "C".
63928
63929 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
63930
63931         * lib/config.charset: msdos in uk_UA uses CP1125.
63932
63933 2002-11-04  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
63936         * lib/strcase.h: New file, from GNU gettext-0.11.5.
63937         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
63938         * lib/strstr.h: New file, from GNU gettext-0.11.5.
63939         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
63940
63941 2002-11-04  Bruno Haible  <bruno@clisp.org>
63942
63943         * lib/localcharset.c (locale_charset): Don't return an empty string.
63944
63945 2002-11-04  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
63948         aliases.
63949
63950 2002-11-04  Bruno Haible  <bruno@clisp.org>
63951
63952         * lib/config.charset: Update for newest glibc. Add canonical names
63953         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
63954
63955 2002-11-04  Bruno Haible  <bruno@clisp.org>
63956
63957         * lib/config.charset: Add support for NetBSD.
63958
63959 2002-11-04  Bruno Haible  <bruno@clisp.org>
63960
63961         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
63962
63963 2002-11-01  Bruno Haible  <bruno@clisp.org>
63964
63965         * configure.in: Add AC_CONFIG_AUX_DIR call.
63966         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
63967         test/Makefile.
63968         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
63969
63970 2002-09-28  Karl Berry  <karl@gnu.org>
63971
63972         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
63973         installed automake until the next release, since changes have been
63974         made.
63975
63976 2002-09-25  Karl Berry  <karl@gnu.org>
63977
63978         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
63979         * lib/getopt*: copy from libc/posix.
63980         * lib/gettext.h: copy from gettext.
63981         * lib/.cppi-disable: add strdup.c, gettext.h.
63982
63983 2002-09-25  Karl Berry  <karl@gnu.org>
63984
63985         * config/srclist.txt: enable gettext.h check.
63986         * config/config.{guess,sub}: update from prep.
63987         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
63988                 from automake 1.6.3.
63989         See srclist*.
63990
63991 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
63992
63993         * regex.c (PATFETCH): Remove the translating fetch.
63994         (PATFETCH_RAW): Rename to PATFETCH.
63995         (set_image_of_range): New fun.
63996         (SET_RANGE_TABLE_WORK_AREA): Use it.
63997         (regex_compile): Don't translate the pattern chars so eagerly.
63998         Only do it when inserting an `exactn' bytecode or when handling
63999         a char-range.
64000         (mutually_exclusive_p): Avoid empty statement.
64001
64002 2002-07-06  Jim Meyering  <meyering@lucent.com>
64003
64004         * m4/README: Don't mention Makefile.am.in.
64005         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64006
64007 2002-07-01  Jim Meyering  <meyering@lucent.com>
64008
64009         * lib/c-stack.c: Include sys/time.h.
64010         From Volker Borchert.
64011
64012 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64013
64014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64015
64016 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64017
64018         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64019         New macro.  Use it uniformly instead of
64020         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64021         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64022         reported by Vin Shelton.
64023
64024 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64025
64026         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64027         Do not assume SA_SIGINFO behavior.
64028         Bug reported by Jim Meyering on NetBSD 1.5.2.
64029
64030 2002-06-22  Jim Meyering  <meyering@lucent.com>
64031
64032         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64033         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64034
64035         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64036         now that configure.ac uses AC_GNU_SOURCE.
64037         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64038         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64039
64040         Update to latest tools.  Suggestions from Paul Eggert.
64041         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64042         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64043         * m4/fnmatch.m4: Likewise.
64044         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64045         to AC_HEADER_STDBOOL
64046
64047 2002-06-22  Jim Meyering  <meyering@lucent.com>
64048
64049         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64050         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64051
64052 2002-06-22  Jim Meyering  <meyering@lucent.com>
64053
64054         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64055
64056         * lib/exitfail.c, exitfail.h: Likewise.
64057         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64058
64059         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64060         of fnmatch.h.
64061         (EXTRA_DIST): Add fnmatch_loop.c.
64062         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64063
64064         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64065         * lib/fnmatch.c: Update from diffutils-2.8.2.
64066         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64067         * lib/fnmatch.h: Remove file.
64068
64069 2002-06-21  Jim Meyering  <meyering@lucent.com>
64070
64071         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64072         * m4/mbrtowc.m4: Likewise.
64073
64074         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64075         * m4/mbswidth.m4: Reflect name change:
64076         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64078
64079         * m4/lib-link.m4: Update from gettext-0.11.2.
64080         * m4/gettext.m4: Likewise.
64081
64082         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64083         From Alfred M. Szmidt.
64084
64085 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64086
64087         * lib/file-type.h: Report an error if neither S_ISREG nor
64088         S_IFREG is defined, instead of using a test specific to glibc
64089         2.2.  This should be safe, since POSIX requires S_ISREG and
64090         Unix Version 7 had S_IFREG.  We don't need to check for
64091         <sys/types.h> since we don't use any symbols that it defines.
64092
64093 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64094
64095         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64096         $@-t, so that each temporary file name is unique and valid in the first
64097         8 characters, for operation under DOS.
64098
64099 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64100
64101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64102
64103 2002-06-15  Jim Meyering  <meyering@lucent.com>
64104
64105         Work even with DJGPP 2.03, which lacks support for symlinks.
64106         From Richard Dawe.
64107         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64108         is defined.
64109         * lib/lchown.c (S_ISLNK): Likewise.
64110
64111 2002-06-15  Jim Meyering  <meyering@lucent.com>
64112
64113         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64114         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64115         have been included before this file.
64116
64117 2002-06-14  Jim Meyering  <meyering@lucent.com>
64118
64119         * lib/file-type.h: Use the version from diffutils-2.8.2.
64120         * lib/file-type.c: Likewise.
64121
64122 2002-06-07  Jim Meyering  <meyering@lucent.com>
64123
64124         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64125         They're needed at least for NetBSD 1.5.2.
64126         ($statxfs_includes): Include those same headers.
64127         ($statxfs_includes): Include sys/vfs.h if available.
64128         ($statxfs_includes): Likewise for sys/statvfs.h.
64129         Check for the following members in both structs statfs and statvfs:
64130         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64131
64132 2002-06-01  Jim Meyering  <meyering@lucent.com>
64133
64134         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64135         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64136
64137 2002-05-28  Jim Meyering  <meyering@lucent.com>
64138
64139         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64140         Reported by Volker Borchert.
64141
64142 2002-05-27  Jim Meyering  <meyering@lucent.com>
64143
64144         Fix a problem seen only on nonconforming systems whereby ls.c's
64145         use of localtime, and then of gettimeofday would cause trouble:
64146         the localtime call used to initialize rpl_gettimeofday's save
64147         mechanism would clobber ls's current local time information so
64148         that in any long listing the first file would always be listed
64149         with date 1970-01-01.  Analysis by Volker Borchert.
64150
64151         * lib/gettimeofday.c (localtime): Undefine.
64152         (rpl_localtime): New function.
64153
64154 2002-05-27  Jim Meyering  <meyering@lucent.com>
64155
64156         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64157         localtime.
64158
64159         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64160         use the replacement function; it wouldn't resolve at link time.
64161         Reported by Volker Borchert.
64162
64163 2002-05-22  Jim Meyering  <meyering@lucent.com>
64164
64165         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64166         file-type.h.
64167         * lib/file-type.h: New file.
64168         * lib/file-type.c (file_type): New file/function.  Extracted from
64169         diffutils.
64170
64171 2002-04-30  Jim Meyering  <meyering@lucent.com>
64172
64173         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64174
64175 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64176
64177         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64178
64179 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64180
64181         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64182         Do not check for alloca.h (no longer used) or stdbool.h (was never
64183         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64184
64185 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64186
64187         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64188
64189 2002-04-29  Jim Meyering  <meyering@lucent.com>
64190
64191         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64192         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64193         Use AC_FUNC_STRNLEN here instead.
64194
64195         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64196         With autoconf-2.53a, it's part of AC_PROG_CC.
64197
64198 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64199
64200         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64201         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64202
64203 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64204
64205         * lib/sig2str.h, lib/sig2str.c: New files.
64206         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64207
64208 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64209
64210         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64211         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64212         of 127, since 64 is the largest conceivable number for ancient
64213         nonstandard hosts.
64214         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64215
64216 2002-04-28  Jim Meyering  <meyering@lucent.com>
64217
64218         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64219
64220 2002-04-24  Jim Meyering  <meyering@lucent.com>
64221
64222         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64223         (jm_PREREQ): Use it.
64224
64225         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64226         mach/mach.h fcntl.h.
64227         Check for this function: setlocale.
64228
64229 2002-04-24  Jim Meyering  <meyering@lucent.com>
64230
64231         * lib/gettext.h: New file, from Gettext.
64232         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64233         (libfetish_a_SOURCES): Add gettext.h.
64234
64235 2002-04-16  Jim Meyering  <meyering@lucent.com>
64236
64237         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64238         ut_pid, ut_id, ut_exit.
64239
64240 2002-04-16  Jim Meyering  <meyering@lucent.com>
64241
64242         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64243         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64244         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64245
64246 2002-04-12  Jim Meyering  <meyering@lucent.com>
64247
64248         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64249         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64250         existence of the getmntinfo function.  Needed for Darwin 5.3.
64251
64252         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64253         This is necessary at least on Darwin 5.3.
64254
64255         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64256         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64257         strnlen.o in the library, and that makes some versions of ranlib
64258         object.
64259
64260 2002-04-12  Jim Meyering  <meyering@lucent.com>
64261
64262         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64263
64264 2002-04-09  Jim Meyering  <meyering@lucent.com>
64265
64266         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64267         to be more precise.  Rather than saying we're checking whether the
64268         function `works', say what we're testing.
64269         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64270         Reported by Bruno Haible.
64271
64272 2002-03-10  Jim Meyering  <meyering@lucent.com>
64273
64274         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64275         Suggestion from Santiago Vila.
64276
64277 2002-03-08  Jim Meyering  <meyering@lucent.com>
64278
64279         * lib/rename.c: Mention that this wrapper is needed also on
64280         mips-dec-ultrix4.4 systems.
64281
64282 2002-03-02  Jim Meyering  <meyering@lucent.com>
64283
64284         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64285         not HAVE_CLOCK_SETTIME.
64286
64287 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64288
64289         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64290         Check for clock_settime.
64291
64292 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64293
64294         * lib/nanosleep.h: Rename to....
64295         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64296
64297         * lib/gettime.c: New file.
64298         * lib/settime.c: New file.
64299         * lib/stime.c: Remove.
64300
64301         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64302         timespec.h.  Remove nanosleep.h.
64303
64304 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64305
64306         * m4/acl.m4: New file.
64307         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64308         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64309
64310 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64311
64312         * lib/acl.c, lib/acl.h: New files.
64313         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64314
64315 2002-02-24  Jim Meyering  <meyering@lucent.com>
64316
64317         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64318         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64319         cause trouble.  Reported by Nelson Beebe.
64320
64321 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64322
64323         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64324         compilers that don't know that xalloc_die never returns.
64325
64326 2002-02-20  Jim Meyering  <meyering@lucent.com>
64327
64328         * lib/getdate.c: Regenerate using bison-1.33.
64329
64330 2002-02-17  Jim Meyering  <meyering@lucent.com>
64331
64332         * config/config.guess (main): Don't use `head -1'; it's no longer
64333         portable. Use `sed 1q' instead.
64334
64335 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64336
64337         * m4/codeset.m4: Upgrade to gettext-0.11.
64338         * m4/gettext.m4: Upgrade to gettext-0.11.
64339         * m4/glibc21.m4: Upgrade to gettext-0.11.
64340         * m4/iconv.m4: Upgrade to gettext-0.11.
64341         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64342         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64343         * m4/lib-ld.m4: New file, from gettext-0.11.
64344         * m4/lib-link.m4: New file, from gettext-0.11.
64345         * m4/lib-prefix.m4: New file, from gettext-0.11.
64346         * m4/progtest.m4: Upgrade to gettext-0.11.
64347
64348 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64349
64350         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64351         (jm_PREREQ): Use it.
64352
64353 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64354
64355         * lib/posixver.c, lib/posixver.h: New files.
64356         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64357
64358 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64359             Bruno Haible  <bruno@clisp.org>
64360
64361         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64362         (fwrite_success_callback): New declaration.
64363         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64364         print_unicode_char. Call failure callback instead of error.
64365         (fwrite_success_callback): New function.
64366         (exit_failure_callback): New function.
64367         (fallback_failure_callback): New function.
64368         (print_unicode_char): Call unicode_to_mb.
64369
64370 2002-01-26  Jim Meyering  <meyering@lucent.com>
64371
64372         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64373         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64374
64375 2002-01-26  Jim Meyering  <meyering@lucent.com>
64376
64377         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64378
64379 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64380
64381         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64382
64383 2002-01-22  Jim Meyering  <meyering@lucent.com>
64384
64385         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64386         Otherwise, some versions of automake would omit the rule that makes
64387         Makefile from Makefile.in.
64388
64389 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64390
64391         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64392         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64393         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64394         (memcoll): Set errno to zero if there is no error.
64395
64396         * lib/quotearg.c (quotearg_buffer_restyled):
64397         Fix bug with quoting buffers containing NUL when backslashing escapes.
64398         This bug was exposed by the other changes in this patch.
64399         (quotearg_n_options): New arg ARGSIZE.
64400         All callers changed.
64401         (quoting_options_from_style): New function.
64402         (quotearg_n_style): Use it.
64403         (quotearg_n_style_mem): New function.
64404
64405         * lib/quotearg.h (quotearg_n_style_mem): New function.
64406
64407 2002-01-19  Jim Meyering  <meyering@lucent.com>
64408
64409         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64410         Remove useless quotes: DF_PROG="df".
64411         * m4/strnlen.m4: New file.
64412
64413 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64414
64415         * lib/backupfile.c (ISDIGIT): Comment fix.
64416         * lib/getdate.y (ISDIGIT): Likewise.
64417         * lib/posixtm.c (ISDIGIT, year): Likewise.
64418         * lib/strverscmp.c (ISDIGIT): Likewise.
64419         * lib/userspec.c (ISDIGIT): Likewise.
64420
64421 2002-01-16  Jim Meyering  <meyering@lucent.com>
64422
64423         * lib/getdate.y: Add three semicolons, each just before a closing
64424         brace. Bison (as of version 1.31) no longer papers over that mistake.
64425
64426 2002-01-05  Jim Meyering  <meyering@lucent.com>
64427
64428         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64429
64430 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64431
64432         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64433         not silently exit merely because the output buffer happens to
64434         have nothing pending.
64435
64436 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64437
64438         See the big note in ../ChangeLog.
64439         * lib/human.c (suffixes): Prefer K to k for 1024.
64440         (generate_suffix_backwards): New function.
64441         (human_readable_inexact): Use it.
64442         * lib/xstrtol.c (__xstrtol): If there is no number but there
64443         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64444         Accept 'K' as well as 'k'.
64445
64446 2001-12-15  Jim Meyering  <meyering@lucent.com>
64447
64448         * lib/regex.h (__restrict_arr): Update from libc.
64449
64450         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64451         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64452         (STREQ): Define.
64453
64454 2001-12-14  Jim Meyering  <meyering@lucent.com>
64455
64456         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64457         Suggestion from Bruno Haible.
64458
64459 2001-12-10  Jim Meyering  <meyering@lucent.com>
64460
64461         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64462         xrealloc, Instead, include "xalloc.h".
64463         (initbuffer): Don't cast xmalloc return value to char*.
64464         (readline): Reword comment.
64465         Don't cast xrealloc return value to char*
64466         Return NULL, not 0.
64467
64468 2001-12-09  Jim Meyering  <meyering@lucent.com>
64469
64470         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64471         about `signed and unsigned type in conditional expression'.
64472         * lib/posixtm.c (posix_time_parse): Likewise.
64473
64474         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64475
64476         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64477         to avoid a pedantic warning.
64478
64479         * lib/getstr.c: Don't include assert.h.
64480         (getstr): Remove warning-evoking assertions.
64481         Return -1 if offset parameter is out of bounds.
64482         Change the type of a local from int to size_t.
64483
64484         * lib/strftime.c (my_strftime_localtime_r): Include this function
64485         definition in the `#if ! HAVE_TM_GMTOFF' block.
64486
64487         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64488         Include xalloc.h instead.
64489
64490 2001-12-02  Jim Meyering  <meyering@lucent.com>
64491
64492         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64493         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64494         included.
64495
64496         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64497         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64498
64499 2001-11-30  Akim Demaille  <akim@epita.fr>
64500
64501         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64502         before being defined.
64503
64504 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64505
64506         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64507         First arg is int, not unsigned.
64508         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64509         (SIZE_MAX, UINT_MAX): New macros.
64510         (quotearg_n_options): Abort if N is negative.
64511         Avoid overflow check on hosts where size_t is 64 bits and int
64512         is 32 bits, as overflow is impossible there.
64513         Fix off-by-one typo that caused unnecessary reallocation.
64514
64515 2001-11-27  Jim Meyering  <meyering@lucent.com>
64516
64517         * lib/tempname.c: Merge with version from libc.
64518         * lib/regex.c: Likewise.
64519
64520         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64521         systems for which STDC_HEADERS is 0, it was not included, resulting in
64522         a warning about an integer-to-pointer conversion problem with getenv.
64523         Reported by Volker Borchert.
64524
64525 2001-11-26  Jim Meyering  <meyering@lucent.com>
64526
64527         * lib/gtod.h: Remove file.
64528         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
64529         * lib/gettimeofday.c: Don't include gtod.h.
64530         (GTOD_init): Remove function.
64531         (rpl_gettimeofday): Do its job here instead, rather than aborting.
64532         Suggestion from Volker Borchert.
64533
64534 2001-11-23  Jim Meyering  <meyering@lucent.com>
64535
64536         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
64537         it.
64538         * lib/hash.c (struct hash_table): Define it here instead.
64539
64540 2001-11-22  Jim Meyering  <meyering@lucent.com>
64541
64542         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
64543
64544 2001-11-20  Jim Meyering  <meyering@lucent.com>
64545
64546         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
64547         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
64548
64549 2001-11-19  Jim Meyering  <meyering@lucent.com>
64550
64551         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
64552         directory.  Use "conftestXXXXXX" as the template.
64553         Suggestion from Paul Eggert.
64554
64555         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
64556         immediately, so the test doesn't mistakenly hit the max-open-files
64557         limit.
64558
64559 2001-11-18  Paul Eggert  <eggert@twinsun.com>
64560
64561         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
64562         (TEMPORARIES): New macro.
64563         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
64564         removes an artificial limitation (e.g. HP-UX 10.20, where
64565         TMP_MAX is 17576).
64566
64567 2001-11-18  Jim Meyering  <meyering@lucent.com>
64568
64569         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
64570
64571 2001-11-18  Jim Meyering  <meyering@lucent.com>
64572
64573         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
64574         on SunOS 4.
64575
64576         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
64577         files will be created before anything else.
64578
64579 2001-11-17  Paul Eggert  <eggert@twinsun.com>
64580
64581         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
64582         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
64583
64584 2001-11-17  Jim Meyering  <meyering@lucent.com>
64585
64586         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
64587         Prompted by a report from Bob Proulx.
64588
64589         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
64590         Instead, require UTILS_FUNC_MKSTEMP.
64591
64592 2001-11-17  Jim Meyering  <meyering@lucent.com>
64593
64594         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
64595         Now, that's done as part of AC_FUNC_STRTOD.
64596
64597 2001-11-17  Jim Meyering  <meyering@lucent.com>
64598
64599         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
64600         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
64601         rather than group writable.  Patch by Juan F. Codagnone.
64602
64603         * lib/readtokens.c: Remove explicit declarations of xmalloc and
64604         xrealloc, Instead, include "xalloc.h".
64605
64606         * lib/mountlist.c: Include unlocked-io.h after all system headers.
64607         Remove explicit declarations of xmalloc, xrealloc,
64608         and xstrdup.  Instead, include "xalloc.h".
64609
64610         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
64611         unlocked-io.h.
64612         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
64613         Likewise.
64614         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
64615
64616         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
64617         Reported by Padraig Brady.
64618
64619         * lib/mkstemp.c: #undef mkstemp.
64620         Include config.h.
64621         (rpl_mkstemp): Rename from mkstemp.
64622         Protoize.
64623
64624 2001-11-16  Jim Meyering  <meyering@lucent.com>
64625
64626         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
64627         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
64628         determine the amount of total physical memory, use pstat_getstatic.
64629         HPUX-11 doesn't define _SC_PHYS_PAGES.
64630         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
64631         If sysconf couldn't be used to determine the amount of available
64632         physical memory, use both pstat_getstatic and pstat_getdynamic.
64633         Based on a patch from Bob Proulx.
64634
64635 2001-11-10  Jim Meyering  <meyering@lucent.com>
64636
64637         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
64638         (jm_PREREQ): Use it.
64639
64640 2001-11-09  Jim Meyering  <meyering@lucent.com>
64641
64642         * m4/jm-macros.m4: Require autoconf-2.52f.
64643         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
64644         Use these AC_-prefixed names, not the AM_-prefixed ones.
64645
64646         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
64647
64648 2001-11-05  Jim Meyering  <meyering@lucent.com>
64649
64650         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
64651
64652 2001-11-04  Jim Meyering  <meyering@lucent.com>
64653
64654         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
64655         $DEFS.
64656
64657 2001-11-03  Jim Meyering  <meyering@lucent.com>
64658
64659         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
64660         of AC_DEFUN.
64661
64662         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
64663         know the name of the variable in the macro definition.
64664
64665 2001-11-03  Jim Meyering  <meyering@lucent.com>
64666
64667         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
64668         in argmatch_to_argument call.
64669
64670         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
64671         argument.
64672
64673         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
64674         e.g., a fault due to an attempt to free a NULL pointer.
64675
64676 2001-11-01  Jim Meyering  <meyering@lucent.com>
64677
64678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
64679         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
64680
64681 2001-11-01  Jim Meyering  <meyering@lucent.com>
64682
64683         * lib/dirfd.c, lib/dirfd.h: New files.
64684         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
64685
64686         * lib/hash.c (hash_print) [TESTING]: Clean up.
64687
64688 2001-10-22  Paul Eggert  <eggert@twinsun.com>
64689
64690         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
64691         to avoid a warning if -Wall.
64692
64693 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
64694
64695         * README: New file
64696         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
64697         (per RMS's instructions, this is now the canonical source)
64698         * lgpl/, gpl/: New directories.
64699
64700 2001-10-21  Paul Eggert  <eggert@twinsun.com>
64701
64702         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
64703
64704 2001-10-21  Jim Meyering  <meyering@lucent.com>
64705
64706         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
64707         this code would end up calling gettext even in packages built
64708         with --disable-nls.
64709         * lib/getopt.c (_): Likewise.
64710         * lib/regex.c (_): Likewise.
64711
64712 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64713
64714         * m4/error.m4 (jm_PREREQ_ERROR):
64715         Do not invoke AC_CHECK_FUNCS with strerror_r, as
64716         AC_FUNC_STRERROR_R does that.
64717         Check for strerror declaration.
64718
64719         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
64720         are supposed to have them these days.
64721         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
64722         Merge changes from latest Autoconf CVS.
64723         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
64724         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
64725         POSIX decided to standardize on the int flavor of strerror_r.
64726
64727 2001-10-20  Paul Eggert  <eggert@twinsun.com>
64728
64729         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
64730         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
64731         Use strerror_r that is only a macro, even if it is not a function.
64732         (strerror): Check for HAVE_DECL_STRERROR before declaring.
64733         (private_strerror): Use prototypes, not old-style function definition.
64734         (print_errno_message): New function.
64735         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
64736         char*-flavored one.
64737         (error_tail, error, error_at_line): Use it.
64738
64739 2001-10-11  Jim Meyering  <meyering@lucent.com>
64740
64741         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
64742         and quote_n (1, ... to avoid clobbering a buffer.
64743
64744 2001-10-05  Jim Meyering  <meyering@lucent.com>
64745
64746         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
64747         hash-pjw.h.
64748         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
64749         * lib/hash-pjw.h: New file.
64750
64751 2001-09-30  Jim Meyering  <meyering@lucent.com>
64752
64753         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
64754         `struct fsstat' has the `f_fstypename' member.
64755         Use that to define FS_TYPE, which is now used to make
64756         the getfsstat link test tighter.
64757
64758 2001-09-30  Jim Meyering  <meyering@lucent.com>
64759
64760         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
64761         Include <sys/ucred.h>, for Apple Darwin.
64762         Include sys/mount.h and sys/fs_types.h only if available.
64763         (FS_TYPE): Define.
64764         (read_filesystem_list): Use FS_TYPE.
64765
64766 2001-09-29  Paul Eggert  <eggert@twinsun.com>
64767
64768         * lib/exclude.c (excluded_filename): 0 -> false, since it's
64769         a boolean context.
64770
64771 2001-09-29  Jim Meyering  <meyering@lucent.com>
64772
64773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64774         [one-argument getmntent function]): Include stdio.h before mntent.h.
64775         SunOS 4.1.x needs it for the declaration of `FILE'.
64776         Patch by Volker Borchert.
64777
64778         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
64779         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
64780         sys/fs_types.h, and make the link-test for getfsstat guard #include
64781         directives with appropriate #if HAVE_*_H tests so that we can
64782         detect getfsstat on Apple Darwin1.3.7 systems.
64783         Reported by Nelson Beebe.
64784         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
64785
64786 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64787
64788         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64789         #defines strtoimax.  Also treat the other strto* functions
64790         like strtoimax.
64791
64792         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
64793         Check for strtoul and strtoumax,
64794         as those declarations are made even in the signed case.
64795         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
64796         Likewise, for strtol and strtoimax.
64797
64798 2001-09-28  Paul Eggert  <eggert@twinsun.com>
64799
64800         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
64801         #defines strtoimax.  Also treat the other strto* functions
64802         like strtoimax.
64803
64804         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
64805         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
64806         (strtoimax, strtoumax): Do not declare if already defined as a macro.
64807
64808 2001-09-26  Jim Meyering  <meyering@lucent.com>
64809
64810         Most macros in unlocked-io.h had the wrong number of arguments.
64811         * lib/gen-uio: New script.
64812         (USE_UNLOCKED_IO): Define to 1 if not already defined.
64813         * lib/unlocked-io.hin: Remove file.
64814         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
64815         rather than trying to embed it here.
64816         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
64817         Reported by Padraig Brady.
64818
64819 2001-09-25  Volker Borchert  <bt@teknon.de>
64820
64821         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
64822         `result'.
64823
64824 2001-09-24  Jim Meyering  <meyering@lucent.com>
64825
64826         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
64827
64828 2001-09-23  Jim Meyering  <meyering@lucent.com>
64829
64830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
64831         instead of the mere test for existence of mntent.h.  The latter
64832         would get a false-positive on AIX 3.4 systems.
64833         In the outer getmntent if-block, don't die if neither of the getmntent
64834         tests succeeds.  Instead, just fall through and continue with the
64835         remaining tests.
64836
64837 2001-09-23  Jim Meyering  <meyering@lucent.com>
64838
64839         * lib/mountlist.c: Remove useless parentheses in #if directives.
64840         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
64841         the deprecated MOUNTED symbol is no longer defined in mntent.h.
64842
64843 2001-09-22  Jim Meyering  <meyering@lucent.com>
64844
64845         * m4/gettext.m4: New file.  From gettext.
64846         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
64847         * m4/progtest.m4: Likewise
64848         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
64849         * m4/glibc21.m4: Likewise.
64850
64851         * m4/libintl.m4: Remove.  No longer used.
64852
64853 2001-09-22  Jim Meyering  <meyering@lucent.com>
64854
64855         * lib/localcharset.c: Update from latest gettext.
64856         * lib/config.charset: Likewise.
64857
64858 2001-09-20  Jim Meyering  <meyering@lucent.com>
64859
64860         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
64861         strtoimax.
64862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
64863         strtoumax.
64864
64865 2001-09-20  Jim Meyering  <meyering@lucent.com>
64866
64867         * lib/xstrtol.c (strtoimax): Guard declaration with
64868         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
64869         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
64870         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
64871         (strtoumax): Likewise, for completeness (it wasn't necessary).
64872
64873 2001-09-17  Paul Eggert  <eggert@twinsun.com>
64874
64875         * lib/strtoimax.c (HAVE_LONG_LONG):
64876         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
64877         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
64878         to work around bug in IBM C compiler.
64879
64880 2001-09-17  Jim Meyering  <meyering@lucent.com>
64881
64882         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
64883         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
64884         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
64885         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
64886         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
64887         whenever the right hand side need not be expanded by the shell.
64888
64889 2001-09-16  Paul Eggert  <eggert@twinsun.com>
64890
64891         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
64892         library.  It's not correct, as some older glibcs are buggy.
64893         fnmatch wasn't fixed until glibc 2.2.
64894
64895         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
64896         special shell magic here.
64897
64898 2001-09-16  Jim Meyering  <meyering@lucent.com>
64899
64900         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
64901         * m4/jm-macros.m4: Require it.
64902
64903 2001-09-16  Jim Meyering  <meyering@lucent.com>
64904
64905         * lib/mkdir.c: New file.
64906
64907 2001-09-15  Jim Meyering  <meyering@lucent.com>
64908
64909         * m4/jm-macros.m4: Check for help2man.
64910
64911 2001-09-11  Jim Meyering  <meyering@lucent.com>
64912
64913         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
64914         The body, by Paul Eggert, was moved here from configure.in.
64915         * m4/jm-macros.m4: Require UTILS_HOST_OS.
64916
64917 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64918
64919         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
64920         (jm_PREREQ): Use it.
64921
64922 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64923
64924         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
64925         Use ssize_t, not int, to store result of readlink.
64926         Check for ssize_t overflow as well as size_t overflow,
64927         as POSIX says the result of readlink is implementation-defined
64928         when ssize_t overflows.
64929         Remove unnecessary cast to char*.
64930         Use free+malloc instead of realloc, as the storage doesn't need
64931         to be preserved and it's clearer and can be more efficient that way.
64932         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
64933         * lib/xreadlink.h (xreadlink): Update prototype.
64934
64935 2001-09-04  Paul Eggert  <eggert@twinsun.com>
64936
64937         * lib/xgetcwd.c: Revert some of the previous change; intead,
64938         fix the HAVE_GETCWD_NULL code to behave more like the
64939         !HAVE_GETCWD_NULL code used to.
64940
64941         Include "xalloc.h".
64942         (xgetcwd): Do not return NULL when memory is exhausted; instead,
64943         invoke xalloc_die.
64944
64945 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64946
64947         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
64948         sys/param.h, as pathmax.h includes them.
64949
64950 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64951
64952         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
64953         (jm_PREREQ_XGETCWD): New macro.
64954
64955         * m4/getcwd.m4: New file.
64956
64957 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64958
64959         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
64960         like the HAVE_GETCWD_NULL code.
64961         Include pathmax.h if not HAVE_GETCWD.
64962         Do not include xalloc.h.
64963         (INITIAL_BUFFER_SIZE): New symbol.
64964         Do not use xmalloc / xrealloc, since the caller is responsible for
64965         handling errors.  Preserve errno around `free' during failure.
64966         Do not overrun buffer when using getwd.
64967
64968 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64969
64970         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
64971         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
64972         getcwd (NULL, 0).
64973
64974 2001-09-03  Paul Eggert  <eggert@twinsun.com>
64975
64976         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
64977         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
64978         spotted by Jim Meyering.
64979
64980 2001-09-03  Jim Meyering  <meyering@lucent.com>
64981
64982         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
64983         failure.
64984
64985 2001-09-02  Jim Meyering  <meyering@lucent.com>
64986
64987         * lib/error.c: Update from GNU libc.
64988
64989 2001-09-01  Jim Meyering  <meyering@lucent.com>
64990
64991         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
64992         Used by df.
64993
64994 2001-09-01  Jim Meyering  <meyering@lucent.com>
64995
64996         * lib/xreadlink.c: New file.
64997         * lib/xreadlink.h: New file.
64998         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
64999         xreadlink.h.
65000
65001         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65002         doesn't conflict with sparc Solaris 7's definition in
65003         /usr/include/sys/int_types.h.
65004
65005         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65006         files.
65007         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65008         and strncasecmp as r-values.  Unixware didn't have declarations.
65009
65010 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65011
65012         * lib/xstrtol.h: Add copyright notice.
65013         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65014         LONGINT_INVALID_SUFFIX_CHAR.
65015
65016 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65017
65018         * lib/xstrtol.c (strtoimax): New decl.
65019
65020 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65021
65022         * lib/xgetcwd.c: Don't include pathmax.h.
65023         Include stdlib.h and unistd.h if available.
65024         Include xalloc.h.
65025         (xmalloc, xstrdup, free): Remove decls.
65026         (xgetcwd): Don't assume sizes fit in unsigned.
65027         Check for overflow when computing sizes.
65028         Simplify reallocation code.
65029
65030 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65031
65032         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65033         a directory's st_size can have an arbitrary value, so the old
65034         usage could waste an arbitrary amount of memory.  All uses
65035         changed.
65036         * lib/savedir.h: Update prototype.
65037
65038 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65039
65040         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65041
65042         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65043         old strtoimax.c.
65044
65045         Also, make the following further changes to make this file's
65046         configuration more similar to that of strtol.c:
65047         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65048         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65049         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65050         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65051         changed to signed values.
65052
65053         And make the following changes as well:
65054         Fix copyright notice, as 1999 was missing.
65055         (verify): New macro.
65056         (strtoimax): Check sizes at compile-time, not run-time.
65057         Prefer strtol to strtoll if both work.
65058         (main): Remove; it was not that useful and was a pain to maintain.
65059
65060         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65061
65062 2001-08-31  Jim Meyering  <meyering@lucent.com>
65063
65064         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65065         Use an initial, malloc'd, buffer of length 128 rather than
65066         a statically allocated one of length 1024.
65067
65068 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65069
65070         Simplify code, partly by assuming autoconf 2.52 semantics.
65071
65072         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65073
65074         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65075         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65076         All uses removed.
65077         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65078         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65079         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65080         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65081         jm_AC_HEADER_INTTYPES_H.
65082         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65083
65084         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65085
65086         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65087         Quote first arg of AC_DEFUN.
65088         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65089         since they are needed to parse the include file even if we need
65090         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65091         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65092         but with opposite signedness.
65093
65094 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65095
65096         Merge 'exclude' changes from tar 1.13.22.
65097         This fixes one or two unlikely storage allocation overflow bugs,
65098         but doesn't change user-visible behavior otherwise.
65099
65100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65101
65102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65103         (jm_PREREQ_EXCLUDE): New macro.
65104
65105 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65106
65107         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65108         tm to be declared.
65109
65110 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65111
65112         * lib/hash.c: Remove '2001' from copyright notice.
65113
65114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65115
65116         * lib/full-write.h: New file.
65117         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65118         * lib/full-write.c: Correct credits, as cccp.c no longer
65119         exists and anyway it was so heavily changed from the old cccp
65120         code as to be unrecognizable.  Include full-write.h.
65121         (full_write) Return size_t, with short writes meaning failure.
65122         All callers changed.  This fixes a bug with large buffers
65123         on 64-bit hosts.
65124         * lib/utime.c: Include full-write.h.
65125
65126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65127
65128         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65129         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65130         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65131         Include if available.
65132         (<xalloc.h>): Include
65133         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65134         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65135         collide with FNM macros.
65136         (struct patopts): New struct.
65137         (struct exclude): Use it, as exclude patterns now come with options.
65138         (new_exclude): Support above changes.
65139         (new_exclude, add_exclude_file):
65140         Initial size must now be a power of two to simplify overflow checking.
65141         (free_exclude, fnmatch_no_wildcards): New function.
65142         (excluded_filename): No longer requires options arg, as the options
65143         are determined by add_exclude.  Now returns bool, not int.
65144         (excluded_filename, add_exclude):
65145         Add support for the fancy new exclusion options.
65146         (add_exclude, add_exclude_file): Now takes int options arg.
65147         Check for arithmetic overflow when computing sizes.
65148         (add_exclude_file): xrealloc might modify errno, so don't
65149         realloc until after errno might be used.
65150
65151         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65152         New macros.
65153         (free_exclude): New decl.
65154         (add_exclude, add_exclude_file): Now takes int options arg.
65155         (excluded_filename): No longer requires options arg, as the options
65156         are determined by add_exclude.  Now returns bool, not int.
65157
65158 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65159
65160         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65161
65162 2001-08-27  Jim Meyering  <meyering@lucent.com>
65163
65164         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65165
65166         * lib/version-etc.c (N_): Remove definition.
65167         Revert most of last change.
65168         Instead, simply don't mark the `Copyright...' string for translation.
65169         Based on advice from Paul Eggert.
65170
65171         * lib/strtoxmax.c: Tweak comment.
65172
65173 2001-08-26  Jim Meyering  <meyering@lucent.com>
65174
65175         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65176
65177         * m4/xstrtoimax.m4: New file.
65178         * m4/xstrtoumax.m4: Add comments explaining why we
65179         AC_REPLACE_FUNCS(strtol).
65180
65181 2001-08-26  Jim Meyering  <meyering@lucent.com>
65182
65183         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65184         of copyright with `%s' so translators don't get an untranslated
65185         message in 2002.
65186         (COPYRIGHT_YEAR): Define.
65187         (version_etc): Use fprintf rather than fputs.
65188         Suggestion from Ulrich Drepper.
65189
65190         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65191
65192         * lib/strtoll.c: New file, from GNU libc.
65193         * lib/xstrtoimax.c: New file.
65194
65195         * lib/xstrtol.h: Add xstrtoimax.
65196         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65197         * lib/strtoimax.c: New file.  Likewise, but first define
65198         STRTOUXMAX_SIGNED.
65199
65200         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65201         ...
65202         * lib/strtoxmax.c: ... then renamed to this.
65203
65204 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65205
65206         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65207         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65208         (jm_AC_TYPE_INTMAX_T): New macro.
65209         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65210
65211         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65212
65213         * m4/longlong.m4: Renamed from ulonglong.m4.
65214         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65215         * m4/uintmax_t.m4: Removed.
65216
65217 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65218
65219         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65220         Port to Solaris 8, where 'sed' requires a space after the 'r'
65221         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65222         Redirect output to $tmp just once.
65223
65224 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65225
65226         * lib/addext.c (<errno.h>): Include.
65227         (errno): Declare if not defined.
65228         (addext): Work correctly when pathconf returns -1 and leaves
65229         errno alone because there is no limit.  Also, work even if
65230         pathconf returns a value greater than SIZE_MAX.
65231
65232 2001-08-12  Jim Meyering  <meyering@lucent.com>
65233
65234         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65235         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65236         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65237         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65238         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65239         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65240         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65241         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65242         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65243         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65244         utime.m4, utimes.m4, xstrtoumax.m4:
65245         Quote the first argument in each use of AC_DEFUN.
65246
65247 2001-08-12  Jim Meyering  <meyering@lucent.com>
65248
65249         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65250         Simply `return getcwd (NULL, 0);'.
65251         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65252         Use 1300 as initial value for length, not PATH_MAX.
65253
65254         * lib/pathmax.h: Clean up cpp syntax.
65255
65256 2001-08-12  Jim Meyering  <meyering@lucent.com>
65257
65258         * lib/gettimeofday.c: New file.
65259         * lib/gtod.h: New file.
65260         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65261
65262 2001-08-05  Jim Meyering  <meyering@lucent.com>
65263
65264         * m4/jm-macros.m4: Require autoconf-2.52.
65265
65266 2001-08-04  Jim Meyering  <meyering@lucent.com>
65267
65268         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65269         stmt, to get in sync with glibc.
65270
65271 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65272
65273         The following changes are from gettext 0.10.39 as maintained by
65274         Bruno Haible.
65275
65276         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65277         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65278         with inverted sense.  All uses changed.
65279
65280         * lib/mbswidth.c: Don't include <limits.h>.
65281         Include <stdlib.h> and <string.h> unconditionally.
65282         (iswcntrl, mbsinit, ISCNTRL): New macros.
65283         (mbsnwidth): Use K&R style function declarations.
65284         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65285         can optimize it when MB_CUR_MAX == 1.
65286         The width of control characters is zero, not 1.
65287
65288 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65289
65290         The following changes are from gettext 0.10.39 as maintained by
65291         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65292
65293         * m4/codeset.m4: Upgrade to serial AM1.
65294         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65295         all uses changed.  Quote first arg of AC_DEFUN.
65296         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65297
65298         * m4/iconv.m4: Upgrade to serial AM2.
65299         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65300         Add --with-libconv-prefix.
65301         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65302         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65303         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65304         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65305         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65306
65307         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65308         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65309         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65310         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65311         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65312         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65313         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65314         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65315         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65316
65317         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65318         string.h any more.
65319
65320         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65321         not the default value.
65322
65323         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65324         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65325         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65326         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65327         Also check for iswcntrl, used for wcwidth fallback.
65328         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65329         to Autoconf 2.13.
65330
65331 2001-08-03  Jim Meyering  <meyering@lucent.com>
65332
65333         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65334         as it was in the original.  Reported by Paul Eggert.
65335
65336 2001-07-16  Jim Meyering  <meyering@lucent.com>
65337
65338         * m4/gettimeofday.m4: New file.
65339         Prompted by a report from Bernhard Baehr.
65340
65341 2001-07-15  Jim Meyering  <meyering@lucent.com>
65342
65343         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65344         stuff. Now it's in ../Makefile.cfg.
65345
65346 2001-07-15  Jim Meyering  <meyering@lucent.com>
65347
65348         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65349         (BUILT_SOURCES): Add unlocked-io.h.
65350         (io_functions): Define.
65351         (unlocked-io.h): New rule.
65352         (DISTCLEANFILES): Add unlocked-io.h.
65353         (all-local): Depend on unlocked-io.h, to ensure it is created.
65354
65355         * lib/unlocked-io.hin: New file
65356
65357         * lib/regex.c: Update from glibc.
65358
65359 2001-07-05  Jim Meyering  <meyering@lucent.com>
65360
65361         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65362         recommendation.
65363         (libfetish_a_SOURCES): Put all .h files here instead.
65364         Remove a thus-exposed (better checks in automake) duplicate and
65365         two unnecessary .h files.
65366
65367 2001-07-04  Jim Meyering  <meyering@lucent.com>
65368
65369         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65370         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65371         distcheck failure.
65372
65373 2001-07-02  Jim Meyering  <meyering@lucent.com>
65374
65375         The following changes were prompted by suggestions from Bruno Haible.
65376
65377         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65378         is now generated.
65379         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65380         definition of EXTRA_DIST.
65381         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65382         ensure that the generated file is created/updated whenever the list
65383         of $(unlocked_functions) is changed.
65384         (jm-glibc-io.m4): New rule.
65385         (unlocked-io.h): New rule -- currently unused.
65386
65387 2001-06-24  Jim Meyering  <meyering@lucent.com>
65388
65389         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65390         unmatched right bracket, rather than kludging it with an extra,
65391         falsely-matching quote in a comment.  Patch by Akim Demaille.
65392
65393 2001-06-11  Jim Meyering  <meyering@lucent.com>
65394
65395         * lib/regex.c: Update from GNU libc.
65396
65397 2001-05-27  Jim Meyering  <meyering@lucent.com>
65398
65399         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65400         Check for ut_type in struct utmp.
65401
65402 2001-05-27  Jim Meyering  <meyering@lucent.com>
65403
65404         * lib/readutmp.h (UT_TYPE): Define.
65405
65406 2001-05-24  Jim Meyering  <meyering@lucent.com>
65407
65408         * lib/argmatch.c: Include "quote.h".
65409         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65410         quote function.  Reported by Göran Uddeborg.
65411
65412 2001-05-22  Jim Meyering  <meyering@lucent.com>
65413
65414         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65415         now that we use the package-supplied version unconditionally.
65416         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65417
65418 2001-05-21  Jim Meyering  <meyering@lucent.com>
65419
65420         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65421         shell syntax errors.
65422
65423 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65424
65425         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65426
65427 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65428
65429         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65430         Don't bother to check library strftime, since
65431         we'll be using our own my_strftime function anyway.
65432         Define my_strftime instead of strftime.
65433
65434 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65435
65436         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65437         which is not yet declared.
65438
65439 2001-05-15  Jim Meyering  <meyering@lucent.com>
65440
65441         * m4/regex.m4: Use proper quoting so brackets appear in the test
65442         program.
65443         Reported by, and with help from, Bruno Haible.
65444
65445 2001-05-13  Jim Meyering  <meyering@lucent.com>
65446
65447         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65448         undefined.
65449
65450 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65451
65452         dirname code cleanup.  base_name now behaves more compatibly
65453         with POSIX basename when given file names that have trailing
65454         slashes, and similarly for dir_name.  Add new primitives
65455         base_len and dir_len.  Put the directory-name-related decls
65456         into dirname.h.
65457
65458         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65459         * lib/backupfile.c (base_name): Likewise.
65460         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65461         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65462         * lib/makepath.c (strip_trailing_slashes): Likewise.
65463         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65464         ISSLASH): Likewise.
65465         * lib/rename.c (strip_trailing_slashes): Likewise.
65466         * lib/same.c (base_name): Likewise.
65467         * lib/stripslash.c (ISSLASH): Likewise.
65468
65469         * lib/addext.c: Include <dirname.h> after size_t is defined.
65470         * lib/backupfile.c: Likewise.
65471
65472         * lib/addext.c (addext): Use base_len to trim redundant
65473         trailing slashes instead of doing it ourselves.
65474         But do not trim the last slash if it is not redundant.
65475
65476         * lib/backupfile.c (find_backup_file_name,
65477         max_backup_version): Use base_len instead of rolling it ourselves.
65478         Handle the case of "" and (on DOS) "C:" correctly.
65479
65480         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65481         needed. Include <string.h>, <dirname.h>.
65482         (base_name): Allow file names ending in slashes, other than names
65483         that are all slashes.  In this case, return the basename followed
65484         by the slashes.  This is more general, and can be used in places
65485         where the original base_name purposely had an assertion failure.
65486         (base_len): New function.
65487
65488         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65489         Do not include <assert.h>; no longer needed.
65490         Include xalloc.h.
65491         (memrchr): Remove decl.
65492         (dir_name_r): Remove.
65493         (dir_len): Renamed from dirlen.  All callers changed.
65494         Rewrite in terms of base_name, for simplicity and consistency.
65495         (dir_name): Never return NULL.  All callers changed.
65496         Do not include <stdlib.h> in test program; no longer needed.
65497         return 0; is fine for test program.
65498
65499         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65500         New macros.
65501         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65502
65503         * lib/path-concat.c (path_concat): Use base_len to compute
65504         base length, not strlen; this means we cannot rely on memcpy
65505         to null-terminate.
65506
65507         * lib/same.c (STREQ): Remove.
65508         (same_name): Handle the case where the basename ends in trailing '/'.
65509
65510         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65511         a slash was stripped.  Do not strip the last slash after a
65512         file system prefix.
65513
65514 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65515
65516         * lib/Makefile.am (libfetish_a_SOURCES):
65517         Add strftime.c, since we now compile it on all hosts.
65518
65519         * lib/strftime.c (my_strftime):
65520         Define to nstrftime if emacs, but only if my_strftime is not defined.
65521         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65522         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65523         Add one more extra argument: a nanoseconds value.
65524         All uses changed.
65525         (ns): New macro.
65526         (my_strftime function): Add %N format.
65527         (emacs_strftimeu): Renamed from emacs_strftime,
65528         with extra ut argument.
65529
65530 2001-05-09  Paul Eggert  <eggert@twinsun.com>
65531
65532         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
65533
65534 2001-04-21  Jim Meyering  <meyering@lucent.com>
65535
65536         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
65537         doesn't interfere.
65538
65539 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65540
65541         * m4/ftruncate.m4: Check for chsize.
65542         Link with ftruncate.o unconditionally if ftruncate is missing.
65543         This was required when cross-compiling to i586-mingw32msvc.
65544
65545 2001-04-08  Jim Meyering  <meyering@lucent.com>
65546
65547         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
65548         recomputed; that's necessary when the offset spans a DST transition.
65549         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
65550
65551 2001-04-02  Jim Meyering  <meyering@lucent.com>
65552
65553         * lib/regex.h, regex.c: Update from GNU libc.
65554
65555 2001-03-24  Jim Meyering  <meyering@lucent.com>
65556
65557         * m4/jm-macros.m4: Require autoconf-2.49d.
65558
65559 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
65560
65561         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
65562
65563 2001-03-19  Paul Eggert  <eggert@twinsun.com>
65564
65565         * lib/version-etc.c (version_etc_copyright): Update to 2001.
65566
65567 2001-03-17  Jim Meyering  <meyering@lucent.com>
65568
65569         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
65570         now that the version in autoconf is equivalent.
65571         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
65572
65573         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
65574         Suggestion from Akim Demaille.
65575
65576         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
65577         (jm_PREREQ_TEMPNAME): New function.
65578
65579 2001-03-16  Paul Eggert  <eggert@twinsun.com>
65580
65581         * lib/tempname.c (uint64_t): Define to uintmax_t if
65582         not defined, and if UINT64_MAX is not defined.
65583         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
65584         Reported by John David Anglin.
65585
65586 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
65587
65588         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
65589         resolve alias if codeset is empty.
65590         * lib/config.charset (BeOS): Use wildcard syntax.
65591
65592 2001-03-13  Jim Meyering  <meyering@lucent.com>
65593
65594         * lib/path-concat.c (path_concat)
65595         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
65596         concatenating e.g., `C:' and `foo'.
65597         From Bruno Haible.
65598
65599 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65600
65601         * lib/localcharset.c (locale_charset): Don't use
65602         setlocale(LC_CTYPE,NULL). Don't return NULL.
65603         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
65604
65605 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
65606
65607         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
65608         support for DOS/DJGPP.
65609
65610 2001-03-01  Paul Eggert  <eggert@twinsun.com>
65611
65612         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
65613         lacks mkstemp.  Compile our own tempname.c if we compile our own
65614         mkstemp.c, as mkstemp relies on tempname.
65615
65616 2001-03-01  Jim Meyering  <meyering@lucent.com>
65617
65618         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
65619         AH_VERBATIM really does output its argument verbatim.
65620
65621 2001-02-28  Paul Eggert  <eggert@twinsun.com>
65622
65623         * lib/Makefile.am (libfetish_a_SOURCES):
65624         Add dup-safer.c, fopen-safer.c.
65625         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
65626
65627         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
65628         * lib/unistd-safer.h: New files.
65629
65630 2001-02-25  Paul Eggert  <eggert@twinsun.com>
65631
65632         The mkstemp replacement is taken from glibc 2.2.2, with some
65633         portability fixes for use outside glibc, as follows:
65634
65635         * lib/tempname.c (struct_stat64): New macro.
65636         (direxists, __gen_tempname): Use it.
65637         This avoids a portability problem with Solaris 8.
65638
65639         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
65640         (<stddef.h>, <stdint.h>, <string.h>):
65641         Include only if STDC_HEADERS || _LIBC.
65642         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
65643         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
65644         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
65645         (__set_errno): Define this macro if <errno.h> doesn't.
65646         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
65647         Define these macros if <stdio.h> doesn't.
65648         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
65649         Define these macros if <sys/stat.h>
65650         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
65651         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
65652         __xstat64): Define if not _LIBC.
65653         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
65654         (__gen_tempname): Invoke gettimeofday only if
65655         HAVE_GETTIMEOFDAY || _LIBC;
65656         otherwise, fall back on plain "time".
65657         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
65658
65659         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
65660
65661         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
65662
65663 2001-02-18  Paul Eggert  <eggert@twinsun.com>
65664
65665         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
65666
65667 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65668
65669         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
65670         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
65671         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
65672         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
65673
65674 2001-02-17  Paul Eggert  <eggert@twinsun.com>
65675
65676         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
65677         Remove workaround macros for hosts that have mbrtowc but not
65678         mbstate_t, as we now insist on proper declarations for both
65679         before using mbrtowc.
65680
65681 2001-02-17  Jim Meyering  <meyering@lucent.com>
65682
65683         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
65684         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
65685         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
65686         UnixWare 7.1.1.
65687
65688         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
65689         rather than AC_CACHE_VAL.
65690
65691 2001-02-17  Jim Meyering  <meyering@lucent.com>
65692
65693         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
65694         around included file name.
65695
65696         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
65697
65698         * lib/strftime.c: Update from GNU libc (the only changes were to
65699         comments).
65700
65701 2001-02-17  Jim Meyering  <meyering@lucent.com>
65702
65703         * lib/regex.c: Update from libc.
65704
65705 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
65706
65707         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
65708         clash.
65709
65710 2001-02-16  Paul Eggert  <eggert@twinsun.com>
65711
65712         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
65713         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
65714         Reported by Mark Hounschell via Paul Eggert.
65715
65716 2001-02-07  Jim Meyering  <meyering@lucent.com>
65717
65718         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
65719
65720 2001-02-05  Jim Meyering  <meyering@lucent.com>
65721
65722         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
65723         it includes the patch required for `large file' support with at least
65724         HP-UX's 10.20 /bin/cc.
65725
65726 2001-02-03  Jim Meyering  <meyering@lucent.com>
65727
65728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
65729         AS_IF, now that it works once again (mysteriously).
65730         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65731
65732 2001-01-30  Jim Meyering  <meyering@lucent.com>
65733
65734         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
65735         * m4/chown.m4: Rename conftestchown to conftest.chown.
65736         * m4/rename.m4: s/conftestdir/conftest.d1/ and
65737         s/conftestdir2/conftest.d2/.
65738         * m4/utimes.m4: s/conftestdata/conftest.data/
65739         Inspired by Pavel Roskin's change in autoconf.
65740
65741 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
65742
65743         * lib/config.charset: Update for FreeBSD 4.2.
65744
65745 2001-01-27  Jim Meyering  <meyering@lucent.com>
65746
65747         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
65748         a use of AS_IF.
65749         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
65750
65751 2001-01-26  Jim Meyering  <meyering@lucent.com>
65752
65753         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
65754         quotearg.c includes it.
65755
65756 2001-01-26  Jim Meyering  <meyering@lucent.com>
65757
65758         * lib/quotearg.c: Include stddef.h.
65759         * lib/quote.c: Include stddef.h.
65760         Reported by Axel Kittenberger.
65761
65762         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
65763         line in double quotes so that it evokes a better diagnostic.
65764         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
65765         Reported by Axel Kittenberger.
65766
65767 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
65768
65769         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
65770         as if it was a `charset'.
65771
65772 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65773
65774         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
65775         has const.
65776
65777 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
65778
65779         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
65780         to avoid a warning.  Add back 'const' to inptr.
65781
65782 2001-01-20  Jim Meyering  <meyering@lucent.com>
65783
65784         Be sure that headers are checked before used in code compiled
65785         for the type checks.
65786         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
65787         In place of that, invoke jm_CHECK_ALL_TYPES.
65788         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
65789         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
65790         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
65791         The check for ssize_t was mistakenly run before the test for unistd.h.
65792
65793         The configure-time check for stdbool.h was missing.
65794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
65795         (jm_PREREQ_HASH): New function.
65796
65797 2001-01-17  Jim Meyering  <meyering@lucent.com>
65798
65799         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
65800         for autoconf-2.49c.
65801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
65802
65803 2001-01-16  Jim Meyering  <meyering@lucent.com>
65804
65805         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
65806         From Bruno Haible.
65807
65808 2001-01-14  Jim Meyering  <meyering@lucent.com>
65809
65810         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
65811         foo and bar.  Create conftestdir/ in the script, not in the C code.
65812         Remove directories in the script, not in the C code.
65813         Remove conftestdir{,2} before trying to create the directory.
65814         Make the entire configure script fail if the mkdir fails.
65815
65816 2001-01-14  Jim Meyering  <meyering@lucent.com>
65817
65818         * lib/rename.c: New file.  From Volker Borchert.
65819         Include stdlib.h, string.h or strings.h, and xalloc.h.
65820         Use strip_trailing_slashes rather than open-coding it.
65821
65822 2001-01-03  Paul Eggert  <eggert@twinsun.com>
65823
65824         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
65825
65826 2001-01-03  Jim Meyering  <meyering@lucent.com>
65827
65828         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
65829         of local `inptr' to avoid warning with some system declarations of
65830         iconv.
65831
65832 2001-01-02  Volker Borchert  <bt@teknon.de>
65833
65834         * m4/rename.m4: New file.
65835         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
65836
65837 2001-01-01  Jim Meyering  <meyering@lucent.com>
65838
65839         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
65840         even on systems with utmpx.h.  It's necessary for the declaration of
65841         utmp's ut_user member.  Reported by Andreas Jaeger.
65842
65843         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
65844         available. They are required for the declarations of getgrgid and
65845         getpwuid resp.
65846         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
65847         Reported by Andreas Jaeger.
65848
65849 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
65850
65851         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
65852         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
65853         so `make install' also works in VPATH builds.
65854
65855 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
65856
65857         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
65858         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
65859         can be used in subdirectories.
65860
65861 2000-12-29  Paul Eggert  <eggert@twinsun.com>
65862
65863         * lib/modechange.c: Do not assume that mode_t uses the
65864         traditional octal encoding.  E.g. "chmod 1 FOO" should set
65865         the other-execute bit of FOO even if S_IXOTH != 1.
65866
65867         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
65868         WOTH, XOTH, ALLM): New macros.
65869         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
65870          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
65871         Use them.
65872         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
65873         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
65874         (mode_compile):
65875         No need to use uintmax_t; unsigned long is long enough.
65876         Don't bother to get suffix since we don't use it.
65877
65878 2000-12-26  Jim Meyering  <meyering@lucent.com>
65879
65880         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
65881         better with autoheader.
65882
65883 2000-12-24  Jim Meyering  <meyering@lucent.com>
65884
65885         * lib/hash.c (is_prime): Return explicit boolean values.
65886         (hash_get_first): Return NULL to appease Irix5.6's 89.
65887         Reported by Nelson Beebe.
65888
65889 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
65890
65891         * lib/localcharset.c (locale_charset): Add support for Win32.
65892
65893 2000-12-18  Paul Eggert  <eggert@twinsun.com>
65894
65895         * lib/physmem.h, lib/physmem.c: New files.
65896
65897         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
65898         (noinst_HEADERS): Add physmem.h.
65899
65900         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
65901         't' for compatibility with Solaris 8 sort.
65902
65903 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
65904
65905         * lib/config.charset: Add support for BeOS.
65906
65907 2000-12-17  Jim Meyering  <meyering@lucent.com>
65908
65909         * m4/dos.m4 (jm_AC_DOS): New file and macro.
65910         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
65911
65912 2000-12-16  Jim Meyering  <meyering@lucent.com>
65913
65914         This bug had a serious impact on chown: `chown N:M FILE' (for integer
65915         N and M) would have treated it like `chown N:N FILE'.
65916
65917         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
65918
65919 2000-12-16  Jim Meyering  <meyering@lucent.com>
65920
65921         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
65922         SHELLS_FILE to a file name that's useful on djgpp systems.
65923         Include stdlib.h.
65924         (ADDITIONAL_DEFAULT_SHELLS): Define.
65925         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
65926         Based mostly on a patch from Prashant TR.
65927
65928 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
65929
65930         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
65931         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
65932         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
65933
65934 2000-12-08  Andreas Schwab  <schwab@suse.de>
65935
65936         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
65937         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
65938
65939 2000-12-07  Jim Meyering  <meyering@lucent.com>
65940
65941         * lib/stripslash.c (ISSLASH): Define.
65942         (strip_trailing_slashes): Use ISSLASH rather than comparing against
65943         `/'.
65944         From Prashant TR.
65945
65946         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
65947         (dir_name_r): Declare this function as static.
65948         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
65949         manifest itself on a name containing a mix of slashes and
65950         backslashes.
65951         Make this function work with names starting with a DOS-style
65952         drive letter and colon prefix.
65953         (dir_name): Append `.' if necessary.
65954         Based mostly on patches from Prashant TR and Eli Zaretskii.
65955
65956         * lib/dirname.h (dir_name_r): Remove prototype.
65957
65958 2000-12-06  Paul Eggert  <eggert@twinsun.com>
65959
65960         * m4/off_t-format.m4: Remove this file.
65961         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
65962
65963 2000-12-06  Jim Meyering  <meyering@lucent.com>
65964
65965         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
65966         replacement strtoull, we may well need the replacement strtoul, too.
65967         Check for declarations of strtoul and strtoull.
65968         Check for strtol.  Mainly as a cue to cause automake to include
65969         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
65970         Check for limits.h -- strtol.c needs it.
65971
65972 2000-12-05  Jim Meyering  <meyering@lucent.com>
65973
65974         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
65975
65976 2000-12-04  Jim Meyering  <meyering@lucent.com>
65977
65978         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
65979         Also include memory.h, stdlib.h, unistd.h if appropriate.
65980         Reported by Andreas Jaeger (conflicting declaration of malloc).
65981
65982 2000-12-02  Jim Meyering  <meyering@lucent.com>
65983
65984         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
65985         * m4/jm-macros.m4 (jm_MACROS): require it.
65986
65987 2000-12-02  Jim Meyering  <meyering@lucent.com>
65988
65989         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
65990
65991 2000-12-01  Paul Eggert  <eggert@twinsun.com>
65992
65993         * lib/memrchr.c: Include <config.h> before any system include file.
65994
65995 2000-11-30  Jim Meyering  <meyering@lucent.com>
65996
65997         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
65998
65999 2000-11-30  Jim Meyering  <meyering@lucent.com>
66000
66001         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66002
66003 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66004
66005         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66006
66007 2000-11-26  Jim Meyering  <meyering@lucent.com>
66008
66009         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66010
66011 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66012
66013         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66014         size of (size_t) -1; it's not portable.
66015
66016 2000-11-17  Jim Meyering  <meyering@lucent.com>
66017
66018         * lib/strstr.c: Update from GNU libc.
66019
66020 2000-11-17  Akim Demaille  <akim@epita.fr>
66021
66022         * lib/obstack.h: Formatting changes.
66023         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66024         prevent type checking.
66025         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66026         cast the value to (void *): assigning a `foo *' to a `void *'
66027         variable is valid.
66028         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66029
66030 2000-11-16  Jim Meyering  <meyering@lucent.com>
66031
66032         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66033
66034 2000-11-11  Jim Meyering  <meyering@lucent.com>
66035
66036         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66037
66038 2000-11-10  Jim Meyering  <meyering@lucent.com>
66039
66040         * lib/obstack.h: Update from GNU libc.
66041         * lib/obstack.c: Likewise.
66042
66043 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66044
66045         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66046
66047 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66048
66049         * lib/getusershell.c (setusershell): Use rewind rather than
66050         fseek/fseeko, to avoid configuration hassles with fseeko.
66051         Don't bother opening SHELLS_FILE if shellstream is NULL;
66052         it's not necessary.
66053
66054 2000-11-05  Jim Meyering  <meyering@lucent.com>
66055
66056         * lib/makepath.h (make_dir): Declare.
66057         * lib/makepath.c (make_dir): Remove `static' attribute.
66058         Tweak a comment.
66059
66060 2000-11-04  Jim Meyering  <meyering@lucent.com>
66061
66062         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66063
66064 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66065
66066         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66067         last one in a bucket, advance to the next bucket.
66068
66069 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66070
66071         * lib/fnmatch.c: Do not comment out all the code if we are using
66072         the GNU C library, because in some cases we are replacing buggy
66073         code in the GNU C library itself.
66074
66075 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66076
66077         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66078         (regex_compile): Catch bogus \(\1\).
66079
66080 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66081
66082         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66083         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66084         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66085
66086 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66087
66088         * lib/error.h, getline.h, modechange.h:
66089         Remove "2000" from Copyright line, as the file hasn't been
66090         changed this year other than in the copyright notice.
66091
66092         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66093         was changed this year.
66094
66095 2000-10-29  Jim Meyering  <meyering@lucent.com>
66096
66097         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66098         renaming.
66099         * m4/ls-mntd-fs.m4: Likewise
66100
66101 2000-10-29  Jim Meyering  <meyering@lucent.com>
66102
66103         * lib/xstat.in: Fix grammar in comment.
66104
66105 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66106
66107         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66108         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66109         doesn't define __restrict_arr.
66110
66111 2000-10-28  Jim Meyering  <meyering@lucent.com>
66112
66113         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66114         (jm_PREREQ_MEMCHR): New function.
66115
66116 2000-10-28  Jim Meyering  <meyering@lucent.com>
66117
66118         * lib/memchr.c: Update from libc.
66119         Adjust for portability:
66120         [HAVE_STDLIB_H]: Include stdlib.h.
66121         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66122         Undef __memchr, too.
66123         [!weak_alias]: Define __memchr to memchr.
66124
66125         * lib/regex.c: Update from libc.
66126         * lib/regex.h: Likewise.
66127         * lib/getopt1.c: Likewise.
66128         * lib/memcmp.c: Likewise.
66129
66130         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66131         Avoid using fseek, when possible -- it's broken by design.
66132         Patch by Ulrich Drepper.
66133
66134 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66135
66136         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66137         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66138         Giving in to popular pressure to shut up the compiler with casts.
66139
66140 2000-10-26  Jim Meyering  <meyering@lucent.com>
66141
66142         * lib/strftime.c: Update from libc.
66143
66144 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66145
66146         * regex.c: More `unsigned char' -> `re_char' changes.
66147         Also change several `int' into `re_wchar_t'.
66148         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66149         (PUSH_FAILURE_POINTER): Don't cast any more.
66150         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66151         We want GCC to complain, since this piece of code makes
66152         re_match non-reentrant, which *should* be fixed.
66153         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66154         (EXTEND_BUFFER): Use RETALLOC.
66155         (SET_LIST_BIT): Don't cast.
66156         (re_wchar_t): New type.
66157         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66158         that those two functions will always properly return.
66159         (IMMEDIATE_QUIT_CHECK): Cast to void.
66160         (analyse_first): Use recursion rather than an explicit stack.
66161         (re_compile_fastmap): Can't fail anymore.
66162         (re_search_2): Don't check re_compile_fastmap for failure.
66163         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66164         Now also sets the new value (passed in a new argument).
66165         (re_match_2_internal): Use it.
66166         Also, use a new var `reg' of type size_t when looping through regs
66167         rather than reuse the inappropriate `mcnt'.
66168
66169 2000-10-25  Jim Meyering  <meyering@lucent.com>
66170
66171         * lib/obstack.c: Update from libc.
66172
66173 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66174
66175         * regex.c (regex_compile): Change the way of handling a range from
66176         a char less than 256 to a char not less than 256.
66177
66178 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66179
66180         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66181         NT-Emacs only.
66182         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66183         so that re_search functions only quit when callers expect them to.
66184
66185 2000-10-23  Jim Meyering  <meyering@lucent.com>
66186
66187         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66188         wrong.  That set_locale call must not have any side effects.
66189         From Paul Eggert.
66190
66191 2000-10-22  Jim Meyering  <meyering@lucent.com>
66192
66193         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66194         [CYCLIC]: Remove now-unused definition.
66195
66196         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66197         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66198         Suggestion from Ulrich Drepper.
66199
66200 2000-10-21  Jim Meyering  <meyering@lucent.com>
66201
66202         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66203         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66204         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66205
66206 2000-10-21  Jim Meyering  <meyering@lucent.com>
66207
66208         * lib/dirname.c (memrchr): Declare if necessary.
66209         (dir_name): Remove the restriction that there be no
66210         trailing slashes.  Now, this code skips past them, effectively
66211         ignoring them.
66212         [TEST_DIRNAME] (main): New unit tests.
66213
66214         * lib/memrchr.c: New file from GNU libc.
66215         Undef __memrchr, too.
66216         [!weak_alias]: Define __memrchr to memrchr.
66217         Guard weak_alias use with `#ifdef weak_alias'.
66218
66219 2000-10-21  Jim Meyering  <meyering@lucent.com>
66220
66221         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66222         (dir_name): Use dir_name_r.
66223         * lib/dirname.h (dir_name_r): Declare it.
66224
66225 2000-10-17  Jim Meyering  <meyering@lucent.com>
66226
66227         * lib/quote.h (PARAMS): Define and use.
66228         Reported by Akim Demaille.
66229
66230         * lib/getopt.c: Update from libc.
66231
66232 2000-10-16  Jim Meyering  <meyering@lucent.com>
66233
66234         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66235         setlocale.
66236         From Jan Fedak.
66237
66238 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66239
66240         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66241
66242 2000-09-25  Jim Meyering  <meyering@lucent.com>
66243
66244         * lib/md5.h (rol): Define (from GnuPG).
66245
66246         * lib/sha.c: Give credit (GnuPG) where due.
66247         (M): Use rol rather than open-coding it.
66248         Add a FIXME comment.
66249
66250 2000-09-21  Jim Meyering  <meyering@lucent.com>
66251
66252         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66253         Reported by Michael Stone.
66254
66255 2000-09-20  Jim Meyering  <meyering@lucent.com>
66256
66257         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66258         (noinst_HEADERS): Add sha.h.
66259         Based on code from Scott G. Miller and from GnuPG.
66260
66261 2000-09-18  Jim Meyering  <meyering@lucent.com>
66262
66263         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66264         LIBS. Otherwise, everyone ends up linking with -lelf for some
66265         configurations.
66266         Reported by Mike Stone.
66267
66268 2000-09-15  Jim Meyering  <meyering@lucent.com>
66269
66270         * lib/regex.c: Update from libc.
66271
66272 2000-09-10  Jim Meyering  <meyering@lucent.com>
66273
66274         * lib/getopt.c (_getopt_internal): Update from glibc.
66275
66276 2000-09-09  Jim Meyering  <meyering@lucent.com>
66277
66278         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66279         think it should be used as a general replacement for isascii.
66280         * lib/fnmatch.c: Likewise.
66281         * lib/mbswidth.c: Likewise
66282         * lib/regex.c: Likewise.
66283
66284         Don't use atoi.
66285         * lib/userspec.c: Include sys/param.h and limits.h.
66286         Include xstrtol.h.
66287         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66288         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66289         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66290         UID, GID.  Check range.
66291
66292 2000-09-06  Jim Meyering  <meyering@lucent.com>
66293
66294         * lib/getopt.c (_getopt_internal): Update from glibc.
66295
66296 2000-08-30  Jim Meyering  <meyering@lucent.com>
66297
66298         * lib/strftime.c: Merge in changes from GNU libc.
66299
66300 2000-08-26  Jim Meyering  <meyering@lucent.com>
66301
66302         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66303         * m4/fpending.m4: New file.
66304
66305 2000-08-26  Jim Meyering  <meyering@lucent.com>
66306
66307         * lib/closeout.c: Include "__fpending.h".
66308         (close_stdout_status): Return right away if there's nothing to flush.
66309
66310         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66311         * lib/__fpending.c: New file.
66312         * lib/__fpending.h: New file.
66313
66314 2000-08-20  Jim Meyering  <meyering@lucent.com>
66315
66316         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66317         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66318         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66319
66320 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66321
66322         Improve fileutils installation on systems where running
66323         programs (like install) can't be unlinked.
66324         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66325         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66326
66327 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66328
66329         Standardize on "memory exhausted" instead of "Memory exhausted"
66330         or "virtual memory exhausted".
66331         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66332         "virtual memory exhausted".
66333         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66334         our own message.
66335         * lib/userspec.c (parse_user_spec): Likewise.
66336         * lib/bumpalloc.h: comment fix
66337         * lib/same.c, userspec.c: Include xalloc.h.
66338
66339         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66340         not char *const and pointing to a constant array.
66341         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66342         (xrealloc): Comment fix.
66343
66344         * lib/userspec.c (parse_user_spec):
66345         Don't translate a message until just before returning,
66346         to avoid unnecessary translation.
66347
66348 2000-08-07  Jim Meyering  <meyering@lucent.com>
66349
66350         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66351         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66352         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66353         getgroups.c, gethostname.c, getopt.h, group-member.c,
66354         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66355         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66356         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66357         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66358         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66359         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66360         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66361         yesno.c: Back out Copyright date changes for each file with no change
66362         this year.  This eases coordination with other programs using the same
66363         source code modules.  From Paul Eggert.
66364
66365 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66366
66367         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66368         not char, for compatibility with glibc 2.1.3 strftime.c.
66369
66370 2000-08-03  Greg McGary  <greg@mcgary.org>
66371
66372         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66373         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66374         (EXTEND_BUFFER): Use them.
66375
66376 2000-08-01  Jim Meyering  <meyering@lucent.com>
66377
66378         * lib/dirname.c (ISSLASH): Define.
66379         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66380         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66381         both `\' and `/' may be use as path separators.
66382         Based on a patch from Prashant TR.
66383
66384 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66385
66386         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66387         slot vector a constant, since it might get modified.
66388
66389 2000-07-31  Jim Meyering  <meyering@lucent.com>
66390
66391         * lib/xmalloc.c: Use `virtual memory exhausted', not
66392         `Memory exhausted'.
66393         * lib/obstack.c (print_and_abort): Likewise.
66394
66395 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66396
66397         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66398         buffer, so that the caller can always quote one small
66399         component of a "memory exhausted" message in slot 0.
66400         From a suggestion by Jim Meyering.
66401
66402 2000-07-30  Jim Meyering  <meyering@lucent.com>
66403
66404         * lib/makepath.c (make_path): Quote the other instance, too.
66405
66406         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66407         (STATIC_BUF_SIZE): Define.
66408         (quotearg_n_options): Use only statically allocated storage when
66409         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66410         than STATIC_BUF_SIZE.
66411
66412 2000-07-29  Jim Meyering  <meyering@lucent.com>
66413
66414         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66415         * lib/dirname.c (dir_name): Likewise.
66416
66417         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66418         `/'.
66419
66420         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66421         (dir_name): Assert that there are no trailing slashes.
66422
66423 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66424
66425         * lib/mbswidth.h (mbswidth): Add a flags argument.
66426         (mbswidth): New declaration.
66427         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66428         * lib/mbswidth.c (mbswidth): Add a flags argument.
66429         (mbsnwidth): New function.
66430
66431 2000-07-24  Jim Meyering  <meyering@lucent.com>
66432
66433         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66434
66435 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66436
66437         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66438
66439 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66440
66441         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66442         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66443         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66444         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66445         invoke multibyte primitives.
66446
66447 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66448
66449         * lib/quotearg.c:
66450         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66451         so that mbstate_t is always defined.
66452
66453         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66454         be 1 in at least one GCC installation, and this configuration
66455         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66456         performance on hosts that have mbrtowc but have only unibyte
66457         locales, but I assume these hosts are rare.
66458
66459 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66460
66461         * lib/mbswidth.c (_XOPEN_SOURCE):
66462         Don't define; this causes problems on Solaris 7.
66463         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66464
66465 2000-07-23  Jim Meyering  <meyering@lucent.com>
66466
66467         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66468         too: getgrgid, getpwuid, getuid.
66469
66470 2000-07-23  Jim Meyering  <meyering@lucent.com>
66471
66472         * lib/basename.c (base_name): Add an assertion.
66473
66474 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66475
66476         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66477         shadow its mbsinit function.
66478
66479 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66480
66481         * lib/mbswidth.h: New file.
66482         * lib/mbswidth.c: New file.
66483         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66484         (noinst_HEADERS): Add mbswidth.h.
66485
66486 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66487
66488         * lib/config.charset: Add support for FreeBSD. Improve support for
66489         HP-UX and IRIX 6.
66490
66491 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66492
66493         * m4/mbswidth.m4: New file.
66494         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66495
66496 2000-07-15  Jim Meyering  <meyering@lucent.com>
66497
66498         * lib/makepath.c: Include quote.h.
66499         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66500         corresponding argument in a `quote (...)' call.
66501         Give better diagnostics.
66502
66503         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66504         (noinst_HEADERS): Add quote.h.
66505
66506         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66507         from tar's src/misc.c.
66508         * lib/quote.h: New file.  Prototypes for same.
66509
66510 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66511
66512         From a suggestion by Bruno Haible.
66513         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66514         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66515         to decide whether to define the BeOS workaround macro;
66516         this adjusts to the change to AC_MBSTATE_T.
66517
66518 2000-07-14  Jim Meyering  <meyering@lucent.com>
66519
66520         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66521         jm_AC_TYPE_UINTMAX_T.
66522
66523 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66524
66525         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66526
66527         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
66528         quotearg_buffer_restyled): Add support for
66529         clocale_quoting_style.  Undo previous change to
66530         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
66531         and "{RIGHT QUOTATION MARK}" msgids.
66532
66533 2000-07-10  Paul Eggert  <eggert@twinsun.com>
66534
66535         From a suggestion by Bruno Haible.
66536         * m4/mbstate_t.m4 (AC_MBSTATE_T):
66537         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
66538         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
66539         and mbstate_t, to a single-part test that simply defines mbstate_t.
66540         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
66541         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
66542
66543 2000-07-10  Jim Meyering  <meyering@lucent.com>
66544
66545         * m4/strerror_r.m4: Mirror the correction made in autoconf.
66546
66547         * m4/gnu-source.m4: Output to confdefs.h directly.
66548         Suggestion from Akim Demaille.
66549
66550 2000-07-09  Paul Eggert  <eggert@twinsun.com>
66551
66552         The old behavior of quoting `like this' doesn't look good with
66553         newer, ISO-style fonts.  See:
66554         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
66555
66556         Instead, quote "like this" by default.  Let the translator
66557         tailor the locale-specific quoting behavior by providing
66558         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
66559
66560         * lib/quotearg.c (N_): New macro.
66561         (gettext_default): New function.
66562         (quotearg_buffer_restyled): Use
66563         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
66564         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
66565
66566 2000-07-09  Jim Meyering  <meyering@lucent.com>
66567
66568         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
66569         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
66570
66571         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
66572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
66573
66574 2000-07-09  Jim Meyering  <meyering@lucent.com>
66575
66576         * lib/Most files: Update copyright dates to include 2000.
66577
66578 2000-07-08  Jim Meyering  <meyering@lucent.com>
66579
66580         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
66581         if not defined.
66582         (xgethostname): Remove now-unnecessary #ifdef.
66583         Move declaration of `err' into loop where it's used.
66584
66585 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66586         and Bruno Haible  <haible@clisp.cons.org>
66587
66588         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
66589         only if the test for an object-type mbstate_t fails.  This
66590         prevents us from mistakenly reporting that mbstate_t is a
66591         system object type after we "#define mbstate_t int" to work
66592         around its lack.
66593
66594 2000-07-05  Paul Eggert  <eggert@twinsun.com>
66595         and Bruno Haible  <haible@clisp.cons.org>
66596
66597         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
66598
66599 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66600
66601         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
66602         to strerror_r.
66603         Include <ctype.h> for use of isalpha.
66604
66605 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66606
66607         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
66608         by allocating a larger buffer. Test the gethostname return value for
66609         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
66610         returns an error and ENAMETOOLONG isn't defined.
66611
66612 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
66613
66614         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
66615         dimension.
66616
66617 2000-07-04  Jim Meyering  <meyering@lucent.com>
66618
66619         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
66620         of the deprecated AC_CHECKING.
66621
66622 2000-07-04  Jim Meyering  <meyering@lucent.com>
66623
66624         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
66625         Reported by Bruno Haible.
66626
66627 2000-07-04  Jim Meyering  <meyering@lucent.com>
66628
66629         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
66630         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
66631         lacks mbrtowc.
66632
66633 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66634
66635         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
66636         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
66637
66638 2000-07-03  Paul Eggert  <eggert@twinsun.com>
66639         and Bruno Haible  <haible@clisp.cons.org>
66640
66641         * lib/quotearg.c (mbrtowc):
66642         Assign to *pwc, and return 1 only if result is nonzero.
66643         (iswprint): Use ISPRINT when substituting our own mbrtowc.
66644
66645 2000-07-03  Jim Meyering  <meyering@lucent.com>
66646
66647         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
66648
66649 2000-07-03  Jim Meyering  <meyering@lucent.com>
66650
66651         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
66652         This is necessary to get a definition of e.g., UTMP_FILE on
66653         HP-UX 10.20.
66654         From Bob Proulx.
66655
66656 2000-07-02  Jim Meyering  <meyering@lucent.com>
66657
66658         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
66659
66660         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
66661         AC_LIBOBJ(function_name).
66662         * m4/chown.m4: Likewise.
66663         * m4/fnmatch.m4: Likewise.
66664         * m4/ftruncate.m4: Likewise.
66665         * m4/getgroups.m4: Likewise.
66666         * m4/getline.m4: Likewise.
66667         * m4/group-member.m4: Likewise.
66668         * m4/jm-macros.m4: Likewise.
66669         * m4/lstat.m4: Likewise.
66670         * m4/malloc.m4: Likewise.
66671         * m4/memcmp.m4: Likewise.
66672         * m4/nanosleep.m4: Likewise.
66673         * m4/putenv.m4: Likewise.
66674         * m4/realloc.m4: Likewise.
66675         * m4/regex.m4: Likewise.
66676         * m4/stat.m4: Likewise.
66677         * m4/strftime.m4: Likewise.
66678
66679 2000-07-02  Jim Meyering  <meyering@lucent.com>
66680
66681         * lib/quotearg.c (mbstate_t): Don't define here.
66682
66683 2000-07-02  Jim Meyering  <meyering@lucent.com>
66684
66685         * lib/nanosleep.c (SIGCONT): Define if not already defined.
66686
66687 2000-07-01  Jim Meyering  <meyering@lucent.com>
66688
66689         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
66690
66691 2000-07-01  Jim Meyering  <meyering@lucent.com>
66692
66693         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
66694         problem.
66695
66696 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66697
66698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
66699         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
66700
66701 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
66702
66703         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
66704         per change in ../m4/ls-mntd-fs.m4.
66705         (read_filesystem_list): Ignore symbolic links.
66706
66707 2000-06-29  Jim Meyering  <meyering@lucent.com>
66708
66709         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
66710         for declaration of strcmp.
66711
66712         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
66713
66714         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
66715         Avoid warning by casting result to `char *' to remove `const'.
66716
66717 2000-06-28  Jim Meyering  <meyering@lucent.com>
66718
66719         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
66720         included by quotearg.c, for which we perform this test.  From
66721         Bruno Haible.
66722
66723 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66724
66725         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
66726         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
66727         <utmpx.h> exists, put readutmp.o into LIBOBJS.
66728
66729 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
66730
66731         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
66732
66733 2000-06-26  Paul Eggert  <eggert@twinsun.com>
66734
66735         savedir now sets errno on failure and invokes xmalloc to get memory.
66736         Fix a couple of other minor bugs while we're at it.
66737
66738         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
66739         (NAMLEN): Remove macro.
66740         (malloc, realloc): Remove decls.
66741         (stpcpy): Likewise.
66742         ("xalloc.h"): Include.
66743         (NAME_SIZE_DEFAULT): New macro.
66744         (savedir): Use xmalloc / xrealloc to allocate memory.
66745         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
66746         Skip "" directory entries.
66747         Use strlen to calculate directory entry length, since the old method
66748         is rarely used these days and isn't worth supporting.
66749         Don't use a pointer after freeing it.
66750         Check for integer overflow when calculating allocation size.
66751         Use memcpy to copy entries, instead of stpcpy.
66752         Set errno properly when returning NULL.
66753         Check for readdir error.
66754
66755 2000-06-26  Jim Meyering  <meyering@lucent.com>
66756
66757         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
66758
66759 2000-06-25  Jim Meyering  <meyering@lucent.com>
66760
66761         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
66762         Linux header bug when _XOPEN_SOURCE is defined to 500.
66763
66764 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66765
66766         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
66767         deficiency.
66768
66769 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
66770
66771         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
66772         Include xalloc.h.
66773         Don't include <stdlib.h>.  Don't declare malloc, realloc.
66774
66775 2000-06-24  Jim Meyering  <meyering@lucent.com>
66776
66777         * m4/strerror_r.m4: Revive this file -- to try out an experimental
66778         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
66779         for which strerror does return char*, but which lacks a conveniently
66780         accessible declaration of the function.  If the compile-test says
66781         strerror_r doesn't work, then resort to a `run'-test that works on
66782         BeOS and segfaults on DEC Unix.
66783
66784 2000-06-24  Jim Meyering  <meyering@lucent.com>
66785
66786         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
66787
66788 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66789
66790         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
66791         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
66792
66793 2000-06-23  Paul Eggert  <eggert@twinsun.com>
66794
66795         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
66796         (mbrtowc, mbstate_t): Define substitutes if
66797         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
66798         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
66799         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
66800
66801 2000-06-23  Jim Meyering  <meyering@lucent.com>
66802
66803         * m4/afs.m4: Add missing AC_MSG_RESULT.
66804         Reported by Bruno Haible.
66805
66806         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
66807         Suggestion from Bruno Haible.
66808
66809 2000-06-23  Jim Meyering  <meyering@lucent.com>
66810
66811         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
66812
66813 2000-06-21  Jim Meyering  <meyering@lucent.com>
66814
66815         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
66816
66817 2000-06-21  Jim Meyering  <meyering@lucent.com>
66818
66819         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
66820         (noinst_HEADERS): Add getstr.h.
66821
66822         * lib/getline.c (getstr): Move into a separate file.
66823         * lib/getstr.c (getstr): New file, extracted from getline.c, with
66824         the following changes: new parameter, delim2; both delim[12]
66825         parameters have type `int', not `char'.  The latter would lose
66826         with 8-bit delimiters.
66827         * lib/getstr.h: New file.
66828
66829 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66830
66831         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
66832         than 1024, return a memory chunk of least possible size, instead
66833         of size PATH_MAX + 2. In the loop, increment the size proportionally.
66834         Use free/xmalloc instead of xrealloc to avoid copying for very long
66835         paths.
66836
66837 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66838
66839         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
66840         the empty string.
66841
66842 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
66843
66844         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
66845         address, not strdup.  Include <stdlib.h> and don't declare free().
66846
66847 2000-06-19  Jim Meyering  <meyering@lucent.com>
66848
66849         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
66850
66851 2000-06-18  Jim Meyering  <meyering@lucent.com>
66852
66853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
66854
66855         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
66856         `checking whether...' message to be consistent with that of the
66857         lstat test.
66858
66859 2000-06-18  Jim Meyering  <meyering@lucent.com>
66860
66861         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
66862         Besides, these days every porting target provides a mkdir function.
66863
66864         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
66865         needed. (this snippet comes from src/system.h).
66866
66867 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
66868
66869         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
66870
66871 2000-06-15  Paul Eggert  <eggert@twinsun.com>
66872
66873         * lib/human.c (adjust_value): New function.
66874         (human_readable_inexact): Apply rounding style even when
66875         printing approximate values.
66876
66877 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66878
66879         * lib/human.c (human_readable_inexact): Allow an input block
66880         size that is not a multiple of the output block size, and vice versa.
66881         Reported by Piergiorgio Sartor.
66882
66883 2000-06-14  Paul Eggert  <eggert@twinsun.com>
66884
66885         * lib/getdate.y (get_date): Apply relative times after time
66886         zone indicator, not before.  Reported by Todd A. Jacobs.
66887
66888 2000-06-13  Jim Meyering  <meyering@lucent.com>
66889
66890         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
66891
66892         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
66893
66894 2000-06-12  Paul Eggert  <eggert@twinsun.com>
66895
66896         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
66897
66898 2000-06-12  Jim Meyering  <meyering@lucent.com>
66899
66900         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
66901         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
66902         optional argument.
66903         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
66904         the optional argument, `lib'.
66905
66906 2000-06-08  Jim Meyering  <meyering@lucent.com>
66907
66908         * m4/largefile.m4: Remove file (now that it's part of autoconf).
66909
66910 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66911
66912         Rewrite largefile configuration so that we don't need to run
66913         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
66914         AC_CANONICAL_HOST in configure.in -- jmm]
66915
66916         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
66917         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
66918         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
66919         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
66920         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
66921         All uses changed.
66922         Instead of inspecting the output of getconf, try to compile the
66923         test program without and with the macro definition.
66924         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
66925         for getconf.  Instead, check for the needed flags by compiling
66926         test programs.
66927
66928 2000-06-04  Paul Eggert  <eggert@twinsun.com>
66929
66930         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
66931
66932 2000-06-04  Jim Meyering  <meyering@lucent.com>
66933
66934         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
66935         SunOS 4.1.4 for which gid_t is an unsigned type.
66936
66937 2000-06-03  Jim Meyering  <meyering@lucent.com>
66938
66939         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
66940         now that autoconf requires that.
66941
66942         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
66943         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
66944         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
66945
66946 2000-06-03  Jim Meyering  <meyering@lucent.com>
66947
66948         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
66949
66950 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66951
66952         * m4/glibc21.m4: New file.
66953         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
66954
66955 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
66956
66957         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
66958         newer, don't install charset.alias.
66959         * lib/config.charset: Change the Linux/glibc rules so they become empty
66960         on glibc-2.1 or newer.
66961
66962 2000-06-02  Jim Meyering  <meyering@lucent.com>
66963
66964         * lib/mountlist.c: Back out last change.  Instead, do this...
66965         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
66966         me_dummy member using the same `ignore'-testing code.
66967         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
66968         fs_type strings.
66969         From Mark D. Roth.
66970
66971 2000-05-29  Jim Meyering  <meyering@lucent.com>
66972
66973         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
66974         mounts with the `ignore' attribute.  Based on a patch from
66975         Mark D. Roth.
66976
66977 2000-05-28  Jim Meyering  <meyering@lucent.com>
66978
66979         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
66980         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66981         * m4/stat.m4: Likewise.
66982         * m4/lstat.m4: Likewise.
66983         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
66984
66985         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
66986         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
66987
66988 2000-05-26  Jim Meyering  <meyering@lucent.com>
66989
66990         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
66991
66992 2000-05-24  Jim Meyering  <meyering@lucent.com>
66993
66994         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
66995         autoconf requires that.
66996         * m4/lib-check.m4: Likewise.
66997         * m4/jm-macros.m4: Likewise.
66998         * m4/strftime.m4: Likewise.
66999
67000         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67001         AC_CHECK_DECLS, now that autoconf requires that.
67002
67003 2000-05-22  Jim Meyering  <meyering@lucent.com>
67004
67005         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67006         * m4/lstat.m4: Likewise.
67007
67008 2000-05-22  Jim Meyering  <meyering@lucent.com>
67009
67010         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67011
67012 2000-05-20  Jim Meyering  <meyering@lucent.com>
67013
67014         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67015         (jm_PREREQ): Use it.
67016
67017 2000-05-18  Jim Meyering  <meyering@lucent.com>
67018
67019         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67020         back, too, since it may have been modified by allocate_entry.
67021         (hash_delete): Rewrite to use neither the assignment operator
67022         nor the comma operator in an if-expression.
67023
67024 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67025
67026         * lib/closeout.c:
67027         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67028         Remove; no longer needed.
67029         "quotearg.h": Add include.
67030         (file_name): Do not bother to explicitly initialize to NULL; it's less
67031         efficient on some hosts.
67032         (close_stdout_status): Remove test as to whether stdout was already
67033         closed; it breaks for the case "echo x | sort >&-".
67034         Quote file name colons.
67035         Do not assume that _("write error") lacks format strings.
67036
67037 2000-05-15  Jim Meyering  <meyering@lucent.com>
67038
67039         * lib/version-etc.c (version_etc_copyright): Update the copyright
67040         string used in all --version output.
67041
67042 2000-05-14  Jim Meyering  <meyering@lucent.com>
67043
67044         * lib/closeout.c (close_stdout_set_file_name): New function.
67045         (close_stdout_status): Use new file-scoped global.
67046         Return right away if fstat says the stdout file descriptor is invalid.
67047         * lib/closeout.h (close_stdout_set_file_name): Declare.
67048
67049 2000-05-10  Jim Meyering  <meyering@lucent.com>
67050
67051         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67052         (close_stdout_set_status): New function.
67053         * lib/closeout.h (close_stdout_set_status): Declare.
67054
67055 2000-05-09  Jim Meyering  <meyering@lucent.com>
67056
67057         * m4/gettext.m4: Rename this...
67058         * m4/libintl.m4: ...to this.
67059
67060 2000-05-08  Jim Meyering  <meyering@lucent.com>
67061
67062         * lib/long-options.c: Don't include closeout.h.
67063         (parse_long_options): Don't call close_stdout for --version.
67064
67065 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67066
67067         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67068         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67069         2.1.3 bug.  This avoids a clash when files like regex.c define
67070         _GNU_SOURCE.
67071
67072 2000-05-06  Jim Meyering  <meyering@lucent.com>
67073
67074         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67075         (AC_REPLACE_FUNCS): Add strnlen.
67076
67077         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67078         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67079
67080         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67081         AC_SEARCH_LIBS call for nanosleep.
67082         (LIB_NANOSLEEP): Set and AC_SUBST.
67083
67084 2000-05-06  Jim Meyering  <meyering@lucent.com>
67085
67086         * lib/strnlen.c: Undefine __strnlen and strnlen.
67087         [!weak_alias]: Define __strnlen to strnlen.
67088
67089         * lib/atexit.c: New file, from libiberty.
67090
67091 2000-05-06  Jim Meyering  <meyering@lucent.com>
67092
67093         * lib/closeout.c (close_stdout_status): Also check for errors on the
67094         stderr stream.
67095
67096 2000-05-05  Jim Meyering  <meyering@lucent.com>
67097
67098         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67099         AC_SEARCH_LIBS call for clock_gettime.
67100         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67101
67102         * m4/search-libs.m4: Update from autoconf.
67103
67104         su doesn't work on Solaris 2.6.
67105         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67106         <shadow.h>.  Reported by Dragos Harabor.
67107
67108 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67109
67110         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67111         memcpy instead of xmalloc, xrealloc, path_concat.
67112         (locale_charset): Treat empty environment variables as absent.
67113         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67114
67115 2000-05-04  Jim Meyering  <meyering@lucent.com>
67116
67117         * lib/getopt.c: Update from glibc.
67118         * lib/obstack.c: Likewise.
67119         * lib/obstack.h: Likewise.
67120         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67121         file
67122
67123         * lib/regex.h: Likewise.
67124         * lib/strndup.c: Likewise.
67125         * lib/strnlen.c: New file, from glibc.
67126
67127 2000-05-03  Jim Meyering  <meyering@lucent.com>
67128
67129         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67130
67131 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67132
67133         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67134         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67135         compile-time test, rather than inspecting host and OS, to
67136         decide whether to define _LARGEFILE_SOURCE.
67137
67138 2000-05-01  Jim Meyering  <meyering@lucent.com>
67139
67140         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67141
67142         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67143         Based on a patch from Bruno Haible.
67144
67145 2000-05-01  Jim Meyering  <meyering@lucent.com>
67146
67147         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67148
67149 2000-04-29  Jim Meyering  <meyering@lucent.com>
67150
67151         * lib/path-concat.c: Declare strdup only if it's not defined.
67152         * lib/canon-host.c: Likewise.
67153
67154 2000-04-28  Jim Meyering  <meyering@lucent.com>
67155
67156         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67157         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67158         is included first, then limits.h is included by locale.h by libintl.h.
67159         From John David Anglin.
67160
67161 2000-04-25  Jim Meyering  <meyering@lucent.com>
67162
67163         * lib/makepath.c (S_IRWXUGO): Define.
67164         (make_path): Always perform explicit chmod if MODE specifies any
67165         of the `special' permission bits.  Prompted by a bug report against
67166         install from Mate Wierdl and Joost van Baal.
67167
67168 2000-04-18  Jim Meyering  <meyering@lucent.com>
67169
67170         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67171         (jm_PREREQ): Use it.
67172
67173 2000-04-18  Jim Meyering  <meyering@lucent.com>
67174
67175         * lib/README: New file.
67176
67177         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67178         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67179
67180 2000-04-17  Jim Meyering  <meyering@lucent.com>
67181
67182         Get it right :-)
67183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67184         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67185         Suggestion from Akim Demaille.
67186
67187 2000-04-17  Jim Meyering  <meyering@lucent.com>
67188
67189         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67190         the definition of it to rpl_strftime also defined-away the system's
67191         declaration.
67192
67193 2000-04-15  Jim Meyering  <meyering@lucent.com>
67194
67195         Use `C' to denote so-called `contiguous' files, the same way
67196         that tar does.
67197         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67198         (ftypelet): Use S_ISCTG.
67199         From Michael Deutschmann.
67200
67201 2000-04-14  Jim Meyering  <meyering@lucent.com>
67202
67203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67204         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67205         clobbered.
67206
67207 2000-04-14  Jim Meyering  <meyering@lucent.com>
67208
67209         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67210
67211 2000-04-13  Jim Meyering  <meyering@lucent.com>
67212
67213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67214         AH_VERBATIM to insert required #ifndef into config.h.in.
67215         Suggestion from Akim Demaille.
67216
67217 2000-04-12  Jim Meyering  <meyering@lucent.com>
67218
67219         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67220         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67221         Christian Krackowizer.
67222
67223         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67224         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67225         (AC_SYS_LARGEFILE): Require.
67226         (AM_C_PROTOTYPES): Require.
67227
67228 2000-04-08  Jim Meyering  <meyering@lucent.com>
67229
67230         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67231         names don't conflict.  Reported by Eli Zaretskii.
67232
67233 2000-04-07  Jim Meyering  <meyering@lucent.com>
67234
67235         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67236         sys/types.h, to work around system header problems on AIX 3.2.5.
67237         From Bruno Haible.
67238
67239 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67240
67241         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67242         bug.  Deal with the different error behavior of Irix iconv.
67243
67244 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67245
67246         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67247         IRIX if the installer said otherwise.
67248
67249 2000-04-05  Jim Meyering  <meyering@lucent.com>
67250
67251         Portability tweaks required for ultrix4.3.
67252         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67253         (jm_CHECK_DECLS): Add getutent to the list of functions.
67254         (_jm_DECL_HEADERS): Add utmpx.h.
67255         From John David Anglin.
67256
67257         * m4/strftime.m4: Back out the 2000-04-02 change.
67258         Instead of that change, simply undefine putenv in the test program.
67259
67260 2000-04-05  Jim Meyering  <meyering@lucent.com>
67261
67262         Portability tweaks required for ultrix4.3.
67263         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67264         getutent.
67265         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67266         * lib/canon-host.c: Declare strdup.
67267         * lib/path-concat.c: Likewise.
67268         From John David Anglin.
67269
67270 2000-04-04  Jim Meyering  <meyering@lucent.com>
67271
67272         Be more DOS 8.3-friendly.
67273         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67274         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67275         * lib/Makefile.am: Reflect renaming.
67276         Reported by Eli Zaretskii.
67277
67278         Use a temporary file name that won't clash with `charset.alias'
67279         in the DOS 8.3 name space.
67280         * lib/Makefile.am (charset_tmp): Define.
67281         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67282         (uninstall-local): Likewise.
67283         Reported by Eli Zaretskii.
67284
67285 2000-04-03  Jim Meyering  <meyering@lucent.com>
67286
67287         * m4/gettext.m4: Fix typo in comment.
67288
67289         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67290         textutils/configure.in).  Suggestion from Paul Eggert.
67291         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67292
67293 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67294
67295         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67296         variable in the shell rather than using putenv, which isn't
67297         portable.  This avoids the configure-time inter-test dependency
67298         on the potentially-renamed putenv function.
67299
67300 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67301
67302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67303         before checking struct stat.st_blksize, so that
67304         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67305
67306 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67307
67308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67309         since strftime.c uses HAVE_STRFTIME to decide whether to use
67310         the underlying strftime.
67311
67312 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67313
67314         * lib/time/strftime.c (my_strftime): Make sure we call the system
67315         strftime, not ourselves, when invoking the underlying strftime.
67316
67317 2000-03-24  Jim Meyering  <meyering@lucent.com>
67318
67319         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67320         (charset_alias): Define.
67321         (install-exec-local): Factor out common code.
67322         (uninstall-local): Split lines longer than 80.
67323         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67324         (SUFFIXES): Define.
67325         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67326         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67327
67328 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67329
67330         * lib/config.charset: Output a line containing "Packages using this
67331         file".
67332         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67333         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67334         ref-del.sed): New rules.
67335
67336 2000-03-17  Jim Meyering  <meyering@lucent.com>
67337
67338         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67339         Otherwise, include <strings.h>
67340
67341 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67342
67343         * lib/unicodeio.c (utf8_wctomb): New function.
67344         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67345         format instead of in UCS-4 with platform dependent endianness.
67346
67347 2000-03-10  Jim Meyering  <meyering@lucent.com>
67348
67349         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67350         From Marco Franzen.
67351
67352 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67353
67354         * lib/savedir.c (savedir): Work even if directory size is
67355         negative; this can happen with some screwy NFS configurations.
67356
67357 2000-03-06  Jim Meyering  <meyering@lucent.com>
67358
67359         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67360         if it's NULL (because we ran out of memory).  From Bruno Haible.
67361
67362 2000-03-05  Jim Meyering  <meyering@lucent.com>
67363
67364         * lib/localcharset.c ("path-concat.h"): Include.
67365         (get_charset_aliases): Use path_concat instead of ANSI string
67366         concatenation.
67367
67368         * lib/unicodeio.h (PARAMS): Define.
67369         Use it to guard prototype.
67370
67371 2000-03-04  Jim Meyering  <meyering@lucent.com>
67372
67373         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67374         for lib/localcharset.c.
67375
67376 2000-03-04  Jim Meyering  <meyering@lucent.com>
67377
67378         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67379         installing into it.
67380         (uninstall-local): Uncomment this rule so `make distcheck' works
67381         once again.
67382
67383         * lib/unicodeio.c (<errno.h>): Include it.
67384         (errno): Declare if not defined.
67385
67386         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67387
67388         * lib/config.charset: New version, incorporating remarks from a linux
67389         i18n mailing list.  From Bruno Haible.
67390
67391 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67392
67393         * m4/codeset.m4: New file.
67394         * m4/iconv.m4: New file.
67395         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67396
67397 2000-03-03  Jim Meyering  <meyering@lucent.com>
67398
67399         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67400
67401 2000-03-02  Jim Meyering  <meyering@lucent.com>
67402
67403         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67404         the messages come out on separate lines.
67405
67406         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67407         rather than jm_CHECK_DECLARATIONS.
67408         * m4/decl.m4: Remove now-unused file.
67409
67410         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67411         geteuid.
67412
67413 2000-03-02  Jim Meyering  <meyering@lucent.com>
67414
67415         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67416
67417 2000-03-01  Jim Meyering  <meyering@lucent.com>
67418
67419         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67420         * lib/unicodeio.c: Likewise.
67421
67422 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67423
67424         * lib/config.charset: New file.
67425         * lib/localcharset.c: New file.
67426         * lib/unicodeio.h, lib/unicodeio.c: New files.
67427         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67428         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67429         (noinst_HEADERS): Add unicodeio.h.
67430         (all-local, install-exec-local, charset.alias): New targets.
67431
67432 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67433
67434         * lib/quotearg.c (ALERT_CHAR): New macro.
67435         (quotearg_buffer_restyled): Use it.
67436
67437 2000-02-27  Jim Meyering  <meyering@lucent.com>
67438
67439         * m4/check-decl.m4: Add getenv to the list.
67440
67441 2000-02-27  Jim Meyering  <meyering@lucent.com>
67442
67443         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67444         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67445
67446         * lib/backupfile.c: Guard inclusion of stdlib.h with
67447         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67448         Declare malloc if needed.
67449
67450         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67451         `#ifndef HAVE_DECL..'
67452         now that autoconf always defines the HAVE_DECL_ symbols.
67453         * lib/human.c: Likewise.
67454         * lib/same.c: Likewise.
67455         * lib/strtoumax.c: Likewise.
67456
67457         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67458         declaration check was not run.
67459         * lib/hash.c: Likewise.
67460         * lib/human.c: Likewise.
67461         * lib/same.c: Likewise.
67462         * lib/strtoumax.c: Likewise.
67463
67464         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67465         `.', then first look up the entire `.'-containing string as a login
67466         name.
67467
67468 2000-02-23  Jim Meyering  <meyering@lucent.com>
67469
67470         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67471         in place of my hack.
67472
67473 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67474
67475         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67476         (textint): New typedef.
67477         (parser_control): Member year changed from int to textint.
67478         All uses changed.
67479         (YYSTYPE): Removed; replaced by %union with int and textint members.
67480         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67481         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67482         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67483         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67484         (date, number, to_year): Use width of number in digits, not its value,
67485         to determine whether it's a 2-digit year, or a 2-digit time.
67486         (yylex): Store number of digits of numeric tokens.
67487         Reported by John Kendall.
67488
67489         (parser_control): Changed from struct parser_control to typedef (for
67490         consistency).  All uses changed.
67491
67492         (tID): Removed; not used.
67493         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67494
67495 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67496
67497         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67498         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67499
67500 2000-02-12  Jim Meyering  <meyering@lucent.com>
67501
67502         * lib/userspec.c (ISDIGIT): Define it.
67503         (isdigit): Remove definition.
67504         (is_number): Use ISDIGIT, not isdigit.
67505         <libintl.h>: Include.
67506         (_ and N_): Define.
67507         (parse_user_spec): Mark translatable strings.
67508
67509 2000-02-10  Jim Meyering  <meyering@lucent.com>
67510
67511         With these changes, nanosleep.[ch] are finally enough like the other
67512         lib/* replacement files to compile on a few more losing systems.
67513
67514         * lib/nanosleep.h: Don't include config.h.
67515         Remove prototype from declaration of nanosleep.
67516         (PARAMS): Remove now-unneeded definition.
67517         * lib/nanosleep.c: #undef nanosleep.
67518         (rpl_nanosleep): Rename from nanosleep.
67519
67520 2000-02-10  Jim Meyering  <meyering@lucent.com>
67521
67522         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67523         gnu_nanosleep to rpl_nanosleep.
67524
67525 2000-02-09  Jim Meyering  <meyering@lucent.com>
67526
67527         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
67528         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
67529
67530 2000-02-08  Akim Demaille  <akim@epita.fr>
67531
67532         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
67533         `[' and `]' and remove uses of `changequote'.
67534         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
67535         (AC_SYS_LARGEFILE): Likewise.
67536         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67537         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
67538         of changequote.
67539         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
67540         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
67541         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
67542         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
67543
67544 2000-02-05  Jim Meyering  <meyering@lucent.com>
67545
67546         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
67547         Remove explicit use of AC_HEADER_TIME.  It is required by
67548         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
67549         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
67550         in autoconf whereby the expansion of the latter ended up preceding
67551         the expansion of its prerequisite, AC_HEADER_TIME.
67552         Reported by Volker Borchert.
67553
67554 2000-02-03  Jim Meyering  <meyering@lucent.com>
67555
67556         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
67557
67558 2000-02-03  Jim Meyering  <meyering@lucent.com>
67559
67560         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
67561         rather than with `#if HAVE_UTMPNAME'.
67562
67563 2000-02-02  Jim Meyering  <meyering@lucent.com>
67564
67565         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
67566         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
67567         Reported by Eli Zaretskii.
67568
67569 2000-02-01  Jim Meyering  <meyering@lucent.com>
67570
67571         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
67572
67573 2000-01-31  Jim Meyering  <meyering@lucent.com>
67574
67575         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
67576         functions.  Add the time.h and sys/time.h headers along with the
67577         AC_REQUIRE'ment of AC_HEADER_TIME.
67578
67579 2000-01-31  Jim Meyering  <meyering@lucent.com>
67580
67581         * lib/nanosleep.h (nanosleep): Guard declaration with
67582         `#if ! HAVE_DECL_NANOSLEEP'.
67583         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
67584         the declaration in that vendor's sys/timers.h.
67585         Reported by Christian Krackowizer.
67586
67587         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
67588         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
67589         (ISPRINT): Likewise.
67590         Reported by Tom Tromey.
67591
67592 2000-01-30  Jim Meyering  <meyering@lucent.com>
67593
67594         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
67595
67596         * m4/prereq.m4 (utmp_includes): Define.
67597         Check for ut_user and ut_name members in both struct utmpx
67598         and struct utmp.
67599
67600 2000-01-30  Jim Meyering  <meyering@lucent.com>
67601
67602         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
67603         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
67604         header files where only utmpx.ut_user is declared.
67605
67606         * lib/readutmp.h (UT_USER): Define.
67607
67608 2000-01-29  Jim Meyering  <meyering@lucent.com>
67609
67610         * m4/lib-check.m4: New file containing library-related checks from
67611         fileutils and sh-utils (textutils had none).
67612
67613 2000-01-28  Jim Meyering  <meyering@lucent.com>
67614
67615         * m4/perl.m4: Change format of warning message to look more like that
67616         from the missing script.  Suggestion from François Pinard.
67617
67618 2000-01-25  Jim Meyering  <meyering@lucent.com>
67619
67620         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
67621         well as time.h in the compile check.
67622         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
67623         Fix typo in cross-compiling case: s/yes/no/.
67624
67625 2000-01-23  Jim Meyering  <meyering@lucent.com>
67626
67627         * m4/jm-macros.m4: Move df-related tests here from
67628         fileutils/configure.in
67629
67630         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
67631         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
67632
67633         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
67634         s/space/ac_fsusage_space/.
67635         (jm_FILE_SYSTEM_USAGE): Take two parameters.
67636
67637         * m4/ftruncate.m4: New file (derived from part of
67638         fileutils/configure.in).
67639         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
67640         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
67641
67642         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
67643         AC_SUBST these here, rather than just in sh-util/configure.in, so
67644         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
67645         all the same.
67646         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
67647         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
67648         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
67649         (AC_SUBST(POW_LIBM)): Likewise.
67650         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
67651
67652 2000-01-23  Jim Meyering  <meyering@lucent.com>
67653
67654         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
67655         obstack.c.
67656
67657 2000-01-22  Jim Meyering  <meyering@lucent.com>
67658
67659         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
67660
67661         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
67662
67663         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
67664         configure.in
67665         (AC_CHECK_HEADERS): Likewise for sh-utils.
67666         (AC_CHECK_HEADERS): Likewise for textutils.
67667         Merge the three lists of headers.
67668
67669         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
67670         from fileutils' configure.in.
67671
67672         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
67673         code. Moved tests into their own function (_jm_DECL_HEADERS) in
67674         check-decl.m4.
67675
67676         * m4/check-decl.m4: Use #if rather than #ifdef.
67677         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
67678         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
67679         (_jm_DECL_HEADERS): Define new function.
67680         (jm_CHECK_DECLARATIONS): Require it.
67681
67682 2000-01-22  Jim Meyering  <meyering@lucent.com>
67683
67684         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
67685         [! HAVE_DECL_STRTOULL]: Declare strtoull.
67686         Required for some AIX systems.  Reported by Christian Krackowizer.
67687         [TESTING] (main): New function.
67688
67689         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
67690         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
67691         letters.
67692
67693         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
67694         iswprint.
67695
67696         * lib/strverscmp.c (ISDIGIT): Define.
67697         (strverscmp): Use ISDIGIT, not isdigit.
67698
67699 2000-01-19  Jim Meyering  <meyering@lucent.com>
67700
67701         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
67702         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
67703         defines `struct timespec' in <sys/time.h>
67704
67705         * m4/c-bs-a.m4: Remove uses of changequote altogether.
67706         Thanks to Akim for explaining.
67707
67708 2000-01-17  Paul Eggert  <eggert@twinsun.com>
67709
67710         * lib/nanosleep.c (nanosleep):
67711         Don't use SA_INTERRUPT to decide whether to call sigaction, as
67712         POSIX.1 doesn't require SA_INTERRUPT and some systems
67713         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
67714         it's been part of POSIX.1 since day 1 (in 1988).
67715
67716 2000-01-17  Jim Meyering  <meyering@lucent.com>
67717
67718         * lib/interlock: Remove unused file.  Reported by François Pinard.
67719
67720 2000-01-16  Paul Eggert  <eggert@twinsun.com>
67721
67722         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
67723         alert, backslash, formfeed, and vertical tab unnecessarily in
67724         shell quoting style.
67725
67726 2000-01-16  Jim Meyering  <meyering@lucent.com>
67727
67728         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
67729         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
67730         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
67731         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
67732
67733 2000-01-16  Jim Meyering  <meyering@lucent.com>
67734
67735         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
67736         because the latter didn't work.
67737
67738 2000-01-15  Jim Meyering  <meyering@lucent.com>
67739
67740         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
67741         (AC_REPLACE_FUNCS): Add memcpy and memset.
67742         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
67743         Add strpbrk.
67744         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
67745
67746 2000-01-12  Jim Meyering  <meyering@lucent.com>
67747
67748         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
67749         (jm_PREREQ): Use it.
67750         (jm_PREREQ_READUTMP): New macro.
67751         (jm_PREREQ): Use it.
67752
67753 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67754
67755         Quote multibyte characters correctly.
67756         * m4/c-bs-a.m4: New file.
67757         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
67758         (jm_PREREQ): Use it.
67759
67760 2000-01-11  Paul Eggert  <eggert@twinsun.com>
67761
67762         * m4/uintmax_t.m4: Port to autoconf 2.13.
67763
67764 2000-01-08  Jim Meyering  <meyering@ascend.com>
67765
67766         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
67767         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
67768
67769 2000-01-04  Jim Meyering  <meyering@ascend.com>
67770
67771         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
67772         jm_STRUCT_DIRENT_D_TYPE.
67773         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
67774         jm_STRUCT_DIRENT_D_INO.
67775         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
67776         jm_STRUCT_UTIMBUF.
67777         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
67778         renamings.
67779         * m4/utime.m4: Likewise.
67780
67781         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
67782         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
67783
67784 2000-01-03  Paul Eggert  <eggert@twinsun.com>
67785
67786         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
67787         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
67788
67789 2000-01-02  Jim Meyering  <meyering@ascend.com>
67790
67791         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
67792         remember if this is necessary.
67793
67794 1999-12-26  Jim Meyering  <meyering@ascend.com>
67795
67796         * m4/jm-macros.m4: Use it here.
67797         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
67798
67799 1999-12-23  Jim Meyering  <meyering@ascend.com>
67800
67801         * m4/jm-macros.m4: Check for clock_gettime (moved from
67802         fileutils/configure.in)
67803         Check for gettimeofday.
67804
67805 1999-12-20  Jim Meyering  <meyering@ascend.com>
67806
67807         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
67808         autoconf-2.14a-1999-12-20.
67809
67810 1999-12-19  Jim Meyering  <meyering@ascend.com>
67811
67812         * m4/lstat-slash.m4: New file.
67813         * m4/jm-macros.m4: Use the new macro:
67814         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67815
67816 1999-12-07  Jim Meyering  <meyering@ascend.com>
67817
67818         * m4/perl.m4: Require that File::Compare be available, too.
67819         Too many systems seem to lack it.
67820
67821         * m4/strftime.m4: Add checks for most of the cpp macros tested in
67822         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
67823
67824 1999-11-18  Paul Eggert  <eggert@twinsun.com>
67825
67826         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
67827         problem with the QNX 4.25 shell, which doesn't propagate exit
67828         status of failed commands inside shell assignments.
67829
67830 1999-11-17  Jim Meyering  <meyering@ascend.com>
67831
67832         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
67833
67834 1999-11-07  Jim Meyering  <meyering@ascend.com>
67835
67836         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
67837
67838 1999-11-06  Jim Meyering  <meyering@ascend.com>
67839
67840         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
67841         * m4/jm-macros.m4 (jm_MACROS): Use it here.
67842
67843 1999-11-05  Jim Meyering  <meyering@ascend.com>
67844
67845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
67846         configure.in of textutils, fileutils, and sh-utils into this one
67847         (shared between those packages) file.
67848         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
67849         AC_STRUCT_ST_BLKSIZE.
67850
67851 1999-11-03  Jim Meyering  <meyering@ascend.com>
67852
67853         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
67854         of AC_CHECK_TYPE checks includes unistd.h.
67855         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
67856         Suggestion from Akim Demaille.
67857
67858 1999-10-30  Jim Meyering  <meyering@ascend.com>
67859
67860         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
67861         m4-quoted string.
67862         * m4/ls-mntd-fs.m4: Likewise.
67863         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
67864         * m4/jm-winsz1.m4: Likewise.
67865
67866         * m4/const.m4: Remove file, since the fix made it into the experimental
67867         version of autoconf.
67868         * m4/mktime.m4: Likewise.
67869
67870         * m4/check-type.m4: Remove file, now that the latest version of
67871         AC_CHECK_TYPE takes a third arg to specify additional #includes.
67872
67873         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
67874         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
67875         AC_CHECK_TYPE.
67876
67877 1999-10-04  Jim Meyering  <meyering@ascend.com>
67878
67879         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
67880
67881 1999-09-22  Paul Eggert  <eggert@twinsun.com>
67882
67883         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
67884         2.95.1 bug with HP-UX 10.20.
67885
67886 1999-09-17  Jim Meyering  <meyering@ascend.com>
67887
67888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
67889         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
67890         due to missing strdup (against sh-utils-2.0).
67891
67892 1999-08-29  Jim Meyering  <meyering@ascend.com>
67893
67894         * m4/jm-macros.m4: Require jm_BISON.
67895         * m4/bison.m4: New file.
67896
67897 1999-08-17  Paul Eggert  <eggert@twinsun.com>
67898
67899         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
67900         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
67901
67902 1999-08-05  Jim Meyering  <meyering@ascend.com>
67903
67904         * m4/getline.m4: Rename test file from conftestdata to conftest.data
67905         to avoid conflicts with `conftest' on 8+3 filesystems.
67906         Suggestion from Eli Zaretskii.
67907
67908 1999-08-04  Jim Meyering  <meyering@ascend.com>
67909
67910         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
67911         fileutils and sh-utils (textutils's getline test was inadequate).
67912         (AM_FUNC_GETLINE): Run this test.
67913         (AC_CHECK_FUNCS): Check for getdelim.
67914         Reported by Bob Proulx.
67915
67916 1999-08-02  Jim Meyering  <meyering@ascend.com>
67917
67918         * m4/jm-macros.m4: Add a comment.
67919
67920 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67921
67922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
67923         <inttypes.h> defines strtoumax as a macro (and not as a
67924         function).
67925
67926 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67927
67928         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
67929         that we can shift, multiply and divide unsigned long long
67930         values; Ultrix cc can't do it.
67931
67932 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67933
67934         * m4/mktime.m4: New file, which is a preview of what should appear
67935         in the next public autoconf release.
67936
67937 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67938
67939         * m4/lfs.m4: Remove this file.
67940         * m4/largefile.m4: New file.  It contains the old contents of
67941         lfs.m4, except that all names with prefix AC_LFS have been
67942         changed to use the prefix AC_SYS_LARGEFILE instead, to be
67943         compatible with future autoconf versions.  Also, some minor m4
67944         quoting problems have been fixed.
67945
67946 1999-08-01  Paul Eggert  <eggert@twinsun.com>
67947
67948         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
67949         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
67950         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
67951         and simplify the shell code.
67952
67953 1999-08-01  Jim Meyering  <meyering@ascend.com>
67954
67955         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
67956         m4.
67957
67958 1999-07-20  Jim Meyering  <meyering@ascend.com>
67959
67960         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
67961
67962 1999-07-15  Jim Meyering  <meyering@ascend.com>
67963
67964         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
67965
67966 1999-05-22  Jim Meyering  <meyering@ascend.com>
67967
67968         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
67969
67970 1999-05-20  Jim Meyering  <meyering@ascend.com>
67971
67972         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
67973         Add a colon after each `then' in case $4 is empty.
67974
67975 1999-05-16  Jim Meyering  <meyering@ascend.com>
67976
67977         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
67978
67979 1999-05-10  Jim Meyering  <meyering@ascend.com>
67980
67981         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
67982
67983         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
67984         AC_FUNC_MKTIME.
67985
67986 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
67987
67988         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
67989
67990 1999-05-04  Paul Eggert  <eggert@twinsun.com>
67991
67992         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
67993         not CPPFLAGS, so that linking works correctly in IRIX.
67994
67995 1999-04-30  Paul Eggert  <eggert@twinsun.com>
67996
67997         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
67998
67999 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68000
68001         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68002         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68004         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68005         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68006
68007         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68008
68009 1999-04-20  Jim Meyering  <meyering@ascend.com>
68010
68011         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68012         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68013         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68014
68015 1999-04-18  Jim Meyering  <meyering@ascend.com>
68016
68017         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68018         * m4/jm-macros.m4: Use it.
68019
68020 1999-04-06  Jim Meyering  <meyering@ascend.com>
68021
68022         * m4/strftime.m4: Remove test for %f.
68023
68024 1999-03-29  Jim Meyering  <meyering@ascend.com>
68025
68026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68027         superset of the AC_TYPE_* checks in the textutils, fileutils,
68028         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68029         AC_TYPE_PID_T.
68030
68031 1999-03-28  Jim Meyering  <meyering@ascend.com>
68032
68033         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68034         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68035         replaced e.g., in the *.sh files of the sh-utils.
68036
68037 1999-03-20  Jim Meyering  <meyering@ascend.com>
68038
68039         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68040         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68041         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68042
68043 1999-03-19  Jim Meyering  <meyering@ascend.com>
68044
68045         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68046
68047 1999-03-12  Jim Meyering  <meyering@ascend.com>
68048
68049         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68050
68051 1999-03-07  Jim Meyering  <meyering@ascend.com>
68052
68053         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68054         declared.
68055
68056 1999-02-17  Jim Meyering  <meyering@ascend.com>
68057
68058         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68059         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68060
68061 1999-02-07  Jim Meyering  <meyering@ascend.com>
68062
68063         * m4/group-member.m4: New file -- extracted from sh-utils'
68064         configure.in.
68065
68066         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68067         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68068
68069 1999-02-06  Jim Meyering  <meyering@ascend.com>
68070
68071         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68072         * m4/fnmatch.m4: Likewise.
68073         * m4/getgroups.m4: Likewise.
68074         * m4/lstat.m4: Likewise.
68075         * m4/malloc.m4: Likewise.
68076         * m4/putenv.m4: Likewise.
68077         * m4/realloc.m4: Likewise.
68078         * m4/regex.m4: Likewise.
68079         * m4/stat.m4: Likewise.
68080         * m4/strftime.m4: Likewise.
68081         Suggestion from Alain Magloire.
68082
68083         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68084         * m4/fnmatch.m4: Likewise.
68085         * m4/getgroups.m4: Likewise.
68086         * m4/getline.m4: Likewise.
68087         * m4/lstat.m4: Likewise.
68088         * m4/malloc.m4: Likewise.
68089         * m4/memcmp.m4: Likewise.
68090         * m4/putenv.m4: Likewise.
68091         * m4/realloc.m4: Likewise.
68092         * m4/regex.m4: Likewise.
68093         * m4/stat.m4: Likewise.
68094         * m4/strftime.m4: Likewise.
68095         Suggestion from Alain Magloire.
68096
68097         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68098         an argument.
68099
68100         * m4/regex.m4: Add a run-time Test for proper operation of
68101         re_compile_pattern.
68102
68103 1999-01-31  Jim Meyering  <meyering@ascend.com>
68104
68105         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68106
68107 1999-01-30  Jim Meyering  <meyering@ascend.com>
68108
68109         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68110
68111         * m4/jm-mktime.m4: Make this a wrapper around the official
68112         AM_FUNC_MKTIME rather than my private copy, now that the official one
68113         is up to date.
68114         * m4/mktime.m4: Remove file.
68115
68116         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68117         * m4/uptime.m4: Likewise.
68118         * m4/uintmax_t.m4: Likewise.
68119
68120 1999-01-28  Jim Meyering  <meyering@ascend.com>
68121
68122         * m4/jm-macros.m4: Use jm_AFS.
68123         * m4/afs.m4: New file (from fileutils' configure.in).
68124
68125         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68126         * m4/chown.m4: Likewise.
68127         * m4/d-ino.m4: Likewise.
68128         * m4/d-type.m4: Likewise.
68129         * m4/fnmatch.m4: Likewise.
68130         * m4/getgroups.m4: Likewise.
68131         * m4/gettext.m4: Likewise.
68132         * m4/jm-mktime.m4: Likewise.
68133         * m4/jm-winsz2.m4: Likewise.
68134         * m4/lcmessage.m4: Likewise.
68135         * m4/ls-mntd-fs.m4: Likewise.
68136         * m4/malloc.m4: Likewise.
68137         * m4/memcmp.m4: Likewise.
68138         * m4/putenv.m4: Likewise.
68139         * m4/realloc.m4: Likewise.
68140         * m4/st_mtim.m4: Likewise.
68141         * m4/strftime.m4: Likewise.
68142
68143 1999-01-16  Jim Meyering  <meyering@ascend.com>
68144
68145         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68146         (ARGMATCH_DIE_DECL): Define.
68147
68148 1999-01-12  Jim Meyering  <meyering@ascend.com>
68149
68150         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68151         Reported by Lars Hecking.
68152
68153 1999-01-10  Jim Meyering  <meyering@ascend.com>
68154
68155         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68156         gross kludge.
68157         * m4/inttypes_h.m4: Likewise.
68158         * m4/lstat.m4: Likewise.
68159         * m4/malloc.m4: Likewise.
68160         * m4/readdir.m4: Likewise.
68161         * m4/realloc.m4: Likewise.
68162         * m4/st_dm_mode.m4: Likewise.
68163         * m4/stat.m4: Likewise.
68164         * m4/utimbuf.m4: Likewise.
68165         * m4/utimes.m4: Likewise.
68166
68167         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68168         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68169         comments in config.h.in are meaningful.
68170
68171         * m4/jm-macros.m4: Require autoconf-2.13 here.
68172
68173         * m4/regex.m4: By default, don't use the included regex.c on systems
68174         with glibc 2.  Suggestion from Uli Drepper.
68175
68176 1999-01-02  Jim Meyering  <meyering@ascend.com>
68177
68178         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68179
68180 1998-12-18  Jim Meyering  <meyering@ascend.com>
68181
68182         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68183         Based on a suggestion from Lars Hecking.
68184
68185 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68186
68187         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68188
68189 1998-11-16  Jim Meyering  <meyering@ascend.com>
68190
68191         * m4/lfs.m4: Double-quote the `uname...` expression.
68192
68193 1998-11-14  Jim Meyering  <meyering@ascend.com>
68194
68195         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68196         * m4/stat.m4: Likewise.
68197
68198 1998-11-03  Jim Meyering  <meyering@ascend.com>
68199
68200         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68201         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68202
68203 1998-10-18  Jim Meyering  <meyering@ascend.com>
68204
68205         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68206
68207 1998-10-17  Jim Meyering  <meyering@ascend.com>
68208
68209         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68210         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68211         calls for those previously hard-coded headers.  Instead, take a new
68212         parameter.
68213         (jm_CHECK_DECLARATIONS): Reflect interface change.
68214         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68215         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68216
68217         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68218
68219 1998-10-14  Jim Meyering  <meyering@ascend.com>
68220
68221         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68222         instead of "TZ=America/Vancouver".  From Paul Eggert.
68223
68224 1998-10-11  Jim Meyering  <meyering@ascend.com>
68225
68226         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68227         This adds a test for a recently added compatibility fix for mktime.c.
68228         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68229
68230 1998-09-27  Jim Meyering  <meyering@ascend.com>
68231
68232         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68233
68234         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68235         ../configure.in, including a change from Gordon Matzigkeit to allow
68236         cross-compiling for the Hurd.
68237
68238         * m4/glibc.m4: New file/macro to test for the GNU C Library
68239         versions 1 and 2.  From Gordon Matzigkeit.
68240         Indent.
68241
68242 1998-09-21  Jim Meyering  <meyering@ascend.com>
68243
68244         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68245
68246 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68247
68248         Port nanosecond-resolution times to UnixWare 2.1.2 and
68249         pedantic Solaris 2.6.
68250
68251         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68252         AC_STRUCT_ST_MTIM.
68253         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68254         Generate name of ns member, instead of just 1 or undef.
68255         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68256
68257 1998-08-15  Jim Meyering  <meyering@ascend.com>
68258
68259         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68260         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68261         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68262         instead of jm_TYPE_SSIZE_T.
68263
68264 1998-08-12  Jim Meyering  <meyering@ascend.com>
68265
68266         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68267
68268 1998-08-02  Jim Meyering  <meyering@ascend.com>
68269
68270         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68271         in acconfig.h manually.
68272
68273 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68274
68275         * m4/st_mtim.m4: New file.
68276
68277 1998-07-28  Jim Meyering  <meyering@ascend.com>
68278
68279         * m4/utimes.m4: Undef stat.
68280
68281 1998-07-25  Jim Meyering  <meyering@ascend.com>
68282
68283         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68284         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68285
68286 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68287
68288         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68289         uid and gid actually remain unchanged.
68290
68291 1998-07-07  Jim Meyering  <meyering@ascend.com>
68292
68293         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68294
68295 1998-07-04  Jim Meyering  <meyering@ascend.com>
68296
68297         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68298         to prove that this macro can be used in packages without regex.c.
68299
68300 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68301
68302         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68303         is to be used.
68304
68305 1998-07-03  Jim Meyering  <meyering@ascend.com>
68306
68307         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68308
68309         * m4/gettext.m4: New file -- from gettext-0.10.35.
68310         * m4/lcmessage.m4: Likewise.
68311         * m4/progtest.m4: Likewise.
68312
68313         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68314         * m4/jm-macros.m4: Require the new macro.
68315
68316 1998-06-29  Jim Meyering  <meyering@ascend.com>
68317
68318         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68319         for the definition of NGROUPS (used in a system header included
68320         by sys/mount.h).
68321
68322 1998-06-28  Jim Meyering  <meyering@ascend.com>
68323
68324         * m4/ls-mntd-fs.m4: New file.
68325         * m4/fstypename.m4: New file.
68326
68327         * m4/jm-macros.m4: Require the new macro.
68328         * m4/jm-glibc-io.m4: New file.
68329
68330 1998-05-19  Jim Meyering  <meyering@ascend.com>
68331
68332         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68333         * m4/lchown.m4: New file.
68334
68335         * m4/Makefile.am.in: New file.
68336         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68337
68338 1998-05-14  Jim Meyering  <meyering@ascend.com>
68339
68340         * m4/Makefile.am (EXTRA_DIST): Add them.
68341         * m4/jm-macros.m4: New file.
68342         * m4/utimbuf.m4: New file.
68343
68344 1998-05-12  Jim Meyering  <meyering@ascend.com>
68345
68346         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68347
68348 1998-05-11  Jim Meyering  <meyering@ascend.com>
68349
68350         * m4/isc-posix.m4: New file.
68351
68352 1998-05-10  Jim Meyering  <meyering@ascend.com>
68353
68354         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68355
68356 1998-05-09  Jim Meyering  <meyering@ascend.com>
68357
68358         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68359         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68360         with automake.
68361
68362         * m4/ssize_t.m4: New file.
68363         * m4/mktime.m4: Remove file -- the new automake has this now.
68364
68365 1998-04-26  Jim Meyering  <meyering@ascend.com>
68366
68367         * m4/assert.m4: New file.
68368         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68369
68370 1998-04-05  Jim Meyering  <meyering@ascend.com>
68371
68372         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68373         (jm_PREREQ): Use it here.
68374
68375 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68376
68377         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68378         in acconfig.h.
68379
68380 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68381
68382         * m4/prereq.m4: New file.
68383         * m4/error.m4: New file.
68384         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68385
68386 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68387
68388         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68389         cache-check for the same variable -- that defeated the purpose of
68390         the test; the test program was never run.  This was a problem only
68391         on systems with losing getline functions -- HP-UX 10.20 is one.
68392         Reported by Bjorn Helgaas.
68393
68394 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68395
68396         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68397
68398 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68399
68400         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68401
68402         * m4/const.m4: New file.  Use an initializer in this declaration
68403         typedef int charset[2]; const charset x;
68404         Reported by Bob Glickstein.
68405
68406 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68407
68408         * m4/chown.m4: Fix reversed types on -1 args to chown.
68409         From Kaveh Ghazi.
68410
68411 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68412
68413         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68414         Add lseek and memchr.
68415
68416         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68417         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68418         have a 20-character limit on names.
68419
68420 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68421
68422         * m4/inttypes_h.m4: New file.
68423         * m4/uintmax_t.m4: New file.
68424         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68425
68426
68427         -----
68428
68429         Local Variables:
68430         coding: utf-8
68431         End:
68432
68433         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68434
68435         Copying and distribution of this file, with or without
68436         modification, are permitted provided the copyright notice
68437         and this notice are preserved.